openmeld 0.3.232 → 0.3.234

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.
Files changed (110) hide show
  1. package/dist/{add-me-membership-ChntsjGm.js → add-me-membership-CmHUjDvu.js} +2 -2
  2. package/dist/{add-me-membership-ChntsjGm.js.map → add-me-membership-CmHUjDvu.js.map} +1 -1
  3. package/dist/{agents-DruPcNSg.js → agents-CNW1dony.js} +9 -9
  4. package/dist/{agents-DruPcNSg.js.map → agents-CNW1dony.js.map} +1 -1
  5. package/dist/{api-client-foundation-CDj_9Rks.js → api-client-foundation-BHjffwwr.js} +1 -1
  6. package/dist/{api-client-foundation-EZpFLGVC.js → api-client-foundation-D6zHrrGV.js} +3 -3
  7. package/dist/{api-client-foundation-EZpFLGVC.js.map → api-client-foundation-D6zHrrGV.js.map} +1 -1
  8. package/dist/auth-session-CCLabxRT.js +4 -0
  9. package/dist/{auth-session-DhSHCYvl.js → auth-session-CjxqNKvh.js} +4 -4
  10. package/dist/{auth-session-DhSHCYvl.js.map → auth-session-CjxqNKvh.js.map} +1 -1
  11. package/dist/{channel-tvFZSSVr.js → channel-BW2_rI6u.js} +4 -4
  12. package/dist/{channel-tvFZSSVr.js.map → channel-BW2_rI6u.js.map} +1 -1
  13. package/dist/{cli-binary-manifest-Bjf6T7Ef.js → cli-binary-manifest-ETxqCzfS.js} +8 -1
  14. package/dist/cli-binary-manifest-ETxqCzfS.js.map +1 -0
  15. package/dist/{command-0yoZa1GT.js → command-9Iorb5GA.js} +16 -16
  16. package/dist/{command-0yoZa1GT.js.map → command-9Iorb5GA.js.map} +1 -1
  17. package/dist/{computer-connection-CoBDorh6.js → computer-connection-LX1R7jD0.js} +2 -2
  18. package/dist/{computer-connection-CoBDorh6.js.map → computer-connection-LX1R7jD0.js.map} +1 -1
  19. package/dist/{computer-connection-review-Dy7p1LXZ.js → computer-connection-review-CeOHkloT.js} +5 -5
  20. package/dist/{computer-connection-review-Dy7p1LXZ.js.map → computer-connection-review-CeOHkloT.js.map} +1 -1
  21. package/dist/{computer-disconnect-4Ks_DVXV.js → computer-disconnect-CXDO8zgT.js} +7 -7
  22. package/dist/{computer-disconnect-4Ks_DVXV.js.map → computer-disconnect-CXDO8zgT.js.map} +1 -1
  23. package/dist/{computer-setup-continuation-ZcQb7MvI.js → computer-setup-continuation-XgvjM0jF.js} +3 -3
  24. package/dist/{computer-setup-continuation-ZcQb7MvI.js.map → computer-setup-continuation-XgvjM0jF.js.map} +1 -1
  25. package/dist/{context-BPIoofMa.js → context-D3GnSqg8.js} +3 -3
  26. package/dist/{context-BPIoofMa.js.map → context-D3GnSqg8.js.map} +1 -1
  27. package/dist/{control-plane-rTE2rHZ5.js → control-plane-QqGL-jtT.js} +2 -2
  28. package/dist/{control-plane-rTE2rHZ5.js.map → control-plane-QqGL-jtT.js.map} +1 -1
  29. package/dist/{daemon-device-id-DDazRZUV.js → daemon-device-id-OMqh2F9_.js} +5 -5
  30. package/dist/{daemon-device-id-DDazRZUV.js.map → daemon-device-id-OMqh2F9_.js.map} +1 -1
  31. package/dist/{daemon-lifecycle-journal-CRxQL9m6.js → daemon-lifecycle-journal-Dq8W9V9C.js} +6 -6
  32. package/dist/{daemon-lifecycle-journal-CRxQL9m6.js.map → daemon-lifecycle-journal-Dq8W9V9C.js.map} +1 -1
  33. package/dist/{daemon-service-runtime-BTzL0w6s.js → daemon-service-runtime-B-x4bBKx.js} +4 -4
  34. package/dist/{daemon-service-runtime-BTzL0w6s.js.map → daemon-service-runtime-B-x4bBKx.js.map} +1 -1
  35. package/dist/{daemon-service-update-coordinator-BDs0p4bA.js → daemon-service-update-coordinator-Brv_30Kn.js} +20 -18
  36. package/dist/{daemon-service-update-coordinator-BDs0p4bA.js.map → daemon-service-update-coordinator-Brv_30Kn.js.map} +1 -1
  37. package/dist/{dispatch-owned-runtime-CK2YJ2Oo.js → dispatch-owned-runtime-Czq270vy.js} +52 -619
  38. package/dist/dispatch-owned-runtime-Czq270vy.js.map +1 -0
  39. package/dist/{dist-Bw6OBFYo.js → dist-CJL7LE-y.js} +203 -362
  40. package/dist/dist-CJL7LE-y.js.map +1 -0
  41. package/dist/{dist--TaSMxQz.js → dist-Ccpvj1tf.js} +3 -3
  42. package/dist/{dist--TaSMxQz.js.map → dist-Ccpvj1tf.js.map} +1 -1
  43. package/dist/{dist-B12upl5l.js → dist-MpN-h8da.js} +1 -1
  44. package/dist/{elapsed-time-C3nfbdd9.js → elapsed-time-BSphCejK.js} +6 -6
  45. package/dist/{elapsed-time-C3nfbdd9.js.map → elapsed-time-BSphCejK.js.map} +1 -1
  46. package/dist/{entry-De__5RVq.js → entry-CDablKgv.js} +7 -7
  47. package/dist/{entry-De__5RVq.js.map → entry-CDablKgv.js.map} +1 -1
  48. package/dist/{installation-inventory-Bq8iZfSa.js → installation-inventory-CRnah3Xf.js} +3 -3
  49. package/dist/{installation-inventory-Bq8iZfSa.js.map → installation-inventory-CRnah3Xf.js.map} +1 -1
  50. package/dist/{installer-C7iSAOSz.js → installer-BYBrLBth.js} +2 -2
  51. package/dist/{installer-C7iSAOSz.js.map → installer-BYBrLBth.js.map} +1 -1
  52. package/dist/{local-components-DleLEzSU.js → local-components-DJiMS67S.js} +36 -3
  53. package/dist/local-components-DJiMS67S.js.map +1 -0
  54. package/dist/{meta-api-BpwJWE22.js → meta-api-ClHCkzZB.js} +4 -4
  55. package/dist/{meta-api-BpwJWE22.js.map → meta-api-ClHCkzZB.js.map} +1 -1
  56. package/dist/{openmeld-C0OSZJtn.js → openmeld-Yz7J0OaB.js} +32 -32
  57. package/dist/{openmeld-C0OSZJtn.js.map → openmeld-Yz7J0OaB.js.map} +1 -1
  58. package/dist/openmeld-dev-environment-DwdvL7jg.js +24 -0
  59. package/dist/openmeld-dev-environment-DwdvL7jg.js.map +1 -0
  60. package/dist/openmeld-dev.js +1 -19
  61. package/dist/openmeld-dev.js.map +1 -1
  62. package/dist/{openmeld-maintenance-worker-DY90mkWW.js → openmeld-maintenance-worker-CVjbc-dv.js} +9 -9
  63. package/dist/{openmeld-maintenance-worker-DY90mkWW.js.map → openmeld-maintenance-worker-CVjbc-dv.js.map} +1 -1
  64. package/dist/{openmeld-tools-update-join-DgzNuaDy.js → openmeld-tools-update-join-Em7DfQt6.js} +4 -4
  65. package/dist/{openmeld-tools-update-join-DgzNuaDy.js.map → openmeld-tools-update-join-Em7DfQt6.js.map} +1 -1
  66. package/dist/{openmeld-tools-update-process-frame-DbEZ3fEh.js → openmeld-tools-update-process-frame-Csy2XKUf.js} +1 -1
  67. package/dist/{openmeld-tools-update-process-frame-BtFKp70p.js → openmeld-tools-update-process-frame-YLOS82E3.js} +2 -2
  68. package/dist/{openmeld-tools-update-process-frame-BtFKp70p.js.map → openmeld-tools-update-process-frame-YLOS82E3.js.map} +1 -1
  69. package/dist/openmeld.js +5 -5
  70. package/dist/{prepare-provider-runtime-BGdfbFyZ.js → prepare-provider-runtime-Bf2GBijn.js} +537 -213
  71. package/dist/prepare-provider-runtime-Bf2GBijn.js.map +1 -0
  72. package/dist/{prepare-session-executor-CA1gq8dR.js → prepare-session-executor-D8Vbyoq4.js} +19 -19
  73. package/dist/{prepare-session-executor-CA1gq8dR.js.map → prepare-session-executor-D8Vbyoq4.js.map} +1 -1
  74. package/dist/{process-channel-C1wRGUmk.js → process-channel-CTPL81j6.js} +2 -2
  75. package/dist/{process-channel-C1wRGUmk.js.map → process-channel-CTPL81j6.js.map} +1 -1
  76. package/dist/{runtime-DFlEdls4.js → runtime-aUrBNKSl.js} +7860 -7249
  77. package/dist/runtime-aUrBNKSl.js.map +1 -0
  78. package/dist/{runtime-agent-controller-reporting-submission-C_xD2A-P.js → runtime-agent-controller-reporting-submission-BJY9cLyh.js} +146 -70
  79. package/dist/runtime-agent-controller-reporting-submission-BJY9cLyh.js.map +1 -0
  80. package/dist/{runtime-transport-DH8Ks-AU.js → runtime-transport-DyBmX7ds.js} +569 -30
  81. package/dist/runtime-transport-DyBmX7ds.js.map +1 -0
  82. package/dist/{service-KHA_Yv8q.js → service-CMNaJrvV.js} +105 -39
  83. package/dist/service-CMNaJrvV.js.map +1 -0
  84. package/dist/{service-account-authorization-BHWs8cRP.js → service-account-authorization-CdyvPbvg.js} +2 -2
  85. package/dist/{service-account-authorization-BHWs8cRP.js.map → service-account-authorization-CdyvPbvg.js.map} +1 -1
  86. package/dist/{service-account-control-BcHjpVid.js → service-account-control-jnKTjLAR.js} +9 -9
  87. package/dist/{service-account-control-BcHjpVid.js.map → service-account-control-jnKTjLAR.js.map} +1 -1
  88. package/dist/{service-control-capabilities-B4433dGT.js → service-control-capabilities-CRsFO-Jf.js} +3 -3
  89. package/dist/{service-control-capabilities-B4433dGT.js.map → service-control-capabilities-CRsFO-Jf.js.map} +1 -1
  90. package/dist/{service-control-capabilities-DTKD2-o0.js → service-control-capabilities-DpJNUd1S.js} +1 -1
  91. package/dist/{state-iJqU2XWw.js → state-CON1kJsS.js} +2 -2
  92. package/dist/{state-iJqU2XWw.js.map → state-CON1kJsS.js.map} +1 -1
  93. package/dist/{runtime-reporting-health-state-_bvJcV1y.js → updates-api-BpWiCpAo.js} +378 -209
  94. package/dist/updates-api-BpWiCpAo.js.map +1 -0
  95. package/dist/{upgrade-DlBDEvs4.js → upgrade-Bdh732dG.js} +8 -8
  96. package/dist/{upgrade-DlBDEvs4.js.map → upgrade-Bdh732dG.js.map} +1 -1
  97. package/dist/upgrade-frLu7pCB.js +4 -0
  98. package/package.json +13 -13
  99. package/dist/auth-session-BOG3gV2K2.js +0 -4
  100. package/dist/cli-binary-manifest-Bjf6T7Ef.js.map +0 -1
  101. package/dist/dispatch-owned-runtime-CK2YJ2Oo.js.map +0 -1
  102. package/dist/dist-Bw6OBFYo.js.map +0 -1
  103. package/dist/local-components-DleLEzSU.js.map +0 -1
  104. package/dist/prepare-provider-runtime-BGdfbFyZ.js.map +0 -1
  105. package/dist/runtime-DFlEdls4.js.map +0 -1
  106. package/dist/runtime-agent-controller-reporting-submission-C_xD2A-P.js.map +0 -1
  107. package/dist/runtime-reporting-health-state-_bvJcV1y.js.map +0 -1
  108. package/dist/runtime-transport-DH8Ks-AU.js.map +0 -1
  109. package/dist/service-KHA_Yv8q.js.map +0 -1
  110. package/dist/upgrade-CuzsgsKh.js +0 -4
