@agimon-ai/po-core 0.0.0-alpha.21 → 0.0.0-alpha.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -149
- package/NOTICE +1 -1
- package/README.md +40 -3
- package/dist/agentModel.cjs +4 -0
- package/dist/agentModel.d.mts +3 -1
- package/dist/agentModel.mjs +3 -1
- package/dist/apiContracts.cjs +631 -326
- package/dist/apiContracts.cjs.map +1 -1
- package/dist/apiContracts.d.mts +1252 -149
- package/dist/apiContracts.d.mts.map +1 -1
- package/dist/apiContracts.mjs +626 -323
- package/dist/apiContracts.mjs.map +1 -1
- package/dist/approval.cjs +17 -0
- package/dist/approval.d.mts +5 -0
- package/dist/approval.mjs +4 -0
- package/dist/backgroundWork.cjs +5 -0
- package/dist/backgroundWork.d.mts +2 -2
- package/dist/backgroundWork.mjs +1 -1
- package/dist/bundlePublicationWorker.cjs +30 -0
- package/dist/bundlePublicationWorker.cjs.map +1 -0
- package/dist/bundlePublicationWorker.d.mts +1 -0
- package/dist/bundlePublicationWorker.mjs +28 -0
- package/dist/bundlePublicationWorker.mjs.map +1 -0
- package/dist/childSession.d.mts +3 -2
- package/dist/clientDevices.cjs +4 -0
- package/dist/clientDevices.d.mts +3 -0
- package/dist/clientDevices.mjs +1 -0
- package/dist/clientMetadata.cjs +13 -0
- package/dist/clientMetadata.d.mts +4 -0
- package/dist/clientMetadata.mjs +3 -0
- package/dist/codemode.cjs +7 -0
- package/dist/codemode.d.mts +2 -0
- package/dist/codemode.mjs +1 -0
- package/dist/contextDetailStore.cjs +20 -12
- package/dist/contextDetailStore.cjs.map +1 -1
- package/dist/contextDetailStore.d.mts +7 -4
- package/dist/contextDetailStore.d.mts.map +1 -1
- package/dist/contextDetailStore.mjs +19 -11
- package/dist/contextDetailStore.mjs.map +1 -1
- package/dist/contextProjection.cjs +68 -8
- package/dist/contextProjection.cjs.map +1 -1
- package/dist/contextProjection.d.mts +34 -10
- package/dist/contextProjection.d.mts.map +1 -1
- package/dist/contextProjection.mjs +65 -9
- package/dist/contextProjection.mjs.map +1 -1
- package/dist/delegation.cjs +3 -0
- package/dist/delegation.d.mts +2 -2
- package/dist/delegation.mjs +1 -1
- package/dist/executionBudget.cjs +13 -5
- package/dist/executionBudget.cjs.map +1 -1
- package/dist/executionBudget.d.mts.map +1 -1
- package/dist/executionBudget.mjs +13 -5
- package/dist/executionBudget.mjs.map +1 -1
- package/dist/extensionFile.cjs +1 -2
- package/dist/extensionFile.d.mts +4 -4
- package/dist/extensionFile.mjs +3 -3
- package/dist/headless.cjs +22 -0
- package/dist/headless.d.mts +6 -2
- package/dist/headless.mjs +5 -1
- package/dist/headlessHub.cjs +941 -137
- package/dist/headlessHub.cjs.map +1 -1
- package/dist/headlessHub.d.mts +133 -25
- package/dist/headlessHub.d.mts.map +1 -1
- package/dist/headlessHub.mjs +938 -135
- package/dist/headlessHub.mjs.map +1 -1
- package/dist/headlessProtocol.cjs +331 -74
- package/dist/headlessProtocol.cjs.map +1 -1
- package/dist/headlessProtocol.d.mts +29 -3
- package/dist/headlessProtocol.d.mts.map +1 -1
- package/dist/headlessProtocol.mjs +335 -79
- package/dist/headlessProtocol.mjs.map +1 -1
- package/dist/headlessServer.cjs +1057 -219
- package/dist/headlessServer.cjs.map +1 -1
- package/dist/headlessServer.d.mts +140 -14
- package/dist/headlessServer.d.mts.map +1 -1
- package/dist/headlessServer.mjs +1057 -219
- package/dist/headlessServer.mjs.map +1 -1
- package/dist/headlessSessionHost.d.mts +65 -24
- package/dist/headlessSessionHost.d.mts.map +1 -1
- package/dist/headlessSessionManager.cjs +23 -16
- package/dist/headlessSessionManager.cjs.map +1 -1
- package/dist/headlessSessionManager.d.mts +1 -1
- package/dist/headlessSessionManager.d.mts.map +1 -1
- package/dist/headlessSessionManager.mjs +23 -16
- package/dist/headlessSessionManager.mjs.map +1 -1
- package/dist/help.cjs +6 -0
- package/dist/help.d.mts +2 -2
- package/dist/help.mjs +2 -2
- package/dist/history.cjs +7 -0
- package/dist/history.d.mts +5 -3
- package/dist/history.mjs +5 -2
- package/dist/historyOwnership.cjs +100 -71
- package/dist/historyOwnership.cjs.map +1 -1
- package/dist/historyOwnership.d.mts.map +1 -1
- package/dist/historyOwnership.mjs +103 -75
- package/dist/historyOwnership.mjs.map +1 -1
- package/dist/hubChannel.cjs +32 -0
- package/dist/hubChannel.d.mts +5 -3
- package/dist/hubChannel.mjs +5 -3
- package/dist/images.cjs +15 -0
- package/dist/images.d.mts +2 -0
- package/dist/images.mjs +1 -0
- package/dist/index.cjs +27 -0
- package/dist/index.d.mts +7 -3
- package/dist/index.mjs +7 -3
- package/dist/inputTemplate.cjs +5 -0
- package/dist/inputTemplate.d.mts +3 -0
- package/dist/inputTemplate.mjs +1 -0
- package/dist/interop/piCodingAgent.mjs +1 -0
- package/dist/lintReview.cjs +4 -0
- package/dist/lintReview.d.mts +2 -0
- package/dist/lintReview.mjs +1 -0
- package/dist/locale.cjs +19 -0
- package/dist/locale.d.mts +3 -0
- package/dist/locale.mjs +3 -0
- package/dist/machineApi.cjs +30 -81
- package/dist/machineApi.cjs.map +1 -1
- package/dist/machineApi.d.mts +1 -1
- package/dist/machineApi.d.mts.map +1 -1
- package/dist/machineApi.mjs +30 -79
- package/dist/machineApi.mjs.map +1 -1
- package/dist/main.cjs +6 -1
- package/dist/main.d.mts +3 -3
- package/dist/main.mjs +3 -3
- package/dist/mcp.cjs +7 -0
- package/dist/mcp.d.mts +2 -0
- package/dist/mcp.mjs +1 -0
- package/dist/mcpProjection.cjs +1 -0
- package/dist/mcpProjection.d.mts +2 -2
- package/dist/mcpProjection.mjs +1 -1
- package/dist/mcpSchemaCost.cjs +10 -10
- package/dist/mcpSchemaCost.cjs.map +1 -1
- package/dist/mcpSchemaCost.mjs +9 -9
- package/dist/mcpSchemaCost.mjs.map +1 -1
- package/dist/modelGateway.cjs +33 -0
- package/dist/modelGateway.d.mts +13 -0
- package/dist/modelGateway.mjs +10 -0
- package/dist/moduleResolution.cjs +18 -18
- package/dist/moduleResolution.cjs.map +1 -1
- package/dist/moduleResolution.d.mts +4 -4
- package/dist/moduleResolution.d.mts.map +1 -1
- package/dist/moduleResolution.mjs +17 -17
- package/dist/moduleResolution.mjs.map +1 -1
- package/dist/native.cjs +99 -13
- package/dist/native.d.mts +26 -9
- package/dist/native.mjs +20 -4
- package/dist/nodePlatform.cjs +42 -4
- package/dist/nodePlatform.cjs.map +1 -1
- package/dist/nodePlatform.d.mts +5 -0
- package/dist/nodePlatform.d.mts.map +1 -1
- package/dist/nodePlatform.mjs +42 -5
- package/dist/nodePlatform.mjs.map +1 -1
- package/dist/notification.cjs +1 -0
- package/dist/notification.d.mts +2 -2
- package/dist/notification.mjs +1 -1
- package/dist/operationHook.cjs +3 -0
- package/dist/operationHook.d.mts +2 -0
- package/dist/operationHook.mjs +1 -0
- package/dist/packageApi.cjs +9 -0
- package/dist/packageApi.d.mts +4 -2
- package/dist/packageApi.mjs +3 -2
- package/dist/packageApiServer.cjs +148 -40
- package/dist/packageApiServer.cjs.map +1 -1
- package/dist/packageApiServer.d.mts +34 -6
- package/dist/packageApiServer.d.mts.map +1 -1
- package/dist/packageApiServer.mjs +140 -36
- package/dist/packageApiServer.mjs.map +1 -1
- package/dist/pairingPage.cjs +6 -0
- package/dist/pairingPage.d.mts +2 -0
- package/dist/pairingPage.mjs +1 -0
- package/dist/personTimeZone.cjs +7 -0
- package/dist/personTimeZone.d.mts +2 -0
- package/dist/personTimeZone.mjs +1 -0
- package/dist/piSettings.cjs +2 -0
- package/dist/piSettings.d.mts +3 -3
- package/dist/piSettings.mjs +3 -3
- package/dist/platform.cjs +47 -2
- package/dist/platform.d.mts +11 -6
- package/dist/platform.mjs +11 -6
- package/dist/pluginProtocol.cjs +15 -0
- package/dist/pluginProtocol.d.mts +2 -2
- package/dist/pluginProtocol.mjs +1 -1
- package/dist/po-runtime-identity.json +1 -0
- package/dist/protocolTransport.cjs +7 -0
- package/dist/protocolTransport.d.mts +3 -0
- package/dist/protocolTransport.mjs +3 -0
- package/dist/providerAuth.cjs +8 -0
- package/dist/providerAuth.d.mts +4 -0
- package/dist/providerAuth.mjs +3 -0
- package/dist/remoteChildSession.cjs +6 -0
- package/dist/remoteChildSession.d.mts +3 -0
- package/dist/remoteChildSession.mjs +1 -0
- package/dist/remoteContract.cjs +42 -0
- package/dist/remoteContract.d.mts +4 -0
- package/dist/remoteContract.mjs +3 -0
- package/dist/remoteOrigin.cjs +4 -0
- package/dist/remoteOrigin.d.mts +2 -0
- package/dist/remoteOrigin.mjs +1 -0
- package/dist/runtimeContextApi.cjs +1 -1
- package/dist/runtimeContextApi.cjs.map +1 -1
- package/dist/runtimeContextApi.mjs +1 -1
- package/dist/runtimeContextApi.mjs.map +1 -1
- package/dist/runtimeCordisHost.cjs +9 -8
- package/dist/runtimeCordisHost.cjs.map +1 -1
- package/dist/runtimeCordisHost.d.mts +1 -1
- package/dist/runtimeCordisHost.d.mts.map +1 -1
- package/dist/runtimeCordisHost.mjs +3 -2
- package/dist/runtimeCordisHost.mjs.map +1 -1
- package/dist/runtimeEnvironment.cjs +6 -0
- package/dist/runtimeEnvironment.d.mts +2 -0
- package/dist/runtimeEnvironment.mjs +1 -0
- package/dist/runtimeHeadlessSessionManager.d.mts +1 -0
- package/dist/runtimeHeadlessSessionManager.d.mts.map +1 -1
- package/dist/runtimeIdentity.cjs.map +1 -1
- package/dist/runtimeIdentity.d.mts +1 -1
- package/dist/runtimeIdentity.mjs.map +1 -1
- package/dist/runtimeLogSinkTelemetry.cjs +4 -4
- package/dist/runtimeLogSinkTelemetry.cjs.map +1 -1
- package/dist/runtimeLogSinkTelemetry.d.mts +4 -3
- package/dist/runtimeLogSinkTelemetry.d.mts.map +1 -1
- package/dist/runtimeLogSinkTelemetry.mjs +4 -4
- package/dist/runtimeLogSinkTelemetry.mjs.map +1 -1
- package/dist/runtimePackages.cjs +27 -22
- package/dist/runtimePackages.cjs.map +1 -1
- package/dist/runtimePackages.d.mts +9 -1
- package/dist/runtimePackages.d.mts.map +1 -1
- package/dist/runtimePackages.mjs +26 -21
- package/dist/runtimePackages.mjs.map +1 -1
- package/dist/runtimePiSettings.cjs +2 -0
- package/dist/runtimePiSettings.d.mts +3 -3
- package/dist/runtimePiSettings.mjs +3 -3
- package/dist/runtimeTransition.cjs.map +1 -1
- package/dist/runtimeTransition.d.mts +7 -7
- package/dist/runtimeTransition.d.mts.map +1 -1
- package/dist/runtimeTransition.mjs.map +1 -1
- package/dist/sandboxIdentity.cjs +5 -0
- package/dist/sandboxIdentity.d.mts +2 -0
- package/dist/sandboxIdentity.mjs +1 -0
- package/dist/server.d.mts +3 -3
- package/dist/serverPlugin.cjs +45 -6
- package/dist/serverPlugin.d.mts +18 -5
- package/dist/serverPlugin.mjs +16 -3
- package/dist/serverTelemetry.cjs +2 -2
- package/dist/serverTelemetry.cjs.map +1 -1
- package/dist/serverTelemetry.d.mts +2 -1
- package/dist/serverTelemetry.d.mts.map +1 -1
- package/dist/serverTelemetry.mjs +1 -1
- package/dist/serverTelemetry.mjs.map +1 -1
- package/dist/sessionFilesApi.cjs +17 -6
- package/dist/sessionFilesApi.cjs.map +1 -1
- package/dist/sessionFilesApi.d.mts.map +1 -1
- package/dist/sessionFilesApi.mjs +17 -6
- package/dist/sessionFilesApi.mjs.map +1 -1
- package/dist/sessionMcpContract.cjs +18 -0
- package/dist/sessionMcpContract.d.mts +5 -0
- package/dist/sessionMcpContract.mjs +1 -0
- package/dist/sessionProtocol.cjs +24 -2
- package/dist/sessionProtocol.d.mts +6 -5
- package/dist/sessionProtocol.mjs +6 -5
- package/dist/skills.cjs +4 -0
- package/dist/skills.d.mts +2 -1
- package/dist/skills.mjs +3 -1
- package/dist/sqliteSessionStorage.cjs +20 -13
- package/dist/sqliteSessionStorage.cjs.map +1 -1
- package/dist/sqliteSessionStorage.d.mts +3 -3
- package/dist/sqliteSessionStorage.d.mts.map +1 -1
- package/dist/sqliteSessionStorage.mjs +19 -12
- package/dist/sqliteSessionStorage.mjs.map +1 -1
- package/dist/src/constants/agentSettled.d.mts +5 -0
- package/dist/src/constants/agentSettled.d.mts.map +1 -0
- package/dist/src/constants/cloud.cjs +11 -0
- package/dist/src/constants/cloud.cjs.map +1 -0
- package/dist/src/constants/cloud.d.mts +9 -0
- package/dist/src/constants/cloud.d.mts.map +1 -0
- package/dist/src/constants/cloud.mjs +11 -0
- package/dist/src/constants/cloud.mjs.map +1 -0
- package/dist/src/constants/fixedCore.cjs +38 -0
- package/dist/src/constants/fixedCore.cjs.map +1 -0
- package/dist/src/constants/fixedCore.d.mts +12 -0
- package/dist/src/constants/fixedCore.d.mts.map +1 -0
- package/dist/src/constants/fixedCore.mjs +38 -0
- package/dist/src/constants/fixedCore.mjs.map +1 -0
- package/dist/src/constants/globalSettings.cjs +10 -0
- package/dist/src/constants/globalSettings.cjs.map +1 -0
- package/dist/src/constants/globalSettings.d.mts +8 -0
- package/dist/src/constants/globalSettings.d.mts.map +1 -0
- package/dist/src/constants/globalSettings.mjs +10 -0
- package/dist/src/constants/globalSettings.mjs.map +1 -0
- package/dist/src/constants/modelGateway.cjs +48 -0
- package/dist/src/constants/modelGateway.cjs.map +1 -0
- package/dist/src/constants/modelGateway.d.mts +29 -0
- package/dist/src/constants/modelGateway.d.mts.map +1 -0
- package/dist/src/constants/modelGateway.mjs +42 -0
- package/dist/src/constants/modelGateway.mjs.map +1 -0
- package/dist/src/constants/nativeHost.cjs +11 -1
- package/dist/src/constants/nativeHost.cjs.map +1 -1
- package/dist/src/constants/nativeHost.d.mts +1 -1
- package/dist/src/constants/nativeHost.d.mts.map +1 -1
- package/dist/src/constants/nativeHost.mjs +11 -1
- package/dist/src/constants/nativeHost.mjs.map +1 -1
- package/dist/src/constants/remote.cjs +26 -14
- package/dist/src/constants/remote.cjs.map +1 -1
- package/dist/src/constants/remote.d.mts +105 -0
- package/dist/src/constants/remote.d.mts.map +1 -0
- package/dist/src/constants/remote.mjs +18 -10
- package/dist/src/constants/remote.mjs.map +1 -1
- package/dist/src/constants/sessionFiles.cjs +3 -0
- package/dist/src/constants/sessionFiles.cjs.map +1 -1
- package/dist/src/constants/sessionFiles.d.mts +9 -0
- package/dist/src/constants/sessionFiles.d.mts.map +1 -0
- package/dist/src/constants/sessionFiles.mjs +3 -1
- package/dist/src/constants/sessionFiles.mjs.map +1 -1
- package/dist/src/constants/template.cjs +13 -0
- package/dist/src/constants/template.cjs.map +1 -0
- package/dist/src/constants/template.d.mts +9 -0
- package/dist/src/constants/template.d.mts.map +1 -0
- package/dist/src/constants/template.mjs +11 -0
- package/dist/src/constants/template.mjs.map +1 -0
- package/dist/src/extensions/extensionFile.cjs +9 -10
- package/dist/src/extensions/extensionFile.cjs.map +1 -1
- package/dist/src/extensions/extensionFile.d.mts +16 -8
- package/dist/src/extensions/extensionFile.d.mts.map +1 -1
- package/dist/src/extensions/extensionFile.mjs +10 -10
- package/dist/src/extensions/extensionFile.mjs.map +1 -1
- package/dist/src/extensions/serverPlugin.cjs +55 -7
- package/dist/src/extensions/serverPlugin.cjs.map +1 -1
- package/dist/src/extensions/serverPlugin.d.mts +1 -1
- package/dist/src/extensions/serverPlugin.d.mts.map +1 -1
- package/dist/src/extensions/serverPlugin.mjs +53 -5
- package/dist/src/extensions/serverPlugin.mjs.map +1 -1
- package/dist/src/extensions/webPlugin.cjs +25 -2
- package/dist/src/extensions/webPlugin.cjs.map +1 -1
- package/dist/src/extensions/webPlugin.d.mts +10 -2
- package/dist/src/extensions/webPlugin.d.mts.map +1 -1
- package/dist/src/extensions/webPlugin.mjs +21 -2
- package/dist/src/extensions/webPlugin.mjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.cjs +299 -132
- package/dist/src/pi/piSessionRuntime.cjs.map +1 -1
- package/dist/src/pi/piSessionRuntime.d.mts +45 -9
- package/dist/src/pi/piSessionRuntime.d.mts.map +1 -1
- package/dist/src/pi/piSessionRuntime.mjs +299 -133
- package/dist/src/pi/piSessionRuntime.mjs.map +1 -1
- package/dist/src/schemas/agentModel.cjs +1 -1
- package/dist/src/schemas/agentModel.cjs.map +1 -1
- package/dist/src/schemas/agentModel.d.mts +1 -1
- package/dist/src/schemas/agentModel.mjs +1 -1
- package/dist/src/schemas/agentModel.mjs.map +1 -1
- package/dist/src/schemas/agentRun.cjs +16 -0
- package/dist/src/schemas/agentRun.cjs.map +1 -0
- package/dist/src/schemas/agentRun.d.mts +48 -0
- package/dist/src/schemas/agentRun.d.mts.map +1 -0
- package/dist/src/schemas/agentRun.mjs +14 -0
- package/dist/src/schemas/agentRun.mjs.map +1 -0
- package/dist/src/schemas/apiContracts.d.mts +2 -2
- package/dist/src/schemas/apiContracts.d.mts.map +1 -1
- package/dist/src/schemas/approval.cjs +21 -0
- package/dist/src/schemas/approval.cjs.map +1 -0
- package/dist/src/schemas/approval.d.mts +82 -0
- package/dist/src/schemas/approval.d.mts.map +1 -0
- package/dist/src/schemas/approval.mjs +15 -0
- package/dist/src/schemas/approval.mjs.map +1 -0
- package/dist/src/schemas/approvalPrompt.cjs +103 -0
- package/dist/src/schemas/approvalPrompt.cjs.map +1 -0
- package/dist/src/schemas/approvalPrompt.d.mts +83 -0
- package/dist/src/schemas/approvalPrompt.d.mts.map +1 -0
- package/dist/src/schemas/approvalPrompt.mjs +99 -0
- package/dist/src/schemas/approvalPrompt.mjs.map +1 -0
- package/dist/src/schemas/askUser.d.mts.map +1 -1
- package/dist/src/schemas/backgroundWork.cjs +24 -2
- package/dist/src/schemas/backgroundWork.cjs.map +1 -1
- package/dist/src/schemas/backgroundWork.d.mts +11 -1
- package/dist/src/schemas/backgroundWork.d.mts.map +1 -1
- package/dist/src/schemas/backgroundWork.mjs +20 -3
- package/dist/src/schemas/backgroundWork.mjs.map +1 -1
- package/dist/src/schemas/brain.cjs +43 -0
- package/dist/src/schemas/brain.cjs.map +1 -0
- package/dist/src/schemas/brain.d.mts +107 -0
- package/dist/src/schemas/brain.d.mts.map +1 -0
- package/dist/src/schemas/brain.mjs +43 -0
- package/dist/src/schemas/brain.mjs.map +1 -0
- package/dist/src/schemas/childProcess.cjs +2 -1
- package/dist/src/schemas/childProcess.cjs.map +1 -1
- package/dist/src/schemas/childProcess.d.mts +1 -1
- package/dist/src/schemas/childProcess.d.mts.map +1 -1
- package/dist/src/schemas/childProcess.mjs +2 -1
- package/dist/src/schemas/childProcess.mjs.map +1 -1
- package/dist/src/schemas/childReport.cjs +42 -0
- package/dist/src/schemas/childReport.cjs.map +1 -0
- package/dist/src/schemas/childReport.d.mts +96 -0
- package/dist/src/schemas/childReport.d.mts.map +1 -0
- package/dist/src/schemas/childReport.mjs +35 -0
- package/dist/src/schemas/childReport.mjs.map +1 -0
- package/dist/src/schemas/clientDevices.d.mts +25 -0
- package/dist/src/schemas/clientDevices.d.mts.map +1 -0
- package/dist/src/schemas/clientMetadata.d.mts +27 -0
- package/dist/src/schemas/clientMetadata.d.mts.map +1 -0
- package/dist/src/schemas/codemode.cjs +34 -0
- package/dist/src/schemas/codemode.cjs.map +1 -0
- package/dist/src/schemas/codemode.d.mts +162 -0
- package/dist/src/schemas/codemode.d.mts.map +1 -0
- package/dist/src/schemas/codemode.mjs +30 -0
- package/dist/src/schemas/codemode.mjs.map +1 -0
- package/dist/src/schemas/delegation.cjs +35 -3
- package/dist/src/schemas/delegation.cjs.map +1 -1
- package/dist/src/schemas/delegation.d.mts +23 -0
- package/dist/src/schemas/delegation.d.mts.map +1 -1
- package/dist/src/schemas/delegation.mjs +33 -4
- package/dist/src/schemas/delegation.mjs.map +1 -1
- package/dist/src/schemas/extensionFile.d.mts +11 -5
- package/dist/src/schemas/extensionFile.d.mts.map +1 -1
- package/dist/src/schemas/federation.cjs +50 -0
- package/dist/src/schemas/federation.cjs.map +1 -0
- package/dist/src/schemas/federation.d.mts +376 -0
- package/dist/src/schemas/federation.d.mts.map +1 -0
- package/dist/src/schemas/federation.mjs +44 -0
- package/dist/src/schemas/federation.mjs.map +1 -0
- package/dist/src/schemas/headless.cjs +153 -5
- package/dist/src/schemas/headless.cjs.map +1 -1
- package/dist/src/schemas/headless.d.mts +409 -20
- package/dist/src/schemas/headless.d.mts.map +1 -1
- package/dist/src/schemas/headless.mjs +143 -6
- package/dist/src/schemas/headless.mjs.map +1 -1
- package/dist/src/schemas/help.cjs +22 -3
- package/dist/src/schemas/help.cjs.map +1 -1
- package/dist/src/schemas/help.d.mts +70 -3
- package/dist/src/schemas/help.d.mts.map +1 -1
- package/dist/src/schemas/help.mjs +17 -4
- package/dist/src/schemas/help.mjs.map +1 -1
- package/dist/src/schemas/home.cjs +35 -12
- package/dist/src/schemas/home.cjs.map +1 -1
- package/dist/src/schemas/home.d.mts +6 -0
- package/dist/src/schemas/home.d.mts.map +1 -1
- package/dist/src/schemas/home.mjs +34 -13
- package/dist/src/schemas/home.mjs.map +1 -1
- package/dist/src/schemas/hostServiceContracts.cjs +39 -0
- package/dist/src/schemas/hostServiceContracts.cjs.map +1 -0
- package/dist/src/schemas/hostServiceContracts.d.mts +26 -0
- package/dist/src/schemas/hostServiceContracts.d.mts.map +1 -0
- package/dist/src/schemas/hostServiceContracts.mjs +39 -0
- package/dist/src/schemas/hostServiceContracts.mjs.map +1 -0
- package/dist/src/schemas/hostServices.cjs +14 -0
- package/dist/src/schemas/hostServices.cjs.map +1 -0
- package/dist/src/schemas/hostServices.d.mts +45 -0
- package/dist/src/schemas/hostServices.d.mts.map +1 -0
- package/dist/src/schemas/hostServices.mjs +12 -0
- package/dist/src/schemas/hostServices.mjs.map +1 -0
- package/dist/src/schemas/hostTeam.cjs +15 -0
- package/dist/src/schemas/hostTeam.cjs.map +1 -0
- package/dist/src/schemas/hostTeam.d.mts +64 -0
- package/dist/src/schemas/hostTeam.d.mts.map +1 -0
- package/dist/src/schemas/hostTeam.mjs +13 -0
- package/dist/src/schemas/hostTeam.mjs.map +1 -0
- package/dist/src/schemas/httpApiContracts.cjs +282 -18
- package/dist/src/schemas/httpApiContracts.cjs.map +1 -1
- package/dist/src/schemas/httpApiContracts.mjs +282 -18
- package/dist/src/schemas/httpApiContracts.mjs.map +1 -1
- package/dist/src/schemas/hubChannel.cjs +132 -0
- package/dist/src/schemas/hubChannel.cjs.map +1 -1
- package/dist/src/schemas/hubChannel.d.mts +366 -15
- package/dist/src/schemas/hubChannel.d.mts.map +1 -1
- package/dist/src/schemas/hubChannel.mjs +116 -1
- package/dist/src/schemas/hubChannel.mjs.map +1 -1
- package/dist/src/schemas/humanIdentity.cjs +16 -0
- package/dist/src/schemas/humanIdentity.cjs.map +1 -0
- package/dist/src/schemas/humanIdentity.d.mts +39 -0
- package/dist/src/schemas/humanIdentity.d.mts.map +1 -0
- package/dist/src/schemas/humanIdentity.mjs +14 -0
- package/dist/src/schemas/humanIdentity.mjs.map +1 -0
- package/dist/src/schemas/identity.cjs +34 -0
- package/dist/src/schemas/identity.cjs.map +1 -0
- package/dist/src/schemas/identity.d.mts +193 -0
- package/dist/src/schemas/identity.d.mts.map +1 -0
- package/dist/src/schemas/identity.mjs +30 -0
- package/dist/src/schemas/identity.mjs.map +1 -0
- package/dist/src/schemas/lang.cjs +34 -0
- package/dist/src/schemas/lang.cjs.map +1 -0
- package/dist/src/schemas/lang.d.mts +37 -0
- package/dist/src/schemas/lang.d.mts.map +1 -0
- package/dist/src/schemas/lang.mjs +27 -0
- package/dist/src/schemas/lang.mjs.map +1 -0
- package/dist/src/schemas/leader.cjs +1 -1
- package/dist/src/schemas/leader.cjs.map +1 -1
- package/dist/src/schemas/leader.d.mts +1 -1
- package/dist/src/schemas/leader.d.mts.map +1 -1
- package/dist/src/schemas/leader.mjs +1 -1
- package/dist/src/schemas/leader.mjs.map +1 -1
- package/dist/src/schemas/lintReview.cjs +14 -0
- package/dist/src/schemas/lintReview.cjs.map +1 -0
- package/dist/src/schemas/lintReview.d.mts +75 -0
- package/dist/src/schemas/lintReview.d.mts.map +1 -0
- package/dist/src/schemas/lintReview.mjs +13 -0
- package/dist/src/schemas/lintReview.mjs.map +1 -0
- package/dist/src/schemas/locale.cjs +116 -0
- package/dist/src/schemas/locale.cjs.map +1 -0
- package/dist/src/schemas/locale.d.mts +40 -0
- package/dist/src/schemas/locale.d.mts.map +1 -0
- package/dist/src/schemas/locale.mjs +108 -0
- package/dist/src/schemas/locale.mjs.map +1 -0
- package/dist/src/schemas/mcp.cjs +17 -0
- package/dist/src/schemas/mcp.cjs.map +1 -0
- package/dist/src/schemas/mcp.d.mts +112 -0
- package/dist/src/schemas/mcp.d.mts.map +1 -0
- package/dist/src/schemas/mcp.mjs +13 -0
- package/dist/src/schemas/mcp.mjs.map +1 -0
- package/dist/src/schemas/mcpFacet.cjs.map +1 -1
- package/dist/src/schemas/mcpFacet.d.mts +4 -3
- 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 +11 -1
- package/dist/src/schemas/mcpProjection.cjs.map +1 -1
- package/dist/src/schemas/mcpProjection.d.mts +10 -4
- package/dist/src/schemas/mcpProjection.d.mts.map +1 -1
- package/dist/src/schemas/mcpProjection.mjs +11 -2
- package/dist/src/schemas/mcpProjection.mjs.map +1 -1
- package/dist/src/schemas/mcpSession.d.mts +1 -1
- package/dist/src/schemas/modelGateway.cjs +143 -0
- package/dist/src/schemas/modelGateway.cjs.map +1 -0
- package/dist/src/schemas/modelGateway.d.mts +150 -0
- package/dist/src/schemas/modelGateway.d.mts.map +1 -0
- package/dist/src/schemas/modelGateway.mjs +135 -0
- package/dist/src/schemas/modelGateway.mjs.map +1 -0
- package/dist/src/schemas/narration.d.mts.map +1 -1
- package/dist/src/schemas/notification.cjs +59 -5
- package/dist/src/schemas/notification.cjs.map +1 -1
- package/dist/src/schemas/notification.d.mts +26 -0
- package/dist/src/schemas/notification.d.mts.map +1 -1
- package/dist/src/schemas/notification.mjs +59 -6
- package/dist/src/schemas/notification.mjs.map +1 -1
- package/dist/src/schemas/operationHook.cjs +180 -0
- package/dist/src/schemas/operationHook.cjs.map +1 -0
- package/dist/src/schemas/operationHook.d.mts +141 -0
- package/dist/src/schemas/operationHook.d.mts.map +1 -0
- package/dist/src/schemas/operationHook.mjs +180 -0
- package/dist/src/schemas/operationHook.mjs.map +1 -0
- package/dist/src/schemas/packageApi.cjs +76 -7
- package/dist/src/schemas/packageApi.cjs.map +1 -1
- package/dist/src/schemas/packageApi.d.mts +174 -30
- package/dist/src/schemas/packageApi.d.mts.map +1 -1
- package/dist/src/schemas/packageApi.mjs +70 -8
- package/dist/src/schemas/packageApi.mjs.map +1 -1
- package/dist/src/schemas/personTimeZone.cjs +29 -0
- package/dist/src/schemas/personTimeZone.cjs.map +1 -0
- package/dist/src/schemas/personTimeZone.d.mts +33 -0
- package/dist/src/schemas/personTimeZone.d.mts.map +1 -0
- package/dist/src/schemas/personTimeZone.mjs +25 -0
- package/dist/src/schemas/personTimeZone.mjs.map +1 -0
- package/dist/src/schemas/platform.cjs +48 -0
- package/dist/src/schemas/platform.cjs.map +1 -1
- package/dist/src/schemas/platform.d.mts +355 -11
- package/dist/src/schemas/platform.d.mts.map +1 -1
- package/dist/src/schemas/platform.mjs +34 -1
- package/dist/src/schemas/platform.mjs.map +1 -1
- package/dist/src/schemas/pluginCatalog.cjs +42 -0
- package/dist/src/schemas/pluginCatalog.cjs.map +1 -0
- package/dist/src/schemas/pluginCatalog.d.mts +67 -0
- package/dist/src/schemas/pluginCatalog.d.mts.map +1 -0
- package/dist/src/schemas/pluginCatalog.mjs +39 -0
- package/dist/src/schemas/pluginCatalog.mjs.map +1 -0
- package/dist/src/schemas/pluginContributions.cjs.map +1 -1
- package/dist/src/schemas/pluginContributions.d.mts +5 -2
- 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 +110 -10
- package/dist/src/schemas/pluginProtocol.cjs.map +1 -1
- package/dist/src/schemas/pluginProtocol.d.mts +63 -5
- package/dist/src/schemas/pluginProtocol.d.mts.map +1 -1
- package/dist/src/schemas/pluginProtocol.mjs +96 -11
- package/dist/src/schemas/pluginProtocol.mjs.map +1 -1
- package/dist/src/schemas/profileIdentity.cjs +3 -3
- package/dist/src/schemas/profileIdentity.cjs.map +1 -1
- package/dist/src/schemas/profileIdentity.d.mts +2 -2
- package/dist/src/schemas/profileIdentity.mjs +3 -3
- package/dist/src/schemas/profileIdentity.mjs.map +1 -1
- package/dist/src/schemas/protocolChannelsContract.cjs +4 -8
- package/dist/src/schemas/protocolChannelsContract.cjs.map +1 -1
- package/dist/src/schemas/protocolChannelsContract.d.mts +16 -22
- package/dist/src/schemas/protocolChannelsContract.d.mts.map +1 -1
- package/dist/src/schemas/protocolChannelsContract.mjs +5 -9
- package/dist/src/schemas/protocolChannelsContract.mjs.map +1 -1
- package/dist/src/schemas/protocolContracts.cjs +193 -133
- package/dist/src/schemas/protocolContracts.cjs.map +1 -1
- package/dist/src/schemas/protocolContracts.d.mts +136 -32
- package/dist/src/schemas/protocolContracts.d.mts.map +1 -1
- package/dist/src/schemas/protocolContracts.mjs +186 -132
- package/dist/src/schemas/protocolContracts.mjs.map +1 -1
- package/dist/src/schemas/protocolHubContract.cjs +109 -27
- package/dist/src/schemas/protocolHubContract.cjs.map +1 -1
- package/dist/src/schemas/protocolHubContract.d.mts +292 -134
- package/dist/src/schemas/protocolHubContract.d.mts.map +1 -1
- package/dist/src/schemas/protocolHubContract.mjs +103 -30
- package/dist/src/schemas/protocolHubContract.mjs.map +1 -1
- package/dist/src/schemas/protocolService.cjs +12 -0
- package/dist/src/schemas/protocolService.cjs.map +1 -0
- package/dist/src/schemas/protocolService.d.mts +22 -0
- package/dist/src/schemas/protocolService.d.mts.map +1 -0
- package/dist/src/schemas/protocolService.mjs +11 -0
- package/dist/src/schemas/protocolService.mjs.map +1 -0
- package/dist/src/schemas/protocolSessionContract.cjs +7 -11
- package/dist/src/schemas/protocolSessionContract.cjs.map +1 -1
- package/dist/src/schemas/protocolSessionContract.d.mts +303 -299
- package/dist/src/schemas/protocolSessionContract.d.mts.map +1 -1
- package/dist/src/schemas/protocolSessionContract.mjs +9 -13
- package/dist/src/schemas/protocolSessionContract.mjs.map +1 -1
- package/dist/src/schemas/protocolThreadContract.cjs +5 -6
- package/dist/src/schemas/protocolThreadContract.cjs.map +1 -1
- package/dist/src/schemas/protocolThreadContract.d.mts +12 -16
- package/dist/src/schemas/protocolThreadContract.d.mts.map +1 -1
- package/dist/src/schemas/protocolThreadContract.mjs +6 -7
- package/dist/src/schemas/protocolThreadContract.mjs.map +1 -1
- package/dist/src/schemas/remoteGateway.cjs +14 -0
- package/dist/src/schemas/remoteGateway.cjs.map +1 -0
- package/dist/src/schemas/remoteGateway.d.mts +19 -0
- package/dist/src/schemas/remoteGateway.d.mts.map +1 -0
- package/dist/src/schemas/remoteGateway.mjs +12 -0
- package/dist/src/schemas/remoteGateway.mjs.map +1 -0
- package/dist/src/schemas/remoteOrigin.cjs +9 -0
- package/dist/src/schemas/remoteOrigin.cjs.map +1 -0
- package/dist/src/schemas/remoteOrigin.d.mts +16 -0
- package/dist/src/schemas/remoteOrigin.d.mts.map +1 -0
- package/dist/src/schemas/remoteOrigin.mjs +8 -0
- package/dist/src/schemas/remoteOrigin.mjs.map +1 -0
- package/dist/src/schemas/sandboxIdentity.cjs +14 -0
- package/dist/src/schemas/sandboxIdentity.cjs.map +1 -0
- package/dist/src/schemas/sandboxIdentity.d.mts +23 -0
- package/dist/src/schemas/sandboxIdentity.d.mts.map +1 -0
- package/dist/src/schemas/sandboxIdentity.mjs +12 -0
- package/dist/src/schemas/sandboxIdentity.mjs.map +1 -0
- package/dist/src/schemas/serverBundle.cjs +13 -0
- package/dist/src/schemas/serverBundle.cjs.map +1 -0
- package/dist/src/schemas/serverBundle.d.mts +29 -1
- package/dist/src/schemas/serverBundle.d.mts.map +1 -1
- package/dist/src/schemas/serverBundle.mjs +13 -0
- package/dist/src/schemas/serverBundle.mjs.map +1 -0
- package/dist/src/schemas/serverPlugin.cjs +5 -3
- package/dist/src/schemas/serverPlugin.cjs.map +1 -1
- package/dist/src/schemas/serverPlugin.d.mts +2 -2
- package/dist/src/schemas/serverPlugin.d.mts.map +1 -1
- package/dist/src/schemas/serverPlugin.mjs +5 -3
- package/dist/src/schemas/serverPlugin.mjs.map +1 -1
- package/dist/src/schemas/serverScope.cjs +21 -3
- package/dist/src/schemas/serverScope.cjs.map +1 -1
- package/dist/src/schemas/serverScope.d.mts +17 -1
- package/dist/src/schemas/serverScope.d.mts.map +1 -1
- package/dist/src/schemas/serverScope.mjs +21 -4
- package/dist/src/schemas/serverScope.mjs.map +1 -1
- package/dist/src/schemas/sessionApiContracts.cjs +17 -11
- package/dist/src/schemas/sessionApiContracts.cjs.map +1 -1
- package/dist/src/schemas/sessionApiContracts.mjs +18 -11
- package/dist/src/schemas/sessionApiContracts.mjs.map +1 -1
- package/dist/src/schemas/sessionLifecycle.cjs +12 -0
- package/dist/src/schemas/sessionLifecycle.cjs.map +1 -0
- package/dist/src/schemas/sessionLifecycle.d.mts +33 -0
- package/dist/src/schemas/sessionLifecycle.d.mts.map +1 -0
- package/dist/src/schemas/sessionLifecycle.mjs +11 -0
- package/dist/src/schemas/sessionLifecycle.mjs.map +1 -0
- package/dist/src/schemas/sessionProtocol.cjs +13 -0
- package/dist/src/schemas/sessionProtocol.cjs.map +1 -1
- package/dist/src/schemas/sessionProtocol.d.mts +57 -15
- package/dist/src/schemas/sessionProtocol.d.mts.map +1 -1
- package/dist/src/schemas/sessionProtocol.mjs +12 -1
- package/dist/src/schemas/sessionProtocol.mjs.map +1 -1
- package/dist/src/schemas/sharedModels.cjs +9 -0
- package/dist/src/schemas/sharedModels.cjs.map +1 -0
- package/dist/src/schemas/sharedModels.d.mts +33 -0
- package/dist/src/schemas/sharedModels.d.mts.map +1 -0
- package/dist/src/schemas/sharedModels.mjs +8 -0
- package/dist/src/schemas/sharedModels.mjs.map +1 -0
- package/dist/src/schemas/skills.cjs +1 -1
- package/dist/src/schemas/skills.cjs.map +1 -1
- package/dist/src/schemas/skills.d.mts +1 -1
- package/dist/src/schemas/skills.mjs +1 -1
- package/dist/src/schemas/skills.mjs.map +1 -1
- package/dist/src/schemas/space.cjs +33 -0
- package/dist/src/schemas/space.cjs.map +1 -0
- package/dist/src/schemas/space.d.mts +90 -0
- package/dist/src/schemas/space.d.mts.map +1 -0
- package/dist/src/schemas/space.mjs +29 -0
- package/dist/src/schemas/space.mjs.map +1 -0
- package/dist/src/schemas/toolSurface.cjs.map +1 -1
- package/dist/src/schemas/toolSurface.d.mts +2 -2
- package/dist/src/schemas/toolSurface.d.mts.map +1 -1
- package/dist/src/schemas/toolSurface.mjs.map +1 -1
- package/dist/src/schemas/userFeedback.cjs +22 -0
- package/dist/src/schemas/userFeedback.cjs.map +1 -0
- package/dist/src/schemas/userFeedback.d.mts +30 -0
- package/dist/src/schemas/userFeedback.d.mts.map +1 -0
- package/dist/src/schemas/userFeedback.mjs +18 -0
- package/dist/src/schemas/userFeedback.mjs.map +1 -0
- package/dist/src/schemas/voiceReloadHandoff.cjs +3 -3
- package/dist/src/schemas/voiceReloadHandoff.cjs.map +1 -1
- package/dist/src/schemas/voiceReloadHandoff.d.mts +5 -5
- package/dist/src/schemas/voiceReloadHandoff.d.mts.map +1 -1
- package/dist/src/schemas/voiceReloadHandoff.mjs +3 -3
- package/dist/src/schemas/voiceReloadHandoff.mjs.map +1 -1
- package/dist/src/schemas/workflow.cjs +217 -0
- package/dist/src/schemas/workflow.cjs.map +1 -0
- package/dist/src/schemas/workflow.d.mts +593 -0
- package/dist/src/schemas/workflow.d.mts.map +1 -0
- package/dist/src/schemas/workflow.mjs +188 -0
- package/dist/src/schemas/workflow.mjs.map +1 -0
- package/dist/src/schemas/workspaceRegistry.cjs +13 -0
- package/dist/src/schemas/workspaceRegistry.cjs.map +1 -0
- package/dist/src/schemas/workspaceRegistry.d.mts +45 -0
- package/dist/src/schemas/workspaceRegistry.d.mts.map +1 -0
- package/dist/src/schemas/workspaceRegistry.mjs +11 -0
- package/dist/src/schemas/workspaceRegistry.mjs.map +1 -0
- package/dist/src/schemas/workspaceSandboxes.cjs +14 -0
- package/dist/src/schemas/workspaceSandboxes.cjs.map +1 -0
- package/dist/src/schemas/workspaceSandboxes.d.mts +85 -0
- package/dist/src/schemas/workspaceSandboxes.d.mts.map +1 -0
- package/dist/src/schemas/workspaceSandboxes.mjs +12 -0
- package/dist/src/schemas/workspaceSandboxes.mjs.map +1 -0
- package/dist/src/server/conversationEvents.cjs +345 -0
- package/dist/src/server/conversationEvents.cjs.map +1 -0
- package/dist/src/server/conversationEvents.mjs +345 -0
- package/dist/src/server/conversationEvents.mjs.map +1 -0
- package/dist/src/server/directHarnessRuntime.cjs +1326 -549
- package/dist/src/server/directHarnessRuntime.cjs.map +1 -1
- package/dist/src/server/directHarnessRuntime.d.mts +1 -1
- package/dist/src/server/directHarnessRuntime.d.mts.map +1 -1
- package/dist/src/server/directHarnessRuntime.mjs +1308 -532
- package/dist/src/server/directHarnessRuntime.mjs.map +1 -1
- package/dist/src/server/largeFrameLink.cjs +22 -37
- package/dist/src/server/largeFrameLink.cjs.map +1 -1
- package/dist/src/server/largeFrameLink.mjs +22 -37
- package/dist/src/server/largeFrameLink.mjs.map +1 -1
- package/dist/src/server/mcpBundleLoader.cjs +2 -1
- package/dist/src/server/mcpBundleLoader.cjs.map +1 -1
- package/dist/src/server/mcpBundleLoader.d.mts +1 -1
- package/dist/src/server/mcpBundleLoader.d.mts.map +1 -1
- package/dist/src/server/mcpBundleLoader.mjs +2 -1
- package/dist/src/server/mcpBundleLoader.mjs.map +1 -1
- package/dist/src/server/providerRoutes.cjs +74 -0
- package/dist/src/server/providerRoutes.cjs.map +1 -0
- package/dist/src/server/providerRoutes.d.mts +20 -0
- package/dist/src/server/providerRoutes.d.mts.map +1 -0
- package/dist/src/server/providerRoutes.mjs +74 -0
- package/dist/src/server/providerRoutes.mjs.map +1 -0
- package/dist/src/server/providerRuntime.cjs +41 -0
- package/dist/src/server/providerRuntime.cjs.map +1 -0
- package/dist/src/server/providerRuntime.d.mts +12 -0
- package/dist/src/server/providerRuntime.d.mts.map +1 -0
- package/dist/src/server/providerRuntime.mjs +39 -0
- package/dist/src/server/providerRuntime.mjs.map +1 -0
- package/dist/src/server/serverPackages.cjs +29 -7
- package/dist/src/server/serverPackages.cjs.map +1 -1
- package/dist/src/server/serverPackages.d.mts +9 -3
- package/dist/src/server/serverPackages.d.mts.map +1 -1
- package/dist/src/server/serverPackages.mjs +29 -7
- package/dist/src/server/serverPackages.mjs.map +1 -1
- package/dist/src/server/serverScope.cjs +434 -34
- package/dist/src/server/serverScope.cjs.map +1 -1
- package/dist/src/server/serverScope.d.mts +72 -8
- package/dist/src/server/serverScope.d.mts.map +1 -1
- package/dist/src/server/serverScope.mjs +435 -35
- package/dist/src/server/serverScope.mjs.map +1 -1
- package/dist/src/server/threadJournals.cjs.map +1 -1
- package/dist/src/server/threadJournals.mjs.map +1 -1
- package/dist/src/services/approvalGate/index.cjs +179 -0
- package/dist/src/services/approvalGate/index.cjs.map +1 -0
- package/dist/src/services/approvalGate/index.d.mts +30 -0
- package/dist/src/services/approvalGate/index.d.mts.map +1 -0
- package/dist/src/services/approvalGate/index.mjs +174 -0
- package/dist/src/services/approvalGate/index.mjs.map +1 -0
- package/dist/src/services/approvalGate/type.d.mts +36 -0
- package/dist/src/services/approvalGate/type.d.mts.map +1 -0
- package/dist/src/services/bundlePublication/index.cjs +103 -39
- package/dist/src/services/bundlePublication/index.cjs.map +1 -1
- package/dist/src/services/bundlePublication/index.d.mts +11 -0
- package/dist/src/services/bundlePublication/index.d.mts.map +1 -0
- package/dist/src/services/bundlePublication/index.mjs +101 -39
- package/dist/src/services/bundlePublication/index.mjs.map +1 -1
- package/dist/src/services/chatgptImages/index.cjs +56 -11
- package/dist/src/services/chatgptImages/index.cjs.map +1 -1
- package/dist/src/services/chatgptImages/index.mjs +56 -11
- package/dist/src/services/chatgptImages/index.mjs.map +1 -1
- package/dist/src/services/chatgptLogin/index.cjs +2 -2
- package/dist/src/services/chatgptLogin/index.cjs.map +1 -1
- package/dist/src/services/chordAdapter/index.cjs +456 -0
- package/dist/src/services/chordAdapter/index.cjs.map +1 -0
- package/dist/src/services/chordAdapter/index.d.mts +13 -0
- package/dist/src/services/chordAdapter/index.d.mts.map +1 -0
- package/dist/src/services/chordAdapter/index.mjs +453 -0
- package/dist/src/services/chordAdapter/index.mjs.map +1 -0
- package/dist/src/services/chordAdapter/type.d.mts +24 -0
- package/dist/src/services/chordAdapter/type.d.mts.map +1 -0
- package/dist/src/services/clientDevices/index.cjs +75 -0
- package/dist/src/services/clientDevices/index.cjs.map +1 -0
- package/dist/src/services/clientDevices/index.d.mts +7 -0
- package/dist/src/services/clientDevices/index.d.mts.map +1 -0
- package/dist/src/services/clientDevices/index.mjs +74 -0
- package/dist/src/services/clientDevices/index.mjs.map +1 -0
- package/dist/src/services/clientMetadata/_lib/codec.cjs +96 -0
- package/dist/src/services/clientMetadata/_lib/codec.cjs.map +1 -0
- package/dist/src/services/clientMetadata/_lib/codec.d.mts +16 -0
- package/dist/src/services/clientMetadata/_lib/codec.d.mts.map +1 -0
- package/dist/src/services/clientMetadata/_lib/codec.mjs +89 -0
- package/dist/src/services/clientMetadata/_lib/codec.mjs.map +1 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.cjs +63 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.cjs.map +1 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.d.mts +10 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.d.mts.map +1 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.mjs +62 -0
- package/dist/src/services/clientMetadata/_lib/deviceLabel.mjs.map +1 -0
- package/dist/src/services/contextUsage/index.cjs +0 -9
- package/dist/src/services/contextUsage/index.cjs.map +1 -1
- package/dist/src/services/contextUsage/index.mjs +1 -9
- package/dist/src/services/contextUsage/index.mjs.map +1 -1
- package/dist/src/services/durableNavigation/docs.cjs +1 -0
- package/dist/src/services/durableNavigation/docs.cjs.map +1 -1
- package/dist/src/services/durableNavigation/docs.mjs +1 -0
- package/dist/src/services/durableNavigation/docs.mjs.map +1 -1
- package/dist/src/services/durableNavigation/index.cjs.map +1 -1
- package/dist/src/services/durableNavigation/index.mjs.map +1 -1
- package/dist/src/services/durableQueue/docs.cjs +1 -0
- package/dist/src/services/durableQueue/docs.cjs.map +1 -1
- package/dist/src/services/durableQueue/docs.mjs +1 -0
- package/dist/src/services/durableQueue/docs.mjs.map +1 -1
- package/dist/src/services/durableQueue/index.cjs +157 -69
- package/dist/src/services/durableQueue/index.cjs.map +1 -1
- package/dist/src/services/durableQueue/index.mjs +156 -70
- package/dist/src/services/durableQueue/index.mjs.map +1 -1
- package/dist/src/services/durableRequestReceipts/docs.cjs +1 -0
- package/dist/src/services/durableRequestReceipts/docs.cjs.map +1 -1
- package/dist/src/services/durableRequestReceipts/docs.mjs +1 -0
- package/dist/src/services/durableRequestReceipts/docs.mjs.map +1 -1
- package/dist/src/services/durableResumeSnapshots/docs.cjs +49 -0
- package/dist/src/services/durableResumeSnapshots/docs.cjs.map +1 -0
- package/dist/src/services/durableResumeSnapshots/docs.mjs +48 -0
- package/dist/src/services/durableResumeSnapshots/docs.mjs.map +1 -0
- package/dist/src/services/durableResumeSnapshots/index.cjs +392 -0
- package/dist/src/services/durableResumeSnapshots/index.cjs.map +1 -0
- package/dist/src/services/durableResumeSnapshots/index.mjs +392 -0
- package/dist/src/services/durableResumeSnapshots/index.mjs.map +1 -0
- package/dist/src/services/durableResumeSnapshots/type.d.mts +27 -0
- package/dist/src/services/durableResumeSnapshots/type.d.mts.map +1 -0
- package/dist/src/services/durableSession/docs.cjs +13 -1
- package/dist/src/services/durableSession/docs.cjs.map +1 -1
- package/dist/src/services/durableSession/docs.d.mts +9 -1
- package/dist/src/services/durableSession/docs.d.mts.map +1 -1
- package/dist/src/services/durableSession/docs.mjs +13 -1
- package/dist/src/services/durableSession/docs.mjs.map +1 -1
- package/dist/src/services/durableSession/index.cjs.map +1 -1
- package/dist/src/services/durableSession/index.d.mts +1 -1
- package/dist/src/services/durableSession/index.mjs.map +1 -1
- package/dist/src/services/durableSubagents/docs.cjs +1 -0
- package/dist/src/services/durableSubagents/docs.cjs.map +1 -1
- package/dist/src/services/durableSubagents/docs.mjs +1 -0
- package/dist/src/services/durableSubagents/docs.mjs.map +1 -1
- package/dist/src/services/durableSubagents/extension.cjs.map +1 -1
- package/dist/src/services/durableSubagents/index.cjs +29 -3
- package/dist/src/services/durableSubagents/index.cjs.map +1 -1
- package/dist/src/services/durableSubagents/index.mjs +29 -4
- package/dist/src/services/durableSubagents/index.mjs.map +1 -1
- package/dist/src/services/durableSubagents/tasks.cjs.map +1 -1
- package/dist/src/services/edgeModelRuntime/index.cjs +377 -0
- package/dist/src/services/edgeModelRuntime/index.cjs.map +1 -0
- package/dist/src/services/edgeModelRuntime/index.d.mts +24 -0
- package/dist/src/services/edgeModelRuntime/index.d.mts.map +1 -0
- package/dist/src/services/edgeModelRuntime/index.mjs +374 -0
- package/dist/src/services/edgeModelRuntime/index.mjs.map +1 -0
- package/dist/src/services/edgeModelRuntime/type.d.mts +39 -0
- package/dist/src/services/edgeModelRuntime/type.d.mts.map +1 -0
- package/dist/src/services/editPresence/index.cjs +53 -0
- package/dist/src/services/editPresence/index.cjs.map +1 -0
- package/dist/src/services/editPresence/index.d.mts +6 -0
- package/dist/src/services/editPresence/index.d.mts.map +1 -0
- package/dist/src/services/editPresence/index.mjs +53 -0
- package/dist/src/services/editPresence/index.mjs.map +1 -0
- package/dist/src/services/fileAccess/accessibleFile.cjs +63 -0
- package/dist/src/services/fileAccess/accessibleFile.cjs.map +1 -0
- package/dist/src/services/fileAccess/accessibleFile.d.mts +1 -0
- package/dist/src/services/fileAccess/accessibleFile.mjs +60 -0
- package/dist/src/services/fileAccess/accessibleFile.mjs.map +1 -0
- package/dist/src/services/fileAccess/core.cjs +87 -0
- package/dist/src/services/fileAccess/core.cjs.map +1 -0
- package/dist/src/services/fileAccess/core.mjs +78 -0
- package/dist/src/services/fileAccess/core.mjs.map +1 -0
- package/dist/src/services/fileAccess/index.cjs +34 -0
- package/dist/src/services/fileAccess/index.cjs.map +1 -0
- package/dist/src/services/fileAccess/index.d.mts +23 -0
- package/dist/src/services/fileAccess/index.d.mts.map +1 -0
- package/dist/src/services/fileAccess/index.mjs +29 -0
- package/dist/src/services/fileAccess/index.mjs.map +1 -0
- package/dist/src/services/fileAccess/type.d.mts +1 -0
- package/dist/src/services/grantLedger/index.cjs +56 -0
- package/dist/src/services/grantLedger/index.cjs.map +1 -0
- package/dist/src/services/grantLedger/index.mjs +55 -0
- package/dist/src/services/grantLedger/index.mjs.map +1 -0
- package/dist/src/services/guardedFile/index.cjs +36 -0
- package/dist/src/services/guardedFile/index.cjs.map +1 -0
- package/dist/src/services/guardedFile/index.d.mts +9 -0
- package/dist/src/services/guardedFile/index.d.mts.map +1 -0
- package/dist/src/services/guardedFile/index.mjs +33 -0
- package/dist/src/services/guardedFile/index.mjs.map +1 -0
- package/dist/src/services/headlessClient/index.cjs +85 -3
- package/dist/src/services/headlessClient/index.cjs.map +1 -1
- package/dist/src/services/headlessClient/index.mjs +86 -4
- package/dist/src/services/headlessClient/index.mjs.map +1 -1
- package/dist/src/services/hostServices/index.cjs +157 -0
- package/dist/src/services/hostServices/index.cjs.map +1 -0
- package/dist/src/services/hostServices/index.d.mts +33 -0
- package/dist/src/services/hostServices/index.d.mts.map +1 -0
- package/dist/src/services/hostServices/index.mjs +157 -0
- package/dist/src/services/hostServices/index.mjs.map +1 -0
- package/dist/src/services/inputTemplate/index.cjs +120 -0
- package/dist/src/services/inputTemplate/index.cjs.map +1 -0
- package/dist/src/services/inputTemplate/index.d.mts +10 -0
- package/dist/src/services/inputTemplate/index.d.mts.map +1 -0
- package/dist/src/services/inputTemplate/index.mjs +118 -0
- package/dist/src/services/inputTemplate/index.mjs.map +1 -0
- package/dist/src/services/inputTemplate/type.d.mts +17 -0
- package/dist/src/services/inputTemplate/type.d.mts.map +1 -0
- package/dist/src/services/json/core.cjs.map +1 -1
- package/dist/src/services/json/core.d.mts +1 -1
- package/dist/src/services/json/core.mjs.map +1 -1
- package/dist/src/services/json/sync.cjs +2 -2
- package/dist/src/services/json/sync.cjs.map +1 -1
- package/dist/src/services/json/sync.d.mts.map +1 -1
- package/dist/src/services/json/sync.mjs +1 -1
- package/dist/src/services/json/sync.mjs.map +1 -1
- package/dist/src/services/kernel/index.cjs.map +1 -1
- package/dist/src/services/kernel/index.d.mts +1 -1
- package/dist/src/services/kernel/index.mjs.map +1 -1
- package/dist/src/services/loginFlow/index.cjs +7 -1
- package/dist/src/services/loginFlow/index.cjs.map +1 -1
- package/dist/src/services/loginFlow/index.mjs +7 -1
- package/dist/src/services/loginFlow/index.mjs.map +1 -1
- package/dist/src/services/modelDispatch/index.cjs +200 -0
- package/dist/src/services/modelDispatch/index.cjs.map +1 -0
- package/dist/src/services/modelDispatch/index.mjs +197 -0
- package/dist/src/services/modelDispatch/index.mjs.map +1 -0
- package/dist/src/services/modelFallback/index.cjs +88 -0
- package/dist/src/services/modelFallback/index.cjs.map +1 -0
- package/dist/src/services/modelFallback/index.d.mts +16 -0
- package/dist/src/services/modelFallback/index.d.mts.map +1 -0
- package/dist/src/services/modelFallback/index.mjs +86 -0
- package/dist/src/services/modelFallback/index.mjs.map +1 -0
- package/dist/src/services/modelFallback/type.d.mts +16 -0
- package/dist/src/services/modelFallback/type.d.mts.map +1 -0
- package/dist/src/services/modelGatewayContainer/index.cjs +394 -0
- package/dist/src/services/modelGatewayContainer/index.cjs.map +1 -0
- package/dist/src/services/modelGatewayContainer/index.d.mts +16 -0
- package/dist/src/services/modelGatewayContainer/index.d.mts.map +1 -0
- package/dist/src/services/modelGatewayContainer/index.mjs +393 -0
- package/dist/src/services/modelGatewayContainer/index.mjs.map +1 -0
- package/dist/src/services/modelGatewayContainer/type.d.mts +28 -0
- package/dist/src/services/modelGatewayContainer/type.d.mts.map +1 -0
- package/dist/src/services/modelGatewayExecutor/index.cjs +160 -0
- package/dist/src/services/modelGatewayExecutor/index.cjs.map +1 -0
- package/dist/src/services/modelGatewayExecutor/index.d.mts +18 -0
- package/dist/src/services/modelGatewayExecutor/index.d.mts.map +1 -0
- package/dist/src/services/modelGatewayExecutor/index.mjs +160 -0
- package/dist/src/services/modelGatewayExecutor/index.mjs.map +1 -0
- package/dist/src/services/modelGatewayExecutor/type.d.mts +36 -0
- package/dist/src/services/modelGatewayExecutor/type.d.mts.map +1 -0
- package/dist/src/services/modelGatewayHost/index.cjs +292 -0
- package/dist/src/services/modelGatewayHost/index.cjs.map +1 -0
- package/dist/src/services/modelGatewayHost/index.d.mts +13 -0
- package/dist/src/services/modelGatewayHost/index.d.mts.map +1 -0
- package/dist/src/services/modelGatewayHost/index.mjs +292 -0
- package/dist/src/services/modelGatewayHost/index.mjs.map +1 -0
- package/dist/src/services/modelGatewayHost/type.d.mts +61 -0
- package/dist/src/services/modelGatewayHost/type.d.mts.map +1 -0
- package/dist/src/services/modelGatewayWire/index.cjs +170 -0
- package/dist/src/services/modelGatewayWire/index.cjs.map +1 -0
- package/dist/src/services/modelGatewayWire/index.d.mts +30 -0
- package/dist/src/services/modelGatewayWire/index.d.mts.map +1 -0
- package/dist/src/services/modelGatewayWire/index.mjs +163 -0
- package/dist/src/services/modelGatewayWire/index.mjs.map +1 -0
- package/dist/src/services/nativeChildTools/index.cjs +307 -9
- package/dist/src/services/nativeChildTools/index.cjs.map +1 -1
- package/dist/src/services/nativeChildTools/index.d.mts +11 -0
- package/dist/src/services/nativeChildTools/index.d.mts.map +1 -0
- package/dist/src/services/nativeChildTools/index.mjs +298 -3
- package/dist/src/services/nativeChildTools/index.mjs.map +1 -1
- package/dist/src/services/nodeHost/index.cjs +4 -2
- package/dist/src/services/nodeHost/index.cjs.map +1 -1
- package/dist/src/services/nodeHost/index.d.mts +2 -0
- package/dist/src/services/nodeHost/index.d.mts.map +1 -1
- package/dist/src/services/nodeHost/index.mjs +3 -1
- package/dist/src/services/nodeHost/index.mjs.map +1 -1
- package/dist/src/services/nodeModelDependencies/index.cjs +26 -29
- package/dist/src/services/nodeModelDependencies/index.cjs.map +1 -1
- package/dist/src/services/nodeModelDependencies/index.mjs +18 -20
- package/dist/src/services/nodeModelDependencies/index.mjs.map +1 -1
- package/dist/src/services/openSessionRegistry/index.cjs +1 -0
- package/dist/src/services/openSessionRegistry/index.cjs.map +1 -1
- package/dist/src/services/openSessionRegistry/index.d.mts +1 -1
- package/dist/src/services/openSessionRegistry/index.mjs +1 -0
- package/dist/src/services/openSessionRegistry/index.mjs.map +1 -1
- package/dist/src/services/openSessionRegistry/openSessionRecords.cjs +44 -4
- package/dist/src/services/openSessionRegistry/openSessionRecords.cjs.map +1 -1
- package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts +26 -0
- package/dist/src/services/openSessionRegistry/openSessionRecords.d.mts.map +1 -1
- package/dist/src/services/openSessionRegistry/openSessionRecords.mjs +44 -4
- package/dist/src/services/openSessionRegistry/openSessionRecords.mjs.map +1 -1
- package/dist/src/services/openSessionRegistry/sync.cjs +9 -4
- package/dist/src/services/openSessionRegistry/sync.cjs.map +1 -1
- package/dist/src/services/openSessionRegistry/sync.d.mts.map +1 -1
- package/dist/src/services/openSessionRegistry/sync.mjs +8 -3
- package/dist/src/services/openSessionRegistry/sync.mjs.map +1 -1
- package/dist/src/services/operationDispatch/index.cjs +263 -0
- package/dist/src/services/operationDispatch/index.cjs.map +1 -0
- package/dist/src/services/operationDispatch/index.mjs +263 -0
- package/dist/src/services/operationDispatch/index.mjs.map +1 -0
- package/dist/src/services/packageApiHarness/index.cjs +2 -1
- package/dist/src/services/packageApiHarness/index.cjs.map +1 -1
- package/dist/src/services/packageApiHarness/index.d.mts +2 -1
- package/dist/src/services/packageApiHarness/index.d.mts.map +1 -1
- package/dist/src/services/packageApiHarness/index.mjs +2 -1
- package/dist/src/services/packageApiHarness/index.mjs.map +1 -1
- package/dist/src/services/packageContentRevision/index.cjs +173 -0
- package/dist/src/services/packageContentRevision/index.cjs.map +1 -0
- package/dist/src/services/packageContentRevision/index.d.mts +39 -0
- package/dist/src/services/packageContentRevision/index.d.mts.map +1 -0
- package/dist/src/services/packageContentRevision/index.mjs +168 -0
- package/dist/src/services/packageContentRevision/index.mjs.map +1 -0
- package/dist/src/services/packageResource/index.cjs +12 -8
- package/dist/src/services/packageResource/index.cjs.map +1 -1
- package/dist/src/services/packageResource/index.d.mts.map +1 -1
- package/dist/src/services/packageResource/index.mjs +12 -8
- package/dist/src/services/packageResource/index.mjs.map +1 -1
- package/dist/src/services/pairingPage/index.cjs +85 -24
- package/dist/src/services/pairingPage/index.cjs.map +1 -1
- package/dist/src/services/pairingPage/index.d.mts +23 -0
- package/dist/src/services/pairingPage/index.d.mts.map +1 -0
- package/dist/src/services/pairingPage/index.mjs +86 -25
- package/dist/src/services/pairingPage/index.mjs.map +1 -1
- package/dist/src/services/piArgs/index.cjs +2 -2
- package/dist/src/services/piArgs/index.cjs.map +1 -1
- package/dist/src/services/piExtensionHost/index.cjs +344 -56
- package/dist/src/services/piExtensionHost/index.cjs.map +1 -1
- package/dist/src/services/piExtensionHost/index.d.mts +3 -1
- package/dist/src/services/piExtensionHost/index.d.mts.map +1 -1
- package/dist/src/services/piExtensionHost/index.mjs +325 -37
- package/dist/src/services/piExtensionHost/index.mjs.map +1 -1
- package/dist/src/services/piMessages/index.cjs +16 -0
- package/dist/src/services/piMessages/index.cjs.map +1 -1
- package/dist/src/services/piMessages/index.d.mts +12 -0
- package/dist/src/services/piMessages/index.d.mts.map +1 -0
- package/dist/src/services/piMessages/index.mjs +16 -1
- package/dist/src/services/piMessages/index.mjs.map +1 -1
- package/dist/src/services/piSettings/core.cjs +18 -5
- package/dist/src/services/piSettings/core.cjs.map +1 -1
- package/dist/src/services/piSettings/core.d.mts +6 -1
- package/dist/src/services/piSettings/core.d.mts.map +1 -1
- package/dist/src/services/piSettings/core.mjs +18 -6
- package/dist/src/services/piSettings/core.mjs.map +1 -1
- package/dist/src/services/piSettings/sync.cjs +31 -2
- package/dist/src/services/piSettings/sync.cjs.map +1 -1
- package/dist/src/services/piSettings/sync.d.mts +3 -0
- package/dist/src/services/piSettings/sync.d.mts.map +1 -1
- package/dist/src/services/piSettings/sync.mjs +31 -3
- package/dist/src/services/piSettings/sync.mjs.map +1 -1
- package/dist/src/services/piSummary/index.cjs +2 -2
- package/dist/src/services/piSummary/index.cjs.map +1 -1
- package/dist/src/services/platformFiles/index.cjs +81 -0
- package/dist/src/services/platformFiles/index.cjs.map +1 -1
- package/dist/src/services/platformFiles/index.d.mts +12 -1
- package/dist/src/services/platformFiles/index.d.mts.map +1 -1
- package/dist/src/services/platformFiles/index.mjs +76 -1
- package/dist/src/services/platformFiles/index.mjs.map +1 -1
- package/dist/src/services/platformFiles/rootBoundReplace.cjs +110 -0
- package/dist/src/services/platformFiles/rootBoundReplace.cjs.map +1 -0
- package/dist/src/services/platformFiles/rootBoundReplace.d.mts +21 -0
- package/dist/src/services/platformFiles/rootBoundReplace.d.mts.map +1 -0
- package/dist/src/services/platformFiles/rootBoundReplace.mjs +106 -0
- package/dist/src/services/platformFiles/rootBoundReplace.mjs.map +1 -0
- package/dist/src/services/poPackage/core.cjs.map +1 -1
- package/dist/src/services/poPackage/core.d.mts +1 -1
- package/dist/src/services/poPackage/core.mjs.map +1 -1
- package/dist/src/services/poPackage/sync.cjs +2 -2
- package/dist/src/services/poPackage/sync.cjs.map +1 -1
- package/dist/src/services/poPackage/sync.d.mts.map +1 -1
- package/dist/src/services/poPackage/sync.mjs +1 -1
- package/dist/src/services/poPackage/sync.mjs.map +1 -1
- package/dist/src/services/poTelemetry/index.cjs +69 -0
- package/dist/src/services/poTelemetry/index.cjs.map +1 -0
- package/dist/src/services/poTelemetry/index.d.mts +7 -0
- package/dist/src/services/poTelemetry/index.d.mts.map +1 -0
- package/dist/src/services/poTelemetry/index.mjs +66 -0
- package/dist/src/services/poTelemetry/index.mjs.map +1 -0
- package/dist/src/services/portableConfig/index.cjs +136 -0
- package/dist/src/services/portableConfig/index.cjs.map +1 -0
- package/dist/src/services/portableConfig/index.d.mts +30 -0
- package/dist/src/services/portableConfig/index.d.mts.map +1 -0
- package/dist/src/services/portableConfig/index.mjs +130 -0
- package/dist/src/services/portableConfig/index.mjs.map +1 -0
- package/dist/src/services/providerAuth/index.cjs +6 -10
- package/dist/src/services/providerAuth/index.cjs.map +1 -1
- package/dist/src/services/providerAuth/index.mjs +5 -7
- package/dist/src/services/providerAuth/index.mjs.map +1 -1
- package/dist/src/services/providerImages/fitter.cjs +48 -0
- package/dist/src/services/providerImages/fitter.cjs.map +1 -0
- package/dist/src/services/providerImages/fitter.mjs +47 -0
- package/dist/src/services/providerImages/fitter.mjs.map +1 -0
- package/dist/src/services/providerImages/index.cjs +21 -0
- package/dist/src/services/providerImages/index.cjs.map +1 -0
- package/dist/src/services/providerImages/index.d.mts +3 -0
- package/dist/src/services/providerImages/index.mjs +21 -0
- package/dist/src/services/providerImages/index.mjs.map +1 -0
- package/dist/src/services/runtimeEnvironment/index.cjs +228 -0
- package/dist/src/services/runtimeEnvironment/index.cjs.map +1 -0
- package/dist/src/services/runtimeEnvironment/index.d.mts +37 -0
- package/dist/src/services/runtimeEnvironment/index.d.mts.map +1 -0
- package/dist/src/services/runtimeEnvironment/index.mjs +219 -0
- package/dist/src/services/runtimeEnvironment/index.mjs.map +1 -0
- package/dist/src/services/runtimeIdentity/sync.cjs +2 -2
- package/dist/src/services/runtimeIdentity/sync.cjs.map +1 -1
- package/dist/src/services/runtimeIdentity/sync.d.mts.map +1 -1
- package/dist/src/services/runtimeIdentity/sync.mjs +1 -1
- package/dist/src/services/runtimeIdentity/sync.mjs.map +1 -1
- package/dist/src/services/scopeInput/index.cjs +49 -0
- package/dist/src/services/scopeInput/index.cjs.map +1 -0
- package/dist/src/services/scopeInput/index.mjs +47 -0
- package/dist/src/services/scopeInput/index.mjs.map +1 -0
- package/dist/src/services/serialRunner/index.cjs +3 -0
- package/dist/src/services/serialRunner/index.cjs.map +1 -1
- package/dist/src/services/serialRunner/index.d.mts +2 -0
- package/dist/src/services/serialRunner/index.d.mts.map +1 -1
- package/dist/src/services/serialRunner/index.mjs +3 -1
- package/dist/src/services/serialRunner/index.mjs.map +1 -1
- package/dist/src/services/serverHost/index.cjs +12 -2
- package/dist/src/services/serverHost/index.cjs.map +1 -1
- package/dist/src/services/serverHost/index.d.mts +3 -1
- package/dist/src/services/serverHost/index.d.mts.map +1 -1
- package/dist/src/services/serverHost/index.mjs +12 -2
- package/dist/src/services/serverHost/index.mjs.map +1 -1
- package/dist/src/services/sessionAccess/index.cjs +168 -0
- package/dist/src/services/sessionAccess/index.cjs.map +1 -0
- package/dist/src/services/sessionAccess/index.d.mts +11 -0
- package/dist/src/services/sessionAccess/index.d.mts.map +1 -0
- package/dist/src/services/sessionAccess/index.mjs +163 -0
- package/dist/src/services/sessionAccess/index.mjs.map +1 -0
- package/dist/src/services/sessionAccess/type.d.mts +32 -0
- package/dist/src/services/sessionAccess/type.d.mts.map +1 -0
- package/dist/src/services/sessionAttachments/index.cjs +13 -13
- package/dist/src/services/sessionAttachments/index.cjs.map +1 -1
- package/dist/src/services/sessionAttachments/index.d.mts +3 -1
- package/dist/src/services/sessionAttachments/index.d.mts.map +1 -1
- package/dist/src/services/sessionAttachments/index.mjs +12 -12
- package/dist/src/services/sessionAttachments/index.mjs.map +1 -1
- package/dist/src/services/sessionFiles/index.cjs +35 -13
- package/dist/src/services/sessionFiles/index.cjs.map +1 -1
- package/dist/src/services/sessionFiles/index.d.mts +10 -1
- package/dist/src/services/sessionFiles/index.d.mts.map +1 -1
- package/dist/src/services/sessionFiles/index.mjs +34 -14
- package/dist/src/services/sessionFiles/index.mjs.map +1 -1
- package/dist/src/services/sessionFiles/sessionDirectory.cjs +3 -3
- package/dist/src/services/sessionFiles/sessionDirectory.cjs.map +1 -1
- package/dist/src/services/sessionFiles/sessionDirectory.mjs +3 -3
- package/dist/src/services/sessionFiles/sessionDirectory.mjs.map +1 -1
- package/dist/src/services/sessionLifecycle/index.cjs +293 -0
- package/dist/src/services/sessionLifecycle/index.cjs.map +1 -0
- package/dist/src/services/sessionLifecycle/index.mjs +293 -0
- package/dist/src/services/sessionLifecycle/index.mjs.map +1 -0
- package/dist/src/services/sessionLifecycle/type.d.mts +32 -0
- package/dist/src/services/sessionLifecycle/type.d.mts.map +1 -0
- package/dist/src/services/sessionMcpRoutePaths/index.cjs +60 -0
- package/dist/src/services/sessionMcpRoutePaths/index.cjs.map +1 -0
- package/dist/src/services/sessionMcpRoutePaths/index.d.mts +31 -0
- package/dist/src/services/sessionMcpRoutePaths/index.d.mts.map +1 -0
- package/dist/src/services/sessionMcpRoutePaths/index.mjs +45 -0
- package/dist/src/services/sessionMcpRoutePaths/index.mjs.map +1 -0
- package/dist/src/services/sessionWorkspaceMove/index.cjs +81 -0
- package/dist/src/services/sessionWorkspaceMove/index.cjs.map +1 -0
- package/dist/src/services/sessionWorkspaceMove/index.d.mts +6 -0
- package/dist/src/services/sessionWorkspaceMove/index.d.mts.map +1 -0
- package/dist/src/services/sessionWorkspaceMove/index.mjs +81 -0
- package/dist/src/services/sessionWorkspaceMove/index.mjs.map +1 -0
- package/dist/src/services/sessionWorkspaceMove/type.d.mts +16 -0
- package/dist/src/services/sessionWorkspaceMove/type.d.mts.map +1 -0
- package/dist/src/services/skillPrompt/index.cjs +14 -4
- package/dist/src/services/skillPrompt/index.cjs.map +1 -1
- package/dist/src/services/skillPrompt/index.mjs +14 -5
- package/dist/src/services/skillPrompt/index.mjs.map +1 -1
- package/dist/src/services/skillRelations/index.cjs +113 -0
- package/dist/src/services/skillRelations/index.cjs.map +1 -0
- package/dist/src/services/skillRelations/index.d.mts +32 -0
- package/dist/src/services/skillRelations/index.d.mts.map +1 -0
- package/dist/src/services/skillRelations/index.mjs +111 -0
- package/dist/src/services/skillRelations/index.mjs.map +1 -0
- package/dist/src/services/sqliteSessionHistory/index.cjs +38 -10
- package/dist/src/services/sqliteSessionHistory/index.cjs.map +1 -1
- package/dist/src/services/sqliteSessionHistory/index.d.mts +13 -0
- package/dist/src/services/sqliteSessionHistory/index.d.mts.map +1 -1
- package/dist/src/services/sqliteSessionHistory/index.mjs +37 -10
- package/dist/src/services/sqliteSessionHistory/index.mjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.cjs +12 -12
- package/dist/src/services/sqliteTranscriptReader/index.cjs.map +1 -1
- package/dist/src/services/sqliteTranscriptReader/index.d.mts +2 -2
- package/dist/src/services/sqliteTranscriptReader/index.mjs +3 -3
- package/dist/src/services/sqliteTranscriptReader/index.mjs.map +1 -1
- package/dist/src/services/telemetry/index.cjs +591 -0
- package/dist/src/services/telemetry/index.cjs.map +1 -0
- package/dist/src/services/telemetry/index.d.mts +7 -0
- package/dist/src/services/telemetry/index.d.mts.map +1 -0
- package/dist/src/services/telemetry/index.mjs +587 -0
- package/dist/src/services/telemetry/index.mjs.map +1 -0
- package/dist/src/services/toolContinuation/index.cjs +84 -0
- package/dist/src/services/toolContinuation/index.cjs.map +1 -0
- package/dist/src/services/toolContinuation/index.mjs +83 -0
- package/dist/src/services/toolContinuation/index.mjs.map +1 -0
- 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 +169 -8
- package/dist/src/services/transcriptPages/index.cjs.map +1 -1
- package/dist/src/services/transcriptPages/index.mjs +165 -9
- package/dist/src/services/transcriptPages/index.mjs.map +1 -1
- package/dist/src/services/verifiedArchive/index.cjs +181 -0
- package/dist/src/services/verifiedArchive/index.cjs.map +1 -0
- package/dist/src/services/verifiedArchive/index.d.mts +38 -0
- package/dist/src/services/verifiedArchive/index.d.mts.map +1 -0
- package/dist/src/services/verifiedArchive/index.mjs +173 -0
- package/dist/src/services/verifiedArchive/index.mjs.map +1 -0
- package/dist/src/services/voiceReloadHandoff/index.cjs +5 -5
- package/dist/src/services/voiceReloadHandoff/index.cjs.map +1 -1
- package/dist/src/services/voiceReloadHandoff/index.d.mts +1 -1
- package/dist/src/services/voiceReloadHandoff/index.mjs +5 -5
- package/dist/src/services/voiceReloadHandoff/index.mjs.map +1 -1
- package/dist/src/services/workspaceLookup/index.cjs +34 -0
- package/dist/src/services/workspaceLookup/index.cjs.map +1 -0
- package/dist/src/services/workspaceLookup/index.d.mts +6 -0
- package/dist/src/services/workspaceLookup/index.d.mts.map +1 -0
- package/dist/src/services/workspaceLookup/index.mjs +34 -0
- package/dist/src/services/workspaceLookup/index.mjs.map +1 -0
- package/dist/src/services/workspaceRegistry/index.cjs +2 -0
- package/dist/src/services/workspaceRegistry/index.cjs.map +1 -1
- package/dist/src/services/workspaceRegistry/index.d.mts +3 -3
- package/dist/src/services/workspaceRegistry/index.mjs +4 -2
- package/dist/src/services/workspaceRegistry/index.mjs.map +1 -1
- package/dist/src/services/workspaceRegistry/sync.cjs +18 -6
- package/dist/src/services/workspaceRegistry/sync.cjs.map +1 -1
- package/dist/src/services/workspaceRegistry/sync.d.mts +4 -4
- package/dist/src/services/workspaceRegistry/sync.d.mts.map +1 -1
- package/dist/src/services/workspaceRegistry/sync.mjs +18 -6
- package/dist/src/services/workspaceRegistry/sync.mjs.map +1 -1
- package/dist/src/services/workspaceRegistry/workspaceRecords.cjs +60 -8
- package/dist/src/services/workspaceRegistry/workspaceRecords.cjs.map +1 -1
- package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts +20 -0
- package/dist/src/services/workspaceRegistry/workspaceRecords.d.mts.map +1 -1
- package/dist/src/services/workspaceRegistry/workspaceRecords.mjs +58 -9
- package/dist/src/services/workspaceRegistry/workspaceRecords.mjs.map +1 -1
- package/dist/src/services/workspaceSandboxes/index.cjs +33 -0
- package/dist/src/services/workspaceSandboxes/index.cjs.map +1 -0
- package/dist/src/services/workspaceSandboxes/index.d.mts +9 -0
- package/dist/src/services/workspaceSandboxes/index.d.mts.map +1 -0
- package/dist/src/services/workspaceSandboxes/index.mjs +33 -0
- package/dist/src/services/workspaceSandboxes/index.mjs.map +1 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs +65 -27
- package/dist/src/systems/child/adapters/headlessChildSessionService.cjs.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts +19 -0
- package/dist/src/systems/child/adapters/headlessChildSessionService.d.mts.map +1 -1
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs +65 -30
- package/dist/src/systems/child/adapters/headlessChildSessionService.mjs.map +1 -1
- package/dist/src/systems/child/adapters/remoteChildSessionService.cjs +328 -0
- package/dist/src/systems/child/adapters/remoteChildSessionService.cjs.map +1 -0
- package/dist/src/systems/child/adapters/remoteChildSessionService.d.mts +35 -0
- package/dist/src/systems/child/adapters/remoteChildSessionService.d.mts.map +1 -0
- package/dist/src/systems/child/adapters/remoteChildSessionService.mjs +325 -0
- package/dist/src/systems/child/adapters/remoteChildSessionService.mjs.map +1 -0
- package/dist/src/systems/child/services/childSession/index.cjs +60 -32
- package/dist/src/systems/child/services/childSession/index.cjs.map +1 -1
- package/dist/src/systems/child/services/childSession/index.d.mts +5 -0
- package/dist/src/systems/child/services/childSession/index.d.mts.map +1 -1
- package/dist/src/systems/child/services/childSession/index.mjs +60 -32
- package/dist/src/systems/child/services/childSession/index.mjs.map +1 -1
- package/dist/src/systems/child/types/childSession.cjs.map +1 -1
- package/dist/src/systems/child/types/childSession.d.mts +34 -18
- package/dist/src/systems/child/types/childSession.d.mts.map +1 -1
- package/dist/src/systems/child/types/childSession.mjs.map +1 -1
- package/dist/src/systems/child/types/childSessionInput.d.mts +17 -0
- package/dist/src/systems/child/types/childSessionInput.d.mts.map +1 -0
- package/dist/src/systems/child/types/remoteChildSession.d.mts +85 -0
- package/dist/src/systems/child/types/remoteChildSession.d.mts.map +1 -0
- package/dist/src/systems/main/adapters/headlessHost.cjs +614 -82
- package/dist/src/systems/main/adapters/headlessHost.cjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessHost.d.mts +60 -12
- package/dist/src/systems/main/adapters/headlessHost.d.mts.map +1 -1
- package/dist/src/systems/main/adapters/headlessHost.mjs +612 -81
- package/dist/src/systems/main/adapters/headlessHost.mjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs +866 -184
- package/dist/src/systems/main/adapters/headlessSessionHost.cjs.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts +23 -3
- package/dist/src/systems/main/adapters/headlessSessionHost.d.mts.map +1 -1
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs +845 -167
- package/dist/src/systems/main/adapters/headlessSessionHost.mjs.map +1 -1
- package/dist/src/systems/main/types/headlessHost.d.mts +14 -5
- package/dist/src/systems/main/types/headlessHost.d.mts.map +1 -1
- package/dist/src/testing/pi/testHost.cjs +1 -0
- package/dist/src/testing/pi/testHost.cjs.map +1 -1
- package/dist/src/testing/pi/testHost.mjs +1 -0
- package/dist/src/testing/pi/testHost.mjs.map +1 -1
- package/dist/src/types/kernel.d.mts +3 -3
- package/dist/src/types/remote.d.mts +53 -29
- package/dist/src/types/remote.d.mts.map +1 -1
- package/dist/src/types/server/agentSessionForward.d.mts +14 -0
- package/dist/src/types/server/agentSessionForward.d.mts.map +1 -0
- package/dist/src/types/server/auth.d.mts +104 -0
- package/dist/src/types/server/auth.d.mts.map +1 -0
- package/dist/src/types/server/directHarnessRuntime.d.mts +144 -19
- package/dist/src/types/server/directHarnessRuntime.d.mts.map +1 -1
- package/dist/src/types/server/sessionMcp.d.mts +34 -0
- package/dist/src/types/server/sessionMcp.d.mts.map +1 -0
- package/dist/src/types/telemetry.d.mts +64 -0
- package/dist/src/types/telemetry.d.mts.map +1 -0
- package/dist/src/web/hostSlots.cjs +199 -0
- package/dist/src/web/hostSlots.cjs.map +1 -0
- package/dist/src/web/hostSlots.d.mts +196 -0
- package/dist/src/web/hostSlots.d.mts.map +1 -0
- package/dist/src/web/hostSlots.mjs +195 -0
- package/dist/src/web/hostSlots.mjs.map +1 -0
- package/dist/src/web/models/globalStore.cjs +2 -2
- package/dist/src/web/models/globalStore.cjs.map +1 -1
- package/dist/src/web/models/globalStore.d.mts +2 -2
- package/dist/src/web/models/globalStore.d.mts.map +1 -1
- package/dist/src/web/models/globalStore.mjs +2 -2
- package/dist/src/web/models/globalStore.mjs.map +1 -1
- package/dist/src/web/models/sessionStore.cjs +1 -1
- package/dist/src/web/models/sessionStore.cjs.map +1 -1
- package/dist/src/web/models/sessionStore.mjs +1 -1
- package/dist/src/web/models/sessionStore.mjs.map +1 -1
- package/dist/src/web/schemas/onboarding.cjs +17 -0
- package/dist/src/web/schemas/onboarding.cjs.map +1 -0
- package/dist/src/web/schemas/onboarding.d.mts +6 -0
- package/dist/src/web/schemas/onboarding.d.mts.map +1 -0
- package/dist/src/web/schemas/onboarding.mjs +17 -0
- package/dist/src/web/schemas/onboarding.mjs.map +1 -0
- package/dist/src/web/schemas/template.cjs +20 -8
- package/dist/src/web/schemas/template.cjs.map +1 -1
- package/dist/src/web/schemas/template.d.mts +6 -2
- package/dist/src/web/schemas/template.d.mts.map +1 -1
- package/dist/src/web/schemas/template.mjs +20 -8
- package/dist/src/web/schemas/template.mjs.map +1 -1
- package/dist/src/web/services/apiClient/index.cjs +13 -2
- package/dist/src/web/services/apiClient/index.cjs.map +1 -1
- package/dist/src/web/services/apiClient/index.d.mts +3 -2
- package/dist/src/web/services/apiClient/index.d.mts.map +1 -1
- package/dist/src/web/services/apiClient/index.mjs +13 -2
- package/dist/src/web/services/apiClient/index.mjs.map +1 -1
- package/dist/src/web/services/apiPaths/index.cjs +1 -1
- 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 +1 -1
- package/dist/src/web/services/apiPaths/index.mjs.map +1 -1
- package/dist/src/web/services/apiRoutes/index.cjs +4 -4
- package/dist/src/web/services/apiRoutes/index.cjs.map +1 -1
- package/dist/src/web/services/apiRoutes/index.d.mts +2 -2
- package/dist/src/web/services/apiRoutes/index.mjs +4 -4
- package/dist/src/web/services/apiRoutes/index.mjs.map +1 -1
- package/dist/src/web/services/htmlInspect.cjs +277 -0
- package/dist/src/web/services/htmlInspect.cjs.map +1 -0
- package/dist/src/web/services/htmlInspect.d.mts +75 -0
- package/dist/src/web/services/htmlInspect.d.mts.map +1 -0
- package/dist/src/web/services/htmlInspect.mjs +272 -0
- package/dist/src/web/services/htmlInspect.mjs.map +1 -0
- package/dist/src/web/services/hubRevisions/index.cjs +60 -0
- package/dist/src/web/services/hubRevisions/index.cjs.map +1 -0
- package/dist/src/web/services/hubRevisions/index.d.mts +13 -0
- package/dist/src/web/services/hubRevisions/index.d.mts.map +1 -0
- package/dist/src/web/services/hubRevisions/index.mjs +57 -0
- package/dist/src/web/services/hubRevisions/index.mjs.map +1 -0
- package/dist/src/web/services/i18n/index.cjs +94 -0
- package/dist/src/web/services/i18n/index.cjs.map +1 -0
- package/dist/src/web/services/i18n/index.d.mts +18 -0
- package/dist/src/web/services/i18n/index.d.mts.map +1 -0
- package/dist/src/web/services/i18n/index.mjs +87 -0
- package/dist/src/web/services/i18n/index.mjs.map +1 -0
- package/dist/src/web/services/nativeByteCodec/index.cjs +28 -0
- package/dist/src/web/services/nativeByteCodec/index.cjs.map +1 -0
- package/dist/src/web/services/nativeByteCodec/index.d.mts +10 -0
- package/dist/src/web/services/nativeByteCodec/index.d.mts.map +1 -0
- package/dist/src/web/services/nativeByteCodec/index.mjs +26 -0
- package/dist/src/web/services/nativeByteCodec/index.mjs.map +1 -0
- package/dist/src/web/services/nativeByteCodec/type.d.mts +8 -0
- package/dist/src/web/services/nativeByteCodec/type.d.mts.map +1 -0
- package/dist/src/web/services/railSteps/index.cjs +39 -0
- package/dist/src/web/services/railSteps/index.cjs.map +1 -0
- package/dist/src/web/services/railSteps/index.d.mts +17 -0
- package/dist/src/web/services/railSteps/index.d.mts.map +1 -0
- package/dist/src/web/services/railSteps/index.mjs +39 -0
- package/dist/src/web/services/railSteps/index.mjs.map +1 -0
- package/dist/src/web/services/testing/settingsDirectory.cjs +164 -0
- package/dist/src/web/services/testing/settingsDirectory.cjs.map +1 -0
- package/dist/src/web/services/testing/settingsDirectory.d.mts +18 -0
- package/dist/src/web/services/testing/settingsDirectory.d.mts.map +1 -0
- package/dist/src/web/services/testing/settingsDirectory.mjs +164 -0
- package/dist/src/web/services/testing/settingsDirectory.mjs.map +1 -0
- package/dist/src/web/services/testing/templateRail.cjs +84 -6
- package/dist/src/web/services/testing/templateRail.cjs.map +1 -1
- package/dist/src/web/services/testing/templateRail.d.mts +8 -1
- package/dist/src/web/services/testing/templateRail.d.mts.map +1 -1
- package/dist/src/web/services/testing/templateRail.mjs +83 -7
- package/dist/src/web/services/testing/templateRail.mjs.map +1 -1
- package/dist/src/web/types/extensionFile.d.mts +11 -4
- package/dist/src/web/types/extensionFile.d.mts.map +1 -1
- package/dist/src/web/types/nativeTemplate.d.mts +170 -7
- package/dist/src/web/types/nativeTemplate.d.mts.map +1 -1
- package/dist/src/web/types/template.d.mts +133 -17
- package/dist/src/web/types/template.d.mts.map +1 -1
- package/dist/src/web/types/webPlugin.d.mts +535 -38
- package/dist/src/web/types/webPlugin.d.mts.map +1 -1
- package/dist/telemetry.cjs +7 -0
- package/dist/telemetry.d.mts +4 -0
- package/dist/telemetry.mjs +3 -0
- package/dist/transition.d.mts +2 -2
- package/dist/transitionClassifier.cjs +9 -9
- package/dist/transitionClassifier.cjs.map +1 -1
- package/dist/transitionClassifier.d.mts +1 -1
- package/dist/transitionClassifier.mjs +9 -9
- package/dist/transitionClassifier.mjs.map +1 -1
- package/dist/userFeedback.cjs +7 -0
- package/dist/userFeedback.d.mts +2 -0
- package/dist/userFeedback.mjs +1 -0
- package/dist/vendor/upm/_chunks/main.mjs +1 -1
- package/dist/verifiedArchive.cjs +11 -0
- package/dist/verifiedArchive.d.mts +2 -0
- package/dist/verifiedArchive.mjs +1 -0
- package/dist/web.cjs +89 -32
- package/dist/web.d.mts +22 -9
- package/dist/web.mjs +16 -5
- package/dist/webCompositions.cjs +87 -17
- package/dist/webCompositions.cjs.map +1 -1
- package/dist/webCompositions.d.mts +22 -6
- package/dist/webCompositions.d.mts.map +1 -1
- package/dist/webCompositions.mjs +87 -18
- package/dist/webCompositions.mjs.map +1 -1
- package/dist/webTesting.cjs +4 -0
- package/dist/webTesting.d.mts +3 -2
- package/dist/webTesting.mjs +3 -2
- package/dist/workflow.cjs +32 -0
- package/dist/workflow.d.mts +2 -0
- package/dist/workflow.mjs +1 -0
- package/dist/workspaceRegistry.cjs +7 -0
- package/dist/workspaceRegistry.d.mts +3 -0
- package/dist/workspaceRegistry.mjs +3 -0
- package/dist/workspaceSandboxes.cjs +7 -0
- package/dist/workspaceSandboxes.d.mts +3 -0
- package/dist/workspaceSandboxes.mjs +3 -0
- package/locales/vi.json +4 -0
- package/locales/zh-CN.json +4 -0
- package/package.json +164 -51
- package/dist/authorTools.cjs +0 -5
- package/dist/authorTools.d.mts +0 -2
- package/dist/authorTools.mjs +0 -1
- package/dist/cockpitContainer.cjs +0 -4
- package/dist/cockpitContainer.d.mts +0 -2
- package/dist/cockpitContainer.mjs +0 -1
- package/dist/remoteApi.cjs +0 -45
- package/dist/remoteApi.cjs.map +0 -1
- package/dist/remoteApi.d.mts +0 -7
- package/dist/remoteApi.d.mts.map +0 -1
- package/dist/remoteApi.mjs +0 -44
- package/dist/remoteApi.mjs.map +0 -1
- package/dist/remoteRuntime.cjs +0 -475
- package/dist/remoteRuntime.cjs.map +0 -1
- package/dist/remoteRuntime.d.mts +0 -37
- package/dist/remoteRuntime.d.mts.map +0 -1
- package/dist/remoteRuntime.mjs +0 -473
- package/dist/remoteRuntime.mjs.map +0 -1
- package/dist/sandboxHarness.cjs +0 -6
- package/dist/sandboxHarness.d.mts +0 -2
- package/dist/sandboxHarness.mjs +0 -1
- package/dist/sessionMcp.cjs +0 -6
- package/dist/sessionMcp.d.mts +0 -5
- package/dist/sessionMcp.mjs +0 -3
- package/dist/src/constants/authorTools.cjs +0 -10
- package/dist/src/constants/authorTools.cjs.map +0 -1
- package/dist/src/constants/authorTools.d.mts +0 -6
- package/dist/src/constants/authorTools.d.mts.map +0 -1
- package/dist/src/constants/authorTools.mjs +0 -8
- package/dist/src/constants/authorTools.mjs.map +0 -1
- package/dist/src/schemas/cockpitContainer.cjs +0 -31
- package/dist/src/schemas/cockpitContainer.cjs.map +0 -1
- package/dist/src/schemas/cockpitContainer.d.mts +0 -80
- package/dist/src/schemas/cockpitContainer.d.mts.map +0 -1
- package/dist/src/schemas/cockpitContainer.mjs +0 -30
- package/dist/src/schemas/cockpitContainer.mjs.map +0 -1
- package/dist/src/schemas/httpApiContracts.d.mts +0 -78
- package/dist/src/schemas/httpApiContracts.d.mts.map +0 -1
- package/dist/src/schemas/sandboxHarness.cjs +0 -29
- package/dist/src/schemas/sandboxHarness.cjs.map +0 -1
- package/dist/src/schemas/sandboxHarness.d.mts +0 -39
- package/dist/src/schemas/sandboxHarness.d.mts.map +0 -1
- package/dist/src/schemas/sandboxHarness.mjs +0 -26
- package/dist/src/schemas/sandboxHarness.mjs.map +0 -1
- package/dist/src/server/devProxyForward.cjs +0 -141
- package/dist/src/server/devProxyForward.cjs.map +0 -1
- package/dist/src/server/devProxyForward.mjs +0 -139
- package/dist/src/server/devProxyForward.mjs.map +0 -1
- package/dist/src/server/devProxyRoutes.cjs +0 -97
- package/dist/src/server/devProxyRoutes.cjs.map +0 -1
- package/dist/src/server/devProxyRoutes.mjs +0 -97
- package/dist/src/server/devProxyRoutes.mjs.map +0 -1
- package/dist/src/server/devProxySocket.cjs +0 -93
- package/dist/src/server/devProxySocket.cjs.map +0 -1
- package/dist/src/server/devProxySocket.d.mts +0 -25
- package/dist/src/server/devProxySocket.d.mts.map +0 -1
- package/dist/src/server/devProxySocket.mjs +0 -93
- package/dist/src/server/devProxySocket.mjs.map +0 -1
- package/dist/src/server/remoteRoutes.cjs +0 -463
- package/dist/src/server/remoteRoutes.cjs.map +0 -1
- package/dist/src/server/remoteRoutes.mjs +0 -463
- package/dist/src/server/remoteRoutes.mjs.map +0 -1
- package/dist/src/server/sessionMcpHandler.cjs +0 -585
- package/dist/src/server/sessionMcpHandler.cjs.map +0 -1
- package/dist/src/server/sessionMcpHandler.d.mts +0 -50
- package/dist/src/server/sessionMcpHandler.d.mts.map +0 -1
- package/dist/src/server/sessionMcpHandler.mjs +0 -582
- package/dist/src/server/sessionMcpHandler.mjs.map +0 -1
- package/dist/src/server/sessionMcpRoutes.cjs +0 -822
- package/dist/src/server/sessionMcpRoutes.cjs.map +0 -1
- package/dist/src/server/sessionMcpRoutes.mjs +0 -816
- package/dist/src/server/sessionMcpRoutes.mjs.map +0 -1
- package/dist/src/services/devProxyPolicy/index.cjs +0 -168
- package/dist/src/services/devProxyPolicy/index.cjs.map +0 -1
- package/dist/src/services/devProxyPolicy/index.mjs +0 -165
- package/dist/src/services/devProxyPolicy/index.mjs.map +0 -1
- package/dist/src/services/devProxyStore/devProxyRecords.cjs +0 -59
- package/dist/src/services/devProxyStore/devProxyRecords.cjs.map +0 -1
- package/dist/src/services/devProxyStore/devProxyRecords.mjs +0 -56
- package/dist/src/services/devProxyStore/devProxyRecords.mjs.map +0 -1
- package/dist/src/services/devProxyStore/index.cjs +0 -13
- package/dist/src/services/devProxyStore/index.cjs.map +0 -1
- package/dist/src/services/devProxyStore/index.mjs +0 -10
- package/dist/src/services/devProxyStore/index.mjs.map +0 -1
- package/dist/src/services/devProxyStore/sync.cjs +0 -66
- package/dist/src/services/devProxyStore/sync.cjs.map +0 -1
- package/dist/src/services/devProxyStore/sync.mjs +0 -63
- package/dist/src/services/devProxyStore/sync.mjs.map +0 -1
- package/dist/src/services/deviceAuth/index.cjs +0 -146
- package/dist/src/services/deviceAuth/index.cjs.map +0 -1
- package/dist/src/services/deviceAuth/index.d.mts +0 -9
- package/dist/src/services/deviceAuth/index.d.mts.map +0 -1
- package/dist/src/services/deviceAuth/index.mjs +0 -146
- package/dist/src/services/deviceAuth/index.mjs.map +0 -1
- package/dist/src/services/deviceSessions/index.cjs +0 -147
- package/dist/src/services/deviceSessions/index.cjs.map +0 -1
- package/dist/src/services/deviceSessions/index.d.mts +0 -18
- package/dist/src/services/deviceSessions/index.d.mts.map +0 -1
- package/dist/src/services/deviceSessions/index.mjs +0 -141
- package/dist/src/services/deviceSessions/index.mjs.map +0 -1
- package/dist/src/services/deviceTrust/index.cjs +0 -294
- package/dist/src/services/deviceTrust/index.cjs.map +0 -1
- package/dist/src/services/deviceTrust/index.mjs +0 -282
- package/dist/src/services/deviceTrust/index.mjs.map +0 -1
- package/dist/src/services/loopbackAddress/index.cjs +0 -58
- package/dist/src/services/loopbackAddress/index.cjs.map +0 -1
- package/dist/src/services/loopbackAddress/index.mjs +0 -56
- package/dist/src/services/loopbackAddress/index.mjs.map +0 -1
- package/dist/src/services/pairingFlow/index.cjs +0 -145
- package/dist/src/services/pairingFlow/index.cjs.map +0 -1
- package/dist/src/services/pairingFlow/index.d.mts +0 -44
- package/dist/src/services/pairingFlow/index.d.mts.map +0 -1
- package/dist/src/services/pairingFlow/index.mjs +0 -145
- package/dist/src/services/pairingFlow/index.mjs.map +0 -1
- package/dist/src/services/publicFileShares/index.cjs +0 -192
- package/dist/src/services/publicFileShares/index.cjs.map +0 -1
- package/dist/src/services/publicFileShares/index.d.mts +0 -16
- package/dist/src/services/publicFileShares/index.d.mts.map +0 -1
- package/dist/src/services/publicFileShares/index.mjs +0 -188
- package/dist/src/services/publicFileShares/index.mjs.map +0 -1
- package/dist/src/services/remoteAccess/index.cjs +0 -567
- package/dist/src/services/remoteAccess/index.cjs.map +0 -1
- package/dist/src/services/remoteAccess/index.d.mts +0 -122
- package/dist/src/services/remoteAccess/index.d.mts.map +0 -1
- package/dist/src/services/remoteAccess/index.mjs +0 -567
- package/dist/src/services/remoteAccess/index.mjs.map +0 -1
- package/dist/src/services/remoteAccessSettings/index.cjs +0 -151
- package/dist/src/services/remoteAccessSettings/index.cjs.map +0 -1
- package/dist/src/services/remoteAccessSettings/index.mjs +0 -149
- package/dist/src/services/remoteAccessSettings/index.mjs.map +0 -1
- package/dist/src/services/remoteAccessStore/index.cjs +0 -15
- package/dist/src/services/remoteAccessStore/index.cjs.map +0 -1
- package/dist/src/services/remoteAccessStore/index.d.mts +0 -2
- package/dist/src/services/remoteAccessStore/index.mjs +0 -12
- package/dist/src/services/remoteAccessStore/index.mjs.map +0 -1
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs +0 -98
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.cjs.map +0 -1
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs +0 -88
- package/dist/src/services/remoteAccessStore/remoteAccessRecords.mjs.map +0 -1
- package/dist/src/services/remoteAccessStore/sync.cjs +0 -111
- package/dist/src/services/remoteAccessStore/sync.cjs.map +0 -1
- package/dist/src/services/remoteAccessStore/sync.mjs +0 -108
- package/dist/src/services/remoteAccessStore/sync.mjs.map +0 -1
- package/dist/src/services/remoteGuardPolicy/index.cjs +0 -200
- package/dist/src/services/remoteGuardPolicy/index.cjs.map +0 -1
- package/dist/src/services/remoteGuardPolicy/index.d.mts +0 -7
- package/dist/src/services/remoteGuardPolicy/index.d.mts.map +0 -1
- package/dist/src/services/remoteGuardPolicy/index.mjs +0 -196
- package/dist/src/services/remoteGuardPolicy/index.mjs.map +0 -1
- package/dist/src/services/sessionMcpActivity/index.cjs +0 -115
- package/dist/src/services/sessionMcpActivity/index.cjs.map +0 -1
- package/dist/src/services/sessionMcpActivity/index.mjs +0 -111
- package/dist/src/services/sessionMcpActivity/index.mjs.map +0 -1
- package/dist/src/services/sessionMcpAuthorization/index.cjs +0 -473
- package/dist/src/services/sessionMcpAuthorization/index.cjs.map +0 -1
- package/dist/src/services/sessionMcpAuthorization/index.d.mts +0 -125
- package/dist/src/services/sessionMcpAuthorization/index.d.mts.map +0 -1
- package/dist/src/services/sessionMcpAuthorization/index.mjs +0 -469
- package/dist/src/services/sessionMcpAuthorization/index.mjs.map +0 -1
- package/dist/src/services/sessionMcpConversations/index.cjs +0 -217
- package/dist/src/services/sessionMcpConversations/index.cjs.map +0 -1
- package/dist/src/services/sessionMcpConversations/index.mjs +0 -212
- package/dist/src/services/sessionMcpConversations/index.mjs.map +0 -1
- package/dist/src/services/sessionMcpRegistrationStore/index.cjs +0 -86
- package/dist/src/services/sessionMcpRegistrationStore/index.cjs.map +0 -1
- package/dist/src/services/sessionMcpRegistrationStore/index.mjs +0 -83
- package/dist/src/services/sessionMcpRegistrationStore/index.mjs.map +0 -1
- package/dist/src/services/testMode/index.cjs +0 -162
- package/dist/src/services/testMode/index.cjs.map +0 -1
- package/dist/src/services/testMode/index.d.mts +0 -17
- package/dist/src/services/testMode/index.d.mts.map +0 -1
- package/dist/src/services/testMode/index.mjs +0 -155
- package/dist/src/services/testMode/index.mjs.map +0 -1
- package/dist/src/services/tunnelOutput/index.cjs +0 -58
- package/dist/src/services/tunnelOutput/index.cjs.map +0 -1
- package/dist/src/services/tunnelOutput/index.mjs +0 -54
- package/dist/src/services/tunnelOutput/index.mjs.map +0 -1
- package/dist/src/services/tunnelProcess/index.cjs +0 -487
- package/dist/src/services/tunnelProcess/index.cjs.map +0 -1
- package/dist/src/services/tunnelProcess/index.mjs +0 -481
- package/dist/src/services/tunnelProcess/index.mjs.map +0 -1
- package/dist/src/services/webauthn/index.cjs +0 -262
- package/dist/src/services/webauthn/index.cjs.map +0 -1
- package/dist/src/services/webauthn/index.d.mts +0 -39
- package/dist/src/services/webauthn/index.d.mts.map +0 -1
- package/dist/src/services/webauthn/index.mjs +0 -262
- package/dist/src/services/webauthn/index.mjs.map +0 -1
- package/dist/src/services/webauthnPolicy/index.cjs +0 -184
- package/dist/src/services/webauthnPolicy/index.cjs.map +0 -1
- package/dist/src/services/webauthnPolicy/index.d.mts +0 -41
- package/dist/src/services/webauthnPolicy/index.d.mts.map +0 -1
- package/dist/src/services/webauthnPolicy/index.mjs +0 -177
- package/dist/src/services/webauthnPolicy/index.mjs.map +0 -1
- package/dist/testMode.cjs +0 -4
- package/dist/testMode.d.mts +0 -2
- package/dist/testMode.mjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodePlatform.cjs","names":["createHistoryOwnership","openSqliteSessionStorage","openReadOnlyDurableStorage","sqliteSessionFile","path","DURABLE_DIRECTORY","fs","os","NodeExecutionEnv"
|
|
1
|
+
{"version":3,"file":"nodePlatform.cjs","names":["openDatabase","createHistoryOwnership","openSqliteSessionStorage","openReadOnlyDurableStorage","sqliteSessionFile","path","DURABLE_DIRECTORY","fs","os","NodeExecutionEnv"],"sources":["../src/services/nodePlatform/index.ts"],"sourcesContent":["import fs from 'node:fs/promises';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { NodeExecutionEnv, type NodeWatchOptions } from '@earendil-works/pi-durable/env/node';\nimport { openNodeSqliteDatabase as openDatabase } from '@earendil-works/pi-durable/storage/sqlite/node';\n\nimport type { PoPlatform, PoSessionStorageService, PoStoredSession } from '../../schemas/platform';\nimport { DURABLE_DIRECTORY } from '../durableSession';\nimport { createHistoryOwnership } from '../historyOwnership';\nimport type { HistoryOwnership } from '../historyOwnership/type';\nimport { openReadOnlyDurableStorage, openSqliteSessionStorage, sqliteSessionFile } from '../sqliteSessionStorage';\n\nconst SQLITE_BUSY = 5;\nconst SQLITE_OPEN_TIMEOUT_MS = 5_000;\nconst SQLITE_OPEN_RETRY_MS = 10;\n\n/** Concurrent WAL initialization can return SQLITE_BUSY without waiting for SQLite's busy timeout. */\n// The portable type keeps Chord's Node SQLite class out of the emitted declarations.\nexport async function openNodeSqliteDatabase(file: string): Promise<Awaited<ReturnType<PoPlatform['sqlite']['open']>>> {\n const deadline = Date.now() + SQLITE_OPEN_TIMEOUT_MS;\n for (;;) {\n try {\n return await openDatabase(file, { busyTimeoutMs: Math.max(0, deadline - Date.now()) });\n } catch (error) {\n if (!(error instanceof Error) || !('errcode' in error) || error.errcode !== SQLITE_BUSY || Date.now() >= deadline)\n throw error;\n await new Promise((resolve) => setTimeout(resolve, SQLITE_OPEN_RETRY_MS));\n }\n }\n}\n\nexport interface NodePlatformOptions {\n /** Defaults to the user's home directory. */\n readonly homeDirectory?: string;\n /** Host-admitted override; defaults to this Node host's OS temporary directory. */\n readonly temporaryDirectory?: string;\n /** Where the launching entry keeps agent sessions. Without it `sessions` refuses every call. */\n readonly sessionsRoot?: string;\n /** Shared ownership for every session this platform opens; created on first open when absent. */\n readonly historyOwnership?: HistoryOwnership;\n /** Host-selected watcher settings; omission retains the upstream defaults. */\n readonly watch?: NodeWatchOptions;\n}\n\n/** One lock-owned durable-v1 SQLite file per agent session. */\nfunction createNodeSessions(options: NodePlatformOptions): PoSessionStorageService {\n let historyOwnership = options.historyOwnership;\n const root = () => {\n if (options.sessionsRoot === undefined) throw new Error('This Node platform was given no sessions root.');\n return options.sessionsRoot;\n };\n return {\n abiVersion: 1,\n async open(request, context) {\n historyOwnership ??= createHistoryOwnership({ sourceFormat: 'sqlite' });\n const opened = await openSqliteSessionStorage({ ...request, sessionsRoot: root(), historyOwnership }, context);\n return {\n storage: opened.storage,\n assertWritable: () => opened.historyLease.assertQuiescent(),\n async release(releaseContext) {\n // The lease outlives a failed close so no second writer opens a file still being written.\n await opened.session.close(releaseContext);\n await opened.historyLease.release();\n },\n };\n },\n openReadOnly: async (sessionId) => openReadOnlyDurableStorage(sqliteSessionFile(root(), sessionId)),\n async list() {\n const directory = path.join(root(), DURABLE_DIRECTORY);\n const files = await fs.readdir(directory).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT') return [];\n throw error;\n });\n const stored: PoStoredSession[] = [];\n for (const file of files) {\n if (!/^[a-zA-Z0-9_-]+\\.sqlite$/u.test(file)) continue;\n const { mtimeMs } = await fs.stat(path.join(directory, file));\n stored.push({ sessionId: path.basename(file, '.sqlite'), updatedAt: mtimeMs });\n }\n return stored;\n },\n async remove(sessionId) {\n const file = sqliteSessionFile(root(), sessionId);\n historyOwnership ??= createHistoryOwnership({ sourceFormat: 'sqlite' });\n let lease: Awaited<ReturnType<HistoryOwnership['acquire']>>;\n try {\n lease = await historyOwnership.acquire(file);\n } catch (error) {\n const cause = error instanceof Error ? (error.cause as NodeJS.ErrnoException | undefined) : undefined;\n if (cause?.code === 'EEXIST') return 'busy';\n throw error;\n }\n try {\n for (const suffix of ['', '-wal', '-shm']) await fs.rm(`${file}${suffix}`, { force: true });\n } finally {\n // Releasing removes the lock file, so a removed session leaves no lock behind.\n await lease.release();\n }\n return 'removed';\n },\n };\n}\n\n/** The Node host: local files and shell, `node:sqlite` files, and lock-owned durable-v1 sessions. */\nexport function createNodePlatform(options: NodePlatformOptions = {}): PoPlatform {\n return {\n abiVersion: 1,\n homeDirectory: options.homeDirectory ?? os.homedir(),\n // Secure session-file protection and viewing currently require POSIX ownership semantics.\n temporaryDirectory:\n process.platform === 'darwin' || process.platform === 'linux'\n ? (options.temporaryDirectory ?? os.tmpdir())\n : undefined,\n env: (cwd) => new NodeExecutionEnv({ cwd, watch: options.watch }),\n sqlite: { abiVersion: 1, open: openNodeSqliteDatabase },\n sessions: createNodeSessions(options),\n };\n}\n"],"mappings":";;;;;;;;;;;;;;AAaA,MAAM,cAAc;AACpB,MAAM,yBAAyB;AAC/B,MAAM,uBAAuB;;AAI7B,eAAsB,uBAAuB,MAA0E;CACrH,MAAM,WAAW,KAAK,IAAI,IAAI;CAC9B,SACE,IAAI;EACF,OAAO,OAAA,GAAMA,+CAAAA,uBAAAA,CAAa,MAAM,EAAE,eAAe,KAAK,IAAI,GAAG,WAAW,KAAK,IAAI,CAAC,EAAE,CAAC;CACvF,SAAS,OAAO;EACd,IAAI,EAAE,iBAAiB,UAAU,EAAE,aAAa,UAAU,MAAM,YAAY,eAAe,KAAK,IAAI,KAAK,UACvG,MAAM;EACR,MAAM,IAAI,SAAS,YAAY,WAAW,SAAS,oBAAoB,CAAC;CAC1E;AAEJ;;AAgBA,SAAS,mBAAmB,SAAuD;CACjF,IAAI,mBAAmB,QAAQ;CAC/B,MAAM,aAAa;EACjB,IAAI,QAAQ,iBAAiB,KAAA,GAAW,MAAM,IAAI,MAAM,gDAAgD;EACxG,OAAO,QAAQ;CACjB;CACA,OAAO;EACL,YAAY;EACZ,MAAM,KAAK,SAAS,SAAS;GAC3B,qBAAqBC,yBAAAA,uBAAuB,EAAE,cAAc,SAAS,CAAC;GACtE,MAAM,SAAS,MAAMC,6BAAAA,yBAAyB;IAAE,GAAG;IAAS,cAAc,KAAK;IAAG;GAAiB,GAAG,OAAO;GAC7G,OAAO;IACL,SAAS,OAAO;IAChB,sBAAsB,OAAO,aAAa,gBAAgB;IAC1D,MAAM,QAAQ,gBAAgB;KAE5B,MAAM,OAAO,QAAQ,MAAM,cAAc;KACzC,MAAM,OAAO,aAAa,QAAQ;IACpC;GACF;EACF;EACA,cAAc,OAAO,cAAcC,6BAAAA,2BAA2BC,6BAAAA,kBAAkB,KAAK,GAAG,SAAS,CAAC;EAClG,MAAM,OAAO;GACX,MAAM,YAAYC,UAAAA,QAAK,KAAK,KAAK,GAAGC,cAAAA,iBAAiB;GACrD,MAAM,QAAQ,MAAMC,iBAAAA,QAAG,QAAQ,SAAS,CAAC,CAAC,OAAO,UAAiC;IAChF,IAAI,MAAM,SAAS,UAAU,OAAO,CAAC;IACrC,MAAM;GACR,CAAC;GACD,MAAM,SAA4B,CAAC;GACnC,KAAK,MAAM,QAAQ,OAAO;IACxB,IAAI,CAAC,4BAA4B,KAAK,IAAI,GAAG;IAC7C,MAAM,EAAE,YAAY,MAAMA,iBAAAA,QAAG,KAAKF,UAAAA,QAAK,KAAK,WAAW,IAAI,CAAC;IAC5D,OAAO,KAAK;KAAE,WAAWA,UAAAA,QAAK,SAAS,MAAM,SAAS;KAAG,WAAW;IAAQ,CAAC;GAC/E;GACA,OAAO;EACT;EACA,MAAM,OAAO,WAAW;GACtB,MAAM,OAAOD,6BAAAA,kBAAkB,KAAK,GAAG,SAAS;GAChD,qBAAqBH,yBAAAA,uBAAuB,EAAE,cAAc,SAAS,CAAC;GACtE,IAAI;GACJ,IAAI;IACF,QAAQ,MAAM,iBAAiB,QAAQ,IAAI;GAC7C,SAAS,OAAO;IAEd,KADc,iBAAiB,QAAS,MAAM,QAA8C,KAAA,EAAA,EACjF,SAAS,UAAU,OAAO;IACrC,MAAM;GACR;GACA,IAAI;IACF,KAAK,MAAM,UAAU;KAAC;KAAI;KAAQ;IAAM,GAAG,MAAMM,iBAAAA,QAAG,GAAG,GAAG,OAAO,UAAU,EAAE,OAAO,KAAK,CAAC;GAC5F,UAAU;IAER,MAAM,MAAM,QAAQ;GACtB;GACA,OAAO;EACT;CACF;AACF;;AAGA,SAAgB,mBAAmB,UAA+B,CAAC,GAAe;CAChF,OAAO;EACL,YAAY;EACZ,eAAe,QAAQ,iBAAiBC,QAAAA,QAAG,QAAQ;EAEnD,oBACE,QAAQ,aAAa,YAAY,QAAQ,aAAa,UACjD,QAAQ,sBAAsBA,QAAAA,QAAG,OAAO,IACzC,KAAA;EACN,MAAM,QAAQ,IAAIC,oCAAAA,iBAAiB;GAAE;GAAK,OAAO,QAAQ;EAAM,CAAC;EAChE,QAAQ;GAAE,YAAY;GAAG,MAAM;EAAuB;EACtD,UAAU,mBAAmB,OAAO;CACtC;AACF"}
|
package/dist/nodePlatform.d.mts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PoPlatform } from "./src/schemas/platform.mjs";
|
|
2
2
|
import { HistoryOwnership } from "./src/services/historyOwnership/type.mjs";
|
|
3
|
+
import { NodeWatchOptions } from "@earendil-works/pi-durable/env/node";
|
|
3
4
|
//#region src/services/nodePlatform/index.d.ts
|
|
5
|
+
/** Concurrent WAL initialization can return SQLITE_BUSY without waiting for SQLite's busy timeout. */
|
|
6
|
+
export declare function openNodeSqliteDatabase(file: string): Promise<Awaited<ReturnType<PoPlatform['sqlite']['open']>>>;
|
|
4
7
|
export interface NodePlatformOptions {
|
|
5
8
|
/** Defaults to the user's home directory. */
|
|
6
9
|
readonly homeDirectory?: string;
|
|
@@ -10,6 +13,8 @@ export interface NodePlatformOptions {
|
|
|
10
13
|
readonly sessionsRoot?: string;
|
|
11
14
|
/** Shared ownership for every session this platform opens; created on first open when absent. */
|
|
12
15
|
readonly historyOwnership?: HistoryOwnership;
|
|
16
|
+
/** Host-selected watcher settings; omission retains the upstream defaults. */
|
|
17
|
+
readonly watch?: NodeWatchOptions;
|
|
13
18
|
}
|
|
14
19
|
/** The Node host: local files and shell, `node:sqlite` files, and lock-owned durable-v1 sessions. */
|
|
15
20
|
export declare function createNodePlatform(options?: NodePlatformOptions): PoPlatform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodePlatform.d.mts","names":[],"sources":["../src/services/nodePlatform/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"nodePlatform.d.mts","names":[],"sources":["../src/services/nodePlatform/index.ts"],"mappings":";;;;;wBAmBsB,uBAAuB,eAAe,QAAQ,QAAQ,WAAW;iBAatE;;WAEN;;WAEA;;WAEA;;WAEA,mBAAmB;;WAEnB,QAAQ;;;wBA+DH,mBAAmB,UAAS,sBAA2B"}
|
package/dist/nodePlatform.mjs
CHANGED
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { createHistoryOwnership } from "./historyOwnership.mjs";
|
|
2
2
|
import { DURABLE_DIRECTORY } from "./src/services/durableSession/index.mjs";
|
|
3
3
|
import { openReadOnlyDurableStorage, openSqliteSessionStorage, sqliteSessionFile } from "./sqliteSessionStorage.mjs";
|
|
4
|
+
import fs from "node:fs/promises";
|
|
4
5
|
import os from "node:os";
|
|
5
6
|
import path from "node:path";
|
|
6
|
-
import
|
|
7
|
-
import { openNodeSqliteDatabase } from "@earendil-works/pi-durable/storage/sqlite/node";
|
|
7
|
+
import { openNodeSqliteDatabase as openNodeSqliteDatabase$1 } from "@earendil-works/pi-durable/storage/sqlite/node";
|
|
8
8
|
import { NodeExecutionEnv } from "@earendil-works/pi-durable/env/node";
|
|
9
9
|
//#region src/services/nodePlatform/index.ts
|
|
10
|
+
const SQLITE_BUSY = 5;
|
|
11
|
+
const SQLITE_OPEN_TIMEOUT_MS = 5e3;
|
|
12
|
+
const SQLITE_OPEN_RETRY_MS = 10;
|
|
13
|
+
/** Concurrent WAL initialization can return SQLITE_BUSY without waiting for SQLite's busy timeout. */
|
|
14
|
+
async function openNodeSqliteDatabase(file) {
|
|
15
|
+
const deadline = Date.now() + SQLITE_OPEN_TIMEOUT_MS;
|
|
16
|
+
for (;;) try {
|
|
17
|
+
return await openNodeSqliteDatabase$1(file, { busyTimeoutMs: Math.max(0, deadline - Date.now()) });
|
|
18
|
+
} catch (error) {
|
|
19
|
+
if (!(error instanceof Error) || !("errcode" in error) || error.errcode !== SQLITE_BUSY || Date.now() >= deadline) throw error;
|
|
20
|
+
await new Promise((resolve) => setTimeout(resolve, SQLITE_OPEN_RETRY_MS));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
10
23
|
/** One lock-owned durable-v1 SQLite file per agent session. */
|
|
11
24
|
function createNodeSessions(options) {
|
|
12
25
|
let historyOwnership = options.historyOwnership;
|
|
@@ -49,6 +62,27 @@ function createNodeSessions(options) {
|
|
|
49
62
|
});
|
|
50
63
|
}
|
|
51
64
|
return stored;
|
|
65
|
+
},
|
|
66
|
+
async remove(sessionId) {
|
|
67
|
+
const file = sqliteSessionFile(root(), sessionId);
|
|
68
|
+
historyOwnership ??= createHistoryOwnership({ sourceFormat: "sqlite" });
|
|
69
|
+
let lease;
|
|
70
|
+
try {
|
|
71
|
+
lease = await historyOwnership.acquire(file);
|
|
72
|
+
} catch (error) {
|
|
73
|
+
if ((error instanceof Error ? error.cause : void 0)?.code === "EEXIST") return "busy";
|
|
74
|
+
throw error;
|
|
75
|
+
}
|
|
76
|
+
try {
|
|
77
|
+
for (const suffix of [
|
|
78
|
+
"",
|
|
79
|
+
"-wal",
|
|
80
|
+
"-shm"
|
|
81
|
+
]) await fs.rm(`${file}${suffix}`, { force: true });
|
|
82
|
+
} finally {
|
|
83
|
+
await lease.release();
|
|
84
|
+
}
|
|
85
|
+
return "removed";
|
|
52
86
|
}
|
|
53
87
|
};
|
|
54
88
|
}
|
|
@@ -58,15 +92,18 @@ function createNodePlatform(options = {}) {
|
|
|
58
92
|
abiVersion: 1,
|
|
59
93
|
homeDirectory: options.homeDirectory ?? os.homedir(),
|
|
60
94
|
temporaryDirectory: process.platform === "darwin" || process.platform === "linux" ? options.temporaryDirectory ?? os.tmpdir() : void 0,
|
|
61
|
-
env: (cwd) => new NodeExecutionEnv({
|
|
95
|
+
env: (cwd) => new NodeExecutionEnv({
|
|
96
|
+
cwd,
|
|
97
|
+
watch: options.watch
|
|
98
|
+
}),
|
|
62
99
|
sqlite: {
|
|
63
100
|
abiVersion: 1,
|
|
64
|
-
open:
|
|
101
|
+
open: openNodeSqliteDatabase
|
|
65
102
|
},
|
|
66
103
|
sessions: createNodeSessions(options)
|
|
67
104
|
};
|
|
68
105
|
}
|
|
69
106
|
//#endregion
|
|
70
|
-
export { createNodePlatform };
|
|
107
|
+
export { createNodePlatform, openNodeSqliteDatabase };
|
|
71
108
|
|
|
72
109
|
//# sourceMappingURL=nodePlatform.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodePlatform.mjs","names":[],"sources":["../src/services/nodePlatform/index.ts"],"sourcesContent":["import fs from 'node:fs/promises';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { NodeExecutionEnv } from '@earendil-works/pi-durable/env/node';\nimport { openNodeSqliteDatabase } from '@earendil-works/pi-durable/storage/sqlite/node';\n\nimport type { PoPlatform, PoSessionStorageService, PoStoredSession } from '../../schemas/platform';\nimport { DURABLE_DIRECTORY } from '../durableSession';\nimport { createHistoryOwnership } from '../historyOwnership';\nimport type { HistoryOwnership } from '../historyOwnership/type';\nimport { openReadOnlyDurableStorage, openSqliteSessionStorage, sqliteSessionFile } from '../sqliteSessionStorage';\n\nexport interface NodePlatformOptions {\n /** Defaults to the user's home directory. */\n readonly homeDirectory?: string;\n /** Host-admitted override; defaults to this Node host's OS temporary directory. */\n readonly temporaryDirectory?: string;\n /** Where the launching entry keeps agent sessions. Without it `sessions` refuses every call. */\n readonly sessionsRoot?: string;\n /** Shared ownership for every session this platform opens; created on first open when absent. */\n readonly historyOwnership?: HistoryOwnership;\n}\n\n/** One lock-owned durable-v1 SQLite file per agent session. */\nfunction createNodeSessions(options: NodePlatformOptions): PoSessionStorageService {\n let historyOwnership = options.historyOwnership;\n const root = () => {\n if (options.sessionsRoot === undefined) throw new Error('This Node platform was given no sessions root.');\n return options.sessionsRoot;\n };\n return {\n abiVersion: 1,\n async open(request, context) {\n historyOwnership ??= createHistoryOwnership({ sourceFormat: 'sqlite' });\n const opened = await openSqliteSessionStorage({ ...request, sessionsRoot: root(), historyOwnership }, context);\n return {\n storage: opened.storage,\n assertWritable: () => opened.historyLease.assertQuiescent(),\n async release(releaseContext) {\n // The lease outlives a failed close so no second writer opens a file still being written.\n await opened.session.close(releaseContext);\n await opened.historyLease.release();\n },\n };\n },\n openReadOnly: async (sessionId) => openReadOnlyDurableStorage(sqliteSessionFile(root(), sessionId)),\n async list() {\n const directory = path.join(root(), DURABLE_DIRECTORY);\n const files = await fs.readdir(directory).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT') return [];\n throw error;\n });\n const stored: PoStoredSession[] = [];\n for (const file of files) {\n if (!/^[a-zA-Z0-9_-]+\\.sqlite$/u.test(file)) continue;\n const { mtimeMs } = await fs.stat(path.join(directory, file));\n stored.push({ sessionId: path.basename(file, '.sqlite'), updatedAt: mtimeMs });\n }\n return stored;\n },\n };\n}\n\n/** The Node host: local files and shell, `node:sqlite` files, and lock-owned durable-v1 sessions. */\nexport function createNodePlatform(options: NodePlatformOptions = {}): PoPlatform {\n return {\n abiVersion: 1,\n homeDirectory: options.homeDirectory ?? os.homedir(),\n // Secure session-file protection and viewing currently require POSIX ownership semantics.\n temporaryDirectory:\n process.platform === 'darwin' || process.platform === 'linux'\n ? (options.temporaryDirectory ?? os.tmpdir())\n : undefined,\n env: (cwd) => new NodeExecutionEnv({ cwd }),\n sqlite: { abiVersion: 1, open:
|
|
1
|
+
{"version":3,"file":"nodePlatform.mjs","names":["openDatabase"],"sources":["../src/services/nodePlatform/index.ts"],"sourcesContent":["import fs from 'node:fs/promises';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { NodeExecutionEnv, type NodeWatchOptions } from '@earendil-works/pi-durable/env/node';\nimport { openNodeSqliteDatabase as openDatabase } from '@earendil-works/pi-durable/storage/sqlite/node';\n\nimport type { PoPlatform, PoSessionStorageService, PoStoredSession } from '../../schemas/platform';\nimport { DURABLE_DIRECTORY } from '../durableSession';\nimport { createHistoryOwnership } from '../historyOwnership';\nimport type { HistoryOwnership } from '../historyOwnership/type';\nimport { openReadOnlyDurableStorage, openSqliteSessionStorage, sqliteSessionFile } from '../sqliteSessionStorage';\n\nconst SQLITE_BUSY = 5;\nconst SQLITE_OPEN_TIMEOUT_MS = 5_000;\nconst SQLITE_OPEN_RETRY_MS = 10;\n\n/** Concurrent WAL initialization can return SQLITE_BUSY without waiting for SQLite's busy timeout. */\n// The portable type keeps Chord's Node SQLite class out of the emitted declarations.\nexport async function openNodeSqliteDatabase(file: string): Promise<Awaited<ReturnType<PoPlatform['sqlite']['open']>>> {\n const deadline = Date.now() + SQLITE_OPEN_TIMEOUT_MS;\n for (;;) {\n try {\n return await openDatabase(file, { busyTimeoutMs: Math.max(0, deadline - Date.now()) });\n } catch (error) {\n if (!(error instanceof Error) || !('errcode' in error) || error.errcode !== SQLITE_BUSY || Date.now() >= deadline)\n throw error;\n await new Promise((resolve) => setTimeout(resolve, SQLITE_OPEN_RETRY_MS));\n }\n }\n}\n\nexport interface NodePlatformOptions {\n /** Defaults to the user's home directory. */\n readonly homeDirectory?: string;\n /** Host-admitted override; defaults to this Node host's OS temporary directory. */\n readonly temporaryDirectory?: string;\n /** Where the launching entry keeps agent sessions. Without it `sessions` refuses every call. */\n readonly sessionsRoot?: string;\n /** Shared ownership for every session this platform opens; created on first open when absent. */\n readonly historyOwnership?: HistoryOwnership;\n /** Host-selected watcher settings; omission retains the upstream defaults. */\n readonly watch?: NodeWatchOptions;\n}\n\n/** One lock-owned durable-v1 SQLite file per agent session. */\nfunction createNodeSessions(options: NodePlatformOptions): PoSessionStorageService {\n let historyOwnership = options.historyOwnership;\n const root = () => {\n if (options.sessionsRoot === undefined) throw new Error('This Node platform was given no sessions root.');\n return options.sessionsRoot;\n };\n return {\n abiVersion: 1,\n async open(request, context) {\n historyOwnership ??= createHistoryOwnership({ sourceFormat: 'sqlite' });\n const opened = await openSqliteSessionStorage({ ...request, sessionsRoot: root(), historyOwnership }, context);\n return {\n storage: opened.storage,\n assertWritable: () => opened.historyLease.assertQuiescent(),\n async release(releaseContext) {\n // The lease outlives a failed close so no second writer opens a file still being written.\n await opened.session.close(releaseContext);\n await opened.historyLease.release();\n },\n };\n },\n openReadOnly: async (sessionId) => openReadOnlyDurableStorage(sqliteSessionFile(root(), sessionId)),\n async list() {\n const directory = path.join(root(), DURABLE_DIRECTORY);\n const files = await fs.readdir(directory).catch((error: NodeJS.ErrnoException) => {\n if (error.code === 'ENOENT') return [];\n throw error;\n });\n const stored: PoStoredSession[] = [];\n for (const file of files) {\n if (!/^[a-zA-Z0-9_-]+\\.sqlite$/u.test(file)) continue;\n const { mtimeMs } = await fs.stat(path.join(directory, file));\n stored.push({ sessionId: path.basename(file, '.sqlite'), updatedAt: mtimeMs });\n }\n return stored;\n },\n async remove(sessionId) {\n const file = sqliteSessionFile(root(), sessionId);\n historyOwnership ??= createHistoryOwnership({ sourceFormat: 'sqlite' });\n let lease: Awaited<ReturnType<HistoryOwnership['acquire']>>;\n try {\n lease = await historyOwnership.acquire(file);\n } catch (error) {\n const cause = error instanceof Error ? (error.cause as NodeJS.ErrnoException | undefined) : undefined;\n if (cause?.code === 'EEXIST') return 'busy';\n throw error;\n }\n try {\n for (const suffix of ['', '-wal', '-shm']) await fs.rm(`${file}${suffix}`, { force: true });\n } finally {\n // Releasing removes the lock file, so a removed session leaves no lock behind.\n await lease.release();\n }\n return 'removed';\n },\n };\n}\n\n/** The Node host: local files and shell, `node:sqlite` files, and lock-owned durable-v1 sessions. */\nexport function createNodePlatform(options: NodePlatformOptions = {}): PoPlatform {\n return {\n abiVersion: 1,\n homeDirectory: options.homeDirectory ?? os.homedir(),\n // Secure session-file protection and viewing currently require POSIX ownership semantics.\n temporaryDirectory:\n process.platform === 'darwin' || process.platform === 'linux'\n ? (options.temporaryDirectory ?? os.tmpdir())\n : undefined,\n env: (cwd) => new NodeExecutionEnv({ cwd, watch: options.watch }),\n sqlite: { abiVersion: 1, open: openNodeSqliteDatabase },\n sessions: createNodeSessions(options),\n };\n}\n"],"mappings":";;;;;;;;;AAaA,MAAM,cAAc;AACpB,MAAM,yBAAyB;AAC/B,MAAM,uBAAuB;;AAI7B,eAAsB,uBAAuB,MAA0E;CACrH,MAAM,WAAW,KAAK,IAAI,IAAI;CAC9B,SACE,IAAI;EACF,OAAO,MAAMA,yBAAa,MAAM,EAAE,eAAe,KAAK,IAAI,GAAG,WAAW,KAAK,IAAI,CAAC,EAAE,CAAC;CACvF,SAAS,OAAO;EACd,IAAI,EAAE,iBAAiB,UAAU,EAAE,aAAa,UAAU,MAAM,YAAY,eAAe,KAAK,IAAI,KAAK,UACvG,MAAM;EACR,MAAM,IAAI,SAAS,YAAY,WAAW,SAAS,oBAAoB,CAAC;CAC1E;AAEJ;;AAgBA,SAAS,mBAAmB,SAAuD;CACjF,IAAI,mBAAmB,QAAQ;CAC/B,MAAM,aAAa;EACjB,IAAI,QAAQ,iBAAiB,KAAA,GAAW,MAAM,IAAI,MAAM,gDAAgD;EACxG,OAAO,QAAQ;CACjB;CACA,OAAO;EACL,YAAY;EACZ,MAAM,KAAK,SAAS,SAAS;GAC3B,qBAAqB,uBAAuB,EAAE,cAAc,SAAS,CAAC;GACtE,MAAM,SAAS,MAAM,yBAAyB;IAAE,GAAG;IAAS,cAAc,KAAK;IAAG;GAAiB,GAAG,OAAO;GAC7G,OAAO;IACL,SAAS,OAAO;IAChB,sBAAsB,OAAO,aAAa,gBAAgB;IAC1D,MAAM,QAAQ,gBAAgB;KAE5B,MAAM,OAAO,QAAQ,MAAM,cAAc;KACzC,MAAM,OAAO,aAAa,QAAQ;IACpC;GACF;EACF;EACA,cAAc,OAAO,cAAc,2BAA2B,kBAAkB,KAAK,GAAG,SAAS,CAAC;EAClG,MAAM,OAAO;GACX,MAAM,YAAY,KAAK,KAAK,KAAK,GAAG,iBAAiB;GACrD,MAAM,QAAQ,MAAM,GAAG,QAAQ,SAAS,CAAC,CAAC,OAAO,UAAiC;IAChF,IAAI,MAAM,SAAS,UAAU,OAAO,CAAC;IACrC,MAAM;GACR,CAAC;GACD,MAAM,SAA4B,CAAC;GACnC,KAAK,MAAM,QAAQ,OAAO;IACxB,IAAI,CAAC,4BAA4B,KAAK,IAAI,GAAG;IAC7C,MAAM,EAAE,YAAY,MAAM,GAAG,KAAK,KAAK,KAAK,WAAW,IAAI,CAAC;IAC5D,OAAO,KAAK;KAAE,WAAW,KAAK,SAAS,MAAM,SAAS;KAAG,WAAW;IAAQ,CAAC;GAC/E;GACA,OAAO;EACT;EACA,MAAM,OAAO,WAAW;GACtB,MAAM,OAAO,kBAAkB,KAAK,GAAG,SAAS;GAChD,qBAAqB,uBAAuB,EAAE,cAAc,SAAS,CAAC;GACtE,IAAI;GACJ,IAAI;IACF,QAAQ,MAAM,iBAAiB,QAAQ,IAAI;GAC7C,SAAS,OAAO;IAEd,KADc,iBAAiB,QAAS,MAAM,QAA8C,KAAA,EAAA,EACjF,SAAS,UAAU,OAAO;IACrC,MAAM;GACR;GACA,IAAI;IACF,KAAK,MAAM,UAAU;KAAC;KAAI;KAAQ;IAAM,GAAG,MAAM,GAAG,GAAG,GAAG,OAAO,UAAU,EAAE,OAAO,KAAK,CAAC;GAC5F,UAAU;IAER,MAAM,MAAM,QAAQ;GACtB;GACA,OAAO;EACT;CACF;AACF;;AAGA,SAAgB,mBAAmB,UAA+B,CAAC,GAAe;CAChF,OAAO;EACL,YAAY;EACZ,eAAe,QAAQ,iBAAiB,GAAG,QAAQ;EAEnD,oBACE,QAAQ,aAAa,YAAY,QAAQ,aAAa,UACjD,QAAQ,sBAAsB,GAAG,OAAO,IACzC,KAAA;EACN,MAAM,QAAQ,IAAI,iBAAiB;GAAE;GAAK,OAAO,QAAQ;EAAM,CAAC;EAChE,QAAQ;GAAE,YAAY;GAAG,MAAM;EAAuB;EACtD,UAAU,mBAAmB,OAAO;CACtC;AACF"}
|
package/dist/notification.cjs
CHANGED
|
@@ -3,6 +3,7 @@ const require_notification = require("./src/schemas/notification.cjs");
|
|
|
3
3
|
exports.MAX_PO_NOTIFICATION_BODY_CHARACTERS = require_notification.MAX_PO_NOTIFICATION_BODY_CHARACTERS;
|
|
4
4
|
exports.MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS = require_notification.MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS;
|
|
5
5
|
exports.MAX_PO_NOTIFICATION_TITLE_CHARACTERS = require_notification.MAX_PO_NOTIFICATION_TITLE_CHARACTERS;
|
|
6
|
+
exports.PO_IDLE_FEEDBACK_REF_KIND = require_notification.PO_IDLE_FEEDBACK_REF_KIND;
|
|
6
7
|
exports.PO_NOTIFICATION_ENTRY_TYPE = require_notification.PO_NOTIFICATION_ENTRY_TYPE;
|
|
7
8
|
exports.PO_NOTIFICATION_ENTRY_VERSION = require_notification.PO_NOTIFICATION_ENTRY_VERSION;
|
|
8
9
|
exports.PO_NOTIFICATION_SERVICE = require_notification.PO_NOTIFICATION_SERVICE;
|
package/dist/notification.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { 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, PoNotificationEntryData, PoNotificationEntryDataSchema, PoNotificationLevel, PoNotificationLevelSchema, PoNotificationRequest, PoNotificationRequestSchema, PoNotificationService, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService } from "./src/schemas/notification.mjs";
|
|
2
|
-
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, type PoNotificationEntryData, PoNotificationEntryDataSchema, type PoNotificationLevel, PoNotificationLevelSchema, type PoNotificationRequest, PoNotificationRequestSchema, type PoNotificationService, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService };
|
|
1
|
+
import { MAX_PO_NOTIFICATION_BODY_CHARACTERS, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS, MAX_PO_NOTIFICATION_TITLE_CHARACTERS, PO_IDLE_FEEDBACK_REF_KIND, PO_NOTIFICATION_ENTRY_TYPE, PO_NOTIFICATION_ENTRY_VERSION, PO_NOTIFICATION_SERVICE, PoNotificationEntryData, PoNotificationEntryDataSchema, PoNotificationLevel, PoNotificationLevelSchema, PoNotificationRequest, PoNotificationRequestSchema, PoNotificationService, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService } from "./src/schemas/notification.mjs";
|
|
2
|
+
export { MAX_PO_NOTIFICATION_BODY_CHARACTERS, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS, MAX_PO_NOTIFICATION_TITLE_CHARACTERS, PO_IDLE_FEEDBACK_REF_KIND, PO_NOTIFICATION_ENTRY_TYPE, PO_NOTIFICATION_ENTRY_VERSION, PO_NOTIFICATION_SERVICE, type PoNotificationEntryData, PoNotificationEntryDataSchema, type PoNotificationLevel, PoNotificationLevelSchema, type PoNotificationRequest, PoNotificationRequestSchema, type PoNotificationService, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService };
|
package/dist/notification.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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 } from "./src/schemas/notification.mjs";
|
|
1
|
+
export { MAX_PO_NOTIFICATION_BODY_CHARACTERS, MAX_PO_NOTIFICATION_SUBTITLE_CHARACTERS, MAX_PO_NOTIFICATION_TITLE_CHARACTERS, PO_IDLE_FEEDBACK_REF_KIND, PO_NOTIFICATION_ENTRY_TYPE, PO_NOTIFICATION_ENTRY_VERSION, PO_NOTIFICATION_SERVICE, PoNotificationEntryDataSchema, PoNotificationLevelSchema, PoNotificationRequestSchema, createPoNotificationEntryData, isPoNotificationEntryData, isPoNotificationRequest, normalizePoNotificationRequest, readPoNotificationService, requirePoNotificationService } from "./src/schemas/notification.mjs";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PO_OPERATION_HOOK_DECLARATIONS, PoOperationAfterEvent, PoOperationAfterResult, PoOperationApproval, PoOperationBeforeEvent, PoOperationBeforeResult, PoOperationCall, PoOperationCapture, PoOperationDeclaration, PoOperationEvidence, PoOperationOutcome, PoOperationRunResult, PoOperationRunner } from "./src/schemas/operationHook.mjs";
|
|
2
|
+
export { PO_OPERATION_HOOK_DECLARATIONS, PoOperationAfterEvent, PoOperationAfterResult, PoOperationApproval, PoOperationBeforeEvent, PoOperationBeforeResult, PoOperationCall, PoOperationCapture, PoOperationDeclaration, PoOperationEvidence, PoOperationOutcome, PoOperationRunResult, PoOperationRunner };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PO_OPERATION_HOOK_DECLARATIONS } from "./src/schemas/operationHook.mjs";
|
package/dist/packageApi.cjs
CHANGED
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_executionBudget = require("./executionBudget.cjs");
|
|
3
3
|
const require_packageApi = require("./src/schemas/packageApi.cjs");
|
|
4
|
+
const require_index = require("./src/services/editPresence/index.cjs");
|
|
5
|
+
exports.PO_API_CALLER_ACCESS_HEADER = require_packageApi.PO_API_CALLER_ACCESS_HEADER;
|
|
4
6
|
exports.PO_API_CALLER_DEVICE_ID_HEADER = require_packageApi.PO_API_CALLER_DEVICE_ID_HEADER;
|
|
7
|
+
exports.PO_API_CALLER_FEDERATION_HEADER = require_packageApi.PO_API_CALLER_FEDERATION_HEADER;
|
|
5
8
|
exports.PO_API_CALLER_HEADERS = require_packageApi.PO_API_CALLER_HEADERS;
|
|
6
9
|
exports.PO_API_CALLER_LOCALITY_HEADER = require_packageApi.PO_API_CALLER_LOCALITY_HEADER;
|
|
7
10
|
exports.PO_API_CALLER_STEP_UP_HEADER = require_packageApi.PO_API_CALLER_STEP_UP_HEADER;
|
|
11
|
+
exports.PO_API_PEER_ADDRESS_HEADER = require_packageApi.PO_API_PEER_ADDRESS_HEADER;
|
|
8
12
|
exports.PO_API_ROUTE_PREFIX = require_packageApi.PO_API_ROUTE_PREFIX;
|
|
9
13
|
exports.PO_API_SCOPES = require_packageApi.PO_API_SCOPES;
|
|
14
|
+
exports.PO_EDIT_PRESENCE_CONTRACT = require_packageApi.PO_EDIT_PRESENCE_CONTRACT;
|
|
15
|
+
exports.PO_EDIT_PRESENCE_SERVICE = require_packageApi.PO_EDIT_PRESENCE_SERVICE;
|
|
10
16
|
exports.PO_HUB_API_SESSION_QUERY_PARAM = require_packageApi.PO_HUB_API_SESSION_QUERY_PARAM;
|
|
11
17
|
exports.PO_SHARE_FILE_REMOTE_OFF_MESSAGE = require_packageApi.PO_SHARE_FILE_REMOTE_OFF_MESSAGE;
|
|
18
|
+
exports.createEditPresence = require_index.createEditPresence;
|
|
12
19
|
exports.createExecutionBudget = require_executionBudget.createExecutionBudget;
|
|
13
20
|
exports.createServerExecutionBudget = require_executionBudget.createServerExecutionBudget;
|
|
21
|
+
exports.parsePoSessionStarter = require_packageApi.parsePoSessionStarter;
|
|
14
22
|
exports.parsePoSocketPath = require_packageApi.parsePoSocketPath;
|
|
15
23
|
exports.poApiCallerFrom = require_packageApi.poApiCallerFrom;
|
|
16
24
|
exports.poApiMountPath = require_packageApi.poApiMountPath;
|
|
25
|
+
exports.poSessionStarterFrom = require_packageApi.poSessionStarterFrom;
|
|
17
26
|
exports.sharedExecutionBudget = require_executionBudget.sharedExecutionBudget;
|
package/dist/packageApi.d.mts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import { PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, PoApi, PoApiCaller, PoApiCallerStepUp, PoApiContext, PoApiHandler, PoApiMount, PoApiScope, PoEditPresenceAgent, PoEditPresenceEntry, PoEditPresenceLedger, PoHostExecutionBudget, PoHostExecutionPermit, PoHostMediaArbitration, PoNativeComposition, PoOAuthRedirect, PoPeerAgentRegistry, PoRepositorySyncView, PoRequestReceipt, PoRequestReceiptKey, PoRequestReceiptReservation, PoRequestReceiptReserveResult, PoRequestReceipts, PoSharedFile, PoSocketMount, PoWebComposition, parsePoSocketPath, poApiCallerFrom, poApiMountPath } from "./src/schemas/packageApi.mjs";
|
|
1
|
+
import { PO_API_CALLER_ACCESS_HEADER, PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_FEDERATION_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_PEER_ADDRESS_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_EDIT_PRESENCE_CONTRACT, PO_EDIT_PRESENCE_SERVICE, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, PoApi, PoApiCaller, PoApiCallerAccess, PoApiCallerStepUp, PoApiContext, PoApiHandler, PoApiMount, PoApiPublicRoutes, PoApiScope, PoApiSocket, PoEditPresence, PoEditPresenceAgent, PoEditPresenceEntry, PoEditPresenceLedger, PoFederationCaller, PoHostExecutionBudget, PoHostExecutionPermit, PoHostMediaArbitration, PoNativeComposition, PoOAuthRedirect, PoOpenedRegisteredFile, PoPeerAgentRegistry, PoRegisteredFile, PoRepositorySyncView, PoRequestReceipt, PoRequestReceiptKey, PoRequestReceiptReservation, PoRequestReceiptReserveResult, PoRequestReceipts, PoSessionCoordination, PoSessionStarter, PoSharedFile, PoSocketMount, PoWebComposition, parsePoSessionStarter, parsePoSocketPath, poApiCallerFrom, poApiMountPath, poSessionStarterFrom } from "./src/schemas/packageApi.mjs";
|
|
2
|
+
import { FederationWorkPaused } from "./src/schemas/federation.mjs";
|
|
2
3
|
import { createExecutionBudget, createServerExecutionBudget, sharedExecutionBudget } from "./executionBudget.mjs";
|
|
3
|
-
|
|
4
|
+
import { createEditPresence } from "./src/services/editPresence/index.mjs";
|
|
5
|
+
export { type FederationWorkPaused, PO_API_CALLER_ACCESS_HEADER, PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_FEDERATION_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_PEER_ADDRESS_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_EDIT_PRESENCE_CONTRACT, PO_EDIT_PRESENCE_SERVICE, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, type PoApi, type PoApiCaller, type PoApiCallerAccess, type PoApiCallerStepUp, type PoApiContext, type PoApiHandler, type PoApiMount, type PoApiPublicRoutes, type PoApiScope, type PoApiSocket, type PoEditPresence, type PoEditPresenceAgent, type PoEditPresenceEntry, type PoEditPresenceLedger, type PoFederationCaller, type PoHostExecutionBudget, type PoHostExecutionPermit, type PoHostMediaArbitration, type PoNativeComposition, type PoOAuthRedirect, type PoOpenedRegisteredFile, type PoPeerAgentRegistry, type PoRegisteredFile, type PoRepositorySyncView, type PoRequestReceipt, type PoRequestReceiptKey, type PoRequestReceiptReservation, type PoRequestReceiptReserveResult, type PoRequestReceipts, type PoSessionCoordination, type PoSessionStarter, type PoSharedFile, type PoSocketMount, type PoWebComposition, createEditPresence, createExecutionBudget, createServerExecutionBudget, parsePoSessionStarter, parsePoSocketPath, poApiCallerFrom, poApiMountPath, poSessionStarterFrom, sharedExecutionBudget };
|
package/dist/packageApi.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { createExecutionBudget, createServerExecutionBudget, sharedExecutionBudget } from "./executionBudget.mjs";
|
|
2
|
-
import { PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, parsePoSocketPath, poApiCallerFrom, poApiMountPath } from "./src/schemas/packageApi.mjs";
|
|
3
|
-
|
|
2
|
+
import { PO_API_CALLER_ACCESS_HEADER, PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_FEDERATION_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_PEER_ADDRESS_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_EDIT_PRESENCE_CONTRACT, PO_EDIT_PRESENCE_SERVICE, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, parsePoSessionStarter, parsePoSocketPath, poApiCallerFrom, poApiMountPath, poSessionStarterFrom } from "./src/schemas/packageApi.mjs";
|
|
3
|
+
import { createEditPresence } from "./src/services/editPresence/index.mjs";
|
|
4
|
+
export { PO_API_CALLER_ACCESS_HEADER, PO_API_CALLER_DEVICE_ID_HEADER, PO_API_CALLER_FEDERATION_HEADER, PO_API_CALLER_HEADERS, PO_API_CALLER_LOCALITY_HEADER, PO_API_CALLER_STEP_UP_HEADER, PO_API_PEER_ADDRESS_HEADER, PO_API_ROUTE_PREFIX, PO_API_SCOPES, PO_EDIT_PRESENCE_CONTRACT, PO_EDIT_PRESENCE_SERVICE, PO_HUB_API_SESSION_QUERY_PARAM, PO_SHARE_FILE_REMOTE_OFF_MESSAGE, createEditPresence, createExecutionBudget, createServerExecutionBudget, parsePoSessionStarter, parsePoSocketPath, poApiCallerFrom, poApiMountPath, poSessionStarterFrom, sharedExecutionBudget };
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const
|
|
3
|
-
const require_index = require("./src/services/sessionFiles/index.cjs");
|
|
2
|
+
const require_runtime = require("./_virtual/_rolldown/runtime.cjs");
|
|
4
3
|
const require_packageApi = require("./src/schemas/packageApi.cjs");
|
|
5
|
-
require("./
|
|
6
|
-
const require_index$1 = require("./src/services/
|
|
4
|
+
const require_index = require("./src/services/serverHost/index.cjs");
|
|
5
|
+
const require_index$1 = require("./src/services/sessionFiles/index.cjs");
|
|
7
6
|
const require_serverScope = require("./src/server/serverScope.cjs");
|
|
7
|
+
const require_sessionFiles = require("./src/constants/sessionFiles.cjs");
|
|
8
8
|
require("./serverPlugin.cjs");
|
|
9
|
-
const require_index$2 = require("./src/services/
|
|
9
|
+
const require_index$2 = require("./src/services/telemetry/index.cjs");
|
|
10
|
+
const require_serverTelemetry = require("./serverTelemetry.cjs");
|
|
11
|
+
require("./packageApi.cjs");
|
|
12
|
+
const require_accessibleFile = require("./src/services/fileAccess/accessibleFile.cjs");
|
|
13
|
+
const require_index$3 = require("./src/services/fileAccess/index.cjs");
|
|
14
|
+
const require_index$4 = require("./src/services/traceContext/index.cjs");
|
|
15
|
+
let node_path = require("node:path");
|
|
16
|
+
node_path = require_runtime.__toESM(node_path, 1);
|
|
10
17
|
//#region src/server/packageApiServer.ts
|
|
11
18
|
/**
|
|
12
19
|
* A body that keeps streaming well after its headers went out is worth its own span. A fast
|
|
@@ -14,20 +21,32 @@ const require_index$2 = require("./src/services/traceContext/index.cjs");
|
|
|
14
21
|
* span per call made package API traffic 99.65% of all spans recorded in a two hour sample.
|
|
15
22
|
*/
|
|
16
23
|
const COMPLETION_SPAN_MIN_DURATION_MS = 1e3;
|
|
24
|
+
/** A body this large is worth a span however fast it flushed: big bodies drive heap spikes. */
|
|
25
|
+
const COMPLETION_SPAN_MIN_BYTES = 1048576;
|
|
26
|
+
/** A coarse body class, so a size can be attributed without recording a path or file name. */
|
|
27
|
+
function contentClass(contentType) {
|
|
28
|
+
const type = contentType?.split(";")[0]?.trim().toLowerCase() ?? "";
|
|
29
|
+
if (type === "") return "none";
|
|
30
|
+
if (type.startsWith("image/")) return "image";
|
|
31
|
+
if (type.endsWith("json")) return "json";
|
|
32
|
+
if (type.startsWith("text/")) return "text";
|
|
33
|
+
return "binary";
|
|
34
|
+
}
|
|
17
35
|
function describeError(error) {
|
|
18
36
|
return error instanceof Error ? error.message : String(error);
|
|
19
37
|
}
|
|
20
38
|
function responseWithCompletion(response, complete) {
|
|
21
39
|
if (response.body === null) {
|
|
22
|
-
complete();
|
|
40
|
+
complete(0);
|
|
23
41
|
return response;
|
|
24
42
|
}
|
|
25
43
|
const reader = response.body.getReader();
|
|
26
44
|
let completed = false;
|
|
45
|
+
let bytes = 0;
|
|
27
46
|
const finish = () => {
|
|
28
47
|
if (completed) return;
|
|
29
48
|
completed = true;
|
|
30
|
-
complete();
|
|
49
|
+
complete(bytes);
|
|
31
50
|
};
|
|
32
51
|
const body = new ReadableStream({
|
|
33
52
|
async pull(controller) {
|
|
@@ -36,7 +55,10 @@ function responseWithCompletion(response, complete) {
|
|
|
36
55
|
if (result.done) {
|
|
37
56
|
finish();
|
|
38
57
|
controller.close();
|
|
39
|
-
} else
|
|
58
|
+
} else {
|
|
59
|
+
bytes += result.value.byteLength;
|
|
60
|
+
controller.enqueue(result.value);
|
|
61
|
+
}
|
|
40
62
|
} catch (error) {
|
|
41
63
|
finish();
|
|
42
64
|
controller.error(error);
|
|
@@ -49,13 +71,37 @@ function responseWithCompletion(response, complete) {
|
|
|
49
71
|
});
|
|
50
72
|
return new Response(body, response);
|
|
51
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Reads files under the session's open folders; the hub's session `/file` route forwards here. A host with no
|
|
76
|
+
* local disk reads them through the platform's own file system, so a read never falls back to the host's.
|
|
77
|
+
*/
|
|
78
|
+
function sessionFilesApi(fileAccess, cwd, platform) {
|
|
79
|
+
return {
|
|
80
|
+
basePath: require_sessionFiles.SESSION_FILES_API,
|
|
81
|
+
start: () => ({
|
|
82
|
+
fetch: (request) => {
|
|
83
|
+
if (request.method !== "GET") return Response.json({ error: "Method not allowed." }, { status: 405 });
|
|
84
|
+
return require_accessibleFile.readAccessibleFile({
|
|
85
|
+
roots: fileAccess.roots(),
|
|
86
|
+
cwd,
|
|
87
|
+
filesystem: platform.env(cwd),
|
|
88
|
+
signal: request.signal,
|
|
89
|
+
path: new URL(request.url).searchParams.get("path"),
|
|
90
|
+
...request.headers.get("range") === null ? {} : { range: request.headers.get("range") },
|
|
91
|
+
...request.headers.get("if-match") === null ? {} : { expectedVersion: request.headers.get("if-match") }
|
|
92
|
+
});
|
|
93
|
+
},
|
|
94
|
+
close: () => void 0
|
|
95
|
+
})
|
|
96
|
+
};
|
|
97
|
+
}
|
|
52
98
|
/** Installs session packages and dispatches authenticated package API calls in-process. */
|
|
53
99
|
async function serveSessionApis(options) {
|
|
54
100
|
if (options.environment === void 0) throw new Error("Session package API server requires an admitted environment.");
|
|
55
101
|
if (options.directEvents === void 0) throw new Error("Session package API server requires direct events.");
|
|
56
102
|
options = {
|
|
57
103
|
...options,
|
|
58
|
-
environment: await require_index.prepareSessionEnvironment(options)
|
|
104
|
+
environment: await require_index$1.prepareSessionEnvironment(options)
|
|
59
105
|
};
|
|
60
106
|
const packages = options.packages ?? [];
|
|
61
107
|
const routesNothing = () => !options.preparePackages && options.parentScope === void 0;
|
|
@@ -66,27 +112,46 @@ async function serveSessionApis(options) {
|
|
|
66
112
|
const owningSessionService = options.sessionService;
|
|
67
113
|
const communication = owningSessionService?.bindCommunication?.(options.sessionId);
|
|
68
114
|
const ownedReadExecutionState = owningSessionService?.readExecutionState?.bind(owningSessionService);
|
|
115
|
+
const ownedReadMessages = owningSessionService?.readMessages?.bind(owningSessionService);
|
|
69
116
|
const ownedPrompt = owningSessionService?.prompt?.bind(owningSessionService);
|
|
70
117
|
const ownedAbort = owningSessionService?.abort?.bind(owningSessionService);
|
|
71
118
|
const ownedSteer = owningSessionService?.steer?.bind(owningSessionService);
|
|
72
119
|
const ownedRelease = owningSessionService?.release?.bind(owningSessionService);
|
|
73
120
|
const exposedSessionService = owningSessionService === void 0 ? void 0 : {
|
|
74
|
-
create: (request) => owningSessionService.create(request),
|
|
121
|
+
create: ({ startedBy: _startedBy, ...request }) => owningSessionService.create(request),
|
|
75
122
|
close: (sessionId) => owningSessionService.close(sessionId),
|
|
76
123
|
isLive: (sessionId) => owningSessionService.isLive(sessionId),
|
|
77
124
|
...ownedReadExecutionState === void 0 ? {} : { readExecutionState: (sessionId) => ownedReadExecutionState(sessionId, { parentSessionId: options.sessionId }) },
|
|
125
|
+
...ownedReadMessages === void 0 ? {} : { readMessages: (sessionId, readOptions) => ownedReadMessages(sessionId, {
|
|
126
|
+
...readOptions?.limit === void 0 ? {} : { limit: readOptions.limit },
|
|
127
|
+
parentSessionId: options.sessionId
|
|
128
|
+
}) },
|
|
78
129
|
...ownedPrompt === void 0 ? {} : { prompt: (sessionId, text, promptOptions) => ownedPrompt(sessionId, text, {
|
|
79
130
|
...promptOptions?.signal === void 0 ? {} : { signal: promptOptions.signal },
|
|
80
131
|
parentSessionId: options.sessionId
|
|
81
132
|
}) },
|
|
82
133
|
...ownedAbort === void 0 ? {} : { abort: (sessionId) => ownedAbort(sessionId, { parentSessionId: options.sessionId }) },
|
|
83
134
|
...ownedSteer === void 0 ? {} : { steer: (sessionId, message) => ownedSteer(sessionId, message, { parentSessionId: options.sessionId }) },
|
|
84
|
-
...ownedRelease === void 0 ? {} : { release: (sessionId) => ownedRelease(sessionId, {
|
|
85
|
-
|
|
135
|
+
...ownedRelease === void 0 ? {} : { release: (sessionId, releaseOptions) => ownedRelease(sessionId, {
|
|
136
|
+
...releaseOptions?.onlyIfIdle === void 0 ? {} : { onlyIfIdle: releaseOptions.onlyIfIdle },
|
|
137
|
+
parentSessionId: options.sessionId
|
|
138
|
+
}) },
|
|
139
|
+
...owningSessionService.canCommunicate === void 0 ? {} : { canCommunicate: (sourceSessionId, targetSessionId) => owningSessionService.canCommunicate?.(sourceSessionId, targetSessionId) === true },
|
|
140
|
+
...owningSessionService.mentions === void 0 ? {} : { mentions: {
|
|
141
|
+
list: (sourceSessionId) => sourceSessionId === options.sessionId ? owningSessionService.mentions.list(sourceSessionId) : {
|
|
142
|
+
active: [],
|
|
143
|
+
expired: []
|
|
144
|
+
},
|
|
145
|
+
expire: (sourceSessionId) => {
|
|
146
|
+
if (sourceSessionId === options.sessionId) owningSessionService.mentions.expire(sourceSessionId);
|
|
147
|
+
},
|
|
148
|
+
restore: (sourceSessionId, targetSessionId) => sourceSessionId === options.sessionId && owningSessionService.mentions.restore(sourceSessionId, targetSessionId)
|
|
149
|
+
} }
|
|
86
150
|
};
|
|
87
151
|
const context = {
|
|
88
152
|
scope: "session",
|
|
89
153
|
sessionId: options.sessionId,
|
|
154
|
+
...options.startedBy === void 0 ? {} : { startedBy: options.startedBy },
|
|
90
155
|
workspaceId: options.workspaceId,
|
|
91
156
|
workspaceRoot: options.workspaceRoot,
|
|
92
157
|
...options.sessionContext === void 0 ? {} : { sessionContext: options.sessionContext },
|
|
@@ -94,48 +159,66 @@ async function serveSessionApis(options) {
|
|
|
94
159
|
sessionStorage: options.platform.sessions,
|
|
95
160
|
cwd: options.cwd,
|
|
96
161
|
environment: options.environment,
|
|
162
|
+
...options.clientPlugins === void 0 ? {} : { clientPlugins: options.clientPlugins },
|
|
97
163
|
directEvents: options.directEvents,
|
|
164
|
+
...options.clientDevices === void 0 ? {} : { clientDevices: options.clientDevices },
|
|
98
165
|
...options.computerUse === void 0 ? {} : { computerUse: options.computerUse },
|
|
99
166
|
...options.shareFile === void 0 ? {} : { shareFile: options.shareFile },
|
|
167
|
+
...options.shareRegisteredFile === void 0 ? {} : { shareRegisteredFile: options.shareRegisteredFile },
|
|
100
168
|
...options.mediaArbitration === void 0 ? {} : { mediaArbitration: options.mediaArbitration },
|
|
101
169
|
...options.executionBudget === void 0 ? {} : { executionBudget: options.executionBudget },
|
|
102
|
-
...options.editPresence === void 0 ? {} : { editPresence: options.editPresence },
|
|
103
170
|
...options.peerAgents === void 0 ? {} : { peerAgents: options.peerAgents },
|
|
104
171
|
...options.requestApi === void 0 ? {} : { requestApi: options.requestApi },
|
|
105
172
|
...options.publishActivity === void 0 ? {} : { publishActivity: options.publishActivity },
|
|
173
|
+
...options.publishSummary === void 0 ? {} : { publishSummary: options.publishSummary },
|
|
174
|
+
...options.coordination === void 0 ? {} : { coordination: options.coordination },
|
|
106
175
|
...options.internalToken === void 0 ? {} : { internalToken: options.internalToken },
|
|
107
176
|
...options.hubToken === void 0 ? {} : { hubToken: options.hubToken },
|
|
108
177
|
...exposedSessionService === void 0 ? {} : { sessionService: exposedSessionService },
|
|
109
178
|
...communication === void 0 ? {} : { sessionCommunication: communication },
|
|
110
179
|
onNotice: options.onNotice
|
|
111
180
|
};
|
|
112
|
-
const host = require_index
|
|
181
|
+
const host = require_index.createPoServerHost({
|
|
113
182
|
scope: "session",
|
|
114
183
|
context,
|
|
115
184
|
mountChannel: options.mountChannel,
|
|
116
185
|
...options.pluginRegistry === void 0 ? {} : { pluginRegistry: options.pluginRegistry }
|
|
117
186
|
});
|
|
187
|
+
const fileAccess = require_index$3.createFileAccess();
|
|
188
|
+
const tempDirectory = options.environment[require_index$1.PO_SESSION_TEMP_DIR];
|
|
189
|
+
const sessionsTemp = tempDirectory !== void 0 && node_path.default.basename(node_path.default.dirname(tempDirectory)) === "sessions" ? node_path.default.dirname(tempDirectory) : tempDirectory;
|
|
190
|
+
for (const directory of [
|
|
191
|
+
options.cwd,
|
|
192
|
+
options.workspaceRoot,
|
|
193
|
+
sessionsTemp
|
|
194
|
+
]) if (directory !== void 0 && node_path.default.isAbsolute(directory)) fileAccess.register(directory);
|
|
118
195
|
let scope;
|
|
196
|
+
const installOptions = (failed) => ({
|
|
197
|
+
onNotice: options.onNotice,
|
|
198
|
+
...failed === void 0 ? {} : { onPackageFailed: (failure) => failed.push(failure) },
|
|
199
|
+
onPackageSettled: (report) => {
|
|
200
|
+
if (!options.telemetry) return;
|
|
201
|
+
require_serverTelemetry.observe(options.telemetry.recordEvent("po_server.package_install", {
|
|
202
|
+
"package.name": report.packageName,
|
|
203
|
+
"package.outcome": report.outcome,
|
|
204
|
+
duration_ms: report.durationMs,
|
|
205
|
+
scope: "session"
|
|
206
|
+
}), options.onNotice);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
119
209
|
try {
|
|
210
|
+
host.registerApi(sessionFilesApi(fileAccess, options.cwd, options.platform));
|
|
120
211
|
for (const api of options.apis) host.registerApi(api);
|
|
121
212
|
scope = await require_serverScope.PoServerScope.open("session", options.parentScope);
|
|
122
213
|
await scope.serve({
|
|
123
214
|
host,
|
|
124
215
|
platform: options.platform
|
|
125
216
|
});
|
|
126
|
-
await
|
|
127
|
-
|
|
128
|
-
onNotice: options.onNotice,
|
|
129
|
-
onPackageSettled: (report) => {
|
|
130
|
-
if (!options.telemetry) return;
|
|
131
|
-
require_serverTelemetry.observe(options.telemetry.recordEvent("po_server.package_install", {
|
|
132
|
-
"package.name": report.packageName,
|
|
133
|
-
"package.outcome": report.outcome,
|
|
134
|
-
duration_ms: report.durationMs,
|
|
135
|
-
scope: "session"
|
|
136
|
-
}), options.onNotice);
|
|
137
|
-
}
|
|
217
|
+
await scope.root.plugin((root) => {
|
|
218
|
+
root.provide(require_index$3.PO_FILE_ACCESS_SERVICE, fileAccess);
|
|
138
219
|
});
|
|
220
|
+
await options.preparePackages?.(scope.root);
|
|
221
|
+
const installed = await scope.install(packages, installOptions());
|
|
139
222
|
await options.activatePackages?.(installed);
|
|
140
223
|
} catch (error) {
|
|
141
224
|
await scope?.dispose();
|
|
@@ -153,7 +236,16 @@ async function serveSessionApis(options) {
|
|
|
153
236
|
};
|
|
154
237
|
}
|
|
155
238
|
const sessionScope = scope;
|
|
156
|
-
const
|
|
239
|
+
const reconcile = async (next, declared) => {
|
|
240
|
+
const failed = [];
|
|
241
|
+
const removed = (await sessionScope.install(next, installOptions(failed))).filter((name) => !declared.includes(name));
|
|
242
|
+
return {
|
|
243
|
+
installed: await sessionScope.uninstall(removed),
|
|
244
|
+
removed,
|
|
245
|
+
failed
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
const dispatch = async (request, admittedMember) => {
|
|
157
249
|
if (options.canDispatch?.() === false) return Response.json({ error: "Session selection is not ready." }, { status: 503 });
|
|
158
250
|
const url = new URL(request.url);
|
|
159
251
|
if (!url.pathname.startsWith(`/api/plugins/`)) return Response.json({ error: "Not found." }, { status: 404 });
|
|
@@ -163,40 +255,54 @@ async function serveSessionApis(options) {
|
|
|
163
255
|
const handler = sessionScope.apiHandler(basePath);
|
|
164
256
|
if (handler === void 0) return Response.json({ error: `No API '${basePath}' in this session.` }, { status: 404 });
|
|
165
257
|
url.pathname = slash === -1 ? "/" : rest.slice(slash);
|
|
258
|
+
const spanAttributes = {
|
|
259
|
+
"api.name": basePath,
|
|
260
|
+
"api.operation": sessionScope.apiOperation(basePath, request.method, url.pathname) ?? request.method
|
|
261
|
+
};
|
|
166
262
|
const startedAt = performance.now();
|
|
167
|
-
const parent = require_index$
|
|
263
|
+
const parent = require_index$4.validatedTraceContext(request.headers.get("traceparent"));
|
|
168
264
|
let childContext;
|
|
169
265
|
let response;
|
|
170
266
|
try {
|
|
171
267
|
const invoke = async (context) => {
|
|
172
268
|
if (options.canDispatch?.() === false || sessionScope.apiHandler(basePath) !== handler) return Response.json({ error: "Session selection changed before dispatch." }, { status: 503 });
|
|
173
269
|
childContext = context;
|
|
174
|
-
|
|
270
|
+
const incoming = new Request(url, request);
|
|
271
|
+
try {
|
|
272
|
+
return await handler.fetch(incoming, admittedMember);
|
|
273
|
+
} catch (error) {
|
|
274
|
+
if (incoming.signal.aborted && (error === incoming.signal.reason || error instanceof require_index$2.OperationCancelledError)) return new Response(null, { status: 499 });
|
|
275
|
+
throw error;
|
|
276
|
+
}
|
|
175
277
|
};
|
|
176
|
-
response = options.telemetry ? await options.telemetry.runInSpan("po_server.package_api.request",
|
|
177
|
-
api: basePath,
|
|
178
|
-
method: request.method
|
|
179
|
-
}, invoke, parent) : await invoke();
|
|
278
|
+
response = options.telemetry ? await options.telemetry.runInSpan("po_server.package_api.request", spanAttributes, invoke, parent) : await invoke();
|
|
180
279
|
} catch (error) {
|
|
181
|
-
if (request.signal.aborted) return new Response(null, { status: 499 });
|
|
182
280
|
options.onNotice(`package API '${basePath}' failed on ${url.pathname} (${describeError(error)})`);
|
|
183
281
|
response = Response.json({ error: `The '${basePath}' API failed.` }, { status: 500 });
|
|
184
282
|
}
|
|
185
|
-
|
|
283
|
+
const headersAt = performance.now();
|
|
284
|
+
return responseWithCompletion(response, (responseBytes) => {
|
|
186
285
|
if (!options.telemetry) return;
|
|
187
|
-
const
|
|
188
|
-
|
|
286
|
+
const now = performance.now();
|
|
287
|
+
const durationMs = Math.round(now - startedAt);
|
|
288
|
+
if (response.status < 400 && now - headersAt < 1e3 && responseBytes < 1048576) return;
|
|
289
|
+
const requestBytes = Number(request.headers.get("content-length"));
|
|
189
290
|
require_serverTelemetry.observe(options.telemetry.runInSpan("po_server.package_api.complete", {
|
|
190
|
-
|
|
191
|
-
method: request.method,
|
|
291
|
+
...spanAttributes,
|
|
192
292
|
status_code: response.status,
|
|
193
|
-
duration_ms: durationMs
|
|
293
|
+
duration_ms: durationMs,
|
|
294
|
+
response_bytes: responseBytes,
|
|
295
|
+
response_kind: contentClass(response.headers.get("content-type")),
|
|
296
|
+
...Number.isFinite(requestBytes) && requestBytes > 0 ? { request_bytes: requestBytes } : {}
|
|
194
297
|
}, async () => void 0, childContext ?? parent), options.onNotice);
|
|
195
298
|
});
|
|
196
299
|
};
|
|
197
300
|
let closePromise;
|
|
198
301
|
return {
|
|
302
|
+
operation: (basePath, method, path) => scope?.apiOperation(basePath, method, path),
|
|
199
303
|
request: dispatch,
|
|
304
|
+
reconcile,
|
|
305
|
+
injectsAny: (names) => sessionScope.injectsAny(names),
|
|
200
306
|
close: () => {
|
|
201
307
|
closePromise ??= (async () => {
|
|
202
308
|
await scope.dispose();
|
|
@@ -208,7 +314,9 @@ async function serveSessionApis(options) {
|
|
|
208
314
|
};
|
|
209
315
|
}
|
|
210
316
|
//#endregion
|
|
317
|
+
exports.COMPLETION_SPAN_MIN_BYTES = COMPLETION_SPAN_MIN_BYTES;
|
|
211
318
|
exports.COMPLETION_SPAN_MIN_DURATION_MS = COMPLETION_SPAN_MIN_DURATION_MS;
|
|
319
|
+
exports.contentClass = contentClass;
|
|
212
320
|
exports.serveSessionApis = serveSessionApis;
|
|
213
321
|
|
|
214
322
|
//# sourceMappingURL=packageApiServer.cjs.map
|