openmeld 0.3.262 → 0.3.264
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/dist/{add-me-membership-wBqBUZN7.js → add-me-membership-EPcbBXio.js} +2 -2
- package/dist/{add-me-membership-wBqBUZN7.js.map → add-me-membership-EPcbBXio.js.map} +1 -1
- package/dist/{agents-DzQ6NTFH.js → agents-c6vjR3-E.js} +13 -13
- package/dist/{agents-DzQ6NTFH.js.map → agents-c6vjR3-E.js.map} +1 -1
- package/dist/{api-client-foundation-C3A2-JkQ.js → api-client-foundation-BqzfXt-g.js} +1 -1
- package/dist/{api-client-foundation-Dqxsa_3V.js → api-client-foundation-a7D_P57X.js} +4 -4
- package/dist/{api-client-foundation-Dqxsa_3V.js.map → api-client-foundation-a7D_P57X.js.map} +1 -1
- package/dist/{auth-session-VWQoz03f.js → auth-session-BpRplB8x.js} +7 -7
- package/dist/auth-session-BpRplB8x.js.map +1 -0
- package/dist/auth-session-D2gF0lru.js +4 -0
- package/dist/{auth-url-BVvdeI3F.js → auth-url-0Y8BrR9l.js} +2 -2
- package/dist/{auth-url-BVvdeI3F.js.map → auth-url-0Y8BrR9l.js.map} +1 -1
- package/dist/{base-url-uaTFrave.js → base-url-B7zX2h2d.js} +1 -1
- package/dist/{base-url-C0AOV6je.js → base-url-Cno_Uo8f.js} +3 -3
- package/dist/{base-url-C0AOV6je.js.map → base-url-Cno_Uo8f.js.map} +1 -1
- package/dist/{channel-5TzyWtoj.js → channel-D-a2qCEW.js} +2 -2
- package/dist/{channel-5TzyWtoj.js.map → channel-D-a2qCEW.js.map} +1 -1
- package/dist/{cloud-computer-DujgiSkS.js → cloud-computer-CSK4RYD2.js} +6 -6
- package/dist/{cloud-computer-DujgiSkS.js.map → cloud-computer-CSK4RYD2.js.map} +1 -1
- package/dist/{command-ZxD_qNik.js → command-pywjcxYD.js} +71 -19
- package/dist/command-pywjcxYD.js.map +1 -0
- package/dist/{computer-connection-review-BoQqWowI.js → computer-connection-review-BDhdk1ne.js} +8 -8
- package/dist/computer-connection-review-BDhdk1ne.js.map +1 -0
- package/dist/{computer-disconnect-DSDiFVq_.js → computer-disconnect-Bu5HPoJH.js} +9 -9
- package/dist/{computer-disconnect-DSDiFVq_.js.map → computer-disconnect-Bu5HPoJH.js.map} +1 -1
- package/dist/{computer-setup-continuation-D1rKfaKP.js → computer-setup-continuation-DDx2bdZv.js} +3 -3
- package/dist/{computer-setup-continuation-D1rKfaKP.js.map → computer-setup-continuation-DDx2bdZv.js.map} +1 -1
- package/dist/{context-nHpubzcZ.js → context-NLQSSnf9.js} +7 -7
- package/dist/{context-nHpubzcZ.js.map → context-NLQSSnf9.js.map} +1 -1
- package/dist/{daemon-device-id-CefXWPiF.js → daemon-device-id-Dd-E5NjT.js} +4 -4
- package/dist/{daemon-device-id-CefXWPiF.js.map → daemon-device-id-Dd-E5NjT.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-DbRJ216n.js → daemon-lifecycle-journal-DfYlngmT.js} +9 -11
- package/dist/daemon-lifecycle-journal-DfYlngmT.js.map +1 -0
- package/dist/{daemon-runtime-lease-y8RoGvTS.js → daemon-runtime-lease-Bu1vPY5k.js} +3 -3
- package/dist/{daemon-runtime-lease-y8RoGvTS.js.map → daemon-runtime-lease-Bu1vPY5k.js.map} +1 -1
- package/dist/{daemon-runtime-lease-7sd11Cv3.js → daemon-runtime-lease-DJx3N2Sa.js} +1 -1
- package/dist/{daemon-service-contract-Cik2oi9W.js → daemon-service-contract-D9Gs4YVs.js} +31 -5
- package/dist/daemon-service-contract-D9Gs4YVs.js.map +1 -0
- package/dist/{daemon-service-manager-BnMEtAYp.js → daemon-service-manager-ChWTp6s8.js} +5 -5
- package/dist/{daemon-service-manager-BnMEtAYp.js.map → daemon-service-manager-ChWTp6s8.js.map} +1 -1
- package/dist/{daemon-service-manager-DWM3I_pP.js → daemon-service-manager-Df537dYj.js} +1 -1
- package/dist/{daemon-service-runtime-BhIfwyN9.js → daemon-service-runtime-Dk8OyRtf.js} +14 -14
- package/dist/{daemon-service-runtime-BhIfwyN9.js.map → daemon-service-runtime-Dk8OyRtf.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-DUsnRsrg.js → daemon-service-update-coordinator-CyvjkmsR.js} +22 -24
- package/dist/daemon-service-update-coordinator-CyvjkmsR.js.map +1 -0
- package/dist/{daemon-state-DjfcQFlF.js → daemon-state-CiTQcAWA.js} +3 -3
- package/dist/{daemon-state-DjfcQFlF.js.map → daemon-state-CiTQcAWA.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-Bcz_DYAR.js → dispatch-owned-runtime-rL1dMpSL.js} +77 -29
- package/dist/dispatch-owned-runtime-rL1dMpSL.js.map +1 -0
- package/dist/{dist-DRUbg0Z2.js → dist-BOBe5eOZ.js} +32 -3
- package/dist/dist-BOBe5eOZ.js.map +1 -0
- package/dist/{dist-BnSaxfXN.js → dist-CP5KSxWw.js} +2 -2
- package/dist/{dist-BnSaxfXN.js.map → dist-CP5KSxWw.js.map} +1 -1
- package/dist/dist-DyKCU9Uu.js +4 -0
- package/dist/{dist-DaKpDnJa.js → dist-LObwcebd.js} +1 -1
- package/dist/{dual-view-guide-catalog-BOopzFeg.js → dual-view-guide-catalog-CSV_FNr4.js} +3 -3
- package/dist/{dual-view-guide-catalog-BOopzFeg.js.map → dual-view-guide-catalog-CSV_FNr4.js.map} +1 -1
- package/dist/{elapsed-time-Dx4ZdxI7.js → elapsed-time-DFp-tAB8.js} +4 -4
- package/dist/{elapsed-time-Dx4ZdxI7.js.map → elapsed-time-DFp-tAB8.js.map} +1 -1
- package/dist/{entry-B8GRBYAI.js → entry-DnUl6Ms1.js} +12 -12
- package/dist/{entry-B8GRBYAI.js.map → entry-DnUl6Ms1.js.map} +1 -1
- package/dist/{installation-inventory-Ds2Q1XoG.js → installation-inventory-87Vo7lnz.js} +4 -4
- package/dist/{installation-inventory-Ds2Q1XoG.js.map → installation-inventory-87Vo7lnz.js.map} +1 -1
- package/dist/{installer-CFubHwmq.js → installer-CbmSCmp3.js} +2 -2
- package/dist/{installer-CFubHwmq.js.map → installer-CbmSCmp3.js.map} +1 -1
- package/dist/{lock-tTXKrDmv.js → lock-y1PCtVSn.js} +3 -3
- package/dist/{lock-tTXKrDmv.js.map → lock-y1PCtVSn.js.map} +1 -1
- package/dist/{meta-api-uKt0ERL5.js → meta-api-CBfmjR2R.js} +7 -7
- package/dist/{meta-api-uKt0ERL5.js.map → meta-api-CBfmjR2R.js.map} +1 -1
- package/dist/{openmeld-BORFxyod.js → openmeld-NTZxD9-J.js} +45 -43
- package/dist/{openmeld-BORFxyod.js.map → openmeld-NTZxD9-J.js.map} +1 -1
- package/dist/{openmeld-dev-environment-IxwblJHw.js → openmeld-dev-environment-Bx6D1B6_.js} +3 -3
- package/dist/{openmeld-dev-environment-IxwblJHw.js.map → openmeld-dev-environment-Bx6D1B6_.js.map} +1 -1
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-environment-target-BnzzM5fh.js → openmeld-environment-target-oDaSSRO3.js} +3 -3
- package/dist/{openmeld-environment-target-BnzzM5fh.js.map → openmeld-environment-target-oDaSSRO3.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-CCvqxpZv.js → openmeld-maintenance-worker-DKV1YZ77.js} +14 -14
- package/dist/{openmeld-maintenance-worker-CCvqxpZv.js.map → openmeld-maintenance-worker-DKV1YZ77.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-CCogwfR2.js → openmeld-tools-update-join-DC_rkVk4.js} +4 -4
- package/dist/{openmeld-tools-update-join-CCogwfR2.js.map → openmeld-tools-update-join-DC_rkVk4.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-BARWpgIm.js → openmeld-tools-update-process-frame-BOdfnz6g.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-BARWpgIm.js.map → openmeld-tools-update-process-frame-BOdfnz6g.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-C5p9EEV0.js → openmeld-tools-update-process-frame-CHxv33b4.js} +1 -1
- package/dist/openmeld.js +23 -7
- package/dist/openmeld.js.map +1 -1
- package/dist/{prepare-provider-runtime-B0gBhnir.js → prepare-provider-runtime-BbJnigvx.js} +572 -483
- package/dist/prepare-provider-runtime-BbJnigvx.js.map +1 -0
- package/dist/{prepare-session-executor-CgZTF3OV.js → prepare-session-executor-DtrZ5-G9.js} +25 -25
- package/dist/{prepare-session-executor-CgZTF3OV.js.map → prepare-session-executor-DtrZ5-G9.js.map} +1 -1
- package/dist/{process-channel-ehx69w9I.js → process-channel-B6Y2-Xau.js} +2 -2
- package/dist/{process-channel-ehx69w9I.js.map → process-channel-B6Y2-Xau.js.map} +1 -1
- package/dist/{process-identity-BAAdyYwE.js → process-identity-DCYUeRGI.js} +2 -2
- package/dist/{process-identity-BAAdyYwE.js.map → process-identity-DCYUeRGI.js.map} +1 -1
- package/dist/{runtime-CJOlAkvc.js → runtime-CMUFvQzB.js} +154 -294
- package/dist/runtime-CMUFvQzB.js.map +1 -0
- package/dist/{runtime-agent-controller-reporting-submission-Gf49imkB.js → runtime-agent-controller-reporting-submission-COEd2PQD.js} +9 -9
- package/dist/{runtime-agent-controller-reporting-submission-Gf49imkB.js.map → runtime-agent-controller-reporting-submission-COEd2PQD.js.map} +1 -1
- package/dist/{service-Dm_v88Dc.js → service-Cz9hwU7z.js} +163 -53
- package/dist/service-Cz9hwU7z.js.map +1 -0
- package/dist/{service-account-authorization-CrbUG0-l.js → service-account-authorization-Dh5cBGYr.js} +5 -5
- package/dist/{service-account-authorization-CrbUG0-l.js.map → service-account-authorization-Dh5cBGYr.js.map} +1 -1
- package/dist/{service-account-control-BbcqY1fg.js → service-account-control-Bgady7sO.js} +32 -22
- package/dist/service-account-control-Bgady7sO.js.map +1 -0
- package/dist/{service-control-capabilities-B5x3VYZQ.js → service-control-capabilities-CJVtLeLz.js} +6 -6
- package/dist/{service-control-capabilities-B5x3VYZQ.js.map → service-control-capabilities-CJVtLeLz.js.map} +1 -1
- package/dist/{service-control-capabilities-B5p5Ut1j.js → service-control-capabilities-DMzx-Tde.js} +1 -1
- package/dist/{service-control-carrier-capability-QQBqqI65.js → service-control-carrier-capability-DT97FTao.js} +3 -3
- package/dist/{service-control-carrier-capability-QQBqqI65.js.map → service-control-carrier-capability-DT97FTao.js.map} +1 -1
- package/dist/setup-node-runtime-n0iHzmDA.js +19 -0
- package/dist/setup-node-runtime-n0iHzmDA.js.map +1 -0
- package/dist/{state-CIM8ibMZ.js → state-B3ORUW8a.js} +3 -3
- package/dist/{state-CIM8ibMZ.js.map → state-B3ORUW8a.js.map} +1 -1
- package/dist/{updates-api-Dol3lksp.js → updates-api-Dc2hLgXj.js} +14 -14
- package/dist/{updates-api-Dol3lksp.js.map → updates-api-Dc2hLgXj.js.map} +1 -1
- package/dist/upgrade-Cb9hoK5-.js +4 -0
- package/dist/{upgrade-BVBR7r1Z.js → upgrade-CeUhMgzW.js} +9 -9
- package/dist/{upgrade-BVBR7r1Z.js.map → upgrade-CeUhMgzW.js.map} +1 -1
- package/dist/windows/openmeld-windows-process.exe +0 -0
- package/dist/{windows-managed-install-BDPy9F0T.js → windows-managed-install-Do1KTI4o.js} +2 -2
- package/dist/{windows-managed-install-BDPy9F0T.js.map → windows-managed-install-Do1KTI4o.js.map} +1 -1
- package/dist/{windows-preview-channel-Drg1mvkM.js → windows-preview-channel-7qDoCslK.js} +3 -3
- package/dist/{windows-preview-channel-Drg1mvkM.js.map → windows-preview-channel-7qDoCslK.js.map} +1 -1
- package/dist/{windows-task-command-2-jau1ni.js → windows-task-command-DR3N78Zm.js} +2 -2
- package/dist/{windows-task-command-2-jau1ni.js.map → windows-task-command-DR3N78Zm.js.map} +1 -1
- package/dist/{windows-task-entry-C4eBoHXQ.js → windows-task-entry-2RQM6JR9.js} +3 -3
- package/dist/{windows-task-entry-C4eBoHXQ.js.map → windows-task-entry-2RQM6JR9.js.map} +1 -1
- package/dist/{windows-user-task-DzDWScE1.js → windows-user-task-BX4n6qHn.js} +6 -6
- package/dist/{windows-user-task-DzDWScE1.js.map → windows-user-task-BX4n6qHn.js.map} +1 -1
- package/dist/{windows-user-task-BYF03jMQ.js → windows-user-task-DBahPxza.js} +1 -1
- package/package.json +7 -7
- package/skills/openmeld-cli/SKILL.md +6 -0
- package/skills/openmeld-cli/playbooks/agent-onboarding.md +8 -0
- package/skills/openmeld-cli/playbooks/computer.md +6 -0
- package/skills/openmeld-cli/playbooks/plugins.md +6 -0
- package/skills/openmeld-cli/playbooks/space-ops.md +20 -0
- package/skills/openmeld-cli/playbooks/space-reads.md +6 -0
- package/skills/openmeld-cli/references/commands.md +6 -0
- package/skills/openmeld-cli/references/runtime-resolution.md +6 -0
- package/dist/auth-session-BbeGpa9b.js +0 -4
- package/dist/auth-session-VWQoz03f.js.map +0 -1
- package/dist/command-ZxD_qNik.js.map +0 -1
- package/dist/computer-connection-review-BoQqWowI.js.map +0 -1
- package/dist/daemon-lifecycle-journal-DbRJ216n.js.map +0 -1
- package/dist/daemon-service-contract-Cik2oi9W.js.map +0 -1
- package/dist/daemon-service-update-coordinator-DUsnRsrg.js.map +0 -1
- package/dist/dispatch-owned-runtime-Bcz_DYAR.js.map +0 -1
- package/dist/dist-CGGiwcMv.js +0 -4
- package/dist/dist-DRUbg0Z2.js.map +0 -1
- package/dist/prepare-provider-runtime-B0gBhnir.js.map +0 -1
- package/dist/runtime-CJOlAkvc.js.map +0 -1
- package/dist/service-Dm_v88Dc.js.map +0 -1
- package/dist/service-account-control-BbcqY1fg.js.map +0 -1
- package/dist/upgrade-ChqQ_KDy.js +0 -4
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $r as
|
|
4
|
-
import { a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, f as getConfiguredDaemonDispatchLimits, i as normalizeGatewayBaseUrlOrNull, o as resolveBaseUrlOrNull, r as normalizeGatewayBaseUrl } from "./base-url-
|
|
3
|
+
import { $r as pruneStaleLeases, An as resolveInstalledCodexLaunchCandidates, Ft as readSavedProfileWorkspaceForAccount, Gn as emitReconcileCompletedEvidence, Gt as summarizeSkippedDaemonProfiles, Ht as createMutableRouteCatalogState, I as listAgentTargetStates, Jr as ADAPTIVE_HEARTBEAT_JITTER_RATIO, Kn as emitReconcileStartedEvidence, Kt as syncDaemonRouteCatalogState, Lt as resolveConfiguredProfileWorkspacePathForAccount, O as syncDeviceRuntimeStateProjection, Pt as readProfileWorkspaceConfigForAccount, Qr as applyIntervalJitterMs$1, Rt as setCustomProfileWorkspace, Ut as createRouteCatalogFromMutableState, Wn as emitDriftDetectedEvidence, Xr as MIN_HEARTBEAT_INTERVAL_MS, Yr as MAX_HEARTBEAT_INTERVAL_MS, Zr as applyAcceptedLeases, Zt as isDaemonReconcileInProgressError, _t as removeMissingProjectConnections, ct as ProjectBindingOperationError, ei as resolveAdaptiveHeartbeatIntervalMs, fn as resolveCatalogSyncSkippedProfilesLogState, in as buildLocalServiceDiagnosticsPayload, ir as buildAuthenticatedControlPlaneResponse, jt as ensureOpenMeldManagedProfileWorkspace, kt as resolveRegistryRuntimeAdapterCapabilitySnapshot, lt as ProjectBindingStoreUpdateRequiredError, mt as listProjectConnectionsWithStatus, pt as listProjectBindings, qn as DaemonServiceRunError, qr as resolveRouteRegistrationReconcileDecision, ti as resolveCatalogSyncIntervalMs, ut as bindProject, vt as removeProjectConnection, wt as resolveLocalProjectConnectionForPath, xt as setDefaultProjectConnection } from "./prepare-provider-runtime-BbJnigvx.js";
|
|
4
|
+
import { a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, f as getConfiguredDaemonDispatchLimits, i as normalizeGatewayBaseUrlOrNull, o as resolveBaseUrlOrNull, r as normalizeGatewayBaseUrl } from "./base-url-Cno_Uo8f.js";
|
|
5
5
|
import { D as openMeldRootDir, F as resolveOpenMeldRootDir, I as resolveOpenMeldServiceOwnedPathInput, P as resolveOpenMeldEnvPreset, h as isPublishedOpenMeldHome, o as accountsDir, y as normalizeAccountKey } from "./paths-De9xdA2h.js";
|
|
6
|
-
import { r as resolveAuthBaseUrl } from "./auth-url-
|
|
7
|
-
import { $
|
|
8
|
-
import { C as assessLocalMachineFailure, E as createServiceSpawnPendingIssue, i as isOpenMeldLockError, u as resolveOpenMeldOrphanedLockIssue, x as resolveOpenMeldLaneDescriptor } from "./lock-
|
|
9
|
-
import { i as readProcessStartIdentity, n as isPreciseProcessStartIdentity, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-
|
|
10
|
-
import "./openmeld-dev-environment-
|
|
6
|
+
import { r as resolveAuthBaseUrl } from "./auth-url-0Y8BrR9l.js";
|
|
7
|
+
import { $s as sessionHistoryRequestFrameSchema, AA as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, AF as formatLocalComponentsSummaryLabel, CF as resolveCliBinaryPlatform, Cr as BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE, Cx as runtimeTransportLocalAgentControlReadProfileWorkspaceFramePayloadSchema, Er as betterAuthDeviceAuthorizationCodeResponseSchema, Ex as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, Fb as OPENMELD_ADMISSION_EVIDENCE_HEADER, Gs as sessionHistoryAuditSchema, Hs as SESSION_HISTORY_CAPABILITY_HEADER, I as formatLocalMachineIssueMessage, IA as localFolderPickerHelperProtocolResultSchema, Ib as OPENMELD_EXECUTION_ADMISSION_HEADER, JA as OPENMELD_RUNTIME_CAPABILITIES_HEADER, LA as localFolderPickerHelperResultSchema, Lw as SPACE_WORK_HANDOFF_CAPABILITY_HEADER, Lx as runtimeTransportRouteCatalogChangedFramePayloadSchema, MF as formatLocalSetupActionLabel, Mr as betterAuthDeviceAuthorizationTokenResponseSchema, NA as localFolderPickerDaemonFrameSchema, NF as installedLocalComponentsSnapshotSchema, Nb as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, Nr as betterAuthSessionSnapshotResponseSchema, Ox as runtimeTransportOpenMeldToolsControlFramePayloadSchema, So as cliJsonOutputEnvelopeSchema, Tr as betterAuthDeviceAuthorizationCodeRequestSchema, Wb as localWakeRouteWorkingFolderObservationSchema, Ws as SESSION_HISTORY_RUNTIME_CAPABILITY, XA as computerFileAccessDaemonFrameSchema, Xs as sessionHistoryPolicySchema, _v as LOCAL_EXECUTION_INPUT_CAPABILITY_HEADER, b as serviceExecutionHostSnapshotSchema, d_ as serviceConnectionEvidenceEventSchema, eC as sanitizeDispatchErrorSummary, f_ as serviceConnectionEvidenceJournalSchema, fj as COMPUTER_POWER_CAPABILITY_HEADER, g as serviceExecutionHostMethods, gx as runtimeTransportHeartbeatRequestSchema, jA as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, jF as formatLocalSetupActionDescription, jr as betterAuthDeviceAuthorizationTokenRequestSchema, jx as runtimeTransportRegisterSessionRequestSchema, kE as OPENMELD_COMPUTER_CARE_HEADER, kF as formatLocalComponentsSummaryDescription, kk as OPENMELD_REASONING_STREAM_HEADER, kr as betterAuthDeviceAuthorizationErrorResponseSchema, kx as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, nA as localProjectControlDaemonFrameSchema, oA as localProjectControlDiscoverProjectsResponseSchema, oT as openMeldDaemonControlPlaneResponseSchema, qA as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, tc as sessionHistoryResultFrameSchema, v_ as SERVICE_CONNECTION_ID_QUERY_PARAMETER, vv as localExecutionInputFrameSchema, wM as daemonServiceLaneSchema, wx as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, xv as localExecutionInputResponseSchema } from "./dist-BOBe5eOZ.js";
|
|
8
|
+
import { C as assessLocalMachineFailure, E as createServiceSpawnPendingIssue, i as isOpenMeldLockError, u as resolveOpenMeldOrphanedLockIssue, x as resolveOpenMeldLaneDescriptor } from "./lock-y1PCtVSn.js";
|
|
9
|
+
import { i as readProcessStartIdentity, n as isPreciseProcessStartIdentity, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-DCYUeRGI.js";
|
|
10
|
+
import "./openmeld-dev-environment-Bx6D1B6_.js";
|
|
11
11
|
import { n as toErrorMessage$5, t as sleep } from "./dist-BLuEEVHh.js";
|
|
12
|
-
import { nr as DAEMON_STREAM_KEEPALIVE_PING, yn as createServiceConnectionEvidenceApi } from "./dist-
|
|
13
|
-
import { D as createAuthenticationError, E as buildHumanAuthenticationCard, F as resolveCurrentOpenMeldAccountContext, M as resolveAuthenticationReasonFromState, O as extractAuthenticationPromptAction, T as buildCommandAuthenticationPromptMessage$1, a as requireOpenMeldProfile, g as readDaemonCatalogSyncSignal, k as resolveAuthenticationGuidance, n as resolveRuntimeContext, o as resolveOpenMeldProfileOrNull, w as buildAuthenticationStatusLabel, y as clearAllSelectedOpenMeldProfileIds } from "./context-
|
|
12
|
+
import { nr as DAEMON_STREAM_KEEPALIVE_PING, yn as createServiceConnectionEvidenceApi } from "./dist-CP5KSxWw.js";
|
|
13
|
+
import { D as createAuthenticationError, E as buildHumanAuthenticationCard, F as resolveCurrentOpenMeldAccountContext, M as resolveAuthenticationReasonFromState, O as extractAuthenticationPromptAction, T as buildCommandAuthenticationPromptMessage$1, a as requireOpenMeldProfile, g as readDaemonCatalogSyncSignal, k as resolveAuthenticationGuidance, n as resolveRuntimeContext, o as resolveOpenMeldProfileOrNull, w as buildAuthenticationStatusLabel, y as clearAllSelectedOpenMeldProfileIds } from "./context-NLQSSnf9.js";
|
|
14
14
|
import { a as formatOpenMeldCliTextBlock, n as formatOpenMeldCliCommand, r as formatOpenMeldCliCommands, t as formatInlineOpenMeldCliCommands } from "./cli-entry-command-CR_9QU1i.js";
|
|
15
|
-
import { C as setAuthSession, O as ServiceAccountAdmissionError, T as withAdmittedServiceSession, _ as onAuthSessionCredentialAvailable, a as beginAuthSessionTransition, d as getAuthSessionState, i as assertAuthSessionMutationAvailable, o as buildStoredAuthSessionIdentity, s as clearAuthSession, v as onAuthSessionCredentialObservation } from "./auth-session-
|
|
15
|
+
import { C as setAuthSession, O as ServiceAccountAdmissionError, T as withAdmittedServiceSession, _ as onAuthSessionCredentialAvailable, a as beginAuthSessionTransition, d as getAuthSessionState, i as assertAuthSessionMutationAvailable, o as buildStoredAuthSessionIdentity, s as clearAuthSession, v as onAuthSessionCredentialObservation } from "./auth-session-BpRplB8x.js";
|
|
16
16
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
17
17
|
import { t as isBinaryDistribution } from "./distribution-BDQT2ilb.js";
|
|
18
|
-
import { A as getDaemonStatus, G as withDaemonServiceReconcileLock, H as setDaemonServiceRuntimeState, I as readDaemonServiceRuntimeSnapshot, J as withDaemonServiceStopLock, K as withDaemonServiceRegistrationMutationLock, L as releaseDaemonServiceLifecycleLock, M as isDaemonServiceRuntimeHeartbeatStale, O as ensureDaemonControlPlaneToken, R as resolveDaemonControlPlaneEndpoint, S as daemonServiceRepairJournalPath, U as uninstallDaemon, _ as daemonRuntimeStateRootPath, a as DAEMON_SERVICE_RUNTIME_MODE_ENV, c as acquireDaemonServiceLifecycleLock, f as daemonLifecycleJournalPath, h as daemonRuntimeRootPath, i as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, j as installDaemon, l as clearDaemonServiceRuntimeState, o as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, q as withDaemonServiceRunLock, z as resolveDaemonServiceRuntimeMetadata } from "./daemon-state-
|
|
18
|
+
import { A as getDaemonStatus, G as withDaemonServiceReconcileLock, H as setDaemonServiceRuntimeState, I as readDaemonServiceRuntimeSnapshot, J as withDaemonServiceStopLock, K as withDaemonServiceRegistrationMutationLock, L as releaseDaemonServiceLifecycleLock, M as isDaemonServiceRuntimeHeartbeatStale, O as ensureDaemonControlPlaneToken, R as resolveDaemonControlPlaneEndpoint, S as daemonServiceRepairJournalPath, U as uninstallDaemon, _ as daemonRuntimeStateRootPath, a as DAEMON_SERVICE_RUNTIME_MODE_ENV, c as acquireDaemonServiceLifecycleLock, f as daemonLifecycleJournalPath, h as daemonRuntimeRootPath, i as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, j as installDaemon, l as clearDaemonServiceRuntimeState, o as DAEMON_SERVICE_RUNTIME_STATE_SCHEMA, q as withDaemonServiceRunLock, z as resolveDaemonServiceRuntimeMetadata } from "./daemon-state-CiTQcAWA.js";
|
|
19
19
|
import { a as outJsonLine, n as sanitizeTerminalDisplayText, o as outLine, t as createPresenter } from "./presenter-DiP7Yh2y.js";
|
|
20
|
-
import { c as buildRequestAuthHeaders, i as AuthRequestCredentialError, l as canAttachAuthTokenToRequest, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, t as createCliApiClientFoundation, u as fingerprintRequestAuthorization } from "./api-client-foundation-
|
|
21
|
-
import {
|
|
22
|
-
import { i as writeDaemonRuntimeLease } from "./daemon-runtime-lease-
|
|
23
|
-
import { t as resolveOpenMeldEnvironmentTarget } from "./openmeld-environment-target-
|
|
24
|
-
import { t as admitServiceAccountStop } from "./service-account-authorization-
|
|
25
|
-
import { S as requestLocalDaemonShutdown, c as runWithDaemonLifecycleCommandJournal, d as compareSemver, i as readLatestDaemonLifecycleOriginEvent, l as OPENMELD_VERSION, n as formatDaemonLifecycleOriginSummary, o as resolveRecentDaemonSignalStopCause, r as readLatestDaemonLifecycleConnectionStateEvent, s as runDaemonServiceManagerAction, t as emitDaemonLifecycleEvent, w as sendLocalDaemonControlPlaneRequest, y as LocalDaemonControlPlaneClientError } from "./daemon-lifecycle-journal-
|
|
26
|
-
import { A as prepareDaemonServiceBundle, G as readManagedCliInstallation, M as resolveAlignedDaemonActiveBundleEntryPath, N as resolveDaemonBundleEntryPathFromState, a as resolveDaemonRuntimeState, b as cleanupInactiveDaemonServiceBundles, f as listDaemonOwnedProcesses, h as resolveDaemonBundleIdFromEntryPath, i as readCurrentObservedDaemonRuntimeStatus, j as readDaemonActiveBundleState, n as getEffectiveDaemonRuntimeStatus, o as resolveDaemonServiceManagerForRuntimeState, p as extractDaemonCommandEntryPath, r as readCurrentDaemonRuntimeContext, s as waitForDaemonSystemServiceToStop, t as clearDaemonRuntimeStateIfDefinitelyStopped, u as cleanupLegacySharedDaemonServiceState, v as isOpenMeldManagedBinaryPath } from "./daemon-service-runtime-
|
|
27
|
-
import { r as readWindowsManagedCliInstallation } from "./windows-managed-install-
|
|
28
|
-
import { S as resolveDaemonServiceManager, _ as readDaemonServiceJobCrashExitCode, a as disableDaemonServiceAutostartIfConfigured, c as getDaemonSystemServiceLogPath, f as isDaemonServiceJobSpawnPending, o as formatDaemonServiceJobDiagnosticsEvidence, s as getDaemonServiceLaunchdLabel } from "./daemon-service-manager-
|
|
29
|
-
import { A as DEFAULT_RECONNECT_DELAY_MS, C as CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS, D as DAEMON_STREAM_CONNECT_TIMEOUT_MS, F as REGISTER_RESPONSE_TIMEOUT_MS, I as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS, L as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS, M as MAX_RECONNECT_DELAY_MS, N as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS, O as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS, P as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS, R as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, _ as toErrorMessage$6, b as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, c as normalizeHeartbeatIntervalMs, d as normalizeText$1, f as nowIsoString, i as resolvePreferredDaemonDeviceId, j as HEARTBEAT_RESPONSE_TIMEOUT_MS, k as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, n as ensureDaemonRuntimePaths, r as resolveDaemonDeviceId, s as emitRunLine, u as normalizeOptionalText$1, v as warnDaemonEvent, w as DAEMON_RUNTIME_CONTRACT_EPOCH, x as CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS, y as CATALOG_SYNC_RETRY_INTERVAL_MS } from "./daemon-device-id-
|
|
30
|
-
import { $ as buildDaemonServiceDependencyTitle, At as DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES, C as formatDaemonServiceRefreshReliabilityMessage, Ct as ensureDaemonRuntimeContractState, D as writeDaemonStartFailureState, Dt as isVersionDowngrade, E as clearDaemonStartFailureState, Et as resolveDaemonServiceAlignmentDecision, Ft as resolveCurrentDaemonExpectedVersion, It as resolveServiceUpdateUrgency, Lt as assessServerRequiredVersion, Nt as classifyDaemonServiceRunStartability, Pt as classifyDaemonServiceWakeability, Q as buildDaemonServiceDependencySummary, Rt as describeServerRequiredVersionUnavailableReason, S as buildDaemonServiceUpdateRequiredNextStep, Tt as buildDaemonServiceTargetSpec,
|
|
31
|
-
import { Ct as buildAgentOverviewFromContract, Q as getCommandEntryContract, ht as validateDaemonControlTargetInput, t as createAuthLoginGuideError } from "./dual-view-guide-catalog-
|
|
32
|
-
import { a as formatDaemonServiceDowngradeBlockedRecommendation, d as formatDaemonServiceMissingStatus, f as getDaemonDowngradeBlockedTitle, g as canUseInteractivePrompts, h as resolveOpenMeldToolsUpdateOperationProjection, l as formatDaemonServiceMissingRunStepOne, n as resolveElapsedTimeMs, o as formatDaemonServiceMissingAction, r as formatDaemonDowngradeBlockedNextStep, s as formatDaemonServiceMissingMeaning, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo } from "./elapsed-time-
|
|
33
|
-
import { E as queryOpenCodeReadOnly, K as buildRepositoryFingerprint, W as createServiceGitEnvironment, _ as sendDaemonFrame, at as emitDaemonDispatchJournalEvent, ct as readComputerFileAccessPolicy, dt as isSameOrDescendantPath, g as parseDaemonFrame, h as handleDaemonTransportFrame, it as resolveNextRuntimeAgentControllerReportSyncAtMs, k as resolveOpenCodeDatabasePath, lt as resolveComputerFileAccessStorePath, m as createCodexJsonRpcClient, n as assertDispatchOwnedRuntimeServiceMutationAllowed, st as ComputerFileAccessStoreError, ut as updateComputerFileAccessPolicy, v as collectObservedSessionWorkingDirectories } from "./dispatch-owned-runtime-
|
|
34
|
-
import { n as createExecutionHostClient, t as ExecutionHostError } from "./channel-
|
|
35
|
-
import { t as childExecutionHostChannel } from "./process-channel-
|
|
36
|
-
import { m as hashBundledSkillAssets, p as computeDirectoryContentHash, u as loadSelectedSkillAssets } from "./state-
|
|
37
|
-
import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-
|
|
20
|
+
import { c as buildRequestAuthHeaders, i as AuthRequestCredentialError, l as canAttachAuthTokenToRequest, o as buildOpenMeldProfileRequestHeadersWithAuth, p as deriveAuthBaseUrlFromGatewayUrl, t as createCliApiClientFoundation, u as fingerprintRequestAuthorization } from "./api-client-foundation-a7D_P57X.js";
|
|
21
|
+
import { i as readDaemonServiceContract, n as isDaemonServiceContractIdentityReusable, o as upsertDaemonServiceContract, t as clearDaemonServiceContract } from "./daemon-service-contract-D9Gs4YVs.js";
|
|
22
|
+
import { i as writeDaemonRuntimeLease, r as readDaemonRuntimeLease } from "./daemon-runtime-lease-Bu1vPY5k.js";
|
|
23
|
+
import { t as resolveOpenMeldEnvironmentTarget } from "./openmeld-environment-target-oDaSSRO3.js";
|
|
24
|
+
import { t as admitServiceAccountStop } from "./service-account-authorization-Dh5cBGYr.js";
|
|
25
|
+
import { S as requestLocalDaemonShutdown, c as runWithDaemonLifecycleCommandJournal, d as compareSemver, i as readLatestDaemonLifecycleOriginEvent, l as OPENMELD_VERSION, n as formatDaemonLifecycleOriginSummary, o as resolveRecentDaemonSignalStopCause, r as readLatestDaemonLifecycleConnectionStateEvent, s as runDaemonServiceManagerAction, t as emitDaemonLifecycleEvent, w as sendLocalDaemonControlPlaneRequest, x as requestLocalDaemonServiceUpdateReadiness, y as LocalDaemonControlPlaneClientError } from "./daemon-lifecycle-journal-DfYlngmT.js";
|
|
26
|
+
import { A as prepareDaemonServiceBundle, G as readManagedCliInstallation, M as resolveAlignedDaemonActiveBundleEntryPath, N as resolveDaemonBundleEntryPathFromState, a as resolveDaemonRuntimeState, b as cleanupInactiveDaemonServiceBundles, f as listDaemonOwnedProcesses, h as resolveDaemonBundleIdFromEntryPath, i as readCurrentObservedDaemonRuntimeStatus, j as readDaemonActiveBundleState, n as getEffectiveDaemonRuntimeStatus, o as resolveDaemonServiceManagerForRuntimeState, p as extractDaemonCommandEntryPath, r as readCurrentDaemonRuntimeContext, s as waitForDaemonSystemServiceToStop, t as clearDaemonRuntimeStateIfDefinitelyStopped, u as cleanupLegacySharedDaemonServiceState, v as isOpenMeldManagedBinaryPath } from "./daemon-service-runtime-Dk8OyRtf.js";
|
|
27
|
+
import { r as readWindowsManagedCliInstallation } from "./windows-managed-install-Do1KTI4o.js";
|
|
28
|
+
import { S as resolveDaemonServiceManager, _ as readDaemonServiceJobCrashExitCode, a as disableDaemonServiceAutostartIfConfigured, c as getDaemonSystemServiceLogPath, f as isDaemonServiceJobSpawnPending, o as formatDaemonServiceJobDiagnosticsEvidence, s as getDaemonServiceLaunchdLabel } from "./daemon-service-manager-ChWTp6s8.js";
|
|
29
|
+
import { A as DEFAULT_RECONNECT_DELAY_MS, C as CONTROLLED_SHUTDOWN_SOCKET_CLOSE_TIMEOUT_MS, D as DAEMON_STREAM_CONNECT_TIMEOUT_MS, F as REGISTER_RESPONSE_TIMEOUT_MS, I as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_INTERVAL_MS, L as RUNTIME_AGENT_CONTROLLER_REPORT_SYNC_RETRY_INTERVAL_MS, M as MAX_RECONNECT_DELAY_MS, N as PROVIDER_CONVERSATION_PROOF_SYNC_INTERVAL_MS, O as DAEMON_STREAM_KEEPALIVE_INTERVAL_MS, P as PROVIDER_CONVERSATION_PROOF_SYNC_RETRY_INTERVAL_MS, R as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, _ as toErrorMessage$6, b as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, c as normalizeHeartbeatIntervalMs, d as normalizeText$1, f as nowIsoString, i as resolvePreferredDaemonDeviceId, j as HEARTBEAT_RESPONSE_TIMEOUT_MS, k as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, n as ensureDaemonRuntimePaths, r as resolveDaemonDeviceId, s as emitRunLine, u as normalizeOptionalText$1, v as warnDaemonEvent, w as DAEMON_RUNTIME_CONTRACT_EPOCH, x as CONTROLLED_SHUTDOWN_REQUEST_TIMEOUT_MS, y as CATALOG_SYNC_RETRY_INTERVAL_MS } from "./daemon-device-id-Dd-E5NjT.js";
|
|
30
|
+
import { $ as buildDaemonServiceDependencyTitle, At as DAEMON_SERVICE_FULL_ALIGNMENT_ANOMALIES, C as formatDaemonServiceRefreshReliabilityMessage, Ct as ensureDaemonRuntimeContractState, D as writeDaemonStartFailureState, Dt as isVersionDowngrade, E as clearDaemonStartFailureState, Et as resolveDaemonServiceAlignmentDecision, Ft as resolveCurrentDaemonExpectedVersion, Gt as resolveInstalledDaemonSystemServiceCommandSpec, Ht as assessCliUpdate, It as resolveServiceUpdateUrgency, Lt as assessServerRequiredVersion, Nt as classifyDaemonServiceRunStartability, Pt as classifyDaemonServiceWakeability, Q as buildDaemonServiceDependencySummary, Rt as describeServerRequiredVersionUnavailableReason, S as buildDaemonServiceUpdateRequiredNextStep, Tt as buildDaemonServiceTargetSpec, W as resolveLocalServiceDemand, Wt as ensureDaemonSystemServiceCommandFiles, X as buildDaemonServiceDependencyMeaning, Y as buildDaemonServiceDependencyDetails, Z as buildDaemonServiceDependencyNextStep, _t as readCurrentDaemonOwnerSnapshot, a as isDaemonInventoryRunningAndStartReady$1, bt as summarizeDaemonOwnerSnapshot, c as waitForSystemServiceStartup$1, ct as writeOpenMeldToolsMaintenancePolicy, d as captureDaemonServiceEvidenceBestEffort, et as resolveDaemonServiceDependencyDiagnostics, f as formatDaemonFailureContextText, ft as uninstallDaemonServiceUpdateWorker, g as resolveServiceReadiness, gt as hasActiveDaemonOwners, h as resolveDaemonStatusAuthenticationAttention, ht as formatDaemonOwnerSummaryLabel, i as runDaemonServiceLifecycle, jt as DAEMON_SERVICE_REPAIR_ANOMALIES, kt as DAEMON_SERVICE_AUTO_HEAL_ANOMALIES, l as startDaemonSystemServiceWithAutoRepair, lt as ensureDaemonServiceMaintenanceInstalled, m as resolveDaemonStatusAttention, mt as buildDaemonOwnerSnapshotFromObservedState, n as scheduleDaemonServiceUpdate, nt as createOpenMeldToolsUpdateCoordinator, o as isSystemServiceStartupTimeoutError, ot as readOpenMeldToolsMaintenancePolicy, p as resolveDaemonStatusSnapshot, pt as inspectDaemonServiceInventory, r as DaemonServiceLifecycleDrainTimeoutError, s as resolveSystemServiceStartupWaitMs, st as resolveOpenMeldToolsMaintenanceProjection, tt as writeDaemonServiceContract, u as captureDaemonServiceEvidence, v as buildDaemonServiceRefreshNextStep, vt as resolveDaemonStopStrategy, w as formatDaemonServiceUpdateRequiredMessage, wt as readDaemonRuntimeContractRepairReport, x as buildDaemonServiceStatusReadOnlyDetail, y as buildDaemonServiceRefreshPromptMessage, yt as resolveStoppedContractWriteBlockedReason, zt as readCurrentLocalRuntimeReplyReadiness } from "./daemon-service-update-coordinator-CyvjkmsR.js";
|
|
31
|
+
import { Ct as buildAgentOverviewFromContract, Q as getCommandEntryContract, ht as validateDaemonControlTargetInput, t as createAuthLoginGuideError } from "./dual-view-guide-catalog-CSV_FNr4.js";
|
|
32
|
+
import { a as formatDaemonServiceDowngradeBlockedRecommendation, d as formatDaemonServiceMissingStatus, f as getDaemonDowngradeBlockedTitle, g as canUseInteractivePrompts, h as resolveOpenMeldToolsUpdateOperationProjection, l as formatDaemonServiceMissingRunStepOne, n as resolveElapsedTimeMs, o as formatDaemonServiceMissingAction, r as formatDaemonDowngradeBlockedNextStep, s as formatDaemonServiceMissingMeaning, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo } from "./elapsed-time-DFp-tAB8.js";
|
|
33
|
+
import { E as queryOpenCodeReadOnly, K as buildRepositoryFingerprint, W as createServiceGitEnvironment, _ as sendDaemonFrame, at as emitDaemonDispatchJournalEvent, ct as readComputerFileAccessPolicy, dt as isSameOrDescendantPath, g as parseDaemonFrame, h as handleDaemonTransportFrame, it as resolveNextRuntimeAgentControllerReportSyncAtMs, k as resolveOpenCodeDatabasePath, lt as resolveComputerFileAccessStorePath, m as createCodexJsonRpcClient, n as assertDispatchOwnedRuntimeServiceMutationAllowed, st as ComputerFileAccessStoreError, ut as updateComputerFileAccessPolicy, v as collectObservedSessionWorkingDirectories } from "./dispatch-owned-runtime-rL1dMpSL.js";
|
|
34
|
+
import { n as createExecutionHostClient, t as ExecutionHostError } from "./channel-D-a2qCEW.js";
|
|
35
|
+
import { t as childExecutionHostChannel } from "./process-channel-B6Y2-Xau.js";
|
|
36
|
+
import { m as hashBundledSkillAssets, p as computeDirectoryContentHash, u as loadSelectedSkillAssets } from "./state-B3ORUW8a.js";
|
|
37
|
+
import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-87Vo7lnz.js";
|
|
38
38
|
import { createHash, randomUUID } from "node:crypto";
|
|
39
39
|
import { homedir } from "node:os";
|
|
40
40
|
import { delimiter, dirname, isAbsolute, join, resolve } from "node:path";
|
|
@@ -6482,7 +6482,7 @@ async function runDaemonSocketSession(input) {
|
|
|
6482
6482
|
let consecutiveHeartbeatFailures = 0;
|
|
6483
6483
|
let catalogSyncSignalTimer = null;
|
|
6484
6484
|
let currentHeartbeatIntervalMs = normalizeHeartbeatIntervalMs(input.heartbeatIntervalMs);
|
|
6485
|
-
let activeConnectionGeneration =
|
|
6485
|
+
let activeConnectionGeneration = input.connectionGeneration ?? 1;
|
|
6486
6486
|
let nextCatalogSyncAtMs = 0;
|
|
6487
6487
|
let nextProviderConversationProofSyncAtMs = 0;
|
|
6488
6488
|
let nextRuntimeAgentControllerReportSyncAtMs = 0;
|
|
@@ -6953,7 +6953,7 @@ async function runDaemonSocketSession(input) {
|
|
|
6953
6953
|
});
|
|
6954
6954
|
});
|
|
6955
6955
|
const registerDaemonSession = async (routeCatalog) => {
|
|
6956
|
-
const connectionGeneration =
|
|
6956
|
+
const connectionGeneration = activeConnectionGeneration;
|
|
6957
6957
|
const localComponentsStatus = readSessionLocalComponentsStatus();
|
|
6958
6958
|
const registerPayload = runtimeTransportRegisterSessionRequestSchema.safeParse({
|
|
6959
6959
|
v: 1,
|
|
@@ -7688,8 +7688,17 @@ async function runDaemonSocketSession(input) {
|
|
|
7688
7688
|
throw error;
|
|
7689
7689
|
})]);
|
|
7690
7690
|
const result = await input.executionHost.call("settleResults", {}).catch(input.failHostShutdown);
|
|
7691
|
-
if (finalHeartbeatError)
|
|
7692
|
-
|
|
7691
|
+
if (finalHeartbeatError) emitRunLine({
|
|
7692
|
+
presenter: input.presenter,
|
|
7693
|
+
code: "daemon.run.controlled_shutdown_offline_unconfirmed",
|
|
7694
|
+
text: "Local work drained. The cloud did not confirm the final offline update.",
|
|
7695
|
+
payload: { errorMessage: toErrorMessage$6(finalHeartbeatError) }
|
|
7696
|
+
});
|
|
7697
|
+
if (result.status === "connection_closed") emitRunLine({
|
|
7698
|
+
presenter: input.presenter,
|
|
7699
|
+
code: "daemon.run.controlled_shutdown_results_preserved",
|
|
7700
|
+
text: "Local work drained. Pending results remain on disk for the next Service start."
|
|
7701
|
+
});
|
|
7693
7702
|
if (result.status === "timeout") emitRunLine({
|
|
7694
7703
|
presenter: input.presenter,
|
|
7695
7704
|
code: "daemon.run.controlled_shutdown_result_ack_timeout",
|
|
@@ -7980,7 +7989,7 @@ async function resolveLocalComponentsInstallationSource(input = {}) {
|
|
|
7980
7989
|
//#region src/local-components/manifest.ts
|
|
7981
7990
|
const OPENMELD_CLI_COMMAND_CONTRACT_VERSION = "openmeld-cli-command-contract-2026-09-project-work-v1";
|
|
7982
7991
|
const OPENMELD_SKILLS_CONTRACT_VERSION = "openmeld-skills-contract-2026-09-explicit-space-recipients-v1";
|
|
7983
|
-
const OPENMELD_SERVICE_CONTRACT_VERSION = "openmeld-service-contract-2026-
|
|
7992
|
+
const OPENMELD_SERVICE_CONTRACT_VERSION = "openmeld-service-contract-2026-10-auth-freshness-v1";
|
|
7984
7993
|
const LOCAL_COMPONENTS_SNAPSHOT_FILE = "local-components.json";
|
|
7985
7994
|
const SERVICE_COMPONENT_UPDATE_CODES = /* @__PURE__ */ new Set([
|
|
7986
7995
|
"version_outdated",
|
|
@@ -8504,6 +8513,13 @@ function createControlledShutdownCoordinator(input) {
|
|
|
8504
8513
|
};
|
|
8505
8514
|
return {
|
|
8506
8515
|
failHostShutdown,
|
|
8516
|
+
isDraining: () => shutdownAttempt !== null || input.isStopRequested(),
|
|
8517
|
+
async completeQuiescentStop() {
|
|
8518
|
+
if (!shutdownAttempt || input.hasUndrainedWork()) return false;
|
|
8519
|
+
await this.waitForDrain();
|
|
8520
|
+
this.handleSessionCompleted();
|
|
8521
|
+
return true;
|
|
8522
|
+
},
|
|
8507
8523
|
waitForDrain() {
|
|
8508
8524
|
hostDrain ??= input.drainHost().catch((error) => {
|
|
8509
8525
|
hostDrain = null;
|
|
@@ -8647,6 +8663,27 @@ async function launchAccountExecutionHost(input) {
|
|
|
8647
8663
|
})
|
|
8648
8664
|
});
|
|
8649
8665
|
}
|
|
8666
|
+
async function finishDisconnectedControlledStop(input) {
|
|
8667
|
+
if (input.stopRequested) return true;
|
|
8668
|
+
if (!input.controlledShutdown.isDraining()) return false;
|
|
8669
|
+
try {
|
|
8670
|
+
await input.executionHost.call("health", {});
|
|
8671
|
+
} catch (error) {
|
|
8672
|
+
emitRunLine({
|
|
8673
|
+
presenter: input.presenter,
|
|
8674
|
+
code: "daemon.run.controlled_shutdown_host_unconfirmed",
|
|
8675
|
+
text: `Local work is not confirmed drained: ${toErrorMessage$6(error)}`
|
|
8676
|
+
});
|
|
8677
|
+
return false;
|
|
8678
|
+
}
|
|
8679
|
+
if (!await input.controlledShutdown.completeQuiescentStop()) return false;
|
|
8680
|
+
emitRunLine({
|
|
8681
|
+
presenter: input.presenter,
|
|
8682
|
+
code: "daemon.run.controlled_shutdown_offline",
|
|
8683
|
+
text: "Local work drained. Pending results remain on disk for the next Service start."
|
|
8684
|
+
});
|
|
8685
|
+
return true;
|
|
8686
|
+
}
|
|
8650
8687
|
const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
8651
8688
|
await assertDaemonServiceLaunchScope();
|
|
8652
8689
|
const baseUrl = await resolveBaseUrl(input.baseUrl);
|
|
@@ -8739,6 +8776,7 @@ const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
|
8739
8776
|
let stopRequested = false;
|
|
8740
8777
|
const reconnectBackoffDelay = createStopAwareDelay();
|
|
8741
8778
|
let reconnectAttempt = 0;
|
|
8779
|
+
let connectionGeneration = 0;
|
|
8742
8780
|
let activeSocket = null;
|
|
8743
8781
|
let activeCredentialFingerprint = null;
|
|
8744
8782
|
const recoverRuntimeReportingAuthentication = createRuntimeReportingAuthenticationRecovery({ requestCarrierHandshake: () => {
|
|
@@ -8769,7 +8807,7 @@ const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
|
8769
8807
|
},
|
|
8770
8808
|
hasUndrainedWork: () => {
|
|
8771
8809
|
const observed = executionHost.snapshot();
|
|
8772
|
-
return !(executionHost.available() && observed?.localQuiescent)
|
|
8810
|
+
return !(executionHost.available() && observed?.localQuiescent);
|
|
8773
8811
|
},
|
|
8774
8812
|
isStopRequested: () => stopRequested,
|
|
8775
8813
|
markStopping: () => {
|
|
@@ -8803,7 +8841,7 @@ const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
|
8803
8841
|
accountCheckedServiceControl: isPreciseProcessStartIdentity(CURRENT_PROCESS_START_IDENTITY),
|
|
8804
8842
|
healthPayload: {
|
|
8805
8843
|
checkedAt: nowIsoString(),
|
|
8806
|
-
...toHealthProjection(
|
|
8844
|
+
...toHealthProjection(controlledShutdown.isDraining() ? {
|
|
8807
8845
|
...connectionState.get(),
|
|
8808
8846
|
state: "stopping"
|
|
8809
8847
|
} : connectionState.get())
|
|
@@ -9007,6 +9045,7 @@ const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
|
9007
9045
|
presenter: input.presenter,
|
|
9008
9046
|
persistRouteCatalogCache: routeCatalogLoader.persist,
|
|
9009
9047
|
reconnectAttempt,
|
|
9048
|
+
connectionGeneration: ++connectionGeneration,
|
|
9010
9049
|
routeCatalogState,
|
|
9011
9050
|
selectLocalFolders: localFolderPicker.selectFolders,
|
|
9012
9051
|
socket: ws,
|
|
@@ -9026,7 +9065,12 @@ const runAccountBoundDaemonServiceLoop = async (input) => {
|
|
|
9026
9065
|
} catch (error) {
|
|
9027
9066
|
activeSocket = null;
|
|
9028
9067
|
requestActiveRouteCatalogSync = null;
|
|
9029
|
-
if (
|
|
9068
|
+
if (await finishDisconnectedControlledStop({
|
|
9069
|
+
stopRequested,
|
|
9070
|
+
controlledShutdown,
|
|
9071
|
+
executionHost,
|
|
9072
|
+
presenter: input.presenter
|
|
9073
|
+
})) break;
|
|
9030
9074
|
recovery ??= {
|
|
9031
9075
|
recoveryId: randomUUID(),
|
|
9032
9076
|
disconnectedAt: Date.now()
|
|
@@ -10372,6 +10416,35 @@ async function waitForDaemonStartupAlignmentSettlement(input) {
|
|
|
10372
10416
|
return null;
|
|
10373
10417
|
}
|
|
10374
10418
|
//#endregion
|
|
10419
|
+
//#region src/local-service/lifecycle/service-repair-readiness.ts
|
|
10420
|
+
async function isRunningServiceRepairHealthy(input) {
|
|
10421
|
+
const observations = await Promise.all([
|
|
10422
|
+
sendLocalDaemonControlPlaneRequest({
|
|
10423
|
+
request: {
|
|
10424
|
+
v: 1,
|
|
10425
|
+
command: "health"
|
|
10426
|
+
},
|
|
10427
|
+
timeoutMs: 3e3
|
|
10428
|
+
}),
|
|
10429
|
+
readCurrentLocalRuntimeReplyReadiness({ gatewayUrl: input.gatewayUrl }),
|
|
10430
|
+
requestLocalDaemonServiceUpdateReadiness({ timeoutMs: 3e3 })
|
|
10431
|
+
]).catch((error) => {
|
|
10432
|
+
console.warn("[openmeld.service.repair_probe_failed]", { error: toErrorMessage$5(error) });
|
|
10433
|
+
return null;
|
|
10434
|
+
});
|
|
10435
|
+
if (!observations) return false;
|
|
10436
|
+
const [health, readiness] = observations;
|
|
10437
|
+
return health.code === "service.health" && health.payload.state === "ok" && isServiceRepairReadinessCurrent({
|
|
10438
|
+
...input,
|
|
10439
|
+
readiness
|
|
10440
|
+
});
|
|
10441
|
+
}
|
|
10442
|
+
function isServiceRepairReadinessCurrent(input) {
|
|
10443
|
+
const { readiness } = input;
|
|
10444
|
+
const host = readiness.service.executionHost;
|
|
10445
|
+
return readiness.currentTarget.availability === "resolved" && readiness.currentTarget.deviceId === input.deviceId && readiness.currentTarget.runtimeLane === input.runtimeLane && readiness.service.connected && readiness.service.matchingCurrentRuntime && readiness.service.sessionDeviceId === input.deviceId && readiness.service.sessionLane === input.runtimeLane && readiness.service.executionCompatibility?.status === "compatible" && host?.responsive === true && host.admission === "open" && host.startupReplayPending === false;
|
|
10446
|
+
}
|
|
10447
|
+
//#endregion
|
|
10375
10448
|
//#region src/local-service/status/daemon-local-status-snapshot.ts
|
|
10376
10449
|
async function resolveDaemonLocalStatusSnapshot() {
|
|
10377
10450
|
const daemonStatus = await getDaemonStatus();
|
|
@@ -12684,6 +12757,17 @@ async function waitForSystemServiceStartup(input) {
|
|
|
12684
12757
|
//#endregion
|
|
12685
12758
|
//#region src/commands/service-stop-command.ts
|
|
12686
12759
|
const STOP_WAIT_MS = 2e3;
|
|
12760
|
+
async function persistUserStopIntent(pid) {
|
|
12761
|
+
const contract = await readDaemonServiceContract();
|
|
12762
|
+
if (!contract) return;
|
|
12763
|
+
const lease = await readDaemonRuntimeLease();
|
|
12764
|
+
if (!lease || pid !== lease.pid || lease.generation !== contract.generation || lease.bundleId !== contract.bundleId) throw new Error("The Service owner changed. Check Service status before trying Stop again.");
|
|
12765
|
+
await upsertDaemonServiceContract({
|
|
12766
|
+
...contract,
|
|
12767
|
+
desiredState: "stopped",
|
|
12768
|
+
autoStart: false
|
|
12769
|
+
}, {}, { expectedCurrentContract: contract });
|
|
12770
|
+
}
|
|
12687
12771
|
function summarizeDaemonStopJournalResult(stopResult) {
|
|
12688
12772
|
switch (stopResult.status) {
|
|
12689
12773
|
case "stopped": return {
|
|
@@ -12835,10 +12919,24 @@ async function stopManagedCurrentLaneDaemonService(input) {
|
|
|
12835
12919
|
signal: "system"
|
|
12836
12920
|
};
|
|
12837
12921
|
}
|
|
12922
|
+
async function canRestoreUnsentStopAutostart(error, wasEnabled) {
|
|
12923
|
+
return wasEnabled && error instanceof LocalDaemonControlPlaneClientError && error.code === "daemon.control.endpoint_missing" && (await readDaemonServiceContract())?.desiredState !== "stopped";
|
|
12924
|
+
}
|
|
12925
|
+
async function settleFailedStopAutostart(input) {
|
|
12926
|
+
const message = toErrorMessage$5(input.error);
|
|
12927
|
+
if (!await canRestoreUnsentStopAutostart(input.error, input.wasEnabled)) return message;
|
|
12928
|
+
try {
|
|
12929
|
+
await input.serviceManager.enableAutostart();
|
|
12930
|
+
return message;
|
|
12931
|
+
} catch (restoreError) {
|
|
12932
|
+
return `${message}; could not restore autostart: ${toErrorMessage$5(restoreError)}`;
|
|
12933
|
+
}
|
|
12934
|
+
}
|
|
12838
12935
|
async function prepareManagedDaemonServiceForStop(input) {
|
|
12839
12936
|
const serviceManager = input.ownerSnapshot.serviceManager;
|
|
12840
12937
|
if (!serviceManager) return null;
|
|
12841
|
-
|
|
12938
|
+
if (input.mode === "interactive") await persistUserStopIntent(input.ownerSnapshot.runtimeStatus.pid);
|
|
12939
|
+
const wasEnabled = await disableDaemonServiceAutostartIfConfigured({
|
|
12842
12940
|
manager: serviceManager,
|
|
12843
12941
|
status: input.ownerSnapshot.serviceManagerStatus
|
|
12844
12942
|
});
|
|
@@ -12881,13 +12979,12 @@ async function prepareManagedDaemonServiceForStop(input) {
|
|
|
12881
12979
|
type: "stop.controlled_drain"
|
|
12882
12980
|
});
|
|
12883
12981
|
if (isCompatibilityFallback) return null;
|
|
12884
|
-
|
|
12885
|
-
|
|
12886
|
-
|
|
12887
|
-
|
|
12888
|
-
|
|
12889
|
-
}
|
|
12890
|
-
if (input.mode !== "best_effort") throw new Error(`OpenMeld Service stayed running because its final offline status could not be delivered: ${errorMessage}`);
|
|
12982
|
+
const errorMessage = await settleFailedStopAutostart({
|
|
12983
|
+
error,
|
|
12984
|
+
wasEnabled,
|
|
12985
|
+
serviceManager
|
|
12986
|
+
});
|
|
12987
|
+
if (input.mode !== "best_effort") throw new Error(`Stop is not confirmed and may still be in progress. Check Service status before retrying. ${errorMessage}`);
|
|
12891
12988
|
return buildDaemonStopWarningResult({
|
|
12892
12989
|
reason: "stop_failed",
|
|
12893
12990
|
runtimeStatus: input.ownerSnapshot.runtimeStatus,
|
|
@@ -13028,6 +13125,7 @@ async function stopCurrentLaneDaemonProcess(input) {
|
|
|
13028
13125
|
}
|
|
13029
13126
|
const stopSignal = await resolveDaemonStopSignal(input);
|
|
13030
13127
|
if (!stopSignal) return { status: "cancelled" };
|
|
13128
|
+
if (input.mode === "interactive") await persistUserStopIntent(daemonPid);
|
|
13031
13129
|
try {
|
|
13032
13130
|
return await requestDaemonProcessStop({
|
|
13033
13131
|
daemonPid,
|
|
@@ -14108,6 +14206,11 @@ async function resolveAlreadyHealthyDaemonRepair(input) {
|
|
|
14108
14206
|
if (effectiveRuntimeStatus === "running") serviceState = "running";
|
|
14109
14207
|
else if (effectiveRuntimeStatus === "not_running") serviceState = "stopped";
|
|
14110
14208
|
if (!serviceState || desiredState === "background" && serviceState !== "running" || desiredState === "stopped" && serviceState !== "stopped") return null;
|
|
14209
|
+
if (serviceState === "running" && !await isRunningServiceRepairHealthy({
|
|
14210
|
+
deviceId: inventory.serviceContract.deviceId,
|
|
14211
|
+
runtimeLane: inventory.serviceContract.lane,
|
|
14212
|
+
gatewayUrl: inventory.serviceContract.gatewayUrl
|
|
14213
|
+
})) return null;
|
|
14111
14214
|
return createDaemonReinstallAlreadyHealthyOutcome({
|
|
14112
14215
|
desiredState,
|
|
14113
14216
|
serviceState
|
|
@@ -14138,7 +14241,11 @@ async function waitForDaemonHealthyAfterReinstall(input) {
|
|
|
14138
14241
|
intent: "reinstall",
|
|
14139
14242
|
readDaemonStatus: input.readDaemonStatus
|
|
14140
14243
|
}).catch(() => null);
|
|
14141
|
-
if (inventory && isDaemonInventoryRunningAndAligned(inventory)
|
|
14244
|
+
if (inventory?.serviceContract && isDaemonInventoryRunningAndAligned(inventory) && await isRunningServiceRepairHealthy({
|
|
14245
|
+
deviceId: inventory.serviceContract.deviceId,
|
|
14246
|
+
runtimeLane: inventory.serviceContract.lane,
|
|
14247
|
+
gatewayUrl: inventory.serviceContract.gatewayUrl
|
|
14248
|
+
})) return inventory.runtimeStatus;
|
|
14142
14249
|
lastRuntime = inventory?.runtimeStatus ?? await readCurrentObservedDaemonRuntimeStatus();
|
|
14143
14250
|
await sleep(REINSTALL_VERIFY_POLL_MS);
|
|
14144
14251
|
}
|
|
@@ -14226,16 +14333,19 @@ async function runDaemonStatus(input) {
|
|
|
14226
14333
|
if (input.json === true) {
|
|
14227
14334
|
const environmentTarget = await resolveOpenMeldEnvironmentTarget({ gatewayUrl: input.gatewayUrl });
|
|
14228
14335
|
const localSnapshot = await resolveDaemonLocalStatusSnapshot();
|
|
14229
|
-
const snapshot = await
|
|
14230
|
-
|
|
14231
|
-
|
|
14232
|
-
|
|
14233
|
-
|
|
14336
|
+
const [snapshot, channelAssessment, serverAssessment] = await Promise.all([
|
|
14337
|
+
resolveDaemonStatusSnapshot({
|
|
14338
|
+
localSnapshot,
|
|
14339
|
+
runtime
|
|
14340
|
+
}),
|
|
14341
|
+
assessCliUpdate({ environmentTarget }),
|
|
14342
|
+
assessServerRequiredVersion({ gatewayUrl: environmentTarget.gatewayUrl })
|
|
14343
|
+
]);
|
|
14234
14344
|
emitCliJsonEnvelope(buildDaemonStatusJsonPayload({
|
|
14235
14345
|
cliVersion: toDaemonStatusCliVersionPayload(channelAssessment),
|
|
14236
14346
|
environmentTarget,
|
|
14237
14347
|
localSnapshot,
|
|
14238
|
-
serverRequirementAssessment:
|
|
14348
|
+
serverRequirementAssessment: serverAssessment,
|
|
14239
14349
|
serverRequirementChannelAssessment: channelAssessment,
|
|
14240
14350
|
snapshot
|
|
14241
14351
|
}));
|
|
@@ -16660,4 +16770,4 @@ function parseDaemonRunMode(rawMode) {
|
|
|
16660
16770
|
//#endregion
|
|
16661
16771
|
export { buildAuthStatusSnapshot as $, buildDaemonStartNeedsAttentionCard as A, resolveDaemonServiceParticipationStatus as B, buildProfileWorkspaceRows as C, createDelayedSpinner as D, emitDaemonAgentOverview as E, emitCliJsonEnvelope as F, ensureCommandAuthenticationOrCancel as G, validateLocalProjectConnectionPath as H, runDaemonStartupPreflight as I, runAuthLogout as J, evaluateCommandAuthentication as K, readDaemonIncidentLogTail as L, buildHumanErrorCopy as M, renderHumanErrorCard as N, shouldEmitAgentOverview as O, renderHumanTextErrorCard as P, buildAuthStatusRows as Q, resolveLocalComponentsStatus as R, buildProfileWorkspacePresentation as S, createQuietPresenter as T, connectWebSocket as U, LocalProjectConnectionError as V, buildCommandAuthenticationPromptMessage as W, runAuthStatus as X, runAuthMenu as Y, exchangeOneTimeTokenAuthSession as Z, buildDaemonBackgroundStartFailure as _, resolveDeviceTokenExpiresAt as _t, runDaemonBackgroundStartForDecision as a, promptTextEntry as at, formatServiceRuntimeHeadline as b, runDaemonInterrupt as c, finishCurrentCommandCheckScope as ct, runDaemonServiceDetached as d, resetCurrentCommandCheckState as dt, formatActiveOrganizationLabel as et, runDaemonSnapshot as f, startCurrentCommandCheckScope as ft, runDaemonUninstall as g, resolveDeviceAuthClientId as gt, runDaemonTeardownStrict as h, requestDeviceToken as ht, runDaemonAutostart as i, buildUnifiedCardFrame as it, runDaemonStartDecisionPrompt as j, buildDaemonStartDeferredCard as k, runDaemonReinstall as l, getCurrentCommandCheckState as lt, runDaemonStop as m, fetchAuthUserSnapshot as mt, isManagedSystemServiceBootstrapRun as n, renderInfoCard as nt, runDaemonCancel as o, isReturnKeypress as ot, runDaemonStatusFlow as p, extractAuthApiErrorMessage as pt, runAuthLogin as q, runDaemon as r, renderTextInfoCard as rt, runDaemonInstall as s, runInteractivePrompt as st, bestEffortStopCurrentLaneDaemonService as t, buildTextInfoCardLines as tt, runDaemonRunAfterEntryChecks as u, isCurrentCommandCheckScopeActive as ut, buildSystemServiceStartupFailureReportFromVerdict as v, revokeAuthAccessToken as vt, reconcileCliVersionView as w, resolveServiceParticipationReadiness as x, formatServiceParticipationReadinessLabel as y, writeInstalledLocalComponentsSnapshot as z };
|
|
16662
16772
|
|
|
16663
|
-
//# sourceMappingURL=service-
|
|
16773
|
+
//# sourceMappingURL=service-Cz9hwU7z.js.map
|