@@ -2,40 +2,43 @@
2
2
 
3
3
  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";
4
4
  import { r as resolveAuthBaseUrl } from "./auth-url-6Bb6YdNm.js";
5
- import { Gi as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, Ki as OPENMELD_RUNTIME_CAPABILITIES_HEADER, Li as localProjectControlDaemonFrameSchema, Ni as serviceConnectionEvidenceEventSchema, Pi as serviceConnectionEvidenceJournalSchema, Ri as localProjectControlDiscoverProjectsResponseSchema, dr as betterAuthDeviceAuthorizationCodeResponseSchema, fr as betterAuthDeviceAuthorizationErrorResponseSchema, hr as betterAuthSessionSnapshotResponseSchema, lr as BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE, mr as betterAuthDeviceAuthorizationTokenResponseSchema, pn as createServiceConnectionEvidenceApi, pr as betterAuthDeviceAuthorizationTokenRequestSchema, qi as computerFileAccessDaemonFrameSchema, qn as DAEMON_STREAM_KEEPALIVE_PING, ur as betterAuthDeviceAuthorizationCodeRequestSchema } from "./dist-Bw6OBFYo.js";
6
- import { Ar as pruneStaleLeases, At as ensureOpenMeldManagedProfileWorkspace, Bt as createMutableRouteCatalogState, Dn as emitReconcileCompletedEvidence, Dr as MIN_HEARTBEAT_INTERVAL_MS, En as emitDriftDetectedEvidence, Er as MAX_HEARTBEAT_INTERVAL_MS, Ft as resolveConfiguredProfileWorkspacePathForAccount, Hn as buildAuthenticatedControlPlaneResponse, Ht as summarizeSkippedDaemonProfiles, I as listAgentTargetStates, It as setCustomProfileWorkspace, Jt as isDaemonReconcileInProgressError, Mr as resolveCatalogSyncIntervalMs, Nt as readProfileWorkspaceConfigForAccount, O as syncDeviceRuntimeStateProjection, On as emitReconcileStartedEvidence, Or as applyAcceptedLeases, Ot as resolveRegistryRuntimeAdapterCapabilitySnapshot, Tr as ADAPTIVE_HEARTBEAT_JITTER_RATIO, Ut as syncDaemonRouteCatalogState, Vt as createRouteCatalogFromMutableState, _t as removeProjectConnection, bt as setDefaultProjectConnection, ct as ProjectBindingOperationError, ft as listProjectBindings, gt as removeMissingProjectConnections, jr as resolveAdaptiveHeartbeatIntervalMs, kn as DaemonServiceRunError, kr as applyIntervalJitterMs$1, ln as resolveCatalogSyncSkippedProfilesLogState, lt as ProjectBindingStoreUpdateRequiredError, pt as listProjectConnectionsWithStatus, tn as buildLocalServiceDiagnosticsPayload, ut as bindProject, wr as resolveRouteRegistrationReconcileDecision } from "./prepare-provider-runtime-BGdfbFyZ.js";
7
- import { $r as localFolderPickerHelperResultSchema, A as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, An as OPENMELD_COMPUTER_CARE_HEADER, C as runtimeTransportHeartbeatRequestSchema, F as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, I as runtimeTransportRegisterSessionRequestSchema, M as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, P as runtimeTransportOpenMeldToolsControlFramePayloadSchema, Qr as localFolderPickerHelperProtocolResultSchema, Ur as OPENMELD_REASONING_STREAM_HEADER, Ut as SPACE_WORK_HANDOFF_CAPABILITY_HEADER, V as runtimeTransportRouteCatalogChangedFramePayloadSchema, Xr as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, Yr as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, Zr as localFolderPickerDaemonFrameSchema, it as sanitizeDispatchErrorSummary, n as OPENMELD_ADMISSION_EVIDENCE_HEADER, r as OPENMELD_EXECUTION_ADMISSION_HEADER, s as localWakeRouteWorkingFolderObservationSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH } from "./runtime-transport-DH8Ks-AU.js";
8
- import { E as ServiceAccountAdmissionError, S as setAuthSession, _ as onAuthSessionCredentialAvailable, a as beginAuthSessionTransition, d as getAuthSessionState, i as assertAuthSessionMutationAvailable, o as buildStoredAuthSessionIdentity, s as clearAuthSession, v as onAuthSessionCredentialObservation, w as withAdmittedServiceSession } from "./auth-session-DhSHCYvl.js";
9
- import { s as openMeldDaemonControlPlaneResponseSchema } from "./control-plane-rTE2rHZ5.js";
10
- import { a as formatLocalSetupActionLabel, i as formatLocalSetupActionDescription, n as formatLocalComponentsSummaryDescription, o as installedLocalComponentsSnapshotSchema, r as formatLocalComponentsSummaryLabel } from "./local-components-DleLEzSU.js";
5
+ import { Gi as OPENMELD_RUNTIME_CAPABILITIES_HEADER, Ii as localProjectControlDaemonFrameSchema, Ki as computerFileAccessDaemonFrameSchema, Li as localProjectControlDiscoverProjectsResponseSchema, Mi as serviceConnectionEvidenceEventSchema, Ni as serviceConnectionEvidenceJournalSchema, Wi as COMPUTER_FILE_ACCESS_RUNTIME_CAPABILITY, dr as betterAuthDeviceAuthorizationCodeResponseSchema, fr as betterAuthDeviceAuthorizationErrorResponseSchema, hr as betterAuthSessionSnapshotResponseSchema, lr as BETTER_AUTH_DEVICE_AUTHORIZATION_GRANT_TYPE, mr as betterAuthDeviceAuthorizationTokenResponseSchema, pn as createServiceConnectionEvidenceApi, pr as betterAuthDeviceAuthorizationTokenRequestSchema, qn as DAEMON_STREAM_KEEPALIVE_PING, ur as betterAuthDeviceAuthorizationCodeRequestSchema } from "./dist-CJL7LE-y.js";
6
+ import { A as runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema, C as runtimeTransportHeartbeatRequestSchema, F as runtimeTransportOpenMeldToolsControlResultFramePayloadSchema, I as runtimeTransportRegisterSessionRequestSchema, M as runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema, P as runtimeTransportOpenMeldToolsControlFramePayloadSchema, V as runtimeTransportRouteCatalogChangedFramePayloadSchema, Wn as OPENMELD_COMPUTER_CARE_HEADER, di as localFolderPickerDaemonFrameSchema, fi as localFolderPickerHelperProtocolResultSchema, li as LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY, n as OPENMELD_ADMISSION_EVIDENCE_HEADER, pi as localFolderPickerHelperResultSchema, r as OPENMELD_EXECUTION_ADMISSION_HEADER, ri as OPENMELD_REASONING_STREAM_HEADER, rn as SPACE_WORK_HANDOFF_CAPABILITY_HEADER, s as localWakeRouteWorkingFolderObservationSchema, t as CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH, ui as OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER, vt as sanitizeDispatchErrorSummary } from "./runtime-transport-DyBmX7ds.js";
7
+ import { s as openMeldDaemonControlPlaneResponseSchema } from "./control-plane-QqGL-jtT.js";
8
+ import { An as emitReconcileCompletedEvidence, Ar as ADAPTIVE_HEARTBEAT_JITTER_RATIO, At as ensureOpenMeldManagedProfileWorkspace, Bt as createMutableRouteCatalogState, Fr as pruneStaleLeases, Ft as resolveConfiguredProfileWorkspacePathForAccount, Gn as buildAuthenticatedControlPlaneResponse, Ht as summarizeSkippedDaemonProfiles, I as listAgentTargetStates, Ir as resolveAdaptiveHeartbeatIntervalMs, It as setCustomProfileWorkspace, Jt as isDaemonReconcileInProgressError, Lr as resolveCatalogSyncIntervalMs, Mn as DaemonServiceRunError, Mr as MIN_HEARTBEAT_INTERVAL_MS, Nr as applyAcceptedLeases, Nt as readProfileWorkspaceConfigForAccount, O as syncDeviceRuntimeStateProjection, Ot as resolveRegistryRuntimeAdapterCapabilitySnapshot, Pr as applyIntervalJitterMs$1, Ut as syncDaemonRouteCatalogState, Vt as createRouteCatalogFromMutableState, _t as removeProjectConnection, bt as setDefaultProjectConnection, ct as ProjectBindingOperationError, ft as listProjectBindings, gt as removeMissingProjectConnections, jn as emitReconcileStartedEvidence, jr as MAX_HEARTBEAT_INTERVAL_MS, kn as emitDriftDetectedEvidence, kr as resolveRouteRegistrationReconcileDecision, ln as resolveCatalogSyncSkippedProfilesLogState, lt as ProjectBindingStoreUpdateRequiredError, pt as listProjectConnectionsWithStatus, tn as buildLocalServiceDiagnosticsPayload, ut as bindProject } from "./prepare-provider-runtime-Bf2GBijn.js";
9
+ import { a as formatLocalSetupActionLabel, i as formatLocalSetupActionDescription, n as formatLocalComponentsSummaryDescription, o as installedLocalComponentsSnapshotSchema, r as formatLocalComponentsSummaryLabel } from "./local-components-DJiMS67S.js";
10
+ import { o as resolveCliBinaryPlatform } from "./cli-binary-manifest-ETxqCzfS.js";
11
+ import { D as ServiceAccountAdmissionError, S as setAuthSession, _ as onAuthSessionCredentialAvailable, a as beginAuthSessionTransition, d as getAuthSessionState, i as assertAuthSessionMutationAvailable, o as buildStoredAuthSessionIdentity, s as clearAuthSession, v as onAuthSessionCredentialObservation, w as withAdmittedServiceSession } from "./auth-session-CjxqNKvh.js";
11
12
  import { r as daemonServiceLaneSchema } from "./service-contract-CRyDcIIf.js";
