@agimon-ai/po-core 0.0.0-alpha.170 → 0.0.0-alpha.172
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":1,"platformRequirements":{},"sourceFiles":["NOTICE","README.md","licenses/Codex-Apache-2.0.txt","package.json","runtimeEntries.json","src/constants/agentSettled.ts","src/constants/auth.ts","src/constants/cloud.ts","src/constants/contextApi.ts","src/constants/globalSettings.ts","src/constants/modelGateway.ts","src/constants/nativeHost.ts","src/constants/remote.ts","src/constants/sessionFiles.ts","src/constants/template.ts","src/constants/voiceReloadHandoff.ts","src/constants/voiceTools.ts","src/exports/agentModel.ts","src/exports/apiContracts.ts","src/exports/approval.ts","src/exports/askUser.ts","src/exports/backgroundWork.ts","src/exports/bundleAssetPolicy.ts","src/exports/chatgptAuth.ts","src/exports/childProcess.ts","src/exports/childSession.ts","src/exports/clientDevices.ts","src/exports/clientMetadata.ts","src/exports/codemode.ts","src/exports/config.ts","src/exports/contextApi.ts","src/exports/contextContributions.ts","src/exports/cordisHost.ts","src/exports/delegation.ts","src/exports/extensionFile.ts","src/exports/footer.ts","src/exports/headless.ts","src/exports/help.ts","src/exports/history.ts","src/exports/hubChannel.ts","src/exports/images.ts","src/exports/index.ts","src/exports/inputTemplate.ts","src/exports/json.ts","src/exports/kernel.ts","src/exports/leader.ts","src/exports/logSinkTelemetry.ts","src/exports/main.ts","src/exports/mcp.ts","src/exports/mcpFacet.ts","src/exports/mcpProjection.ts","src/exports/mcpSession.ts","src/exports/mcpStatus.ts","src/exports/mcpToolResolver.ts","src/exports/mcpWidget.ts","src/exports/modelGateway.ts","src/exports/narration.ts","src/exports/native.ts","src/exports/notification.ts","src/exports/packageApi.ts","src/exports/pairingPage.ts","src/exports/personTimeZone.ts","src/exports/piSettings.ts","src/exports/platform.ts","src/exports/pluginProtocol.ts","src/exports/profileIdentity.ts","src/exports/protocol.ts","src/exports/protocolTransport.ts","src/exports/providerAuth.ts","src/exports/readiness.ts","src/exports/remoteChildSession.ts","src/exports/remoteContract.ts","src/exports/remoteOrigin.ts","src/exports/sandboxIdentity.ts","src/exports/server.ts","src/exports/serverPlugin.ts","src/exports/sessionMcpContract.ts","src/exports/sessionProtocol.ts","src/exports/skills.ts","src/exports/telemetry.ts","src/exports/testMode.ts","src/exports/testing.ts","src/exports/toolNames.ts","src/exports/toolOverrides.ts","src/exports/toolSurface.ts","src/exports/transition.ts","src/exports/uiHub.ts","src/exports/voiceReloadHandoff.ts","src/exports/voiceTools.ts","src/exports/web.ts","src/exports/webTesting.ts","src/exports/workflow.ts","src/exports/workspaceRegistry.ts","src/exports/workspaceSandboxes.ts","src/extensions/extensionFile.ts","src/extensions/serverPlugin.ts","src/extensions/webPlugin.ts","src/pi/cordisHost.ts","src/pi/piSessionRuntime.ts","src/schemas/agentModel.ts","src/schemas/agentRun.ts","src/schemas/apiContracts.ts","src/schemas/approval.ts","src/schemas/approvalPrompt.ts","src/schemas/askUser.ts","src/schemas/backgroundWork.ts","src/schemas/brain.ts","src/schemas/builtinApiContracts.ts","src/schemas/childProcess.ts","src/schemas/clientDevices.ts","src/schemas/clientMetadata.ts","src/schemas/codemode.ts","src/schemas/config.ts","src/schemas/contextContributions.ts","src/schemas/delegation.ts","src/schemas/extensionFile.ts","src/schemas/federation.ts","src/schemas/footer.ts","src/schemas/headless.ts","src/schemas/help.ts","src/schemas/home.ts","src/schemas/hostServiceContracts.ts","src/schemas/hostServices.ts","src/schemas/hostTeam.ts","src/schemas/httpApiContracts.ts","src/schemas/hubChannel.ts","src/schemas/identity.ts","src/schemas/leader.ts","src/schemas/mcp.ts","src/schemas/mcpBundle.ts","src/schemas/mcpFacet.ts","src/schemas/mcpProjection.ts","src/schemas/mcpSession.ts","src/schemas/mcpStatus.ts","src/schemas/mcpToolResolver.ts","src/schemas/modelGateway.ts","src/schemas/narration.ts","src/schemas/notification.ts","src/schemas/packageApi.ts","src/schemas/personTimeZone.ts","src/schemas/platform.ts","src/schemas/pluginCatalog.ts","src/schemas/pluginContributions.ts","src/schemas/pluginMarketplace.ts","src/schemas/pluginProtocol.ts","src/schemas/profileIdentity.ts","src/schemas/protocol.ts","src/schemas/protocolChannelsContract.ts","src/schemas/protocolContracts.ts","src/schemas/protocolHubContract.ts","src/schemas/protocolService.ts","src/schemas/protocolSessionContract.ts","src/schemas/protocolThreadContract.ts","src/schemas/readiness.ts","src/schemas/remoteApiContracts.ts","src/schemas/remoteGateway.ts","src/schemas/remoteOrigin.ts","src/schemas/sandboxIdentity.ts","src/schemas/serverBundle.ts","src/schemas/serverPlugin.ts","src/schemas/serverScope.ts","src/schemas/sessionApiContracts.ts","src/schemas/sessionMcpActivity.ts","src/schemas/sessionProtocol.ts","src/schemas/sharedModels.ts","src/schemas/skills.ts","src/schemas/space.ts","src/schemas/toolOverrides.ts","src/schemas/toolSurface.ts","src/schemas/transition.ts","src/schemas/transportApiContracts.ts","src/schemas/uiHub.ts","src/schemas/voiceReloadHandoff.ts","src/schemas/voiceTools.ts","src/schemas/workflow.ts","src/schemas/workspaceRegistry.ts","src/schemas/workspaceSandboxes.ts","src/server/contextApi.ts","src/server/conversationEvents.ts","src/server/directHarnessRuntime.ts","src/server/harnessErrorMessage.ts","src/server/headlessHub.ts","src/server/headlessProtocol.ts","src/server/headlessServer.ts","src/server/largeFrameLink.ts","src/server/liveImport.ts","src/server/machineApi.ts","src/server/mcpBundleLoader.ts","src/server/packageApiServer.ts","src/server/providerRoutes.ts","src/server/providerRuntime.ts","src/server/serverPackages.ts","src/server/serverScope.ts","src/server/sessionFilesApi.ts","src/server/threadJournals.ts","src/services/apiContracts/index.ts","src/services/apiSurfaceAssert/index.ts","src/services/approvalGate/index.ts","src/services/approvalGate/type.ts","src/services/bundlePublication/index.ts","src/services/chatgptAuth/index.ts","src/services/chatgptImages/index.ts","src/services/chatgptImages/type.ts","src/services/chatgptLogin/index.ts","src/services/chatgptWebSearch/index.ts","src/services/chordAdapter/index.ts","src/services/chordAdapter/type.ts","src/services/clientDevices/index.ts","src/services/clientMetadata/_lib/codec.ts","src/services/clientMetadata/_lib/deviceLabel.ts","src/services/contextApiUrls/index.ts","src/services/contextContributions/index.ts","src/services/contextDetail/index.ts","src/services/contextDetailStore/index.edge.ts","src/services/contextDetailStore/index.ts","src/services/contextProjection/index.ts","src/services/contextUsage/index.ts","src/services/durableNavigation/docs.ts","src/services/durableNavigation/index.ts","src/services/durableQueue/docs.ts","src/services/durableQueue/index.ts","src/services/durableRequestReceipts/docs.ts","src/services/durableRequestReceipts/index.ts","src/services/durableResumeSnapshots/docs.ts","src/services/durableResumeSnapshots/index.ts","src/services/durableResumeSnapshots/type.ts","src/services/durableSession/docs.ts","src/services/durableSession/index.ts","src/services/durableSubagents/docs.ts","src/services/durableSubagents/extension.ts","src/services/durableSubagents/index.ts","src/services/durableSubagents/tasks.ts","src/services/edgeModelRuntime/index.ts","src/services/edgeModelRuntime/type.ts","src/services/editPresence/index.ts","src/services/executionBudget/index.edge.ts","src/services/executionBudget/index.ts","src/services/fileAccess/accessibleFile.edge.ts","src/services/fileAccess/accessibleFile.ts","src/services/fileAccess/core.ts","src/services/fileAccess/index.ts","src/services/fileAccess/type.ts","src/services/guardedFile/index.edge.ts","src/services/guardedFile/index.ts","src/services/headlessClient/index.ts","src/services/historyCreationFileSystem/index.ts","src/services/historyOwnership/index.ts","src/services/historyOwnership/type.ts","src/services/hostServices/index.ts","src/services/hubChannelHarness/index.ts","src/services/inputTemplate/index.ts","src/services/inputTemplate/type.ts","src/services/json/core.ts","src/services/json/index.ts","src/services/json/sync.edge.ts","src/services/json/sync.ts","src/services/kernel/index.ts","src/services/logSinkTelemetry/index.ts","src/services/loginFlow/index.ts","src/services/mcpSchemaCost/index.ts","src/services/modelGatewayContainer/index.ts","src/services/modelGatewayContainer/type.ts","src/services/modelGatewayExecutor/index.ts","src/services/modelGatewayExecutor/type.ts","src/services/modelGatewayHost/index.ts","src/services/modelGatewayHost/type.ts","src/services/modelGatewayWire/index.ts","src/services/moduleResolution/index.ts","src/services/nativeChildTools/index.edge.ts","src/services/nativeChildTools/index.ts","src/services/nodeHost/index.edge.ts","src/services/nodeHost/index.ts","src/services/nodeModelDependencies/index.edge.ts","src/services/nodeModelDependencies/index.ts","src/services/nodePlatform/index.edge.ts","src/services/nodePlatform/index.ts","src/services/openSessionRegistry/index.ts","src/services/openSessionRegistry/openSessionRecords.ts","src/services/openSessionRegistry/sync.edge.ts","src/services/openSessionRegistry/sync.ts","src/services/packageApiHarness/index.ts","src/services/packageContentRevision/index.ts","src/services/packageResource/index.edge.ts","src/services/packageResource/index.ts","src/services/pairingPage/index.ts","src/services/piArgs/index.edge.ts","src/services/piArgs/index.ts","src/services/piExtensionHost/index.ts","src/services/piHelpTools/index.ts","src/services/piMessages/index.ts","src/services/piSessionEntries/index.ts","src/services/piSettings/core.ts","src/services/piSettings/index.ts","src/services/piSettings/sync.edge.ts","src/services/piSettings/sync.ts","src/services/piSummary/index.edge.ts","src/services/piSummary/index.ts","src/services/piSummary/type.ts","src/services/platformFiles/index.ts","src/services/platformFiles/rootBoundReplace.edge.ts","src/services/platformFiles/rootBoundReplace.ts","src/services/pluginLifecycle/index.ts","src/services/poPackage/core.ts","src/services/poPackage/index.ts","src/services/poPackage/sync.edge.ts","src/services/poPackage/sync.ts","src/services/poTelemetry/index.edge.ts","src/services/poTelemetry/index.ts","src/services/portableConfig/index.ts","src/services/providerAuth/index.ts","src/services/providerImages/fitter.ts","src/services/providerImages/index.edge.ts","src/services/providerImages/index.ts","src/services/runtimeIdentity/index.ts","src/services/runtimeIdentity/sync.edge.ts","src/services/runtimeIdentity/sync.ts","src/services/runtimePackages/index.ts","src/services/scopeInput/index.ts","src/services/serialRunner/index.ts","src/services/serverHost/index.ts","src/services/serverTelemetry/index.edge.ts","src/services/serverTelemetry/index.ts","src/services/sessionAccess/index.ts","src/services/sessionAccess/type.ts","src/services/sessionAttachments/index.edge.ts","src/services/sessionAttachments/index.ts","src/services/sessionAttachments/type.ts","src/services/sessionFiles/index.ts","src/services/sessionFiles/sessionDirectory.edge.ts","src/services/sessionFiles/sessionDirectory.ts","src/services/sessionGitStatus/index.ts","src/services/sessionGitStatus/type.ts","src/services/sessionMcpRoutePaths/index.ts","src/services/sessionPresentation/index.ts","src/services/sessionWorkspaceMove/index.ts","src/services/sessionWorkspaceMove/type.ts","src/services/skillPrompt/index.ts","src/services/sqliteSessionHistory/index.ts","src/services/sqliteSessionStorage/index.ts","src/services/sqliteTranscriptReader/index.ts","src/services/telemetry/index.ts","src/services/testMode/index.ts","src/services/toolContinuation/index.ts","src/services/toolCost/index.ts","src/services/toolInventory/index.ts","src/services/toolNames/index.ts","src/services/toolOverrides/index.ts","src/services/toolPrompt/index.ts","src/services/toolSurface/index.ts","src/services/traceContext/index.ts","src/services/transcriptPages/index.ts","src/services/transitionClassifier/index.ts","src/services/transitionCoordinator/index.ts","src/services/voiceReloadHandoff/index.ts","src/services/voiceToolsContract/index.ts","src/services/webCompositions/index.ts","src/services/workspaceLookup/index.ts","src/services/workspaceRegistry/index.ts","src/services/workspaceRegistry/sync.edge.ts","src/services/workspaceRegistry/sync.ts","src/services/workspaceRegistry/workspaceRecords.ts","src/services/workspaceSandboxes/index.ts","src/systems/child/adapters/headlessChildSessionService.ts","src/systems/child/adapters/remoteChildSessionService.ts","src/systems/child/services/childSession/index.ts","src/systems/child/types/childSession.ts","src/systems/child/types/childSessionInput.ts","src/systems/child/types/remoteChildSession.ts","src/systems/main/adapters/headlessHost.ts","src/systems/main/adapters/headlessSessionHost.ts","src/systems/main/adapters/headlessSessionManager.ts","src/systems/main/types/headlessHost.ts","src/systems/main/types/headlessSessionHost.ts","src/systems/main/types/headlessSessionManager.ts","src/testing/pi/extensionScenarios.ts","src/testing/pi/testHost.ts","src/types/config.ts","src/types/contextApi.ts","src/types/kernel.ts","src/types/remote.ts","src/types/server/agentSessionForward.ts","src/types/server/auth.ts","src/types/server/directHarnessRuntime.ts","src/types/server/headlessClient.ts","src/types/server/session.ts","src/types/server/sessionMcp.ts","src/types/server/sessionToolSurface.ts","src/types/telemetry.ts","src/web/hostSlots.ts","src/web/models/globalStore.ts","src/web/models/sessionStore.ts","src/web/models/workspaceStore.ts","src/web/schemas/bundleAssetPolicy.ts","src/web/schemas/onboarding.ts","src/web/schemas/template.ts","src/web/services/apiClient/index.ts","src/web/services/apiPaths/index.ts","src/web/services/apiRoutes/index.ts","src/web/services/hubRevisions/index.ts","src/web/services/mcpWidget.ts","src/web/services/nativeApiTransport/index.ts","src/web/services/nativeByteCodec/index.ts","src/web/services/nativeByteCodec/type.ts","src/web/services/railSteps/index.ts","src/web/services/sessionRegistry/index.ts","src/web/services/testing/channels.ts","src/web/services/testing/index.ts","src/web/services/testing/rpcStub.ts","src/web/services/testing/slotProps.ts","src/web/services/testing/templateRail.ts","src/web/services/toolResult/index.ts","src/web/types/extensionFile.ts","src/web/types/mcpWidget.ts","src/web/types/modelContext.ts","src/web/types/nativeTemplate.ts","src/web/types/sessionRegistry.ts","src/web/types/template.ts","src/web/types/webPlugin.ts","tsdown.config.ts"],"sourceRevision":"889aaaac123ee150390c4999d2ae3ad7","manifestRevision":"a3d21de9274f4dfb8578584ffe552ded","outputFiles":["NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/agentModel.cjs","dist/agentModel.mjs","dist/apiContracts.cjs","dist/apiContracts.mjs","dist/approval.cjs","dist/approval.mjs","dist/askUser.cjs","dist/askUser.mjs","dist/backgroundWork.cjs","dist/backgroundWork.mjs","dist/bundleAssetPolicy.cjs","dist/bundleAssetPolicy.mjs","dist/chatgptAuth.cjs","dist/chatgptAuth.mjs","dist/childProcess.cjs","dist/childProcess.mjs","dist/childSession.cjs","dist/childSession.mjs","dist/clientDevices.cjs","dist/clientDevices.mjs","dist/clientMetadata.cjs","dist/clientMetadata.mjs","dist/codemode.cjs","dist/codemode.mjs","dist/config.cjs","dist/config.mjs","dist/contextApi.cjs","dist/contextApi.mjs","dist/contextContributions.cjs","dist/contextContributions.mjs","dist/contextDetail.cjs","dist/contextDetail.mjs","dist/contextDetailStore.cjs","dist/contextDetailStore.mjs","dist/contextProjection.cjs","dist/contextProjection.mjs","dist/cordisHost.cjs","dist/cordisHost.mjs","dist/delegation.cjs","dist/delegation.mjs","dist/executionBudget.cjs","dist/executionBudget.mjs","dist/extensionFile.cjs","dist/extensionFile.mjs","dist/footer.cjs","dist/footer.mjs","dist/headless.cjs","dist/headless.mjs","dist/headlessHub.cjs","dist/headlessHub.mjs","dist/headlessProtocol.cjs","dist/headlessProtocol.mjs","dist/headlessServer.cjs","dist/headlessServer.mjs","dist/headlessSessionHost.cjs","dist/headlessSessionHost.mjs","dist/headlessSessionManager.cjs","dist/headlessSessionManager.mjs","dist/help.cjs","dist/help.mjs","dist/history.cjs","dist/history.mjs","dist/historyOwnership.cjs","dist/historyOwnership.mjs","dist/hubChannel.cjs","dist/hubChannel.mjs","dist/images.cjs","dist/images.mjs","dist/index.cjs","dist/index.mjs","dist/inputTemplate.cjs","dist/inputTemplate.mjs","dist/interop/chord.mjs","dist/interop/chordContext.mjs","dist/interop/piCodingAgent.mjs","dist/json.cjs","dist/json.mjs","dist/kernel.cjs","dist/kernel.mjs","dist/leader.cjs","dist/leader.mjs","dist/logSinkTelemetry.cjs","dist/logSinkTelemetry.mjs","dist/machineApi.cjs","dist/machineApi.mjs","dist/main.cjs","dist/main.mjs","dist/mcp.cjs","dist/mcp.mjs","dist/mcpFacet.cjs","dist/mcpFacet.mjs","dist/mcpProjection.cjs","dist/mcpProjection.mjs","dist/mcpSchemaCost.cjs","dist/mcpSchemaCost.mjs","dist/mcpSession.cjs","dist/mcpSession.mjs","dist/mcpStatus.cjs","dist/mcpStatus.mjs","dist/mcpToolResolver.cjs","dist/mcpToolResolver.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/modelGateway.cjs","dist/modelGateway.mjs","dist/moduleResolution.cjs","dist/moduleResolution.mjs","dist/narration.cjs","dist/narration.mjs","dist/native.cjs","dist/native.mjs","dist/nodePlatform.cjs","dist/nodePlatform.mjs","dist/notification.cjs","dist/notification.mjs","dist/packageApi.cjs","dist/packageApi.mjs","dist/packageApiServer.cjs","dist/packageApiServer.mjs","dist/pairingPage.cjs","dist/pairingPage.mjs","dist/personTimeZone.cjs","dist/personTimeZone.mjs","dist/piSettings.cjs","dist/piSettings.mjs","dist/platform.cjs","dist/platform.mjs","dist/pluginProtocol.cjs","dist/pluginProtocol.mjs","dist/poPackage.cjs","dist/poPackage.mjs","dist/profileIdentity.cjs","dist/profileIdentity.mjs","dist/protocol.cjs","dist/protocol.mjs","dist/protocolTransport.cjs","dist/protocolTransport.mjs","dist/providerAuth.cjs","dist/providerAuth.mjs","dist/readiness.cjs","dist/readiness.mjs","dist/remoteChildSession.cjs","dist/remoteChildSession.mjs","dist/remoteContract.cjs","dist/remoteContract.mjs","dist/remoteOrigin.cjs","dist/remoteOrigin.mjs","dist/runtimeConfig.cjs","dist/runtimeConfig.mjs","dist/runtimeContextApi.cjs","dist/runtimeContextApi.mjs","dist/runtimeCordisHost.cjs","dist/runtimeCordisHost.mjs","dist/runtimeHeadlessSessionManager.cjs","dist/runtimeHeadlessSessionManager.mjs","dist/runtimeIdentity.cjs","dist/runtimeIdentity.mjs","dist/runtimeJson.cjs","dist/runtimeJson.mjs","dist/runtimeLogSinkTelemetry.cjs","dist/runtimeLogSinkTelemetry.mjs","dist/runtimePackages.cjs","dist/runtimePackages.mjs","dist/runtimePiSettings.cjs","dist/runtimePiSettings.mjs","dist/runtimeProtocol.cjs","dist/runtimeProtocol.mjs","dist/runtimeToolNames.cjs","dist/runtimeToolNames.mjs","dist/runtimeTransition.cjs","dist/runtimeTransition.mjs","dist/sandboxIdentity.cjs","dist/sandboxIdentity.mjs","dist/server.cjs","dist/server.mjs","dist/serverPlugin.cjs","dist/serverPlugin.mjs","dist/serverTelemetry.cjs","dist/serverTelemetry.mjs","dist/sessionFilesApi.cjs","dist/sessionFilesApi.mjs","dist/sessionMcpContract.cjs","dist/sessionMcpContract.mjs","dist/sessionProtocol.cjs","dist/sessionProtocol.mjs","dist/skills.cjs","dist/skills.mjs","dist/sqliteSessionStorage.cjs","dist/sqliteSessionStorage.mjs","dist/src/constants/agentSettled.cjs","dist/src/constants/agentSettled.mjs","dist/src/constants/cloud.cjs","dist/src/constants/cloud.mjs","dist/src/constants/contextApi.cjs","dist/src/constants/contextApi.mjs","dist/src/constants/globalSettings.cjs","dist/src/constants/globalSettings.mjs","dist/src/constants/modelGateway.cjs","dist/src/constants/modelGateway.mjs","dist/src/constants/nativeHost.cjs","dist/src/constants/nativeHost.mjs","dist/src/constants/remote.cjs","dist/src/constants/remote.mjs","dist/src/constants/sessionFiles.cjs","dist/src/constants/sessionFiles.mjs","dist/src/constants/template.cjs","dist/src/constants/template.mjs","dist/src/constants/voiceReloadHandoff.cjs","dist/src/constants/voiceReloadHandoff.mjs","dist/src/constants/voiceTools.cjs","dist/src/constants/voiceTools.mjs","dist/src/extensions/extensionFile.cjs","dist/src/extensions/extensionFile.mjs","dist/src/extensions/serverPlugin.cjs","dist/src/extensions/serverPlugin.mjs","dist/src/extensions/webPlugin.cjs","dist/src/extensions/webPlugin.mjs","dist/src/pi/piSessionRuntime.cjs","dist/src/pi/piSessionRuntime.mjs","dist/src/schemas/agentModel.cjs","dist/src/schemas/agentModel.mjs","dist/src/schemas/agentRun.cjs","dist/src/schemas/agentRun.mjs","dist/src/schemas/approval.cjs","dist/src/schemas/approval.mjs","dist/src/schemas/approvalPrompt.cjs","dist/src/schemas/approvalPrompt.mjs","dist/src/schemas/askUser.cjs","dist/src/schemas/askUser.mjs","dist/src/schemas/backgroundWork.cjs","dist/src/schemas/backgroundWork.mjs","dist/src/schemas/brain.cjs","dist/src/schemas/brain.mjs","dist/src/schemas/childProcess.cjs","dist/src/schemas/childProcess.mjs","dist/src/schemas/codemode.cjs","dist/src/schemas/codemode.mjs","dist/src/schemas/contextContributions.cjs","dist/src/schemas/contextContributions.mjs","dist/src/schemas/delegation.cjs","dist/src/schemas/delegation.mjs","dist/src/schemas/federation.cjs","dist/src/schemas/federation.mjs","dist/src/schemas/footer.cjs","dist/src/schemas/footer.mjs","dist/src/schemas/headless.cjs","dist/src/schemas/headless.mjs","dist/src/schemas/help.cjs","dist/src/schemas/help.mjs","dist/src/schemas/home.cjs","dist/src/schemas/home.mjs","dist/src/schemas/hostServiceContracts.cjs","dist/src/schemas/hostServiceContracts.mjs","dist/src/schemas/hostServices.cjs","dist/src/schemas/hostServices.mjs","dist/src/schemas/hostTeam.cjs","dist/src/schemas/hostTeam.mjs","dist/src/schemas/httpApiContracts.cjs","dist/src/schemas/httpApiContracts.mjs","dist/src/schemas/hubChannel.cjs","dist/src/schemas/hubChannel.mjs","dist/src/schemas/identity.cjs","dist/src/schemas/identity.mjs","dist/src/schemas/leader.cjs","dist/src/schemas/leader.mjs","dist/src/schemas/mcp.cjs","dist/src/schemas/mcp.mjs","dist/src/schemas/mcpFacet.cjs","dist/src/schemas/mcpFacet.mjs","dist/src/schemas/mcpProjection.cjs","dist/src/schemas/mcpProjection.mjs","dist/src/schemas/mcpSession.cjs","dist/src/schemas/mcpSession.mjs","dist/src/schemas/mcpStatus.cjs","dist/src/schemas/mcpStatus.mjs","dist/src/schemas/mcpToolResolver.cjs","dist/src/schemas/mcpToolResolver.mjs","dist/src/schemas/modelGateway.cjs","dist/src/schemas/modelGateway.mjs","dist/src/schemas/narration.cjs","dist/src/schemas/narration.mjs","dist/src/schemas/notification.cjs","dist/src/schemas/notification.mjs","dist/src/schemas/packageApi.cjs","dist/src/schemas/packageApi.mjs","dist/src/schemas/personTimeZone.cjs","dist/src/schemas/personTimeZone.mjs","dist/src/schemas/platform.cjs","dist/src/schemas/platform.mjs","dist/src/schemas/pluginCatalog.cjs","dist/src/schemas/pluginCatalog.mjs","dist/src/schemas/pluginContributions.cjs","dist/src/schemas/pluginContributions.mjs","dist/src/schemas/pluginProtocol.cjs","dist/src/schemas/pluginProtocol.mjs","dist/src/schemas/profileIdentity.cjs","dist/src/schemas/profileIdentity.mjs","dist/src/schemas/protocolChannelsContract.cjs","dist/src/schemas/protocolChannelsContract.mjs","dist/src/schemas/protocolContracts.cjs","dist/src/schemas/protocolContracts.mjs","dist/src/schemas/protocolHubContract.cjs","dist/src/schemas/protocolHubContract.mjs","dist/src/schemas/protocolService.cjs","dist/src/schemas/protocolService.mjs","dist/src/schemas/protocolSessionContract.cjs","dist/src/schemas/protocolSessionContract.mjs","dist/src/schemas/protocolThreadContract.cjs","dist/src/schemas/protocolThreadContract.mjs","dist/src/schemas/readiness.cjs","dist/src/schemas/readiness.mjs","dist/src/schemas/remoteGateway.cjs","dist/src/schemas/remoteGateway.mjs","dist/src/schemas/remoteOrigin.cjs","dist/src/schemas/remoteOrigin.mjs","dist/src/schemas/sandboxIdentity.cjs","dist/src/schemas/sandboxIdentity.mjs","dist/src/schemas/serverPlugin.cjs","dist/src/schemas/serverPlugin.mjs","dist/src/schemas/serverScope.cjs","dist/src/schemas/serverScope.mjs","dist/src/schemas/sessionApiContracts.cjs","dist/src/schemas/sessionApiContracts.mjs","dist/src/schemas/sessionProtocol.cjs","dist/src/schemas/sessionProtocol.mjs","dist/src/schemas/sharedModels.cjs","dist/src/schemas/sharedModels.mjs","dist/src/schemas/skills.cjs","dist/src/schemas/skills.mjs","dist/src/schemas/space.cjs","dist/src/schemas/space.mjs","dist/src/schemas/toolOverrides.cjs","dist/src/schemas/toolOverrides.mjs","dist/src/schemas/toolSurface.cjs","dist/src/schemas/toolSurface.mjs","dist/src/schemas/uiHub.cjs","dist/src/schemas/uiHub.mjs","dist/src/schemas/voiceReloadHandoff.cjs","dist/src/schemas/voiceReloadHandoff.mjs","dist/src/schemas/voiceTools.cjs","dist/src/schemas/voiceTools.mjs","dist/src/schemas/workflow.cjs","dist/src/schemas/workflow.mjs","dist/src/schemas/workspaceRegistry.cjs","dist/src/schemas/workspaceRegistry.mjs","dist/src/schemas/workspaceSandboxes.cjs","dist/src/schemas/workspaceSandboxes.mjs","dist/src/server/conversationEvents.cjs","dist/src/server/conversationEvents.mjs","dist/src/server/directHarnessRuntime.cjs","dist/src/server/directHarnessRuntime.mjs","dist/src/server/harnessErrorMessage.cjs","dist/src/server/harnessErrorMessage.mjs","dist/src/server/largeFrameLink.cjs","dist/src/server/largeFrameLink.mjs","dist/src/server/liveImport.cjs","dist/src/server/liveImport.mjs","dist/src/server/mcpBundleLoader.cjs","dist/src/server/mcpBundleLoader.mjs","dist/src/server/providerRoutes.cjs","dist/src/server/providerRoutes.mjs","dist/src/server/providerRuntime.cjs","dist/src/server/providerRuntime.mjs","dist/src/server/serverPackages.cjs","dist/src/server/serverPackages.mjs","dist/src/server/serverScope.cjs","dist/src/server/serverScope.mjs","dist/src/server/threadJournals.cjs","dist/src/server/threadJournals.mjs","dist/src/services/apiSurfaceAssert/index.cjs","dist/src/services/apiSurfaceAssert/index.mjs","dist/src/services/approvalGate/index.cjs","dist/src/services/approvalGate/index.mjs","dist/src/services/bundlePublication/index.cjs","dist/src/services/bundlePublication/index.mjs","dist/src/services/chatgptAuth/index.cjs","dist/src/services/chatgptAuth/index.mjs","dist/src/services/chatgptImages/index.cjs","dist/src/services/chatgptImages/index.mjs","dist/src/services/chatgptLogin/index.cjs","dist/src/services/chatgptLogin/index.mjs","dist/src/services/chatgptWebSearch/index.cjs","dist/src/services/chatgptWebSearch/index.mjs","dist/src/services/chordAdapter/index.cjs","dist/src/services/chordAdapter/index.mjs","dist/src/services/clientDevices/index.cjs","dist/src/services/clientDevices/index.mjs","dist/src/services/clientMetadata/_lib/codec.cjs","dist/src/services/clientMetadata/_lib/codec.mjs","dist/src/services/clientMetadata/_lib/deviceLabel.cjs","dist/src/services/clientMetadata/_lib/deviceLabel.mjs","dist/src/services/contextApiUrls/index.cjs","dist/src/services/contextApiUrls/index.mjs","dist/src/services/contextContributions/index.cjs","dist/src/services/contextContributions/index.mjs","dist/src/services/contextUsage/index.cjs","dist/src/services/contextUsage/index.mjs","dist/src/services/durableNavigation/docs.cjs","dist/src/services/durableNavigation/docs.mjs","dist/src/services/durableNavigation/index.cjs","dist/src/services/durableNavigation/index.mjs","dist/src/services/durableQueue/docs.cjs","dist/src/services/durableQueue/docs.mjs","dist/src/services/durableQueue/index.cjs","dist/src/services/durableQueue/index.mjs","dist/src/services/durableRequestReceipts/docs.cjs","dist/src/services/durableRequestReceipts/docs.mjs","dist/src/services/durableRequestReceipts/index.cjs","dist/src/services/durableRequestReceipts/index.mjs","dist/src/services/durableResumeSnapshots/docs.cjs","dist/src/services/durableResumeSnapshots/docs.mjs","dist/src/services/durableResumeSnapshots/index.cjs","dist/src/services/durableResumeSnapshots/index.mjs","dist/src/services/durableSession/docs.cjs","dist/src/services/durableSession/docs.mjs","dist/src/services/durableSession/index.cjs","dist/src/services/durableSession/index.mjs","dist/src/services/durableSubagents/docs.cjs","dist/src/services/durableSubagents/docs.mjs","dist/src/services/durableSubagents/extension.cjs","dist/src/services/durableSubagents/extension.mjs","dist/src/services/durableSubagents/index.cjs","dist/src/services/durableSubagents/index.mjs","dist/src/services/durableSubagents/tasks.cjs","dist/src/services/durableSubagents/tasks.mjs","dist/src/services/edgeModelRuntime/index.cjs","dist/src/services/edgeModelRuntime/index.mjs","dist/src/services/editPresence/index.cjs","dist/src/services/editPresence/index.mjs","dist/src/services/fileAccess/accessibleFile.cjs","dist/src/services/fileAccess/accessibleFile.mjs","dist/src/services/fileAccess/core.cjs","dist/src/services/fileAccess/core.mjs","dist/src/services/fileAccess/index.cjs","dist/src/services/fileAccess/index.mjs","dist/src/services/guardedFile/index.cjs","dist/src/services/guardedFile/index.mjs","dist/src/services/headlessClient/index.cjs","dist/src/services/headlessClient/index.mjs","dist/src/services/hostServices/index.cjs","dist/src/services/hostServices/index.mjs","dist/src/services/hubChannelHarness/index.cjs","dist/src/services/hubChannelHarness/index.mjs","dist/src/services/inputTemplate/index.cjs","dist/src/services/inputTemplate/index.mjs","dist/src/services/json/core.cjs","dist/src/services/json/core.mjs","dist/src/services/json/sync.cjs","dist/src/services/json/sync.mjs","dist/src/services/kernel/index.cjs","dist/src/services/kernel/index.mjs","dist/src/services/loginFlow/index.cjs","dist/src/services/loginFlow/index.mjs","dist/src/services/modelGatewayContainer/index.cjs","dist/src/services/modelGatewayContainer/index.mjs","dist/src/services/modelGatewayExecutor/index.cjs","dist/src/services/modelGatewayExecutor/index.mjs","dist/src/services/modelGatewayHost/index.cjs","dist/src/services/modelGatewayHost/index.mjs","dist/src/services/modelGatewayWire/index.cjs","dist/src/services/modelGatewayWire/index.mjs","dist/src/services/nativeChildTools/index.cjs","dist/src/services/nativeChildTools/index.mjs","dist/src/services/nodeHost/index.cjs","dist/src/services/nodeHost/index.mjs","dist/src/services/nodeModelDependencies/index.cjs","dist/src/services/nodeModelDependencies/index.mjs","dist/src/services/openSessionRegistry/index.cjs","dist/src/services/openSessionRegistry/index.mjs","dist/src/services/openSessionRegistry/openSessionRecords.cjs","dist/src/services/openSessionRegistry/openSessionRecords.mjs","dist/src/services/openSessionRegistry/sync.cjs","dist/src/services/openSessionRegistry/sync.mjs","dist/src/services/packageApiHarness/index.cjs","dist/src/services/packageApiHarness/index.mjs","dist/src/services/packageContentRevision/index.cjs","dist/src/services/packageContentRevision/index.mjs","dist/src/services/packageResource/index.cjs","dist/src/services/packageResource/index.mjs","dist/src/services/pairingPage/index.cjs","dist/src/services/pairingPage/index.mjs","dist/src/services/piArgs/index.cjs","dist/src/services/piArgs/index.mjs","dist/src/services/piExtensionHost/index.cjs","dist/src/services/piExtensionHost/index.mjs","dist/src/services/piHelpTools/index.cjs","dist/src/services/piHelpTools/index.mjs","dist/src/services/piMessages/index.cjs","dist/src/services/piMessages/index.mjs","dist/src/services/piSessionEntries/index.cjs","dist/src/services/piSessionEntries/index.mjs","dist/src/services/piSettings/core.cjs","dist/src/services/piSettings/core.mjs","dist/src/services/piSettings/sync.cjs","dist/src/services/piSettings/sync.mjs","dist/src/services/piSummary/index.cjs","dist/src/services/piSummary/index.mjs","dist/src/services/platformFiles/index.cjs","dist/src/services/platformFiles/index.mjs","dist/src/services/platformFiles/rootBoundReplace.cjs","dist/src/services/platformFiles/rootBoundReplace.mjs","dist/src/services/pluginLifecycle/index.cjs","dist/src/services/pluginLifecycle/index.mjs","dist/src/services/poPackage/core.cjs","dist/src/services/poPackage/core.mjs","dist/src/services/poPackage/sync.cjs","dist/src/services/poPackage/sync.mjs","dist/src/services/poTelemetry/index.cjs","dist/src/services/poTelemetry/index.mjs","dist/src/services/portableConfig/index.cjs","dist/src/services/portableConfig/index.mjs","dist/src/services/providerAuth/index.cjs","dist/src/services/providerAuth/index.mjs","dist/src/services/providerImages/fitter.cjs","dist/src/services/providerImages/fitter.mjs","dist/src/services/providerImages/index.cjs","dist/src/services/providerImages/index.mjs","dist/src/services/runtimeIdentity/sync.cjs","dist/src/services/runtimeIdentity/sync.mjs","dist/src/services/scopeInput/index.cjs","dist/src/services/scopeInput/index.mjs","dist/src/services/serialRunner/index.cjs","dist/src/services/serialRunner/index.mjs","dist/src/services/serverHost/index.cjs","dist/src/services/serverHost/index.mjs","dist/src/services/sessionAccess/index.cjs","dist/src/services/sessionAccess/index.mjs","dist/src/services/sessionAttachments/index.cjs","dist/src/services/sessionAttachments/index.mjs","dist/src/services/sessionFiles/index.cjs","dist/src/services/sessionFiles/index.mjs","dist/src/services/sessionFiles/sessionDirectory.cjs","dist/src/services/sessionFiles/sessionDirectory.mjs","dist/src/services/sessionGitStatus/index.cjs","dist/src/services/sessionGitStatus/index.mjs","dist/src/services/sessionMcpRoutePaths/index.cjs","dist/src/services/sessionMcpRoutePaths/index.mjs","dist/src/services/sessionPresentation/index.cjs","dist/src/services/sessionPresentation/index.mjs","dist/src/services/sessionWorkspaceMove/index.cjs","dist/src/services/sessionWorkspaceMove/index.mjs","dist/src/services/skillPrompt/index.cjs","dist/src/services/skillPrompt/index.mjs","dist/src/services/sqliteSessionHistory/index.cjs","dist/src/services/sqliteSessionHistory/index.mjs","dist/src/services/sqliteTranscriptReader/index.cjs","dist/src/services/sqliteTranscriptReader/index.mjs","dist/src/services/telemetry/index.cjs","dist/src/services/telemetry/index.mjs","dist/src/services/testMode/index.cjs","dist/src/services/testMode/index.mjs","dist/src/services/toolContinuation/index.cjs","dist/src/services/toolContinuation/index.mjs","dist/src/services/toolCost/index.cjs","dist/src/services/toolCost/index.mjs","dist/src/services/toolOverrides/index.cjs","dist/src/services/toolOverrides/index.mjs","dist/src/services/toolPrompt/index.cjs","dist/src/services/toolPrompt/index.mjs","dist/src/services/toolSurface/index.cjs","dist/src/services/toolSurface/index.mjs","dist/src/services/traceContext/index.cjs","dist/src/services/traceContext/index.mjs","dist/src/services/transcriptPages/index.cjs","dist/src/services/transcriptPages/index.mjs","dist/src/services/voiceReloadHandoff/index.cjs","dist/src/services/voiceReloadHandoff/index.mjs","dist/src/services/voiceToolsContract/index.cjs","dist/src/services/voiceToolsContract/index.mjs","dist/src/services/workspaceLookup/index.cjs","dist/src/services/workspaceLookup/index.mjs","dist/src/services/workspaceRegistry/index.cjs","dist/src/services/workspaceRegistry/index.mjs","dist/src/services/workspaceRegistry/sync.cjs","dist/src/services/workspaceRegistry/sync.mjs","dist/src/services/workspaceRegistry/workspaceRecords.cjs","dist/src/services/workspaceRegistry/workspaceRecords.mjs","dist/src/services/workspaceSandboxes/index.cjs","dist/src/services/workspaceSandboxes/index.mjs","dist/src/systems/child/adapters/headlessChildSessionService.cjs","dist/src/systems/child/adapters/headlessChildSessionService.mjs","dist/src/systems/child/adapters/remoteChildSessionService.cjs","dist/src/systems/child/adapters/remoteChildSessionService.mjs","dist/src/systems/child/services/childSession/index.cjs","dist/src/systems/child/services/childSession/index.mjs","dist/src/systems/child/types/childSession.cjs","dist/src/systems/child/types/childSession.mjs","dist/src/systems/main/adapters/headlessHost.cjs","dist/src/systems/main/adapters/headlessHost.mjs","dist/src/systems/main/adapters/headlessSessionHost.cjs","dist/src/systems/main/adapters/headlessSessionHost.mjs","dist/src/testing/pi/extensionScenarios.cjs","dist/src/testing/pi/extensionScenarios.mjs","dist/src/testing/pi/testHost.cjs","dist/src/testing/pi/testHost.mjs","dist/src/web/hostSlots.cjs","dist/src/web/hostSlots.mjs","dist/src/web/models/globalStore.cjs","dist/src/web/models/globalStore.mjs","dist/src/web/models/sessionStore.cjs","dist/src/web/models/sessionStore.mjs","dist/src/web/models/workspaceStore.cjs","dist/src/web/models/workspaceStore.mjs","dist/src/web/schemas/bundleAssetPolicy.cjs","dist/src/web/schemas/bundleAssetPolicy.mjs","dist/src/web/schemas/onboarding.cjs","dist/src/web/schemas/onboarding.mjs","dist/src/web/schemas/template.cjs","dist/src/web/schemas/template.mjs","dist/src/web/services/apiClient/index.cjs","dist/src/web/services/apiClient/index.mjs","dist/src/web/services/apiPaths/index.cjs","dist/src/web/services/apiPaths/index.mjs","dist/src/web/services/apiRoutes/index.cjs","dist/src/web/services/apiRoutes/index.mjs","dist/src/web/services/hubRevisions/index.cjs","dist/src/web/services/hubRevisions/index.mjs","dist/src/web/services/mcpWidget.cjs","dist/src/web/services/mcpWidget.mjs","dist/src/web/services/nativeApiTransport/index.cjs","dist/src/web/services/nativeApiTransport/index.mjs","dist/src/web/services/nativeByteCodec/index.cjs","dist/src/web/services/nativeByteCodec/index.mjs","dist/src/web/services/railSteps/index.cjs","dist/src/web/services/railSteps/index.mjs","dist/src/web/services/sessionRegistry/index.cjs","dist/src/web/services/sessionRegistry/index.mjs","dist/src/web/services/testing/channels.cjs","dist/src/web/services/testing/channels.mjs","dist/src/web/services/testing/index.cjs","dist/src/web/services/testing/index.mjs","dist/src/web/services/testing/rpcStub.cjs","dist/src/web/services/testing/rpcStub.mjs","dist/src/web/services/testing/slotProps.cjs","dist/src/web/services/testing/slotProps.mjs","dist/src/web/services/testing/templateRail.cjs","dist/src/web/services/testing/templateRail.mjs","dist/src/web/services/toolResult/index.cjs","dist/src/web/services/toolResult/index.mjs","dist/telemetry.cjs","dist/telemetry.mjs","dist/testMode.cjs","dist/testMode.mjs","dist/testing.cjs","dist/testing.mjs","dist/toolInventory.cjs","dist/toolInventory.mjs","dist/toolNames.cjs","dist/toolNames.mjs","dist/toolOverrides.cjs","dist/toolOverrides.mjs","dist/toolSurface.cjs","dist/toolSurface.mjs","dist/transition.cjs","dist/transition.d.cjs","dist/transition.mjs","dist/transitionClassifier.cjs","dist/transitionClassifier.mjs","dist/transitionCoordinator.cjs","dist/transitionCoordinator.mjs","dist/typesContextApi.cjs","dist/typesContextApi.mjs","dist/uiHub.cjs","dist/uiHub.mjs","dist/vendor/upm/LICENSE","dist/vendor/upm/_chunks/cli.mjs","dist/vendor/upm/_chunks/exec.mjs","dist/vendor/upm/_chunks/foreign-lock.mjs","dist/vendor/upm/_chunks/index-upgrade.mjs","dist/vendor/upm/_chunks/limit.mjs","dist/vendor/upm/_chunks/link-pool.mjs","dist/vendor/upm/_chunks/main.mjs","dist/vendor/upm/_chunks/metadata.mjs","dist/vendor/upm/_chunks/metadata2.mjs","dist/vendor/upm/_chunks/mirror.mjs","dist/vendor/upm/_chunks/newer.mjs","dist/vendor/upm/_chunks/overrides.mjs","dist/vendor/upm/_chunks/overrides2.mjs","dist/vendor/upm/_chunks/progress.mjs","dist/vendor/upm/_chunks/registry-pool.mjs","dist/vendor/upm/_chunks/registry.mjs","dist/vendor/upm/_chunks/resolve.mjs","dist/vendor/upm/_chunks/shim.mjs","dist/vendor/upm/_chunks/store-backend.mjs","dist/vendor/upm/_chunks/tarball-deps.mjs","dist/vendor/upm/_chunks/trace.mjs","dist/vendor/upm/_chunks/tree-lock.mjs","dist/vendor/upm/_chunks/unpack-pool.mjs","dist/vendor/upm/_chunks/unpack.mjs","dist/vendor/upm/_chunks/verify.mjs","dist/vendor/upm/_chunks/vouch.mjs","dist/vendor/upm/_chunks/workspaces.mjs","dist/vendor/upm/index.mjs","dist/vendor/upm/resolver.mjs","dist/vendor/upm/upm.mjs","dist/vendor/upm/upx.mjs","dist/voiceReloadHandoff.cjs","dist/voiceReloadHandoff.mjs","dist/voiceTools.cjs","dist/voiceTools.mjs","dist/web.cjs","dist/web.mjs","dist/webCompositions.cjs","dist/webCompositions.mjs","dist/webTesting.cjs","dist/webTesting.mjs","dist/workflow.cjs","dist/workflow.mjs","dist/workspaceRegistry.cjs","dist/workspaceRegistry.mjs","dist/workspaceSandboxes.cjs","dist/workspaceSandboxes.mjs","licenses/Codex-Apache-2.0.txt"],"outputRevision":"6b4c6596963a218abd15be66e029beca"}
|
|
1
|
+
{"version":1,"platformRequirements":{},"sourceFiles":["NOTICE","README.md","licenses/Codex-Apache-2.0.txt","package.json","runtimeEntries.json","src/constants/agentSettled.ts","src/constants/auth.ts","src/constants/cloud.ts","src/constants/contextApi.ts","src/constants/globalSettings.ts","src/constants/modelGateway.ts","src/constants/nativeHost.ts","src/constants/remote.ts","src/constants/sessionFiles.ts","src/constants/template.ts","src/constants/voiceReloadHandoff.ts","src/constants/voiceTools.ts","src/exports/agentModel.ts","src/exports/apiContracts.ts","src/exports/approval.ts","src/exports/askUser.ts","src/exports/backgroundWork.ts","src/exports/bundleAssetPolicy.ts","src/exports/chatgptAuth.ts","src/exports/childProcess.ts","src/exports/childSession.ts","src/exports/clientDevices.ts","src/exports/clientMetadata.ts","src/exports/codemode.ts","src/exports/config.ts","src/exports/contextApi.ts","src/exports/contextContributions.ts","src/exports/cordisHost.ts","src/exports/delegation.ts","src/exports/extensionFile.ts","src/exports/footer.ts","src/exports/headless.ts","src/exports/help.ts","src/exports/history.ts","src/exports/hubChannel.ts","src/exports/images.ts","src/exports/index.ts","src/exports/inputTemplate.ts","src/exports/json.ts","src/exports/kernel.ts","src/exports/leader.ts","src/exports/logSinkTelemetry.ts","src/exports/main.ts","src/exports/mcp.ts","src/exports/mcpFacet.ts","src/exports/mcpProjection.ts","src/exports/mcpSession.ts","src/exports/mcpStatus.ts","src/exports/mcpToolResolver.ts","src/exports/mcpWidget.ts","src/exports/modelGateway.ts","src/exports/narration.ts","src/exports/native.ts","src/exports/notification.ts","src/exports/packageApi.ts","src/exports/pairingPage.ts","src/exports/personTimeZone.ts","src/exports/piSettings.ts","src/exports/platform.ts","src/exports/pluginProtocol.ts","src/exports/profileIdentity.ts","src/exports/protocol.ts","src/exports/protocolTransport.ts","src/exports/providerAuth.ts","src/exports/readiness.ts","src/exports/remoteChildSession.ts","src/exports/remoteContract.ts","src/exports/remoteOrigin.ts","src/exports/sandboxIdentity.ts","src/exports/server.ts","src/exports/serverPlugin.ts","src/exports/sessionMcpContract.ts","src/exports/sessionProtocol.ts","src/exports/skills.ts","src/exports/telemetry.ts","src/exports/testMode.ts","src/exports/testing.ts","src/exports/toolNames.ts","src/exports/toolOverrides.ts","src/exports/toolSurface.ts","src/exports/transition.ts","src/exports/uiHub.ts","src/exports/voiceReloadHandoff.ts","src/exports/voiceTools.ts","src/exports/web.ts","src/exports/webTesting.ts","src/exports/workflow.ts","src/exports/workspaceRegistry.ts","src/exports/workspaceSandboxes.ts","src/extensions/extensionFile.ts","src/extensions/serverPlugin.ts","src/extensions/webPlugin.ts","src/pi/cordisHost.ts","src/pi/piSessionRuntime.ts","src/schemas/agentModel.ts","src/schemas/agentRun.ts","src/schemas/apiContracts.ts","src/schemas/approval.ts","src/schemas/approvalPrompt.ts","src/schemas/askUser.ts","src/schemas/backgroundWork.ts","src/schemas/brain.ts","src/schemas/builtinApiContracts.ts","src/schemas/childProcess.ts","src/schemas/clientDevices.ts","src/schemas/clientMetadata.ts","src/schemas/codemode.ts","src/schemas/config.ts","src/schemas/contextContributions.ts","src/schemas/delegation.ts","src/schemas/extensionFile.ts","src/schemas/federation.ts","src/schemas/footer.ts","src/schemas/headless.ts","src/schemas/help.ts","src/schemas/home.ts","src/schemas/hostServiceContracts.ts","src/schemas/hostServices.ts","src/schemas/hostTeam.ts","src/schemas/httpApiContracts.ts","src/schemas/hubChannel.ts","src/schemas/identity.ts","src/schemas/leader.ts","src/schemas/mcp.ts","src/schemas/mcpBundle.ts","src/schemas/mcpFacet.ts","src/schemas/mcpProjection.ts","src/schemas/mcpSession.ts","src/schemas/mcpStatus.ts","src/schemas/mcpToolResolver.ts","src/schemas/modelGateway.ts","src/schemas/narration.ts","src/schemas/notification.ts","src/schemas/packageApi.ts","src/schemas/personTimeZone.ts","src/schemas/platform.ts","src/schemas/pluginCatalog.ts","src/schemas/pluginContributions.ts","src/schemas/pluginMarketplace.ts","src/schemas/pluginProtocol.ts","src/schemas/profileIdentity.ts","src/schemas/protocol.ts","src/schemas/protocolChannelsContract.ts","src/schemas/protocolContracts.ts","src/schemas/protocolHubContract.ts","src/schemas/protocolService.ts","src/schemas/protocolSessionContract.ts","src/schemas/protocolThreadContract.ts","src/schemas/readiness.ts","src/schemas/remoteApiContracts.ts","src/schemas/remoteGateway.ts","src/schemas/remoteOrigin.ts","src/schemas/sandboxIdentity.ts","src/schemas/serverBundle.ts","src/schemas/serverPlugin.ts","src/schemas/serverScope.ts","src/schemas/sessionApiContracts.ts","src/schemas/sessionMcpActivity.ts","src/schemas/sessionProtocol.ts","src/schemas/sharedModels.ts","src/schemas/skills.ts","src/schemas/space.ts","src/schemas/toolOverrides.ts","src/schemas/toolSurface.ts","src/schemas/transition.ts","src/schemas/transportApiContracts.ts","src/schemas/uiHub.ts","src/schemas/voiceReloadHandoff.ts","src/schemas/voiceTools.ts","src/schemas/workflow.ts","src/schemas/workspaceRegistry.ts","src/schemas/workspaceSandboxes.ts","src/server/contextApi.ts","src/server/conversationEvents.ts","src/server/directHarnessRuntime.ts","src/server/harnessErrorMessage.ts","src/server/headlessHub.ts","src/server/headlessProtocol.ts","src/server/headlessServer.ts","src/server/largeFrameLink.ts","src/server/liveImport.ts","src/server/machineApi.ts","src/server/mcpBundleLoader.ts","src/server/packageApiServer.ts","src/server/providerRoutes.ts","src/server/providerRuntime.ts","src/server/serverPackages.ts","src/server/serverScope.ts","src/server/sessionFilesApi.ts","src/server/threadJournals.ts","src/services/apiContracts/index.ts","src/services/apiSurfaceAssert/index.ts","src/services/approvalGate/index.ts","src/services/approvalGate/type.ts","src/services/bundlePublication/index.ts","src/services/chatgptAuth/index.ts","src/services/chatgptImages/index.ts","src/services/chatgptImages/type.ts","src/services/chatgptLogin/index.ts","src/services/chatgptWebSearch/index.ts","src/services/chordAdapter/index.ts","src/services/chordAdapter/type.ts","src/services/clientDevices/index.ts","src/services/clientMetadata/_lib/codec.ts","src/services/clientMetadata/_lib/deviceLabel.ts","src/services/contextApiUrls/index.ts","src/services/contextContributions/index.ts","src/services/contextDetail/index.ts","src/services/contextDetailStore/index.edge.ts","src/services/contextDetailStore/index.ts","src/services/contextProjection/index.ts","src/services/contextUsage/index.ts","src/services/durableNavigation/docs.ts","src/services/durableNavigation/index.ts","src/services/durableQueue/docs.ts","src/services/durableQueue/index.ts","src/services/durableRequestReceipts/docs.ts","src/services/durableRequestReceipts/index.ts","src/services/durableResumeSnapshots/docs.ts","src/services/durableResumeSnapshots/index.ts","src/services/durableResumeSnapshots/type.ts","src/services/durableSession/docs.ts","src/services/durableSession/index.ts","src/services/durableSubagents/docs.ts","src/services/durableSubagents/extension.ts","src/services/durableSubagents/index.ts","src/services/durableSubagents/tasks.ts","src/services/edgeModelRuntime/index.ts","src/services/edgeModelRuntime/type.ts","src/services/editPresence/index.ts","src/services/executionBudget/index.edge.ts","src/services/executionBudget/index.ts","src/services/fileAccess/accessibleFile.edge.ts","src/services/fileAccess/accessibleFile.ts","src/services/fileAccess/core.ts","src/services/fileAccess/index.ts","src/services/fileAccess/type.ts","src/services/guardedFile/index.edge.ts","src/services/guardedFile/index.ts","src/services/headlessClient/index.ts","src/services/historyCreationFileSystem/index.ts","src/services/historyOwnership/index.ts","src/services/historyOwnership/type.ts","src/services/hostServices/index.ts","src/services/hubChannelHarness/index.ts","src/services/inputTemplate/index.ts","src/services/inputTemplate/type.ts","src/services/json/core.ts","src/services/json/index.ts","src/services/json/sync.edge.ts","src/services/json/sync.ts","src/services/kernel/index.ts","src/services/logSinkTelemetry/index.ts","src/services/loginFlow/index.ts","src/services/mcpSchemaCost/index.ts","src/services/modelGatewayContainer/index.ts","src/services/modelGatewayContainer/type.ts","src/services/modelGatewayExecutor/index.ts","src/services/modelGatewayExecutor/type.ts","src/services/modelGatewayHost/index.ts","src/services/modelGatewayHost/type.ts","src/services/modelGatewayWire/index.ts","src/services/moduleResolution/index.ts","src/services/nativeChildTools/index.edge.ts","src/services/nativeChildTools/index.ts","src/services/nodeHost/index.edge.ts","src/services/nodeHost/index.ts","src/services/nodeModelDependencies/index.edge.ts","src/services/nodeModelDependencies/index.ts","src/services/nodePlatform/index.edge.ts","src/services/nodePlatform/index.ts","src/services/openSessionRegistry/index.ts","src/services/openSessionRegistry/openSessionRecords.ts","src/services/openSessionRegistry/sync.edge.ts","src/services/openSessionRegistry/sync.ts","src/services/packageApiHarness/index.ts","src/services/packageContentRevision/index.ts","src/services/packageResource/index.edge.ts","src/services/packageResource/index.ts","src/services/pairingPage/index.ts","src/services/piArgs/index.edge.ts","src/services/piArgs/index.ts","src/services/piExtensionHost/index.ts","src/services/piHelpTools/index.ts","src/services/piMessages/index.ts","src/services/piSessionEntries/index.ts","src/services/piSettings/core.ts","src/services/piSettings/index.ts","src/services/piSettings/sync.edge.ts","src/services/piSettings/sync.ts","src/services/piSummary/index.edge.ts","src/services/piSummary/index.ts","src/services/piSummary/type.ts","src/services/platformFiles/index.ts","src/services/platformFiles/rootBoundReplace.edge.ts","src/services/platformFiles/rootBoundReplace.ts","src/services/pluginLifecycle/index.ts","src/services/poPackage/core.ts","src/services/poPackage/index.ts","src/services/poPackage/sync.edge.ts","src/services/poPackage/sync.ts","src/services/poTelemetry/index.edge.ts","src/services/poTelemetry/index.ts","src/services/portableConfig/index.ts","src/services/providerAuth/index.ts","src/services/providerImages/fitter.ts","src/services/providerImages/index.edge.ts","src/services/providerImages/index.ts","src/services/runtimeIdentity/index.ts","src/services/runtimeIdentity/sync.edge.ts","src/services/runtimeIdentity/sync.ts","src/services/runtimePackages/index.ts","src/services/scopeInput/index.ts","src/services/serialRunner/index.ts","src/services/serverHost/index.ts","src/services/serverTelemetry/index.edge.ts","src/services/serverTelemetry/index.ts","src/services/sessionAccess/index.ts","src/services/sessionAccess/type.ts","src/services/sessionAttachments/index.edge.ts","src/services/sessionAttachments/index.ts","src/services/sessionAttachments/type.ts","src/services/sessionFiles/index.ts","src/services/sessionFiles/sessionDirectory.edge.ts","src/services/sessionFiles/sessionDirectory.ts","src/services/sessionGitStatus/index.ts","src/services/sessionGitStatus/type.ts","src/services/sessionMcpRoutePaths/index.ts","src/services/sessionPresentation/index.ts","src/services/sessionWorkspaceMove/index.ts","src/services/sessionWorkspaceMove/type.ts","src/services/skillPrompt/index.ts","src/services/sqliteSessionHistory/index.ts","src/services/sqliteSessionStorage/index.ts","src/services/sqliteTranscriptReader/index.ts","src/services/telemetry/index.ts","src/services/testMode/index.ts","src/services/toolContinuation/index.ts","src/services/toolCost/index.ts","src/services/toolInventory/index.ts","src/services/toolNames/index.ts","src/services/toolOverrides/index.ts","src/services/toolPrompt/index.ts","src/services/toolSurface/index.ts","src/services/traceContext/index.ts","src/services/transcriptPages/index.ts","src/services/transitionClassifier/index.ts","src/services/transitionCoordinator/index.ts","src/services/voiceReloadHandoff/index.ts","src/services/voiceToolsContract/index.ts","src/services/webCompositions/index.ts","src/services/workspaceLookup/index.ts","src/services/workspaceRegistry/index.ts","src/services/workspaceRegistry/sync.edge.ts","src/services/workspaceRegistry/sync.ts","src/services/workspaceRegistry/workspaceRecords.ts","src/services/workspaceSandboxes/index.ts","src/systems/child/adapters/headlessChildSessionService.ts","src/systems/child/adapters/remoteChildSessionService.ts","src/systems/child/services/childSession/index.ts","src/systems/child/types/childSession.ts","src/systems/child/types/childSessionInput.ts","src/systems/child/types/remoteChildSession.ts","src/systems/main/adapters/headlessHost.ts","src/systems/main/adapters/headlessSessionHost.ts","src/systems/main/adapters/headlessSessionManager.ts","src/systems/main/types/headlessHost.ts","src/systems/main/types/headlessSessionHost.ts","src/systems/main/types/headlessSessionManager.ts","src/testing/pi/extensionScenarios.ts","src/testing/pi/testHost.ts","src/types/config.ts","src/types/contextApi.ts","src/types/kernel.ts","src/types/remote.ts","src/types/server/agentSessionForward.ts","src/types/server/auth.ts","src/types/server/directHarnessRuntime.ts","src/types/server/headlessClient.ts","src/types/server/session.ts","src/types/server/sessionMcp.ts","src/types/server/sessionToolSurface.ts","src/types/telemetry.ts","src/web/hostSlots.ts","src/web/models/globalStore.ts","src/web/models/sessionStore.ts","src/web/models/workspaceStore.ts","src/web/schemas/bundleAssetPolicy.ts","src/web/schemas/onboarding.ts","src/web/schemas/template.ts","src/web/services/apiClient/index.ts","src/web/services/apiPaths/index.ts","src/web/services/apiRoutes/index.ts","src/web/services/hubRevisions/index.ts","src/web/services/mcpWidget.ts","src/web/services/nativeApiTransport/index.ts","src/web/services/nativeByteCodec/index.ts","src/web/services/nativeByteCodec/type.ts","src/web/services/railSteps/index.ts","src/web/services/sessionRegistry/index.ts","src/web/services/testing/channels.ts","src/web/services/testing/index.ts","src/web/services/testing/rpcStub.ts","src/web/services/testing/slotProps.ts","src/web/services/testing/templateRail.ts","src/web/services/toolResult/index.ts","src/web/types/extensionFile.ts","src/web/types/mcpWidget.ts","src/web/types/modelContext.ts","src/web/types/nativeTemplate.ts","src/web/types/sessionRegistry.ts","src/web/types/template.ts","src/web/types/webPlugin.ts","tsdown.config.ts"],"sourceRevision":"e69976ee13f5c88130b6b9b0ab393a11","manifestRevision":"a4d7bc56b4f00a79669dd6fe96c40bf4","outputFiles":["NOTICE","README.md","dist/_virtual/_rolldown/runtime.cjs","dist/agentModel.cjs","dist/agentModel.mjs","dist/apiContracts.cjs","dist/apiContracts.mjs","dist/approval.cjs","dist/approval.mjs","dist/askUser.cjs","dist/askUser.mjs","dist/backgroundWork.cjs","dist/backgroundWork.mjs","dist/bundleAssetPolicy.cjs","dist/bundleAssetPolicy.mjs","dist/chatgptAuth.cjs","dist/chatgptAuth.mjs","dist/childProcess.cjs","dist/childProcess.mjs","dist/childSession.cjs","dist/childSession.mjs","dist/clientDevices.cjs","dist/clientDevices.mjs","dist/clientMetadata.cjs","dist/clientMetadata.mjs","dist/codemode.cjs","dist/codemode.mjs","dist/config.cjs","dist/config.mjs","dist/contextApi.cjs","dist/contextApi.mjs","dist/contextContributions.cjs","dist/contextContributions.mjs","dist/contextDetail.cjs","dist/contextDetail.mjs","dist/contextDetailStore.cjs","dist/contextDetailStore.mjs","dist/contextProjection.cjs","dist/contextProjection.mjs","dist/cordisHost.cjs","dist/cordisHost.mjs","dist/delegation.cjs","dist/delegation.mjs","dist/executionBudget.cjs","dist/executionBudget.mjs","dist/extensionFile.cjs","dist/extensionFile.mjs","dist/footer.cjs","dist/footer.mjs","dist/headless.cjs","dist/headless.mjs","dist/headlessHub.cjs","dist/headlessHub.mjs","dist/headlessProtocol.cjs","dist/headlessProtocol.mjs","dist/headlessServer.cjs","dist/headlessServer.mjs","dist/headlessSessionHost.cjs","dist/headlessSessionHost.mjs","dist/headlessSessionManager.cjs","dist/headlessSessionManager.mjs","dist/help.cjs","dist/help.mjs","dist/history.cjs","dist/history.mjs","dist/historyOwnership.cjs","dist/historyOwnership.mjs","dist/hubChannel.cjs","dist/hubChannel.mjs","dist/images.cjs","dist/images.mjs","dist/index.cjs","dist/index.mjs","dist/inputTemplate.cjs","dist/inputTemplate.mjs","dist/interop/chord.mjs","dist/interop/chordContext.mjs","dist/interop/piCodingAgent.mjs","dist/json.cjs","dist/json.mjs","dist/kernel.cjs","dist/kernel.mjs","dist/leader.cjs","dist/leader.mjs","dist/logSinkTelemetry.cjs","dist/logSinkTelemetry.mjs","dist/machineApi.cjs","dist/machineApi.mjs","dist/main.cjs","dist/main.mjs","dist/mcp.cjs","dist/mcp.mjs","dist/mcpFacet.cjs","dist/mcpFacet.mjs","dist/mcpProjection.cjs","dist/mcpProjection.mjs","dist/mcpSchemaCost.cjs","dist/mcpSchemaCost.mjs","dist/mcpSession.cjs","dist/mcpSession.mjs","dist/mcpStatus.cjs","dist/mcpStatus.mjs","dist/mcpToolResolver.cjs","dist/mcpToolResolver.mjs","dist/mcpWidget.cjs","dist/mcpWidget.mjs","dist/modelGateway.cjs","dist/modelGateway.mjs","dist/moduleResolution.cjs","dist/moduleResolution.mjs","dist/narration.cjs","dist/narration.mjs","dist/native.cjs","dist/native.mjs","dist/nodePlatform.cjs","dist/nodePlatform.mjs","dist/notification.cjs","dist/notification.mjs","dist/packageApi.cjs","dist/packageApi.mjs","dist/packageApiServer.cjs","dist/packageApiServer.mjs","dist/pairingPage.cjs","dist/pairingPage.mjs","dist/personTimeZone.cjs","dist/personTimeZone.mjs","dist/piSettings.cjs","dist/piSettings.mjs","dist/platform.cjs","dist/platform.mjs","dist/pluginProtocol.cjs","dist/pluginProtocol.mjs","dist/poPackage.cjs","dist/poPackage.mjs","dist/profileIdentity.cjs","dist/profileIdentity.mjs","dist/protocol.cjs","dist/protocol.mjs","dist/protocolTransport.cjs","dist/protocolTransport.mjs","dist/providerAuth.cjs","dist/providerAuth.mjs","dist/readiness.cjs","dist/readiness.mjs","dist/remoteChildSession.cjs","dist/remoteChildSession.mjs","dist/remoteContract.cjs","dist/remoteContract.mjs","dist/remoteOrigin.cjs","dist/remoteOrigin.mjs","dist/runtimeConfig.cjs","dist/runtimeConfig.mjs","dist/runtimeContextApi.cjs","dist/runtimeContextApi.mjs","dist/runtimeCordisHost.cjs","dist/runtimeCordisHost.mjs","dist/runtimeHeadlessSessionManager.cjs","dist/runtimeHeadlessSessionManager.mjs","dist/runtimeIdentity.cjs","dist/runtimeIdentity.mjs","dist/runtimeJson.cjs","dist/runtimeJson.mjs","dist/runtimeLogSinkTelemetry.cjs","dist/runtimeLogSinkTelemetry.mjs","dist/runtimePackages.cjs","dist/runtimePackages.mjs","dist/runtimePiSettings.cjs","dist/runtimePiSettings.mjs","dist/runtimeProtocol.cjs","dist/runtimeProtocol.mjs","dist/runtimeToolNames.cjs","dist/runtimeToolNames.mjs","dist/runtimeTransition.cjs","dist/runtimeTransition.mjs","dist/sandboxIdentity.cjs","dist/sandboxIdentity.mjs","dist/server.cjs","dist/server.mjs","dist/serverPlugin.cjs","dist/serverPlugin.mjs","dist/serverTelemetry.cjs","dist/serverTelemetry.mjs","dist/sessionFilesApi.cjs","dist/sessionFilesApi.mjs","dist/sessionMcpContract.cjs","dist/sessionMcpContract.mjs","dist/sessionProtocol.cjs","dist/sessionProtocol.mjs","dist/skills.cjs","dist/skills.mjs","dist/sqliteSessionStorage.cjs","dist/sqliteSessionStorage.mjs","dist/src/constants/agentSettled.cjs","dist/src/constants/agentSettled.mjs","dist/src/constants/cloud.cjs","dist/src/constants/cloud.mjs","dist/src/constants/contextApi.cjs","dist/src/constants/contextApi.mjs","dist/src/constants/globalSettings.cjs","dist/src/constants/globalSettings.mjs","dist/src/constants/modelGateway.cjs","dist/src/constants/modelGateway.mjs","dist/src/constants/nativeHost.cjs","dist/src/constants/nativeHost.mjs","dist/src/constants/remote.cjs","dist/src/constants/remote.mjs","dist/src/constants/sessionFiles.cjs","dist/src/constants/sessionFiles.mjs","dist/src/constants/template.cjs","dist/src/constants/template.mjs","dist/src/constants/voiceReloadHandoff.cjs","dist/src/constants/voiceReloadHandoff.mjs","dist/src/constants/voiceTools.cjs","dist/src/constants/voiceTools.mjs","dist/src/extensions/extensionFile.cjs","dist/src/extensions/extensionFile.mjs","dist/src/extensions/serverPlugin.cjs","dist/src/extensions/serverPlugin.mjs","dist/src/extensions/webPlugin.cjs","dist/src/extensions/webPlugin.mjs","dist/src/pi/piSessionRuntime.cjs","dist/src/pi/piSessionRuntime.mjs","dist/src/schemas/agentModel.cjs","dist/src/schemas/agentModel.mjs","dist/src/schemas/agentRun.cjs","dist/src/schemas/agentRun.mjs","dist/src/schemas/approval.cjs","dist/src/schemas/approval.mjs","dist/src/schemas/approvalPrompt.cjs","dist/src/schemas/approvalPrompt.mjs","dist/src/schemas/askUser.cjs","dist/src/schemas/askUser.mjs","dist/src/schemas/backgroundWork.cjs","dist/src/schemas/backgroundWork.mjs","dist/src/schemas/brain.cjs","dist/src/schemas/brain.mjs","dist/src/schemas/childProcess.cjs","dist/src/schemas/childProcess.mjs","dist/src/schemas/codemode.cjs","dist/src/schemas/codemode.mjs","dist/src/schemas/contextContributions.cjs","dist/src/schemas/contextContributions.mjs","dist/src/schemas/delegation.cjs","dist/src/schemas/delegation.mjs","dist/src/schemas/federation.cjs","dist/src/schemas/federation.mjs","dist/src/schemas/footer.cjs","dist/src/schemas/footer.mjs","dist/src/schemas/headless.cjs","dist/src/schemas/headless.mjs","dist/src/schemas/help.cjs","dist/src/schemas/help.mjs","dist/src/schemas/home.cjs","dist/src/schemas/home.mjs","dist/src/schemas/hostServiceContracts.cjs","dist/src/schemas/hostServiceContracts.mjs","dist/src/schemas/hostServices.cjs","dist/src/schemas/hostServices.mjs","dist/src/schemas/hostTeam.cjs","dist/src/schemas/hostTeam.mjs","dist/src/schemas/httpApiContracts.cjs","dist/src/schemas/httpApiContracts.mjs","dist/src/schemas/hubChannel.cjs","dist/src/schemas/hubChannel.mjs","dist/src/schemas/identity.cjs","dist/src/schemas/identity.mjs","dist/src/schemas/leader.cjs","dist/src/schemas/leader.mjs","dist/src/schemas/mcp.cjs","dist/src/schemas/mcp.mjs","dist/src/schemas/mcpFacet.cjs","dist/src/schemas/mcpFacet.mjs","dist/src/schemas/mcpProjection.cjs","dist/src/schemas/mcpProjection.mjs","dist/src/schemas/mcpSession.cjs","dist/src/schemas/mcpSession.mjs","dist/src/schemas/mcpStatus.cjs","dist/src/schemas/mcpStatus.mjs","dist/src/schemas/mcpToolResolver.cjs","dist/src/schemas/mcpToolResolver.mjs","dist/src/schemas/modelGateway.cjs","dist/src/schemas/modelGateway.mjs","dist/src/schemas/narration.cjs","dist/src/schemas/narration.mjs","dist/src/schemas/notification.cjs","dist/src/schemas/notification.mjs","dist/src/schemas/packageApi.cjs","dist/src/schemas/packageApi.mjs","dist/src/schemas/personTimeZone.cjs","dist/src/schemas/personTimeZone.mjs","dist/src/schemas/platform.cjs","dist/src/schemas/platform.mjs","dist/src/schemas/pluginCatalog.cjs","dist/src/schemas/pluginCatalog.mjs","dist/src/schemas/pluginContributions.cjs","dist/src/schemas/pluginContributions.mjs","dist/src/schemas/pluginProtocol.cjs","dist/src/schemas/pluginProtocol.mjs","dist/src/schemas/profileIdentity.cjs","dist/src/schemas/profileIdentity.mjs","dist/src/schemas/protocolChannelsContract.cjs","dist/src/schemas/protocolChannelsContract.mjs","dist/src/schemas/protocolContracts.cjs","dist/src/schemas/protocolContracts.mjs","dist/src/schemas/protocolHubContract.cjs","dist/src/schemas/protocolHubContract.mjs","dist/src/schemas/protocolService.cjs","dist/src/schemas/protocolService.mjs","dist/src/schemas/protocolSessionContract.cjs","dist/src/schemas/protocolSessionContract.mjs","dist/src/schemas/protocolThreadContract.cjs","dist/src/schemas/protocolThreadContract.mjs","dist/src/schemas/readiness.cjs","dist/src/schemas/readiness.mjs","dist/src/schemas/remoteGateway.cjs","dist/src/schemas/remoteGateway.mjs","dist/src/schemas/remoteOrigin.cjs","dist/src/schemas/remoteOrigin.mjs","dist/src/schemas/sandboxIdentity.cjs","dist/src/schemas/sandboxIdentity.mjs","dist/src/schemas/serverPlugin.cjs","dist/src/schemas/serverPlugin.mjs","dist/src/schemas/serverScope.cjs","dist/src/schemas/serverScope.mjs","dist/src/schemas/sessionApiContracts.cjs","dist/src/schemas/sessionApiContracts.mjs","dist/src/schemas/sessionProtocol.cjs","dist/src/schemas/sessionProtocol.mjs","dist/src/schemas/sharedModels.cjs","dist/src/schemas/sharedModels.mjs","dist/src/schemas/skills.cjs","dist/src/schemas/skills.mjs","dist/src/schemas/space.cjs","dist/src/schemas/space.mjs","dist/src/schemas/toolOverrides.cjs","dist/src/schemas/toolOverrides.mjs","dist/src/schemas/toolSurface.cjs","dist/src/schemas/toolSurface.mjs","dist/src/schemas/uiHub.cjs","dist/src/schemas/uiHub.mjs","dist/src/schemas/voiceReloadHandoff.cjs","dist/src/schemas/voiceReloadHandoff.mjs","dist/src/schemas/voiceTools.cjs","dist/src/schemas/voiceTools.mjs","dist/src/schemas/workflow.cjs","dist/src/schemas/workflow.mjs","dist/src/schemas/workspaceRegistry.cjs","dist/src/schemas/workspaceRegistry.mjs","dist/src/schemas/workspaceSandboxes.cjs","dist/src/schemas/workspaceSandboxes.mjs","dist/src/server/conversationEvents.cjs","dist/src/server/conversationEvents.mjs","dist/src/server/directHarnessRuntime.cjs","dist/src/server/directHarnessRuntime.mjs","dist/src/server/harnessErrorMessage.cjs","dist/src/server/harnessErrorMessage.mjs","dist/src/server/largeFrameLink.cjs","dist/src/server/largeFrameLink.mjs","dist/src/server/liveImport.cjs","dist/src/server/liveImport.mjs","dist/src/server/mcpBundleLoader.cjs","dist/src/server/mcpBundleLoader.mjs","dist/src/server/providerRoutes.cjs","dist/src/server/providerRoutes.mjs","dist/src/server/providerRuntime.cjs","dist/src/server/providerRuntime.mjs","dist/src/server/serverPackages.cjs","dist/src/server/serverPackages.mjs","dist/src/server/serverScope.cjs","dist/src/server/serverScope.mjs","dist/src/server/threadJournals.cjs","dist/src/server/threadJournals.mjs","dist/src/services/apiSurfaceAssert/index.cjs","dist/src/services/apiSurfaceAssert/index.mjs","dist/src/services/approvalGate/index.cjs","dist/src/services/approvalGate/index.mjs","dist/src/services/bundlePublication/index.cjs","dist/src/services/bundlePublication/index.mjs","dist/src/services/chatgptAuth/index.cjs","dist/src/services/chatgptAuth/index.mjs","dist/src/services/chatgptImages/index.cjs","dist/src/services/chatgptImages/index.mjs","dist/src/services/chatgptLogin/index.cjs","dist/src/services/chatgptLogin/index.mjs","dist/src/services/chatgptWebSearch/index.cjs","dist/src/services/chatgptWebSearch/index.mjs","dist/src/services/chordAdapter/index.cjs","dist/src/services/chordAdapter/index.mjs","dist/src/services/clientDevices/index.cjs","dist/src/services/clientDevices/index.mjs","dist/src/services/clientMetadata/_lib/codec.cjs","dist/src/services/clientMetadata/_lib/codec.mjs","dist/src/services/clientMetadata/_lib/deviceLabel.cjs","dist/src/services/clientMetadata/_lib/deviceLabel.mjs","dist/src/services/contextApiUrls/index.cjs","dist/src/services/contextApiUrls/index.mjs","dist/src/services/contextContributions/index.cjs","dist/src/services/contextContributions/index.mjs","dist/src/services/contextUsage/index.cjs","dist/src/services/contextUsage/index.mjs","dist/src/services/durableNavigation/docs.cjs","dist/src/services/durableNavigation/docs.mjs","dist/src/services/durableNavigation/index.cjs","dist/src/services/durableNavigation/index.mjs","dist/src/services/durableQueue/docs.cjs","dist/src/services/durableQueue/docs.mjs","dist/src/services/durableQueue/index.cjs","dist/src/services/durableQueue/index.mjs","dist/src/services/durableRequestReceipts/docs.cjs","dist/src/services/durableRequestReceipts/docs.mjs","dist/src/services/durableRequestReceipts/index.cjs","dist/src/services/durableRequestReceipts/index.mjs","dist/src/services/durableResumeSnapshots/docs.cjs","dist/src/services/durableResumeSnapshots/docs.mjs","dist/src/services/durableResumeSnapshots/index.cjs","dist/src/services/durableResumeSnapshots/index.mjs","dist/src/services/durableSession/docs.cjs","dist/src/services/durableSession/docs.mjs","dist/src/services/durableSession/index.cjs","dist/src/services/durableSession/index.mjs","dist/src/services/durableSubagents/docs.cjs","dist/src/services/durableSubagents/docs.mjs","dist/src/services/durableSubagents/extension.cjs","dist/src/services/durableSubagents/extension.mjs","dist/src/services/durableSubagents/index.cjs","dist/src/services/durableSubagents/index.mjs","dist/src/services/durableSubagents/tasks.cjs","dist/src/services/durableSubagents/tasks.mjs","dist/src/services/edgeModelRuntime/index.cjs","dist/src/services/edgeModelRuntime/index.mjs","dist/src/services/editPresence/index.cjs","dist/src/services/editPresence/index.mjs","dist/src/services/fileAccess/accessibleFile.cjs","dist/src/services/fileAccess/accessibleFile.mjs","dist/src/services/fileAccess/core.cjs","dist/src/services/fileAccess/core.mjs","dist/src/services/fileAccess/index.cjs","dist/src/services/fileAccess/index.mjs","dist/src/services/guardedFile/index.cjs","dist/src/services/guardedFile/index.mjs","dist/src/services/headlessClient/index.cjs","dist/src/services/headlessClient/index.mjs","dist/src/services/hostServices/index.cjs","dist/src/services/hostServices/index.mjs","dist/src/services/hubChannelHarness/index.cjs","dist/src/services/hubChannelHarness/index.mjs","dist/src/services/inputTemplate/index.cjs","dist/src/services/inputTemplate/index.mjs","dist/src/services/json/core.cjs","dist/src/services/json/core.mjs","dist/src/services/json/sync.cjs","dist/src/services/json/sync.mjs","dist/src/services/kernel/index.cjs","dist/src/services/kernel/index.mjs","dist/src/services/loginFlow/index.cjs","dist/src/services/loginFlow/index.mjs","dist/src/services/modelGatewayContainer/index.cjs","dist/src/services/modelGatewayContainer/index.mjs","dist/src/services/modelGatewayExecutor/index.cjs","dist/src/services/modelGatewayExecutor/index.mjs","dist/src/services/modelGatewayHost/index.cjs","dist/src/services/modelGatewayHost/index.mjs","dist/src/services/modelGatewayWire/index.cjs","dist/src/services/modelGatewayWire/index.mjs","dist/src/services/nativeChildTools/index.cjs","dist/src/services/nativeChildTools/index.mjs","dist/src/services/nodeHost/index.cjs","dist/src/services/nodeHost/index.mjs","dist/src/services/nodeModelDependencies/index.cjs","dist/src/services/nodeModelDependencies/index.mjs","dist/src/services/openSessionRegistry/index.cjs","dist/src/services/openSessionRegistry/index.mjs","dist/src/services/openSessionRegistry/openSessionRecords.cjs","dist/src/services/openSessionRegistry/openSessionRecords.mjs","dist/src/services/openSessionRegistry/sync.cjs","dist/src/services/openSessionRegistry/sync.mjs","dist/src/services/packageApiHarness/index.cjs","dist/src/services/packageApiHarness/index.mjs","dist/src/services/packageContentRevision/index.cjs","dist/src/services/packageContentRevision/index.mjs","dist/src/services/packageResource/index.cjs","dist/src/services/packageResource/index.mjs","dist/src/services/pairingPage/index.cjs","dist/src/services/pairingPage/index.mjs","dist/src/services/piArgs/index.cjs","dist/src/services/piArgs/index.mjs","dist/src/services/piExtensionHost/index.cjs","dist/src/services/piExtensionHost/index.mjs","dist/src/services/piHelpTools/index.cjs","dist/src/services/piHelpTools/index.mjs","dist/src/services/piMessages/index.cjs","dist/src/services/piMessages/index.mjs","dist/src/services/piSessionEntries/index.cjs","dist/src/services/piSessionEntries/index.mjs","dist/src/services/piSettings/core.cjs","dist/src/services/piSettings/core.mjs","dist/src/services/piSettings/sync.cjs","dist/src/services/piSettings/sync.mjs","dist/src/services/piSummary/index.cjs","dist/src/services/piSummary/index.mjs","dist/src/services/platformFiles/index.cjs","dist/src/services/platformFiles/index.mjs","dist/src/services/platformFiles/rootBoundReplace.cjs","dist/src/services/platformFiles/rootBoundReplace.mjs","dist/src/services/pluginLifecycle/index.cjs","dist/src/services/pluginLifecycle/index.mjs","dist/src/services/poPackage/core.cjs","dist/src/services/poPackage/core.mjs","dist/src/services/poPackage/sync.cjs","dist/src/services/poPackage/sync.mjs","dist/src/services/poTelemetry/index.cjs","dist/src/services/poTelemetry/index.mjs","dist/src/services/portableConfig/index.cjs","dist/src/services/portableConfig/index.mjs","dist/src/services/providerAuth/index.cjs","dist/src/services/providerAuth/index.mjs","dist/src/services/providerImages/fitter.cjs","dist/src/services/providerImages/fitter.mjs","dist/src/services/providerImages/index.cjs","dist/src/services/providerImages/index.mjs","dist/src/services/runtimeIdentity/sync.cjs","dist/src/services/runtimeIdentity/sync.mjs","dist/src/services/scopeInput/index.cjs","dist/src/services/scopeInput/index.mjs","dist/src/services/serialRunner/index.cjs","dist/src/services/serialRunner/index.mjs","dist/src/services/serverHost/index.cjs","dist/src/services/serverHost/index.mjs","dist/src/services/sessionAccess/index.cjs","dist/src/services/sessionAccess/index.mjs","dist/src/services/sessionAttachments/index.cjs","dist/src/services/sessionAttachments/index.mjs","dist/src/services/sessionFiles/index.cjs","dist/src/services/sessionFiles/index.mjs","dist/src/services/sessionFiles/sessionDirectory.cjs","dist/src/services/sessionFiles/sessionDirectory.mjs","dist/src/services/sessionGitStatus/index.cjs","dist/src/services/sessionGitStatus/index.mjs","dist/src/services/sessionMcpRoutePaths/index.cjs","dist/src/services/sessionMcpRoutePaths/index.mjs","dist/src/services/sessionPresentation/index.cjs","dist/src/services/sessionPresentation/index.mjs","dist/src/services/sessionWorkspaceMove/index.cjs","dist/src/services/sessionWorkspaceMove/index.mjs","dist/src/services/skillPrompt/index.cjs","dist/src/services/skillPrompt/index.mjs","dist/src/services/sqliteSessionHistory/index.cjs","dist/src/services/sqliteSessionHistory/index.mjs","dist/src/services/sqliteTranscriptReader/index.cjs","dist/src/services/sqliteTranscriptReader/index.mjs","dist/src/services/telemetry/index.cjs","dist/src/services/telemetry/index.mjs","dist/src/services/testMode/index.cjs","dist/src/services/testMode/index.mjs","dist/src/services/toolContinuation/index.cjs","dist/src/services/toolContinuation/index.mjs","dist/src/services/toolCost/index.cjs","dist/src/services/toolCost/index.mjs","dist/src/services/toolOverrides/index.cjs","dist/src/services/toolOverrides/index.mjs","dist/src/services/toolPrompt/index.cjs","dist/src/services/toolPrompt/index.mjs","dist/src/services/toolSurface/index.cjs","dist/src/services/toolSurface/index.mjs","dist/src/services/traceContext/index.cjs","dist/src/services/traceContext/index.mjs","dist/src/services/transcriptPages/index.cjs","dist/src/services/transcriptPages/index.mjs","dist/src/services/voiceReloadHandoff/index.cjs","dist/src/services/voiceReloadHandoff/index.mjs","dist/src/services/voiceToolsContract/index.cjs","dist/src/services/voiceToolsContract/index.mjs","dist/src/services/workspaceLookup/index.cjs","dist/src/services/workspaceLookup/index.mjs","dist/src/services/workspaceRegistry/index.cjs","dist/src/services/workspaceRegistry/index.mjs","dist/src/services/workspaceRegistry/sync.cjs","dist/src/services/workspaceRegistry/sync.mjs","dist/src/services/workspaceRegistry/workspaceRecords.cjs","dist/src/services/workspaceRegistry/workspaceRecords.mjs","dist/src/services/workspaceSandboxes/index.cjs","dist/src/services/workspaceSandboxes/index.mjs","dist/src/systems/child/adapters/headlessChildSessionService.cjs","dist/src/systems/child/adapters/headlessChildSessionService.mjs","dist/src/systems/child/adapters/remoteChildSessionService.cjs","dist/src/systems/child/adapters/remoteChildSessionService.mjs","dist/src/systems/child/services/childSession/index.cjs","dist/src/systems/child/services/childSession/index.mjs","dist/src/systems/child/types/childSession.cjs","dist/src/systems/child/types/childSession.mjs","dist/src/systems/main/adapters/headlessHost.cjs","dist/src/systems/main/adapters/headlessHost.mjs","dist/src/systems/main/adapters/headlessSessionHost.cjs","dist/src/systems/main/adapters/headlessSessionHost.mjs","dist/src/testing/pi/extensionScenarios.cjs","dist/src/testing/pi/extensionScenarios.mjs","dist/src/testing/pi/testHost.cjs","dist/src/testing/pi/testHost.mjs","dist/src/web/hostSlots.cjs","dist/src/web/hostSlots.mjs","dist/src/web/models/globalStore.cjs","dist/src/web/models/globalStore.mjs","dist/src/web/models/sessionStore.cjs","dist/src/web/models/sessionStore.mjs","dist/src/web/models/workspaceStore.cjs","dist/src/web/models/workspaceStore.mjs","dist/src/web/schemas/bundleAssetPolicy.cjs","dist/src/web/schemas/bundleAssetPolicy.mjs","dist/src/web/schemas/onboarding.cjs","dist/src/web/schemas/onboarding.mjs","dist/src/web/schemas/template.cjs","dist/src/web/schemas/template.mjs","dist/src/web/services/apiClient/index.cjs","dist/src/web/services/apiClient/index.mjs","dist/src/web/services/apiPaths/index.cjs","dist/src/web/services/apiPaths/index.mjs","dist/src/web/services/apiRoutes/index.cjs","dist/src/web/services/apiRoutes/index.mjs","dist/src/web/services/hubRevisions/index.cjs","dist/src/web/services/hubRevisions/index.mjs","dist/src/web/services/mcpWidget.cjs","dist/src/web/services/mcpWidget.mjs","dist/src/web/services/nativeApiTransport/index.cjs","dist/src/web/services/nativeApiTransport/index.mjs","dist/src/web/services/nativeByteCodec/index.cjs","dist/src/web/services/nativeByteCodec/index.mjs","dist/src/web/services/railSteps/index.cjs","dist/src/web/services/railSteps/index.mjs","dist/src/web/services/sessionRegistry/index.cjs","dist/src/web/services/sessionRegistry/index.mjs","dist/src/web/services/testing/channels.cjs","dist/src/web/services/testing/channels.mjs","dist/src/web/services/testing/index.cjs","dist/src/web/services/testing/index.mjs","dist/src/web/services/testing/rpcStub.cjs","dist/src/web/services/testing/rpcStub.mjs","dist/src/web/services/testing/slotProps.cjs","dist/src/web/services/testing/slotProps.mjs","dist/src/web/services/testing/templateRail.cjs","dist/src/web/services/testing/templateRail.mjs","dist/src/web/services/toolResult/index.cjs","dist/src/web/services/toolResult/index.mjs","dist/telemetry.cjs","dist/telemetry.mjs","dist/testMode.cjs","dist/testMode.mjs","dist/testing.cjs","dist/testing.mjs","dist/toolInventory.cjs","dist/toolInventory.mjs","dist/toolNames.cjs","dist/toolNames.mjs","dist/toolOverrides.cjs","dist/toolOverrides.mjs","dist/toolSurface.cjs","dist/toolSurface.mjs","dist/transition.cjs","dist/transition.d.cjs","dist/transition.mjs","dist/transitionClassifier.cjs","dist/transitionClassifier.mjs","dist/transitionCoordinator.cjs","dist/transitionCoordinator.mjs","dist/typesContextApi.cjs","dist/typesContextApi.mjs","dist/uiHub.cjs","dist/uiHub.mjs","dist/vendor/upm/LICENSE","dist/vendor/upm/_chunks/cli.mjs","dist/vendor/upm/_chunks/exec.mjs","dist/vendor/upm/_chunks/foreign-lock.mjs","dist/vendor/upm/_chunks/index-upgrade.mjs","dist/vendor/upm/_chunks/limit.mjs","dist/vendor/upm/_chunks/link-pool.mjs","dist/vendor/upm/_chunks/main.mjs","dist/vendor/upm/_chunks/metadata.mjs","dist/vendor/upm/_chunks/metadata2.mjs","dist/vendor/upm/_chunks/mirror.mjs","dist/vendor/upm/_chunks/newer.mjs","dist/vendor/upm/_chunks/overrides.mjs","dist/vendor/upm/_chunks/overrides2.mjs","dist/vendor/upm/_chunks/progress.mjs","dist/vendor/upm/_chunks/registry-pool.mjs","dist/vendor/upm/_chunks/registry.mjs","dist/vendor/upm/_chunks/resolve.mjs","dist/vendor/upm/_chunks/shim.mjs","dist/vendor/upm/_chunks/store-backend.mjs","dist/vendor/upm/_chunks/tarball-deps.mjs","dist/vendor/upm/_chunks/trace.mjs","dist/vendor/upm/_chunks/tree-lock.mjs","dist/vendor/upm/_chunks/unpack-pool.mjs","dist/vendor/upm/_chunks/unpack.mjs","dist/vendor/upm/_chunks/verify.mjs","dist/vendor/upm/_chunks/vouch.mjs","dist/vendor/upm/_chunks/workspaces.mjs","dist/vendor/upm/index.mjs","dist/vendor/upm/resolver.mjs","dist/vendor/upm/upm.mjs","dist/vendor/upm/upx.mjs","dist/voiceReloadHandoff.cjs","dist/voiceReloadHandoff.mjs","dist/voiceTools.cjs","dist/voiceTools.mjs","dist/web.cjs","dist/web.mjs","dist/webCompositions.cjs","dist/webCompositions.mjs","dist/webTesting.cjs","dist/webTesting.mjs","dist/workflow.cjs","dist/workflow.mjs","dist/workspaceRegistry.cjs","dist/workspaceRegistry.mjs","dist/workspaceSandboxes.cjs","dist/workspaceSandboxes.mjs","licenses/Codex-Apache-2.0.txt"],"outputRevision":"6b4c6596963a218abd15be66e029beca"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webCompositions.cjs","names":["path","crypto","createPluginBundlePublication","HOST_CHANNEL_KEY_TAG","fs"],"sources":["../src/services/webCompositions/index.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\n\nimport { HOST_CHANNEL_KEY_TAG } from '../../constants/remote';\nimport type { PoApiMount, PoNativeComposition, PoWebComposition } from '../../exports/packageApi';\nimport type { PoWebBrainMetadata } from '../../schemas/brain';\nimport { createPluginBundlePublication, type PublicationOwner, type PublishedBundle } from '../bundlePublication';\n\nexport { reapAbandonedPublications } from '../bundlePublication';\n\n/** One plugin copy in a global web build: its slot entry and the files that entry can load. */\nexport interface GlobalWebBuildPlugin {\n pluginId: string;\n /** The copy's identity: the pluginId for a host plugin, else the pluginId plus a package hash. */\n slot: string;\n packageDir: string;\n isHost: boolean;\n /** Descriptions from the same package manifest used to build this plugin copy. */\n brain?: { packageName: string; metadata: PoWebBrainMetadata };\n /** The slot entry module below `pluginsDirectory`. */\n entry: string;\n /** Every file below `pluginsDirectory` the entry reaches through static and dynamic imports, plus its stylesheet. */\n files: readonly string[];\n /** The stylesheets of the entry's static import closure. */\n css: readonly string[];\n}\n\n/** One global web build: the shell, the shared plugin composition, and one stylesheet per plugin copy. */\nexport interface GlobalWebBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Signed cockpit shell directory. */\n webDirectory: string;\n /** Shared plugin composition directory, published once for every mount. */\n pluginsDirectory: string;\n /** Every plugin copy in the build, in build order. */\n plugins: readonly GlobalWebBuildPlugin[];\n /** Content-hashed stylesheet paths below `pluginsDirectory`, keyed by slot. */\n pluginStyles: Readonly<Record<string, string>>;\n /** Stylesheet a mount without plugin styles still loads, for the host shell and fallback template. */\n baseStyle?: string;\n}\n\n/** One global native build: one signed CommonJS module per plugin, shared by every mount. */\nexport interface GlobalNativeBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Directory holding the plugin modules, each at the top level. */\n pluginsDirectory: string;\n /** Each built plugin's module path below `pluginsDirectory`; a plugin that failed to build is absent. */\n pluginEntries: Readonly<Record<string, string>>;\n /** The shared host-owned UI module, signed alongside the plugins. Absent on legacy builds. */\n uiEntry?: string;\n}\n\nconst absolute = (file: string): string => (file.startsWith('/') ? file : `/${file}`);\n\n/**\n * The file a signed manifest path names below `root`. Manifest segments are percent-encoded\n * (`@` and `+` in pnpm paths); the decoded file must still resolve inside `root`.\n */\nfunction assetFile(root: string, assetPath: string): string | undefined {\n try {\n const base = path.resolve(root);\n const file = path.resolve(base, ...assetPath.slice(1).split('/').map(decodeURIComponent));\n return file.startsWith(`${base}${path.sep}`) && !file.includes('\\0') ? file : undefined;\n } catch {\n return undefined; // A malformed escape names no file.\n }\n}\n\n/** The build's plugin copies for exactly the given slots, in slot order. */\nfunction slotPlugins(build: GlobalWebBuild, slots: readonly string[]): GlobalWebBuildPlugin[] {\n return slots.flatMap((slot) => build.plugins.filter((plugin) => plugin.slot === slot));\n}\n\n/**\n * The stylesheets of exactly the given slots, each loaded once: the stylesheets their code\n * imports first, then each slot's own stylesheet in slot order.\n */\nexport function mountStylePaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n const paths = slots.map((slot) => build.pluginStyles[slot]).filter((style) => style !== undefined);\n if (paths.length === 0 && build.baseStyle !== undefined) paths.push(build.baseStyle);\n const imported = slotPlugins(build, slots).flatMap((plugin) => plugin.css);\n return [...new Set([...imported, ...paths].map(absolute))];\n}\n\n/** Every file the given slots can load: their reachable files and static stylesheets, each once. */\nexport function mountAssetPaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n return [\n ...new Set(\n slotPlugins(build, slots)\n .flatMap((plugin) => [...plugin.files, ...plugin.css])\n .map(absolute),\n ),\n ];\n}\n\nconst sha256 = (value: string): string => crypto.createHash('sha256').update(value).digest('hex');\n\n/**\n * Signs the global build once and hands each mount a composition naming its own plugins.\n *\n * Every mount of one build shares a publication id, so the bytes are counted per mount and\n * released only when the last mount leaves or moves to another build.\n */\nexport function createWebCompositions(\n stateDirectory: string,\n onNotice: (message: string) => void,\n owner?: PublicationOwner,\n) {\n const publication = createPluginBundlePublication(stateDirectory, onNotice, owner);\n let shell: PublishedBundle | undefined;\n let shellId: string | undefined;\n const mounts = new Map<string, PoWebComposition>();\n const nativeMounts = new Map<string, PoNativeComposition>();\n const references = new Map<string, number>();\n const keyOf = (mount: PoApiMount): string =>\n mount.scope === 'host'\n ? 'host'\n : mount.scope === 'workspace'\n ? `workspace:${mount.workspaceId}`\n : `session:${mount.sessionId}`;\n const release = (id: string): void => {\n const count = (references.get(id) ?? 0) - 1;\n if (count > 0) {\n references.set(id, count);\n return;\n }\n references.delete(id);\n publication.release(id);\n };\n return {\n publishShell(build: GlobalWebBuild): void {\n const id = sha256(`shell:${build.key}`);\n const next = publication.publish(id, build.webDirectory);\n if (!next) throw new Error('Could not publish the global web shell.');\n // A build that comes back must be signed again: pages refuse a revision below the one they hold.\n if (shellId !== undefined && shellId !== id) publication.release(shellId);\n shell = next;\n shellId = id;\n },\n shellTrust: () =>\n shell === undefined ? undefined : { publicKey: shell.signed.publicKey, revision: shell.signed.manifest.revision },\n publish(\n mount: PoApiMount,\n build: GlobalWebBuild,\n channels: readonly string[],\n slots: readonly string[],\n ): PoWebComposition | undefined {\n const id = sha256(`plugins:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory);\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} web composition.`);\n const previous = mounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const signedPaths = new Set(published.signed.manifest.assets.map((asset) => asset.path));\n const composition: PoWebComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n verifiedAssetBaseUrl: `/verified-plugins/${id}/${String(revision)}`,\n pluginEntries: slotPlugins(build, slots).map((plugin): [string, string] => [\n plugin.slot,\n absolute(plugin.entry),\n ]),\n assetPaths: mountAssetPaths(build, slots).filter((file) => signedPaths.has(file)),\n stylePaths: mountStylePaths(build, slots).filter((style) => signedPaths.has(style)),\n channels: [...channels],\n plugins: [...slots],\n };\n mounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n get: (mount: PoApiMount) => mounts.get(keyOf(mount)),\n remove: (mount: PoApiMount) => {\n const previous = mounts.get(keyOf(mount));\n mounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Publishes the native composition for one mount. Signed under the `native` profile, so it can\n * never be served or verified as a web bundle. Shares reference counting with web publications.\n */\n publishNative(\n mount: PoApiMount,\n build: GlobalNativeBuild,\n channels: readonly string[],\n pluginIds: readonly string[],\n ): PoNativeComposition {\n const id = sha256(`native:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory, 'native');\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} native composition.`);\n const previous = nativeMounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const composition: PoNativeComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n ...(build.uiEntry === undefined ? {} : { uiEntry: absolute(build.uiEntry) }),\n pluginEntries: pluginIds.flatMap((pluginId): [string, string][] => {\n const entry = build.pluginEntries[pluginId];\n return entry === undefined ? [] : [[pluginId, absolute(entry)]];\n }),\n channels: [...channels],\n plugins: [...pluginIds],\n };\n nativeMounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n getNative: (mount: PoApiMount) => nativeMounts.get(keyOf(mount)),\n removeNative: (mount: PoApiMount) => {\n const previous = nativeMounts.get(keyOf(mount));\n nativeMounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Signs `po/host-channel-key/v1` with the shell publication's signer, the key the pairing QR pins\n * as `s`. Undefined until the shell is published.\n */\n attestHost: (fields: readonly string[]): string | undefined =>\n shell === undefined ? undefined : publication.attest(HOST_CHANNEL_KEY_TAG, fields),\n /** Federation proofs use the same physically pinned host key, not an account device key. */\n attestFederation: (\n tag:\n | 'po/identity-mint/v1'\n | 'po/hub-enrollment/v1'\n | 'po/host-request/v1'\n | 'po/vote/v1'\n | 'po/capabilities/v1'\n | 'po/roster-promise/v1'\n | 'po/roster-vote/v1',\n fields: readonly string[],\n ): string | undefined => publication.attest(tag, fields),\n publicKey: () => publication.publicKey(),\n async request(request: Request): Promise<Response | undefined> {\n const url = new URL(request.url);\n if (\n (url.pathname === '/bundle-manifest.json' || url.pathname.startsWith('/bundle-assets/')) &&\n request.method !== 'GET' &&\n request.method !== 'HEAD'\n )\n return new Response(null, { status: 405 });\n if (url.pathname === '/bundle-manifest.json') {\n if (!shell) return new Response(null, { status: 404 });\n return Response.json(shell.signed);\n }\n const shellAsset = /^\\/bundle-assets\\/(\\d+)(\\/.*)$/u.exec(url.pathname);\n if (shellAsset) {\n if (!shell || Number(shellAsset[1]) !== shell.signed.manifest.revision)\n return new Response(null, { status: 404 });\n const asset = shell.signed.manifest.assets.find((entry) => entry.path === shellAsset[2]);\n if (!asset) return new Response(null, { status: 404 });\n const file = assetFile(shell.assetsDir, asset.path);\n if (!file) return new Response(null, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: { 'content-type': asset.contentType, 'x-content-type-options': 'nosniff' },\n });\n }\n const match = /^\\/api\\/web-plugins\\/([a-f0-9]{64})\\/(\\d+)\\/(manifest|assets(?:\\/.*)?)$/u.exec(url.pathname);\n if (!match) return undefined;\n if (request.method !== 'GET' && request.method !== 'HEAD') return new Response(null, { status: 405 });\n const bundle = publication.get(match[1], Number(match[2]));\n if (!bundle) return Response.json({ error: 'Plugin generation not found.' }, { status: 404 });\n if (match[3] === 'manifest') return Response.json(bundle.signed);\n const assetPath = match[3].slice('assets'.length);\n const asset = bundle.signed.manifest.assets.find((candidate) => candidate.path === assetPath);\n if (!asset) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const file = assetFile(bundle.assetsDir, asset.path);\n if (!file) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: {\n 'content-type': asset.contentType,\n 'cache-control': 'private, max-age=31536000, immutable',\n 'x-content-type-options': 'nosniff',\n },\n });\n },\n close() {\n mounts.clear();\n nativeMounts.clear();\n references.clear();\n publication.close();\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AAwDA,MAAM,YAAY,SAA0B,KAAK,WAAW,GAAG,IAAI,OAAO,IAAI;;;;;AAM9E,SAAS,UAAU,MAAc,WAAuC;CACtE,IAAI;EACF,MAAM,OAAOA,UAAAA,QAAK,QAAQ,IAAI;EAC9B,MAAM,OAAOA,UAAAA,QAAK,QAAQ,MAAM,GAAG,UAAU,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,kBAAkB,CAAC;EACxF,OAAO,KAAK,WAAW,GAAG,OAAOA,UAAAA,QAAK,KAAK,KAAK,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,KAAA;CAChF,QAAQ;EACN;CACF;AACF;;A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AAS,IAAI;GACpC,OAAO,IAAI,SAAS,QAAQ,WAAW,SAAS,OAAO,OAAO,EAC5D,SAAS;IACP,gBAAgB,MAAM;IACtB,iBAAiB;IACjB,0BAA0B;GAC5B,EACF,CAAC;EACH;EACA,QAAQ;GACN,OAAO,MAAM;GACb,aAAa,MAAM;GACnB,WAAW,MAAM;GACjB,YAAY,MAAM;EACpB;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"webCompositions.cjs","names":["path","crypto","createPluginBundlePublication","HOST_CHANNEL_KEY_TAG","fs"],"sources":["../src/services/webCompositions/index.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\n\nimport { HOST_CHANNEL_KEY_TAG } from '../../constants/remote';\nimport type { PoApiMount, PoNativeComposition, PoWebComposition } from '../../exports/packageApi';\nimport type { PoWebBrainMetadata } from '../../schemas/brain';\nimport { createPluginBundlePublication, type PublicationOwner, type PublishedBundle } from '../bundlePublication';\n\nexport { reapAbandonedPublications } from '../bundlePublication';\n\n/** One plugin copy in a global web build: its slot entry and the files that entry can load. */\nexport interface GlobalWebBuildPlugin {\n pluginId: string;\n /** The copy's identity: the pluginId for a host plugin, else the pluginId plus a package hash. */\n slot: string;\n packageDir: string;\n isHost: boolean;\n /** Descriptions from the same package manifest used to build this plugin copy. */\n brain?: { packageName: string; metadata: PoWebBrainMetadata };\n /** The slot entry module below `pluginsDirectory`. */\n entry: string;\n /** Every file below `pluginsDirectory` the entry reaches through static and dynamic imports, plus its stylesheet. */\n files: readonly string[];\n /** The stylesheets of the entry's static import closure. */\n css: readonly string[];\n}\n\n/** One global web build: the shell, the shared plugin composition, and one stylesheet per plugin copy. */\nexport interface GlobalWebBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Signed cockpit shell directory. */\n webDirectory: string;\n /** Shared plugin composition directory, published once for every mount. */\n pluginsDirectory: string;\n /** Every plugin copy in the build, in build order. */\n plugins: readonly GlobalWebBuildPlugin[];\n /** Content-hashed stylesheet paths below `pluginsDirectory`, keyed by slot. */\n pluginStyles: Readonly<Record<string, string>>;\n /** Stylesheet a mount without plugin styles still loads, for the host shell and fallback template. */\n baseStyle?: string;\n}\n\n/** One global native build: one signed CommonJS module per plugin, shared by every mount. */\nexport interface GlobalNativeBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Directory holding the plugin modules, each at the top level. */\n pluginsDirectory: string;\n /** Each built plugin's module path below `pluginsDirectory`; a plugin that failed to build is absent. */\n pluginEntries: Readonly<Record<string, string>>;\n /** The shared host-owned UI module, signed alongside the plugins. Absent on legacy builds. */\n uiEntry?: string;\n}\n\nconst absolute = (file: string): string => (file.startsWith('/') ? file : `/${file}`);\n\n/**\n * The file a signed manifest path names below `root`. Manifest segments are percent-encoded\n * (`@` and `+` in pnpm paths); the decoded file must still resolve inside `root`.\n */\nfunction assetFile(root: string, assetPath: string): string | undefined {\n try {\n const base = path.resolve(root);\n const file = path.resolve(base, ...assetPath.slice(1).split('/').map(decodeURIComponent));\n return file.startsWith(`${base}${path.sep}`) && !file.includes('\\0') ? file : undefined;\n } catch {\n return undefined; // A malformed escape names no file.\n }\n}\n\n/** The build's plugin copies for exactly the given slots, in slot order. */\nfunction slotPlugins(build: GlobalWebBuild, slots: readonly string[]): GlobalWebBuildPlugin[] {\n return slots.flatMap((slot) => build.plugins.filter((plugin) => plugin.slot === slot));\n}\n\n/**\n * The stylesheets of exactly the given slots, each loaded once: the stylesheets their code\n * imports first, then each slot's own stylesheet in slot order.\n */\nexport function mountStylePaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n const paths = slots.map((slot) => build.pluginStyles[slot]).filter((style) => style !== undefined);\n if (paths.length === 0 && build.baseStyle !== undefined) paths.push(build.baseStyle);\n const imported = slotPlugins(build, slots).flatMap((plugin) => plugin.css);\n return [...new Set([...imported, ...paths].map(absolute))];\n}\n\n/** Every file the given slots can load: their reachable files and static stylesheets, each once. */\nexport function mountAssetPaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n return [\n ...new Set(\n slotPlugins(build, slots)\n .flatMap((plugin) => [...plugin.files, ...plugin.css])\n .map(absolute),\n ),\n ];\n}\n\nconst sha256 = (value: string): string => crypto.createHash('sha256').update(value).digest('hex');\n\n/**\n * Signs the global build once and hands each mount a composition naming its own plugins.\n *\n * Every mount of one build shares a publication id, so the bytes are counted per mount and\n * released only when the last mount leaves or moves to another build.\n */\nexport function createWebCompositions(\n stateDirectory: string,\n onNotice: (message: string) => void,\n owner?: PublicationOwner,\n) {\n const publication = createPluginBundlePublication(stateDirectory, onNotice, owner);\n let shell: PublishedBundle | undefined;\n let shellId: string | undefined;\n const mounts = new Map<string, PoWebComposition>();\n const nativeMounts = new Map<string, PoNativeComposition>();\n const references = new Map<string, number>();\n const keyOf = (mount: PoApiMount): string =>\n mount.scope === 'host'\n ? 'host'\n : mount.scope === 'workspace'\n ? `workspace:${mount.workspaceId}`\n : `session:${mount.sessionId}`;\n const release = (id: string): void => {\n const count = (references.get(id) ?? 0) - 1;\n if (count > 0) {\n references.set(id, count);\n return;\n }\n references.delete(id);\n publication.release(id);\n };\n return {\n publishShell(build: GlobalWebBuild): void {\n const id = sha256(`shell:${build.key}`);\n const next = publication.publish(id, build.webDirectory);\n if (!next) throw new Error('Could not publish the global web shell.');\n // A build that comes back must be signed again: pages refuse a revision below the one they hold.\n if (shellId !== undefined && shellId !== id) publication.release(shellId);\n shell = next;\n shellId = id;\n },\n shellTrust: () =>\n shell === undefined ? undefined : { publicKey: shell.signed.publicKey, revision: shell.signed.manifest.revision },\n publish(\n mount: PoApiMount,\n build: GlobalWebBuild,\n channels: readonly string[],\n slots: readonly string[],\n ): PoWebComposition | undefined {\n const id = sha256(`plugins:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory);\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} web composition.`);\n const previous = mounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const signedPaths = new Set(published.signed.manifest.assets.map((asset) => asset.path));\n const composition: PoWebComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n verifiedAssetBaseUrl: `/verified-plugins/${id}/${String(revision)}`,\n pluginEntries: slotPlugins(build, slots).map((plugin): [string, string] => [\n plugin.slot,\n absolute(plugin.entry),\n ]),\n assetPaths: mountAssetPaths(build, slots).filter((file) => signedPaths.has(file)),\n stylePaths: mountStylePaths(build, slots).filter((style) => signedPaths.has(style)),\n channels: [...channels],\n plugins: [...slots],\n };\n mounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n get: (mount: PoApiMount) => mounts.get(keyOf(mount)),\n remove: (mount: PoApiMount) => {\n const previous = mounts.get(keyOf(mount));\n mounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Publishes the native composition for one mount. Signed under the `native` profile, so it can\n * never be served or verified as a web bundle. Shares reference counting with web publications.\n */\n publishNative(\n mount: PoApiMount,\n build: GlobalNativeBuild,\n channels: readonly string[],\n pluginIds: readonly string[],\n ): PoNativeComposition {\n const id = sha256(`native:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory, 'native');\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} native composition.`);\n const previous = nativeMounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const composition: PoNativeComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n ...(build.uiEntry === undefined ? {} : { uiEntry: absolute(build.uiEntry) }),\n pluginEntries: pluginIds.flatMap((pluginId): [string, string][] => {\n const entry = build.pluginEntries[pluginId];\n return entry === undefined ? [] : [[pluginId, absolute(entry)]];\n }),\n channels: [...channels],\n plugins: [...pluginIds],\n };\n nativeMounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n getNative: (mount: PoApiMount) => nativeMounts.get(keyOf(mount)),\n removeNative: (mount: PoApiMount) => {\n const previous = nativeMounts.get(keyOf(mount));\n nativeMounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Signs `po/host-channel-key/v1` with the shell publication's signer, the key the pairing QR pins\n * as `s`. Undefined until the shell is published.\n */\n attestHost: (fields: readonly string[]): string | undefined =>\n shell === undefined ? undefined : publication.attest(HOST_CHANNEL_KEY_TAG, fields),\n /** Federation proofs use the same physically pinned host key, not an account device key. */\n attestFederation: (\n tag:\n | 'po/identity-mint/v1'\n | 'po/hub-enrollment/v1'\n | 'po/host-request/v1'\n | 'po/private-relay-host/v1'\n | 'po/private-relay-channel/v1'\n | 'po/private-relay-link/v1'\n | 'po/vote/v1'\n | 'po/capabilities/v1'\n | 'po/roster-promise/v1'\n | 'po/roster-vote/v1',\n fields: readonly string[],\n ): string | undefined => publication.attest(tag, fields),\n publicKey: () => publication.publicKey(),\n async request(request: Request): Promise<Response | undefined> {\n const url = new URL(request.url);\n if (\n (url.pathname === '/bundle-manifest.json' || url.pathname.startsWith('/bundle-assets/')) &&\n request.method !== 'GET' &&\n request.method !== 'HEAD'\n )\n return new Response(null, { status: 405 });\n if (url.pathname === '/bundle-manifest.json') {\n if (!shell) return new Response(null, { status: 404 });\n return Response.json(shell.signed);\n }\n const shellAsset = /^\\/bundle-assets\\/(\\d+)(\\/.*)$/u.exec(url.pathname);\n if (shellAsset) {\n if (!shell || Number(shellAsset[1]) !== shell.signed.manifest.revision)\n return new Response(null, { status: 404 });\n const asset = shell.signed.manifest.assets.find((entry) => entry.path === shellAsset[2]);\n if (!asset) return new Response(null, { status: 404 });\n const file = assetFile(shell.assetsDir, asset.path);\n if (!file) return new Response(null, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: { 'content-type': asset.contentType, 'x-content-type-options': 'nosniff' },\n });\n }\n const match = /^\\/api\\/web-plugins\\/([a-f0-9]{64})\\/(\\d+)\\/(manifest|assets(?:\\/.*)?)$/u.exec(url.pathname);\n if (!match) return undefined;\n if (request.method !== 'GET' && request.method !== 'HEAD') return new Response(null, { status: 405 });\n const bundle = publication.get(match[1], Number(match[2]));\n if (!bundle) return Response.json({ error: 'Plugin generation not found.' }, { status: 404 });\n if (match[3] === 'manifest') return Response.json(bundle.signed);\n const assetPath = match[3].slice('assets'.length);\n const asset = bundle.signed.manifest.assets.find((candidate) => candidate.path === assetPath);\n if (!asset) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const file = assetFile(bundle.assetsDir, asset.path);\n if (!file) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: {\n 'content-type': asset.contentType,\n 'cache-control': 'private, max-age=31536000, immutable',\n 'x-content-type-options': 'nosniff',\n },\n });\n },\n close() {\n mounts.clear();\n nativeMounts.clear();\n references.clear();\n publication.close();\n },\n };\n}\n"],"mappings":";;;;;;;;;;;AAwDA,MAAM,YAAY,SAA0B,KAAK,WAAW,GAAG,IAAI,OAAO,IAAI;;;;;AAM9E,SAAS,UAAU,MAAc,WAAuC;CACtE,IAAI;EACF,MAAM,OAAOA,UAAAA,QAAK,QAAQ,IAAI;EAC9B,MAAM,OAAOA,UAAAA,QAAK,QAAQ,MAAM,GAAG,UAAU,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,kBAAkB,CAAC;EACxF,OAAO,KAAK,WAAW,GAAG,OAAOA,UAAAA,QAAK,KAAK,KAAK,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,KAAA;CAChF,QAAQ;EACN;CACF;AACF;;AAGA,SAAS,YAAY,OAAuB,OAAkD;CAC5F,OAAO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AAW,SAAS,OAAO,OAAO,EAC5D,SAAS;IACP,gBAAgB,MAAM;IACtB,iBAAiB;IACjB,0BAA0B;GAC5B,EACF,CAAC;EACH;EACA,QAAQ;GACN,OAAO,MAAM;GACb,aAAa,MAAM;GACnB,WAAW,MAAM;GACjB,YAAY,MAAM;EACpB;CACF;AACF"}
|
|
@@ -83,7 +83,7 @@ export declare function createWebCompositions(stateDirectory: string, onNotice:
|
|
|
83
83
|
*/
|
|
84
84
|
attestHost: (fields: readonly string[]) => string | undefined;
|
|
85
85
|
/** Federation proofs use the same physically pinned host key, not an account device key. */
|
|
86
|
-
attestFederation: (tag: 'po/identity-mint/v1' | 'po/hub-enrollment/v1' | 'po/host-request/v1' | 'po/vote/v1' | 'po/capabilities/v1' | 'po/roster-promise/v1' | 'po/roster-vote/v1', fields: readonly string[]) => string | undefined;
|
|
86
|
+
attestFederation: (tag: 'po/identity-mint/v1' | 'po/hub-enrollment/v1' | 'po/host-request/v1' | 'po/private-relay-host/v1' | 'po/private-relay-channel/v1' | 'po/private-relay-link/v1' | 'po/vote/v1' | 'po/capabilities/v1' | 'po/roster-promise/v1' | 'po/roster-vote/v1', fields: readonly string[]) => string | undefined;
|
|
87
87
|
publicKey: () => string | undefined;
|
|
88
88
|
request(request: Request): Promise<Response | undefined>;
|
|
89
89
|
close(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webCompositions.d.mts","names":[],"sources":["../src/services/webCompositions/index.ts"],"mappings":";;;;;;iBAYiB;EACf;;EAEA;EACA;EACA;;EAEA;IAAU;IAAqB,UAAU;;;EAEzC;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA,kBAAkB;;EAElB,cAAc,SAAS;;EAEvB;;;iBAIe;;EAEf;;EAEA;;EAEA,eAAe,SAAS;;EAExB;;;;;;wBA4Bc,gBAAgB,OAAO,gBAAgB;;wBAQvC,gBAAgB,OAAO,gBAAgB;;;;;;;wBAkBvC,sBACd,wBACA,WAAW,0BACX,QAAQ;EAwBN,aAAY,OAAQ;EASpB;;;;EAEA,QAAO,OACE,YAAU,OACV,gBAAc,6BACM,2BAE1B;EA6BH,MAAG,OAAU,eAAU;EACvB,SAAM,OAAU;;;;;EAShB,cAAa,OACJ,YAAU,OACV,mBAAiB,6BACG,+BAE1B;EA0BH,YAAS,OAAU,eAAU;EAC7B,eAAY,OAAU;;;;;EAStB,aAAU;;EAGV,mBAAgB,
|
|
1
|
+
{"version":3,"file":"webCompositions.d.mts","names":[],"sources":["../src/services/webCompositions/index.ts"],"mappings":";;;;;;iBAYiB;EACf;;EAEA;EACA;EACA;;EAEA;IAAU;IAAqB,UAAU;;;EAEzC;;EAEA;;EAEA;;;iBAIe;;EAEf;;EAEA;;EAEA;;EAEA,kBAAkB;;EAElB,cAAc,SAAS;;EAEvB;;;iBAIe;;EAEf;;EAEA;;EAEA,eAAe,SAAS;;EAExB;;;;;;wBA4Bc,gBAAgB,OAAO,gBAAgB;;wBAQvC,gBAAgB,OAAO,gBAAgB;;;;;;;wBAkBvC,sBACd,wBACA,WAAW,0BACX,QAAQ;EAwBN,aAAY,OAAQ;EASpB;;;;EAEA,QAAO,OACE,YAAU,OACV,gBAAc,6BACM,2BAE1B;EA6BH,MAAG,OAAU,eAAU;EACvB,SAAM,OAAU;;;;;EAShB,cAAa,OACJ,YAAU,OACV,mBAAiB,6BACG,+BAE1B;EA0BH,YAAS,OAAU,eAAU;EAC7B,eAAY,OAAU;;;;;EAStB,aAAU;;EAGV,mBAAgB,2PAWS;EAGzB;EACM,QAAO,SAAU,UAAU,QAAQ;EA6CzC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webCompositions.mjs","names":[],"sources":["../src/services/webCompositions/index.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\n\nimport { HOST_CHANNEL_KEY_TAG } from '../../constants/remote';\nimport type { PoApiMount, PoNativeComposition, PoWebComposition } from '../../exports/packageApi';\nimport type { PoWebBrainMetadata } from '../../schemas/brain';\nimport { createPluginBundlePublication, type PublicationOwner, type PublishedBundle } from '../bundlePublication';\n\nexport { reapAbandonedPublications } from '../bundlePublication';\n\n/** One plugin copy in a global web build: its slot entry and the files that entry can load. */\nexport interface GlobalWebBuildPlugin {\n pluginId: string;\n /** The copy's identity: the pluginId for a host plugin, else the pluginId plus a package hash. */\n slot: string;\n packageDir: string;\n isHost: boolean;\n /** Descriptions from the same package manifest used to build this plugin copy. */\n brain?: { packageName: string; metadata: PoWebBrainMetadata };\n /** The slot entry module below `pluginsDirectory`. */\n entry: string;\n /** Every file below `pluginsDirectory` the entry reaches through static and dynamic imports, plus its stylesheet. */\n files: readonly string[];\n /** The stylesheets of the entry's static import closure. */\n css: readonly string[];\n}\n\n/** One global web build: the shell, the shared plugin composition, and one stylesheet per plugin copy. */\nexport interface GlobalWebBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Signed cockpit shell directory. */\n webDirectory: string;\n /** Shared plugin composition directory, published once for every mount. */\n pluginsDirectory: string;\n /** Every plugin copy in the build, in build order. */\n plugins: readonly GlobalWebBuildPlugin[];\n /** Content-hashed stylesheet paths below `pluginsDirectory`, keyed by slot. */\n pluginStyles: Readonly<Record<string, string>>;\n /** Stylesheet a mount without plugin styles still loads, for the host shell and fallback template. */\n baseStyle?: string;\n}\n\n/** One global native build: one signed CommonJS module per plugin, shared by every mount. */\nexport interface GlobalNativeBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Directory holding the plugin modules, each at the top level. */\n pluginsDirectory: string;\n /** Each built plugin's module path below `pluginsDirectory`; a plugin that failed to build is absent. */\n pluginEntries: Readonly<Record<string, string>>;\n /** The shared host-owned UI module, signed alongside the plugins. Absent on legacy builds. */\n uiEntry?: string;\n}\n\nconst absolute = (file: string): string => (file.startsWith('/') ? file : `/${file}`);\n\n/**\n * The file a signed manifest path names below `root`. Manifest segments are percent-encoded\n * (`@` and `+` in pnpm paths); the decoded file must still resolve inside `root`.\n */\nfunction assetFile(root: string, assetPath: string): string | undefined {\n try {\n const base = path.resolve(root);\n const file = path.resolve(base, ...assetPath.slice(1).split('/').map(decodeURIComponent));\n return file.startsWith(`${base}${path.sep}`) && !file.includes('\\0') ? file : undefined;\n } catch {\n return undefined; // A malformed escape names no file.\n }\n}\n\n/** The build's plugin copies for exactly the given slots, in slot order. */\nfunction slotPlugins(build: GlobalWebBuild, slots: readonly string[]): GlobalWebBuildPlugin[] {\n return slots.flatMap((slot) => build.plugins.filter((plugin) => plugin.slot === slot));\n}\n\n/**\n * The stylesheets of exactly the given slots, each loaded once: the stylesheets their code\n * imports first, then each slot's own stylesheet in slot order.\n */\nexport function mountStylePaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n const paths = slots.map((slot) => build.pluginStyles[slot]).filter((style) => style !== undefined);\n if (paths.length === 0 && build.baseStyle !== undefined) paths.push(build.baseStyle);\n const imported = slotPlugins(build, slots).flatMap((plugin) => plugin.css);\n return [...new Set([...imported, ...paths].map(absolute))];\n}\n\n/** Every file the given slots can load: their reachable files and static stylesheets, each once. */\nexport function mountAssetPaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n return [\n ...new Set(\n slotPlugins(build, slots)\n .flatMap((plugin) => [...plugin.files, ...plugin.css])\n .map(absolute),\n ),\n ];\n}\n\nconst sha256 = (value: string): string => crypto.createHash('sha256').update(value).digest('hex');\n\n/**\n * Signs the global build once and hands each mount a composition naming its own plugins.\n *\n * Every mount of one build shares a publication id, so the bytes are counted per mount and\n * released only when the last mount leaves or moves to another build.\n */\nexport function createWebCompositions(\n stateDirectory: string,\n onNotice: (message: string) => void,\n owner?: PublicationOwner,\n) {\n const publication = createPluginBundlePublication(stateDirectory, onNotice, owner);\n let shell: PublishedBundle | undefined;\n let shellId: string | undefined;\n const mounts = new Map<string, PoWebComposition>();\n const nativeMounts = new Map<string, PoNativeComposition>();\n const references = new Map<string, number>();\n const keyOf = (mount: PoApiMount): string =>\n mount.scope === 'host'\n ? 'host'\n : mount.scope === 'workspace'\n ? `workspace:${mount.workspaceId}`\n : `session:${mount.sessionId}`;\n const release = (id: string): void => {\n const count = (references.get(id) ?? 0) - 1;\n if (count > 0) {\n references.set(id, count);\n return;\n }\n references.delete(id);\n publication.release(id);\n };\n return {\n publishShell(build: GlobalWebBuild): void {\n const id = sha256(`shell:${build.key}`);\n const next = publication.publish(id, build.webDirectory);\n if (!next) throw new Error('Could not publish the global web shell.');\n // A build that comes back must be signed again: pages refuse a revision below the one they hold.\n if (shellId !== undefined && shellId !== id) publication.release(shellId);\n shell = next;\n shellId = id;\n },\n shellTrust: () =>\n shell === undefined ? undefined : { publicKey: shell.signed.publicKey, revision: shell.signed.manifest.revision },\n publish(\n mount: PoApiMount,\n build: GlobalWebBuild,\n channels: readonly string[],\n slots: readonly string[],\n ): PoWebComposition | undefined {\n const id = sha256(`plugins:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory);\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} web composition.`);\n const previous = mounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const signedPaths = new Set(published.signed.manifest.assets.map((asset) => asset.path));\n const composition: PoWebComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n verifiedAssetBaseUrl: `/verified-plugins/${id}/${String(revision)}`,\n pluginEntries: slotPlugins(build, slots).map((plugin): [string, string] => [\n plugin.slot,\n absolute(plugin.entry),\n ]),\n assetPaths: mountAssetPaths(build, slots).filter((file) => signedPaths.has(file)),\n stylePaths: mountStylePaths(build, slots).filter((style) => signedPaths.has(style)),\n channels: [...channels],\n plugins: [...slots],\n };\n mounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n get: (mount: PoApiMount) => mounts.get(keyOf(mount)),\n remove: (mount: PoApiMount) => {\n const previous = mounts.get(keyOf(mount));\n mounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Publishes the native composition for one mount. Signed under the `native` profile, so it can\n * never be served or verified as a web bundle. Shares reference counting with web publications.\n */\n publishNative(\n mount: PoApiMount,\n build: GlobalNativeBuild,\n channels: readonly string[],\n pluginIds: readonly string[],\n ): PoNativeComposition {\n const id = sha256(`native:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory, 'native');\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} native composition.`);\n const previous = nativeMounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const composition: PoNativeComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n ...(build.uiEntry === undefined ? {} : { uiEntry: absolute(build.uiEntry) }),\n pluginEntries: pluginIds.flatMap((pluginId): [string, string][] => {\n const entry = build.pluginEntries[pluginId];\n return entry === undefined ? [] : [[pluginId, absolute(entry)]];\n }),\n channels: [...channels],\n plugins: [...pluginIds],\n };\n nativeMounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n getNative: (mount: PoApiMount) => nativeMounts.get(keyOf(mount)),\n removeNative: (mount: PoApiMount) => {\n const previous = nativeMounts.get(keyOf(mount));\n nativeMounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Signs `po/host-channel-key/v1` with the shell publication's signer, the key the pairing QR pins\n * as `s`. Undefined until the shell is published.\n */\n attestHost: (fields: readonly string[]): string | undefined =>\n shell === undefined ? undefined : publication.attest(HOST_CHANNEL_KEY_TAG, fields),\n /** Federation proofs use the same physically pinned host key, not an account device key. */\n attestFederation: (\n tag:\n | 'po/identity-mint/v1'\n | 'po/hub-enrollment/v1'\n | 'po/host-request/v1'\n | 'po/vote/v1'\n | 'po/capabilities/v1'\n | 'po/roster-promise/v1'\n | 'po/roster-vote/v1',\n fields: readonly string[],\n ): string | undefined => publication.attest(tag, fields),\n publicKey: () => publication.publicKey(),\n async request(request: Request): Promise<Response | undefined> {\n const url = new URL(request.url);\n if (\n (url.pathname === '/bundle-manifest.json' || url.pathname.startsWith('/bundle-assets/')) &&\n request.method !== 'GET' &&\n request.method !== 'HEAD'\n )\n return new Response(null, { status: 405 });\n if (url.pathname === '/bundle-manifest.json') {\n if (!shell) return new Response(null, { status: 404 });\n return Response.json(shell.signed);\n }\n const shellAsset = /^\\/bundle-assets\\/(\\d+)(\\/.*)$/u.exec(url.pathname);\n if (shellAsset) {\n if (!shell || Number(shellAsset[1]) !== shell.signed.manifest.revision)\n return new Response(null, { status: 404 });\n const asset = shell.signed.manifest.assets.find((entry) => entry.path === shellAsset[2]);\n if (!asset) return new Response(null, { status: 404 });\n const file = assetFile(shell.assetsDir, asset.path);\n if (!file) return new Response(null, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: { 'content-type': asset.contentType, 'x-content-type-options': 'nosniff' },\n });\n }\n const match = /^\\/api\\/web-plugins\\/([a-f0-9]{64})\\/(\\d+)\\/(manifest|assets(?:\\/.*)?)$/u.exec(url.pathname);\n if (!match) return undefined;\n if (request.method !== 'GET' && request.method !== 'HEAD') return new Response(null, { status: 405 });\n const bundle = publication.get(match[1], Number(match[2]));\n if (!bundle) return Response.json({ error: 'Plugin generation not found.' }, { status: 404 });\n if (match[3] === 'manifest') return Response.json(bundle.signed);\n const assetPath = match[3].slice('assets'.length);\n const asset = bundle.signed.manifest.assets.find((candidate) => candidate.path === assetPath);\n if (!asset) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const file = assetFile(bundle.assetsDir, asset.path);\n if (!file) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: {\n 'content-type': asset.contentType,\n 'cache-control': 'private, max-age=31536000, immutable',\n 'x-content-type-options': 'nosniff',\n },\n });\n },\n close() {\n mounts.clear();\n nativeMounts.clear();\n references.clear();\n publication.close();\n },\n };\n}\n"],"mappings":";;;;;;AAwDA,MAAM,YAAY,SAA0B,KAAK,WAAW,GAAG,IAAI,OAAO,IAAI;;;;;AAM9E,SAAS,UAAU,MAAc,WAAuC;CACtE,IAAI;EACF,MAAM,OAAO,KAAK,QAAQ,IAAI;EAC9B,MAAM,OAAO,KAAK,QAAQ,MAAM,GAAG,UAAU,MAAM,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,kBAAkB,CAAC;EACxF,OAAO,KAAK,WAAW,GAAG,OAAO,KAAK,KAAK,KAAK,CAAC,KAAK,SAAS,IAAI,IAAI,OAAO,KAAA;CAChF,QAAQ;EACN;CACF;AACF;;AAGA,SAAS,YAAY,OAAuB,OAAkD;CAC5F,OAAO,MAAM,SAAS,SAAS,MAAM,QAAQ,QAAQ,WAAW,OAAO,SAAS,IAAI,CAAC;AACvF;;;;;AAMA,SAAgB,gBAAgB,OAAuB,OAAoC;CACzF,MAAM,QAAQ,MAAM,KAAK,SAAS,MAAM,aAAa,KAAK,CAAC,CAAC,QAAQ,UAAU,UAAU,KAAA,CAAS;CACjG,IAAI,MAAM,WAAW,KAAK,MAAM,cAAc,KAAA,GAAW,MAAM,KAAK,MAAM,SAAS;CACnF,MAAM,WAAW,YAAY,OAAO,KAAK,CAAC,CAAC,SAAS,WAAW,OAAO,GAAG;CACzE,OAAO,CAAC,GAAG,IAAI,IAAI,CAAC,GAAG,UAAU,GAAG,KAAK,CAAC,CAAC,IAAI,QAAQ,CAAC,CAAC;AAC3D;;AAGA,SAAgB,gBAAgB,OAAuB,OAAoC;CACzF,OAAO,CACL,GAAG,IAAI,IACL,YAAY,OAAO,KAAK,CAAC,CACtB,SAAS,WAAW,CAAC,GAAG,OAAO,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CAAC,QAAQ,OAAO,SAAS,KAAK,EAAE,OAAO,+BAA+B,GAAG,EAAE,QAAQ,IAAI,CAAC;GAC5F,IAAI,MAAM,OAAO,YAAY,OAAO,SAAS,KAAK,OAAO,MAAM;GAC/D,MAAM,YAAY,MAAM,EAAE,CAAC,MAAM,CAAe;GAChD,MAAM,QAAQ,OAAO,OAAO,SAAS,OAAO,MAAM,cAAc,UAAU,SAAS,SAAS;GAC5F,IAAI,CAAC,OAAO,OAAO,SAAS,KAAK,EAAE,OAAO,0BAA0B,GAAG,EAAE,QAAQ,IAAI,CAAC;GACtF,MAAM,OAAO,UAAU,OAAO,WAAW,MAAM,IAAI;GACnD,IAAI,CAAC,MAAM,OAAO,SAAS,KAAK,EAAE,OAAO,0BAA0B,GAAG,EAAE,QAAQ,IAAI,CAAC;GACrF,MAAM,QAAQ,MAAM,GAAG,SAAS,IAAI;GACpC,OAAO,IAAI,SAAS,QAAQ,WAAW,SAAS,OAAO,OAAO,EAC5D,SAAS;IACP,gBAAgB,MAAM;IACtB,iBAAiB;IACjB,0BAA0B;GAC5B,EACF,CAAC;EACH;EACA,QAAQ;GACN,OAAO,MAAM;GACb,aAAa,MAAM;GACnB,WAAW,MAAM;GACjB,YAAY,MAAM;EACpB;CACF;AACF"}
|
|
1
|
+
{"version":3,"file":"webCompositions.mjs","names":[],"sources":["../src/services/webCompositions/index.ts"],"sourcesContent":["import crypto from 'node:crypto';\nimport fs from 'node:fs/promises';\nimport path from 'node:path';\n\nimport { HOST_CHANNEL_KEY_TAG } from '../../constants/remote';\nimport type { PoApiMount, PoNativeComposition, PoWebComposition } from '../../exports/packageApi';\nimport type { PoWebBrainMetadata } from '../../schemas/brain';\nimport { createPluginBundlePublication, type PublicationOwner, type PublishedBundle } from '../bundlePublication';\n\nexport { reapAbandonedPublications } from '../bundlePublication';\n\n/** One plugin copy in a global web build: its slot entry and the files that entry can load. */\nexport interface GlobalWebBuildPlugin {\n pluginId: string;\n /** The copy's identity: the pluginId for a host plugin, else the pluginId plus a package hash. */\n slot: string;\n packageDir: string;\n isHost: boolean;\n /** Descriptions from the same package manifest used to build this plugin copy. */\n brain?: { packageName: string; metadata: PoWebBrainMetadata };\n /** The slot entry module below `pluginsDirectory`. */\n entry: string;\n /** Every file below `pluginsDirectory` the entry reaches through static and dynamic imports, plus its stylesheet. */\n files: readonly string[];\n /** The stylesheets of the entry's static import closure. */\n css: readonly string[];\n}\n\n/** One global web build: the shell, the shared plugin composition, and one stylesheet per plugin copy. */\nexport interface GlobalWebBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Signed cockpit shell directory. */\n webDirectory: string;\n /** Shared plugin composition directory, published once for every mount. */\n pluginsDirectory: string;\n /** Every plugin copy in the build, in build order. */\n plugins: readonly GlobalWebBuildPlugin[];\n /** Content-hashed stylesheet paths below `pluginsDirectory`, keyed by slot. */\n pluginStyles: Readonly<Record<string, string>>;\n /** Stylesheet a mount without plugin styles still loads, for the host shell and fallback template. */\n baseStyle?: string;\n}\n\n/** One global native build: one signed CommonJS module per plugin, shared by every mount. */\nexport interface GlobalNativeBuild {\n /** Content key of the build; equal keys hold identical bytes. */\n key: string;\n /** Directory holding the plugin modules, each at the top level. */\n pluginsDirectory: string;\n /** Each built plugin's module path below `pluginsDirectory`; a plugin that failed to build is absent. */\n pluginEntries: Readonly<Record<string, string>>;\n /** The shared host-owned UI module, signed alongside the plugins. Absent on legacy builds. */\n uiEntry?: string;\n}\n\nconst absolute = (file: string): string => (file.startsWith('/') ? file : `/${file}`);\n\n/**\n * The file a signed manifest path names below `root`. Manifest segments are percent-encoded\n * (`@` and `+` in pnpm paths); the decoded file must still resolve inside `root`.\n */\nfunction assetFile(root: string, assetPath: string): string | undefined {\n try {\n const base = path.resolve(root);\n const file = path.resolve(base, ...assetPath.slice(1).split('/').map(decodeURIComponent));\n return file.startsWith(`${base}${path.sep}`) && !file.includes('\\0') ? file : undefined;\n } catch {\n return undefined; // A malformed escape names no file.\n }\n}\n\n/** The build's plugin copies for exactly the given slots, in slot order. */\nfunction slotPlugins(build: GlobalWebBuild, slots: readonly string[]): GlobalWebBuildPlugin[] {\n return slots.flatMap((slot) => build.plugins.filter((plugin) => plugin.slot === slot));\n}\n\n/**\n * The stylesheets of exactly the given slots, each loaded once: the stylesheets their code\n * imports first, then each slot's own stylesheet in slot order.\n */\nexport function mountStylePaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n const paths = slots.map((slot) => build.pluginStyles[slot]).filter((style) => style !== undefined);\n if (paths.length === 0 && build.baseStyle !== undefined) paths.push(build.baseStyle);\n const imported = slotPlugins(build, slots).flatMap((plugin) => plugin.css);\n return [...new Set([...imported, ...paths].map(absolute))];\n}\n\n/** Every file the given slots can load: their reachable files and static stylesheets, each once. */\nexport function mountAssetPaths(build: GlobalWebBuild, slots: readonly string[]): string[] {\n return [\n ...new Set(\n slotPlugins(build, slots)\n .flatMap((plugin) => [...plugin.files, ...plugin.css])\n .map(absolute),\n ),\n ];\n}\n\nconst sha256 = (value: string): string => crypto.createHash('sha256').update(value).digest('hex');\n\n/**\n * Signs the global build once and hands each mount a composition naming its own plugins.\n *\n * Every mount of one build shares a publication id, so the bytes are counted per mount and\n * released only when the last mount leaves or moves to another build.\n */\nexport function createWebCompositions(\n stateDirectory: string,\n onNotice: (message: string) => void,\n owner?: PublicationOwner,\n) {\n const publication = createPluginBundlePublication(stateDirectory, onNotice, owner);\n let shell: PublishedBundle | undefined;\n let shellId: string | undefined;\n const mounts = new Map<string, PoWebComposition>();\n const nativeMounts = new Map<string, PoNativeComposition>();\n const references = new Map<string, number>();\n const keyOf = (mount: PoApiMount): string =>\n mount.scope === 'host'\n ? 'host'\n : mount.scope === 'workspace'\n ? `workspace:${mount.workspaceId}`\n : `session:${mount.sessionId}`;\n const release = (id: string): void => {\n const count = (references.get(id) ?? 0) - 1;\n if (count > 0) {\n references.set(id, count);\n return;\n }\n references.delete(id);\n publication.release(id);\n };\n return {\n publishShell(build: GlobalWebBuild): void {\n const id = sha256(`shell:${build.key}`);\n const next = publication.publish(id, build.webDirectory);\n if (!next) throw new Error('Could not publish the global web shell.');\n // A build that comes back must be signed again: pages refuse a revision below the one they hold.\n if (shellId !== undefined && shellId !== id) publication.release(shellId);\n shell = next;\n shellId = id;\n },\n shellTrust: () =>\n shell === undefined ? undefined : { publicKey: shell.signed.publicKey, revision: shell.signed.manifest.revision },\n publish(\n mount: PoApiMount,\n build: GlobalWebBuild,\n channels: readonly string[],\n slots: readonly string[],\n ): PoWebComposition | undefined {\n const id = sha256(`plugins:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory);\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} web composition.`);\n const previous = mounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const signedPaths = new Set(published.signed.manifest.assets.map((asset) => asset.path));\n const composition: PoWebComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n verifiedAssetBaseUrl: `/verified-plugins/${id}/${String(revision)}`,\n pluginEntries: slotPlugins(build, slots).map((plugin): [string, string] => [\n plugin.slot,\n absolute(plugin.entry),\n ]),\n assetPaths: mountAssetPaths(build, slots).filter((file) => signedPaths.has(file)),\n stylePaths: mountStylePaths(build, slots).filter((style) => signedPaths.has(style)),\n channels: [...channels],\n plugins: [...slots],\n };\n mounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n get: (mount: PoApiMount) => mounts.get(keyOf(mount)),\n remove: (mount: PoApiMount) => {\n const previous = mounts.get(keyOf(mount));\n mounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Publishes the native composition for one mount. Signed under the `native` profile, so it can\n * never be served or verified as a web bundle. Shares reference counting with web publications.\n */\n publishNative(\n mount: PoApiMount,\n build: GlobalNativeBuild,\n channels: readonly string[],\n pluginIds: readonly string[],\n ): PoNativeComposition {\n const id = sha256(`native:${build.key}`);\n const published = publication.publish(id, build.pluginsDirectory, 'native');\n if (!published) throw new Error(`Could not publish ${keyOf(mount)} native composition.`);\n const previous = nativeMounts.get(keyOf(mount));\n if (previous?.id !== id) references.set(id, (references.get(id) ?? 0) + 1);\n const revision = published.signed.manifest.revision;\n const base = `/api/web-plugins/${id}/${String(revision)}`;\n const composition: PoNativeComposition = {\n id,\n scope: mount.scope,\n revision,\n manifestUrl: `${base}/manifest`,\n rawAssetBaseUrl: `${base}/assets`,\n ...(build.uiEntry === undefined ? {} : { uiEntry: absolute(build.uiEntry) }),\n pluginEntries: pluginIds.flatMap((pluginId): [string, string][] => {\n const entry = build.pluginEntries[pluginId];\n return entry === undefined ? [] : [[pluginId, absolute(entry)]];\n }),\n channels: [...channels],\n plugins: [...pluginIds],\n };\n nativeMounts.set(keyOf(mount), composition);\n if (previous !== undefined && previous.id !== id) release(previous.id);\n return composition;\n },\n getNative: (mount: PoApiMount) => nativeMounts.get(keyOf(mount)),\n removeNative: (mount: PoApiMount) => {\n const previous = nativeMounts.get(keyOf(mount));\n nativeMounts.delete(keyOf(mount));\n if (previous) release(previous.id);\n },\n /**\n * Signs `po/host-channel-key/v1` with the shell publication's signer, the key the pairing QR pins\n * as `s`. Undefined until the shell is published.\n */\n attestHost: (fields: readonly string[]): string | undefined =>\n shell === undefined ? undefined : publication.attest(HOST_CHANNEL_KEY_TAG, fields),\n /** Federation proofs use the same physically pinned host key, not an account device key. */\n attestFederation: (\n tag:\n | 'po/identity-mint/v1'\n | 'po/hub-enrollment/v1'\n | 'po/host-request/v1'\n | 'po/private-relay-host/v1'\n | 'po/private-relay-channel/v1'\n | 'po/private-relay-link/v1'\n | 'po/vote/v1'\n | 'po/capabilities/v1'\n | 'po/roster-promise/v1'\n | 'po/roster-vote/v1',\n fields: readonly string[],\n ): string | undefined => publication.attest(tag, fields),\n publicKey: () => publication.publicKey(),\n async request(request: Request): Promise<Response | undefined> {\n const url = new URL(request.url);\n if (\n (url.pathname === '/bundle-manifest.json' || url.pathname.startsWith('/bundle-assets/')) &&\n request.method !== 'GET' &&\n request.method !== 'HEAD'\n )\n return new Response(null, { status: 405 });\n if (url.pathname === '/bundle-manifest.json') {\n if (!shell) return new Response(null, { status: 404 });\n return Response.json(shell.signed);\n }\n const shellAsset = /^\\/bundle-assets\\/(\\d+)(\\/.*)$/u.exec(url.pathname);\n if (shellAsset) {\n if (!shell || Number(shellAsset[1]) !== shell.signed.manifest.revision)\n return new Response(null, { status: 404 });\n const asset = shell.signed.manifest.assets.find((entry) => entry.path === shellAsset[2]);\n if (!asset) return new Response(null, { status: 404 });\n const file = assetFile(shell.assetsDir, asset.path);\n if (!file) return new Response(null, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: { 'content-type': asset.contentType, 'x-content-type-options': 'nosniff' },\n });\n }\n const match = /^\\/api\\/web-plugins\\/([a-f0-9]{64})\\/(\\d+)\\/(manifest|assets(?:\\/.*)?)$/u.exec(url.pathname);\n if (!match) return undefined;\n if (request.method !== 'GET' && request.method !== 'HEAD') return new Response(null, { status: 405 });\n const bundle = publication.get(match[1], Number(match[2]));\n if (!bundle) return Response.json({ error: 'Plugin generation not found.' }, { status: 404 });\n if (match[3] === 'manifest') return Response.json(bundle.signed);\n const assetPath = match[3].slice('assets'.length);\n const asset = bundle.signed.manifest.assets.find((candidate) => candidate.path === assetPath);\n if (!asset) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const file = assetFile(bundle.assetsDir, asset.path);\n if (!file) return Response.json({ error: 'Plugin asset not found.' }, { status: 404 });\n const bytes = await fs.readFile(file);\n return new Response(request.method === 'HEAD' ? null : bytes, {\n headers: {\n 'content-type': asset.contentType,\n 'cache-control': 'private, max-age=31536000, immutable',\n 'x-content-type-options': 'nosniff',\n },\n });\n },\n close() {\n mounts.clear();\n nativeMounts.clear();\n references.clear();\n publication.close();\n },\n };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AM,EAAE,CAAC,MAAM,CAAe;GAChD,MAAM,QAAQ,OAAO,OAAO,SAAS,OAAO,MAAM,cAAc,UAAU,SAAS,SAAS;GAC5F,IAAI,CAAC,OAAO,OAAO,SAAS,KAAK,EAAE,OAAO,0BAA0B,GAAG,EAAE,QAAQ,IAAI,CAAC;GACtF,MAAM,OAAO,UAAU,OAAO,WAAW,MAAM,IAAI;GACnD,IAAI,CAAC,MAAM,OAAO,SAAS,KAAK,EAAE,OAAO,0BAA0B,GAAG,EAAE,QAAQ,IAAI,CAAC;GACrF,MAAM,QAAQ,MAAM,GAAG,SAAS,IAAI;GACpC,OAAO,IAAI,SAAS,QAAQ,WAAW,SAAS,OAAO,OAAO,EAC5D,SAAS;IACP,gBAAgB,MAAM;IACtB,iBAAiB;IACjB,0BAA0B;GAC5B,EACF,CAAC;EACH;EACA,QAAQ;GACN,OAAO,MAAM;GACb,aAAa,MAAM;GACnB,WAAW,MAAM;GACjB,YAAY,MAAM;EACpB;CACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agimon-ai/po-core",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.172",
|
|
4
4
|
"description": "Po runtime systems and reusable core services.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -604,8 +604,8 @@
|
|
|
604
604
|
"registry": "https://registry.npmjs.org/"
|
|
605
605
|
},
|
|
606
606
|
"dependencies": {
|
|
607
|
-
"@agimon-ai/po-logsink": "0.0.1-alpha.
|
|
608
|
-
"@agimon-ai/po-web-security": "0.0.0-alpha.
|
|
607
|
+
"@agimon-ai/po-logsink": "0.0.1-alpha.154",
|
|
608
|
+
"@agimon-ai/po-web-security": "0.0.0-alpha.172",
|
|
609
609
|
"@deepseek-ai/cordis": "4.0.5",
|
|
610
610
|
"@earendil-works/chord": "1.5.2",
|
|
611
611
|
"@earendil-works/pi-agent-core": "1.5.2",
|
|
@@ -630,8 +630,8 @@
|
|
|
630
630
|
"yaml": "2.9.1"
|
|
631
631
|
},
|
|
632
632
|
"devDependencies": {
|
|
633
|
-
"@agimon-ai/po-build": "0.0.0-alpha.
|
|
634
|
-
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.
|
|
633
|
+
"@agimon-ai/po-build": "0.0.0-alpha.172",
|
|
634
|
+
"@agimon-ai/vibe-lint-plugin-po-core": "0.0.0-alpha.172",
|
|
635
635
|
"@apidevtools/swagger-parser": "^13.1.0",
|
|
636
636
|
"@asyncapi/parser": "^3.6.4",
|
|
637
637
|
"@earendil-works/pi-ai": "1.5.2",
|