@agimon-ai/po-core 0.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/_virtual/_rolldown/runtime.cjs +23 -0
- package/dist/agentModel.cjs +4 -0
- package/dist/agentModel.d.mts +2 -0
- package/dist/agentModel.mjs +2 -0
- package/dist/apiContracts.cjs +2094 -0
- package/dist/apiContracts.cjs.map +1 -0
- package/dist/apiContracts.d.mts +1086 -0
- package/dist/apiContracts.d.mts.map +1 -0
- package/dist/apiContracts.mjs +2074 -0
- package/dist/apiContracts.mjs.map +1 -0
- package/dist/askUser.cjs +8 -0
- package/dist/askUser.d.mts +2 -0
- package/dist/askUser.mjs +2 -0
- package/dist/authorTools.cjs +5 -0
- package/dist/authorTools.d.mts +2 -0
- package/dist/authorTools.mjs +2 -0
- package/dist/backgroundWork.cjs +9 -0
- package/dist/backgroundWork.d.mts +2 -0
- package/dist/backgroundWork.mjs +2 -0
- package/dist/bundleAssetPolicy.cjs +5 -0
- package/dist/bundleAssetPolicy.d.mts +2 -0
- package/dist/bundleAssetPolicy.mjs +2 -0
- package/dist/childProcess.cjs +15 -0
- package/dist/childProcess.d.mts +2 -0
- package/dist/childProcess.mjs +2 -0
- package/dist/childSession.cjs +9 -0
- package/dist/childSession.d.mts +3 -0
- package/dist/childSession.mjs +3 -0
- package/dist/cockpitContainer.cjs +4 -0
- package/dist/cockpitContainer.d.mts +2 -0
- package/dist/cockpitContainer.mjs +2 -0
- package/dist/config.cjs +13 -0
- package/dist/config.d.mts +3 -0
- package/dist/config.mjs +2 -0
- package/dist/contextApi.cjs +12 -0
- package/dist/contextApi.d.mts +4 -0
- package/dist/contextApi.mjs +3 -0
- package/dist/contextContributions.cjs +7 -0
- package/dist/contextContributions.d.mts +3 -0
- package/dist/contextContributions.mjs +3 -0
- package/dist/contextDetail.cjs +65 -0
- package/dist/contextDetail.cjs.map +1 -0
- package/dist/contextDetail.d.mts +19 -0
- package/dist/contextDetail.d.mts.map +1 -0
- package/dist/contextDetail.mjs +64 -0
- package/dist/contextDetail.mjs.map +1 -0
- package/dist/contextDetailStore.cjs +96 -0
- package/dist/contextDetailStore.cjs.map +1 -0
- package/dist/contextDetailStore.d.mts +21 -0
- package/dist/contextDetailStore.d.mts.map +1 -0
- package/dist/contextDetailStore.mjs +87 -0
- package/dist/contextDetailStore.mjs.map +1 -0
- package/dist/contextProjection.cjs +121 -0
- package/dist/contextProjection.cjs.map +1 -0
- package/dist/contextProjection.d.mts +130 -0
- package/dist/contextProjection.d.mts.map +1 -0
- package/dist/contextProjection.mjs +117 -0
- package/dist/contextProjection.mjs.map +1 -0
- package/dist/cordisHost.cjs +13 -0
- package/dist/cordisHost.d.mts +2 -0
- package/dist/cordisHost.mjs +2 -0
- package/dist/delegation.cjs +18 -0
- package/dist/delegation.d.mts +2 -0
- package/dist/delegation.mjs +2 -0
- package/dist/doomPackage.cjs +61 -0
- package/dist/doomPackage.cjs.map +1 -0
- package/dist/doomPackage.d.mts +17 -0
- package/dist/doomPackage.d.mts.map +1 -0
- package/dist/doomPackage.mjs +54 -0
- package/dist/doomPackage.mjs.map +1 -0
- package/dist/executionBudget.cjs +232 -0
- package/dist/executionBudget.cjs.map +1 -0
- package/dist/executionBudget.d.mts +11 -0
- package/dist/executionBudget.d.mts.map +1 -0
- package/dist/executionBudget.mjs +226 -0
- package/dist/executionBudget.mjs.map +1 -0
- package/dist/extensionFile.cjs +19 -0
- package/dist/extensionFile.d.mts +3 -0
- package/dist/extensionFile.mjs +2 -0
- package/dist/footer.cjs +6 -0
- package/dist/footer.d.mts +2 -0
- package/dist/footer.mjs +2 -0
- package/dist/headless.cjs +16 -0
- package/dist/headless.d.mts +2 -0
- package/dist/headless.mjs +2 -0
- package/dist/headlessHub.cjs +1008 -0
- package/dist/headlessHub.cjs.map +1 -0
- package/dist/headlessHub.d.mts +176 -0
- package/dist/headlessHub.d.mts.map +1 -0
- package/dist/headlessHub.mjs +1005 -0
- package/dist/headlessHub.mjs.map +1 -0
- package/dist/headlessServer.cjs +956 -0
- package/dist/headlessServer.cjs.map +1 -0
- package/dist/headlessServer.d.mts +66 -0
- package/dist/headlessServer.d.mts.map +1 -0
- package/dist/headlessServer.mjs +949 -0
- package/dist/headlessServer.mjs.map +1 -0
- package/dist/headlessSessionHost.cjs +0 -0
- package/dist/headlessSessionHost.d.mts +89 -0
- package/dist/headlessSessionHost.d.mts.map +1 -0
- package/dist/headlessSessionHost.mjs +1 -0
- package/dist/headlessSessionManager.cjs +51 -0
- package/dist/headlessSessionManager.cjs.map +1 -0
- package/dist/headlessSessionManager.d.mts +6 -0
- package/dist/headlessSessionManager.d.mts.map +1 -0
- package/dist/headlessSessionManager.mjs +50 -0
- package/dist/headlessSessionManager.mjs.map +1 -0
- package/dist/help.cjs +24 -0
- package/dist/help.d.mts +3 -0
- package/dist/help.mjs +3 -0
- package/dist/history.cjs +25 -0
- package/dist/history.d.mts +10 -0
- package/dist/history.mjs +10 -0
- package/dist/historyOwnership.cjs +253 -0
- package/dist/historyOwnership.cjs.map +1 -0
- package/dist/historyOwnership.d.mts +23 -0
- package/dist/historyOwnership.d.mts.map +1 -0
- package/dist/historyOwnership.mjs +247 -0
- package/dist/historyOwnership.mjs.map +1 -0
- package/dist/hubChannel.cjs +4 -0
- package/dist/hubChannel.d.mts +2 -0
- package/dist/hubChannel.mjs +2 -0
- package/dist/index.cjs +44 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +6 -0
- package/dist/json.cjs +6 -0
- package/dist/json.d.mts +2 -0
- package/dist/json.mjs +2 -0
- package/dist/jsonlSessionRepo.cjs +44 -0
- package/dist/jsonlSessionRepo.cjs.map +1 -0
- package/dist/jsonlSessionRepo.d.mts +7 -0
- package/dist/jsonlSessionRepo.d.mts.map +1 -0
- package/dist/jsonlSessionRepo.mjs +42 -0
- package/dist/jsonlSessionRepo.mjs.map +1 -0
- package/dist/kernel.cjs +3 -0
- package/dist/kernel.d.mts +3 -0
- package/dist/kernel.mjs +2 -0
- package/dist/leader.cjs +9 -0
- package/dist/leader.d.mts +2 -0
- package/dist/leader.mjs +2 -0
- package/dist/logSinkTelemetry.cjs +5 -0
- package/dist/logSinkTelemetry.d.mts +2 -0
- package/dist/logSinkTelemetry.mjs +2 -0
- package/dist/machineApi.cjs +92 -0
- package/dist/machineApi.cjs.map +1 -0
- package/dist/machineApi.d.mts +7 -0
- package/dist/machineApi.d.mts.map +1 -0
- package/dist/machineApi.mjs +88 -0
- package/dist/machineApi.mjs.map +1 -0
- package/dist/main.cjs +11 -0
- package/dist/main.d.mts +5 -0
- package/dist/main.mjs +4 -0
- package/dist/mcpFacet.cjs +9 -0
- package/dist/mcpFacet.d.mts +4 -0
- package/dist/mcpFacet.mjs +3 -0
- package/dist/mcpProjection.cjs +16 -0
- package/dist/mcpProjection.d.mts +2 -0
- package/dist/mcpProjection.mjs +2 -0
- package/dist/mcpSchemaCost.cjs +195 -0
- package/dist/mcpSchemaCost.cjs.map +1 -0
- package/dist/mcpSchemaCost.d.mts +35 -0
- package/dist/mcpSchemaCost.d.mts.map +1 -0
- package/dist/mcpSchemaCost.mjs +190 -0
- package/dist/mcpSchemaCost.mjs.map +1 -0
- package/dist/mcpSession.cjs +9 -0
- package/dist/mcpSession.d.mts +2 -0
- package/dist/mcpSession.mjs +2 -0
- package/dist/mcpStatus.cjs +7 -0
- package/dist/mcpStatus.d.mts +2 -0
- package/dist/mcpStatus.mjs +2 -0
- package/dist/mcpToolResolver.cjs +5 -0
- package/dist/mcpToolResolver.d.mts +2 -0
- package/dist/mcpToolResolver.mjs +2 -0
- package/dist/mcpWidget.cjs +0 -0
- package/dist/mcpWidget.d.mts +2 -0
- package/dist/mcpWidget.mjs +1 -0
- package/dist/moduleResolution.cjs +412 -0
- package/dist/moduleResolution.cjs.map +1 -0
- package/dist/moduleResolution.d.mts +72 -0
- package/dist/moduleResolution.d.mts.map +1 -0
- package/dist/moduleResolution.mjs +396 -0
- package/dist/moduleResolution.mjs.map +1 -0
- package/dist/narration.cjs +10 -0
- package/dist/narration.d.mts +2 -0
- package/dist/narration.mjs +2 -0
- package/dist/native.cjs +29 -0
- package/dist/native.d.mts +12 -0
- package/dist/native.mjs +8 -0
- package/dist/notification.cjs +17 -0
- package/dist/notification.d.mts +2 -0
- package/dist/notification.mjs +2 -0
- package/dist/packageApi.cjs +17 -0
- package/dist/packageApi.d.mts +3 -0
- package/dist/packageApi.mjs +3 -0
- package/dist/packageApiServer.cjs +196 -0
- package/dist/packageApiServer.cjs.map +1 -0
- package/dist/packageApiServer.d.mts +62 -0
- package/dist/packageApiServer.d.mts.map +1 -0
- package/dist/packageApiServer.mjs +194 -0
- package/dist/packageApiServer.mjs.map +1 -0
- package/dist/piSettings.cjs +20 -0
- package/dist/piSettings.d.mts +2 -0
- package/dist/piSettings.mjs +2 -0
- package/dist/pluginProtocol.cjs +10 -0
- package/dist/pluginProtocol.d.mts +2 -0
- package/dist/pluginProtocol.mjs +2 -0
- package/dist/profileIdentity.cjs +6 -0
- package/dist/profileIdentity.d.mts +2 -0
- package/dist/profileIdentity.mjs +2 -0
- package/dist/protocol.cjs +10 -0
- package/dist/protocol.d.mts +2 -0
- package/dist/protocol.mjs +2 -0
- package/dist/readiness.cjs +8 -0
- package/dist/readiness.d.mts +2 -0
- package/dist/readiness.mjs +2 -0
- package/dist/remoteApi.cjs +45 -0
- package/dist/remoteApi.cjs.map +1 -0
- package/dist/remoteApi.d.mts +7 -0
- package/dist/remoteApi.d.mts.map +1 -0
- package/dist/remoteApi.mjs +44 -0
- package/dist/remoteApi.mjs.map +1 -0
- package/dist/remoteRuntime.cjs +498 -0
- package/dist/remoteRuntime.cjs.map +1 -0
- package/dist/remoteRuntime.d.mts +36 -0
- package/dist/remoteRuntime.d.mts.map +1 -0
- package/dist/remoteRuntime.mjs +494 -0
- package/dist/remoteRuntime.mjs.map +1 -0
- package/dist/runtimeConfig.cjs +232 -0
- package/dist/runtimeConfig.cjs.map +1 -0
- package/dist/runtimeConfig.d.mts +313 -0
- package/dist/runtimeConfig.d.mts.map +1 -0
- package/dist/runtimeConfig.mjs +221 -0
- package/dist/runtimeConfig.mjs.map +1 -0
- package/dist/runtimeContextApi.cjs +64 -0
- package/dist/runtimeContextApi.cjs.map +1 -0
- package/dist/runtimeContextApi.d.mts +16 -0
- package/dist/runtimeContextApi.d.mts.map +1 -0
- package/dist/runtimeContextApi.mjs +62 -0
- package/dist/runtimeContextApi.mjs.map +1 -0
- package/dist/runtimeCordisHost.cjs +223 -0
- package/dist/runtimeCordisHost.cjs.map +1 -0
- package/dist/runtimeCordisHost.d.mts +78 -0
- package/dist/runtimeCordisHost.d.mts.map +1 -0
- package/dist/runtimeCordisHost.mjs +212 -0
- package/dist/runtimeCordisHost.mjs.map +1 -0
- package/dist/runtimeHeadlessSessionManager.cjs +0 -0
- package/dist/runtimeHeadlessSessionManager.d.mts +18 -0
- package/dist/runtimeHeadlessSessionManager.d.mts.map +1 -0
- package/dist/runtimeHeadlessSessionManager.mjs +1 -0
- package/dist/runtimeIdentity.cjs +26 -0
- package/dist/runtimeIdentity.cjs.map +1 -0
- package/dist/runtimeIdentity.d.mts +7 -0
- package/dist/runtimeIdentity.d.mts.map +1 -0
- package/dist/runtimeIdentity.mjs +21 -0
- package/dist/runtimeIdentity.mjs.map +1 -0
- package/dist/runtimeJson.cjs +46 -0
- package/dist/runtimeJson.cjs.map +1 -0
- package/dist/runtimeJson.d.mts +22 -0
- package/dist/runtimeJson.d.mts.map +1 -0
- package/dist/runtimeJson.mjs +39 -0
- package/dist/runtimeJson.mjs.map +1 -0
- package/dist/runtimeLogSinkTelemetry.cjs +102 -0
- package/dist/runtimeLogSinkTelemetry.cjs.map +1 -0
- package/dist/runtimeLogSinkTelemetry.d.mts +49 -0
- package/dist/runtimeLogSinkTelemetry.d.mts.map +1 -0
- package/dist/runtimeLogSinkTelemetry.mjs +99 -0
- package/dist/runtimeLogSinkTelemetry.mjs.map +1 -0
- package/dist/runtimePackages.cjs +120 -0
- package/dist/runtimePackages.cjs.map +1 -0
- package/dist/runtimePackages.d.mts +57 -0
- package/dist/runtimePackages.d.mts.map +1 -0
- package/dist/runtimePackages.mjs +110 -0
- package/dist/runtimePackages.mjs.map +1 -0
- package/dist/runtimePiSettings.cjs +257 -0
- package/dist/runtimePiSettings.cjs.map +1 -0
- package/dist/runtimePiSettings.d.mts +70 -0
- package/dist/runtimePiSettings.d.mts.map +1 -0
- package/dist/runtimePiSettings.mjs +235 -0
- package/dist/runtimePiSettings.mjs.map +1 -0
- package/dist/runtimeProtocol.cjs +228 -0
- package/dist/runtimeProtocol.cjs.map +1 -0
- package/dist/runtimeProtocol.d.mts +86 -0
- package/dist/runtimeProtocol.d.mts.map +1 -0
- package/dist/runtimeProtocol.mjs +219 -0
- package/dist/runtimeProtocol.mjs.map +1 -0
- package/dist/runtimeToolNames.cjs +51 -0
- package/dist/runtimeToolNames.cjs.map +1 -0
- package/dist/runtimeToolNames.d.mts +24 -0
- package/dist/runtimeToolNames.d.mts.map +1 -0
- package/dist/runtimeToolNames.mjs +49 -0
- package/dist/runtimeToolNames.mjs.map +1 -0
- package/dist/runtimeTransition.cjs +27 -0
- package/dist/runtimeTransition.cjs.map +1 -0
- package/dist/runtimeTransition.d.mts +114 -0
- package/dist/runtimeTransition.d.mts.map +1 -0
- package/dist/runtimeTransition.mjs +24 -0
- package/dist/runtimeTransition.mjs.map +1 -0
- package/dist/sandboxHarness.cjs +6 -0
- package/dist/sandboxHarness.d.mts +2 -0
- package/dist/sandboxHarness.mjs +2 -0
- package/dist/server.cjs +17 -0
- package/dist/server.d.mts +10 -0
- package/dist/server.mjs +7 -0
- package/dist/serverFacet.cjs +34 -0
- package/dist/serverFacet.d.mts +10 -0
- package/dist/serverFacet.mjs +9 -0
- package/dist/serverTelemetry.cjs +25 -0
- package/dist/serverTelemetry.cjs.map +1 -0
- package/dist/serverTelemetry.d.mts +12 -0
- package/dist/serverTelemetry.d.mts.map +1 -0
- package/dist/serverTelemetry.mjs +23 -0
- package/dist/serverTelemetry.mjs.map +1 -0
- package/dist/sessionFilesApi.cjs +96 -0
- package/dist/sessionFilesApi.cjs.map +1 -0
- package/dist/sessionFilesApi.d.mts +7 -0
- package/dist/sessionFilesApi.d.mts.map +1 -0
- package/dist/sessionFilesApi.mjs +91 -0
- package/dist/sessionFilesApi.mjs.map +1 -0
- package/dist/sessionMcp.cjs +6 -0
- package/dist/sessionMcp.d.mts +5 -0
- package/dist/sessionMcp.mjs +3 -0
- package/dist/sessionProtocol.cjs +8 -0
- package/dist/sessionProtocol.d.mts +3 -0
- package/dist/sessionProtocol.mjs +2 -0
- package/dist/skills.cjs +9 -0
- package/dist/skills.d.mts +2 -0
- package/dist/skills.mjs +2 -0
- package/dist/sqliteSessionStorage.cjs +168 -0
- package/dist/sqliteSessionStorage.cjs.map +1 -0
- package/dist/sqliteSessionStorage.d.mts +35 -0
- package/dist/sqliteSessionStorage.d.mts.map +1 -0
- package/dist/sqliteSessionStorage.mjs +158 -0
- package/dist/sqliteSessionStorage.mjs.map +1 -0
- package/dist/src/constants/authorTools.cjs +10 -0
- package/dist/src/constants/authorTools.cjs.map +1 -0
- package/dist/src/constants/authorTools.d.mts +6 -0
- package/dist/src/constants/authorTools.d.mts.map +1 -0
- package/dist/src/constants/authorTools.mjs +8 -0
- package/dist/src/constants/authorTools.mjs.map +1 -0
- package/dist/src/constants/contextApi.cjs +31 -0
- package/dist/src/constants/contextApi.cjs.map +1 -0
- package/dist/src/constants/contextApi.d.mts +23 -0
- package/dist/src/constants/contextApi.d.mts.map +1 -0
- package/dist/src/constants/contextApi.mjs +25 -0
- package/dist/src/constants/contextApi.mjs.map +1 -0
- package/dist/src/constants/nativeHost.cjs +56 -0
- package/dist/src/constants/nativeHost.cjs.map +1 -0
- package/dist/src/constants/nativeHost.d.mts +21 -0
- package/dist/src/constants/nativeHost.d.mts.map +1 -0
- package/dist/src/constants/nativeHost.mjs +53 -0
- package/dist/src/constants/nativeHost.mjs.map +1 -0
- package/dist/src/constants/remote.cjs +132 -0
- package/dist/src/constants/remote.cjs.map +1 -0
- package/dist/src/constants/remote.mjs +99 -0
- package/dist/src/constants/remote.mjs.map +1 -0
- package/dist/src/constants/sessionFiles.cjs +27 -0
- package/dist/src/constants/sessionFiles.cjs.map +1 -0
- package/dist/src/constants/sessionFiles.mjs +25 -0
- package/dist/src/constants/sessionFiles.mjs.map +1 -0
- package/dist/src/constants/voiceReloadHandoff.cjs +12 -0
- package/dist/src/constants/voiceReloadHandoff.cjs.map +1 -0
- package/dist/src/constants/voiceReloadHandoff.d.mts +7 -0
- package/dist/src/constants/voiceReloadHandoff.d.mts.map +1 -0
- package/dist/src/constants/voiceReloadHandoff.mjs +9 -0
- package/dist/src/constants/voiceReloadHandoff.mjs.map +1 -0
- package/dist/src/constants/voiceTools.cjs +96 -0
- package/dist/src/constants/voiceTools.cjs.map +1 -0
- package/dist/src/constants/voiceTools.d.mts +58 -0
- package/dist/src/constants/voiceTools.d.mts.map +1 -0
- package/dist/src/constants/voiceTools.mjs +60 -0
- package/dist/src/constants/voiceTools.mjs.map +1 -0
- package/dist/src/extensions/extensionFile.cjs +140 -0
- package/dist/src/extensions/extensionFile.cjs.map +1 -0
- package/dist/src/extensions/extensionFile.d.mts +69 -0
- package/dist/src/extensions/extensionFile.d.mts.map +1 -0
- package/dist/src/extensions/extensionFile.mjs +124 -0
- package/dist/src/extensions/extensionFile.mjs.map +1 -0
- package/dist/src/extensions/serverPlugin.cjs +107 -0
- package/dist/src/extensions/serverPlugin.cjs.map +1 -0
- package/dist/src/extensions/serverPlugin.d.mts +5 -0
- package/dist/src/extensions/serverPlugin.d.mts.map +1 -0
- package/dist/src/extensions/serverPlugin.mjs +107 -0
- package/dist/src/extensions/serverPlugin.mjs.map +1 -0
- package/dist/src/extensions/webPlugin.cjs +136 -0
- package/dist/src/extensions/webPlugin.cjs.map +1 -0
- package/dist/src/extensions/webPlugin.d.mts +68 -0
- package/dist/src/extensions/webPlugin.d.mts.map +1 -0
- package/dist/src/extensions/webPlugin.mjs +114 -0
- package/dist/src/extensions/webPlugin.mjs.map +1 -0
- package/dist/src/pi/piSessionRuntime.cjs +625 -0
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -0
- package/dist/src/pi/piSessionRuntime.d.mts +43 -0
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -0
- package/dist/src/pi/piSessionRuntime.mjs +624 -0
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -0
- package/dist/src/pi/piWebSocketListener.cjs +115 -0
- package/dist/src/pi/piWebSocketListener.cjs.map +1 -0
- package/dist/src/pi/piWebSocketListener.mjs +115 -0
- package/dist/src/pi/piWebSocketListener.mjs.map +1 -0
- package/dist/src/schemas/agentModel.cjs +33 -0
- package/dist/src/schemas/agentModel.cjs.map +1 -0
- package/dist/src/schemas/agentModel.d.mts +26 -0
- package/dist/src/schemas/agentModel.d.mts.map +1 -0
- package/dist/src/schemas/agentModel.mjs +32 -0
- package/dist/src/schemas/agentModel.mjs.map +1 -0
- package/dist/src/schemas/apiContracts.d.mts +58 -0
- package/dist/src/schemas/apiContracts.d.mts.map +1 -0
- package/dist/src/schemas/askUser.cjs +42 -0
- package/dist/src/schemas/askUser.cjs.map +1 -0
- package/dist/src/schemas/askUser.d.mts +47 -0
- package/dist/src/schemas/askUser.d.mts.map +1 -0
- package/dist/src/schemas/askUser.mjs +37 -0
- package/dist/src/schemas/askUser.mjs.map +1 -0
- package/dist/src/schemas/backgroundWork.cjs +44 -0
- package/dist/src/schemas/backgroundWork.cjs.map +1 -0
- package/dist/src/schemas/backgroundWork.d.mts +76 -0
- package/dist/src/schemas/backgroundWork.d.mts.map +1 -0
- package/dist/src/schemas/backgroundWork.mjs +38 -0
- package/dist/src/schemas/backgroundWork.mjs.map +1 -0
- package/dist/src/schemas/childProcess.cjs +67 -0
- package/dist/src/schemas/childProcess.cjs.map +1 -0
- package/dist/src/schemas/childProcess.d.mts +30 -0
- package/dist/src/schemas/childProcess.d.mts.map +1 -0
- package/dist/src/schemas/childProcess.mjs +55 -0
- package/dist/src/schemas/childProcess.mjs.map +1 -0
- package/dist/src/schemas/cockpitContainer.cjs +31 -0
- package/dist/src/schemas/cockpitContainer.cjs.map +1 -0
- package/dist/src/schemas/cockpitContainer.d.mts +80 -0
- package/dist/src/schemas/cockpitContainer.d.mts.map +1 -0
- package/dist/src/schemas/cockpitContainer.mjs +30 -0
- package/dist/src/schemas/cockpitContainer.mjs.map +1 -0
- package/dist/src/schemas/contextContributions.cjs +17 -0
- package/dist/src/schemas/contextContributions.cjs.map +1 -0
- package/dist/src/schemas/contextContributions.d.mts +49 -0
- package/dist/src/schemas/contextContributions.d.mts.map +1 -0
- package/dist/src/schemas/contextContributions.mjs +15 -0
- package/dist/src/schemas/contextContributions.mjs.map +1 -0
- package/dist/src/schemas/delegation.cjs +91 -0
- package/dist/src/schemas/delegation.cjs.map +1 -0
- package/dist/src/schemas/delegation.d.mts +95 -0
- package/dist/src/schemas/delegation.d.mts.map +1 -0
- package/dist/src/schemas/delegation.mjs +76 -0
- package/dist/src/schemas/delegation.mjs.map +1 -0
- package/dist/src/schemas/extensionFile.d.mts +116 -0
- package/dist/src/schemas/extensionFile.d.mts.map +1 -0
- package/dist/src/schemas/footer.cjs +48 -0
- package/dist/src/schemas/footer.cjs.map +1 -0
- package/dist/src/schemas/footer.d.mts +48 -0
- package/dist/src/schemas/footer.d.mts.map +1 -0
- package/dist/src/schemas/footer.mjs +45 -0
- package/dist/src/schemas/footer.mjs.map +1 -0
- package/dist/src/schemas/headless.cjs +97 -0
- package/dist/src/schemas/headless.cjs.map +1 -0
- package/dist/src/schemas/headless.d.mts +472 -0
- package/dist/src/schemas/headless.d.mts.map +1 -0
- package/dist/src/schemas/headless.mjs +84 -0
- package/dist/src/schemas/headless.mjs.map +1 -0
- package/dist/src/schemas/help.cjs +281 -0
- package/dist/src/schemas/help.cjs.map +1 -0
- package/dist/src/schemas/help.d.mts +119 -0
- package/dist/src/schemas/help.d.mts.map +1 -0
- package/dist/src/schemas/help.mjs +262 -0
- package/dist/src/schemas/help.mjs.map +1 -0
- package/dist/src/schemas/hubChannel.cjs +20 -0
- package/dist/src/schemas/hubChannel.cjs.map +1 -0
- package/dist/src/schemas/hubChannel.d.mts +271 -0
- package/dist/src/schemas/hubChannel.d.mts.map +1 -0
- package/dist/src/schemas/hubChannel.mjs +19 -0
- package/dist/src/schemas/hubChannel.mjs.map +1 -0
- package/dist/src/schemas/leader.cjs +57 -0
- package/dist/src/schemas/leader.cjs.map +1 -0
- package/dist/src/schemas/leader.d.mts +107 -0
- package/dist/src/schemas/leader.d.mts.map +1 -0
- package/dist/src/schemas/leader.mjs +51 -0
- package/dist/src/schemas/leader.mjs.map +1 -0
- package/dist/src/schemas/mcpBundle.d.mts +13 -0
- package/dist/src/schemas/mcpBundle.d.mts.map +1 -0
- package/dist/src/schemas/mcpFacet.cjs +24 -0
- package/dist/src/schemas/mcpFacet.cjs.map +1 -0
- package/dist/src/schemas/mcpFacet.d.mts +91 -0
- package/dist/src/schemas/mcpFacet.d.mts.map +1 -0
- package/dist/src/schemas/mcpFacet.mjs +21 -0
- package/dist/src/schemas/mcpFacet.mjs.map +1 -0
- package/dist/src/schemas/mcpProjection.cjs +117 -0
- package/dist/src/schemas/mcpProjection.cjs.map +1 -0
- package/dist/src/schemas/mcpProjection.d.mts +124 -0
- package/dist/src/schemas/mcpProjection.d.mts.map +1 -0
- package/dist/src/schemas/mcpProjection.mjs +104 -0
- package/dist/src/schemas/mcpProjection.mjs.map +1 -0
- package/dist/src/schemas/mcpSession.cjs +57 -0
- package/dist/src/schemas/mcpSession.cjs.map +1 -0
- package/dist/src/schemas/mcpSession.d.mts +57 -0
- package/dist/src/schemas/mcpSession.d.mts.map +1 -0
- package/dist/src/schemas/mcpSession.mjs +51 -0
- package/dist/src/schemas/mcpSession.mjs.map +1 -0
- package/dist/src/schemas/mcpStatus.cjs +52 -0
- package/dist/src/schemas/mcpStatus.cjs.map +1 -0
- package/dist/src/schemas/mcpStatus.d.mts +73 -0
- package/dist/src/schemas/mcpStatus.d.mts.map +1 -0
- package/dist/src/schemas/mcpStatus.mjs +48 -0
- package/dist/src/schemas/mcpStatus.mjs.map +1 -0
- package/dist/src/schemas/mcpToolResolver.cjs +17 -0
- package/dist/src/schemas/mcpToolResolver.cjs.map +1 -0
- package/dist/src/schemas/mcpToolResolver.d.mts +24 -0
- package/dist/src/schemas/mcpToolResolver.d.mts.map +1 -0
- package/dist/src/schemas/mcpToolResolver.mjs +15 -0
- package/dist/src/schemas/mcpToolResolver.mjs.map +1 -0
- package/dist/src/schemas/narration.cjs +54 -0
- package/dist/src/schemas/narration.cjs.map +1 -0
- package/dist/src/schemas/narration.d.mts +29 -0
- package/dist/src/schemas/narration.d.mts.map +1 -0
- package/dist/src/schemas/narration.mjs +47 -0
- package/dist/src/schemas/narration.mjs.map +1 -0
- package/dist/src/schemas/notification.cjs +122 -0
- package/dist/src/schemas/notification.cjs.map +1 -0
- package/dist/src/schemas/notification.d.mts +48 -0
- package/dist/src/schemas/notification.d.mts.map +1 -0
- package/dist/src/schemas/notification.mjs +108 -0
- package/dist/src/schemas/notification.mjs.map +1 -0
- package/dist/src/schemas/packageApi.cjs +76 -0
- package/dist/src/schemas/packageApi.cjs.map +1 -0
- package/dist/src/schemas/packageApi.d.mts +302 -0
- package/dist/src/schemas/packageApi.d.mts.map +1 -0
- package/dist/src/schemas/packageApi.mjs +66 -0
- package/dist/src/schemas/packageApi.mjs.map +1 -0
- package/dist/src/schemas/pluginContributions.cjs +19 -0
- package/dist/src/schemas/pluginContributions.cjs.map +1 -0
- package/dist/src/schemas/pluginContributions.d.mts +56 -0
- package/dist/src/schemas/pluginContributions.d.mts.map +1 -0
- package/dist/src/schemas/pluginContributions.mjs +18 -0
- package/dist/src/schemas/pluginContributions.mjs.map +1 -0
- package/dist/src/schemas/pluginProtocol.cjs +103 -0
- package/dist/src/schemas/pluginProtocol.cjs.map +1 -0
- package/dist/src/schemas/pluginProtocol.d.mts +70 -0
- package/dist/src/schemas/pluginProtocol.d.mts.map +1 -0
- package/dist/src/schemas/pluginProtocol.mjs +96 -0
- package/dist/src/schemas/pluginProtocol.mjs.map +1 -0
- package/dist/src/schemas/profileIdentity.cjs +67 -0
- package/dist/src/schemas/profileIdentity.cjs.map +1 -0
- package/dist/src/schemas/profileIdentity.d.mts +50 -0
- package/dist/src/schemas/profileIdentity.d.mts.map +1 -0
- package/dist/src/schemas/profileIdentity.mjs +64 -0
- package/dist/src/schemas/profileIdentity.mjs.map +1 -0
- package/dist/src/schemas/readiness.cjs +251 -0
- package/dist/src/schemas/readiness.cjs.map +1 -0
- package/dist/src/schemas/readiness.d.mts +84 -0
- package/dist/src/schemas/readiness.d.mts.map +1 -0
- package/dist/src/schemas/readiness.mjs +246 -0
- package/dist/src/schemas/readiness.mjs.map +1 -0
- package/dist/src/schemas/sandboxHarness.cjs +29 -0
- package/dist/src/schemas/sandboxHarness.cjs.map +1 -0
- package/dist/src/schemas/sandboxHarness.d.mts +39 -0
- package/dist/src/schemas/sandboxHarness.d.mts.map +1 -0
- package/dist/src/schemas/sandboxHarness.mjs +26 -0
- package/dist/src/schemas/sandboxHarness.mjs.map +1 -0
- package/dist/src/schemas/serverBundle.d.mts +19 -0
- package/dist/src/schemas/serverBundle.d.mts.map +1 -0
- package/dist/src/schemas/serverFacet.cjs +111 -0
- package/dist/src/schemas/serverFacet.cjs.map +1 -0
- package/dist/src/schemas/serverFacet.d.mts +152 -0
- package/dist/src/schemas/serverFacet.d.mts.map +1 -0
- package/dist/src/schemas/serverFacet.mjs +101 -0
- package/dist/src/schemas/serverFacet.mjs.map +1 -0
- package/dist/src/schemas/sessionMcpActivity.d.mts +47 -0
- package/dist/src/schemas/sessionMcpActivity.d.mts.map +1 -0
- package/dist/src/schemas/sessionProtocol.cjs +17 -0
- package/dist/src/schemas/sessionProtocol.cjs.map +1 -0
- package/dist/src/schemas/sessionProtocol.d.mts +313 -0
- package/dist/src/schemas/sessionProtocol.d.mts.map +1 -0
- package/dist/src/schemas/sessionProtocol.mjs +12 -0
- package/dist/src/schemas/sessionProtocol.mjs.map +1 -0
- package/dist/src/schemas/sessionUpdates.d.mts +34 -0
- package/dist/src/schemas/sessionUpdates.d.mts.map +1 -0
- package/dist/src/schemas/skills.cjs +115 -0
- package/dist/src/schemas/skills.cjs.map +1 -0
- package/dist/src/schemas/skills.d.mts +65 -0
- package/dist/src/schemas/skills.d.mts.map +1 -0
- package/dist/src/schemas/skills.mjs +109 -0
- package/dist/src/schemas/skills.mjs.map +1 -0
- package/dist/src/schemas/toolOverrides.cjs +17 -0
- package/dist/src/schemas/toolOverrides.cjs.map +1 -0
- package/dist/src/schemas/toolOverrides.d.mts +29 -0
- package/dist/src/schemas/toolOverrides.d.mts.map +1 -0
- package/dist/src/schemas/toolOverrides.mjs +15 -0
- package/dist/src/schemas/toolOverrides.mjs.map +1 -0
- package/dist/src/schemas/toolSurface.cjs +17 -0
- package/dist/src/schemas/toolSurface.cjs.map +1 -0
- package/dist/src/schemas/toolSurface.d.mts +70 -0
- package/dist/src/schemas/toolSurface.d.mts.map +1 -0
- package/dist/src/schemas/toolSurface.mjs +15 -0
- package/dist/src/schemas/toolSurface.mjs.map +1 -0
- package/dist/src/schemas/uiHub.cjs +17 -0
- package/dist/src/schemas/uiHub.cjs.map +1 -0
- package/dist/src/schemas/uiHub.d.mts +23 -0
- package/dist/src/schemas/uiHub.d.mts.map +1 -0
- package/dist/src/schemas/uiHub.mjs +15 -0
- package/dist/src/schemas/uiHub.mjs.map +1 -0
- package/dist/src/schemas/voiceReloadHandoff.cjs +78 -0
- package/dist/src/schemas/voiceReloadHandoff.cjs.map +1 -0
- package/dist/src/schemas/voiceReloadHandoff.d.mts +31 -0
- package/dist/src/schemas/voiceReloadHandoff.d.mts.map +1 -0
- package/dist/src/schemas/voiceReloadHandoff.mjs +75 -0
- package/dist/src/schemas/voiceReloadHandoff.mjs.map +1 -0
- package/dist/src/schemas/voiceTools.cjs +205 -0
- package/dist/src/schemas/voiceTools.cjs.map +1 -0
- package/dist/src/schemas/voiceTools.d.mts +120 -0
- package/dist/src/schemas/voiceTools.d.mts.map +1 -0
- package/dist/src/schemas/voiceTools.mjs +194 -0
- package/dist/src/schemas/voiceTools.mjs.map +1 -0
- package/dist/src/server/devProxyForward.cjs +141 -0
- package/dist/src/server/devProxyForward.cjs.map +1 -0
- package/dist/src/server/devProxyForward.mjs +139 -0
- package/dist/src/server/devProxyForward.mjs.map +1 -0
- package/dist/src/server/devProxyRoutes.cjs +97 -0
- package/dist/src/server/devProxyRoutes.cjs.map +1 -0
- package/dist/src/server/devProxyRoutes.mjs +97 -0
- package/dist/src/server/devProxyRoutes.mjs.map +1 -0
- package/dist/src/server/devProxySocket.cjs +93 -0
- package/dist/src/server/devProxySocket.cjs.map +1 -0
- package/dist/src/server/devProxySocket.d.mts +25 -0
- package/dist/src/server/devProxySocket.d.mts.map +1 -0
- package/dist/src/server/devProxySocket.mjs +93 -0
- package/dist/src/server/devProxySocket.mjs.map +1 -0
- package/dist/src/server/directHarnessRuntime.cjs +2387 -0
- package/dist/src/server/directHarnessRuntime.cjs.map +1 -0
- package/dist/src/server/directHarnessRuntime.d.mts +4 -0
- package/dist/src/server/directHarnessRuntime.mjs +2384 -0
- package/dist/src/server/directHarnessRuntime.mjs.map +1 -0
- package/dist/src/server/harnessErrorMessage.cjs +13 -0
- package/dist/src/server/harnessErrorMessage.cjs.map +1 -0
- package/dist/src/server/harnessErrorMessage.mjs +13 -0
- package/dist/src/server/harnessErrorMessage.mjs.map +1 -0
- package/dist/src/server/headlessProtocol.cjs +382 -0
- package/dist/src/server/headlessProtocol.cjs.map +1 -0
- package/dist/src/server/headlessProtocol.mjs +382 -0
- package/dist/src/server/headlessProtocol.mjs.map +1 -0
- package/dist/src/server/liveImport.cjs +37 -0
- package/dist/src/server/liveImport.cjs.map +1 -0
- package/dist/src/server/liveImport.d.mts +27 -0
- package/dist/src/server/liveImport.d.mts.map +1 -0
- package/dist/src/server/liveImport.mjs +34 -0
- package/dist/src/server/liveImport.mjs.map +1 -0
- package/dist/src/server/mcpBundleLoader.cjs +108 -0
- package/dist/src/server/mcpBundleLoader.cjs.map +1 -0
- package/dist/src/server/mcpBundleLoader.d.mts +46 -0
- package/dist/src/server/mcpBundleLoader.d.mts.map +1 -0
- package/dist/src/server/mcpBundleLoader.mjs +107 -0
- package/dist/src/server/mcpBundleLoader.mjs.map +1 -0
- package/dist/src/server/nativeChildTranscriptReader.cjs +20 -0
- package/dist/src/server/nativeChildTranscriptReader.cjs.map +1 -0
- package/dist/src/server/nativeChildTranscriptReader.mjs +18 -0
- package/dist/src/server/nativeChildTranscriptReader.mjs.map +1 -0
- package/dist/src/server/remoteRoutes.cjs +463 -0
- package/dist/src/server/remoteRoutes.cjs.map +1 -0
- package/dist/src/server/remoteRoutes.mjs +463 -0
- package/dist/src/server/remoteRoutes.mjs.map +1 -0
- package/dist/src/server/serverFacetLoader.cjs +214 -0
- package/dist/src/server/serverFacetLoader.cjs.map +1 -0
- package/dist/src/server/serverFacetLoader.d.mts +72 -0
- package/dist/src/server/serverFacetLoader.d.mts.map +1 -0
- package/dist/src/server/serverFacetLoader.mjs +212 -0
- package/dist/src/server/serverFacetLoader.mjs.map +1 -0
- package/dist/src/server/sessionMcpHandler.cjs +585 -0
- package/dist/src/server/sessionMcpHandler.cjs.map +1 -0
- package/dist/src/server/sessionMcpHandler.d.mts +50 -0
- package/dist/src/server/sessionMcpHandler.d.mts.map +1 -0
- package/dist/src/server/sessionMcpHandler.mjs +582 -0
- package/dist/src/server/sessionMcpHandler.mjs.map +1 -0
- package/dist/src/server/sessionMcpRoutes.cjs +809 -0
- package/dist/src/server/sessionMcpRoutes.cjs.map +1 -0
- package/dist/src/server/sessionMcpRoutes.mjs +804 -0
- package/dist/src/server/sessionMcpRoutes.mjs.map +1 -0
- package/dist/src/server/threadJournals.cjs +172 -0
- package/dist/src/server/threadJournals.cjs.map +1 -0
- package/dist/src/server/threadJournals.mjs +169 -0
- package/dist/src/server/threadJournals.mjs.map +1 -0
- package/dist/src/services/acpSessionUpdates/index.cjs +129 -0
- package/dist/src/services/acpSessionUpdates/index.cjs.map +1 -0
- package/dist/src/services/acpSessionUpdates/index.mjs +129 -0
- package/dist/src/services/acpSessionUpdates/index.mjs.map +1 -0
- package/dist/src/services/apiSurfaceAssert/index.cjs +60 -0
- package/dist/src/services/apiSurfaceAssert/index.cjs.map +1 -0
- package/dist/src/services/apiSurfaceAssert/index.d.mts +24 -0
- package/dist/src/services/apiSurfaceAssert/index.d.mts.map +1 -0
- package/dist/src/services/apiSurfaceAssert/index.mjs +60 -0
- package/dist/src/services/apiSurfaceAssert/index.mjs.map +1 -0
- package/dist/src/services/bundlePublication/index.cjs +89 -0
- package/dist/src/services/bundlePublication/index.cjs.map +1 -0
- package/dist/src/services/bundlePublication/index.mjs +86 -0
- package/dist/src/services/bundlePublication/index.mjs.map +1 -0
- package/dist/src/services/contextApiUrls/index.cjs +53 -0
- package/dist/src/services/contextApiUrls/index.cjs.map +1 -0
- package/dist/src/services/contextApiUrls/index.d.mts +8 -0
- package/dist/src/services/contextApiUrls/index.d.mts.map +1 -0
- package/dist/src/services/contextApiUrls/index.mjs +52 -0
- package/dist/src/services/contextApiUrls/index.mjs.map +1 -0
- package/dist/src/services/contextContributions/index.cjs +79 -0
- package/dist/src/services/contextContributions/index.cjs.map +1 -0
- package/dist/src/services/contextContributions/index.d.mts +6 -0
- package/dist/src/services/contextContributions/index.d.mts.map +1 -0
- package/dist/src/services/contextContributions/index.mjs +79 -0
- package/dist/src/services/contextContributions/index.mjs.map +1 -0
- package/dist/src/services/contextUsage/index.cjs +27 -0
- package/dist/src/services/contextUsage/index.cjs.map +1 -0
- package/dist/src/services/contextUsage/index.mjs +25 -0
- package/dist/src/services/contextUsage/index.mjs.map +1 -0
- package/dist/src/services/devProxyPolicy/index.cjs +168 -0
- package/dist/src/services/devProxyPolicy/index.cjs.map +1 -0
- package/dist/src/services/devProxyPolicy/index.mjs +165 -0
- package/dist/src/services/devProxyPolicy/index.mjs.map +1 -0
- package/dist/src/services/devProxyStore/index.cjs +107 -0
- package/dist/src/services/devProxyStore/index.cjs.map +1 -0
- package/dist/src/services/devProxyStore/index.mjs +104 -0
- package/dist/src/services/devProxyStore/index.mjs.map +1 -0
- package/dist/src/services/deviceAuth/index.cjs +146 -0
- package/dist/src/services/deviceAuth/index.cjs.map +1 -0
- package/dist/src/services/deviceAuth/index.d.mts +9 -0
- package/dist/src/services/deviceAuth/index.d.mts.map +1 -0
- package/dist/src/services/deviceAuth/index.mjs +146 -0
- package/dist/src/services/deviceAuth/index.mjs.map +1 -0
- package/dist/src/services/deviceSessions/index.cjs +147 -0
- package/dist/src/services/deviceSessions/index.cjs.map +1 -0
- package/dist/src/services/deviceSessions/index.d.mts +18 -0
- package/dist/src/services/deviceSessions/index.d.mts.map +1 -0
- package/dist/src/services/deviceSessions/index.mjs +141 -0
- package/dist/src/services/deviceSessions/index.mjs.map +1 -0
- package/dist/src/services/deviceTrust/index.cjs +294 -0
- package/dist/src/services/deviceTrust/index.cjs.map +1 -0
- package/dist/src/services/deviceTrust/index.mjs +282 -0
- package/dist/src/services/deviceTrust/index.mjs.map +1 -0
- package/dist/src/services/durableNavigation/index.cjs +46 -0
- package/dist/src/services/durableNavigation/index.cjs.map +1 -0
- package/dist/src/services/durableNavigation/index.mjs +45 -0
- package/dist/src/services/durableNavigation/index.mjs.map +1 -0
- package/dist/src/services/headlessClient/index.cjs +126 -0
- package/dist/src/services/headlessClient/index.cjs.map +1 -0
- package/dist/src/services/headlessClient/index.mjs +126 -0
- package/dist/src/services/headlessClient/index.mjs.map +1 -0
- package/dist/src/services/historyImport/index.cjs +8 -0
- package/dist/src/services/historyImport/index.cjs.map +1 -0
- package/dist/src/services/historyImport/index.d.mts +68 -0
- package/dist/src/services/historyImport/index.d.mts.map +1 -0
- package/dist/src/services/historyImport/index.mjs +8 -0
- package/dist/src/services/historyImport/index.mjs.map +1 -0
- package/dist/src/services/hubChannelHarness/index.cjs +50 -0
- package/dist/src/services/hubChannelHarness/index.cjs.map +1 -0
- package/dist/src/services/hubChannelHarness/index.d.mts +17 -0
- package/dist/src/services/hubChannelHarness/index.d.mts.map +1 -0
- package/dist/src/services/hubChannelHarness/index.mjs +50 -0
- package/dist/src/services/hubChannelHarness/index.mjs.map +1 -0
- package/dist/src/services/kernel/index.cjs +147 -0
- package/dist/src/services/kernel/index.cjs.map +1 -0
- package/dist/src/services/kernel/index.d.mts +9 -0
- package/dist/src/services/kernel/index.d.mts.map +1 -0
- package/dist/src/services/kernel/index.mjs +147 -0
- package/dist/src/services/kernel/index.mjs.map +1 -0
- package/dist/src/services/loginFlow/index.cjs +131 -0
- package/dist/src/services/loginFlow/index.cjs.map +1 -0
- package/dist/src/services/loginFlow/index.mjs +131 -0
- package/dist/src/services/loginFlow/index.mjs.map +1 -0
- package/dist/src/services/loopbackAddress/index.cjs +58 -0
- package/dist/src/services/loopbackAddress/index.cjs.map +1 -0
- package/dist/src/services/loopbackAddress/index.mjs +56 -0
- package/dist/src/services/loopbackAddress/index.mjs.map +1 -0
- package/dist/src/services/openSessionRegistry/index.cjs +134 -0
- package/dist/src/services/openSessionRegistry/index.cjs.map +1 -0
- package/dist/src/services/openSessionRegistry/index.d.mts +36 -0
- package/dist/src/services/openSessionRegistry/index.d.mts.map +1 -0
- package/dist/src/services/openSessionRegistry/index.mjs +131 -0
- package/dist/src/services/openSessionRegistry/index.mjs.map +1 -0
- package/dist/src/services/packageApiHarness/index.cjs +36 -0
- package/dist/src/services/packageApiHarness/index.cjs.map +1 -0
- package/dist/src/services/packageApiHarness/index.d.mts +40 -0
- package/dist/src/services/packageApiHarness/index.d.mts.map +1 -0
- package/dist/src/services/packageApiHarness/index.mjs +36 -0
- package/dist/src/services/packageApiHarness/index.mjs.map +1 -0
- package/dist/src/services/packageResource/index.cjs +54 -0
- package/dist/src/services/packageResource/index.cjs.map +1 -0
- package/dist/src/services/packageResource/index.d.mts +26 -0
- package/dist/src/services/packageResource/index.d.mts.map +1 -0
- package/dist/src/services/packageResource/index.mjs +51 -0
- package/dist/src/services/packageResource/index.mjs.map +1 -0
- package/dist/src/services/pairingFlow/index.cjs +145 -0
- package/dist/src/services/pairingFlow/index.cjs.map +1 -0
- package/dist/src/services/pairingFlow/index.d.mts +44 -0
- package/dist/src/services/pairingFlow/index.d.mts.map +1 -0
- package/dist/src/services/pairingFlow/index.mjs +145 -0
- package/dist/src/services/pairingFlow/index.mjs.map +1 -0
- package/dist/src/services/pairingPage/index.cjs +450 -0
- package/dist/src/services/pairingPage/index.cjs.map +1 -0
- package/dist/src/services/pairingPage/index.mjs +447 -0
- package/dist/src/services/pairingPage/index.mjs.map +1 -0
- package/dist/src/services/piExtensionHost/index.cjs +889 -0
- package/dist/src/services/piExtensionHost/index.cjs.map +1 -0
- package/dist/src/services/piExtensionHost/index.mjs +885 -0
- package/dist/src/services/piExtensionHost/index.mjs.map +1 -0
- package/dist/src/services/piHelpTools/index.cjs +68 -0
- package/dist/src/services/piHelpTools/index.cjs.map +1 -0
- package/dist/src/services/piHelpTools/index.d.mts +10 -0
- package/dist/src/services/piHelpTools/index.d.mts.map +1 -0
- package/dist/src/services/piHelpTools/index.mjs +68 -0
- package/dist/src/services/piHelpTools/index.mjs.map +1 -0
- package/dist/src/services/piSessionEntries/index.cjs +121 -0
- package/dist/src/services/piSessionEntries/index.cjs.map +1 -0
- package/dist/src/services/piSessionEntries/index.mjs +117 -0
- package/dist/src/services/piSessionEntries/index.mjs.map +1 -0
- package/dist/src/services/pluginLifecycle/index.cjs +71 -0
- package/dist/src/services/pluginLifecycle/index.cjs.map +1 -0
- package/dist/src/services/pluginLifecycle/index.d.mts +8 -0
- package/dist/src/services/pluginLifecycle/index.d.mts.map +1 -0
- package/dist/src/services/pluginLifecycle/index.mjs +71 -0
- package/dist/src/services/pluginLifecycle/index.mjs.map +1 -0
- package/dist/src/services/providerAuth/index.cjs +156 -0
- package/dist/src/services/providerAuth/index.cjs.map +1 -0
- package/dist/src/services/providerAuth/index.mjs +154 -0
- package/dist/src/services/providerAuth/index.mjs.map +1 -0
- package/dist/src/services/publicFileShares/index.cjs +192 -0
- package/dist/src/services/publicFileShares/index.cjs.map +1 -0
- package/dist/src/services/publicFileShares/index.d.mts +16 -0
- package/dist/src/services/publicFileShares/index.d.mts.map +1 -0
- package/dist/src/services/publicFileShares/index.mjs +188 -0
- package/dist/src/services/publicFileShares/index.mjs.map +1 -0
- package/dist/src/services/remoteAccess/index.cjs +567 -0
- package/dist/src/services/remoteAccess/index.cjs.map +1 -0
- package/dist/src/services/remoteAccess/index.d.mts +121 -0
- package/dist/src/services/remoteAccess/index.d.mts.map +1 -0
- package/dist/src/services/remoteAccess/index.mjs +567 -0
- package/dist/src/services/remoteAccess/index.mjs.map +1 -0
- package/dist/src/services/remoteAccessSettings/index.cjs +151 -0
- package/dist/src/services/remoteAccessSettings/index.cjs.map +1 -0
- package/dist/src/services/remoteAccessSettings/index.mjs +149 -0
- package/dist/src/services/remoteAccessSettings/index.mjs.map +1 -0
- package/dist/src/services/remoteAccessStore/index.cjs +197 -0
- package/dist/src/services/remoteAccessStore/index.cjs.map +1 -0
- package/dist/src/services/remoteAccessStore/index.mjs +192 -0
- package/dist/src/services/remoteAccessStore/index.mjs.map +1 -0
- package/dist/src/services/remoteGuardPolicy/index.cjs +200 -0
- package/dist/src/services/remoteGuardPolicy/index.cjs.map +1 -0
- package/dist/src/services/remoteGuardPolicy/index.d.mts +7 -0
- package/dist/src/services/remoteGuardPolicy/index.d.mts.map +1 -0
- package/dist/src/services/remoteGuardPolicy/index.mjs +196 -0
- package/dist/src/services/remoteGuardPolicy/index.mjs.map +1 -0
- package/dist/src/services/requestReceipts/index.cjs +167 -0
- package/dist/src/services/requestReceipts/index.cjs.map +1 -0
- package/dist/src/services/requestReceipts/index.d.mts +11 -0
- package/dist/src/services/requestReceipts/index.d.mts.map +1 -0
- package/dist/src/services/requestReceipts/index.mjs +167 -0
- package/dist/src/services/requestReceipts/index.mjs.map +1 -0
- package/dist/src/services/rpcTranscript/index.cjs +633 -0
- package/dist/src/services/rpcTranscript/index.cjs.map +1 -0
- package/dist/src/services/rpcTranscript/index.d.mts +50 -0
- package/dist/src/services/rpcTranscript/index.d.mts.map +1 -0
- package/dist/src/services/rpcTranscript/index.mjs +632 -0
- package/dist/src/services/rpcTranscript/index.mjs.map +1 -0
- package/dist/src/services/serverFacet/index.cjs +197 -0
- package/dist/src/services/serverFacet/index.cjs.map +1 -0
- package/dist/src/services/serverFacet/index.d.mts +31 -0
- package/dist/src/services/serverFacet/index.d.mts.map +1 -0
- package/dist/src/services/serverFacet/index.mjs +197 -0
- package/dist/src/services/serverFacet/index.mjs.map +1 -0
- package/dist/src/services/sessionAttachments/index.cjs +111 -0
- package/dist/src/services/sessionAttachments/index.cjs.map +1 -0
- package/dist/src/services/sessionAttachments/index.d.mts +11 -0
- package/dist/src/services/sessionAttachments/index.d.mts.map +1 -0
- package/dist/src/services/sessionAttachments/index.mjs +107 -0
- package/dist/src/services/sessionAttachments/index.mjs.map +1 -0
- package/dist/src/services/sessionGitStatus/index.cjs +46 -0
- package/dist/src/services/sessionGitStatus/index.cjs.map +1 -0
- package/dist/src/services/sessionGitStatus/index.mjs +46 -0
- package/dist/src/services/sessionGitStatus/index.mjs.map +1 -0
- package/dist/src/services/sessionGitStatus/type.d.mts +8 -0
- package/dist/src/services/sessionGitStatus/type.d.mts.map +1 -0
- package/dist/src/services/sessionMcpActivity/index.cjs +115 -0
- package/dist/src/services/sessionMcpActivity/index.cjs.map +1 -0
- package/dist/src/services/sessionMcpActivity/index.mjs +111 -0
- package/dist/src/services/sessionMcpActivity/index.mjs.map +1 -0
- package/dist/src/services/sessionMcpAuthorization/index.cjs +473 -0
- package/dist/src/services/sessionMcpAuthorization/index.cjs.map +1 -0
- package/dist/src/services/sessionMcpAuthorization/index.d.mts +125 -0
- package/dist/src/services/sessionMcpAuthorization/index.d.mts.map +1 -0
- package/dist/src/services/sessionMcpAuthorization/index.mjs +469 -0
- package/dist/src/services/sessionMcpAuthorization/index.mjs.map +1 -0
- package/dist/src/services/sessionMcpConversations/index.cjs +217 -0
- package/dist/src/services/sessionMcpConversations/index.cjs.map +1 -0
- package/dist/src/services/sessionMcpConversations/index.mjs +212 -0
- package/dist/src/services/sessionMcpConversations/index.mjs.map +1 -0
- package/dist/src/services/sessionMcpRegistrationStore/index.cjs +86 -0
- package/dist/src/services/sessionMcpRegistrationStore/index.cjs.map +1 -0
- package/dist/src/services/sessionMcpRegistrationStore/index.mjs +83 -0
- package/dist/src/services/sessionMcpRegistrationStore/index.mjs.map +1 -0
- package/dist/src/services/sessionPresentation/index.cjs +120 -0
- package/dist/src/services/sessionPresentation/index.cjs.map +1 -0
- package/dist/src/services/sessionPresentation/index.mjs +120 -0
- package/dist/src/services/sessionPresentation/index.mjs.map +1 -0
- package/dist/src/services/sqliteSessionHistory/index.cjs +97 -0
- package/dist/src/services/sqliteSessionHistory/index.cjs.map +1 -0
- package/dist/src/services/sqliteSessionHistory/index.d.mts +28 -0
- package/dist/src/services/sqliteSessionHistory/index.d.mts.map +1 -0
- package/dist/src/services/sqliteSessionHistory/index.mjs +92 -0
- package/dist/src/services/sqliteSessionHistory/index.mjs.map +1 -0
- package/dist/src/services/sqliteTranscriptReader/index.cjs +67 -0
- package/dist/src/services/sqliteTranscriptReader/index.cjs.map +1 -0
- package/dist/src/services/sqliteTranscriptReader/index.d.mts +14 -0
- package/dist/src/services/sqliteTranscriptReader/index.d.mts.map +1 -0
- package/dist/src/services/sqliteTranscriptReader/index.mjs +65 -0
- package/dist/src/services/sqliteTranscriptReader/index.mjs.map +1 -0
- package/dist/src/services/toolCost/index.cjs +47 -0
- package/dist/src/services/toolCost/index.cjs.map +1 -0
- package/dist/src/services/toolCost/index.d.mts +38 -0
- package/dist/src/services/toolCost/index.d.mts.map +1 -0
- package/dist/src/services/toolCost/index.mjs +46 -0
- package/dist/src/services/toolCost/index.mjs.map +1 -0
- package/dist/src/services/toolOverrides/index.cjs +45 -0
- package/dist/src/services/toolOverrides/index.cjs.map +1 -0
- package/dist/src/services/toolOverrides/index.d.mts +6 -0
- package/dist/src/services/toolOverrides/index.d.mts.map +1 -0
- package/dist/src/services/toolOverrides/index.mjs +45 -0
- package/dist/src/services/toolOverrides/index.mjs.map +1 -0
- package/dist/src/services/toolPrompt/index.cjs +13 -0
- package/dist/src/services/toolPrompt/index.cjs.map +1 -0
- package/dist/src/services/toolPrompt/index.mjs +13 -0
- package/dist/src/services/toolPrompt/index.mjs.map +1 -0
- package/dist/src/services/toolSurface/index.cjs +134 -0
- package/dist/src/services/toolSurface/index.cjs.map +1 -0
- package/dist/src/services/toolSurface/index.d.mts +19 -0
- package/dist/src/services/toolSurface/index.d.mts.map +1 -0
- package/dist/src/services/toolSurface/index.mjs +134 -0
- package/dist/src/services/toolSurface/index.mjs.map +1 -0
- package/dist/src/services/traceContext/index.cjs +13 -0
- package/dist/src/services/traceContext/index.cjs.map +1 -0
- package/dist/src/services/traceContext/index.mjs +13 -0
- package/dist/src/services/traceContext/index.mjs.map +1 -0
- package/dist/src/services/transcriptPages/index.cjs +117 -0
- package/dist/src/services/transcriptPages/index.cjs.map +1 -0
- package/dist/src/services/transcriptPages/index.mjs +115 -0
- package/dist/src/services/transcriptPages/index.mjs.map +1 -0
- package/dist/src/services/tunnelOutput/index.cjs +58 -0
- package/dist/src/services/tunnelOutput/index.cjs.map +1 -0
- package/dist/src/services/tunnelOutput/index.mjs +54 -0
- package/dist/src/services/tunnelOutput/index.mjs.map +1 -0
- package/dist/src/services/tunnelProcess/index.cjs +487 -0
- package/dist/src/services/tunnelProcess/index.cjs.map +1 -0
- package/dist/src/services/tunnelProcess/index.mjs +481 -0
- package/dist/src/services/tunnelProcess/index.mjs.map +1 -0
- package/dist/src/services/voiceReloadHandoff/index.cjs +136 -0
- package/dist/src/services/voiceReloadHandoff/index.cjs.map +1 -0
- package/dist/src/services/voiceReloadHandoff/index.d.mts +34 -0
- package/dist/src/services/voiceReloadHandoff/index.d.mts.map +1 -0
- package/dist/src/services/voiceReloadHandoff/index.mjs +135 -0
- package/dist/src/services/voiceReloadHandoff/index.mjs.map +1 -0
- package/dist/src/services/voiceToolsContract/index.cjs +26 -0
- package/dist/src/services/voiceToolsContract/index.cjs.map +1 -0
- package/dist/src/services/voiceToolsContract/index.d.mts +76 -0
- package/dist/src/services/voiceToolsContract/index.d.mts.map +1 -0
- package/dist/src/services/voiceToolsContract/index.mjs +24 -0
- package/dist/src/services/voiceToolsContract/index.mjs.map +1 -0
- package/dist/src/services/webauthn/index.cjs +262 -0
- package/dist/src/services/webauthn/index.cjs.map +1 -0
- package/dist/src/services/webauthn/index.d.mts +39 -0
- package/dist/src/services/webauthn/index.d.mts.map +1 -0
- package/dist/src/services/webauthn/index.mjs +262 -0
- package/dist/src/services/webauthn/index.mjs.map +1 -0
- package/dist/src/services/webauthnPolicy/index.cjs +174 -0
- package/dist/src/services/webauthnPolicy/index.cjs.map +1 -0
- package/dist/src/services/webauthnPolicy/index.d.mts +41 -0
- package/dist/src/services/webauthnPolicy/index.d.mts.map +1 -0
- package/dist/src/services/webauthnPolicy/index.mjs +167 -0
- package/dist/src/services/webauthnPolicy/index.mjs.map +1 -0
- package/dist/src/services/workspaceRegistry/index.cjs +187 -0
- package/dist/src/services/workspaceRegistry/index.cjs.map +1 -0
- package/dist/src/services/workspaceRegistry/index.d.mts +47 -0
- package/dist/src/services/workspaceRegistry/index.d.mts.map +1 -0
- package/dist/src/services/workspaceRegistry/index.mjs +179 -0
- package/dist/src/services/workspaceRegistry/index.mjs.map +1 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs +466 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs.map +1 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts +36 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts.map +1 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs +457 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs.map +1 -0
- package/dist/src/systems/child/adapters/nativeChildRuntimes.cjs +28 -0
- package/dist/src/systems/child/adapters/nativeChildRuntimes.cjs.map +1 -0
- package/dist/src/systems/child/adapters/nativeChildRuntimes.mjs +25 -0
- package/dist/src/systems/child/adapters/nativeChildRuntimes.mjs.map +1 -0
- package/dist/src/systems/child/services/childSession/index.cjs +219 -0
- package/dist/src/systems/child/services/childSession/index.cjs.map +1 -0
- package/dist/src/systems/child/services/childSession/index.d.mts +14 -0
- package/dist/src/systems/child/services/childSession/index.d.mts.map +1 -0
- package/dist/src/systems/child/services/childSession/index.mjs +219 -0
- package/dist/src/systems/child/services/childSession/index.mjs.map +1 -0
- package/dist/src/systems/child/types/childSession.cjs +21 -0
- package/dist/src/systems/child/types/childSession.cjs.map +1 -0
- package/dist/src/systems/child/types/childSession.d.mts +182 -0
- package/dist/src/systems/child/types/childSession.d.mts.map +1 -0
- package/dist/src/systems/child/types/childSession.mjs +17 -0
- package/dist/src/systems/child/types/childSession.mjs.map +1 -0
- package/dist/src/systems/main/adapters/headlessHost.cjs +597 -0
- package/dist/src/systems/main/adapters/headlessHost.cjs.map +1 -0
- package/dist/src/systems/main/adapters/headlessHost.d.mts +116 -0
- package/dist/src/systems/main/adapters/headlessHost.d.mts.map +1 -0
- package/dist/src/systems/main/adapters/headlessHost.mjs +595 -0
- package/dist/src/systems/main/adapters/headlessHost.mjs.map +1 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs +1668 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs.map +1 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts +20 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts.map +1 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs +1663 -0
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs.map +1 -0
- package/dist/src/systems/main/types/headlessHost.d.mts +37 -0
- package/dist/src/systems/main/types/headlessHost.d.mts.map +1 -0
- package/dist/src/testing/pi/extensionScenarios.cjs +73 -0
- package/dist/src/testing/pi/extensionScenarios.cjs.map +1 -0
- package/dist/src/testing/pi/extensionScenarios.d.mts +41 -0
- package/dist/src/testing/pi/extensionScenarios.d.mts.map +1 -0
- package/dist/src/testing/pi/extensionScenarios.mjs +73 -0
- package/dist/src/testing/pi/extensionScenarios.mjs.map +1 -0
- package/dist/src/testing/pi/testHost.cjs +399 -0
- package/dist/src/testing/pi/testHost.cjs.map +1 -0
- package/dist/src/testing/pi/testHost.d.mts +160 -0
- package/dist/src/testing/pi/testHost.d.mts.map +1 -0
- package/dist/src/testing/pi/testHost.mjs +399 -0
- package/dist/src/testing/pi/testHost.mjs.map +1 -0
- package/dist/src/types/config.d.mts +20 -0
- package/dist/src/types/config.d.mts.map +1 -0
- package/dist/src/types/kernel.d.mts +69 -0
- package/dist/src/types/kernel.d.mts.map +1 -0
- package/dist/src/types/remote.d.mts +152 -0
- package/dist/src/types/remote.d.mts.map +1 -0
- package/dist/src/types/server/directHarnessRuntime.d.mts +526 -0
- package/dist/src/types/server/directHarnessRuntime.d.mts.map +1 -0
- package/dist/src/types/server/session.d.mts +5 -0
- package/dist/src/types/server/session.d.mts.map +1 -0
- package/dist/src/types/server/sessionToolSurface.d.mts +44 -0
- package/dist/src/types/server/sessionToolSurface.d.mts.map +1 -0
- package/dist/src/web/models/globalStore.cjs +23 -0
- package/dist/src/web/models/globalStore.cjs.map +1 -0
- package/dist/src/web/models/globalStore.d.mts +6 -0
- package/dist/src/web/models/globalStore.d.mts.map +1 -0
- package/dist/src/web/models/globalStore.mjs +23 -0
- package/dist/src/web/models/globalStore.mjs.map +1 -0
- package/dist/src/web/models/sessionStore.cjs +56 -0
- package/dist/src/web/models/sessionStore.cjs.map +1 -0
- package/dist/src/web/models/sessionStore.d.mts +14 -0
- package/dist/src/web/models/sessionStore.d.mts.map +1 -0
- package/dist/src/web/models/sessionStore.mjs +56 -0
- package/dist/src/web/models/sessionStore.mjs.map +1 -0
- package/dist/src/web/models/workspaceStore.cjs +50 -0
- package/dist/src/web/models/workspaceStore.cjs.map +1 -0
- package/dist/src/web/models/workspaceStore.d.mts +18 -0
- package/dist/src/web/models/workspaceStore.d.mts.map +1 -0
- package/dist/src/web/models/workspaceStore.mjs +50 -0
- package/dist/src/web/models/workspaceStore.mjs.map +1 -0
- package/dist/src/web/schemas/bundleAssetPolicy.cjs +20 -0
- package/dist/src/web/schemas/bundleAssetPolicy.cjs.map +1 -0
- package/dist/src/web/schemas/bundleAssetPolicy.d.mts +10 -0
- package/dist/src/web/schemas/bundleAssetPolicy.d.mts.map +1 -0
- package/dist/src/web/schemas/bundleAssetPolicy.mjs +18 -0
- package/dist/src/web/schemas/bundleAssetPolicy.mjs.map +1 -0
- package/dist/src/web/schemas/template.cjs +35 -0
- package/dist/src/web/schemas/template.cjs.map +1 -0
- package/dist/src/web/schemas/template.d.mts +9 -0
- package/dist/src/web/schemas/template.d.mts.map +1 -0
- package/dist/src/web/schemas/template.mjs +34 -0
- package/dist/src/web/schemas/template.mjs.map +1 -0
- package/dist/src/web/services/apiClient/index.cjs +156 -0
- package/dist/src/web/services/apiClient/index.cjs.map +1 -0
- package/dist/src/web/services/apiClient/index.d.mts +152 -0
- package/dist/src/web/services/apiClient/index.d.mts.map +1 -0
- package/dist/src/web/services/apiClient/index.mjs +154 -0
- package/dist/src/web/services/apiClient/index.mjs.map +1 -0
- package/dist/src/web/services/apiPaths/index.cjs +83 -0
- package/dist/src/web/services/apiPaths/index.cjs.map +1 -0
- package/dist/src/web/services/apiPaths/index.d.mts +81 -0
- package/dist/src/web/services/apiPaths/index.d.mts.map +1 -0
- package/dist/src/web/services/apiPaths/index.mjs +78 -0
- package/dist/src/web/services/apiPaths/index.mjs.map +1 -0
- package/dist/src/web/services/apiRoutes/index.cjs +47 -0
- package/dist/src/web/services/apiRoutes/index.cjs.map +1 -0
- package/dist/src/web/services/apiRoutes/index.d.mts +21 -0
- package/dist/src/web/services/apiRoutes/index.d.mts.map +1 -0
- package/dist/src/web/services/apiRoutes/index.mjs +43 -0
- package/dist/src/web/services/apiRoutes/index.mjs.map +1 -0
- package/dist/src/web/services/mcpWidget.cjs +9 -0
- package/dist/src/web/services/mcpWidget.cjs.map +1 -0
- package/dist/src/web/services/mcpWidget.d.mts +6 -0
- package/dist/src/web/services/mcpWidget.d.mts.map +1 -0
- package/dist/src/web/services/mcpWidget.mjs +9 -0
- package/dist/src/web/services/mcpWidget.mjs.map +1 -0
- package/dist/src/web/services/sessionRegistry/index.cjs +70 -0
- package/dist/src/web/services/sessionRegistry/index.cjs.map +1 -0
- package/dist/src/web/services/sessionRegistry/index.d.mts +29 -0
- package/dist/src/web/services/sessionRegistry/index.d.mts.map +1 -0
- package/dist/src/web/services/sessionRegistry/index.mjs +66 -0
- package/dist/src/web/services/sessionRegistry/index.mjs.map +1 -0
- package/dist/src/web/services/testing/channels.cjs +11 -0
- package/dist/src/web/services/testing/channels.cjs.map +1 -0
- package/dist/src/web/services/testing/channels.d.mts +8 -0
- package/dist/src/web/services/testing/channels.d.mts.map +1 -0
- package/dist/src/web/services/testing/channels.mjs +11 -0
- package/dist/src/web/services/testing/channels.mjs.map +1 -0
- package/dist/src/web/services/testing/index.cjs +27 -0
- package/dist/src/web/services/testing/index.cjs.map +1 -0
- package/dist/src/web/services/testing/index.d.mts +31 -0
- package/dist/src/web/services/testing/index.d.mts.map +1 -0
- package/dist/src/web/services/testing/index.mjs +27 -0
- package/dist/src/web/services/testing/index.mjs.map +1 -0
- package/dist/src/web/services/testing/rpcStub.cjs +58 -0
- package/dist/src/web/services/testing/rpcStub.cjs.map +1 -0
- package/dist/src/web/services/testing/rpcStub.d.mts +37 -0
- package/dist/src/web/services/testing/rpcStub.d.mts.map +1 -0
- package/dist/src/web/services/testing/rpcStub.mjs +58 -0
- package/dist/src/web/services/testing/rpcStub.mjs.map +1 -0
- package/dist/src/web/services/testing/slotProps.cjs +97 -0
- package/dist/src/web/services/testing/slotProps.cjs.map +1 -0
- package/dist/src/web/services/testing/slotProps.d.mts +69 -0
- package/dist/src/web/services/testing/slotProps.d.mts.map +1 -0
- package/dist/src/web/services/testing/slotProps.mjs +96 -0
- package/dist/src/web/services/testing/slotProps.mjs.map +1 -0
- package/dist/src/web/services/testing/templateRail.cjs +156 -0
- package/dist/src/web/services/testing/templateRail.cjs.map +1 -0
- package/dist/src/web/services/testing/templateRail.d.mts +32 -0
- package/dist/src/web/services/testing/templateRail.d.mts.map +1 -0
- package/dist/src/web/services/testing/templateRail.mjs +154 -0
- package/dist/src/web/services/testing/templateRail.mjs.map +1 -0
- package/dist/src/web/services/toolResult/index.cjs +30 -0
- package/dist/src/web/services/toolResult/index.cjs.map +1 -0
- package/dist/src/web/services/toolResult/index.d.mts +14 -0
- package/dist/src/web/services/toolResult/index.d.mts.map +1 -0
- package/dist/src/web/services/toolResult/index.mjs +29 -0
- package/dist/src/web/services/toolResult/index.mjs.map +1 -0
- package/dist/src/web/types/extensionFile.d.mts +62 -0
- package/dist/src/web/types/extensionFile.d.mts.map +1 -0
- package/dist/src/web/types/mcpWidget.d.mts +14 -0
- package/dist/src/web/types/mcpWidget.d.mts.map +1 -0
- package/dist/src/web/types/modelContext.d.mts +43 -0
- package/dist/src/web/types/modelContext.d.mts.map +1 -0
- package/dist/src/web/types/nativeTemplate.d.mts +29 -0
- package/dist/src/web/types/nativeTemplate.d.mts.map +1 -0
- package/dist/src/web/types/sessionRegistry.d.mts +46 -0
- package/dist/src/web/types/sessionRegistry.d.mts.map +1 -0
- package/dist/src/web/types/template.d.mts +135 -0
- package/dist/src/web/types/template.d.mts.map +1 -0
- package/dist/src/web/types/webPlugin.d.mts +915 -0
- package/dist/src/web/types/webPlugin.d.mts.map +1 -0
- package/dist/terminalPiChildSessionService.cjs +324 -0
- package/dist/terminalPiChildSessionService.cjs.map +1 -0
- package/dist/terminalPiChildSessionService.d.mts +46 -0
- package/dist/terminalPiChildSessionService.d.mts.map +1 -0
- package/dist/terminalPiChildSessionService.mjs +318 -0
- package/dist/terminalPiChildSessionService.mjs.map +1 -0
- package/dist/testing.cjs +11 -0
- package/dist/testing.d.mts +6 -0
- package/dist/testing.mjs +6 -0
- package/dist/toolInventory.cjs +136 -0
- package/dist/toolInventory.cjs.map +1 -0
- package/dist/toolInventory.d.mts +66 -0
- package/dist/toolInventory.d.mts.map +1 -0
- package/dist/toolInventory.mjs +133 -0
- package/dist/toolInventory.mjs.map +1 -0
- package/dist/toolNames.cjs +4 -0
- package/dist/toolNames.d.mts +2 -0
- package/dist/toolNames.mjs +2 -0
- package/dist/toolOverrides.cjs +7 -0
- package/dist/toolOverrides.d.mts +3 -0
- package/dist/toolOverrides.mjs +3 -0
- package/dist/toolSurface.cjs +7 -0
- package/dist/toolSurface.d.mts +3 -0
- package/dist/toolSurface.mjs +3 -0
- package/dist/transition.cjs +5 -0
- package/dist/transition.d.cjs +5 -0
- package/dist/transition.d.mts +2 -0
- package/dist/transition.mjs +2 -0
- package/dist/transitionClassifier.cjs +112 -0
- package/dist/transitionClassifier.cjs.map +1 -0
- package/dist/transitionClassifier.d.mts +18 -0
- package/dist/transitionClassifier.d.mts.map +1 -0
- package/dist/transitionClassifier.mjs +111 -0
- package/dist/transitionClassifier.mjs.map +1 -0
- package/dist/transitionCoordinator.cjs +131 -0
- package/dist/transitionCoordinator.cjs.map +1 -0
- package/dist/transitionCoordinator.d.mts +16 -0
- package/dist/transitionCoordinator.d.mts.map +1 -0
- package/dist/transitionCoordinator.mjs +130 -0
- package/dist/transitionCoordinator.mjs.map +1 -0
- package/dist/typesContextApi.cjs +0 -0
- package/dist/typesContextApi.d.mts +79 -0
- package/dist/typesContextApi.d.mts.map +1 -0
- package/dist/typesContextApi.mjs +1 -0
- package/dist/uiHub.cjs +5 -0
- package/dist/uiHub.d.mts +2 -0
- package/dist/uiHub.mjs +2 -0
- package/dist/v3Export.cjs +10 -0
- package/dist/v3Export.cjs.map +1 -0
- package/dist/v3Export.d.mts +35 -0
- package/dist/v3Export.d.mts.map +1 -0
- package/dist/v3Export.mjs +9 -0
- package/dist/v3Export.mjs.map +1 -0
- package/dist/voiceReloadHandoff.cjs +14 -0
- package/dist/voiceReloadHandoff.d.mts +4 -0
- package/dist/voiceReloadHandoff.mjs +4 -0
- package/dist/voiceTools.cjs +56 -0
- package/dist/voiceTools.d.mts +4 -0
- package/dist/voiceTools.mjs +4 -0
- package/dist/web.cjs +65 -0
- package/dist/web.d.mts +20 -0
- package/dist/web.mjs +13 -0
- package/dist/webCompositions.cjs +181 -0
- package/dist/webCompositions.cjs.map +1 -0
- package/dist/webCompositions.d.mts +79 -0
- package/dist/webCompositions.d.mts.map +1 -0
- package/dist/webCompositions.mjs +174 -0
- package/dist/webCompositions.mjs.map +1 -0
- package/dist/webTesting.cjs +14 -0
- package/dist/webTesting.d.mts +6 -0
- package/dist/webTesting.mjs +6 -0
- package/package.json +586 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hubChannel.mjs","names":[],"sources":["../../../src/schemas/hubChannel.ts"],"sourcesContent":["import type { DoomBackgroundWorkSnapshot } from './backgroundWork';\n\nexport interface DoomHubChannelFrame {\n type: string;\n sessionId: string;\n payload: unknown;\n}\n\n/** Same-process lifecycle bus shared by a host's session APIs and hub channels. */\nexport interface DoomDirectEventSubscriptionOptions {\n /** Replay the most recent value published for this frame and session, when one exists. */\n readonly replayLatest?: boolean;\n}\n\nexport interface DoomDirectEventBus {\n publish(frameType: string, sessionId: string, payload: unknown): void;\n subscribe(\n frameType: string,\n sessionId: string,\n listener: (payload: unknown) => void,\n options?: DoomDirectEventSubscriptionOptions,\n ): () => void;\n /** Drop retained state for a session after its lifecycle ends. */\n clearSession?(sessionId: string): void;\n close(): void;\n}\n\n/**\n * The extension-agnostic baseline every surface gets for one session, computed once by the\n * session host. Extensions build on it instead of re-deriving roots and relations from cwd.\n */\nexport interface DoomSessionContext {\n readonly sessionId: string;\n /** Persisted workspace id, shared by every session and member checkout of the workspace. */\n readonly workspaceId: string;\n /** The admitted workspace root. It owns configuration, composition and settings. */\n readonly workspaceRoot: string;\n /**\n * The checkout the session executes in. Equals workspaceRoot unless the session runs in a\n * member checkout, such as a worktree, which may live outside the workspace folder.\n */\n readonly checkoutRoot: string;\n readonly cwd: string;\n readonly parentSessionId?: string;\n /** The spawner's label for the session. Opaque: hosts never interpret it. */\n readonly provenance?: string;\n}\n\nexport interface DoomHubSessionScope {\n sessionId: string;\n workspaceId?: string;\n cwd: string;\n /** Environment admitted for this session, when supplied by the host. */\n environment?: Readonly<Record<string, string | undefined>>;\n /** The session's baseline context, when its host knows its workspace. */\n sessionContext?: DoomSessionContext;\n}\n\nexport interface DoomHubReservedWorktreeRequest {\n readonly reservationId: string;\n readonly parentSessionId: string;\n readonly signal?: AbortSignal;\n}\n\nexport type DoomHubReservedWorktreeProvisioner = (\n request: DoomHubReservedWorktreeRequest,\n) => Promise<DoomHubSessionScope>;\n\n/** Selection axes a caller pins for a new session instead of the workspace defaults. */\nexport interface DoomHubSessionSelection {\n readonly majorMode?: string;\n readonly minorModes?: readonly string[];\n readonly profile?: string;\n /** An empty list starts the session with no domains. */\n readonly domains?: readonly string[];\n}\n\n/**\n * Provenance of a session a workflow step opened.\n *\n * The step's conversation belongs to the workflow that ran it and is read in\n * that workflow's view, so the session rail leaves such sessions out.\n */\nexport const WORKFLOW_STEP_SESSION_PROVENANCE = 'workflow';\n\n/**\n * Provenance of a session opened to launch workflows for its parent.\n *\n * It picks and starts work, then closes; the runs it started belong to its\n * parent. Like a detached helper, it takes no row in the session rail.\n */\nexport const WORKFLOW_DISPATCHER_SESSION_PROVENANCE = 'workflow-dispatcher';\n\nexport interface DoomHubSessionCreateRequest {\n readonly cwd: string;\n readonly name: string;\n readonly parentSessionId?: string;\n readonly sessionProvenance?: string;\n readonly signal?: AbortSignal;\n /** Host-issued reservation, not a caller-chosen target session id. */\n readonly reservationId?: string;\n /** Pinned axes stay put when the workspace defaults change between turns. */\n readonly selection?: DoomHubSessionSelection;\n /** Pi model selector, `provider/id`, validated like `--model`. */\n readonly model?: string;\n /** Pi thinking level, validated like `--thinking`. */\n readonly thinking?: string;\n /** Text appended to the session's system prompt, like `--append-system-prompt`. */\n readonly appendSystemPrompt?: string;\n /** Variables layered over the host environment for the new session and the tools it runs. */\n readonly environment?: Readonly<Record<string, string>>;\n /** The only tools the new session's agent may see or call, like a Team agent's `tools:` list. */\n readonly tools?: readonly string[];\n}\n\nexport interface DoomHubSessionPromptOptions {\n readonly signal?: AbortSignal;\n /** Refuses the prompt unless the target is a direct child of this session. */\n readonly parentSessionId?: string;\n}\n\n/** A prompt the session admitted. `settled` resolves once the agent settles and rejects on a harness fault. */\nexport interface DoomHubSessionPromptReceipt {\n readonly settled: Promise<void>;\n}\n\n/** Host-bound inter-session events. The source identity is attached by the hub, never by payload data. */\nexport interface DoomSessionCommunicationEndpoint {\n readonly sessionId: string;\n publish(targetSessionId: string, type: string, payload: unknown): boolean;\n subscribe(type: string, listener: (sourceSessionId: string, payload: unknown) => void): () => void;\n onPeerReady(listener: (peerSessionId: string) => void): () => void;\n close(): void;\n}\nexport interface DoomPendingSessionSetup {\n readonly id: string;\n readonly name: string;\n readonly createdAt: string;\n readonly cwd?: string;\n readonly setupKind?: 'managed-worktree' | 'existing-directory';\n readonly status?: 'provisioning' | 'failed' | 'interrupted';\n readonly errorCode?: 'SESSION_WORKTREE_PROVISION_FAILED' | 'SESSION_UNAVAILABLE';\n}\n\n/**\n * One short line a session's extension publishes about work it runs for that\n * session, such as a background job. The host shows it on the session's rail\n * card but never interprets it.\n */\nexport interface DoomSessionActivity {\n readonly label: string;\n /** The work needs the reader: the rail marks the card the way it marks a pending question. */\n readonly attention?: boolean;\n /** ISO 8601 start of the work; the rail appends the elapsed time. */\n readonly since?: string;\n}\n/** A host-owned setup can be fulfilled by any execution-directory provider. */\nexport interface DoomHubSessionReservations {\n read(id: string, parentSessionId: string): { sessionId: string; cwd?: string };\n prepare(id: string, parentSessionId: string, cwd: string): Promise<{ sessionId: string; cwd: string }>;\n complete(id: string, parentSessionId: string): Promise<DoomHubSessionScope>;\n}\n\n/** Authoritative execution state. Missing background coordination is unknown, not empty. */\nexport interface DoomHubSessionExecutionState {\n readonly isIdle: boolean;\n readonly hasPendingMessages: boolean;\n readonly backgroundWork?: DoomBackgroundWorkSnapshot;\n}\n\n/** Direct lifecycle owned by the canonical headless hub, never by a package transport. */\nexport interface DoomHubSessionService {\n create(request: DoomHubSessionCreateRequest): Promise<DoomHubSessionScope>;\n close(sessionId: string): Promise<void>;\n isLive(sessionId: string): boolean;\n /** Reads a live child's ownership without starting a turn. */\n readExecutionState?(\n sessionId: string,\n options?: Pick<DoomHubSessionPromptOptions, 'parentSessionId'>,\n ): Promise<DoomHubSessionExecutionState>;\n /** Starts a turn in a live session, as if its user had submitted `text`. */\n prompt?(sessionId: string, text: string, options?: DoomHubSessionPromptOptions): Promise<DoomHubSessionPromptReceipt>;\n /** Aborts the live session's current turn. The session stays open. */\n abort?(sessionId: string, options?: Pick<DoomHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;\n /**\n * Adds guidance to a live session's running turn. A session with no turn in\n * progress takes it as its next message instead.\n */\n steer?(\n sessionId: string,\n message: string,\n options?: Pick<DoomHubSessionPromptOptions, 'parentSessionId'>,\n ): Promise<void>;\n /**\n * Stops a live session's runtime and keeps it dormant: its history stays\n * readable where it is shown, and it can be woken later. A session that has\n * done its work no longer holds a model, tools and extensions in the host.\n */\n release?(sessionId: string, options?: Pick<DoomHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;\n readonly reservations?: DoomHubSessionReservations;\n /** Provisions a host-reserved Git worktree child. This is not exposed to remote MCP clients. */\n provisionReservedWorktree?(request: DoomHubReservedWorktreeRequest): Promise<DoomHubSessionScope>;\n /** Core host hook. A Git provider registers its implementation while its channel is mounted. */\n registerReservedWorktreeProvisioner?(provisioner: DoomHubReservedWorktreeProvisioner): () => void;\n /** True only when both live sessions have a direct parent-child relationship. */\n canCommunicate?(sourceSessionId: string, targetSessionId: string): boolean;\n /** Core host hook. Session API construction removes this method before exposing the service to extensions. */\n bindCommunication?(sessionId: string): DoomSessionCommunicationEndpoint;\n}\n\nexport interface DoomHubSessionApiRequest {\n basePath: string;\n path: string;\n method: string;\n body?: string | Uint8Array<ArrayBuffer> | null;\n signal?: AbortSignal;\n /** Forwarded by the authenticated host, including content type and trace context. */\n headers?: RequestInit['headers'];\n}\n\nexport type DoomComputerUseHostOperation = 'status' | 'targets' | 'activate' | 'observe' | 'act' | 'stop';\n\nexport interface DoomComputerUseHostRequest {\n readonly operation: DoomComputerUseHostOperation;\n readonly payload?: unknown;\n readonly signal?: AbortSignal;\n}\n\nexport interface DoomComputerUseHostBinding {\n readonly available: boolean;\n /** Global opt-in, separate from the presence of a native host. */\n readonly enabled?: boolean;\n request(scope: DoomHubSessionScope, request: DoomComputerUseHostRequest): Promise<unknown>;\n /** Checks a proof injected by the owning Desktop process, never a renderer marker. */\n authorize?(headers: Headers): boolean;\n /** Pins a session to Desktop before asking for a native grant. Ownership is not persisted. */\n claimSession?(sessionId: string, headers?: Headers): void;\n ownsSession?(sessionId: string): boolean;\n /** Server-authenticated paired identity, checked against live native approval for this session. */\n authorizeSession?(sessionId: string, headers: Headers): boolean;\n authorizeRecording?(sessionId: string, headers: Headers): boolean;\n authorizeActivation?(headers: Headers): boolean;\n /** Own pending activation only, never general session control. */\n authorizePending?(sessionId: string, headers: Headers): boolean;\n revokeDevice?(deviceId: string): void;\n readRecording?(scope: DoomHubSessionScope, artifactId: string, range: string): Promise<Response>;\n forgetSession?(sessionId: string): void;\n subscribe?(listener: () => void, sessionId?: string): () => void;\n close?(): void;\n}\n\n/** Narrow, host-bound access. An extension cannot select another session's identity. */\nexport interface DoomComputerUseSessionAccess {\n readonly available: boolean;\n readonly enabled?: boolean;\n authorize(headers: Headers): boolean;\n authorizeRecording?(headers: Headers): boolean;\n authorizeActivation?(headers: Headers): boolean;\n authorizePending?(headers: Headers): boolean;\n claim(headers?: Headers): void;\n fetchRecording?(artifactId: string, range: string): Promise<Response>;\n subscribe(listener: () => void): () => void;\n}\n\nexport interface DoomHubChannelConnection {\n connectionId: string;\n /** Host-verified native renderer proof, never copied from a channel payload. */\n desktopAuthorized?: boolean;\n /** Live session authorization evaluated by the host, never a client frame. */\n computerUseAuthorized?: boolean;\n}\n\nexport interface DoomHubChannelHost {\n sessions(): readonly DoomHubSessionScope[];\n /** Canonical hub lifecycle for sessions created by channel commands. */\n sessionService?: DoomHubSessionService;\n /** Same-process events emitted by session facets. */\n readonly directEvents: DoomDirectEventBus;\n publish(sessionId: string, payload: unknown): void;\n publishToConnection?(connectionId: string, sessionId: string, payload: unknown): boolean;\n requestSessionApi(scope: DoomHubSessionScope, request: DoomHubSessionApiRequest): Promise<Response>;\n computerUse?: DoomComputerUseHostBinding;\n onNotice(message: string): void;\n}\n\nexport interface DoomHubChannelSource {\n payloadFor(scope: DoomHubSessionScope): unknown;\n sessionAdded?(scope: DoomHubSessionScope): void;\n sessionRemoved?(sessionId: string): void;\n threadJournal?(scope: DoomHubSessionScope, threadId: string): string | undefined;\n close(): void;\n}\n\nexport type DoomHubChannelLifecycle = 'session' | 'hub';\n\nexport interface DoomHubChannel {\n frameType: string;\n lifecycle?: DoomHubChannelLifecycle;\n start(host: DoomHubChannelHost): DoomHubChannelSource;\n receiveWithoutSubscription?: boolean;\n receive?(scope: DoomHubSessionScope, payload: unknown, connection: DoomHubChannelConnection): void;\n disconnected?(connection: DoomHubChannelConnection): void;\n}\n"],"mappings":";;;;;;;AAmFA,MAAa,mCAAmC;;;;;;;AAQhD,MAAa,yCAAyC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
let typebox = require("typebox");
|
|
2
|
+
//#region src/schemas/leader.ts
|
|
3
|
+
/**
|
|
4
|
+
* How the key badge is painted. `exit` marks the row that leaves an active minor
|
|
5
|
+
* mode, which the panel colours differently so the reader can tell which way the
|
|
6
|
+
* key flips without checking the mode line first.
|
|
7
|
+
*/
|
|
8
|
+
const LeaderToneSchema = typebox.Type.Union([typebox.Type.Literal("default"), typebox.Type.Literal("exit")]);
|
|
9
|
+
const LeaderSegmentSchema = typebox.Type.Object({
|
|
10
|
+
key: typebox.Type.String({
|
|
11
|
+
minLength: 1,
|
|
12
|
+
maxLength: 1
|
|
13
|
+
}),
|
|
14
|
+
label: typebox.Type.String({ minLength: 1 }),
|
|
15
|
+
detail: typebox.Type.Optional(typebox.Type.String()),
|
|
16
|
+
order: typebox.Type.Optional(typebox.Type.Integer()),
|
|
17
|
+
tone: typebox.Type.Optional(LeaderToneSchema)
|
|
18
|
+
}, { additionalProperties: false });
|
|
19
|
+
const LeaderCommandSchema = typebox.Type.Object({
|
|
20
|
+
name: typebox.Type.String({ minLength: 1 }),
|
|
21
|
+
args: typebox.Type.Optional(typebox.Type.String())
|
|
22
|
+
}, { additionalProperties: false });
|
|
23
|
+
const LeaderActionSchema = typebox.Type.Object({ name: typebox.Type.String({
|
|
24
|
+
minLength: 1,
|
|
25
|
+
maxLength: 128,
|
|
26
|
+
pattern: "^[a-z0-9][a-z0-9._:-]*$"
|
|
27
|
+
}) }, { additionalProperties: false });
|
|
28
|
+
const LeaderBindingBase = {
|
|
29
|
+
id: typebox.Type.String({ minLength: 1 }),
|
|
30
|
+
path: typebox.Type.Array(LeaderSegmentSchema, { minItems: 1 })
|
|
31
|
+
};
|
|
32
|
+
const LeaderBindingSchema = typebox.Type.Union([typebox.Type.Object({
|
|
33
|
+
...LeaderBindingBase,
|
|
34
|
+
command: LeaderCommandSchema
|
|
35
|
+
}, { additionalProperties: false }), typebox.Type.Object({
|
|
36
|
+
...LeaderBindingBase,
|
|
37
|
+
action: LeaderActionSchema
|
|
38
|
+
}, { additionalProperties: false })]);
|
|
39
|
+
const LeaderSourceSchema = typebox.Type.String({
|
|
40
|
+
minLength: 1,
|
|
41
|
+
maxLength: 128,
|
|
42
|
+
pattern: "^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$"
|
|
43
|
+
});
|
|
44
|
+
const LeaderContributionSchema = typebox.Type.Object({
|
|
45
|
+
source: LeaderSourceSchema,
|
|
46
|
+
bindings: typebox.Type.Array(LeaderBindingSchema)
|
|
47
|
+
}, { additionalProperties: false });
|
|
48
|
+
//#endregion
|
|
49
|
+
exports.LeaderActionSchema = LeaderActionSchema;
|
|
50
|
+
exports.LeaderBindingSchema = LeaderBindingSchema;
|
|
51
|
+
exports.LeaderCommandSchema = LeaderCommandSchema;
|
|
52
|
+
exports.LeaderContributionSchema = LeaderContributionSchema;
|
|
53
|
+
exports.LeaderSegmentSchema = LeaderSegmentSchema;
|
|
54
|
+
exports.LeaderSourceSchema = LeaderSourceSchema;
|
|
55
|
+
exports.LeaderToneSchema = LeaderToneSchema;
|
|
56
|
+
|
|
57
|
+
//# sourceMappingURL=leader.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader.cjs","names":["Type"],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type { DoomExtensionContext } from './config';\n\n/**\n * How the key badge is painted. `exit` marks the row that leaves an active minor\n * mode, which the panel colours differently so the reader can tell which way the\n * key flips without checking the mode line first.\n */\nexport const LeaderToneSchema = Type.Union([Type.Literal('default'), Type.Literal('exit')]);\nexport type LeaderTone = Static<typeof LeaderToneSchema>;\n\nexport const LeaderSegmentSchema = Type.Object(\n {\n key: Type.String({ minLength: 1, maxLength: 1 }),\n label: Type.String({ minLength: 1 }),\n detail: Type.Optional(Type.String()),\n order: Type.Optional(Type.Integer()),\n tone: Type.Optional(LeaderToneSchema),\n },\n { additionalProperties: false },\n);\nexport type LeaderSegment = Static<typeof LeaderSegmentSchema>;\n\nexport const LeaderCommandSchema = Type.Object(\n { name: Type.String({ minLength: 1 }), args: Type.Optional(Type.String()) },\n { additionalProperties: false },\n);\nexport type LeaderCommand = Static<typeof LeaderCommandSchema>;\n\nexport const LeaderActionSchema = Type.Object(\n {\n name: Type.String({ minLength: 1, maxLength: 128, pattern: '^[a-z0-9][a-z0-9._:-]*$' }),\n },\n { additionalProperties: false },\n);\nexport type LeaderAction = Static<typeof LeaderActionSchema>;\n\nconst LeaderBindingBase = {\n id: Type.String({ minLength: 1 }),\n path: Type.Array(LeaderSegmentSchema, { minItems: 1 }),\n};\n\nexport const LeaderBindingSchema = Type.Union([\n Type.Object({ ...LeaderBindingBase, command: LeaderCommandSchema }, { additionalProperties: false }),\n Type.Object({ ...LeaderBindingBase, action: LeaderActionSchema }, { additionalProperties: false }),\n]);\nexport type LeaderBinding =\n | {\n id: string;\n path: readonly [LeaderSegment, ...LeaderSegment[]];\n command: LeaderCommand;\n }\n | {\n id: string;\n path: readonly [LeaderSegment, ...LeaderSegment[]];\n action: LeaderAction;\n };\n\nexport const LeaderSourceSchema = Type.String({\n minLength: 1,\n maxLength: 128,\n pattern: '^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$',\n});\n\nexport const LeaderContributionSchema = Type.Object(\n {\n source: LeaderSourceSchema,\n bindings: Type.Array(LeaderBindingSchema),\n },\n { additionalProperties: false },\n);\nexport interface LeaderContribution {\n source: string;\n bindings: readonly LeaderBinding[];\n}\n\nexport interface DoomLeaderContributionHandle {\n update(bindings: readonly LeaderBinding[]): void;\n dispose(): void;\n}\n\nexport interface DoomLeaderActionHandlerOptions<ExtensionContext extends DoomExtensionContext = DoomExtensionContext> {\n source: string;\n handlers: Readonly<Record<string, (context: ExtensionContext) => void | Promise<void>>>;\n onError: (error: unknown, actionName: string, context: ExtensionContext) => void;\n}\n"],"mappings":";;;;;;;AASA,MAAa,mBAAmBA,QAAAA,KAAK,MAAM,CAACA,QAAAA,KAAK,QAAQ,SAAS,GAAGA,QAAAA,KAAK,QAAQ,MAAM,CAAC,CAAC;AAG1F,MAAa,sBAAsBA,QAAAA,KAAK,OACtC;CACE,KAAKA,QAAAA,KAAK,OAAO;EAAE,WAAW;EAAG,WAAW;CAAE,CAAC;CAC/C,OAAOA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACnC,QAAQA,QAAAA,KAAK,SAASA,QAAAA,KAAK,OAAO,CAAC;CACnC,OAAOA,QAAAA,KAAK,SAASA,QAAAA,KAAK,QAAQ,CAAC;CACnC,MAAMA,QAAAA,KAAK,SAAS,gBAAgB;AACtC,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,sBAAsBA,QAAAA,KAAK,OACtC;CAAE,MAAMA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAAG,MAAMA,QAAAA,KAAK,SAASA,QAAAA,KAAK,OAAO,CAAC;AAAE,GAC1E,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,qBAAqBA,QAAAA,KAAK,OACrC,EACE,MAAMA,QAAAA,KAAK,OAAO;CAAE,WAAW;CAAG,WAAW;CAAK,SAAS;AAA0B,CAAC,EACxF,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAM,oBAAoB;CACxB,IAAIA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAChC,MAAMA,QAAAA,KAAK,MAAM,qBAAqB,EAAE,UAAU,EAAE,CAAC;AACvD;AAEA,MAAa,sBAAsBA,QAAAA,KAAK,MAAM,CAC5CA,QAAAA,KAAK,OAAO;CAAE,GAAG;CAAmB,SAAS;AAAoB,GAAG,EAAE,sBAAsB,MAAM,CAAC,GACnGA,QAAAA,KAAK,OAAO;CAAE,GAAG;CAAmB,QAAQ;AAAmB,GAAG,EAAE,sBAAsB,MAAM,CAAC,CACnG,CAAC;AAaD,MAAa,qBAAqBA,QAAAA,KAAK,OAAO;CAC5C,WAAW;CACX,WAAW;CACX,SAAS;AACX,CAAC;AAED,MAAa,2BAA2BA,QAAAA,KAAK,OAC3C;CACE,QAAQ;CACR,UAAUA,QAAAA,KAAK,MAAM,mBAAmB;AAC1C,GACA,EAAE,sBAAsB,MAAM,CAChC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { DoomExtensionContext } from "../../runtimeConfig.mjs";
|
|
2
|
+
import { Static, Type } from "typebox";
|
|
3
|
+
//#region src/schemas/leader.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* How the key badge is painted. `exit` marks the row that leaves an active minor
|
|
6
|
+
* mode, which the panel colours differently so the reader can tell which way the
|
|
7
|
+
* key flips without checking the mode line first.
|
|
8
|
+
*/
|
|
9
|
+
export declare const LeaderToneSchema: Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>;
|
|
10
|
+
export type LeaderTone = Static<typeof LeaderToneSchema>;
|
|
11
|
+
export declare const LeaderSegmentSchema: Type.TObject<{
|
|
12
|
+
key: Type.TString;
|
|
13
|
+
label: Type.TString;
|
|
14
|
+
detail: Type.TOptional<Type.TString>;
|
|
15
|
+
order: Type.TOptional<Type.TInteger>;
|
|
16
|
+
tone: Type.TOptional<Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>>;
|
|
17
|
+
}>;
|
|
18
|
+
export type LeaderSegment = Static<typeof LeaderSegmentSchema>;
|
|
19
|
+
export declare const LeaderCommandSchema: Type.TObject<{
|
|
20
|
+
name: Type.TString;
|
|
21
|
+
args: Type.TOptional<Type.TString>;
|
|
22
|
+
}>;
|
|
23
|
+
export type LeaderCommand = Static<typeof LeaderCommandSchema>;
|
|
24
|
+
export declare const LeaderActionSchema: Type.TObject<{
|
|
25
|
+
name: Type.TString;
|
|
26
|
+
}>;
|
|
27
|
+
export type LeaderAction = Static<typeof LeaderActionSchema>;
|
|
28
|
+
export declare const LeaderBindingSchema: Type.TUnion<[Type.TObject<{
|
|
29
|
+
id: Type.TString;
|
|
30
|
+
path: Type.TArray<Type.TObject<{
|
|
31
|
+
key: Type.TString;
|
|
32
|
+
label: Type.TString;
|
|
33
|
+
detail: Type.TOptional<Type.TString>;
|
|
34
|
+
order: Type.TOptional<Type.TInteger>;
|
|
35
|
+
tone: Type.TOptional<Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>>;
|
|
36
|
+
}>>;
|
|
37
|
+
command: Type.TObject<{
|
|
38
|
+
name: Type.TString;
|
|
39
|
+
args: Type.TOptional<Type.TString>;
|
|
40
|
+
}>;
|
|
41
|
+
}>, Type.TObject<{
|
|
42
|
+
id: Type.TString;
|
|
43
|
+
path: Type.TArray<Type.TObject<{
|
|
44
|
+
key: Type.TString;
|
|
45
|
+
label: Type.TString;
|
|
46
|
+
detail: Type.TOptional<Type.TString>;
|
|
47
|
+
order: Type.TOptional<Type.TInteger>;
|
|
48
|
+
tone: Type.TOptional<Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>>;
|
|
49
|
+
}>>;
|
|
50
|
+
action: Type.TObject<{
|
|
51
|
+
name: Type.TString;
|
|
52
|
+
}>;
|
|
53
|
+
}>]>;
|
|
54
|
+
export type LeaderBinding = {
|
|
55
|
+
id: string;
|
|
56
|
+
path: readonly [LeaderSegment, ...LeaderSegment[]];
|
|
57
|
+
command: LeaderCommand;
|
|
58
|
+
} | {
|
|
59
|
+
id: string;
|
|
60
|
+
path: readonly [LeaderSegment, ...LeaderSegment[]];
|
|
61
|
+
action: LeaderAction;
|
|
62
|
+
};
|
|
63
|
+
export declare const LeaderSourceSchema: Type.TString;
|
|
64
|
+
export declare const LeaderContributionSchema: Type.TObject<{
|
|
65
|
+
source: Type.TString;
|
|
66
|
+
bindings: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
67
|
+
id: Type.TString;
|
|
68
|
+
path: Type.TArray<Type.TObject<{
|
|
69
|
+
key: Type.TString;
|
|
70
|
+
label: Type.TString;
|
|
71
|
+
detail: Type.TOptional<Type.TString>;
|
|
72
|
+
order: Type.TOptional<Type.TInteger>;
|
|
73
|
+
tone: Type.TOptional<Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>>;
|
|
74
|
+
}>>;
|
|
75
|
+
command: Type.TObject<{
|
|
76
|
+
name: Type.TString;
|
|
77
|
+
args: Type.TOptional<Type.TString>;
|
|
78
|
+
}>;
|
|
79
|
+
}>, Type.TObject<{
|
|
80
|
+
id: Type.TString;
|
|
81
|
+
path: Type.TArray<Type.TObject<{
|
|
82
|
+
key: Type.TString;
|
|
83
|
+
label: Type.TString;
|
|
84
|
+
detail: Type.TOptional<Type.TString>;
|
|
85
|
+
order: Type.TOptional<Type.TInteger>;
|
|
86
|
+
tone: Type.TOptional<Type.TUnion<[Type.TLiteral<"default">, Type.TLiteral<"exit">]>>;
|
|
87
|
+
}>>;
|
|
88
|
+
action: Type.TObject<{
|
|
89
|
+
name: Type.TString;
|
|
90
|
+
}>;
|
|
91
|
+
}>]>>;
|
|
92
|
+
}>;
|
|
93
|
+
export interface LeaderContribution {
|
|
94
|
+
source: string;
|
|
95
|
+
bindings: readonly LeaderBinding[];
|
|
96
|
+
}
|
|
97
|
+
export interface DoomLeaderContributionHandle {
|
|
98
|
+
update(bindings: readonly LeaderBinding[]): void;
|
|
99
|
+
dispose(): void;
|
|
100
|
+
}
|
|
101
|
+
export interface DoomLeaderActionHandlerOptions<ExtensionContext extends DoomExtensionContext = DoomExtensionContext> {
|
|
102
|
+
source: string;
|
|
103
|
+
handlers: Readonly<Record<string, (context: ExtensionContext) => void | Promise<void>>>;
|
|
104
|
+
onError: (error: unknown, actionName: string, context: ExtensionContext) => void;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
//# sourceMappingURL=leader.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader.d.mts","names":[],"sources":["../../../src/schemas/leader.ts"],"mappings":";;;;;;;;qBASa,kBAAgB,KAAA,QAAA,KAAA,qBAAA,KAAA;YACjB,aAAa,cAAc;qBAE1B,qBAAmB,KAAA;;;;;;;YAUpB,gBAAgB,cAAc;qBAE7B,qBAAmB,KAAA;;;;YAIpB,gBAAgB,cAAc;qBAE7B,oBAAkB,KAAA;;;YAMnB,eAAe,cAAc;qBAO5B,qBAAmB,KAAA,QAAA,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;YAIpB;EAEN;EACA,gBAAgB,kBAAkB;EAClC,SAAS;;EAGT;EACA,gBAAgB,kBAAkB;EAClC,QAAQ;;qBAGD,oBAAkB,KAAA;qBAMlB,0BAAwB,KAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAOpB;EACf;EACA,mBAAmB;;iBAGJ;EACf,OAAO,mBAAmB;EAC1B;;iBAGe,+BAA+B,yBAAyB,uBAAuB;EAC9F;EACA,UAAU,SAAS,gBAAgB,SAAS,4BAA4B;EACxE,UAAU,gBAAgB,oBAAoB,SAAS"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Type } from "typebox";
|
|
2
|
+
//#region src/schemas/leader.ts
|
|
3
|
+
/**
|
|
4
|
+
* How the key badge is painted. `exit` marks the row that leaves an active minor
|
|
5
|
+
* mode, which the panel colours differently so the reader can tell which way the
|
|
6
|
+
* key flips without checking the mode line first.
|
|
7
|
+
*/
|
|
8
|
+
const LeaderToneSchema = Type.Union([Type.Literal("default"), Type.Literal("exit")]);
|
|
9
|
+
const LeaderSegmentSchema = Type.Object({
|
|
10
|
+
key: Type.String({
|
|
11
|
+
minLength: 1,
|
|
12
|
+
maxLength: 1
|
|
13
|
+
}),
|
|
14
|
+
label: Type.String({ minLength: 1 }),
|
|
15
|
+
detail: Type.Optional(Type.String()),
|
|
16
|
+
order: Type.Optional(Type.Integer()),
|
|
17
|
+
tone: Type.Optional(LeaderToneSchema)
|
|
18
|
+
}, { additionalProperties: false });
|
|
19
|
+
const LeaderCommandSchema = Type.Object({
|
|
20
|
+
name: Type.String({ minLength: 1 }),
|
|
21
|
+
args: Type.Optional(Type.String())
|
|
22
|
+
}, { additionalProperties: false });
|
|
23
|
+
const LeaderActionSchema = Type.Object({ name: Type.String({
|
|
24
|
+
minLength: 1,
|
|
25
|
+
maxLength: 128,
|
|
26
|
+
pattern: "^[a-z0-9][a-z0-9._:-]*$"
|
|
27
|
+
}) }, { additionalProperties: false });
|
|
28
|
+
const LeaderBindingBase = {
|
|
29
|
+
id: Type.String({ minLength: 1 }),
|
|
30
|
+
path: Type.Array(LeaderSegmentSchema, { minItems: 1 })
|
|
31
|
+
};
|
|
32
|
+
const LeaderBindingSchema = Type.Union([Type.Object({
|
|
33
|
+
...LeaderBindingBase,
|
|
34
|
+
command: LeaderCommandSchema
|
|
35
|
+
}, { additionalProperties: false }), Type.Object({
|
|
36
|
+
...LeaderBindingBase,
|
|
37
|
+
action: LeaderActionSchema
|
|
38
|
+
}, { additionalProperties: false })]);
|
|
39
|
+
const LeaderSourceSchema = Type.String({
|
|
40
|
+
minLength: 1,
|
|
41
|
+
maxLength: 128,
|
|
42
|
+
pattern: "^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$"
|
|
43
|
+
});
|
|
44
|
+
const LeaderContributionSchema = Type.Object({
|
|
45
|
+
source: LeaderSourceSchema,
|
|
46
|
+
bindings: Type.Array(LeaderBindingSchema)
|
|
47
|
+
}, { additionalProperties: false });
|
|
48
|
+
//#endregion
|
|
49
|
+
export { LeaderActionSchema, LeaderBindingSchema, LeaderCommandSchema, LeaderContributionSchema, LeaderSegmentSchema, LeaderSourceSchema, LeaderToneSchema };
|
|
50
|
+
|
|
51
|
+
//# sourceMappingURL=leader.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leader.mjs","names":[],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type { DoomExtensionContext } from './config';\n\n/**\n * How the key badge is painted. `exit` marks the row that leaves an active minor\n * mode, which the panel colours differently so the reader can tell which way the\n * key flips without checking the mode line first.\n */\nexport const LeaderToneSchema = Type.Union([Type.Literal('default'), Type.Literal('exit')]);\nexport type LeaderTone = Static<typeof LeaderToneSchema>;\n\nexport const LeaderSegmentSchema = Type.Object(\n {\n key: Type.String({ minLength: 1, maxLength: 1 }),\n label: Type.String({ minLength: 1 }),\n detail: Type.Optional(Type.String()),\n order: Type.Optional(Type.Integer()),\n tone: Type.Optional(LeaderToneSchema),\n },\n { additionalProperties: false },\n);\nexport type LeaderSegment = Static<typeof LeaderSegmentSchema>;\n\nexport const LeaderCommandSchema = Type.Object(\n { name: Type.String({ minLength: 1 }), args: Type.Optional(Type.String()) },\n { additionalProperties: false },\n);\nexport type LeaderCommand = Static<typeof LeaderCommandSchema>;\n\nexport const LeaderActionSchema = Type.Object(\n {\n name: Type.String({ minLength: 1, maxLength: 128, pattern: '^[a-z0-9][a-z0-9._:-]*$' }),\n },\n { additionalProperties: false },\n);\nexport type LeaderAction = Static<typeof LeaderActionSchema>;\n\nconst LeaderBindingBase = {\n id: Type.String({ minLength: 1 }),\n path: Type.Array(LeaderSegmentSchema, { minItems: 1 }),\n};\n\nexport const LeaderBindingSchema = Type.Union([\n Type.Object({ ...LeaderBindingBase, command: LeaderCommandSchema }, { additionalProperties: false }),\n Type.Object({ ...LeaderBindingBase, action: LeaderActionSchema }, { additionalProperties: false }),\n]);\nexport type LeaderBinding =\n | {\n id: string;\n path: readonly [LeaderSegment, ...LeaderSegment[]];\n command: LeaderCommand;\n }\n | {\n id: string;\n path: readonly [LeaderSegment, ...LeaderSegment[]];\n action: LeaderAction;\n };\n\nexport const LeaderSourceSchema = Type.String({\n minLength: 1,\n maxLength: 128,\n pattern: '^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$',\n});\n\nexport const LeaderContributionSchema = Type.Object(\n {\n source: LeaderSourceSchema,\n bindings: Type.Array(LeaderBindingSchema),\n },\n { additionalProperties: false },\n);\nexport interface LeaderContribution {\n source: string;\n bindings: readonly LeaderBinding[];\n}\n\nexport interface DoomLeaderContributionHandle {\n update(bindings: readonly LeaderBinding[]): void;\n dispose(): void;\n}\n\nexport interface DoomLeaderActionHandlerOptions<ExtensionContext extends DoomExtensionContext = DoomExtensionContext> {\n source: string;\n handlers: Readonly<Record<string, (context: ExtensionContext) => void | Promise<void>>>;\n onError: (error: unknown, actionName: string, context: ExtensionContext) => void;\n}\n"],"mappings":";;;;;;;AASA,MAAa,mBAAmB,KAAK,MAAM,CAAC,KAAK,QAAQ,SAAS,GAAG,KAAK,QAAQ,MAAM,CAAC,CAAC;AAG1F,MAAa,sBAAsB,KAAK,OACtC;CACE,KAAK,KAAK,OAAO;EAAE,WAAW;EAAG,WAAW;CAAE,CAAC;CAC/C,OAAO,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACnC,QAAQ,KAAK,SAAS,KAAK,OAAO,CAAC;CACnC,OAAO,KAAK,SAAS,KAAK,QAAQ,CAAC;CACnC,MAAM,KAAK,SAAS,gBAAgB;AACtC,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,sBAAsB,KAAK,OACtC;CAAE,MAAM,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAAG,MAAM,KAAK,SAAS,KAAK,OAAO,CAAC;AAAE,GAC1E,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAa,qBAAqB,KAAK,OACrC,EACE,MAAM,KAAK,OAAO;CAAE,WAAW;CAAG,WAAW;CAAK,SAAS;AAA0B,CAAC,EACxF,GACA,EAAE,sBAAsB,MAAM,CAChC;AAGA,MAAM,oBAAoB;CACxB,IAAI,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAChC,MAAM,KAAK,MAAM,qBAAqB,EAAE,UAAU,EAAE,CAAC;AACvD;AAEA,MAAa,sBAAsB,KAAK,MAAM,CAC5C,KAAK,OAAO;CAAE,GAAG;CAAmB,SAAS;AAAoB,GAAG,EAAE,sBAAsB,MAAM,CAAC,GACnG,KAAK,OAAO;CAAE,GAAG;CAAmB,QAAQ;AAAmB,GAAG,EAAE,sBAAsB,MAAM,CAAC,CACnG,CAAC;AAaD,MAAa,qBAAqB,KAAK,OAAO;CAC5C,WAAW;CACX,WAAW;CACX,SAAS;AACX,CAAC;AAED,MAAa,2BAA2B,KAAK,OAC3C;CACE,QAAQ;CACR,UAAU,KAAK,MAAM,mBAAmB;AAC1C,GACA,EAAE,sBAAsB,MAAM,CAChC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DoomServerBundleOwner } from "./serverBundle.mjs";
|
|
2
|
+
//#region src/schemas/mcpBundle.d.ts
|
|
3
|
+
export interface DoomMcpBundleEntry {
|
|
4
|
+
readonly packageName: string;
|
|
5
|
+
readonly entry: string;
|
|
6
|
+
readonly module: string;
|
|
7
|
+
readonly sha256: string;
|
|
8
|
+
readonly owners: readonly DoomServerBundleOwner[];
|
|
9
|
+
/** Package-owned component keys generated from frontend tool declarations. */
|
|
10
|
+
readonly widgets?: readonly string[];
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//# sourceMappingURL=mcpBundle.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpBundle.d.mts","names":[],"sources":["../../../src/schemas/mcpBundle.ts"],"mappings":";;iBAEiB;WACN;WACA;WACA;WACA;WACA,iBAAiB;;WAEjB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//#region src/schemas/mcpFacet.ts
|
|
2
|
+
/** Makes an MCP declaration's contract explicit without registering it locally. */
|
|
3
|
+
function defineMcpPlugin(definition) {
|
|
4
|
+
return definition;
|
|
5
|
+
}
|
|
6
|
+
/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */
|
|
7
|
+
function defineMcpTool(tool) {
|
|
8
|
+
return tool;
|
|
9
|
+
}
|
|
10
|
+
/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */
|
|
11
|
+
function defineMcpSkill(skill) {
|
|
12
|
+
return skill;
|
|
13
|
+
}
|
|
14
|
+
/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */
|
|
15
|
+
function defineMcpUiResource(resource) {
|
|
16
|
+
return resource;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.defineMcpPlugin = defineMcpPlugin;
|
|
20
|
+
exports.defineMcpSkill = defineMcpSkill;
|
|
21
|
+
exports.defineMcpTool = defineMcpTool;
|
|
22
|
+
exports.defineMcpUiResource = defineMcpUiResource;
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=mcpFacet.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpFacet.cjs","names":[],"sources":["../../../src/schemas/mcpFacet.ts"],"sourcesContent":["import type { TSchema } from 'typebox';\n\nimport type {\n DoomHeadlessExecutionContext,\n DoomHeadlessSelection,\n DoomHeadlessSelectionChange,\n DoomHeadlessTool,\n} from './headless';\n\n/** Repository-scoped instructions and applied selection safe to disclose to a remote MCP client. */\nexport interface DoomMcpContextSnapshot {\n readonly session: { readonly id: string; readonly revision: number };\n readonly repository: { readonly root: string; readonly cwd: string };\n readonly selection: {\n readonly profile: string | null;\n readonly domains: readonly string[];\n readonly majorMode: string;\n readonly activeLayers: readonly string[];\n readonly minorModes?: readonly string[];\n };\n readonly instructions: readonly { readonly path: string; readonly content: string }[];\n readonly persona: string | null;\n}\n\n/** A lazy Markdown resource available only to remote MCP clients. */\nexport interface DoomMcpSkill {\n readonly name: string;\n readonly description: string;\n read(context: DoomHeadlessExecutionContext): string | Promise<string>;\n}\n\n/** A package-owned, immutable UI template. Session data belongs in tool results, never in this HTML. */\nexport interface DoomMcpUiResource {\n readonly uri: string;\n readonly name: string;\n readonly description?: string;\n readonly mimeType: 'text/html;profile=mcp-app';\n readonly _meta?: Record<string, unknown> & {\n ui?: {\n csp?: {\n connectDomains?: string[];\n resourceDomains?: string[];\n frameDomains?: string[];\n baseUriDomains?: string[];\n };\n domain?: string;\n prefersBorder?: boolean;\n };\n };\n /** Loads static packaged HTML without an execution context. */\n read(): string | Promise<string>;\n}\n\n/** A dedicated remote surface, deliberately separate from local agent registrations. */\nexport interface DoomMcpSessionPlugin {\n readonly tools?: readonly DoomHeadlessTool<TSchema>[];\n readonly skills?: readonly DoomMcpSkill[];\n readonly uiResources?: readonly DoomMcpUiResource[];\n}\n\nexport interface DoomMcpServiceScope {\n /** Reads a service already mounted in this session without exposing host registration APIs. */\n get<T>(name: string): T | undefined;\n}\n\nexport interface DoomMcpPluginContext {\n readonly execution: DoomHeadlessExecutionContext;\n readonly services: DoomMcpServiceScope;\n readonly selection: {\n read(): DoomHeadlessSelection;\n change(change: DoomHeadlessSelectionChange): Promise<void>;\n };\n /** Reads the allowlisted repository context from the current applied session selection. */\n loadContext(): DoomMcpContextSnapshot;\n /** Aborted when this plugin surface is replaced or the session closes. */\n readonly signal: AbortSignal;\n /** Rebuilds the remote surface after a live MCP catalog changes. */\n refresh(): void;\n}\n\nexport interface DoomMcpPluginDefinition {\n readonly name: string;\n readonly session:\n | DoomMcpSessionPlugin\n | ((context: DoomMcpPluginContext) => DoomMcpSessionPlugin | Promise<DoomMcpSessionPlugin>);\n}\n\n/** Makes an MCP declaration's contract explicit without registering it locally. */\nexport function defineMcpPlugin(definition: DoomMcpPluginDefinition): DoomMcpPluginDefinition {\n return definition;\n}\n\n/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */\nexport function defineMcpTool<TParameters extends TSchema = TSchema, TContext = unknown>(\n tool: DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>),\n): DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>) {\n return tool;\n}\n\n/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */\nexport function defineMcpSkill<TContext = unknown>(\n skill: DoomMcpSkill | ((context: TContext) => DoomMcpSkill),\n): DoomMcpSkill | ((context: TContext) => DoomMcpSkill) {\n return skill;\n}\n\n/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */\nexport function defineMcpUiResource(resource: DoomMcpUiResource): DoomMcpUiResource {\n return resource;\n}\n"],"mappings":";;AAwFA,SAAgB,gBAAgB,YAA8D;CAC5F,OAAO;AACT;;AAGA,SAAgB,cACd,MACwF;CACxF,OAAO;AACT;;AAGA,SAAgB,eACd,OACsD;CACtD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,UAAgD;CAClF,OAAO;AACT"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { DoomHeadlessExecutionContext, DoomHeadlessSelection, DoomHeadlessSelectionChange, DoomHeadlessTool } from "./headless.mjs";
|
|
2
|
+
import { TSchema } from "typebox";
|
|
3
|
+
//#region src/schemas/mcpFacet.d.ts
|
|
4
|
+
/** Repository-scoped instructions and applied selection safe to disclose to a remote MCP client. */
|
|
5
|
+
export interface DoomMcpContextSnapshot {
|
|
6
|
+
readonly session: {
|
|
7
|
+
readonly id: string;
|
|
8
|
+
readonly revision: number;
|
|
9
|
+
};
|
|
10
|
+
readonly repository: {
|
|
11
|
+
readonly root: string;
|
|
12
|
+
readonly cwd: string;
|
|
13
|
+
};
|
|
14
|
+
readonly selection: {
|
|
15
|
+
readonly profile: string | null;
|
|
16
|
+
readonly domains: readonly string[];
|
|
17
|
+
readonly majorMode: string;
|
|
18
|
+
readonly activeLayers: readonly string[];
|
|
19
|
+
readonly minorModes?: readonly string[];
|
|
20
|
+
};
|
|
21
|
+
readonly instructions: readonly {
|
|
22
|
+
readonly path: string;
|
|
23
|
+
readonly content: string;
|
|
24
|
+
}[];
|
|
25
|
+
readonly persona: string | null;
|
|
26
|
+
}
|
|
27
|
+
/** A lazy Markdown resource available only to remote MCP clients. */
|
|
28
|
+
export interface DoomMcpSkill {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly description: string;
|
|
31
|
+
read(context: DoomHeadlessExecutionContext): string | Promise<string>;
|
|
32
|
+
}
|
|
33
|
+
/** A package-owned, immutable UI template. Session data belongs in tool results, never in this HTML. */
|
|
34
|
+
export interface DoomMcpUiResource {
|
|
35
|
+
readonly uri: string;
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly description?: string;
|
|
38
|
+
readonly mimeType: 'text/html;profile=mcp-app';
|
|
39
|
+
readonly _meta?: Record<string, unknown> & {
|
|
40
|
+
ui?: {
|
|
41
|
+
csp?: {
|
|
42
|
+
connectDomains?: string[];
|
|
43
|
+
resourceDomains?: string[];
|
|
44
|
+
frameDomains?: string[];
|
|
45
|
+
baseUriDomains?: string[];
|
|
46
|
+
};
|
|
47
|
+
domain?: string;
|
|
48
|
+
prefersBorder?: boolean;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
/** Loads static packaged HTML without an execution context. */
|
|
52
|
+
read(): string | Promise<string>;
|
|
53
|
+
}
|
|
54
|
+
/** A dedicated remote surface, deliberately separate from local agent registrations. */
|
|
55
|
+
export interface DoomMcpSessionPlugin {
|
|
56
|
+
readonly tools?: readonly DoomHeadlessTool<TSchema>[];
|
|
57
|
+
readonly skills?: readonly DoomMcpSkill[];
|
|
58
|
+
readonly uiResources?: readonly DoomMcpUiResource[];
|
|
59
|
+
}
|
|
60
|
+
export interface DoomMcpServiceScope {
|
|
61
|
+
/** Reads a service already mounted in this session without exposing host registration APIs. */
|
|
62
|
+
get<T>(name: string): T | undefined;
|
|
63
|
+
}
|
|
64
|
+
export interface DoomMcpPluginContext {
|
|
65
|
+
readonly execution: DoomHeadlessExecutionContext;
|
|
66
|
+
readonly services: DoomMcpServiceScope;
|
|
67
|
+
readonly selection: {
|
|
68
|
+
read(): DoomHeadlessSelection;
|
|
69
|
+
change(change: DoomHeadlessSelectionChange): Promise<void>;
|
|
70
|
+
};
|
|
71
|
+
/** Reads the allowlisted repository context from the current applied session selection. */
|
|
72
|
+
loadContext(): DoomMcpContextSnapshot;
|
|
73
|
+
/** Aborted when this plugin surface is replaced or the session closes. */
|
|
74
|
+
readonly signal: AbortSignal;
|
|
75
|
+
/** Rebuilds the remote surface after a live MCP catalog changes. */
|
|
76
|
+
refresh(): void;
|
|
77
|
+
}
|
|
78
|
+
export interface DoomMcpPluginDefinition {
|
|
79
|
+
readonly name: string;
|
|
80
|
+
readonly session: DoomMcpSessionPlugin | ((context: DoomMcpPluginContext) => DoomMcpSessionPlugin | Promise<DoomMcpSessionPlugin>);
|
|
81
|
+
}
|
|
82
|
+
/** Makes an MCP declaration's contract explicit without registering it locally. */
|
|
83
|
+
export declare function defineMcpPlugin(definition: DoomMcpPluginDefinition): DoomMcpPluginDefinition;
|
|
84
|
+
/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */
|
|
85
|
+
export declare function defineMcpTool<TParameters extends TSchema = TSchema, TContext = unknown>(tool: DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>)): DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>);
|
|
86
|
+
/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */
|
|
87
|
+
export declare function defineMcpSkill<TContext = unknown>(skill: DoomMcpSkill | ((context: TContext) => DoomMcpSkill)): DoomMcpSkill | ((context: TContext) => DoomMcpSkill);
|
|
88
|
+
/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */
|
|
89
|
+
export declare function defineMcpUiResource(resource: DoomMcpUiResource): DoomMcpUiResource;
|
|
90
|
+
//#endregion
|
|
91
|
+
//# sourceMappingURL=mcpFacet.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpFacet.d.mts","names":[],"sources":["../../../src/schemas/mcpFacet.ts"],"mappings":";;;;iBAUiB;WACN;aAAoB;aAAqB;;WACzC;aAAuB;aAAuB;;WAC9C;aACE;aACA;aACA;aACA;aACA;;WAEF;aAAkC;aAAuB;;WACzD;;;iBAIM;WACN;WACA;EACT,KAAK,SAAS,wCAAwC;;;iBAIvC;WACN;WACA;WACA;WACA;WACA,QAAQ;IACf;MACE;QACE;QACA;QACA;QACA;;MAEF;MACA;;;;EAIJ,iBAAiB;;;iBAIF;WACN,iBAAiB,iBAAiB;WAClC,kBAAkB;WAClB,uBAAuB;;iBAGjB;;EAEf,IAAI,GAAG,eAAe;;iBAGP;WACN,WAAW;WACX,UAAU;WACV;IACP,QAAQ;IACR,OAAO,QAAQ,8BAA8B;;;EAG/C,eAAe;;WAEN,QAAQ;;EAEjB;;iBAGe;WACN;WACA,SACL,yBACE,SAAS,yBAAyB,uBAAuB,QAAQ;;;wBAIzD,gBAAgB,YAAY,0BAA0B;;wBAKtD,cAAc,oBAAoB,UAAU,SAAS,oBACnE,MAAM,iBAAiB,iBAAiB,SAAS,aAAa,iBAAiB,gBAC9E,iBAAiB,iBAAiB,SAAS,aAAa,iBAAiB;;wBAK5D,eAAe,oBAC7B,OAAO,iBAAiB,SAAS,aAAa,gBAC7C,iBAAiB,SAAS,aAAa;;wBAK1B,oBAAoB,UAAU,oBAAoB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//#region src/schemas/mcpFacet.ts
|
|
2
|
+
/** Makes an MCP declaration's contract explicit without registering it locally. */
|
|
3
|
+
function defineMcpPlugin(definition) {
|
|
4
|
+
return definition;
|
|
5
|
+
}
|
|
6
|
+
/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */
|
|
7
|
+
function defineMcpTool(tool) {
|
|
8
|
+
return tool;
|
|
9
|
+
}
|
|
10
|
+
/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */
|
|
11
|
+
function defineMcpSkill(skill) {
|
|
12
|
+
return skill;
|
|
13
|
+
}
|
|
14
|
+
/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */
|
|
15
|
+
function defineMcpUiResource(resource) {
|
|
16
|
+
return resource;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { defineMcpPlugin, defineMcpSkill, defineMcpTool, defineMcpUiResource };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=mcpFacet.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpFacet.mjs","names":[],"sources":["../../../src/schemas/mcpFacet.ts"],"sourcesContent":["import type { TSchema } from 'typebox';\n\nimport type {\n DoomHeadlessExecutionContext,\n DoomHeadlessSelection,\n DoomHeadlessSelectionChange,\n DoomHeadlessTool,\n} from './headless';\n\n/** Repository-scoped instructions and applied selection safe to disclose to a remote MCP client. */\nexport interface DoomMcpContextSnapshot {\n readonly session: { readonly id: string; readonly revision: number };\n readonly repository: { readonly root: string; readonly cwd: string };\n readonly selection: {\n readonly profile: string | null;\n readonly domains: readonly string[];\n readonly majorMode: string;\n readonly activeLayers: readonly string[];\n readonly minorModes?: readonly string[];\n };\n readonly instructions: readonly { readonly path: string; readonly content: string }[];\n readonly persona: string | null;\n}\n\n/** A lazy Markdown resource available only to remote MCP clients. */\nexport interface DoomMcpSkill {\n readonly name: string;\n readonly description: string;\n read(context: DoomHeadlessExecutionContext): string | Promise<string>;\n}\n\n/** A package-owned, immutable UI template. Session data belongs in tool results, never in this HTML. */\nexport interface DoomMcpUiResource {\n readonly uri: string;\n readonly name: string;\n readonly description?: string;\n readonly mimeType: 'text/html;profile=mcp-app';\n readonly _meta?: Record<string, unknown> & {\n ui?: {\n csp?: {\n connectDomains?: string[];\n resourceDomains?: string[];\n frameDomains?: string[];\n baseUriDomains?: string[];\n };\n domain?: string;\n prefersBorder?: boolean;\n };\n };\n /** Loads static packaged HTML without an execution context. */\n read(): string | Promise<string>;\n}\n\n/** A dedicated remote surface, deliberately separate from local agent registrations. */\nexport interface DoomMcpSessionPlugin {\n readonly tools?: readonly DoomHeadlessTool<TSchema>[];\n readonly skills?: readonly DoomMcpSkill[];\n readonly uiResources?: readonly DoomMcpUiResource[];\n}\n\nexport interface DoomMcpServiceScope {\n /** Reads a service already mounted in this session without exposing host registration APIs. */\n get<T>(name: string): T | undefined;\n}\n\nexport interface DoomMcpPluginContext {\n readonly execution: DoomHeadlessExecutionContext;\n readonly services: DoomMcpServiceScope;\n readonly selection: {\n read(): DoomHeadlessSelection;\n change(change: DoomHeadlessSelectionChange): Promise<void>;\n };\n /** Reads the allowlisted repository context from the current applied session selection. */\n loadContext(): DoomMcpContextSnapshot;\n /** Aborted when this plugin surface is replaced or the session closes. */\n readonly signal: AbortSignal;\n /** Rebuilds the remote surface after a live MCP catalog changes. */\n refresh(): void;\n}\n\nexport interface DoomMcpPluginDefinition {\n readonly name: string;\n readonly session:\n | DoomMcpSessionPlugin\n | ((context: DoomMcpPluginContext) => DoomMcpSessionPlugin | Promise<DoomMcpSessionPlugin>);\n}\n\n/** Makes an MCP declaration's contract explicit without registering it locally. */\nexport function defineMcpPlugin(definition: DoomMcpPluginDefinition): DoomMcpPluginDefinition {\n return definition;\n}\n\n/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */\nexport function defineMcpTool<TParameters extends TSchema = TSchema, TContext = unknown>(\n tool: DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>),\n): DoomHeadlessTool<TParameters> | ((context: TContext) => DoomHeadlessTool<TParameters>) {\n return tool;\n}\n\n/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */\nexport function defineMcpSkill<TContext = unknown>(\n skill: DoomMcpSkill | ((context: TContext) => DoomMcpSkill),\n): DoomMcpSkill | ((context: TContext) => DoomMcpSkill) {\n return skill;\n}\n\n/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */\nexport function defineMcpUiResource(resource: DoomMcpUiResource): DoomMcpUiResource {\n return resource;\n}\n"],"mappings":";;AAwFA,SAAgB,gBAAgB,YAA8D;CAC5F,OAAO;AACT;;AAGA,SAAgB,cACd,MACwF;CACxF,OAAO;AACT;;AAGA,SAAgB,eACd,OACsD;CACtD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,UAAgD;CAClF,OAAO;AACT"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
let typebox = require("typebox");
|
|
2
|
+
let typebox_value = require("typebox/value");
|
|
3
|
+
//#region src/schemas/mcpProjection.ts
|
|
4
|
+
/** Schema revision of the neutral MCP projection shared across Po packages. */
|
|
5
|
+
const DOOM_MCP_PROJECTION_VERSION = 1;
|
|
6
|
+
/** The portable MCP document revision represented by `agent-plugin-v1`. */
|
|
7
|
+
const AGENT_PLUGIN_MCP_SCHEMA_URL = "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json";
|
|
8
|
+
/** Cordis service name for the immutable MCP projection of one Pi session. */
|
|
9
|
+
const DOOM_MCP_PROJECTION_SERVICE = "doom/mcp-projection";
|
|
10
|
+
/** Session-local provider for MCP resources selected by domain. */
|
|
11
|
+
const DOOM_MCP_PROJECTION_RESOLVER_SERVICE = "doom/mcp-projection-resolver";
|
|
12
|
+
const DoomMcpProjectionAllowlistSchema = typebox.Type.Object({
|
|
13
|
+
servers: typebox.Type.Optional(typebox.Type.Array(typebox.Type.String({ minLength: 1 }))),
|
|
14
|
+
proxy: typebox.Type.Optional(typebox.Type.Array(typebox.Type.String({ minLength: 1 })))
|
|
15
|
+
}, { additionalProperties: false });
|
|
16
|
+
const DoomMcpNativeProjectionSourceSchema = typebox.Type.Object({
|
|
17
|
+
sourceId: typebox.Type.String({ minLength: 1 }),
|
|
18
|
+
owner: typebox.Type.Union([typebox.Type.Literal("repository"), typebox.Type.Literal("plugin")]),
|
|
19
|
+
format: typebox.Type.Literal("native"),
|
|
20
|
+
configPath: typebox.Type.String({ minLength: 1 }),
|
|
21
|
+
contentDigest: typebox.Type.String({ minLength: 1 })
|
|
22
|
+
}, { additionalProperties: false });
|
|
23
|
+
const DoomMcpAgentPluginProjectionSourceSchema = typebox.Type.Object({
|
|
24
|
+
sourceId: typebox.Type.String({ minLength: 1 }),
|
|
25
|
+
owner: typebox.Type.Literal("plugin"),
|
|
26
|
+
format: typebox.Type.Literal("agent-plugin-v1"),
|
|
27
|
+
configPath: typebox.Type.String({ minLength: 1 }),
|
|
28
|
+
contentDigest: typebox.Type.String({ minLength: 1 }),
|
|
29
|
+
pluginId: typebox.Type.String({ minLength: 1 }),
|
|
30
|
+
pluginRoot: typebox.Type.String({ minLength: 1 }),
|
|
31
|
+
pluginDataDirectory: typebox.Type.String({ minLength: 1 }),
|
|
32
|
+
mcpSchemaUrl: typebox.Type.Literal(AGENT_PLUGIN_MCP_SCHEMA_URL)
|
|
33
|
+
}, { additionalProperties: false });
|
|
34
|
+
/** One native Doom layer or one portable Agent Plugin MCP document. */
|
|
35
|
+
const DoomMcpProjectionSourceSchema = typebox.Type.Union([DoomMcpNativeProjectionSourceSchema, DoomMcpAgentPluginProjectionSourceSchema]);
|
|
36
|
+
const DoomMcpProjectionSchema = typebox.Type.Object({
|
|
37
|
+
version: typebox.Type.Literal(1),
|
|
38
|
+
enabled: typebox.Type.Boolean(),
|
|
39
|
+
/** Content identity supplied by the projection producer. */
|
|
40
|
+
fingerprint: typebox.Type.String({ minLength: 1 }),
|
|
41
|
+
repoRoot: typebox.Type.String({ minLength: 1 }),
|
|
42
|
+
stagingDirectory: typebox.Type.String({ minLength: 1 }),
|
|
43
|
+
generatedConfigPath: typebox.Type.Optional(typebox.Type.String({ minLength: 1 })),
|
|
44
|
+
sources: typebox.Type.Array(DoomMcpProjectionSourceSchema),
|
|
45
|
+
allowlist: typebox.Type.Optional(DoomMcpProjectionAllowlistSchema)
|
|
46
|
+
}, { additionalProperties: false });
|
|
47
|
+
function deepFreeze(value) {
|
|
48
|
+
if (typeof value !== "object" || value === null || Object.isFrozen(value)) return value;
|
|
49
|
+
for (const child of Object.values(value)) deepFreeze(child);
|
|
50
|
+
return Object.freeze(value);
|
|
51
|
+
}
|
|
52
|
+
function projectionError(value) {
|
|
53
|
+
const [first] = (0, typebox_value.Errors)(DoomMcpProjectionSchema, value);
|
|
54
|
+
return /* @__PURE__ */ new Error(`Invalid Doom MCP projection${first ? ` at ${first.instancePath || "/"}: ${first.message}` : ""}`);
|
|
55
|
+
}
|
|
56
|
+
/** Runtime guard used when a projection crosses a JSON persistence boundary. */
|
|
57
|
+
function isDoomMcpProjection(value) {
|
|
58
|
+
return (0, typebox_value.Check)(DoomMcpProjectionSchema, value);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Builds the explicit fail-closed state used when a Doom session has no MCP
|
|
62
|
+
* projection. The root and staging path remain visible for diagnostics, while
|
|
63
|
+
* the empty source list prevents an MCP consumer from falling back to cwd.
|
|
64
|
+
*/
|
|
65
|
+
function createDisabledDoomMcpProjection({ repoRoot, stagingDirectory }) {
|
|
66
|
+
return deepFreeze({
|
|
67
|
+
version: 1,
|
|
68
|
+
enabled: false,
|
|
69
|
+
fingerprint: JSON.stringify({
|
|
70
|
+
version: 1,
|
|
71
|
+
enabled: false,
|
|
72
|
+
repoRoot
|
|
73
|
+
}),
|
|
74
|
+
repoRoot,
|
|
75
|
+
stagingDirectory,
|
|
76
|
+
sources: []
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/** Creates a generation-bound, immutable Cordis service value. */
|
|
80
|
+
function createDoomMcpProjectionService({ sessionId, generation, projection }) {
|
|
81
|
+
if (!sessionId) throw new Error("Doom MCP projection service requires a session id");
|
|
82
|
+
if (!generation) throw new Error("Doom MCP projection service requires a generation");
|
|
83
|
+
if (!isDoomMcpProjection(projection)) throw projectionError(projection);
|
|
84
|
+
const snapshot = deepFreeze(structuredClone(projection));
|
|
85
|
+
return Object.freeze({
|
|
86
|
+
sessionId,
|
|
87
|
+
generation,
|
|
88
|
+
getSnapshot: () => snapshot
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/** Reads the MCP projection provider from one Doom session's Cordis root. */
|
|
92
|
+
function readDoomMcpProjectionService(root) {
|
|
93
|
+
return root.get(DOOM_MCP_PROJECTION_SERVICE);
|
|
94
|
+
}
|
|
95
|
+
/** Reads the MCP projection provider or reports that the Doom session is incomplete. */
|
|
96
|
+
function requireDoomMcpProjectionService(root) {
|
|
97
|
+
const service = readDoomMcpProjectionService(root);
|
|
98
|
+
if (!service) throw new Error("Doom MCP projection is unavailable. Load the Po Config core.");
|
|
99
|
+
return service;
|
|
100
|
+
}
|
|
101
|
+
//#endregion
|
|
102
|
+
exports.AGENT_PLUGIN_MCP_SCHEMA_URL = AGENT_PLUGIN_MCP_SCHEMA_URL;
|
|
103
|
+
exports.DOOM_MCP_PROJECTION_RESOLVER_SERVICE = DOOM_MCP_PROJECTION_RESOLVER_SERVICE;
|
|
104
|
+
exports.DOOM_MCP_PROJECTION_SERVICE = DOOM_MCP_PROJECTION_SERVICE;
|
|
105
|
+
exports.DOOM_MCP_PROJECTION_VERSION = DOOM_MCP_PROJECTION_VERSION;
|
|
106
|
+
exports.DoomMcpAgentPluginProjectionSourceSchema = DoomMcpAgentPluginProjectionSourceSchema;
|
|
107
|
+
exports.DoomMcpNativeProjectionSourceSchema = DoomMcpNativeProjectionSourceSchema;
|
|
108
|
+
exports.DoomMcpProjectionAllowlistSchema = DoomMcpProjectionAllowlistSchema;
|
|
109
|
+
exports.DoomMcpProjectionSchema = DoomMcpProjectionSchema;
|
|
110
|
+
exports.DoomMcpProjectionSourceSchema = DoomMcpProjectionSourceSchema;
|
|
111
|
+
exports.createDisabledDoomMcpProjection = createDisabledDoomMcpProjection;
|
|
112
|
+
exports.createDoomMcpProjectionService = createDoomMcpProjectionService;
|
|
113
|
+
exports.isDoomMcpProjection = isDoomMcpProjection;
|
|
114
|
+
exports.readDoomMcpProjectionService = readDoomMcpProjectionService;
|
|
115
|
+
exports.requireDoomMcpProjectionService = requireDoomMcpProjectionService;
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=mcpProjection.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpProjection.cjs","names":["Type","Errors","Check"],"sources":["../../../src/schemas/mcpProjection.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check, Errors } from 'typebox/value';\n\n/** Schema revision of the neutral MCP projection shared across Po packages. */\nexport const DOOM_MCP_PROJECTION_VERSION = 1 as const;\n\n/** The portable MCP document revision represented by `agent-plugin-v1`. */\nexport const AGENT_PLUGIN_MCP_SCHEMA_URL = 'https://agent-plugins.org/schemas/1.0.0/mcp.schema.json' as const;\n\n/** Cordis service name for the immutable MCP projection of one Pi session. */\nexport const DOOM_MCP_PROJECTION_SERVICE = 'doom/mcp-projection';\n/** Session-local provider for MCP resources selected by domain. */\nexport const DOOM_MCP_PROJECTION_RESOLVER_SERVICE = 'doom/mcp-projection-resolver';\n\nexport const DoomMcpProjectionAllowlistSchema = Type.Object(\n {\n servers: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),\n proxy: Type.Optional(Type.Array(Type.String({ minLength: 1 }))),\n },\n { additionalProperties: false },\n);\n\nexport const DoomMcpNativeProjectionSourceSchema = Type.Object(\n {\n sourceId: Type.String({ minLength: 1 }),\n owner: Type.Union([Type.Literal('repository'), Type.Literal('plugin')]),\n format: Type.Literal('native'),\n configPath: Type.String({ minLength: 1 }),\n contentDigest: Type.String({ minLength: 1 }),\n },\n { additionalProperties: false },\n);\n\nexport const DoomMcpAgentPluginProjectionSourceSchema = Type.Object(\n {\n sourceId: Type.String({ minLength: 1 }),\n owner: Type.Literal('plugin'),\n format: Type.Literal('agent-plugin-v1'),\n configPath: Type.String({ minLength: 1 }),\n contentDigest: Type.String({ minLength: 1 }),\n pluginId: Type.String({ minLength: 1 }),\n pluginRoot: Type.String({ minLength: 1 }),\n pluginDataDirectory: Type.String({ minLength: 1 }),\n mcpSchemaUrl: Type.Literal(AGENT_PLUGIN_MCP_SCHEMA_URL),\n },\n { additionalProperties: false },\n);\n\n/** One native Doom layer or one portable Agent Plugin MCP document. */\nexport const DoomMcpProjectionSourceSchema = Type.Union([\n DoomMcpNativeProjectionSourceSchema,\n DoomMcpAgentPluginProjectionSourceSchema,\n]);\n\nexport const DoomMcpProjectionSchema = Type.Object(\n {\n version: Type.Literal(DOOM_MCP_PROJECTION_VERSION),\n enabled: Type.Boolean(),\n /** Content identity supplied by the projection producer. */\n fingerprint: Type.String({ minLength: 1 }),\n repoRoot: Type.String({ minLength: 1 }),\n stagingDirectory: Type.String({ minLength: 1 }),\n generatedConfigPath: Type.Optional(Type.String({ minLength: 1 })),\n sources: Type.Array(DoomMcpProjectionSourceSchema),\n allowlist: Type.Optional(DoomMcpProjectionAllowlistSchema),\n },\n { additionalProperties: false },\n);\n\ntype DeepReadonly<TValue> = TValue extends (...args: never[]) => unknown\n ? TValue\n : TValue extends readonly (infer TItem)[]\n ? readonly DeepReadonly<TItem>[]\n : TValue extends object\n ? { readonly [TKey in keyof TValue]: DeepReadonly<TValue[TKey]> }\n : TValue;\n\nexport type DoomMcpProjectionAllowlist = DeepReadonly<Static<typeof DoomMcpProjectionAllowlistSchema>>;\nexport type DoomMcpNativeProjectionSource = DeepReadonly<Static<typeof DoomMcpNativeProjectionSourceSchema>>;\nexport type DoomMcpAgentPluginProjectionSource = DeepReadonly<Static<typeof DoomMcpAgentPluginProjectionSourceSchema>>;\nexport type DoomMcpProjectionSource = DeepReadonly<Static<typeof DoomMcpProjectionSourceSchema>>;\nexport type DoomMcpProjectionSourceFormat = DoomMcpProjectionSource['format'];\nexport type DoomMcpProjection = DeepReadonly<Static<typeof DoomMcpProjectionSchema>>;\n\nexport interface DoomMcpProjectionService {\n readonly sessionId: string;\n readonly generation: string;\n getSnapshot(): DoomMcpProjection;\n}\n\nexport interface DoomMcpProjectionResolverService {\n resolve(domains: readonly string[]): Promise<{ projection: DoomMcpProjection; cleanup(): Promise<void> }>;\n}\n\nexport interface DoomMcpProjectionServiceInput {\n readonly sessionId: string;\n readonly generation: string;\n readonly projection: DoomMcpProjection;\n}\n\nexport interface DisabledDoomMcpProjectionInput {\n readonly repoRoot: string;\n readonly stagingDirectory: string;\n}\n\nfunction deepFreeze<TValue>(value: TValue): DeepReadonly<TValue> {\n if (typeof value !== 'object' || value === null || Object.isFrozen(value)) {\n return value as DeepReadonly<TValue>;\n }\n for (const child of Object.values(value)) deepFreeze(child);\n return Object.freeze(value) as DeepReadonly<TValue>;\n}\n\nfunction projectionError(value: unknown): Error {\n const [first] = Errors(DoomMcpProjectionSchema, value);\n return new Error(`Invalid Doom MCP projection${first ? ` at ${first.instancePath || '/'}: ${first.message}` : ''}`);\n}\n\n/** Runtime guard used when a projection crosses a JSON persistence boundary. */\nexport function isDoomMcpProjection(value: unknown): value is DoomMcpProjection {\n return Check(DoomMcpProjectionSchema, value);\n}\n\n/**\n * Builds the explicit fail-closed state used when a Doom session has no MCP\n * projection. The root and staging path remain visible for diagnostics, while\n * the empty source list prevents an MCP consumer from falling back to cwd.\n */\nexport function createDisabledDoomMcpProjection({\n repoRoot,\n stagingDirectory,\n}: DisabledDoomMcpProjectionInput): DoomMcpProjection {\n return deepFreeze({\n version: DOOM_MCP_PROJECTION_VERSION,\n enabled: false,\n // Staging is per-process mutable state and must not change content identity\n // when a synced projection is rebased into a private run directory.\n fingerprint: JSON.stringify({ version: DOOM_MCP_PROJECTION_VERSION, enabled: false, repoRoot }),\n repoRoot,\n stagingDirectory,\n sources: [],\n });\n}\n\n/** Creates a generation-bound, immutable Cordis service value. */\nexport function createDoomMcpProjectionService({\n sessionId,\n generation,\n projection,\n}: DoomMcpProjectionServiceInput): DoomMcpProjectionService {\n if (!sessionId) throw new Error('Doom MCP projection service requires a session id');\n if (!generation) throw new Error('Doom MCP projection service requires a generation');\n if (!isDoomMcpProjection(projection)) throw projectionError(projection);\n\n const snapshot = deepFreeze(structuredClone(projection)) as DoomMcpProjection;\n return Object.freeze({\n sessionId,\n generation,\n getSnapshot: () => snapshot,\n });\n}\n\n/** Reads the MCP projection provider from one Doom session's Cordis root. */\nexport function readDoomMcpProjectionService(root: Context): DoomMcpProjectionService | undefined {\n return root.get(DOOM_MCP_PROJECTION_SERVICE) as DoomMcpProjectionService | undefined;\n}\n\n/** Reads the MCP projection provider or reports that the Doom session is incomplete. */\nexport function requireDoomMcpProjectionService(root: Context): DoomMcpProjectionService {\n const service = readDoomMcpProjectionService(root);\n if (!service) throw new Error('Doom MCP projection is unavailable. Load the Po Config core.');\n return service;\n}\n"],"mappings":";;;;AAKA,MAAa,8BAA8B;;AAG3C,MAAa,8BAA8B;;AAG3C,MAAa,8BAA8B;;AAE3C,MAAa,uCAAuC;AAEpD,MAAa,mCAAmCA,QAAAA,KAAK,OACnD;CACE,SAASA,QAAAA,KAAK,SAASA,QAAAA,KAAK,MAAMA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;CAChE,OAAOA,QAAAA,KAAK,SAASA,QAAAA,KAAK,MAAMA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;AAChE,GACA,EAAE,sBAAsB,MAAM,CAChC;AAEA,MAAa,sCAAsCA,QAAAA,KAAK,OACtD;CACE,UAAUA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACtC,OAAOA,QAAAA,KAAK,MAAM,CAACA,QAAAA,KAAK,QAAQ,YAAY,GAAGA,QAAAA,KAAK,QAAQ,QAAQ,CAAC,CAAC;CACtE,QAAQA,QAAAA,KAAK,QAAQ,QAAQ;CAC7B,YAAYA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACxC,eAAeA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;AAC7C,GACA,EAAE,sBAAsB,MAAM,CAChC;AAEA,MAAa,2CAA2CA,QAAAA,KAAK,OAC3D;CACE,UAAUA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACtC,OAAOA,QAAAA,KAAK,QAAQ,QAAQ;CAC5B,QAAQA,QAAAA,KAAK,QAAQ,iBAAiB;CACtC,YAAYA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACxC,eAAeA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAC3C,UAAUA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACtC,YAAYA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACxC,qBAAqBA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACjD,cAAcA,QAAAA,KAAK,QAAQ,2BAA2B;AACxD,GACA,EAAE,sBAAsB,MAAM,CAChC;;AAGA,MAAa,gCAAgCA,QAAAA,KAAK,MAAM,CACtD,qCACA,wCACF,CAAC;AAED,MAAa,0BAA0BA,QAAAA,KAAK,OAC1C;CACE,SAASA,QAAAA,KAAK,QAAA,CAAmC;CACjD,SAASA,QAAAA,KAAK,QAAQ;;CAEtB,aAAaA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACzC,UAAUA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CACtC,kBAAkBA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC;CAC9C,qBAAqBA,QAAAA,KAAK,SAASA,QAAAA,KAAK,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;CAChE,SAASA,QAAAA,KAAK,MAAM,6BAA6B;CACjD,WAAWA,QAAAA,KAAK,SAAS,gCAAgC;AAC3D,GACA,EAAE,sBAAsB,MAAM,CAChC;AAsCA,SAAS,WAAmB,OAAqC;CAC/D,IAAI,OAAO,UAAU,YAAY,UAAU,QAAQ,OAAO,SAAS,KAAK,GACtE,OAAO;CAET,KAAK,MAAM,SAAS,OAAO,OAAO,KAAK,GAAG,WAAW,KAAK;CAC1D,OAAO,OAAO,OAAO,KAAK;AAC5B;AAEA,SAAS,gBAAgB,OAAuB;CAC9C,MAAM,CAAC,UAAA,GAASC,cAAAA,OAAAA,CAAO,yBAAyB,KAAK;CACrD,uBAAO,IAAI,MAAM,8BAA8B,QAAQ,OAAO,MAAM,gBAAgB,IAAI,IAAI,MAAM,YAAY,IAAI;AACpH;;AAGA,SAAgB,oBAAoB,OAA4C;CAC9E,QAAA,GAAOC,cAAAA,MAAAA,CAAM,yBAAyB,KAAK;AAC7C;;;;;;AAOA,SAAgB,gCAAgC,EAC9C,UACA,oBACoD;CACpD,OAAO,WAAW;EAChB,SAAA;EACA,SAAS;EAGT,aAAa,KAAK,UAAU;GAAE,SAAA;GAAsC,SAAS;GAAO;EAAS,CAAC;EAC9F;EACA;EACA,SAAS,CAAC;CACZ,CAAC;AACH;;AAGA,SAAgB,+BAA+B,EAC7C,WACA,YACA,cAC0D;CAC1D,IAAI,CAAC,WAAW,MAAM,IAAI,MAAM,mDAAmD;CACnF,IAAI,CAAC,YAAY,MAAM,IAAI,MAAM,mDAAmD;CACpF,IAAI,CAAC,oBAAoB,UAAU,GAAG,MAAM,gBAAgB,UAAU;CAEtE,MAAM,WAAW,WAAW,gBAAgB,UAAU,CAAC;CACvD,OAAO,OAAO,OAAO;EACnB;EACA;EACA,mBAAmB;CACrB,CAAC;AACH;;AAGA,SAAgB,6BAA6B,MAAqD;CAChG,OAAO,KAAK,IAAI,2BAA2B;AAC7C;;AAGA,SAAgB,gCAAgC,MAAyC;CACvF,MAAM,UAAU,6BAA6B,IAAI;CACjD,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,8DAA8D;CAC5F,OAAO;AACT"}
|