Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): link to another environment #16655

Mergedjuliusmarmingemerged 1 commit intot3code/peer/launch-request-key fromrefs/pull/16655/headmerged by juliusmarminge View on GitHub

Showing 18 changed files with 164 additions and 0 deletions (loading 15).

x
0 of 18 viewed, 18 left
4 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -5,6 +5,7 @@
authScopeRequiredResponse,
AssetCreateUrlInput,
AuthAccessReadScope,
+ AuthAccessWriteScope,
ServerSettingsPatch,
ProviderInstanceMutation,
requiredScopesForServerSettingsPatch,
@@ -86,6 +87,9 @@
[WS_METHODS.serverGetStorageCleanupReport]: AuthOrchestrationReadScope,
[WS_METHODS.serverGetDatabaseStorage]: AuthOrchestrationReadScope,
[WS_METHODS.serverGetSettings]: AuthOrchestrationReadScope,
+ [WS_METHODS.peerLinksList]: AuthAccessReadScope,
+ [WS_METHODS.peerLinksLink]: AuthAccessWriteScope,
+ [WS_METHODS.peerLinksUnlink]: AuthAccessWriteScope,
[WS_METHODS.serverUpdateSettings]: AuthSettingsWriteScope,
[WS_METHODS.serverSearchAcpRegistry]: AuthOrchestrationReadScope,
[WS_METHODS.serverPrepareAcpRegistryAgent]: AuthProvidersManageScope,
158 additions and 0 deletionsapps/server/src/cli/environment.tsAdded
View file
@@ -0,0 +1,158 @@
+import { AuthMcpClientAccess, EnvironmentId, type PeerLinkSummary } from "@t3tools/contracts";
+import * as Console from "effect/Console";
+import * as DateTime from "effect/DateTime";
+import * as Effect from "effect/Effect";
+import * as Layer from "effect/Layer";
+import * as References from "effect/References";
+import * as Schema from "effect/Schema";