@agimon-ai/po-core 0.0.0-alpha.2 → 0.0.0-alpha.21
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 +149 -21
- package/NOTICE +41 -0
- package/dist/agentModel.cjs +1 -1
- package/dist/agentModel.d.mts +2 -2
- package/dist/agentModel.mjs +1 -2
- package/dist/apiContracts.cjs +623 -802
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +277 -615
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +617 -794
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/askUser.cjs +2 -2
- package/dist/askUser.d.mts +2 -2
- package/dist/askUser.mjs +1 -2
- package/dist/authorTools.mjs +1 -2
- package/dist/backgroundWork.cjs +3 -3
- package/dist/backgroundWork.d.mts +2 -2
- package/dist/backgroundWork.mjs +1 -2
- package/dist/bundleAssetPolicy.mjs +1 -2
- package/dist/chatgptAuth.cjs +3 -2
- package/dist/chatgptAuth.d.mts +3 -2
- package/dist/chatgptAuth.mjs +2 -1
- package/dist/childProcess.cjs +1 -1
- package/dist/childProcess.d.mts +2 -2
- package/dist/childProcess.mjs +1 -2
- package/dist/childSession.cjs +11 -6
- package/dist/childSession.d.mts +3 -3
- package/dist/childSession.mjs +3 -3
- package/dist/cockpitContainer.mjs +1 -2
- package/dist/config.cjs +1 -1
- package/dist/config.d.mts +3 -3
- package/dist/config.mjs +1 -2
- package/dist/contextApi.cjs +1 -0
- package/dist/contextApi.d.mts +2 -2
- package/dist/contextApi.mjs +2 -2
- package/dist/contextContributions.cjs +4 -4
- package/dist/contextContributions.d.mts +3 -3
- package/dist/contextContributions.mjs +3 -3
- package/dist/contextDetailStore.cjs +7 -5
- package/dist/contextDetailStore.cjs.map +1 -1
- package/dist/contextDetailStore.d.mts +2 -1
- package/dist/contextDetailStore.d.mts.map +1 -1
- package/dist/contextDetailStore.mjs +6 -4
- package/dist/contextDetailStore.mjs.map +1 -1
- package/dist/contextProjection.cjs +7 -2
- package/dist/contextProjection.cjs.map +1 -1
- package/dist/contextProjection.d.mts +4 -1
- package/dist/contextProjection.d.mts.map +1 -1
- package/dist/contextProjection.mjs +5 -2
- package/dist/contextProjection.mjs.map +1 -1
- package/dist/cordisHost.cjs +11 -11
- package/dist/cordisHost.d.mts +2 -2
- package/dist/cordisHost.mjs +1 -2
- package/dist/delegation.cjs +8 -8
- package/dist/delegation.d.mts +2 -2
- package/dist/delegation.mjs +1 -2
- package/dist/executionBudget.cjs +4 -3
- package/dist/executionBudget.cjs.map +1 -1
- package/dist/executionBudget.d.mts +2 -2
- package/dist/executionBudget.d.mts.map +1 -1
- package/dist/executionBudget.mjs +4 -3
- package/dist/executionBudget.mjs.map +1 -1
- package/dist/extensionFile.cjs +5 -0
- package/dist/extensionFile.d.mts +4 -2
- package/dist/extensionFile.mjs +4 -2
- package/dist/footer.d.mts +2 -2
- package/dist/footer.mjs +1 -2
- package/dist/headless.cjs +14 -14
- package/dist/headless.d.mts +2 -2
- package/dist/headless.mjs +1 -2
- package/dist/headlessHub.cjs +308 -109
- package/dist/headlessHub.cjs.map +1 -1
- package/dist/headlessHub.d.mts +71 -36
- package/dist/headlessHub.d.mts.map +1 -1
- package/dist/headlessHub.mjs +309 -110
- package/dist/headlessHub.mjs.map +1 -1
- package/dist/headlessProtocol.cjs +327 -0
- package/dist/headlessProtocol.cjs.map +1 -0
- package/dist/headlessProtocol.d.mts +30 -0
- package/dist/headlessProtocol.d.mts.map +1 -0
- package/dist/headlessProtocol.mjs +326 -0
- package/dist/headlessProtocol.mjs.map +1 -0
- package/dist/headlessServer.cjs +166 -151
- package/dist/headlessServer.cjs.map +1 -1
- package/dist/headlessServer.d.mts +13 -5
- package/dist/headlessServer.d.mts.map +1 -1
- package/dist/headlessServer.mjs +166 -151
- package/dist/headlessServer.mjs.map +1 -1
- package/dist/headlessSessionHost.d.mts +58 -21
- package/dist/headlessSessionHost.d.mts.map +1 -1
- package/dist/help.cjs +20 -20
- package/dist/help.d.mts +2 -2
- package/dist/help.mjs +2 -2
- package/dist/history.cjs +16 -20
- package/dist/history.d.mts +9 -7
- package/dist/history.mjs +6 -7
- package/dist/historyOwnership.cjs.map +1 -1
- package/dist/historyOwnership.d.mts +1 -1
- package/dist/historyOwnership.mjs.map +1 -1
- package/dist/hubChannel.cjs +9 -0
- package/dist/hubChannel.d.mts +3 -2
- package/dist/hubChannel.mjs +3 -2
- package/dist/index.cjs +26 -28
- package/dist/index.d.mts +6 -6
- package/dist/index.mjs +6 -6
- package/dist/interop/chord.mjs +1 -0
- package/dist/interop/chordContext.mjs +1 -0
- package/dist/json.cjs +11 -5
- package/dist/json.d.mts +4 -2
- package/dist/json.mjs +4 -2
- package/dist/kernel.cjs +1 -1
- package/dist/kernel.d.mts +3 -3
- package/dist/kernel.mjs +1 -2
- package/dist/leader.d.mts +2 -2
- package/dist/leader.mjs +1 -2
- package/dist/logSinkTelemetry.mjs +1 -2
- package/dist/machineApi.cjs +80 -74
- package/dist/machineApi.cjs.map +1 -1
- package/dist/machineApi.d.mts +5 -2
- package/dist/machineApi.d.mts.map +1 -1
- package/dist/machineApi.mjs +78 -71
- package/dist/machineApi.mjs.map +1 -1
- package/dist/main.cjs +2 -1
- package/dist/main.d.mts +2 -1
- package/dist/main.mjs +2 -1
- package/dist/mcpFacet.d.mts +3 -3
- package/dist/mcpProjection.cjs +13 -13
- package/dist/mcpProjection.d.mts +2 -2
- package/dist/mcpProjection.mjs +1 -2
- package/dist/mcpSchemaCost.cjs +4 -4
- package/dist/mcpSchemaCost.cjs.map +1 -1
- package/dist/mcpSchemaCost.d.mts +2 -2
- package/dist/mcpSchemaCost.mjs +4 -4
- package/dist/mcpSchemaCost.mjs.map +1 -1
- package/dist/mcpSession.cjs +7 -7
- package/dist/mcpSession.d.mts +2 -2
- package/dist/mcpSession.mjs +1 -2
- package/dist/mcpStatus.cjs +2 -2
- package/dist/mcpStatus.d.mts +2 -2
- package/dist/mcpStatus.mjs +1 -2
- package/dist/mcpToolResolver.cjs +3 -3
- package/dist/mcpToolResolver.d.mts +2 -2
- package/dist/mcpToolResolver.mjs +1 -2
- package/dist/mcpWidget.d.mts +2 -2
- package/dist/moduleResolution.cjs +43 -8
- package/dist/moduleResolution.cjs.map +1 -1
- package/dist/moduleResolution.d.mts +10 -1
- package/dist/moduleResolution.d.mts.map +1 -1
- package/dist/moduleResolution.mjs +40 -7
- package/dist/moduleResolution.mjs.map +1 -1
- package/dist/narration.cjs +3 -3
- package/dist/narration.d.mts +2 -2
- package/dist/narration.mjs +1 -2
- package/dist/native.cjs +9 -0
- package/dist/native.d.mts +4 -3
- package/dist/native.mjs +3 -2
- package/dist/nodePlatform.cjs +77 -0
- package/dist/nodePlatform.cjs.map +1 -0
- package/dist/nodePlatform.d.mts +17 -0
- package/dist/nodePlatform.d.mts.map +1 -0
- package/dist/nodePlatform.mjs +72 -0
- package/dist/nodePlatform.mjs.map +1 -0
- package/dist/notification.cjs +15 -15
- package/dist/notification.d.mts +2 -2
- package/dist/notification.mjs +1 -2
- package/dist/packageApi.cjs +11 -11
- package/dist/packageApi.d.mts +2 -2
- package/dist/packageApi.mjs +2 -2
- package/dist/packageApiServer.cjs +45 -27
- package/dist/packageApiServer.cjs.map +1 -1
- package/dist/packageApiServer.d.mts +36 -26
- package/dist/packageApiServer.d.mts.map +1 -1
- package/dist/packageApiServer.mjs +44 -26
- package/dist/packageApiServer.mjs.map +1 -1
- package/dist/piSettings.cjs +41 -20
- package/dist/piSettings.d.mts +4 -2
- package/dist/piSettings.mjs +4 -2
- package/dist/platform.cjs +62 -0
- package/dist/platform.d.mts +10 -0
- package/dist/platform.mjs +10 -0
- package/dist/pluginProtocol.cjs +7 -8
- package/dist/pluginProtocol.d.mts +2 -2
- package/dist/pluginProtocol.mjs +1 -2
- package/dist/poPackage.cjs +12 -0
- package/dist/poPackage.d.mts +3 -0
- package/dist/poPackage.mjs +3 -0
- package/dist/profileIdentity.cjs +1 -1
- package/dist/profileIdentity.d.mts +2 -2
- package/dist/profileIdentity.mjs +1 -2
- package/dist/protocol.cjs +3 -3
- package/dist/protocol.d.mts +2 -2
- package/dist/protocol.mjs +1 -2
- package/dist/readiness.cjs +6 -6
- package/dist/readiness.d.mts +2 -2
- package/dist/readiness.mjs +1 -2
- package/dist/remoteApi.cjs.map +1 -1
- package/dist/remoteApi.d.mts +2 -2
- package/dist/remoteApi.mjs.map +1 -1
- package/dist/remoteRuntime.cjs +42 -65
- package/dist/remoteRuntime.cjs.map +1 -1
- package/dist/remoteRuntime.d.mts +3 -2
- package/dist/remoteRuntime.d.mts.map +1 -1
- package/dist/remoteRuntime.mjs +41 -62
- package/dist/remoteRuntime.mjs.map +1 -1
- package/dist/runtimeConfig.cjs +4 -4
- package/dist/runtimeConfig.cjs.map +1 -1
- package/dist/runtimeConfig.d.mts +10 -9
- package/dist/runtimeConfig.d.mts.map +1 -1
- package/dist/runtimeConfig.mjs +4 -4
- package/dist/runtimeConfig.mjs.map +1 -1
- package/dist/runtimeContextApi.cjs +10 -3
- package/dist/runtimeContextApi.cjs.map +1 -1
- package/dist/runtimeContextApi.d.mts +3 -3
- package/dist/runtimeContextApi.d.mts.map +1 -1
- package/dist/runtimeContextApi.mjs +10 -3
- package/dist/runtimeContextApi.mjs.map +1 -1
- package/dist/runtimeCordisHost.cjs +46 -46
- package/dist/runtimeCordisHost.cjs.map +1 -1
- package/dist/runtimeCordisHost.d.mts +29 -28
- package/dist/runtimeCordisHost.d.mts.map +1 -1
- package/dist/runtimeCordisHost.mjs +42 -42
- package/dist/runtimeCordisHost.mjs.map +1 -1
- package/dist/runtimeIdentity.cjs +6 -9
- package/dist/runtimeIdentity.cjs.map +1 -1
- package/dist/runtimeIdentity.d.mts +5 -1
- package/dist/runtimeIdentity.d.mts.map +1 -1
- package/dist/runtimeIdentity.mjs +5 -8
- package/dist/runtimeIdentity.mjs.map +1 -1
- package/dist/runtimeJson.cjs +10 -45
- package/dist/runtimeJson.d.mts +3 -22
- package/dist/runtimeJson.mjs +3 -39
- package/dist/runtimeLogSinkTelemetry.cjs +19 -19
- package/dist/runtimeLogSinkTelemetry.cjs.map +1 -1
- package/dist/runtimeLogSinkTelemetry.d.mts +19 -19
- package/dist/runtimeLogSinkTelemetry.mjs +19 -19
- package/dist/runtimeLogSinkTelemetry.mjs.map +1 -1
- package/dist/runtimePackages.cjs +7 -2
- package/dist/runtimePackages.cjs.map +1 -1
- package/dist/runtimePackages.d.mts +4 -1
- package/dist/runtimePackages.d.mts.map +1 -1
- package/dist/runtimePackages.mjs +7 -2
- package/dist/runtimePackages.mjs.map +1 -1
- package/dist/runtimePiSettings.cjs +40 -263
- package/dist/runtimePiSettings.d.mts +3 -72
- package/dist/runtimePiSettings.mjs +3 -241
- package/dist/runtimeProtocol.cjs +19 -19
- package/dist/runtimeProtocol.cjs.map +1 -1
- package/dist/runtimeProtocol.d.mts +7 -7
- package/dist/runtimeProtocol.d.mts.map +1 -1
- package/dist/runtimeProtocol.mjs +17 -17
- package/dist/runtimeProtocol.mjs.map +1 -1
- package/dist/runtimeTransition.cjs +9 -9
- package/dist/runtimeTransition.cjs.map +1 -1
- package/dist/runtimeTransition.d.mts +10 -10
- package/dist/runtimeTransition.d.mts.map +1 -1
- package/dist/runtimeTransition.mjs +7 -7
- package/dist/runtimeTransition.mjs.map +1 -1
- package/dist/sandboxHarness.mjs +1 -2
- package/dist/server.cjs +3 -7
- package/dist/server.d.mts +6 -6
- package/dist/server.mjs +3 -4
- package/dist/serverPlugin.cjs +39 -0
- package/dist/serverPlugin.d.mts +12 -0
- package/dist/serverPlugin.mjs +11 -0
- package/dist/serverTelemetry.cjs +1 -1
- package/dist/serverTelemetry.cjs.map +1 -1
- package/dist/serverTelemetry.d.mts +2 -2
- package/dist/serverTelemetry.mjs +2 -2
- package/dist/serverTelemetry.mjs.map +1 -1
- package/dist/sessionFilesApi.cjs +41 -37
- package/dist/sessionFilesApi.cjs.map +1 -1
- package/dist/sessionFilesApi.d.mts +6 -3
- package/dist/sessionFilesApi.d.mts.map +1 -1
- package/dist/sessionFilesApi.mjs +41 -36
- package/dist/sessionFilesApi.mjs.map +1 -1
- package/dist/sessionProtocol.cjs +31 -6
- package/dist/sessionProtocol.d.mts +8 -3
- package/dist/sessionProtocol.mjs +8 -2
- package/dist/skills.cjs +5 -5
- package/dist/skills.d.mts +2 -2
- package/dist/skills.mjs +1 -2
- package/dist/sqliteSessionStorage.cjs +28 -50
- package/dist/sqliteSessionStorage.cjs.map +1 -1
- package/dist/sqliteSessionStorage.d.mts +13 -20
- package/dist/sqliteSessionStorage.d.mts.map +1 -1
- package/dist/sqliteSessionStorage.mjs +25 -48
- package/dist/sqliteSessionStorage.mjs.map +1 -1
- package/dist/src/constants/agentSettled.cjs +7 -0
- package/dist/src/constants/agentSettled.cjs.map +1 -0
- package/dist/src/constants/agentSettled.mjs +7 -0
- package/dist/src/constants/agentSettled.mjs.map +1 -0
- package/dist/src/constants/contextApi.cjs +3 -1
- package/dist/src/constants/contextApi.cjs.map +1 -1
- package/dist/src/constants/contextApi.d.mts +2 -1
- package/dist/src/constants/contextApi.d.mts.map +1 -1
- package/dist/src/constants/contextApi.mjs +3 -2
- package/dist/src/constants/contextApi.mjs.map +1 -1
- package/dist/src/constants/voiceTools.cjs +6 -6
- package/dist/src/constants/voiceTools.cjs.map +1 -1
- package/dist/src/constants/voiceTools.d.mts +3 -3
- package/dist/src/constants/voiceTools.mjs +4 -4
- package/dist/src/constants/voiceTools.mjs.map +1 -1
- package/dist/src/extensions/extensionFile.cjs +22 -5
- package/dist/src/extensions/extensionFile.cjs.map +1 -1
- package/dist/src/extensions/extensionFile.d.mts +17 -4
- package/dist/src/extensions/extensionFile.d.mts.map +1 -1
- package/dist/src/extensions/extensionFile.mjs +22 -6
- package/dist/src/extensions/extensionFile.mjs.map +1 -1
- package/dist/src/extensions/serverPlugin.cjs +231 -92
- package/dist/src/extensions/serverPlugin.cjs.map +1 -1
- package/dist/src/extensions/serverPlugin.d.mts +2 -2
- package/dist/src/extensions/serverPlugin.d.mts.map +1 -1
- package/dist/src/extensions/serverPlugin.mjs +232 -93
- package/dist/src/extensions/serverPlugin.mjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.cjs +349 -142
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.d.mts +18 -17
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
- package/dist/src/pi/piSessionRuntime.mjs +342 -135
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
- package/dist/src/schemas/agentModel.cjs +2 -2
- package/dist/src/schemas/agentModel.cjs.map +1 -1
- package/dist/src/schemas/agentModel.d.mts +1 -1
- package/dist/src/schemas/agentModel.mjs +2 -2
- package/dist/src/schemas/agentModel.mjs.map +1 -1
- package/dist/src/schemas/apiContracts.d.mts +2 -2
- package/dist/src/schemas/apiContracts.d.mts.map +1 -1
- package/dist/src/schemas/askUser.cjs +4 -4
- package/dist/src/schemas/askUser.cjs.map +1 -1
- package/dist/src/schemas/askUser.d.mts +4 -4
- package/dist/src/schemas/askUser.d.mts.map +1 -1
- package/dist/src/schemas/askUser.mjs +3 -3
- package/dist/src/schemas/askUser.mjs.map +1 -1
- package/dist/src/schemas/backgroundWork.cjs +10 -10
- package/dist/src/schemas/backgroundWork.cjs.map +1 -1
- package/dist/src/schemas/backgroundWork.d.mts +9 -9
- package/dist/src/schemas/backgroundWork.d.mts.map +1 -1
- package/dist/src/schemas/backgroundWork.mjs +8 -8
- package/dist/src/schemas/backgroundWork.mjs.map +1 -1
- package/dist/src/schemas/childProcess.cjs +5 -5
- package/dist/src/schemas/childProcess.cjs.map +1 -1
- package/dist/src/schemas/childProcess.d.mts +2 -2
- package/dist/src/schemas/childProcess.mjs +5 -5
- package/dist/src/schemas/childProcess.mjs.map +1 -1
- package/dist/src/schemas/contextContributions.cjs +10 -10
- package/dist/src/schemas/contextContributions.cjs.map +1 -1
- package/dist/src/schemas/contextContributions.d.mts +16 -16
- package/dist/src/schemas/contextContributions.d.mts.map +1 -1
- package/dist/src/schemas/contextContributions.mjs +8 -8
- package/dist/src/schemas/contextContributions.mjs.map +1 -1
- package/dist/src/schemas/delegation.cjs +17 -17
- package/dist/src/schemas/delegation.cjs.map +1 -1
- package/dist/src/schemas/delegation.d.mts +16 -16
- package/dist/src/schemas/delegation.d.mts.map +1 -1
- package/dist/src/schemas/delegation.mjs +10 -10
- package/dist/src/schemas/delegation.mjs.map +1 -1
- package/dist/src/schemas/extensionFile.d.mts +23 -19
- package/dist/src/schemas/extensionFile.d.mts.map +1 -1
- package/dist/src/schemas/footer.cjs.map +1 -1
- package/dist/src/schemas/footer.d.mts +5 -5
- package/dist/src/schemas/footer.d.mts.map +1 -1
- package/dist/src/schemas/footer.mjs.map +1 -1
- package/dist/src/schemas/headless.cjs +37 -37
- package/dist/src/schemas/headless.cjs.map +1 -1
- package/dist/src/schemas/headless.d.mts +100 -101
- package/dist/src/schemas/headless.d.mts.map +1 -1
- package/dist/src/schemas/headless.mjs +24 -24
- package/dist/src/schemas/headless.mjs.map +1 -1
- package/dist/src/schemas/help.cjs +60 -60
- package/dist/src/schemas/help.cjs.map +1 -1
- package/dist/src/schemas/help.d.mts +43 -43
- package/dist/src/schemas/help.d.mts.map +1 -1
- package/dist/src/schemas/help.mjs +41 -41
- package/dist/src/schemas/help.mjs.map +1 -1
- package/dist/src/schemas/home.cjs +127 -0
- package/dist/src/schemas/home.cjs.map +1 -0
- package/dist/src/schemas/home.d.mts +63 -0
- package/dist/src/schemas/home.d.mts.map +1 -0
- package/dist/src/schemas/home.mjs +121 -0
- package/dist/src/schemas/home.mjs.map +1 -0
- package/dist/src/schemas/httpApiContracts.cjs +441 -0
- package/dist/src/schemas/httpApiContracts.cjs.map +1 -0
- package/dist/src/schemas/httpApiContracts.d.mts +78 -0
- package/dist/src/schemas/httpApiContracts.d.mts.map +1 -0
- package/dist/src/schemas/httpApiContracts.mjs +434 -0
- package/dist/src/schemas/httpApiContracts.mjs.map +1 -0
- package/dist/src/schemas/hubChannel.cjs +3 -0
- package/dist/src/schemas/hubChannel.cjs.map +1 -1
- package/dist/src/schemas/hubChannel.d.mts +84 -60
- package/dist/src/schemas/hubChannel.d.mts.map +1 -1
- package/dist/src/schemas/hubChannel.mjs +3 -1
- package/dist/src/schemas/hubChannel.mjs.map +1 -1
- package/dist/src/schemas/leader.cjs.map +1 -1
- package/dist/src/schemas/leader.d.mts +3 -3
- package/dist/src/schemas/leader.d.mts.map +1 -1
- package/dist/src/schemas/leader.mjs.map +1 -1
- package/dist/src/schemas/mcpBundle.d.mts +3 -3
- package/dist/src/schemas/mcpFacet.cjs.map +1 -1
- package/dist/src/schemas/mcpFacet.d.mts +22 -22
- package/dist/src/schemas/mcpFacet.d.mts.map +1 -1
- package/dist/src/schemas/mcpFacet.mjs.map +1 -1
- package/dist/src/schemas/mcpProjection.cjs +41 -41
- package/dist/src/schemas/mcpProjection.cjs.map +1 -1
- package/dist/src/schemas/mcpProjection.d.mts +31 -30
- package/dist/src/schemas/mcpProjection.d.mts.map +1 -1
- package/dist/src/schemas/mcpProjection.mjs +29 -29
- package/dist/src/schemas/mcpProjection.mjs.map +1 -1
- package/dist/src/schemas/mcpSession.cjs +23 -23
- package/dist/src/schemas/mcpSession.cjs.map +1 -1
- package/dist/src/schemas/mcpSession.d.mts +12 -12
- package/dist/src/schemas/mcpSession.d.mts.map +1 -1
- package/dist/src/schemas/mcpSession.mjs +18 -18
- package/dist/src/schemas/mcpSession.mjs.map +1 -1
- package/dist/src/schemas/mcpStatus.cjs +5 -5
- package/dist/src/schemas/mcpStatus.cjs.map +1 -1
- package/dist/src/schemas/mcpStatus.d.mts +4 -4
- package/dist/src/schemas/mcpStatus.d.mts.map +1 -1
- package/dist/src/schemas/mcpStatus.mjs +4 -4
- package/dist/src/schemas/mcpStatus.mjs.map +1 -1
- package/dist/src/schemas/mcpToolResolver.cjs +9 -9
- package/dist/src/schemas/mcpToolResolver.cjs.map +1 -1
- package/dist/src/schemas/mcpToolResolver.d.mts +7 -7
- package/dist/src/schemas/mcpToolResolver.d.mts.map +1 -1
- package/dist/src/schemas/mcpToolResolver.mjs +7 -7
- package/dist/src/schemas/mcpToolResolver.mjs.map +1 -1
- package/dist/src/schemas/narration.cjs +9 -9
- package/dist/src/schemas/narration.cjs.map +1 -1
- package/dist/src/schemas/narration.d.mts +5 -5
- package/dist/src/schemas/narration.d.mts.map +1 -1
- package/dist/src/schemas/narration.mjs +7 -7
- package/dist/src/schemas/narration.mjs.map +1 -1
- package/dist/src/schemas/notification.cjs +45 -45
- package/dist/src/schemas/notification.cjs.map +1 -1
- package/dist/src/schemas/notification.d.mts +22 -22
- package/dist/src/schemas/notification.d.mts.map +1 -1
- package/dist/src/schemas/notification.mjs +31 -31
- package/dist/src/schemas/notification.mjs.map +1 -1
- package/dist/src/schemas/packageApi.cjs +28 -28
- package/dist/src/schemas/packageApi.cjs.map +1 -1
- package/dist/src/schemas/packageApi.d.mts +91 -65
- package/dist/src/schemas/packageApi.d.mts.map +1 -1
- package/dist/src/schemas/packageApi.mjs +18 -18
- package/dist/src/schemas/packageApi.mjs.map +1 -1
- package/dist/src/schemas/platform.cjs +34 -0
- package/dist/src/schemas/platform.cjs.map +1 -0
- package/dist/src/schemas/platform.d.mts +75 -0
- package/dist/src/schemas/platform.d.mts.map +1 -0
- package/dist/src/schemas/platform.mjs +27 -0
- package/dist/src/schemas/platform.mjs.map +1 -0
- package/dist/src/schemas/pluginContributions.cjs.map +1 -1
- package/dist/src/schemas/pluginContributions.d.mts +12 -12
- package/dist/src/schemas/pluginContributions.d.mts.map +1 -1
- package/dist/src/schemas/pluginContributions.mjs.map +1 -1
- package/dist/src/schemas/pluginProtocol.cjs +24 -27
- package/dist/src/schemas/pluginProtocol.cjs.map +1 -1
- package/dist/src/schemas/pluginProtocol.d.mts +21 -21
- package/dist/src/schemas/pluginProtocol.d.mts.map +1 -1
- package/dist/src/schemas/pluginProtocol.mjs +18 -20
- package/dist/src/schemas/pluginProtocol.mjs.map +1 -1
- package/dist/src/schemas/profileIdentity.cjs +2 -2
- package/dist/src/schemas/profileIdentity.cjs.map +1 -1
- package/dist/src/schemas/profileIdentity.d.mts +1 -1
- package/dist/src/schemas/profileIdentity.mjs +2 -2
- package/dist/src/schemas/profileIdentity.mjs.map +1 -1
- package/dist/src/schemas/protocolChannelsContract.cjs +27 -0
- package/dist/src/schemas/protocolChannelsContract.cjs.map +1 -0
- package/dist/src/schemas/protocolChannelsContract.d.mts +37 -0
- package/dist/src/schemas/protocolChannelsContract.d.mts.map +1 -0
- package/dist/src/schemas/protocolChannelsContract.mjs +25 -0
- package/dist/src/schemas/protocolChannelsContract.mjs.map +1 -0
- package/dist/src/schemas/protocolContracts.cjs +168 -0
- package/dist/src/schemas/protocolContracts.cjs.map +1 -0
- package/dist/src/schemas/protocolContracts.d.mts +69 -0
- package/dist/src/schemas/protocolContracts.d.mts.map +1 -0
- package/dist/src/schemas/protocolContracts.mjs +164 -0
- package/dist/src/schemas/protocolContracts.mjs.map +1 -0
- package/dist/src/schemas/protocolHubContract.cjs +51 -0
- package/dist/src/schemas/protocolHubContract.cjs.map +1 -0
- package/dist/src/schemas/protocolHubContract.d.mts +218 -0
- package/dist/src/schemas/protocolHubContract.d.mts.map +1 -0
- package/dist/src/schemas/protocolHubContract.mjs +49 -0
- package/dist/src/schemas/protocolHubContract.mjs.map +1 -0
- package/dist/src/schemas/protocolSessionContract.cjs +22 -0
- package/dist/src/schemas/protocolSessionContract.cjs.map +1 -0
- package/dist/src/schemas/protocolSessionContract.d.mts +324 -0
- package/dist/src/schemas/protocolSessionContract.d.mts.map +1 -0
- package/dist/src/schemas/protocolSessionContract.mjs +22 -0
- package/dist/src/schemas/protocolSessionContract.mjs.map +1 -0
- package/dist/src/schemas/protocolThreadContract.cjs +21 -0
- package/dist/src/schemas/protocolThreadContract.cjs.map +1 -0
- package/dist/src/schemas/protocolThreadContract.d.mts +29 -0
- package/dist/src/schemas/protocolThreadContract.d.mts.map +1 -0
- package/dist/src/schemas/protocolThreadContract.mjs +20 -0
- package/dist/src/schemas/protocolThreadContract.mjs.map +1 -0
- package/dist/src/schemas/readiness.cjs +36 -36
- package/dist/src/schemas/readiness.cjs.map +1 -1
- package/dist/src/schemas/readiness.d.mts +37 -37
- package/dist/src/schemas/readiness.d.mts.map +1 -1
- package/dist/src/schemas/readiness.mjs +31 -31
- package/dist/src/schemas/readiness.mjs.map +1 -1
- package/dist/src/schemas/serverBundle.d.mts +5 -5
- package/dist/src/schemas/serverPlugin.cjs +103 -0
- package/dist/src/schemas/serverPlugin.cjs.map +1 -0
- package/dist/src/schemas/serverPlugin.d.mts +176 -0
- package/dist/src/schemas/serverPlugin.d.mts.map +1 -0
- package/dist/src/schemas/serverPlugin.mjs +95 -0
- package/dist/src/schemas/serverPlugin.mjs.map +1 -0
- package/dist/src/schemas/serverScope.cjs +37 -0
- package/dist/src/schemas/serverScope.cjs.map +1 -0
- package/dist/src/schemas/serverScope.d.mts +77 -0
- package/dist/src/schemas/serverScope.d.mts.map +1 -0
- package/dist/src/schemas/serverScope.mjs +33 -0
- package/dist/src/schemas/serverScope.mjs.map +1 -0
- package/dist/src/schemas/sessionApiContracts.cjs +320 -0
- package/dist/src/schemas/sessionApiContracts.cjs.map +1 -0
- package/dist/src/schemas/sessionApiContracts.mjs +318 -0
- package/dist/src/schemas/sessionApiContracts.mjs.map +1 -0
- package/dist/src/schemas/sessionProtocol.cjs +20 -13
- package/dist/src/schemas/sessionProtocol.cjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.d.mts +37 -54
- package/dist/src/schemas/sessionProtocol.d.mts.map +1 -1
- package/dist/src/schemas/sessionProtocol.mjs +17 -8
- package/dist/src/schemas/sessionProtocol.mjs.map +1 -1
- package/dist/src/schemas/skills.cjs +16 -16
- package/dist/src/schemas/skills.cjs.map +1 -1
- package/dist/src/schemas/skills.d.mts +7 -7
- package/dist/src/schemas/skills.d.mts.map +1 -1
- package/dist/src/schemas/skills.mjs +12 -12
- package/dist/src/schemas/skills.mjs.map +1 -1
- package/dist/src/schemas/toolOverrides.cjs +9 -9
- package/dist/src/schemas/toolOverrides.cjs.map +1 -1
- package/dist/src/schemas/toolOverrides.d.mts +8 -8
- package/dist/src/schemas/toolOverrides.d.mts.map +1 -1
- package/dist/src/schemas/toolOverrides.mjs +7 -7
- package/dist/src/schemas/toolOverrides.mjs.map +1 -1
- package/dist/src/schemas/toolSurface.cjs +9 -9
- package/dist/src/schemas/toolSurface.cjs.map +1 -1
- package/dist/src/schemas/toolSurface.d.mts +13 -13
- package/dist/src/schemas/toolSurface.d.mts.map +1 -1
- package/dist/src/schemas/toolSurface.mjs +7 -7
- package/dist/src/schemas/toolSurface.mjs.map +1 -1
- package/dist/src/schemas/uiHub.cjs +9 -9
- package/dist/src/schemas/uiHub.cjs.map +1 -1
- package/dist/src/schemas/uiHub.d.mts +12 -12
- package/dist/src/schemas/uiHub.d.mts.map +1 -1
- package/dist/src/schemas/uiHub.mjs +7 -7
- package/dist/src/schemas/uiHub.mjs.map +1 -1
- package/dist/src/server/directHarnessRuntime.cjs +691 -775
- package/dist/src/server/directHarnessRuntime.cjs.map +1 -1
- package/dist/src/server/directHarnessRuntime.d.mts +5 -1
- package/dist/src/server/directHarnessRuntime.d.mts.map +1 -0
- package/dist/src/server/directHarnessRuntime.mjs +671 -754
- package/dist/src/server/directHarnessRuntime.mjs.map +1 -1
- package/dist/src/server/largeFrameLink.cjs +47 -0
- package/dist/src/server/largeFrameLink.cjs.map +1 -0
- package/dist/src/server/largeFrameLink.mjs +47 -0
- package/dist/src/server/largeFrameLink.mjs.map +1 -0
- package/dist/src/server/liveImport.cjs +1 -1
- package/dist/src/server/liveImport.cjs.map +1 -1
- package/dist/src/server/liveImport.d.mts +1 -1
- package/dist/src/server/liveImport.mjs +1 -1
- package/dist/src/server/liveImport.mjs.map +1 -1
- package/dist/src/server/mcpBundleLoader.cjs.map +1 -1
- package/dist/src/server/mcpBundleLoader.d.mts +6 -6
- package/dist/src/server/mcpBundleLoader.d.mts.map +1 -1
- package/dist/src/server/mcpBundleLoader.mjs.map +1 -1
- package/dist/src/server/serverPackages.cjs +60 -0
- package/dist/src/server/serverPackages.cjs.map +1 -0
- package/dist/src/server/serverPackages.d.mts +44 -0
- package/dist/src/server/serverPackages.d.mts.map +1 -0
- package/dist/src/server/serverPackages.mjs +59 -0
- package/dist/src/server/serverPackages.mjs.map +1 -0
- package/dist/src/server/serverScope.cjs +510 -0
- package/dist/src/server/serverScope.cjs.map +1 -0
- package/dist/src/server/serverScope.d.mts +123 -0
- package/dist/src/server/serverScope.d.mts.map +1 -0
- package/dist/src/server/serverScope.mjs +510 -0
- package/dist/src/server/serverScope.mjs.map +1 -0
- package/dist/src/server/sessionMcpHandler.cjs +3 -3
- package/dist/src/server/sessionMcpHandler.cjs.map +1 -1
- package/dist/src/server/sessionMcpHandler.mjs +4 -4
- package/dist/src/server/sessionMcpHandler.mjs.map +1 -1
- package/dist/src/server/sessionMcpRoutes.cjs +2 -1
- package/dist/src/server/sessionMcpRoutes.cjs.map +1 -1
- package/dist/src/server/sessionMcpRoutes.mjs +2 -1
- package/dist/src/server/sessionMcpRoutes.mjs.map +1 -1
- package/dist/src/server/threadJournals.cjs +38 -107
- package/dist/src/server/threadJournals.cjs.map +1 -1
- package/dist/src/server/threadJournals.mjs +38 -104
- package/dist/src/server/threadJournals.mjs.map +1 -1
- package/dist/src/services/apiSurfaceAssert/index.cjs +1 -1
- package/dist/src/services/apiSurfaceAssert/index.cjs.map +1 -1
- package/dist/src/services/apiSurfaceAssert/index.d.mts +6 -6
- package/dist/src/services/apiSurfaceAssert/index.mjs +1 -1
- package/dist/src/services/apiSurfaceAssert/index.mjs.map +1 -1
- package/dist/src/services/chatgptAuth/index.cjs +1 -220
- package/dist/src/services/chatgptAuth/index.cjs.map +1 -1
- package/dist/src/services/chatgptAuth/index.d.mts +0 -18
- package/dist/src/services/chatgptAuth/index.d.mts.map +1 -1
- package/dist/src/services/chatgptAuth/index.mjs +1 -217
- package/dist/src/services/chatgptAuth/index.mjs.map +1 -1
- package/dist/src/services/chatgptImages/index.cjs +1 -1
- package/dist/src/services/chatgptImages/index.cjs.map +1 -1
- package/dist/src/services/chatgptImages/index.mjs +1 -1
- package/dist/src/services/chatgptImages/index.mjs.map +1 -1
- package/dist/src/services/chatgptLogin/index.cjs +230 -0
- package/dist/src/services/chatgptLogin/index.cjs.map +1 -0
- package/dist/src/services/chatgptLogin/index.d.mts +21 -0
- package/dist/src/services/chatgptLogin/index.d.mts.map +1 -0
- package/dist/src/services/chatgptLogin/index.mjs +227 -0
- package/dist/src/services/chatgptLogin/index.mjs.map +1 -0
- package/dist/src/services/chatgptWebSearch/index.cjs +1 -1
- package/dist/src/services/chatgptWebSearch/index.cjs.map +1 -1
- package/dist/src/services/chatgptWebSearch/index.mjs +1 -1
- package/dist/src/services/chatgptWebSearch/index.mjs.map +1 -1
- package/dist/src/services/contextContributions/index.cjs +8 -8
- package/dist/src/services/contextContributions/index.cjs.map +1 -1
- package/dist/src/services/contextContributions/index.d.mts +3 -3
- package/dist/src/services/contextContributions/index.d.mts.map +1 -1
- package/dist/src/services/contextContributions/index.mjs +8 -8
- package/dist/src/services/contextContributions/index.mjs.map +1 -1
- package/dist/src/services/devProxyStore/devProxyRecords.cjs +59 -0
- package/dist/src/services/devProxyStore/devProxyRecords.cjs.map +1 -0
- package/dist/src/services/devProxyStore/devProxyRecords.mjs +56 -0
- package/dist/src/services/devProxyStore/devProxyRecords.mjs.map +1 -0
- package/dist/src/services/devProxyStore/index.cjs +7 -101
- package/dist/src/services/devProxyStore/index.cjs.map +1 -1
- package/dist/src/services/devProxyStore/index.mjs +7 -101
- package/dist/src/services/devProxyStore/index.mjs.map +1 -1
- package/dist/src/services/devProxyStore/sync.cjs +66 -0
- package/dist/src/services/devProxyStore/sync.cjs.map +1 -0
- package/dist/src/services/devProxyStore/sync.mjs +63 -0
- package/dist/src/services/devProxyStore/sync.mjs.map +1 -0
- package/dist/src/services/durableNavigation/docs.cjs +15 -0
- package/dist/src/services/durableNavigation/docs.cjs.map +1 -0
- package/dist/src/services/durableNavigation/docs.mjs +16 -0
- package/dist/src/services/durableNavigation/docs.mjs.map +1 -0
- package/dist/src/services/durableNavigation/index.cjs +3 -18
- package/dist/src/services/durableNavigation/index.cjs.map +1 -1
- package/dist/src/services/durableNavigation/index.mjs +2 -17
- package/dist/src/services/durableNavigation/index.mjs.map +1 -1
- package/dist/src/services/durableQueue/docs.cjs +12 -0
- package/dist/src/services/durableQueue/docs.cjs.map +1 -0
- package/dist/src/services/durableQueue/docs.mjs +13 -0
- package/dist/src/services/durableQueue/docs.mjs.map +1 -0
- package/dist/src/services/durableQueue/index.cjs +151 -0
- package/dist/src/services/durableQueue/index.cjs.map +1 -0
- package/dist/src/services/durableQueue/index.mjs +149 -0
- package/dist/src/services/durableQueue/index.mjs.map +1 -0
- package/dist/src/services/durableRequestReceipts/docs.cjs +11 -0
- package/dist/src/services/durableRequestReceipts/docs.cjs.map +1 -0
- package/dist/src/services/durableRequestReceipts/docs.mjs +12 -0
- package/dist/src/services/durableRequestReceipts/docs.mjs.map +1 -0
- package/dist/src/services/{requestReceipts → durableRequestReceipts}/index.cjs +10 -16
- package/dist/src/services/durableRequestReceipts/index.cjs.map +1 -0
- package/dist/src/services/durableRequestReceipts/index.d.mts +12 -0
- package/dist/src/services/durableRequestReceipts/index.d.mts.map +1 -0
- package/dist/src/services/{requestReceipts → durableRequestReceipts}/index.mjs +7 -13
- package/dist/src/services/durableRequestReceipts/index.mjs.map +1 -0
- package/dist/src/services/durableSession/docs.cjs +65 -0
- package/dist/src/services/durableSession/docs.cjs.map +1 -0
- package/dist/src/services/durableSession/docs.d.mts +17 -0
- package/dist/src/services/durableSession/docs.d.mts.map +1 -0
- package/dist/src/services/durableSession/docs.mjs +60 -0
- package/dist/src/services/durableSession/docs.mjs.map +1 -0
- package/dist/src/services/durableSession/index.cjs +21 -0
- package/dist/src/services/durableSession/index.cjs.map +1 -0
- package/dist/src/services/durableSession/index.d.mts +13 -0
- package/dist/src/services/durableSession/index.d.mts.map +1 -0
- package/dist/src/services/durableSession/index.mjs +20 -0
- package/dist/src/services/durableSession/index.mjs.map +1 -0
- package/dist/src/services/durableSubagents/docs.cjs +15 -0
- package/dist/src/services/durableSubagents/docs.cjs.map +1 -0
- package/dist/src/services/durableSubagents/docs.mjs +16 -0
- package/dist/src/services/durableSubagents/docs.mjs.map +1 -0
- package/dist/src/services/durableSubagents/extension.cjs +11 -0
- package/dist/src/services/durableSubagents/extension.cjs.map +1 -0
- package/dist/src/services/durableSubagents/extension.mjs +12 -0
- package/dist/src/services/durableSubagents/extension.mjs.map +1 -0
- package/dist/src/services/durableSubagents/index.cjs +95 -0
- package/dist/src/services/durableSubagents/index.cjs.map +1 -0
- package/dist/src/services/durableSubagents/index.mjs +90 -0
- package/dist/src/services/durableSubagents/index.mjs.map +1 -0
- package/dist/src/services/durableSubagents/tasks.cjs +25 -0
- package/dist/src/services/durableSubagents/tasks.cjs.map +1 -0
- package/dist/src/services/durableSubagents/tasks.mjs +26 -0
- package/dist/src/services/durableSubagents/tasks.mjs.map +1 -0
- package/dist/src/services/headlessClient/index.cjs +20 -13
- package/dist/src/services/headlessClient/index.cjs.map +1 -1
- package/dist/src/services/headlessClient/index.mjs +21 -14
- package/dist/src/services/headlessClient/index.mjs.map +1 -1
- package/dist/src/services/historyOwnership/type.d.mts +15 -0
- package/dist/src/services/historyOwnership/type.d.mts.map +1 -0
- package/dist/src/services/hubChannelHarness/index.cjs +2 -2
- package/dist/src/services/hubChannelHarness/index.cjs.map +1 -1
- package/dist/src/services/hubChannelHarness/index.d.mts +8 -8
- package/dist/src/services/hubChannelHarness/index.d.mts.map +1 -1
- package/dist/src/services/hubChannelHarness/index.mjs +2 -2
- package/dist/src/services/hubChannelHarness/index.mjs.map +1 -1
- package/dist/src/services/json/core.cjs +30 -0
- package/dist/src/services/json/core.cjs.map +1 -0
- package/dist/src/services/json/core.d.mts +21 -0
- package/dist/src/services/json/core.d.mts.map +1 -0
- package/dist/src/services/json/core.mjs +26 -0
- package/dist/src/services/json/core.mjs.map +1 -0
- package/dist/src/services/json/sync.cjs +48 -0
- package/dist/src/services/json/sync.cjs.map +1 -0
- package/dist/src/services/json/sync.d.mts +22 -0
- package/dist/src/services/json/sync.d.mts.map +1 -0
- package/dist/src/services/json/sync.mjs +43 -0
- package/dist/src/services/json/sync.mjs.map +1 -0
- package/dist/src/services/kernel/index.cjs +2 -2
- package/dist/src/services/kernel/index.cjs.map +1 -1
- package/dist/src/services/kernel/index.d.mts +3 -3
- package/dist/src/services/kernel/index.d.mts.map +1 -1
- package/dist/src/services/kernel/index.mjs +2 -2
- package/dist/src/services/kernel/index.mjs.map +1 -1
- package/dist/src/services/nativeChildTools/index.cjs +16 -0
- package/dist/src/services/nativeChildTools/index.cjs.map +1 -0
- package/dist/src/services/nativeChildTools/index.mjs +16 -0
- package/dist/src/services/nativeChildTools/index.mjs.map +1 -0
- package/dist/src/services/nodeHost/index.cjs +30 -0
- package/dist/src/services/nodeHost/index.cjs.map +1 -0
- package/dist/src/services/nodeHost/index.d.mts +16 -0
- package/dist/src/services/nodeHost/index.d.mts.map +1 -0
- package/dist/src/services/nodeHost/index.mjs +27 -0
- package/dist/src/services/nodeHost/index.mjs.map +1 -0
- package/dist/src/services/nodeModelDependencies/index.cjs +89 -0
- package/dist/src/services/nodeModelDependencies/index.cjs.map +1 -0
- package/dist/src/services/nodeModelDependencies/index.mjs +86 -0
- package/dist/src/services/nodeModelDependencies/index.mjs.map +1 -0
- package/dist/src/services/openSessionRegistry/index.cjs +6 -128
- package/dist/src/services/openSessionRegistry/index.cjs.map +1 -1
- package/dist/src/services/openSessionRegistry/index.d.mts +5 -36
- package/dist/src/services/openSessionRegistry/index.mjs +6 -128
- package/dist/src/services/openSessionRegistry/index.mjs.map +1 -1
- package/dist/src/services/openSessionRegistry/openSessionRecords.cjs +87 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.cjs.map +1 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts +30 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts.map +1 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.mjs +81 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.mjs.map +1 -0
- package/dist/src/services/openSessionRegistry/sync.cjs +71 -0
- package/dist/src/services/openSessionRegistry/sync.cjs.map +1 -0
- package/dist/src/services/openSessionRegistry/sync.d.mts +14 -0
- package/dist/src/services/openSessionRegistry/sync.d.mts.map +1 -0
- package/dist/src/services/openSessionRegistry/sync.mjs +68 -0
- package/dist/src/services/openSessionRegistry/sync.mjs.map +1 -0
- package/dist/src/services/packageApiHarness/index.cjs +1 -1
- package/dist/src/services/packageApiHarness/index.cjs.map +1 -1
- package/dist/src/services/packageApiHarness/index.d.mts +6 -6
- package/dist/src/services/packageApiHarness/index.d.mts.map +1 -1
- package/dist/src/services/packageApiHarness/index.mjs +2 -2
- package/dist/src/services/packageApiHarness/index.mjs.map +1 -1
- package/dist/src/services/piArgs/index.cjs +53 -0
- package/dist/src/services/piArgs/index.cjs.map +1 -0
- package/dist/src/services/piArgs/index.d.mts +6 -0
- package/dist/src/services/piArgs/index.d.mts.map +1 -0
- package/dist/src/services/piArgs/index.mjs +53 -0
- package/dist/src/services/piArgs/index.mjs.map +1 -0
- package/dist/src/services/piExtensionHost/index.cjs +47 -39
- package/dist/src/services/piExtensionHost/index.cjs.map +1 -1
- package/dist/src/services/piExtensionHost/index.d.mts +83 -0
- package/dist/src/services/piExtensionHost/index.d.mts.map +1 -0
- package/dist/src/services/piExtensionHost/index.mjs +47 -38
- package/dist/src/services/piExtensionHost/index.mjs.map +1 -1
- package/dist/src/services/piHelpTools/index.cjs +5 -5
- package/dist/src/services/piHelpTools/index.cjs.map +1 -1
- package/dist/src/services/piHelpTools/index.d.mts.map +1 -1
- package/dist/src/services/piHelpTools/index.mjs +7 -7
- package/dist/src/services/piHelpTools/index.mjs.map +1 -1
- package/dist/src/services/piMessages/index.cjs +106 -0
- package/dist/src/services/piMessages/index.cjs.map +1 -0
- package/dist/src/services/piMessages/index.mjs +105 -0
- package/dist/src/services/piMessages/index.mjs.map +1 -0
- package/dist/src/services/piSessionEntries/index.cjs +4 -4
- package/dist/src/services/piSessionEntries/index.cjs.map +1 -1
- package/dist/src/services/piSessionEntries/index.mjs +3 -3
- package/dist/src/services/piSessionEntries/index.mjs.map +1 -1
- package/dist/src/services/piSettings/core.cjs +308 -0
- package/dist/src/services/piSettings/core.cjs.map +1 -0
- package/dist/src/services/piSettings/core.d.mts +102 -0
- package/dist/src/services/piSettings/core.d.mts.map +1 -0
- package/dist/src/services/piSettings/core.mjs +276 -0
- package/dist/src/services/piSettings/core.mjs.map +1 -0
- package/dist/src/services/piSettings/sync.cjs +119 -0
- package/dist/src/services/piSettings/sync.cjs.map +1 -0
- package/dist/src/services/piSettings/sync.d.mts +44 -0
- package/dist/src/services/piSettings/sync.d.mts.map +1 -0
- package/dist/src/services/piSettings/sync.mjs +110 -0
- package/dist/src/services/piSettings/sync.mjs.map +1 -0
- package/dist/src/services/piSummary/index.cjs +7 -0
- package/dist/src/services/piSummary/index.cjs.map +1 -0
- package/dist/src/services/piSummary/index.mjs +7 -0
- package/dist/src/services/piSummary/index.mjs.map +1 -0
- package/dist/src/services/platformFiles/index.cjs +44 -0
- package/dist/src/services/platformFiles/index.cjs.map +1 -0
- package/dist/src/services/platformFiles/index.d.mts +16 -0
- package/dist/src/services/platformFiles/index.d.mts.map +1 -0
- package/dist/src/services/platformFiles/index.mjs +39 -0
- package/dist/src/services/platformFiles/index.mjs.map +1 -0
- package/dist/src/services/pluginLifecycle/index.cjs +19 -13
- package/dist/src/services/pluginLifecycle/index.cjs.map +1 -1
- package/dist/src/services/pluginLifecycle/index.d.mts +2 -0
- package/dist/src/services/pluginLifecycle/index.d.mts.map +1 -1
- package/dist/src/services/pluginLifecycle/index.mjs +19 -14
- package/dist/src/services/pluginLifecycle/index.mjs.map +1 -1
- package/dist/src/services/poPackage/core.cjs +73 -0
- package/dist/src/services/poPackage/core.cjs.map +1 -0
- package/dist/src/services/poPackage/core.d.mts +32 -0
- package/dist/src/services/poPackage/core.d.mts.map +1 -0
- package/dist/src/services/poPackage/core.mjs +66 -0
- package/dist/src/services/poPackage/core.mjs.map +1 -0
- package/dist/src/services/poPackage/sync.cjs +55 -0
- package/dist/src/services/poPackage/sync.cjs.map +1 -0
- package/dist/src/services/poPackage/sync.d.mts +21 -0
- package/dist/src/services/poPackage/sync.d.mts.map +1 -0
- package/dist/src/services/poPackage/sync.mjs +50 -0
- package/dist/src/services/poPackage/sync.mjs.map +1 -0
- package/dist/src/services/providerAuth/index.cjs +11 -7
- package/dist/src/services/providerAuth/index.cjs.map +1 -1
- package/dist/src/services/providerAuth/index.mjs +11 -7
- package/dist/src/services/providerAuth/index.mjs.map +1 -1
- package/dist/src/services/publicFileShares/index.cjs +1 -1
- package/dist/src/services/publicFileShares/index.cjs.map +1 -1
- package/dist/src/services/publicFileShares/index.d.mts +2 -2
- package/dist/src/services/publicFileShares/index.mjs +2 -2
- package/dist/src/services/publicFileShares/index.mjs.map +1 -1
- package/dist/src/services/remoteAccess/index.d.mts +1 -0
- package/dist/src/services/remoteAccess/index.d.mts.map +1 -1
- package/dist/src/services/remoteAccessStore/index.cjs +8 -190
- package/dist/src/services/remoteAccessStore/index.cjs.map +1 -1
- package/dist/src/services/remoteAccessStore/index.d.mts +2 -0
- package/dist/src/services/remoteAccessStore/index.mjs +7 -187
- package/dist/src/services/remoteAccessStore/index.mjs.map +1 -1
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs +98 -0
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs.map +1 -0
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs +88 -0
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs.map +1 -0
- package/dist/src/services/remoteAccessStore/sync.cjs +111 -0
- package/dist/src/services/remoteAccessStore/sync.cjs.map +1 -0
- package/dist/src/services/remoteAccessStore/sync.mjs +108 -0
- package/dist/src/services/remoteAccessStore/sync.mjs.map +1 -0
- package/dist/src/services/runtimeIdentity/sync.cjs +23 -0
- package/dist/src/services/runtimeIdentity/sync.cjs.map +1 -0
- package/dist/src/services/runtimeIdentity/sync.d.mts +9 -0
- package/dist/src/services/runtimeIdentity/sync.d.mts.map +1 -0
- package/dist/src/services/runtimeIdentity/sync.mjs +20 -0
- package/dist/src/services/runtimeIdentity/sync.mjs.map +1 -0
- package/dist/src/services/serialRunner/index.cjs +25 -0
- package/dist/src/services/serialRunner/index.cjs.map +1 -0
- package/dist/src/services/serialRunner/index.d.mts +10 -0
- package/dist/src/services/serialRunner/index.d.mts.map +1 -0
- package/dist/src/services/serialRunner/index.mjs +25 -0
- package/dist/src/services/serialRunner/index.mjs.map +1 -0
- package/dist/src/services/{serverFacet → serverHost}/index.cjs +5 -5
- package/dist/src/services/serverHost/index.cjs.map +1 -0
- package/dist/src/services/serverHost/index.d.mts +31 -0
- package/dist/src/services/serverHost/index.d.mts.map +1 -0
- package/dist/src/services/{serverFacet → serverHost}/index.mjs +5 -5
- package/dist/src/services/serverHost/index.mjs.map +1 -0
- package/dist/src/services/sessionAttachments/index.cjs +4 -3
- package/dist/src/services/sessionAttachments/index.cjs.map +1 -1
- package/dist/src/services/sessionAttachments/index.d.mts +1 -6
- package/dist/src/services/sessionAttachments/index.d.mts.map +1 -1
- package/dist/src/services/sessionAttachments/index.mjs +3 -2
- package/dist/src/services/sessionAttachments/index.mjs.map +1 -1
- package/dist/src/services/sessionAttachments/type.d.mts +9 -0
- package/dist/src/services/sessionAttachments/type.d.mts.map +1 -0
- package/dist/src/services/sessionFiles/index.cjs +96 -0
- package/dist/src/services/sessionFiles/index.cjs.map +1 -0
- package/dist/src/services/sessionFiles/index.d.mts +33 -0
- package/dist/src/services/sessionFiles/index.d.mts.map +1 -0
- package/dist/src/services/sessionFiles/index.mjs +89 -0
- package/dist/src/services/sessionFiles/index.mjs.map +1 -0
- package/dist/src/services/sessionFiles/sessionDirectory.cjs +66 -0
- package/dist/src/services/sessionFiles/sessionDirectory.cjs.map +1 -0
- package/dist/src/services/sessionFiles/sessionDirectory.mjs +62 -0
- package/dist/src/services/sessionFiles/sessionDirectory.mjs.map +1 -0
- package/dist/src/services/sessionGitStatus/index.cjs +31 -33
- package/dist/src/services/sessionGitStatus/index.cjs.map +1 -1
- package/dist/src/services/sessionGitStatus/index.mjs +31 -33
- package/dist/src/services/sessionGitStatus/index.mjs.map +1 -1
- package/dist/src/services/sessionPresentation/index.cjs +3 -27
- package/dist/src/services/sessionPresentation/index.cjs.map +1 -1
- package/dist/src/services/sessionPresentation/index.mjs +3 -27
- package/dist/src/services/sessionPresentation/index.mjs.map +1 -1
- package/dist/src/services/skillPrompt/index.cjs +11 -0
- package/dist/src/services/skillPrompt/index.cjs.map +1 -0
- package/dist/src/services/skillPrompt/index.mjs +11 -0
- package/dist/src/services/skillPrompt/index.mjs.map +1 -0
- package/dist/src/services/sqliteSessionHistory/index.cjs +44 -30
- package/dist/src/services/sqliteSessionHistory/index.cjs.map +1 -1
- package/dist/src/services/sqliteSessionHistory/index.d.mts +7 -4
- package/dist/src/services/sqliteSessionHistory/index.d.mts.map +1 -1
- package/dist/src/services/sqliteSessionHistory/index.mjs +43 -28
- package/dist/src/services/sqliteSessionHistory/index.mjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.cjs +21 -45
- package/dist/src/services/sqliteTranscriptReader/index.cjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.d.mts +3 -2
- package/dist/src/services/sqliteTranscriptReader/index.d.mts.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.mjs +16 -38
- package/dist/src/services/sqliteTranscriptReader/index.mjs.map +1 -1
- package/dist/src/services/testMode/index.cjs +162 -0
- package/dist/src/services/testMode/index.cjs.map +1 -0
- package/dist/src/services/testMode/index.d.mts +17 -0
- package/dist/src/services/testMode/index.d.mts.map +1 -0
- package/dist/src/services/testMode/index.mjs +155 -0
- package/dist/src/services/testMode/index.mjs.map +1 -0
- package/dist/src/services/toolOverrides/index.cjs +6 -6
- package/dist/src/services/toolOverrides/index.cjs.map +1 -1
- package/dist/src/services/toolOverrides/index.d.mts +3 -3
- package/dist/src/services/toolOverrides/index.d.mts.map +1 -1
- package/dist/src/services/toolOverrides/index.mjs +6 -6
- package/dist/src/services/toolOverrides/index.mjs.map +1 -1
- package/dist/src/services/toolPrompt/index.d.mts +17 -0
- package/dist/src/services/toolPrompt/index.d.mts.map +1 -0
- package/dist/src/services/toolSurface/index.cjs +3 -3
- package/dist/src/services/toolSurface/index.cjs.map +1 -1
- package/dist/src/services/toolSurface/index.d.mts +3 -3
- package/dist/src/services/toolSurface/index.d.mts.map +1 -1
- package/dist/src/services/toolSurface/index.mjs +4 -4
- package/dist/src/services/toolSurface/index.mjs.map +1 -1
- package/dist/src/services/traceContext/index.cjs.map +1 -1
- package/dist/src/services/traceContext/index.mjs.map +1 -1
- package/dist/src/services/transcriptPages/index.cjs +159 -33
- package/dist/src/services/transcriptPages/index.cjs.map +1 -1
- package/dist/src/services/transcriptPages/index.mjs +158 -34
- package/dist/src/services/transcriptPages/index.mjs.map +1 -1
- package/dist/src/services/voiceToolsContract/index.cjs +7 -7
- package/dist/src/services/voiceToolsContract/index.cjs.map +1 -1
- package/dist/src/services/voiceToolsContract/index.d.mts +4 -4
- package/dist/src/services/voiceToolsContract/index.d.mts.map +1 -1
- package/dist/src/services/voiceToolsContract/index.mjs +7 -7
- package/dist/src/services/voiceToolsContract/index.mjs.map +1 -1
- package/dist/src/services/workspaceRegistry/index.cjs +9 -179
- package/dist/src/services/workspaceRegistry/index.cjs.map +1 -1
- package/dist/src/services/workspaceRegistry/index.d.mts +5 -47
- package/dist/src/services/workspaceRegistry/index.mjs +7 -176
- package/dist/src/services/workspaceRegistry/index.mjs.map +1 -1
- package/dist/src/services/workspaceRegistry/sync.cjs +148 -0
- package/dist/src/services/workspaceRegistry/sync.cjs.map +1 -0
- package/dist/src/services/workspaceRegistry/sync.d.mts +34 -0
- package/dist/src/services/workspaceRegistry/sync.d.mts.map +1 -0
- package/dist/src/services/workspaceRegistry/sync.mjs +140 -0
- package/dist/src/services/workspaceRegistry/sync.mjs.map +1 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.cjs +114 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.cjs.map +1 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts +31 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts.map +1 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.mjs +101 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.mjs.map +1 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs +339 -202
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts +16 -21
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs +329 -191
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs.map +1 -1
- package/dist/src/systems/child/services/childSession/index.cjs +94 -20
- package/dist/src/systems/child/services/childSession/index.cjs.map +1 -1
- package/dist/src/systems/child/services/childSession/index.d.mts +12 -3
- package/dist/src/systems/child/services/childSession/index.d.mts.map +1 -1
- package/dist/src/systems/child/services/childSession/index.mjs +94 -20
- package/dist/src/systems/child/services/childSession/index.mjs.map +1 -1
- package/dist/src/systems/child/types/childSession.cjs +33 -13
- package/dist/src/systems/child/types/childSession.cjs.map +1 -1
- package/dist/src/systems/child/types/childSession.d.mts +143 -80
- package/dist/src/systems/child/types/childSession.d.mts.map +1 -1
- package/dist/src/systems/child/types/childSession.mjs +24 -9
- package/dist/src/systems/child/types/childSession.mjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessHost.cjs +30 -27
- package/dist/src/systems/main/adapters/headlessHost.cjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessHost.d.mts +22 -22
- package/dist/src/systems/main/adapters/headlessHost.d.mts.map +1 -1
- package/dist/src/systems/main/adapters/headlessHost.mjs +33 -30
- package/dist/src/systems/main/adapters/headlessHost.mjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs +248 -229
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts +4 -5
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs +239 -219
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs.map +1 -1
- package/dist/src/systems/main/types/headlessHost.d.mts +16 -14
- package/dist/src/systems/main/types/headlessHost.d.mts.map +1 -1
- package/dist/src/testing/pi/testHost.cjs +2 -2
- package/dist/src/testing/pi/testHost.cjs.map +1 -1
- package/dist/src/testing/pi/testHost.d.mts +3 -2
- package/dist/src/testing/pi/testHost.mjs +3 -3
- package/dist/src/testing/pi/testHost.mjs.map +1 -1
- package/dist/src/types/config.d.mts +1 -1
- package/dist/src/types/config.d.mts.map +1 -1
- package/dist/src/types/kernel.d.mts +3 -3
- package/dist/src/types/server/directHarnessRuntime.d.mts +54 -25
- package/dist/src/types/server/directHarnessRuntime.d.mts.map +1 -1
- package/dist/src/types/server/sessionToolSurface.d.mts +9 -9
- package/dist/src/web/services/apiClient/index.d.mts +1 -0
- package/dist/src/web/services/apiPaths/index.cjs.map +1 -1
- package/dist/src/web/services/apiPaths/index.d.mts +1 -1
- package/dist/src/web/services/apiPaths/index.mjs.map +1 -1
- package/dist/src/web/services/mcpWidget.cjs.map +1 -1
- package/dist/src/web/services/mcpWidget.d.mts +2 -2
- package/dist/src/web/services/mcpWidget.d.mts.map +1 -1
- package/dist/src/web/services/mcpWidget.mjs.map +1 -1
- package/dist/src/web/services/testing/templateRail.cjs +3 -0
- package/dist/src/web/services/testing/templateRail.cjs.map +1 -1
- package/dist/src/web/services/testing/templateRail.mjs +3 -0
- package/dist/src/web/services/testing/templateRail.mjs.map +1 -1
- package/dist/src/web/types/mcpWidget.d.mts +1 -1
- package/dist/src/web/types/nativeTemplate.d.mts +1 -1
- package/dist/src/web/types/nativeTemplate.d.mts.map +1 -1
- package/dist/src/web/types/template.d.mts +8 -0
- package/dist/src/web/types/template.d.mts.map +1 -1
- package/dist/src/web/types/webPlugin.d.mts +17 -5
- package/dist/src/web/types/webPlugin.d.mts.map +1 -1
- package/dist/testMode.cjs +4 -0
- package/dist/testMode.d.mts +2 -0
- package/dist/testMode.mjs +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.d.mts +2 -2
- package/dist/testing.mjs +2 -2
- package/dist/toolInventory.cjs.map +1 -1
- package/dist/toolInventory.mjs.map +1 -1
- package/dist/toolNames.mjs +1 -2
- package/dist/toolOverrides.cjs +4 -4
- package/dist/toolOverrides.d.mts +3 -3
- package/dist/toolOverrides.mjs +3 -3
- package/dist/toolSurface.cjs +4 -4
- package/dist/toolSurface.d.mts +3 -3
- package/dist/toolSurface.mjs +3 -3
- package/dist/transition.cjs +3 -3
- package/dist/transition.d.cjs +3 -3
- package/dist/transition.d.mts +2 -2
- package/dist/transition.mjs +1 -2
- package/dist/transitionClassifier.cjs.map +1 -1
- package/dist/transitionClassifier.d.mts +2 -2
- package/dist/transitionClassifier.d.mts.map +1 -1
- package/dist/transitionClassifier.mjs.map +1 -1
- package/dist/transitionCoordinator.cjs +3 -3
- package/dist/transitionCoordinator.cjs.map +1 -1
- package/dist/transitionCoordinator.d.mts +4 -4
- package/dist/transitionCoordinator.d.mts.map +1 -1
- package/dist/transitionCoordinator.mjs +3 -3
- package/dist/transitionCoordinator.mjs.map +1 -1
- package/dist/typesContextApi.d.mts +2 -1
- package/dist/typesContextApi.d.mts.map +1 -1
- package/dist/uiHub.cjs +3 -3
- package/dist/uiHub.d.mts +2 -2
- package/dist/uiHub.mjs +1 -2
- package/dist/voiceTools.cjs +5 -5
- package/dist/voiceTools.d.mts +3 -3
- package/dist/voiceTools.mjs +3 -3
- package/dist/web.cjs +8 -0
- package/dist/web.d.mts +3 -2
- package/dist/web.mjs +2 -1
- package/dist/webCompositions.cjs.map +1 -1
- package/dist/webCompositions.d.mts +7 -7
- package/dist/webCompositions.d.mts.map +1 -1
- package/dist/webCompositions.mjs.map +1 -1
- package/licenses/Codex-Apache-2.0.txt +201 -0
- package/package.json +58 -53
- package/dist/doomPackage.cjs +0 -61
- package/dist/doomPackage.cjs.map +0 -1
- package/dist/doomPackage.d.mts +0 -17
- package/dist/doomPackage.d.mts.map +0 -1
- package/dist/doomPackage.mjs +0 -54
- package/dist/doomPackage.mjs.map +0 -1
- package/dist/jsonlSessionRepo.cjs +0 -44
- package/dist/jsonlSessionRepo.cjs.map +0 -1
- package/dist/jsonlSessionRepo.d.mts +0 -7
- package/dist/jsonlSessionRepo.d.mts.map +0 -1
- package/dist/jsonlSessionRepo.mjs +0 -42
- package/dist/jsonlSessionRepo.mjs.map +0 -1
- package/dist/runtimeJson.cjs.map +0 -1
- package/dist/runtimeJson.d.mts.map +0 -1
- package/dist/runtimeJson.mjs.map +0 -1
- package/dist/runtimePiSettings.cjs.map +0 -1
- package/dist/runtimePiSettings.d.mts.map +0 -1
- package/dist/runtimePiSettings.mjs.map +0 -1
- package/dist/serverFacet.cjs +0 -34
- package/dist/serverFacet.d.mts +0 -10
- package/dist/serverFacet.mjs +0 -9
- package/dist/src/pi/piWebSocketListener.cjs +0 -115
- package/dist/src/pi/piWebSocketListener.cjs.map +0 -1
- package/dist/src/pi/piWebSocketListener.mjs +0 -115
- package/dist/src/pi/piWebSocketListener.mjs.map +0 -1
- package/dist/src/schemas/serverFacet.cjs +0 -111
- package/dist/src/schemas/serverFacet.cjs.map +0 -1
- package/dist/src/schemas/serverFacet.d.mts +0 -152
- package/dist/src/schemas/serverFacet.d.mts.map +0 -1
- package/dist/src/schemas/serverFacet.mjs +0 -101
- package/dist/src/schemas/serverFacet.mjs.map +0 -1
- package/dist/src/schemas/sessionUpdates.d.mts +0 -34
- package/dist/src/schemas/sessionUpdates.d.mts.map +0 -1
- package/dist/src/server/headlessProtocol.cjs +0 -382
- package/dist/src/server/headlessProtocol.cjs.map +0 -1
- package/dist/src/server/headlessProtocol.mjs +0 -382
- package/dist/src/server/headlessProtocol.mjs.map +0 -1
- package/dist/src/server/nativeChildTranscriptReader.cjs +0 -20
- package/dist/src/server/nativeChildTranscriptReader.cjs.map +0 -1
- package/dist/src/server/nativeChildTranscriptReader.mjs +0 -18
- package/dist/src/server/nativeChildTranscriptReader.mjs.map +0 -1
- package/dist/src/server/serverFacetLoader.cjs +0 -214
- package/dist/src/server/serverFacetLoader.cjs.map +0 -1
- package/dist/src/server/serverFacetLoader.d.mts +0 -72
- package/dist/src/server/serverFacetLoader.d.mts.map +0 -1
- package/dist/src/server/serverFacetLoader.mjs +0 -212
- package/dist/src/server/serverFacetLoader.mjs.map +0 -1
- package/dist/src/services/acpSessionUpdates/index.cjs +0 -129
- package/dist/src/services/acpSessionUpdates/index.cjs.map +0 -1
- package/dist/src/services/acpSessionUpdates/index.mjs +0 -129
- package/dist/src/services/acpSessionUpdates/index.mjs.map +0 -1
- package/dist/src/services/historyImport/index.cjs +0 -8
- package/dist/src/services/historyImport/index.cjs.map +0 -1
- package/dist/src/services/historyImport/index.d.mts +0 -68
- package/dist/src/services/historyImport/index.d.mts.map +0 -1
- package/dist/src/services/historyImport/index.mjs +0 -8
- package/dist/src/services/historyImport/index.mjs.map +0 -1
- package/dist/src/services/openSessionRegistry/index.d.mts.map +0 -1
- package/dist/src/services/requestReceipts/index.cjs.map +0 -1
- package/dist/src/services/requestReceipts/index.d.mts +0 -11
- package/dist/src/services/requestReceipts/index.d.mts.map +0 -1
- package/dist/src/services/requestReceipts/index.mjs.map +0 -1
- package/dist/src/services/rpcTranscript/index.cjs +0 -633
- package/dist/src/services/rpcTranscript/index.cjs.map +0 -1
- package/dist/src/services/rpcTranscript/index.d.mts +0 -50
- package/dist/src/services/rpcTranscript/index.d.mts.map +0 -1
- package/dist/src/services/rpcTranscript/index.mjs +0 -632
- package/dist/src/services/rpcTranscript/index.mjs.map +0 -1
- package/dist/src/services/serverFacet/index.cjs.map +0 -1
- package/dist/src/services/serverFacet/index.d.mts +0 -31
- package/dist/src/services/serverFacet/index.d.mts.map +0 -1
- package/dist/src/services/serverFacet/index.mjs.map +0 -1
- package/dist/src/services/workspaceRegistry/index.d.mts.map +0 -1
- package/dist/src/systems/child/adapters/nativeChildRuntimes.cjs +0 -28
- package/dist/src/systems/child/adapters/nativeChildRuntimes.cjs.map +0 -1
- package/dist/src/systems/child/adapters/nativeChildRuntimes.mjs +0 -25
- package/dist/src/systems/child/adapters/nativeChildRuntimes.mjs.map +0 -1
- package/dist/terminalPiChildSessionService.cjs +0 -324
- package/dist/terminalPiChildSessionService.cjs.map +0 -1
- package/dist/terminalPiChildSessionService.d.mts +0 -46
- package/dist/terminalPiChildSessionService.d.mts.map +0 -1
- package/dist/terminalPiChildSessionService.mjs +0 -318
- package/dist/terminalPiChildSessionService.mjs.map +0 -1
- package/dist/v3Export.cjs +0 -10
- package/dist/v3Export.cjs.map +0 -1
- package/dist/v3Export.d.mts +0 -35
- package/dist/v3Export.d.mts.map +0 -1
- package/dist/v3Export.mjs +0 -9
- package/dist/v3Export.mjs.map +0 -1
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PoBackgroundWorkSnapshot } from "./backgroundWork.mjs";
|
|
2
|
+
import { PoSessionStorageService } from "./platform.mjs";
|
|
3
|
+
import { HomeProjection } from "./home.mjs";
|
|
2
4
|
//#region src/schemas/hubChannel.d.ts
|
|
3
|
-
export interface
|
|
5
|
+
export interface PoHubChannelFrame {
|
|
4
6
|
type: string;
|
|
5
7
|
sessionId: string;
|
|
6
8
|
payload: unknown;
|
|
7
9
|
}
|
|
8
10
|
/** Same-process lifecycle bus shared by a host's session APIs and hub channels. */
|
|
9
|
-
export interface
|
|
11
|
+
export interface PoDirectEventSubscriptionOptions {
|
|
10
12
|
/** Replay the most recent value published for this frame and session, when one exists. */
|
|
11
13
|
readonly replayLatest?: boolean;
|
|
12
14
|
}
|
|
13
|
-
export interface
|
|
15
|
+
export interface PoDirectEventBus {
|
|
14
16
|
publish(frameType: string, sessionId: string, payload: unknown): void;
|
|
15
|
-
subscribe(frameType: string, sessionId: string, listener: (payload: unknown) => void, options?:
|
|
17
|
+
subscribe(frameType: string, sessionId: string, listener: (payload: unknown) => void, options?: PoDirectEventSubscriptionOptions): () => void;
|
|
16
18
|
/** Drop retained state for a session after its lifecycle ends. */
|
|
17
19
|
clearSession?(sessionId: string): void;
|
|
18
20
|
close(): void;
|
|
@@ -21,7 +23,7 @@ export interface DoomDirectEventBus {
|
|
|
21
23
|
* The extension-agnostic baseline every surface gets for one session, computed once by the
|
|
22
24
|
* session host. Extensions build on it instead of re-deriving roots and relations from cwd.
|
|
23
25
|
*/
|
|
24
|
-
export interface
|
|
26
|
+
export interface PoSessionContext {
|
|
25
27
|
readonly sessionId: string;
|
|
26
28
|
/** Persisted workspace id, shared by every session and member checkout of the workspace. */
|
|
27
29
|
readonly workspaceId: string;
|
|
@@ -37,23 +39,23 @@ export interface DoomSessionContext {
|
|
|
37
39
|
/** The spawner's label for the session. Opaque: hosts never interpret it. */
|
|
38
40
|
readonly provenance?: string;
|
|
39
41
|
}
|
|
40
|
-
export interface
|
|
42
|
+
export interface PoHubSessionScope {
|
|
41
43
|
sessionId: string;
|
|
42
44
|
workspaceId?: string;
|
|
43
45
|
cwd: string;
|
|
44
46
|
/** Environment admitted for this session, when supplied by the host. */
|
|
45
47
|
environment?: Readonly<Record<string, string | undefined>>;
|
|
46
48
|
/** The session's baseline context, when its host knows its workspace. */
|
|
47
|
-
sessionContext?:
|
|
49
|
+
sessionContext?: PoSessionContext;
|
|
48
50
|
}
|
|
49
|
-
export interface
|
|
51
|
+
export interface PoHubReservedWorktreeRequest {
|
|
50
52
|
readonly reservationId: string;
|
|
51
53
|
readonly parentSessionId: string;
|
|
52
54
|
readonly signal?: AbortSignal;
|
|
53
55
|
}
|
|
54
|
-
export type
|
|
56
|
+
export type PoHubReservedWorktreeProvisioner = (request: PoHubReservedWorktreeRequest) => Promise<PoHubSessionScope>;
|
|
55
57
|
/** Selection axes a caller pins for a new session instead of the workspace defaults. */
|
|
56
|
-
export interface
|
|
58
|
+
export interface PoHubSessionSelection {
|
|
57
59
|
readonly majorMode?: string;
|
|
58
60
|
readonly minorModes?: readonly string[];
|
|
59
61
|
readonly profile?: string;
|
|
@@ -74,7 +76,9 @@ export declare const WORKFLOW_STEP_SESSION_PROVENANCE = "workflow";
|
|
|
74
76
|
* parent. Like a detached helper, it takes no row in the session rail.
|
|
75
77
|
*/
|
|
76
78
|
export declare const WORKFLOW_DISPATCHER_SESSION_PROVENANCE = "workflow-dispatcher";
|
|
77
|
-
|
|
79
|
+
/** Provenance of a conversation an external MCP client opened and drives. */
|
|
80
|
+
export declare const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
|
|
81
|
+
export interface PoHubSessionCreateRequest {
|
|
78
82
|
readonly cwd: string;
|
|
79
83
|
readonly name: string;
|
|
80
84
|
readonly parentSessionId?: string;
|
|
@@ -83,7 +87,7 @@ export interface DoomHubSessionCreateRequest {
|
|
|
83
87
|
/** Host-issued reservation, not a caller-chosen target session id. */
|
|
84
88
|
readonly reservationId?: string;
|
|
85
89
|
/** Pinned axes stay put when the workspace defaults change between turns. */
|
|
86
|
-
readonly selection?:
|
|
90
|
+
readonly selection?: PoHubSessionSelection;
|
|
87
91
|
/** Pi model selector, `provider/id`, validated like `--model`. */
|
|
88
92
|
readonly model?: string;
|
|
89
93
|
/** Pi thinking level, validated like `--thinking`. */
|
|
@@ -95,24 +99,36 @@ export interface DoomHubSessionCreateRequest {
|
|
|
95
99
|
/** The only tools the new session's agent may see or call, like a Team agent's `tools:` list. */
|
|
96
100
|
readonly tools?: readonly string[];
|
|
97
101
|
}
|
|
98
|
-
export interface
|
|
102
|
+
export interface PoHubSessionPromptOptions {
|
|
99
103
|
readonly signal?: AbortSignal;
|
|
100
104
|
/** Refuses the prompt unless the target is a direct child of this session. */
|
|
101
105
|
readonly parentSessionId?: string;
|
|
102
106
|
}
|
|
103
107
|
/** A prompt the session admitted. `settled` resolves once the agent settles and rejects on a harness fault. */
|
|
104
|
-
export interface
|
|
108
|
+
export interface PoHubSessionPromptReceipt {
|
|
105
109
|
readonly settled: Promise<void>;
|
|
106
110
|
}
|
|
107
111
|
/** Host-bound inter-session events. The source identity is attached by the hub, never by payload data. */
|
|
108
|
-
export interface
|
|
112
|
+
export interface PoSessionCommunicationEndpoint {
|
|
109
113
|
readonly sessionId: string;
|
|
114
|
+
/** Current human-readable session name, read live so renames are reflected. */
|
|
115
|
+
readonly sessionName?: string;
|
|
110
116
|
publish(targetSessionId: string, type: string, payload: unknown): boolean;
|
|
111
117
|
subscribe(type: string, listener: (sourceSessionId: string, payload: unknown) => void): () => void;
|
|
112
118
|
onPeerReady(listener: (peerSessionId: string) => void): () => void;
|
|
119
|
+
/** Describes a live peer authorized to communicate, including same-checkout peers. */
|
|
120
|
+
describePeer?(peerSessionId: string): PoSessionPeerDescription | undefined;
|
|
113
121
|
close(): void;
|
|
114
122
|
}
|
|
115
|
-
|
|
123
|
+
/** How a session sees a peer it may message, so an agent can address it by the name a person uses. */
|
|
124
|
+
export interface PoSessionPeerDescription {
|
|
125
|
+
readonly sessionId: string;
|
|
126
|
+
readonly name: string;
|
|
127
|
+
readonly profile?: string;
|
|
128
|
+
/** Groups both sessions belong to; empty when related through parentage or checkout. */
|
|
129
|
+
readonly sharedGroups: readonly string[];
|
|
130
|
+
}
|
|
131
|
+
export interface PoPendingSessionSetup {
|
|
116
132
|
readonly id: string;
|
|
117
133
|
readonly name: string;
|
|
118
134
|
readonly createdAt: string;
|
|
@@ -126,7 +142,7 @@ export interface DoomPendingSessionSetup {
|
|
|
126
142
|
* session, such as a background job. The host shows it on the session's rail
|
|
127
143
|
* card but never interprets it.
|
|
128
144
|
*/
|
|
129
|
-
export interface
|
|
145
|
+
export interface PoSessionActivity {
|
|
130
146
|
readonly label: string;
|
|
131
147
|
/** The work needs the reader: the rail marks the card the way it marks a pending question. */
|
|
132
148
|
readonly attention?: boolean;
|
|
@@ -134,7 +150,7 @@ export interface DoomSessionActivity {
|
|
|
134
150
|
readonly since?: string;
|
|
135
151
|
}
|
|
136
152
|
/** A host-owned setup can be fulfilled by any execution-directory provider. */
|
|
137
|
-
export interface
|
|
153
|
+
export interface PoHubSessionReservations {
|
|
138
154
|
read(id: string, parentSessionId: string): {
|
|
139
155
|
sessionId: string;
|
|
140
156
|
cwd?: string;
|
|
@@ -143,47 +159,50 @@ export interface DoomHubSessionReservations {
|
|
|
143
159
|
sessionId: string;
|
|
144
160
|
cwd: string;
|
|
145
161
|
}>;
|
|
146
|
-
complete(id: string, parentSessionId: string): Promise<
|
|
162
|
+
complete(id: string, parentSessionId: string): Promise<PoHubSessionScope>;
|
|
147
163
|
}
|
|
148
164
|
/** Authoritative execution state. Missing background coordination is unknown, not empty. */
|
|
149
|
-
export interface
|
|
165
|
+
export interface PoHubSessionExecutionState {
|
|
150
166
|
readonly isIdle: boolean;
|
|
151
167
|
readonly hasPendingMessages: boolean;
|
|
152
|
-
readonly backgroundWork?:
|
|
168
|
+
readonly backgroundWork?: PoBackgroundWorkSnapshot;
|
|
153
169
|
}
|
|
154
170
|
/** Direct lifecycle owned by the canonical headless hub, never by a package transport. */
|
|
155
|
-
export interface
|
|
156
|
-
create(request:
|
|
171
|
+
export interface PoHubSessionService {
|
|
172
|
+
create(request: PoHubSessionCreateRequest): Promise<PoHubSessionScope>;
|
|
157
173
|
close(sessionId: string): Promise<void>;
|
|
158
174
|
isLive(sessionId: string): boolean;
|
|
159
175
|
/** Reads a live child's ownership without starting a turn. */
|
|
160
|
-
readExecutionState?(sessionId: string, options?: Pick<
|
|
176
|
+
readExecutionState?(sessionId: string, options?: Pick<PoHubSessionPromptOptions, 'parentSessionId'>): Promise<PoHubSessionExecutionState>;
|
|
161
177
|
/** Starts a turn in a live session, as if its user had submitted `text`. */
|
|
162
|
-
prompt?(sessionId: string, text: string, options?:
|
|
178
|
+
prompt?(sessionId: string, text: string, options?: PoHubSessionPromptOptions): Promise<PoHubSessionPromptReceipt>;
|
|
163
179
|
/** Aborts the live session's current turn. The session stays open. */
|
|
164
|
-
abort?(sessionId: string, options?: Pick<
|
|
180
|
+
abort?(sessionId: string, options?: Pick<PoHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;
|
|
165
181
|
/**
|
|
166
182
|
* Adds guidance to a live session's running turn. A session with no turn in
|
|
167
183
|
* progress takes it as its next message instead.
|
|
168
184
|
*/
|
|
169
|
-
steer?(sessionId: string, message: string, options?: Pick<
|
|
185
|
+
steer?(sessionId: string, message: string, options?: Pick<PoHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;
|
|
170
186
|
/**
|
|
171
187
|
* Stops a live session's runtime and keeps it dormant: its history stays
|
|
172
188
|
* readable where it is shown, and it can be woken later. A session that has
|
|
173
189
|
* done its work no longer holds a model, tools and extensions in the host.
|
|
174
190
|
*/
|
|
175
|
-
release?(sessionId: string, options?: Pick<
|
|
176
|
-
readonly reservations?:
|
|
191
|
+
release?(sessionId: string, options?: Pick<PoHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;
|
|
192
|
+
readonly reservations?: PoHubSessionReservations;
|
|
177
193
|
/** Provisions a host-reserved Git worktree child. This is not exposed to remote MCP clients. */
|
|
178
|
-
provisionReservedWorktree?(request:
|
|
194
|
+
provisionReservedWorktree?(request: PoHubReservedWorktreeRequest): Promise<PoHubSessionScope>;
|
|
179
195
|
/** Core host hook. A Git provider registers its implementation while its channel is mounted. */
|
|
180
|
-
registerReservedWorktreeProvisioner?(provisioner:
|
|
181
|
-
/**
|
|
196
|
+
registerReservedWorktreeProvisioner?(provisioner: PoHubReservedWorktreeProvisioner): () => void;
|
|
197
|
+
/**
|
|
198
|
+
* True when both live sessions have a direct parent-child relationship, or execute in the same
|
|
199
|
+
* checkout. Remote conversations only qualify through the parent-child relationship.
|
|
200
|
+
*/
|
|
182
201
|
canCommunicate?(sourceSessionId: string, targetSessionId: string): boolean;
|
|
183
202
|
/** Core host hook. Session API construction removes this method before exposing the service to extensions. */
|
|
184
|
-
bindCommunication?(sessionId: string):
|
|
203
|
+
bindCommunication?(sessionId: string): PoSessionCommunicationEndpoint;
|
|
185
204
|
}
|
|
186
|
-
export interface
|
|
205
|
+
export interface PoHubSessionApiRequest {
|
|
187
206
|
basePath: string;
|
|
188
207
|
path: string;
|
|
189
208
|
method: string;
|
|
@@ -192,17 +211,17 @@ export interface DoomHubSessionApiRequest {
|
|
|
192
211
|
/** Forwarded by the authenticated host, including content type and trace context. */
|
|
193
212
|
headers?: RequestInit['headers'];
|
|
194
213
|
}
|
|
195
|
-
export type
|
|
196
|
-
export interface
|
|
197
|
-
readonly operation:
|
|
214
|
+
export type PoComputerUseHostOperation = 'status' | 'targets' | 'activate' | 'observe' | 'act' | 'stop';
|
|
215
|
+
export interface PoComputerUseHostRequest {
|
|
216
|
+
readonly operation: PoComputerUseHostOperation;
|
|
198
217
|
readonly payload?: unknown;
|
|
199
218
|
readonly signal?: AbortSignal;
|
|
200
219
|
}
|
|
201
|
-
export interface
|
|
220
|
+
export interface PoComputerUseHostBinding {
|
|
202
221
|
readonly available: boolean;
|
|
203
222
|
/** Global opt-in, separate from the presence of a native host. */
|
|
204
223
|
readonly enabled?: boolean;
|
|
205
|
-
request(scope:
|
|
224
|
+
request(scope: PoHubSessionScope, request: PoComputerUseHostRequest): Promise<unknown>;
|
|
206
225
|
/** Checks a proof injected by the owning Desktop process, never a renderer marker. */
|
|
207
226
|
authorize?(headers: Headers): boolean;
|
|
208
227
|
/** Pins a session to Desktop before asking for a native grant. Ownership is not persisted. */
|
|
@@ -215,13 +234,14 @@ export interface DoomComputerUseHostBinding {
|
|
|
215
234
|
/** Own pending activation only, never general session control. */
|
|
216
235
|
authorizePending?(sessionId: string, headers: Headers): boolean;
|
|
217
236
|
revokeDevice?(deviceId: string): void;
|
|
218
|
-
readRecording?(scope:
|
|
237
|
+
readRecording?(scope: PoHubSessionScope, artifactId: string, range: string): Promise<Response>;
|
|
219
238
|
forgetSession?(sessionId: string): void;
|
|
239
|
+
/** Without `sessionId` the listener hears every session's ownership change. */
|
|
220
240
|
subscribe?(listener: () => void, sessionId?: string): () => void;
|
|
221
241
|
close?(): void;
|
|
222
242
|
}
|
|
223
243
|
/** Narrow, host-bound access. An extension cannot select another session's identity. */
|
|
224
|
-
export interface
|
|
244
|
+
export interface PoComputerUseSessionAccess {
|
|
225
245
|
readonly available: boolean;
|
|
226
246
|
readonly enabled?: boolean;
|
|
227
247
|
authorize(headers: Headers): boolean;
|
|
@@ -232,40 +252,44 @@ export interface DoomComputerUseSessionAccess {
|
|
|
232
252
|
fetchRecording?(artifactId: string, range: string): Promise<Response>;
|
|
233
253
|
subscribe(listener: () => void): () => void;
|
|
234
254
|
}
|
|
235
|
-
export interface
|
|
255
|
+
export interface PoHubChannelConnection {
|
|
236
256
|
connectionId: string;
|
|
237
257
|
/** Host-verified native renderer proof, never copied from a channel payload. */
|
|
238
258
|
desktopAuthorized?: boolean;
|
|
239
259
|
/** Live session authorization evaluated by the host, never a client frame. */
|
|
240
260
|
computerUseAuthorized?: boolean;
|
|
241
261
|
}
|
|
242
|
-
export interface
|
|
243
|
-
sessions(): readonly
|
|
262
|
+
export interface PoHubChannelHost {
|
|
263
|
+
sessions(): readonly PoHubSessionScope[];
|
|
264
|
+
/** Host facts and storage for trusted in-process channels, never client-supplied roots. */
|
|
265
|
+
readonly homeDirectory?: string;
|
|
266
|
+
readonly sessionStorage?: PoSessionStorageService;
|
|
244
267
|
/** Canonical hub lifecycle for sessions created by channel commands. */
|
|
245
|
-
sessionService?:
|
|
246
|
-
/** Same-process events emitted by session
|
|
247
|
-
readonly directEvents:
|
|
268
|
+
sessionService?: PoHubSessionService;
|
|
269
|
+
/** Same-process events emitted by session packages. */
|
|
270
|
+
readonly directEvents: PoDirectEventBus;
|
|
248
271
|
publish(sessionId: string, payload: unknown): void;
|
|
249
272
|
publishToConnection?(connectionId: string, sessionId: string, payload: unknown): boolean;
|
|
250
|
-
requestSessionApi(scope:
|
|
251
|
-
computerUse?:
|
|
273
|
+
requestSessionApi(scope: PoHubSessionScope, request: PoHubSessionApiRequest): Promise<Response>;
|
|
274
|
+
computerUse?: PoComputerUseHostBinding;
|
|
252
275
|
onNotice(message: string): void;
|
|
253
276
|
}
|
|
254
|
-
export interface
|
|
255
|
-
payloadFor(scope:
|
|
256
|
-
|
|
277
|
+
export interface PoHubChannelSource {
|
|
278
|
+
payloadFor(scope: PoHubSessionScope): unknown;
|
|
279
|
+
/** Read-only compact projection of already-owned state. Must not start work or add watchers. */
|
|
280
|
+
homeFor?(scope: PoHubSessionScope): HomeProjection;
|
|
281
|
+
sessionAdded?(scope: PoHubSessionScope): void;
|
|
257
282
|
sessionRemoved?(sessionId: string): void;
|
|
258
|
-
threadJournal?(scope: DoomHubSessionScope, threadId: string): string | undefined;
|
|
259
283
|
close(): void;
|
|
260
284
|
}
|
|
261
|
-
export type
|
|
262
|
-
export interface
|
|
285
|
+
export type PoHubChannelLifecycle = 'session' | 'hub';
|
|
286
|
+
export interface PoHubChannel {
|
|
263
287
|
frameType: string;
|
|
264
|
-
lifecycle?:
|
|
265
|
-
start(host:
|
|
288
|
+
lifecycle?: PoHubChannelLifecycle;
|
|
289
|
+
start(host: PoHubChannelHost): PoHubChannelSource;
|
|
266
290
|
receiveWithoutSubscription?: boolean;
|
|
267
|
-
receive?(scope:
|
|
268
|
-
disconnected?(connection:
|
|
291
|
+
receive?(scope: PoHubSessionScope, payload: unknown, connection: PoHubChannelConnection): void;
|
|
292
|
+
disconnected?(connection: PoHubChannelConnection): void;
|
|
269
293
|
}
|
|
270
294
|
//#endregion
|
|
271
295
|
//# sourceMappingURL=hubChannel.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hubChannel.d.mts","names":[],"sources":["../../../src/schemas/hubChannel.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"hubChannel.d.mts","names":[],"sources":["../../../src/schemas/hubChannel.ts"],"mappings":";;;;iBAIiB;EACf;EACA;EACA;;;iBAIe;;WAEN;;iBAGM;EACf,QAAQ,mBAAmB,mBAAmB;EAC9C,UACE,mBACA,mBACA,WAAW,2BACX,UAAU;;EAGZ,cAAc;EACd;;;;;;iBAOe;WACN;;WAEA;;WAEA;;;;;WAKA;WACA;WACA;;WAEA;;iBAGM;EACf;EACA;EACA;;EAEA,cAAc,SAAS;;EAEvB,iBAAiB;;iBAGF;WACN;WACA;WACA,SAAS;;YAGR,oCAAoC,SAAS,iCAAiC,QAAQ;;iBAGjF;WACN;WACA;WACA;;WAEA;;;;;;;;qBASE;;;;;;;qBAQA;;qBAGA;iBAEI;WACN;WACA;WACA;WACA;WACA,SAAS;;WAET;;WAEA,YAAY;;WAEZ;;WAEA;;WAEA;;WAEA,cAAc,SAAS;;WAEvB;;iBAGM;WACN,SAAS;;WAET;;;iBAIM;WACN,SAAS;;;iBAIH;WACN;;WAEA;EACT,QAAQ,yBAAyB,cAAc;EAC/C,UAAU,cAAc,WAAW,yBAAyB;EAC5D,YAAY,WAAW;;EAEvB,cAAc,wBAAwB;EACtC;;;iBAIe;WACN;WACA;WACA;;WAEA;;iBAEM;WACN;WACA;WACA;WACA;WACA;WACA;WACA;;;;;;;iBAQM;WACN;;WAEA;;WAEA;;;iBAGM;EACf,KAAK,YAAY;IAA4B;IAAmB;;EAChE,QAAQ,YAAY,yBAAyB,cAAc;IAAU;IAAmB;;EACxF,SAAS,YAAY,0BAA0B,QAAQ;;;iBAIxC;WACN;WACA;WACA,iBAAiB;;;iBAIX;EACf,OAAO,SAAS,4BAA4B,QAAQ;EACpD,MAAM,oBAAoB;EAC1B,OAAO;;EAEP,oBACE,mBACA,UAAU,KAAK,gDACd,QAAQ;;EAEX,QAAQ,mBAAmB,cAAc,UAAU,4BAA4B,QAAQ;;EAEvF,OAAO,mBAAmB,UAAU,KAAK,gDAAgD;;;;;EAKzF,OACE,mBACA,iBACA,UAAU,KAAK,gDACd;;;;;;EAMH,SAAS,mBAAmB,UAAU,KAAK,gDAAgD;WAClF,eAAe;;EAExB,2BAA2B,SAAS,+BAA+B,QAAQ;;EAE3E,qCAAqC,aAAa;;;;;EAKlD,gBAAgB,yBAAyB;;EAEzC,mBAAmB,oBAAoB;;iBAGxB;EACf;EACA;EACA;EACA,gBAAgB,WAAW;EAC3B,SAAS;;EAET,UAAU;;YAGA;iBAEK;WACN,WAAW;WACX;WACA,SAAS;;iBAGH;WACN;;WAEA;EACT,QAAQ,OAAO,mBAAmB,SAAS,2BAA2B;;EAEtE,WAAW,SAAS;;EAEpB,cAAc,mBAAmB,UAAU;EAC3C,aAAa;;EAEb,kBAAkB,mBAAmB,SAAS;EAC9C,oBAAoB,mBAAmB,SAAS;EAChD,qBAAqB,SAAS;;EAE9B,kBAAkB,mBAAmB,SAAS;EAC9C,cAAc;EACd,eAAe,OAAO,mBAAmB,oBAAoB,gBAAgB,QAAQ;EACrF,eAAe;;EAEf,WAAW,sBAAsB;EACjC;;;iBAIe;WACN;WACA;EACT,UAAU,SAAS;EACnB,oBAAoB,SAAS;EAC7B,qBAAqB,SAAS;EAC9B,kBAAkB,SAAS;EAC3B,MAAM,UAAU;EAChB,gBAAgB,oBAAoB,gBAAgB,QAAQ;EAC5D,UAAU;;iBAGK;EACf;;EAEA;;EAEA;;iBAGe;EACf,qBAAqB;;WAEZ;WACA,iBAAiB;;EAE1B,iBAAiB;;WAER,cAAc;EACvB,QAAQ,mBAAmB;EAC3B,qBAAqB,sBAAsB,mBAAmB;EAC9D,kBAAkB,OAAO,mBAAmB,SAAS,yBAAyB,QAAQ;EACtF,cAAc;EACd,SAAS;;iBAGM;EACf,WAAW,OAAO;;EAElB,SAAS,OAAO,oBAAoB;EACpC,cAAc,OAAO;EACrB,gBAAgB;EAChB;;YAGU;iBAEK;EACf;EACA,YAAY;EACZ,MAAM,MAAM,mBAAmB;EAC/B;EACA,SAAS,OAAO,mBAAmB,kBAAkB,YAAY;EACjE,cAAc,YAAY"}
|
|
@@ -13,7 +13,9 @@ const WORKFLOW_STEP_SESSION_PROVENANCE = "workflow";
|
|
|
13
13
|
* parent. Like a detached helper, it takes no row in the session rail.
|
|
14
14
|
*/
|
|
15
15
|
const WORKFLOW_DISPATCHER_SESSION_PROVENANCE = "workflow-dispatcher";
|
|
16
|
+
/** Provenance of a conversation an external MCP client opened and drives. */
|
|
17
|
+
const REMOTE_CONVERSATION_SESSION_PROVENANCE = "remote-conversation";
|
|
16
18
|
//#endregion
|
|
17
|
-
export { WORKFLOW_DISPATCHER_SESSION_PROVENANCE, WORKFLOW_STEP_SESSION_PROVENANCE };
|
|
19
|
+
export { REMOTE_CONVERSATION_SESSION_PROVENANCE, WORKFLOW_DISPATCHER_SESSION_PROVENANCE, WORKFLOW_STEP_SESSION_PROVENANCE };
|
|
18
20
|
|
|
19
21
|
//# sourceMappingURL=hubChannel.mjs.map
|
|
@@ -1 +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"}
|
|
1
|
+
{"version":3,"file":"hubChannel.mjs","names":[],"sources":["../../../src/schemas/hubChannel.ts"],"sourcesContent":["import type { PoBackgroundWorkSnapshot } from './backgroundWork';\nimport type { HomeProjection } from './home';\nimport type { PoSessionStorageService } from './platform';\n\nexport interface PoHubChannelFrame {\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 PoDirectEventSubscriptionOptions {\n /** Replay the most recent value published for this frame and session, when one exists. */\n readonly replayLatest?: boolean;\n}\n\nexport interface PoDirectEventBus {\n publish(frameType: string, sessionId: string, payload: unknown): void;\n subscribe(\n frameType: string,\n sessionId: string,\n listener: (payload: unknown) => void,\n options?: PoDirectEventSubscriptionOptions,\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 PoSessionContext {\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 PoHubSessionScope {\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?: PoSessionContext;\n}\n\nexport interface PoHubReservedWorktreeRequest {\n readonly reservationId: string;\n readonly parentSessionId: string;\n readonly signal?: AbortSignal;\n}\n\nexport type PoHubReservedWorktreeProvisioner = (request: PoHubReservedWorktreeRequest) => Promise<PoHubSessionScope>;\n\n/** Selection axes a caller pins for a new session instead of the workspace defaults. */\nexport interface PoHubSessionSelection {\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\n/** Provenance of a conversation an external MCP client opened and drives. */\nexport const REMOTE_CONVERSATION_SESSION_PROVENANCE = 'remote-conversation';\n\nexport interface PoHubSessionCreateRequest {\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?: PoHubSessionSelection;\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 PoHubSessionPromptOptions {\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 PoHubSessionPromptReceipt {\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 PoSessionCommunicationEndpoint {\n readonly sessionId: string;\n /** Current human-readable session name, read live so renames are reflected. */\n readonly sessionName?: 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 /** Describes a live peer authorized to communicate, including same-checkout peers. */\n describePeer?(peerSessionId: string): PoSessionPeerDescription | undefined;\n close(): void;\n}\n\n/** How a session sees a peer it may message, so an agent can address it by the name a person uses. */\nexport interface PoSessionPeerDescription {\n readonly sessionId: string;\n readonly name: string;\n readonly profile?: string;\n /** Groups both sessions belong to; empty when related through parentage or checkout. */\n readonly sharedGroups: readonly string[];\n}\nexport interface PoPendingSessionSetup {\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 PoSessionActivity {\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 PoHubSessionReservations {\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<PoHubSessionScope>;\n}\n\n/** Authoritative execution state. Missing background coordination is unknown, not empty. */\nexport interface PoHubSessionExecutionState {\n readonly isIdle: boolean;\n readonly hasPendingMessages: boolean;\n readonly backgroundWork?: PoBackgroundWorkSnapshot;\n}\n\n/** Direct lifecycle owned by the canonical headless hub, never by a package transport. */\nexport interface PoHubSessionService {\n create(request: PoHubSessionCreateRequest): Promise<PoHubSessionScope>;\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<PoHubSessionPromptOptions, 'parentSessionId'>,\n ): Promise<PoHubSessionExecutionState>;\n /** Starts a turn in a live session, as if its user had submitted `text`. */\n prompt?(sessionId: string, text: string, options?: PoHubSessionPromptOptions): Promise<PoHubSessionPromptReceipt>;\n /** Aborts the live session's current turn. The session stays open. */\n abort?(sessionId: string, options?: Pick<PoHubSessionPromptOptions, '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<PoHubSessionPromptOptions, '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<PoHubSessionPromptOptions, 'parentSessionId'>): Promise<void>;\n readonly reservations?: PoHubSessionReservations;\n /** Provisions a host-reserved Git worktree child. This is not exposed to remote MCP clients. */\n provisionReservedWorktree?(request: PoHubReservedWorktreeRequest): Promise<PoHubSessionScope>;\n /** Core host hook. A Git provider registers its implementation while its channel is mounted. */\n registerReservedWorktreeProvisioner?(provisioner: PoHubReservedWorktreeProvisioner): () => void;\n /**\n * True when both live sessions have a direct parent-child relationship, or execute in the same\n * checkout. Remote conversations only qualify through the parent-child relationship.\n */\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): PoSessionCommunicationEndpoint;\n}\n\nexport interface PoHubSessionApiRequest {\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 PoComputerUseHostOperation = 'status' | 'targets' | 'activate' | 'observe' | 'act' | 'stop';\n\nexport interface PoComputerUseHostRequest {\n readonly operation: PoComputerUseHostOperation;\n readonly payload?: unknown;\n readonly signal?: AbortSignal;\n}\n\nexport interface PoComputerUseHostBinding {\n readonly available: boolean;\n /** Global opt-in, separate from the presence of a native host. */\n readonly enabled?: boolean;\n request(scope: PoHubSessionScope, request: PoComputerUseHostRequest): 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: PoHubSessionScope, artifactId: string, range: string): Promise<Response>;\n forgetSession?(sessionId: string): void;\n /** Without `sessionId` the listener hears every session's ownership change. */\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 PoComputerUseSessionAccess {\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 PoHubChannelConnection {\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 PoHubChannelHost {\n sessions(): readonly PoHubSessionScope[];\n /** Host facts and storage for trusted in-process channels, never client-supplied roots. */\n readonly homeDirectory?: string;\n readonly sessionStorage?: PoSessionStorageService;\n /** Canonical hub lifecycle for sessions created by channel commands. */\n sessionService?: PoHubSessionService;\n /** Same-process events emitted by session packages. */\n readonly directEvents: PoDirectEventBus;\n publish(sessionId: string, payload: unknown): void;\n publishToConnection?(connectionId: string, sessionId: string, payload: unknown): boolean;\n requestSessionApi(scope: PoHubSessionScope, request: PoHubSessionApiRequest): Promise<Response>;\n computerUse?: PoComputerUseHostBinding;\n onNotice(message: string): void;\n}\n\nexport interface PoHubChannelSource {\n payloadFor(scope: PoHubSessionScope): unknown;\n /** Read-only compact projection of already-owned state. Must not start work or add watchers. */\n homeFor?(scope: PoHubSessionScope): HomeProjection;\n sessionAdded?(scope: PoHubSessionScope): void;\n sessionRemoved?(sessionId: string): void;\n close(): void;\n}\n\nexport type PoHubChannelLifecycle = 'session' | 'hub';\n\nexport interface PoHubChannel {\n frameType: string;\n lifecycle?: PoHubChannelLifecycle;\n start(host: PoHubChannelHost): PoHubChannelSource;\n receiveWithoutSubscription?: boolean;\n receive?(scope: PoHubSessionScope, payload: unknown, connection: PoHubChannelConnection): void;\n disconnected?(connection: PoHubChannelConnection): void;\n}\n"],"mappings":";;;;;;;AAmFA,MAAa,mCAAmC;;;;;;;AAQhD,MAAa,yCAAyC;;AAGtD,MAAa,yCAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leader.cjs","names":["Type"],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"leader.cjs","names":["Type"],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type { PoExtensionContext } 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 PoLeaderContributionHandle {\n update(bindings: readonly LeaderBinding[]): void;\n dispose(): void;\n}\n\nexport interface PoLeaderActionHandlerOptions<ExtensionContext extends PoExtensionContext = PoExtensionContext> {\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"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PoExtensionContext } from "../../runtimeConfig.mjs";
|
|
2
2
|
import { Static, Type } from "typebox";
|
|
3
3
|
//#region src/schemas/leader.d.ts
|
|
4
4
|
/**
|
|
@@ -94,11 +94,11 @@ export interface LeaderContribution {
|
|
|
94
94
|
source: string;
|
|
95
95
|
bindings: readonly LeaderBinding[];
|
|
96
96
|
}
|
|
97
|
-
export interface
|
|
97
|
+
export interface PoLeaderContributionHandle {
|
|
98
98
|
update(bindings: readonly LeaderBinding[]): void;
|
|
99
99
|
dispose(): void;
|
|
100
100
|
}
|
|
101
|
-
export interface
|
|
101
|
+
export interface PoLeaderActionHandlerOptions<ExtensionContext extends PoExtensionContext = PoExtensionContext> {
|
|
102
102
|
source: string;
|
|
103
103
|
handlers: Readonly<Record<string, (context: ExtensionContext) => void | Promise<void>>>;
|
|
104
104
|
onError: (error: unknown, actionName: string, context: ExtensionContext) => void;
|
|
@@ -1 +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
|
|
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;QAAlB,KAAA;;YAMD,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,6BAA6B,yBAAyB,qBAAqB;EAC1F;EACA,UAAU,SAAS,gBAAgB,SAAS,4BAA4B;EACxE,UAAU,gBAAgB,oBAAoB,SAAS"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leader.mjs","names":[],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type {
|
|
1
|
+
{"version":3,"file":"leader.mjs","names":[],"sources":["../../../src/schemas/leader.ts"],"sourcesContent":["import { type Static, Type } from 'typebox';\n\nimport type { PoExtensionContext } 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 PoLeaderContributionHandle {\n update(bindings: readonly LeaderBinding[]): void;\n dispose(): void;\n}\n\nexport interface PoLeaderActionHandlerOptions<ExtensionContext extends PoExtensionContext = PoExtensionContext> {\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"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PoServerBundleOwner } from "./serverBundle.mjs";
|
|
2
2
|
//#region src/schemas/mcpBundle.d.ts
|
|
3
|
-
export interface
|
|
3
|
+
export interface PoMcpBundleEntry {
|
|
4
4
|
readonly packageName: string;
|
|
5
5
|
readonly entry: string;
|
|
6
6
|
readonly module: string;
|
|
7
7
|
readonly sha256: string;
|
|
8
|
-
readonly owners: readonly
|
|
8
|
+
readonly owners: readonly PoServerBundleOwner[];
|
|
9
9
|
/** Package-owned component keys generated from frontend tool declarations. */
|
|
10
10
|
readonly widgets?: readonly string[];
|
|
11
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcpFacet.cjs","names":[],"sources":["../../../src/schemas/mcpFacet.ts"],"sourcesContent":["import type { TSchema } from 'typebox';\n\nimport type {\n
|
|
1
|
+
{"version":3,"file":"mcpFacet.cjs","names":[],"sources":["../../../src/schemas/mcpFacet.ts"],"sourcesContent":["import type { TSchema } from 'typebox';\n\nimport type {\n PoHeadlessExecutionContext,\n PoHeadlessSelection,\n PoHeadlessSelectionChange,\n PoHeadlessTool,\n} from './headless';\n\n/** Repository-scoped instructions and applied selection safe to disclose to a remote MCP client. */\nexport interface PoMcpContextSnapshot {\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 PoMcpSkill {\n readonly name: string;\n readonly description: string;\n read(context: PoHeadlessExecutionContext): string | Promise<string>;\n}\n\n/** A package-owned, immutable UI template. Session data belongs in tool results, never in this HTML. */\nexport interface PoMcpUiResource {\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 PoMcpSessionPlugin {\n readonly tools?: readonly PoHeadlessTool<TSchema>[];\n readonly skills?: readonly PoMcpSkill[];\n readonly uiResources?: readonly PoMcpUiResource[];\n}\n\nexport interface PoMcpServiceScope {\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 PoMcpPluginContext {\n readonly execution: PoHeadlessExecutionContext;\n readonly services: PoMcpServiceScope;\n readonly selection: {\n read(): PoHeadlessSelection;\n change(change: PoHeadlessSelectionChange): Promise<void>;\n };\n /** Reads the allowlisted repository context from the current applied session selection. */\n loadContext(): PoMcpContextSnapshot;\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 PoMcpPluginDefinition {\n readonly name: string;\n readonly session:\n | PoMcpSessionPlugin\n | ((context: PoMcpPluginContext) => PoMcpSessionPlugin | Promise<PoMcpSessionPlugin>);\n}\n\n/** Makes an MCP declaration's contract explicit without registering it locally. */\nexport function defineMcpPlugin(definition: PoMcpPluginDefinition): PoMcpPluginDefinition {\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: PoHeadlessTool<TParameters> | ((context: TContext) => PoHeadlessTool<TParameters>),\n): PoHeadlessTool<TParameters> | ((context: TContext) => PoHeadlessTool<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: PoMcpSkill | ((context: TContext) => PoMcpSkill),\n): PoMcpSkill | ((context: TContext) => PoMcpSkill) {\n return skill;\n}\n\n/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */\nexport function defineMcpUiResource(resource: PoMcpUiResource): PoMcpUiResource {\n return resource;\n}\n"],"mappings":";;AAwFA,SAAgB,gBAAgB,YAA0D;CACxF,OAAO;AACT;;AAGA,SAAgB,cACd,MACoF;CACpF,OAAO;AACT;;AAGA,SAAgB,eACd,OACkD;CAClD,OAAO;AACT;;AAGA,SAAgB,oBAAoB,UAA4C;CAC9E,OAAO;AACT"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PoHeadlessExecutionContext, PoHeadlessSelection, PoHeadlessSelectionChange, PoHeadlessTool } from "./headless.mjs";
|
|
2
2
|
import { TSchema } from "typebox";
|
|
3
3
|
//#region src/schemas/mcpFacet.d.ts
|
|
4
4
|
/** Repository-scoped instructions and applied selection safe to disclose to a remote MCP client. */
|
|
5
|
-
export interface
|
|
5
|
+
export interface PoMcpContextSnapshot {
|
|
6
6
|
readonly session: {
|
|
7
7
|
readonly id: string;
|
|
8
8
|
readonly revision: number;
|
|
@@ -25,13 +25,13 @@ export interface DoomMcpContextSnapshot {
|
|
|
25
25
|
readonly persona: string | null;
|
|
26
26
|
}
|
|
27
27
|
/** A lazy Markdown resource available only to remote MCP clients. */
|
|
28
|
-
export interface
|
|
28
|
+
export interface PoMcpSkill {
|
|
29
29
|
readonly name: string;
|
|
30
30
|
readonly description: string;
|
|
31
|
-
read(context:
|
|
31
|
+
read(context: PoHeadlessExecutionContext): string | Promise<string>;
|
|
32
32
|
}
|
|
33
33
|
/** A package-owned, immutable UI template. Session data belongs in tool results, never in this HTML. */
|
|
34
|
-
export interface
|
|
34
|
+
export interface PoMcpUiResource {
|
|
35
35
|
readonly uri: string;
|
|
36
36
|
readonly name: string;
|
|
37
37
|
readonly description?: string;
|
|
@@ -52,40 +52,40 @@ export interface DoomMcpUiResource {
|
|
|
52
52
|
read(): string | Promise<string>;
|
|
53
53
|
}
|
|
54
54
|
/** A dedicated remote surface, deliberately separate from local agent registrations. */
|
|
55
|
-
export interface
|
|
56
|
-
readonly tools?: readonly
|
|
57
|
-
readonly skills?: readonly
|
|
58
|
-
readonly uiResources?: readonly
|
|
55
|
+
export interface PoMcpSessionPlugin {
|
|
56
|
+
readonly tools?: readonly PoHeadlessTool<TSchema>[];
|
|
57
|
+
readonly skills?: readonly PoMcpSkill[];
|
|
58
|
+
readonly uiResources?: readonly PoMcpUiResource[];
|
|
59
59
|
}
|
|
60
|
-
export interface
|
|
60
|
+
export interface PoMcpServiceScope {
|
|
61
61
|
/** Reads a service already mounted in this session without exposing host registration APIs. */
|
|
62
62
|
get<T>(name: string): T | undefined;
|
|
63
63
|
}
|
|
64
|
-
export interface
|
|
65
|
-
readonly execution:
|
|
66
|
-
readonly services:
|
|
64
|
+
export interface PoMcpPluginContext {
|
|
65
|
+
readonly execution: PoHeadlessExecutionContext;
|
|
66
|
+
readonly services: PoMcpServiceScope;
|
|
67
67
|
readonly selection: {
|
|
68
|
-
read():
|
|
69
|
-
change(change:
|
|
68
|
+
read(): PoHeadlessSelection;
|
|
69
|
+
change(change: PoHeadlessSelectionChange): Promise<void>;
|
|
70
70
|
};
|
|
71
71
|
/** Reads the allowlisted repository context from the current applied session selection. */
|
|
72
|
-
loadContext():
|
|
72
|
+
loadContext(): PoMcpContextSnapshot;
|
|
73
73
|
/** Aborted when this plugin surface is replaced or the session closes. */
|
|
74
74
|
readonly signal: AbortSignal;
|
|
75
75
|
/** Rebuilds the remote surface after a live MCP catalog changes. */
|
|
76
76
|
refresh(): void;
|
|
77
77
|
}
|
|
78
|
-
export interface
|
|
78
|
+
export interface PoMcpPluginDefinition {
|
|
79
79
|
readonly name: string;
|
|
80
|
-
readonly session:
|
|
80
|
+
readonly session: PoMcpSessionPlugin | ((context: PoMcpPluginContext) => PoMcpSessionPlugin | Promise<PoMcpSessionPlugin>);
|
|
81
81
|
}
|
|
82
82
|
/** Makes an MCP declaration's contract explicit without registering it locally. */
|
|
83
|
-
export declare function defineMcpPlugin(definition:
|
|
83
|
+
export declare function defineMcpPlugin(definition: PoMcpPluginDefinition): PoMcpPluginDefinition;
|
|
84
84
|
/** `tool/[name].mcp.ts`. Keeps the declaration independently typed. */
|
|
85
|
-
export declare function defineMcpTool<TParameters extends TSchema = TSchema, TContext = unknown>(tool:
|
|
85
|
+
export declare function defineMcpTool<TParameters extends TSchema = TSchema, TContext = unknown>(tool: PoHeadlessTool<TParameters> | ((context: TContext) => PoHeadlessTool<TParameters>)): PoHeadlessTool<TParameters> | ((context: TContext) => PoHeadlessTool<TParameters>);
|
|
86
86
|
/** `skill/[name].mcp.ts`. Keeps remote guidance out of the local prompt surface. */
|
|
87
|
-
export declare function defineMcpSkill<TContext = unknown>(skill:
|
|
87
|
+
export declare function defineMcpSkill<TContext = unknown>(skill: PoMcpSkill | ((context: TContext) => PoMcpSkill)): PoMcpSkill | ((context: TContext) => PoMcpSkill);
|
|
88
88
|
/** `resource/[name].mcp.ts`. Static UI resources stay separate from session guidance. */
|
|
89
|
-
export declare function defineMcpUiResource(resource:
|
|
89
|
+
export declare function defineMcpUiResource(resource: PoMcpUiResource): PoMcpUiResource;
|
|
90
90
|
//#endregion
|
|
91
91
|
//# sourceMappingURL=mcpFacet.d.mts.map
|