12
- import { m as hashBundledSkillAssets, p as computeDirectoryContentHash, u as loadSelectedSkillAssets } from "./state-iJqU2XWw.js";
13
- import { Z as resolveNextRuntimeAgentControllerReportSyncAtMs, _t as resolveComputerFileAccessStorePath, b as collectObservedSessionWorkingDirectories, g as parseDaemonFrame, gt as readComputerFileAccessPolicy, h as handleDaemonTransportFrame, ht as ComputerFileAccessStoreError, jn as cliJsonOutputEnvelopeSchema, n as assertDispatchOwnedRuntimeServiceMutationAllowed, pt as emitDaemonDispatchJournalEvent, vt as updateComputerFileAccessPolicy, y as sendDaemonFrame } from "./dispatch-owned-runtime-CK2YJ2Oo.js";
14
- 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-BTzL0w6s.js";
15
- import { A as DEFAULT_RECONNECT_DELAY_MS, B as requireOpenMeldProfile, 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, Q as readDaemonCatalogSyncSignal, R as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, V as resolveOpenMeldProfileOrNull, _ as toErrorMessage$5, b as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, c as normalizeHeartbeatIntervalMs, ct as buildHumanAuthenticationCard, d as normalizeText$1, dt as resolveAuthenticationGuidance, f as nowIsoString, i as resolvePreferredDaemonDeviceId, j as HEARTBEAT_RESPONSE_TIMEOUT_MS, k as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, lt as createAuthenticationError, mt as resolveAuthenticationReasonFromState, n as ensureDaemonRuntimePaths, ot as buildAuthenticationStatusLabel, r as resolveDaemonDeviceId, s as emitRunLine, st as buildCommandAuthenticationPromptMessage$1, tt as clearAllSelectedOpenMeldProfileIds, u as normalizeOptionalText$1, ut as extractAuthenticationPromptAction, 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-DDazRZUV.js";
13
+ import { m as hashBundledSkillAssets, p as computeDirectoryContentHash, u as loadSelectedSkillAssets } from "./state-CON1kJsS.js";
14
+ import { $ as readComputerFileAccessPolicy, L as createServiceGitEnvironment, Q as ComputerFileAccessStoreError, X as emitDaemonDispatchJournalEvent, Y as resolveNextRuntimeAgentControllerReportSyncAtMs, _ as collectObservedSessionWorkingDirectories, et as resolveComputerFileAccessStorePath, g as sendDaemonFrame, h as parseDaemonFrame, m as handleDaemonTransportFrame, mn as cliJsonOutputEnvelopeSchema, n as assertDispatchOwnedRuntimeServiceMutationAllowed, tt as updateComputerFileAccessPolicy } from "./dispatch-owned-runtime-Czq270vy.js";
15
+ 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-B-x4bBKx.js";
16
+ import { A as DEFAULT_RECONNECT_DELAY_MS, B as requireOpenMeldProfile, 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, Q as readDaemonCatalogSyncSignal, R as RUNTIME_STATE_PERSIST_MIN_INTERVAL_MS, V as resolveOpenMeldProfileOrNull, _ as toErrorMessage$5, b as CATALOG_SYNC_SIGNAL_POLL_INTERVAL_MS, c as normalizeHeartbeatIntervalMs, ct as buildHumanAuthenticationCard, d as normalizeText$1, dt as resolveAuthenticationGuidance, f as nowIsoString, i as resolvePreferredDaemonDeviceId, j as HEARTBEAT_RESPONSE_TIMEOUT_MS, k as DAEMON_STREAM_KEEPALIVE_PONG_TIMEOUT_MS, lt as createAuthenticationError, mt as resolveAuthenticationReasonFromState, n as ensureDaemonRuntimePaths, ot as buildAuthenticationStatusLabel, r as resolveDaemonDeviceId, s as emitRunLine, st as buildCommandAuthenticationPromptMessage$1, tt as clearAllSelectedOpenMeldProfileIds, u as normalizeOptionalText$1, ut as extractAuthenticationPromptAction, 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-OMqh2F9_.js";
16
17
  import { i as writeDaemonRuntimeLease } from "./daemon-runtime-lease-Bv6vhqOe.js";
17
18
  import { i as readProcessStartIdentity, n as isPreciseProcessStartIdentity, t as CURRENT_PROCESS_START_IDENTITY } from "./process-identity-BRbhGGTM.js";
18
- 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, Ut as ensureDaemonSystemServiceCommandFiles, Vt as assessCliUpdate, W as resolveLocalServiceDemand, Wt as resolveInstalledDaemonSystemServiceCommandSpec, 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 } from "./daemon-service-update-coordinator-BDs0p4bA.js";
19
+ 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, Ut as ensureDaemonSystemServiceCommandFiles, Vt as assessCliUpdate, W as resolveLocalServiceDemand, Wt as resolveInstalledDaemonSystemServiceCommandSpec, 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 } from "./daemon-service-update-coordinator-Brv_30Kn.js";
19
20
  import { C as assessLocalMachineFailure, E as createServiceSpawnPendingIssue, i as isOpenMeldLockError, k as formatLocalMachineIssueMessage, u as resolveOpenMeldOrphanedLockIssue, x as resolveOpenMeldLaneDescriptor } from "./lock-BMI00i2F.js";
