@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narration.d.mts","names":[],"sources":["../../../src/schemas/narration.ts"],"mappings":";;;;qBAKa;qBACA;qBAEA,wBAAsB,KAAA
|
|
1
|
+
{"version":3,"file":"narration.d.mts","names":[],"sources":["../../../src/schemas/narration.ts"],"mappings":";;;;qBAKa;qBACA;qBAEA,wBAAsB,KAAA;QAAtB,KAAA;;YAOD,mBAAmB,cAAc;;iBAG5B;WACN;EACT,QAAQ,SAAS,0BAA0B;;;YAIjC;IACR,gBAAgB;;;;wBAYJ,uBAAuB;;wBAavB,uBAAuB,eAAe;wBAKtC,mBAAmB,iBAAiB,SAAS;wBAI7C,uBAAuB,SAAS,UAAU;wBAI1C,0BAA0B,SAAS,UAAU"}
|
|
@@ -2,7 +2,7 @@ import { Type } from "typebox";
|
|
|
2
2
|
import { Check } from "typebox/value";
|
|
3
3
|
//#region src/schemas/narration.ts
|
|
4
4
|
/** Provider-owned Cordis service for caller-authored narration requests. */
|
|
5
|
-
const
|
|
5
|
+
const PO_NARRATION_SERVICE = "po/narration";
|
|
6
6
|
const MAX_NARRATION_TEXT_CHARACTERS = 4096;
|
|
7
7
|
const NarrationRequestSchema = Type.Object({ text: Type.String({
|
|
8
8
|
minLength: 1,
|
|
@@ -33,15 +33,15 @@ function createNarrationRequest(text) {
|
|
|
33
33
|
function isNarrationRequest(value) {
|
|
34
34
|
return Check(NarrationRequestSchema, value);
|
|
35
35
|
}
|
|
36
|
-
function
|
|
37
|
-
return context.get(
|
|
36
|
+
function readPoNarrationService(context) {
|
|
37
|
+
return context.get(PO_NARRATION_SERVICE);
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
const service =
|
|
41
|
-
if (!service) throw new Error("
|
|
39
|
+
function requirePoNarrationService(context) {
|
|
40
|
+
const service = readPoNarrationService(context);
|
|
41
|
+
if (!service) throw new Error("Po narration is unavailable. No narration provider is active.");
|
|
42
42
|
return service;
|
|
43
43
|
}
|
|
44
44
|
//#endregion
|
|
45
|
-
export {
|
|
45
|
+
export { MAX_NARRATION_TEXT_CHARACTERS, NarrationRequestSchema, PO_NARRATION_SERVICE, createNarrationRequest, isNarrationRequest, normalizeNarrationText, readPoNarrationService, requirePoNarrationService };
|
|
46
46
|
|
|
47
47
|
//# sourceMappingURL=narration.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"narration.mjs","names":[],"sources":["../../../src/schemas/narration.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored narration requests. */\nexport const
|
|
1
|
+
{"version":3,"file":"narration.mjs","names":[],"sources":["../../../src/schemas/narration.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored narration requests. */\nexport const PO_NARRATION_SERVICE = 'po/narration';\nexport const MAX_NARRATION_TEXT_CHARACTERS = 4_096;\n\nexport const NarrationRequestSchema = Type.Object(\n {\n text: Type.String({ minLength: 1, maxLength: MAX_NARRATION_TEXT_CHARACTERS }),\n },\n { additionalProperties: false },\n);\n\nexport type NarrationRequest = Static<typeof NarrationRequestSchema>;\n\n/** Generic outbound speech seam. The provider owns delivery and lifecycle. */\nexport interface PoNarrationService {\n readonly generation: string;\n request(request: NarrationRequest): void | Promise<void>;\n}\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/narration': PoNarrationService;\n }\n}\n\nfunction replaceControlCharacters(text: string): string {\n return Array.from(text, (character) => {\n const codePoint = character.codePointAt(0);\n return codePoint !== undefined && (codePoint < 0x20 || codePoint === 0x7f) ? ' ' : character;\n }).join('');\n}\n\n/** Normalize caller-owned speech while preserving Unicode-safe truncation. */\nexport function normalizeNarrationText(text: string): string | undefined {\n const normalized = replaceControlCharacters(text).replace(/\\s+/gu, ' ').trim();\n if (!normalized) return undefined;\n\n let truncated = '';\n for (const character of normalized) {\n if (truncated.length + character.length > MAX_NARRATION_TEXT_CHARACTERS) break;\n truncated += character;\n }\n return truncated;\n}\n\n/** Builds the validated request value consumers pass to the injected service. */\nexport function createNarrationRequest(text: string): NarrationRequest | undefined {\n const normalized = normalizeNarrationText(text);\n return normalized === undefined ? undefined : Object.freeze({ text: normalized });\n}\n\nexport function isNarrationRequest(value: unknown): value is NarrationRequest {\n return Check(NarrationRequestSchema, value);\n}\n\nexport function readPoNarrationService(context: Context): PoNarrationService | undefined {\n return context.get(PO_NARRATION_SERVICE) as PoNarrationService | undefined;\n}\n\nexport function requirePoNarrationService(context: Context): PoNarrationService {\n const service = readPoNarrationService(context);\n if (!service) throw new Error('Po narration is unavailable. No narration provider is active.');\n return service;\n}\n"],"mappings":";;;;AAKA,MAAa,uBAAuB;AACpC,MAAa,gCAAgC;AAE7C,MAAa,yBAAyB,KAAK,OACzC,EACE,MAAM,KAAK,OAAO;CAAE,WAAW;CAAG,WAAW;AAA8B,CAAC,EAC9E,GACA,EAAE,sBAAsB,MAAM,CAChC;AAgBA,SAAS,yBAAyB,MAAsB;CACtD,OAAO,MAAM,KAAK,OAAO,cAAc;EACrC,MAAM,YAAY,UAAU,YAAY,CAAC;EACzC,OAAO,cAAc,KAAA,MAAc,YAAY,MAAQ,cAAc,OAAQ,MAAM;CACrF,CAAC,CAAC,CAAC,KAAK,EAAE;AACZ;;AAGA,SAAgB,uBAAuB,MAAkC;CACvE,MAAM,aAAa,yBAAyB,IAAI,CAAC,CAAC,QAAQ,SAAS,GAAG,CAAC,CAAC,KAAK;CAC7E,IAAI,CAAC,YAAY,OAAO,KAAA;CAExB,IAAI,YAAY;CAChB,KAAK,MAAM,aAAa,YAAY;EAClC,IAAI,UAAU,SAAS,UAAU,SAAA,MAAwC;EACzE,aAAa;CACf;CACA,OAAO;AACT;;AAGA,SAAgB,uBAAuB,MAA4C;CACjF,MAAM,aAAa,uBAAuB,IAAI;CAC9C,OAAO,eAAe,KAAA,IAAY,KAAA,IAAY,OAAO,OAAO,EAAE,MAAM,WAAW,CAAC;AAClF;AAEA,SAAgB,mBAAmB,OAA2C;CAC5E,OAAO,MAAM,wBAAwB,KAAK;AAC5C;AAEA,SAAgB,uBAAuB,SAAkD;CACvF,OAAO,QAAQ,IAAI,oBAAoB;AACzC;AAEA,SAAgB,0BAA0B,SAAsC;CAC9E,MAAM,UAAU,uBAAuB,OAAO;CAC9C,IAAI,CAAC,SAAS,MAAM,IAAI,MAAM,+DAA+D;CAC7F,OAAO;AACT"}
|
|
@@ -2,19 +2,19 @@ let typebox = require("typebox");
|
|
|
2
2
|
let typebox_value = require("typebox/value");
|
|
3
3
|
//#region src/schemas/notification.ts
|
|
4
4
|
/** Provider-owned Cordis service for caller-authored notification requests. */
|
|
5
|
-
const
|
|
5
|
+
const PO_NOTIFICATION_SERVICE = "po/notification";
|
|
6
6
|
/** Custom session entry type used to publish normalized notification data. */
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
7
|
+
const PO_NOTIFICATION_ENTRY_TYPE = "po-notification";
|
|
8
|
+
const PO_NOTIFICATION_ENTRY_VERSION = 1;
|
|
9
|
+
const MAX_PO_NOTIFICATION_TITLE_CHARACTERS = 128;
|
|
10
|
+
const MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = 256;
|
|
11
|
+
const MAX_PO_NOTIFICATION_BODY_CHARACTERS = 4096;
|
|
12
|
+
const PoNotificationLevelSchema = typebox.Type.Union([
|
|
13
13
|
typebox.Type.Literal("info"),
|
|
14
14
|
typebox.Type.Literal("warning"),
|
|
15
15
|
typebox.Type.Literal("error")
|
|
16
16
|
]);
|
|
17
|
-
const
|
|
17
|
+
const PoNotificationRequestSchema = typebox.Type.Object({
|
|
18
18
|
title: typebox.Type.Optional(typebox.Type.String({
|
|
19
19
|
minLength: 1,
|
|
20
20
|
maxLength: 128
|
|
@@ -25,25 +25,25 @@ const DoomNotificationRequestSchema = typebox.Type.Object({
|
|
|
25
25
|
})),
|
|
26
26
|
body: typebox.Type.String({
|
|
27
27
|
minLength: 1,
|
|
28
|
-
maxLength:
|
|
28
|
+
maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS
|
|
29
29
|
}),
|
|
30
|
-
level: typebox.Type.Optional(
|
|
30
|
+
level: typebox.Type.Optional(PoNotificationLevelSchema)
|
|
31
31
|
}, { additionalProperties: false });
|
|
32
|
-
const
|
|
32
|
+
const NormalizablePoNotificationRequestSchema = typebox.Type.Object({
|
|
33
33
|
title: typebox.Type.Optional(typebox.Type.String()),
|
|
34
34
|
subtitle: typebox.Type.Optional(typebox.Type.String()),
|
|
35
35
|
body: typebox.Type.String(),
|
|
36
|
-
level: typebox.Type.Optional(
|
|
36
|
+
level: typebox.Type.Optional(PoNotificationLevelSchema)
|
|
37
37
|
}, { additionalProperties: false });
|
|
38
|
-
const
|
|
38
|
+
const PoNotificationEntryDataSchema = typebox.Type.Object({
|
|
39
39
|
version: typebox.Type.Literal(1),
|
|
40
40
|
title: typebox.Type.String({ maxLength: 128 }),
|
|
41
41
|
subtitle: typebox.Type.String({ maxLength: 256 }),
|
|
42
42
|
body: typebox.Type.String({
|
|
43
43
|
minLength: 1,
|
|
44
|
-
maxLength:
|
|
44
|
+
maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS
|
|
45
45
|
}),
|
|
46
|
-
level:
|
|
46
|
+
level: PoNotificationLevelSchema
|
|
47
47
|
}, { additionalProperties: false });
|
|
48
48
|
function replaceControlCharacters(text) {
|
|
49
49
|
return Array.from(text, (character) => {
|
|
@@ -62,9 +62,9 @@ function normalizeText(text, maximum) {
|
|
|
62
62
|
return truncated;
|
|
63
63
|
}
|
|
64
64
|
/** Normalize caller-owned notification text into a validated request. */
|
|
65
|
-
function
|
|
66
|
-
if (!(0, typebox_value.Check)(
|
|
67
|
-
const body = normalizeText(request.body,
|
|
65
|
+
function normalizePoNotificationRequest(request) {
|
|
66
|
+
if (!(0, typebox_value.Check)(NormalizablePoNotificationRequestSchema, request)) return void 0;
|
|
67
|
+
const body = normalizeText(request.body, MAX_PO_NOTIFICATION_BODY_CHARACTERS);
|
|
68
68
|
if (!body) return void 0;
|
|
69
69
|
const title = request.title && normalizeText(request.title, 128);
|
|
70
70
|
const subtitle = request.subtitle && normalizeText(request.subtitle, 256);
|
|
@@ -76,9 +76,9 @@ function normalizeDoomNotificationRequest(request) {
|
|
|
76
76
|
};
|
|
77
77
|
return Object.freeze(normalized);
|
|
78
78
|
}
|
|
79
|
-
/** Builds normalized, versioned data for a
|
|
80
|
-
function
|
|
81
|
-
const normalized =
|
|
79
|
+
/** Builds normalized, versioned data for a Po notification session entry. */
|
|
80
|
+
function createPoNotificationEntryData(request) {
|
|
81
|
+
const normalized = normalizePoNotificationRequest(request);
|
|
82
82
|
if (!normalized) return void 0;
|
|
83
83
|
return Object.freeze({
|
|
84
84
|
version: 1,
|
|
@@ -88,35 +88,35 @@ function createDoomNotificationEntryData(request) {
|
|
|
88
88
|
level: normalized.level ?? "info"
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return (0, typebox_value.Check)(
|
|
91
|
+
function isPoNotificationRequest(value) {
|
|
92
|
+
return (0, typebox_value.Check)(PoNotificationRequestSchema, value);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return (0, typebox_value.Check)(
|
|
94
|
+
function isPoNotificationEntryData(value) {
|
|
95
|
+
return (0, typebox_value.Check)(PoNotificationEntryDataSchema, value);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return context.get(
|
|
97
|
+
function readPoNotificationService(context) {
|
|
98
|
+
return context.get(PO_NOTIFICATION_SERVICE);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
const service =
|
|
102
|
-
if (!service) throw new Error("
|
|
100
|
+
function requirePoNotificationService(context) {
|
|
101
|
+
const service = readPoNotificationService(context);
|
|
102
|
+
if (!service) throw new Error("Po notification is unavailable. Load a notification provider.");
|
|
103
103
|
return service;
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
|
-
exports.
|
|
107
|
-
exports.
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.
|
|
111
|
-
exports.
|
|
112
|
-
exports.
|
|
113
|
-
exports.
|
|
114
|
-
exports.
|
|
115
|
-
exports.
|
|
116
|
-
exports.
|
|
117
|
-
exports.
|
|
118
|
-
exports.
|
|
119
|
-
exports.
|
|
120
|
-
exports.
|
|
106
|
+
exports.MAX_PO_NOTIFICATION_BODY_CHARACTERS = MAX_PO_NOTIFICATION_BODY_CHARACTERS;
|
|
107
|
+
exports.MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS;
|
|
108
|
+
exports.MAX_PO_NOTIFICATION_TITLE_CHARACTERS = MAX_PO_NOTIFICATION_TITLE_CHARACTERS;
|
|
109
|
+
exports.PO_NOTIFICATION_ENTRY_TYPE = PO_NOTIFICATION_ENTRY_TYPE;
|
|
110
|
+
exports.PO_NOTIFICATION_ENTRY_VERSION = PO_NOTIFICATION_ENTRY_VERSION;
|
|
111
|
+
exports.PO_NOTIFICATION_SERVICE = PO_NOTIFICATION_SERVICE;
|
|
112
|
+
exports.PoNotificationEntryDataSchema = PoNotificationEntryDataSchema;
|
|
113
|
+
exports.PoNotificationLevelSchema = PoNotificationLevelSchema;
|
|
114
|
+
exports.PoNotificationRequestSchema = PoNotificationRequestSchema;
|
|
115
|
+
exports.createPoNotificationEntryData = createPoNotificationEntryData;
|
|
116
|
+
exports.isPoNotificationEntryData = isPoNotificationEntryData;
|
|
117
|
+
exports.isPoNotificationRequest = isPoNotificationRequest;
|
|
118
|
+
exports.normalizePoNotificationRequest = normalizePoNotificationRequest;
|
|
119
|
+
exports.readPoNotificationService = readPoNotificationService;
|
|
120
|
+
exports.requirePoNotificationService = requirePoNotificationService;
|
|
121
121
|
|
|
122
122
|
//# sourceMappingURL=notification.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.cjs","names":["Type","Check"],"sources":["../../../src/schemas/notification.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored notification requests. */\nexport const
|
|
1
|
+
{"version":3,"file":"notification.cjs","names":["Type","Check"],"sources":["../../../src/schemas/notification.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored notification requests. */\nexport const PO_NOTIFICATION_SERVICE = 'po/notification';\n/** Custom session entry type used to publish normalized notification data. */\nexport const PO_NOTIFICATION_ENTRY_TYPE = 'po-notification';\nexport const PO_NOTIFICATION_ENTRY_VERSION = 1 as const;\nexport const MAX_PO_NOTIFICATION_TITLE_CHARACTERS = 128;\nexport const MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = 256;\nexport const MAX_PO_NOTIFICATION_BODY_CHARACTERS = 4_096;\n\nexport const PoNotificationLevelSchema = Type.Union([\n Type.Literal('info'),\n Type.Literal('warning'),\n Type.Literal('error'),\n]);\nexport type PoNotificationLevel = Static<typeof PoNotificationLevelSchema>;\n\nexport const PoNotificationRequestSchema = Type.Object(\n {\n title: Type.Optional(Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_TITLE_CHARACTERS })),\n subtitle: Type.Optional(Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS })),\n body: Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS }),\n level: Type.Optional(PoNotificationLevelSchema),\n },\n { additionalProperties: false },\n);\nexport type PoNotificationRequest = Static<typeof PoNotificationRequestSchema>;\n\nconst NormalizablePoNotificationRequestSchema = Type.Object(\n {\n title: Type.Optional(Type.String()),\n subtitle: Type.Optional(Type.String()),\n body: Type.String(),\n level: Type.Optional(PoNotificationLevelSchema),\n },\n { additionalProperties: false },\n);\n\nexport const PoNotificationEntryDataSchema = Type.Object(\n {\n version: Type.Literal(PO_NOTIFICATION_ENTRY_VERSION),\n title: Type.String({ maxLength: MAX_PO_NOTIFICATION_TITLE_CHARACTERS }),\n subtitle: Type.String({ maxLength: MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS }),\n body: Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS }),\n level: PoNotificationLevelSchema,\n },\n { additionalProperties: false },\n);\nexport type PoNotificationEntryData = Static<typeof PoNotificationEntryDataSchema>;\n\n/** Generic outbound notification seam. The provider owns delivery and lifecycle. */\nexport interface PoNotificationService {\n readonly generation: string;\n request(request: PoNotificationRequest): void | Promise<void>;\n}\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/notification': PoNotificationService;\n }\n}\n\nfunction replaceControlCharacters(text: string): string {\n return Array.from(text, (character) => {\n const codePoint = character.codePointAt(0);\n return codePoint !== undefined && (codePoint < 0x20 || codePoint === 0x7f) ? ' ' : character;\n }).join('');\n}\n\nfunction normalizeText(text: string, maximum: number): string | undefined {\n const normalized = replaceControlCharacters(text).replace(/\\s+/gu, ' ').trim();\n if (!normalized) return undefined;\n\n let truncated = '';\n for (const character of normalized) {\n if (truncated.length + character.length > maximum) break;\n truncated += character;\n }\n return truncated;\n}\n\n/** Normalize caller-owned notification text into a validated request. */\nexport function normalizePoNotificationRequest(request: unknown): PoNotificationRequest | undefined {\n if (!Check(NormalizablePoNotificationRequestSchema, request)) return undefined;\n\n const body = normalizeText(request.body, MAX_PO_NOTIFICATION_BODY_CHARACTERS);\n if (!body) return undefined;\n const title = request.title && normalizeText(request.title, MAX_PO_NOTIFICATION_TITLE_CHARACTERS);\n const subtitle = request.subtitle && normalizeText(request.subtitle, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS);\n const normalized = {\n body,\n ...(title ? { title } : {}),\n ...(subtitle ? { subtitle } : {}),\n ...(request.level ? { level: request.level } : {}),\n };\n return Object.freeze(normalized);\n}\n\n/** Builds normalized, versioned data for a Po notification session entry. */\nexport function createPoNotificationEntryData(request: unknown): PoNotificationEntryData | undefined {\n const normalized = normalizePoNotificationRequest(request);\n if (!normalized) return undefined;\n return Object.freeze({\n version: PO_NOTIFICATION_ENTRY_VERSION,\n title: normalized.title ?? '',\n subtitle: normalized.subtitle ?? '',\n body: normalized.body,\n level: normalized.level ?? 'info',\n });\n}\n\nexport function isPoNotificationRequest(value: unknown): value is PoNotificationRequest {\n return Check(PoNotificationRequestSchema, value);\n}\n\nexport function isPoNotificationEntryData(value: unknown): value is PoNotificationEntryData {\n return Check(PoNotificationEntryDataSchema, value);\n}\n\nexport function readPoNotificationService(context: Context): PoNotificationService | undefined {\n return context.get(PO_NOTIFICATION_SERVICE) as PoNotificationService | undefined;\n}\n\nexport function requirePoNotificationService(context: Context): PoNotificationService {\n const service = readPoNotificationService(context);\n if (!service) throw new Error('Po notification is unavailable. Load a notification provider.');\n return service;\n}\n"],"mappings":"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"}
|
|
@@ -2,47 +2,47 @@ import { Static, Type } from "typebox";
|
|
|
2
2
|
import { Context } from "@deepseek-ai/cordis";
|
|
3
3
|
//#region src/schemas/notification.d.ts
|
|
4
4
|
/** Provider-owned Cordis service for caller-authored notification requests. */
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const PO_NOTIFICATION_SERVICE = "po/notification";
|
|
6
6
|
/** Custom session entry type used to publish normalized notification data. */
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export type
|
|
14
|
-
export declare const
|
|
7
|
+
export declare const PO_NOTIFICATION_ENTRY_TYPE = "po-notification";
|
|
8
|
+
export declare const PO_NOTIFICATION_ENTRY_VERSION: 1;
|
|
9
|
+
export declare const MAX_PO_NOTIFICATION_TITLE_CHARACTERS = 128;
|
|
10
|
+
export declare const MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = 256;
|
|
11
|
+
export declare const MAX_PO_NOTIFICATION_BODY_CHARACTERS = 4096;
|
|
12
|
+
export declare const PoNotificationLevelSchema: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warning">, Type.TLiteral<"error">]>;
|
|
13
|
+
export type PoNotificationLevel = Static<typeof PoNotificationLevelSchema>;
|
|
14
|
+
export declare const PoNotificationRequestSchema: Type.TObject<{
|
|
15
15
|
title: Type.TOptional<Type.TString>;
|
|
16
16
|
subtitle: Type.TOptional<Type.TString>;
|
|
17
17
|
body: Type.TString;
|
|
18
18
|
level: Type.TOptional<Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warning">, Type.TLiteral<"error">]>>;
|
|
19
19
|
}>;
|
|
20
|
-
export type
|
|
21
|
-
export declare const
|
|
20
|
+
export type PoNotificationRequest = Static<typeof PoNotificationRequestSchema>;
|
|
21
|
+
export declare const PoNotificationEntryDataSchema: Type.TObject<{
|
|
22
22
|
version: Type.TLiteral<1>;
|
|
23
23
|
title: Type.TString;
|
|
24
24
|
subtitle: Type.TString;
|
|
25
25
|
body: Type.TString;
|
|
26
26
|
level: Type.TUnion<[Type.TLiteral<"info">, Type.TLiteral<"warning">, Type.TLiteral<"error">]>;
|
|
27
27
|
}>;
|
|
28
|
-
export type
|
|
28
|
+
export type PoNotificationEntryData = Static<typeof PoNotificationEntryDataSchema>;
|
|
29
29
|
/** Generic outbound notification seam. The provider owns delivery and lifecycle. */
|
|
30
|
-
export interface
|
|
30
|
+
export interface PoNotificationService {
|
|
31
31
|
readonly generation: string;
|
|
32
|
-
request(request:
|
|
32
|
+
request(request: PoNotificationRequest): void | Promise<void>;
|
|
33
33
|
}
|
|
34
34
|
declare module '@deepseek-ai/cordis' {
|
|
35
35
|
interface Context {
|
|
36
|
-
'
|
|
36
|
+
'po/notification': PoNotificationService;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
/** Normalize caller-owned notification text into a validated request. */
|
|
40
|
-
export declare function
|
|
41
|
-
/** Builds normalized, versioned data for a
|
|
42
|
-
export declare function
|
|
43
|
-
export declare function
|
|
44
|
-
export declare function
|
|
45
|
-
export declare function
|
|
46
|
-
export declare function
|
|
40
|
+
export declare function normalizePoNotificationRequest(request: unknown): PoNotificationRequest | undefined;
|
|
41
|
+
/** Builds normalized, versioned data for a Po notification session entry. */
|
|
42
|
+
export declare function createPoNotificationEntryData(request: unknown): PoNotificationEntryData | undefined;
|
|
43
|
+
export declare function isPoNotificationRequest(value: unknown): value is PoNotificationRequest;
|
|
44
|
+
export declare function isPoNotificationEntryData(value: unknown): value is PoNotificationEntryData;
|
|
45
|
+
export declare function readPoNotificationService(context: Context): PoNotificationService | undefined;
|
|
46
|
+
export declare function requirePoNotificationService(context: Context): PoNotificationService;
|
|
47
47
|
//#endregion
|
|
48
48
|
//# sourceMappingURL=notification.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.d.mts","names":[],"sources":["../../../src/schemas/notification.ts"],"mappings":";;;;qBAKa;;qBAEA;qBACA;qBACA;qBACA;qBACA;qBAEA,
|
|
1
|
+
{"version":3,"file":"notification.d.mts","names":[],"sources":["../../../src/schemas/notification.ts"],"mappings":";;;;qBAKa;;qBAEA;qBACA;qBACA;qBACA;qBACA;qBAEA,2BAAyB,KAAA,QAAA,KAAA,kBAAA,KAAA,qBAAA,KAAA;YAK1B,sBAAsB,cAAc;qBAEnC,6BAA2B,KAAA;;;;;;YAS5B,wBAAwB,cAAc;qBAYrC,+BAA6B,KAAA;;;;;;;YAU9B,0BAA0B,cAAc;;iBAGnC;WACN;EACT,QAAQ,SAAS,+BAA+B;;;YAItC;IACR,mBAAmB;;;;wBAwBP,+BAA+B,mBAAmB;;wBAiBlD,8BAA8B,mBAAmB;wBAYjD,wBAAwB,iBAAiB,SAAS;wBAIlD,0BAA0B,iBAAiB,SAAS;wBAIpD,0BAA0B,SAAS,UAAU;wBAI7C,6BAA6B,SAAS,UAAU"}
|
|
@@ -2,19 +2,19 @@ import { Type } from "typebox";
|
|
|
2
2
|
import { Check } from "typebox/value";
|
|
3
3
|
//#region src/schemas/notification.ts
|
|
4
4
|
/** Provider-owned Cordis service for caller-authored notification requests. */
|
|
5
|
-
const
|
|
5
|
+
const PO_NOTIFICATION_SERVICE = "po/notification";
|
|
6
6
|
/** Custom session entry type used to publish normalized notification data. */
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
7
|
+
const PO_NOTIFICATION_ENTRY_TYPE = "po-notification";
|
|
8
|
+
const PO_NOTIFICATION_ENTRY_VERSION = 1;
|
|
9
|
+
const MAX_PO_NOTIFICATION_TITLE_CHARACTERS = 128;
|
|
10
|
+
const MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = 256;
|
|
11
|
+
const MAX_PO_NOTIFICATION_BODY_CHARACTERS = 4096;
|
|
12
|
+
const PoNotificationLevelSchema = Type.Union([
|
|
13
13
|
Type.Literal("info"),
|
|
14
14
|
Type.Literal("warning"),
|
|
15
15
|
Type.Literal("error")
|
|
16
16
|
]);
|
|
17
|
-
const
|
|
17
|
+
const PoNotificationRequestSchema = Type.Object({
|
|
18
18
|
title: Type.Optional(Type.String({
|
|
19
19
|
minLength: 1,
|
|
20
20
|
maxLength: 128
|
|
@@ -25,25 +25,25 @@ const DoomNotificationRequestSchema = Type.Object({
|
|
|
25
25
|
})),
|
|
26
26
|
body: Type.String({
|
|
27
27
|
minLength: 1,
|
|
28
|
-
maxLength:
|
|
28
|
+
maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS
|
|
29
29
|
}),
|
|
30
|
-
level: Type.Optional(
|
|
30
|
+
level: Type.Optional(PoNotificationLevelSchema)
|
|
31
31
|
}, { additionalProperties: false });
|
|
32
|
-
const
|
|
32
|
+
const NormalizablePoNotificationRequestSchema = Type.Object({
|
|
33
33
|
title: Type.Optional(Type.String()),
|
|
34
34
|
subtitle: Type.Optional(Type.String()),
|
|
35
35
|
body: Type.String(),
|
|
36
|
-
level: Type.Optional(
|
|
36
|
+
level: Type.Optional(PoNotificationLevelSchema)
|
|
37
37
|
}, { additionalProperties: false });
|
|
38
|
-
const
|
|
38
|
+
const PoNotificationEntryDataSchema = Type.Object({
|
|
39
39
|
version: Type.Literal(1),
|
|
40
40
|
title: Type.String({ maxLength: 128 }),
|
|
41
41
|
subtitle: Type.String({ maxLength: 256 }),
|
|
42
42
|
body: Type.String({
|
|
43
43
|
minLength: 1,
|
|
44
|
-
maxLength:
|
|
44
|
+
maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS
|
|
45
45
|
}),
|
|
46
|
-
level:
|
|
46
|
+
level: PoNotificationLevelSchema
|
|
47
47
|
}, { additionalProperties: false });
|
|
48
48
|
function replaceControlCharacters(text) {
|
|
49
49
|
return Array.from(text, (character) => {
|
|
@@ -62,9 +62,9 @@ function normalizeText(text, maximum) {
|
|
|
62
62
|
return truncated;
|
|
63
63
|
}
|
|
64
64
|
/** Normalize caller-owned notification text into a validated request. */
|
|
65
|
-
function
|
|
66
|
-
if (!Check(
|
|
67
|
-
const body = normalizeText(request.body,
|
|
65
|
+
function normalizePoNotificationRequest(request) {
|
|
66
|
+
if (!Check(NormalizablePoNotificationRequestSchema, request)) return void 0;
|
|
67
|
+
const body = normalizeText(request.body, MAX_PO_NOTIFICATION_BODY_CHARACTERS);
|
|
68
68
|
if (!body) return void 0;
|
|
69
69
|
const title = request.title && normalizeText(request.title, 128);
|
|
70
70
|
const subtitle = request.subtitle && normalizeText(request.subtitle, 256);
|
|
@@ -76,9 +76,9 @@ function normalizeDoomNotificationRequest(request) {
|
|
|
76
76
|
};
|
|
77
77
|
return Object.freeze(normalized);
|
|
78
78
|
}
|
|
79
|
-
/** Builds normalized, versioned data for a
|
|
80
|
-
function
|
|
81
|
-
const normalized =
|
|
79
|
+
/** Builds normalized, versioned data for a Po notification session entry. */
|
|
80
|
+
function createPoNotificationEntryData(request) {
|
|
81
|
+
const normalized = normalizePoNotificationRequest(request);
|
|
82
82
|
if (!normalized) return void 0;
|
|
83
83
|
return Object.freeze({
|
|
84
84
|
version: 1,
|
|
@@ -88,21 +88,21 @@ function createDoomNotificationEntryData(request) {
|
|
|
88
88
|
level: normalized.level ?? "info"
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return Check(
|
|
91
|
+
function isPoNotificationRequest(value) {
|
|
92
|
+
return Check(PoNotificationRequestSchema, value);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
return Check(
|
|
94
|
+
function isPoNotificationEntryData(value) {
|
|
95
|
+
return Check(PoNotificationEntryDataSchema, value);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
return context.get(
|
|
97
|
+
function readPoNotificationService(context) {
|
|
98
|
+
return context.get(PO_NOTIFICATION_SERVICE);
|
|
99
99
|
}
|
|
100
|
-
function
|
|
101
|
-
const service =
|
|
102
|
-
if (!service) throw new Error("
|
|
100
|
+
function requirePoNotificationService(context) {
|
|
101
|
+
const service = readPoNotificationService(context);
|
|
102
|
+
if (!service) throw new Error("Po notification is unavailable. Load a notification provider.");
|
|
103
103
|
return service;
|
|
104
104
|
}
|
|
105
105
|
//#endregion
|
|
106
|
-
export {
|
|
106
|
+
export { MAX_PO_NOTIFICATION_BODY_CHARACTERS, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS, MAX_PO_NOTIFICATION_TITLE_CHARACTERS, PO_NOTIFICATION_ENTRY_TYPE, PO_NOTIFICATION_ENTRY_VERSION, PO_NOTIFICATION_SERVICE, PoNotificationEntryDataSchema, PoNotificationLevelSchema, PoNotificationRequestSchema, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService };
|
|
107
107
|
|
|
108
108
|
//# sourceMappingURL=notification.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.mjs","names":[],"sources":["../../../src/schemas/notification.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored notification requests. */\nexport const
|
|
1
|
+
{"version":3,"file":"notification.mjs","names":[],"sources":["../../../src/schemas/notification.ts"],"sourcesContent":["import type { Context } from '@deepseek-ai/cordis';\nimport { type Static, Type } from 'typebox';\nimport { Check } from 'typebox/value';\n\n/** Provider-owned Cordis service for caller-authored notification requests. */\nexport const PO_NOTIFICATION_SERVICE = 'po/notification';\n/** Custom session entry type used to publish normalized notification data. */\nexport const PO_NOTIFICATION_ENTRY_TYPE = 'po-notification';\nexport const PO_NOTIFICATION_ENTRY_VERSION = 1 as const;\nexport const MAX_PO_NOTIFICATION_TITLE_CHARACTERS = 128;\nexport const MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = 256;\nexport const MAX_PO_NOTIFICATION_BODY_CHARACTERS = 4_096;\n\nexport const PoNotificationLevelSchema = Type.Union([\n Type.Literal('info'),\n Type.Literal('warning'),\n Type.Literal('error'),\n]);\nexport type PoNotificationLevel = Static<typeof PoNotificationLevelSchema>;\n\nexport const PoNotificationRequestSchema = Type.Object(\n {\n title: Type.Optional(Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_TITLE_CHARACTERS })),\n subtitle: Type.Optional(Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS })),\n body: Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS }),\n level: Type.Optional(PoNotificationLevelSchema),\n },\n { additionalProperties: false },\n);\nexport type PoNotificationRequest = Static<typeof PoNotificationRequestSchema>;\n\nconst NormalizablePoNotificationRequestSchema = Type.Object(\n {\n title: Type.Optional(Type.String()),\n subtitle: Type.Optional(Type.String()),\n body: Type.String(),\n level: Type.Optional(PoNotificationLevelSchema),\n },\n { additionalProperties: false },\n);\n\nexport const PoNotificationEntryDataSchema = Type.Object(\n {\n version: Type.Literal(PO_NOTIFICATION_ENTRY_VERSION),\n title: Type.String({ maxLength: MAX_PO_NOTIFICATION_TITLE_CHARACTERS }),\n subtitle: Type.String({ maxLength: MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS }),\n body: Type.String({ minLength: 1, maxLength: MAX_PO_NOTIFICATION_BODY_CHARACTERS }),\n level: PoNotificationLevelSchema,\n },\n { additionalProperties: false },\n);\nexport type PoNotificationEntryData = Static<typeof PoNotificationEntryDataSchema>;\n\n/** Generic outbound notification seam. The provider owns delivery and lifecycle. */\nexport interface PoNotificationService {\n readonly generation: string;\n request(request: PoNotificationRequest): void | Promise<void>;\n}\n\ndeclare module '@deepseek-ai/cordis' {\n interface Context {\n 'po/notification': PoNotificationService;\n }\n}\n\nfunction replaceControlCharacters(text: string): string {\n return Array.from(text, (character) => {\n const codePoint = character.codePointAt(0);\n return codePoint !== undefined && (codePoint < 0x20 || codePoint === 0x7f) ? ' ' : character;\n }).join('');\n}\n\nfunction normalizeText(text: string, maximum: number): string | undefined {\n const normalized = replaceControlCharacters(text).replace(/\\s+/gu, ' ').trim();\n if (!normalized) return undefined;\n\n let truncated = '';\n for (const character of normalized) {\n if (truncated.length + character.length > maximum) break;\n truncated += character;\n }\n return truncated;\n}\n\n/** Normalize caller-owned notification text into a validated request. */\nexport function normalizePoNotificationRequest(request: unknown): PoNotificationRequest | undefined {\n if (!Check(NormalizablePoNotificationRequestSchema, request)) return undefined;\n\n const body = normalizeText(request.body, MAX_PO_NOTIFICATION_BODY_CHARACTERS);\n if (!body) return undefined;\n const title = request.title && normalizeText(request.title, MAX_PO_NOTIFICATION_TITLE_CHARACTERS);\n const subtitle = request.subtitle && normalizeText(request.subtitle, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS);\n const normalized = {\n body,\n ...(title ? { title } : {}),\n ...(subtitle ? { subtitle } : {}),\n ...(request.level ? { level: request.level } : {}),\n };\n return Object.freeze(normalized);\n}\n\n/** Builds normalized, versioned data for a Po notification session entry. */\nexport function createPoNotificationEntryData(request: unknown): PoNotificationEntryData | undefined {\n const normalized = normalizePoNotificationRequest(request);\n if (!normalized) return undefined;\n return Object.freeze({\n version: PO_NOTIFICATION_ENTRY_VERSION,\n title: normalized.title ?? '',\n subtitle: normalized.subtitle ?? '',\n body: normalized.body,\n level: normalized.level ?? 'info',\n });\n}\n\nexport function isPoNotificationRequest(value: unknown): value is PoNotificationRequest {\n return Check(PoNotificationRequestSchema, value);\n}\n\nexport function isPoNotificationEntryData(value: unknown): value is PoNotificationEntryData {\n return Check(PoNotificationEntryDataSchema, value);\n}\n\nexport function readPoNotificationService(context: Context): PoNotificationService | undefined {\n return context.get(PO_NOTIFICATION_SERVICE) as PoNotificationService | undefined;\n}\n\nexport function requirePoNotificationService(context: Context): PoNotificationService {\n const service = readPoNotificationService(context);\n if (!service) throw new Error('Po notification is unavailable. Load a notification provider.');\n return service;\n}\n"],"mappings":"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"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
//#region src/schemas/packageApi.ts
|
|
2
|
-
const
|
|
2
|
+
const PO_API_SCOPES = [
|
|
3
3
|
"global",
|
|
4
4
|
"workspace",
|
|
5
5
|
"session"
|
|
6
6
|
];
|
|
7
7
|
/** Canonical public prefix. Scope selection never falls through to a parent. */
|
|
8
|
-
function
|
|
8
|
+
function poApiMountPath(mount) {
|
|
9
9
|
if (mount.scope === "global") return "/api/plugins";
|
|
10
10
|
if (mount.scope === "workspace") return `/api/workspaces/${encodeURIComponent(mount.workspaceId)}/plugins`;
|
|
11
11
|
if (!mount.workspaceId) throw new Error("A session API path requires its workspace identity.");
|
|
12
12
|
return `/api/workspaces/${encodeURIComponent(mount.workspaceId)}/sessions/${encodeURIComponent(mount.sessionId)}/plugins`;
|
|
13
13
|
}
|
|
14
14
|
/** Only canonical resource paths may select a protocol listener. */
|
|
15
|
-
function
|
|
15
|
+
function parsePoSocketPath(pathname) {
|
|
16
16
|
if (pathname === "/api/ws") return { scope: "global" };
|
|
17
17
|
const match = /^\/api\/workspaces\/([^/]+)(?:\/sessions\/([^/]+))?\/ws$/u.exec(pathname);
|
|
18
18
|
if (!match) return void 0;
|
|
@@ -31,23 +31,23 @@ function parseDoomSocketPath(pathname) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
/** The segment an API is mounted under, below this prefix. */
|
|
34
|
-
const
|
|
34
|
+
const PO_API_ROUTE_PREFIX = "/api/plugins";
|
|
35
35
|
/** Selects the hub API bundle that owns the named cockpit session. */
|
|
36
|
-
const
|
|
36
|
+
const PO_HUB_API_SESSION_QUERY_PARAM = "hubSession";
|
|
37
37
|
/** Trusted caller headers written only by the cockpit-to-session proxy. */
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
const PO_API_CALLER_LOCALITY_HEADER = "x-po-api-caller-locality";
|
|
39
|
+
const PO_API_CALLER_DEVICE_ID_HEADER = "x-po-api-caller-device-id";
|
|
40
|
+
const PO_API_CALLER_STEP_UP_HEADER = "x-po-api-caller-step-up";
|
|
41
|
+
const PO_API_CALLER_HEADERS = [
|
|
42
|
+
PO_API_CALLER_LOCALITY_HEADER,
|
|
43
|
+
PO_API_CALLER_DEVICE_ID_HEADER,
|
|
44
|
+
PO_API_CALLER_STEP_UP_HEADER
|
|
45
45
|
];
|
|
46
46
|
/** Reads the proxy-authenticated caller identity, rejecting partial or contradictory stamps. */
|
|
47
|
-
function
|
|
48
|
-
const locality = headers.get(
|
|
49
|
-
const deviceId = headers.get(
|
|
50
|
-
const stepUp = headers.get(
|
|
47
|
+
function poApiCallerFrom(headers) {
|
|
48
|
+
const locality = headers.get(PO_API_CALLER_LOCALITY_HEADER);
|
|
49
|
+
const deviceId = headers.get(PO_API_CALLER_DEVICE_ID_HEADER);
|
|
50
|
+
const stepUp = headers.get(PO_API_CALLER_STEP_UP_HEADER);
|
|
51
51
|
if (locality === "local") return deviceId === null && stepUp === "not-required" ? {
|
|
52
52
|
locality,
|
|
53
53
|
stepUp
|
|
@@ -59,18 +59,18 @@ function doomApiCallerFrom(headers) {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
/** Why shareFile rejects while the host has no public tunnel origin. */
|
|
62
|
-
const
|
|
62
|
+
const PO_SHARE_FILE_REMOTE_OFF_MESSAGE = "Remote access is off, so Po cannot share files with remote MCP servers. Turn it on and retry.";
|
|
63
63
|
//#endregion
|
|
64
|
-
exports.
|
|
65
|
-
exports.
|
|
66
|
-
exports.
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
74
|
-
exports.
|
|
64
|
+
exports.PO_API_CALLER_DEVICE_ID_HEADER = PO_API_CALLER_DEVICE_ID_HEADER;
|
|
65
|
+
exports.PO_API_CALLER_HEADERS = PO_API_CALLER_HEADERS;
|
|
66
|
+
exports.PO_API_CALLER_LOCALITY_HEADER = PO_API_CALLER_LOCALITY_HEADER;
|
|
67
|
+
exports.PO_API_CALLER_STEP_UP_HEADER = PO_API_CALLER_STEP_UP_HEADER;
|
|
68
|
+
exports.PO_API_ROUTE_PREFIX = PO_API_ROUTE_PREFIX;
|
|
69
|
+
exports.PO_API_SCOPES = PO_API_SCOPES;
|
|
70
|
+
exports.PO_HUB_API_SESSION_QUERY_PARAM = PO_HUB_API_SESSION_QUERY_PARAM;
|
|
71
|
+
exports.PO_SHARE_FILE_REMOTE_OFF_MESSAGE = PO_SHARE_FILE_REMOTE_OFF_MESSAGE;
|
|
72
|
+
exports.parsePoSocketPath = parsePoSocketPath;
|
|
73
|
+
exports.poApiCallerFrom = poApiCallerFrom;
|
|
74
|
+
exports.poApiMountPath = poApiMountPath;
|
|
75
75
|
|
|
76
76
|
//# sourceMappingURL=packageApi.cjs.map
|