20
- import { c as serviceExecutionHostSnapshotSchema, n as createExecutionHostClient, o as serviceExecutionHostMethods, t as ExecutionHostError } from "./channel-tvFZSSVr.js";
21
+ import { c as serviceExecutionHostSnapshotSchema, n as createExecutionHostClient, o as serviceExecutionHostMethods, t as ExecutionHostError } from "./channel-BW2_rI6u.js";
21
22
  import { a as resolveBaseUrl, c as resolveExplicitGatewayUrlOrThrow, f as getConfiguredDaemonDispatchLimits, i as normalizeGatewayBaseUrlOrNull, o as resolveBaseUrlOrNull, r as normalizeGatewayBaseUrl } from "./base-url-0AoeTi3w.js";
23
+ import "./openmeld-dev-environment-DwdvL7jg.js";
22
24
  import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
23
25
  import { t as isBinaryDistribution } from "./distribution-BDQT2ilb.js";
24
26
  import { A as getDaemonStatus, G as withDaemonServiceRegistrationMutationLock, H as setDaemonServiceRuntimeState, I as readDaemonServiceRuntimeSnapshot, K as withDaemonServiceRunLock, L as releaseDaemonServiceLifecycleLock, M as isDaemonServiceRuntimeHeartbeatStale, O as ensureDaemonControlPlaneToken, R as resolveDaemonControlPlaneEndpoint, S as daemonServiceRepairJournalPath, U as uninstallDaemon, W as withDaemonServiceReconcileLock, _ 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 withDaemonServiceStopLock, z as resolveDaemonServiceRuntimeMetadata } from "./daemon-state-Dte9re5V.js";
25
27
  import { a as upsertDaemonServiceContract, i as readDaemonServiceContract, n as isDaemonServiceContractIdentityReusable, t as clearDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
26
28
  import { a as formatOpenMeldCliTextBlock, n as formatOpenMeldCliCommand, r as formatOpenMeldCliCommands, t as formatInlineOpenMeldCliCommands } from "./cli-entry-command-CR_9QU1i.js";
27
29
  import { t as resolveOpenMeldEnvironmentTarget } from "./openmeld-environment-target-BgYR6ozy.js";
28
- import { t as admitServiceAccountStop } from "./service-account-authorization-BHWs8cRP.js";
29
- 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-CRxQL9m6.js";
30
+ import { t as admitServiceAccountStop } from "./service-account-authorization-CdyvPbvg.js";
31
+ 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-Dq8W9V9C.js";
32
+ import { r as readWindowsManagedCliInstallation } from "./windows-managed-install-BVlswqjA.js";
30
33
  import { n as toErrorMessage$6, t as sleep } from "./dist-BLuEEVHh.js";
31
34
  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-BXAp21GH.js";
32
- import { n as resolveRuntimeContext } from "./context-BPIoofMa.js";
35
+ import { n as resolveRuntimeContext } from "./context-D3GnSqg8.js";
33
36
  import { n as outJsonLine, r as outLine } from "./io-DT66typ4.js";
34
37
  import { n as sanitizeTerminalDisplayText, t as createPresenter } from "./presenter-MJ5YgsOT.js";
35
- import { X as getCommandEntryContract, _ as createAuthLoginGuideError, a as formatDaemonServiceDowngradeBlockedRecommendation, d as formatDaemonServiceMissingStatus, f as getDaemonDowngradeBlockedTitle, g as canUseInteractivePrompts, h as resolveOpenMeldToolsUpdateOperationProjection, l as formatDaemonServiceMissingRunStepOne, n as resolveElapsedTimeMs, o as formatDaemonServiceMissingAction, pt as validateDaemonControlTargetInput, r as formatDaemonDowngradeBlockedNextStep, s as formatDaemonServiceMissingMeaning, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo, xt as buildAgentOverviewFromContract } from "./elapsed-time-C3nfbdd9.js";
36
- 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-EZpFLGVC.js";
37
- import { t as childExecutionHostChannel } from "./process-channel-C1wRGUmk.js";
38
- import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-Bq8iZfSa.js";
38
+ import { X as getCommandEntryContract, _ as createAuthLoginGuideError, a as formatDaemonServiceDowngradeBlockedRecommendation, d as formatDaemonServiceMissingStatus, f as getDaemonDowngradeBlockedTitle, g as canUseInteractivePrompts, h as resolveOpenMeldToolsUpdateOperationProjection, l as formatDaemonServiceMissingRunStepOne, n as resolveElapsedTimeMs, o as formatDaemonServiceMissingAction, pt as validateDaemonControlTargetInput, r as formatDaemonDowngradeBlockedNextStep, s as formatDaemonServiceMissingMeaning, t as formatElapsedTime, u as formatDaemonServiceMissingRunStepTwo, xt as buildAgentOverviewFromContract } from "./elapsed-time-BSphCejK.js";
39
+ 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-D6zHrrGV.js";
40
+ import { t as childExecutionHostChannel } from "./process-channel-CTPL81j6.js";
41
+ import { n as collectSkillsReadinessSnapshot } from "./installation-inventory-CRnah3Xf.js";
39
42
  import { createHash, randomUUID } from "node:crypto";
40
43
  import { delimiter, dirname, isAbsolute, join, resolve } from "node:path";
41
44
  import { access, mkdir, open, readFile, readdir, realpath, rename, rm, stat, writeFile } from "node:fs/promises";
@@ -54,7 +57,6 @@ const SERVICE_CONNECTION_ID_QUERY_PARAMETER = "connectionId";
54
57
  z$1.uuid();
55
58
  //#endregion
56
59
  //#region src/commands/auth-device-session-client.ts
57
- const DEFAULT_DEVICE_CLIENT_ID = "openmeld-cli";
58
60
  const DEVICE_CLIENT_ID_PATTERN = /^[A-Za-z0-9][A-Za-z0-9._:-]{1,63}$/;
59
61
  var AuthDeviceSessionClientError = class extends Error {
60
62
  endpoint;
@@ -201,7 +203,7 @@ async function revokeAuthAccessToken(input) {
201
203
  return { ok: true };
202
204
  }
203
205
  function resolveDeviceAuthClientId(value) {
204
- const clientId = normalizeOptionalString$5(value) ?? normalizeOptionalString$5(process.env.OPENMELD_AUTH_CLIENT_ID) ?? DEFAULT_DEVICE_CLIENT_ID;
206
+ const clientId = normalizeOptionalString$5(value) ?? normalizeOptionalString$5(process.env.OPENMELD_AUTH_CLIENT_ID) ?? (resolveOpenMeldEnvPreset() === "dev-local" ? "openmeld-cli-dev" : "openmeld-cli");
205
207
  if (!DEVICE_CLIENT_ID_PATTERN.test(clientId)) throw new Error(`invalid client_id "${clientId}" (allowed: letters, numbers, . _ : -)`);
206
208
  return clientId;
207
209
  }
@@ -4804,10 +4806,18 @@ async function rejectAfter(operation, timeoutMs, createError) {
4804
4806
  }
4805
4807
  }
4806
4808
  const runGitCommand = async (input) => await new Promise((resolveCommand, rejectCommand) => {
4807
- execFile(input.command, input.args, {
4809
+ execFile(input.command, input.command === "git" ? [
4810
+ "-c",
4811
+ "core.fsmonitor=false",
4812
+ "-c",
4813
+ "core.hooksPath=/dev/null",
4814
+ ...input.args
4815
+ ] : input.args, {
4808
4816
  encoding: "utf8",
4817
+ windowsHide: true,
4809
4818
  maxBuffer: 1024 * 1024,
4810
- timeout: input.timeoutMs
4819
+ timeout: input.timeoutMs,
4820
+ ...input.command === "git" ? { env: createServiceGitEnvironment() } : {}
4811
4821
  }, (error, stdout, stderr) => {
4812
4822
  if (!error) {
4813
4823
  resolveCommand({
@@ -6153,7 +6163,13 @@ async function runDaemonSocketSession(input) {
6153
6163
  };
6154
6164
  }
6155
6165
  async function sendHeartbeat(options = {}) {
6156
- if (closed) return;
6166
+ if (closed) {
6167
+ if (options.requireAcknowledgement) throw new DaemonServiceRunError({
6168
+ code: "daemon.run.socket_closed",
6169
+ message: "Transport closed before the final heartbeat."
6170
+ });
6171
+ return;
6172
+ }
6157
6173
  if (heartbeatInFlight) {
6158
6174
  if (options.publishAdmissionAfterInFlight) admissionHeartbeatPending = true;
6159
6175
  return;
@@ -6201,6 +6217,10 @@ async function runDaemonSocketSession(input) {
6201
6217
  timeoutMs: HEARTBEAT_RESPONSE_TIMEOUT_MS,
6202
6218
  waiters
6203
6219
  });
6220
+ if (!heartbeatResponse.ok) throw new DaemonServiceRunError({
6221
+ code: "daemon.run.heartbeat_rejected",
6222
+ message: "Core rejected the service heartbeat."
6223
+ });
6204
6224
  pruneStaleLeases({
6205
6225
  leasesByProfileId,
6206
6226
  staleLeases: heartbeatResponse.staleLeases
@@ -6248,7 +6268,7 @@ async function runDaemonSocketSession(input) {
6248
6268
  startRouteCatalogSyncIfDue();
6249
6269
  startSupplementalEvidenceSyncs();
6250
6270
  } catch (error) {
6251
- if (recordHeartbeatFailure(error)) {
6271
+ if (recordHeartbeatFailure(error) && !options.requireAcknowledgement) {
6252
6272
  admissionHeartbeatPending = false;
6253
6273
  input.socket.terminate();
6254
6274
  return;
@@ -6261,6 +6281,7 @@ async function runDaemonSocketSession(input) {
6261
6281
  delayMs: MIN_HEARTBEAT_INTERVAL_MS,
6262
6282
  reason: "heartbeat_retry"
6263
6283
  });
6284
+ if (options.requireAcknowledgement) throw error;
6264
6285
  } finally {
6265
6286
  heartbeatInFlight = false;
6266
6287
  const publishPendingAdmission = admissionHeartbeatPending;
@@ -6406,7 +6427,7 @@ async function runDaemonSocketSession(input) {
6406
6427
  profileConfigurationRevision: hasCompleteProfileConfigurationRevisions(routeCatalog)
6407
6428
  }),
6408
6429
  runtimeContract: { epoch: DAEMON_RUNTIME_CONTRACT_EPOCH },
6409
- connectedAtMs: Date.now()
6430
+ connectedAtMs: socketConnectedAtMs
6410
6431
  });
6411
6432
  if (!registerPayload.success) throw new DaemonServiceRunError({
6412
6433
  code: "daemon.run.register_payload_invalid",
@@ -7056,12 +7077,17 @@ async function runDaemonSocketSession(input) {
7056
7077
  code: "daemon.run.controlled_shutdown_inflight_heartbeat_completed",
7057
7078
  text: "Controlled shutdown finished waiting for the active heartbeat."
7058
7079
  });
7059
- await sendHeartbeat();
7060
- emitRunLine({
7061
- presenter: input.presenter,
7062
- code: "daemon.run.controlled_shutdown_final_heartbeat_completed",
7063
- text: "Controlled shutdown completed its final heartbeat."
7064
- });
7080
+ let finalHeartbeatError;
7081
+ try {
7082
+ await sendHeartbeat({ requireAcknowledgement: true });
7083
+ emitRunLine({
7084
+ presenter: input.presenter,
7085
+ code: "daemon.run.controlled_shutdown_final_heartbeat_completed",
7086
+ text: "Controlled shutdown completed its final heartbeat."
7087
+ });
7088
+ } catch (error) {
7089
+ finalHeartbeatError = error;
7090
+ }
7065
7091
  emitRunLine({
7066
7092
  presenter: input.presenter,
7067
7093
  code: "daemon.run.controlled_shutdown_draining",
@@ -7069,6 +7095,7 @@ async function runDaemonSocketSession(input) {
7069
7095
  });
7070
7096
  await input.executionHost.call("drain", {}, { timeoutMs: null });
7071
7097
  const result = await input.executionHost.call("settleResults", {});
7098
+ if (finalHeartbeatError) throw finalHeartbeatError;
7072
7099
  if (result.status === "connection_closed") return false;
7073
7100
  if (result.status === "timeout") emitRunLine({
7074
7101
  presenter: input.presenter,
@@ -7102,12 +7129,18 @@ async function runDaemonSocketSession(input) {
7102
7129
  kind: "shutdown_requested",
7103
7130
  stopCause
7104
7131
  })) ?? new Promise(() => void 0)]);
7105
- if (sessionExit.kind === "shutdown_requested" && !closed) controlledShutdownCompleted = await finishControlledShutdown(sessionExit.stopCause);
7106
- hostLink.detach().catch(reportHostFailure);
7107
- input.attachRouteCatalogSyncInvoker?.(null);
7108
- clearHeartbeatTimer();
7109
- keepalive.stop();
7110
- clearCatalogSyncSignalTimer();
7132
+ try {
7133
+ if (sessionExit.kind === "shutdown_requested" && !closed) controlledShutdownCompleted = await finishControlledShutdown(sessionExit.stopCause);
7134
+ } catch (error) {
7135
+ input.socket.terminate();
7136
+ throw error;
7137
+ } finally {
7138
+ hostLink.detach().catch(reportHostFailure);
7139
+ input.attachRouteCatalogSyncInvoker?.(null);
7140
+ clearHeartbeatTimer();
7141
+ keepalive.stop();
7142
+ clearCatalogSyncSignalTimer();
7143
+ }
7111
7144
  if (controlledShutdownCompleted || closeCode === 1e3 && closeReason === "shutdown") return;
7112
7145
  throw new DaemonServiceRunError({
7113
7146
  code: "daemon.run.socket_closed",
@@ -7312,6 +7345,37 @@ async function resolveDaemonServiceParticipationStatus(input) {
7312
7345
  };
7313
7346
  }
7314
7347
  //#endregion
7348
+ //#region src/local-components/installation-source.ts
7349
+ async function resolveLocalComponentsInstallationSource(input = {}) {
7350
+ const os = input.platform ?? process.platform;
7351
+ const platform = resolveCliBinaryPlatform(os, input.arch ?? process.arch);
7352
+ if (!(input.binaryDistribution ?? isBinaryDistribution())) return {
7353
+ distribution: "npm",
7354
+ channel: "stable",
7355
+ platform
7356
+ };
7357
+ try {
7358
+ const installed = await (input.readInstallation ?? readManagedCliInstallation)();
7359
+ if (!installed || input.expectedVersion && installed.version !== input.expectedVersion) return;
7360
+ if (os === "win32") {
7361
+ const record = await (input.readWindowsInstallation ?? readWindowsManagedCliInstallation)(input.root ?? resolveOpenMeldRootDir());
7362
+ if (!record || record.version !== installed.version) return;
7363
+ return {
7364
+ distribution: "binary",
7365
+ channel: record.releaseChannel ?? "stable",
7366
+ platform
7367
+ };
7368
+ }
7369
+ return {
7370
+ distribution: "binary",
7371
+ channel: "stable",
7372
+ platform
7373
+ };
7374
+ } catch {
7375
+ return;
7376
+ }
7377
+ }
7378
+ //#endregion
7315
7379
  //#region src/local-components/manifest.ts
7316
7380
  const OPENMELD_CLI_COMMAND_CONTRACT_VERSION = "openmeld-cli-command-contract-2026-09-space-files-1gib-v1";
7317
7381
  const OPENMELD_SKILLS_CONTRACT_VERSION = "openmeld-skills-contract-2026-09-explicit-space-recipients-v1";
@@ -7392,6 +7456,7 @@ async function resolveLocalComponentsStatus(input = {}) {
7392
7456
  resolveOpenMeldToolsUpdateOperationProjection()
7393
7457
  ]);
7394
7458
  const resolvedCli = await resolveCliComponentStatus(input);
7459
+ const installationSource = await resolveLocalComponentsInstallationSource({ expectedVersion: resolvedCli.packageVersion });
7395
7460
  const cli = updateProjection?.failureCode ? {
7396
7461
  ...resolvedCli,
7397
7462
  reasonCodes: Array.from(/* @__PURE__ */ new Set([...resolvedCli.reasonCodes, updateProjection.failureCode]))
@@ -7407,6 +7472,7 @@ async function resolveLocalComponentsStatus(input = {}) {
7407
7472
  schemaVersion: 1,
7408
7473
  generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
7409
7474
  entrypoint: "setup",
7475
+ ...installationSource ? { installationSource } : {},
7410
7476
  summaryLabel: formatLocalComponentsSummaryLabel({
7411
7477
  cliStatus: cli.status,
7412
7478
  setupAction
@@ -15974,4 +16040,4 @@ function parseDaemonRunMode(rawMode) {
15974
16040
  //#endregion
15975
16041
  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 };
15976
16042
 
15977
- //# sourceMappingURL=service-KHA_Yv8q.js.map
16043
+ //# sourceMappingURL=service-CMNaJrvV.js.map