openmeld 0.3.231 → 0.3.232

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 (133) hide show
  1. package/dist/{add-me-membership-0KyMk1wi.js → add-me-membership-ChntsjGm.js} +2 -2
  2. package/dist/{add-me-membership-0KyMk1wi.js.map → add-me-membership-ChntsjGm.js.map} +1 -1
  3. package/dist/{agents-Bkx6ldpV.js → agents-DruPcNSg.js} +11 -11
  4. package/dist/{agents-Bkx6ldpV.js.map → agents-DruPcNSg.js.map} +1 -1
  5. package/dist/{api-client-foundation-d4E5XWdJ.js → api-client-foundation-CDj_9Rks.js} +1 -1
  6. package/dist/{api-client-foundation-DgTXf3Gb.js → api-client-foundation-EZpFLGVC.js} +3 -3
  7. package/dist/{api-client-foundation-DgTXf3Gb.js.map → api-client-foundation-EZpFLGVC.js.map} +1 -1
  8. package/dist/auth-session-BOG3gV2K2.js +4 -0
  9. package/dist/{auth-session-pLaN5cnC.js → auth-session-DhSHCYvl.js} +4 -4
  10. package/dist/{auth-session-pLaN5cnC.js.map → auth-session-DhSHCYvl.js.map} +1 -1
  11. package/dist/auth-url-6Bb6YdNm.js +24 -0
  12. package/dist/auth-url-6Bb6YdNm.js.map +1 -0
  13. package/dist/{base-url-eck31vC8.js → base-url-0AoeTi3w.js} +3 -3
  14. package/dist/{base-url-eck31vC8.js.map → base-url-0AoeTi3w.js.map} +1 -1
  15. package/dist/{base-url-B8eWb2md.js → base-url-Bdjp-5vy.js} +1 -1
  16. package/dist/{channel-DppbHxHw.js → channel-tvFZSSVr.js} +24 -4
  17. package/dist/channel-tvFZSSVr.js.map +1 -0
  18. package/dist/{command-CBWv24uj.js → command-0yoZa1GT.js} +18 -18
  19. package/dist/{command-CBWv24uj.js.map → command-0yoZa1GT.js.map} +1 -1
  20. package/dist/{computer-connection-DMkamVpB.js → computer-connection-CoBDorh6.js} +2 -2
  21. package/dist/{computer-connection-DMkamVpB.js.map → computer-connection-CoBDorh6.js.map} +1 -1
  22. package/dist/{computer-connection-review-BSPMGVhN.js → computer-connection-review-Dy7p1LXZ.js} +6 -6
  23. package/dist/{computer-connection-review-BSPMGVhN.js.map → computer-connection-review-Dy7p1LXZ.js.map} +1 -1
  24. package/dist/{computer-disconnect-BQ_MDeeA.js → computer-disconnect-4Ks_DVXV.js} +9 -9
  25. package/dist/{computer-disconnect-BQ_MDeeA.js.map → computer-disconnect-4Ks_DVXV.js.map} +1 -1
  26. package/dist/{computer-setup-continuation-Cd293Yzi.js → computer-setup-continuation-ZcQb7MvI.js} +3 -3
  27. package/dist/{computer-setup-continuation-Cd293Yzi.js.map → computer-setup-continuation-ZcQb7MvI.js.map} +1 -1
  28. package/dist/{context-qbQXVLF5.js → context-BPIoofMa.js} +5 -5
  29. package/dist/{context-qbQXVLF5.js.map → context-BPIoofMa.js.map} +1 -1
  30. package/dist/{daemon-device-id-B6iDyQEs.js → daemon-device-id-DDazRZUV.js} +7 -7
  31. package/dist/{daemon-device-id-B6iDyQEs.js.map → daemon-device-id-DDazRZUV.js.map} +1 -1
  32. package/dist/{daemon-lifecycle-journal-DrwEygzu.js → daemon-lifecycle-journal-CRxQL9m6.js} +7 -7
  33. package/dist/{daemon-lifecycle-journal-DrwEygzu.js.map → daemon-lifecycle-journal-CRxQL9m6.js.map} +1 -1
  34. package/dist/{daemon-runtime-lease-C1wkT4Bi.js → daemon-runtime-lease-Bv6vhqOe.js} +2 -2
  35. package/dist/{daemon-runtime-lease-C1wkT4Bi.js.map → daemon-runtime-lease-Bv6vhqOe.js.map} +1 -1
  36. package/dist/{daemon-runtime-lease-DAQyRUc5.js → daemon-runtime-lease-ZjP0urJt.js} +1 -1
  37. package/dist/{daemon-service-contract-DhEfbzHt.js → daemon-service-contract-COPKbCy_.js} +4 -4
  38. package/dist/{daemon-service-contract-DhEfbzHt.js.map → daemon-service-contract-COPKbCy_.js.map} +1 -1
  39. package/dist/{daemon-service-manager-CRnFxPKA.js → daemon-service-manager-BXAp21GH.js} +6 -6
  40. package/dist/{daemon-service-manager-CRnFxPKA.js.map → daemon-service-manager-BXAp21GH.js.map} +1 -1
  41. package/dist/{daemon-service-manager-l0unaDGa.js → daemon-service-manager-C_ny0JhB.js} +1 -1
  42. package/dist/{daemon-service-runtime-B4nWB2Qx.js → daemon-service-runtime-BTzL0w6s.js} +14 -13
  43. package/dist/{daemon-service-runtime-B4nWB2Qx.js.map → daemon-service-runtime-BTzL0w6s.js.map} +1 -1
  44. package/dist/{daemon-service-update-coordinator-C8cW7Vn_.js → daemon-service-update-coordinator-BDs0p4bA.js} +26 -21
  45. package/dist/daemon-service-update-coordinator-BDs0p4bA.js.map +1 -0
  46. package/dist/{daemon-state-B6G5xe7f.js → daemon-state-Dte9re5V.js} +4 -4
  47. package/dist/{daemon-state-B6G5xe7f.js.map → daemon-state-Dte9re5V.js.map} +1 -1
  48. package/dist/{daemon-frame-transport-xQnNyg6E.js → dispatch-owned-runtime-CK2YJ2Oo.js} +547 -50
  49. package/dist/dispatch-owned-runtime-CK2YJ2Oo.js.map +1 -0
  50. package/dist/{dist-DFhd6JmQ.js → dist--TaSMxQz.js} +2 -2
  51. package/dist/{dist-DFhd6JmQ.js.map → dist--TaSMxQz.js.map} +1 -1
  52. package/dist/{dist-olOaAWkl.js → dist-B12upl5l.js} +1 -1
  53. package/dist/{dist-CAypwFRu.js → dist-Bw6OBFYo.js} +195 -185
  54. package/dist/dist-Bw6OBFYo.js.map +1 -0
  55. package/dist/{elapsed-time-COv3bjEl.js → elapsed-time-C3nfbdd9.js} +5 -5
  56. package/dist/{elapsed-time-COv3bjEl.js.map → elapsed-time-C3nfbdd9.js.map} +1 -1
  57. package/dist/{entry-DIjUKIep.js → entry-De__5RVq.js} +81 -17
  58. package/dist/entry-De__5RVq.js.map +1 -0
  59. package/dist/{installation-inventory-DllgoKT1.js → installation-inventory-Bq8iZfSa.js} +5 -5
  60. package/dist/{installation-inventory-DllgoKT1.js.map → installation-inventory-Bq8iZfSa.js.map} +1 -1
  61. package/dist/{installer-Sc79LhuA.js → installer-C7iSAOSz.js} +2 -2
  62. package/dist/{installer-Sc79LhuA.js.map → installer-C7iSAOSz.js.map} +1 -1
  63. package/dist/{lock-CMH9eoS7.js → lock-BMI00i2F.js} +2 -2
  64. package/dist/{lock-CMH9eoS7.js.map → lock-BMI00i2F.js.map} +1 -1
  65. package/dist/meta-api-BpwJWE22.js +371 -0
  66. package/dist/meta-api-BpwJWE22.js.map +1 -0
  67. package/dist/{openmeld-BUYFXSyY.js → openmeld-C0OSZJtn.js} +40 -38
  68. package/dist/{openmeld-BUYFXSyY.js.map → openmeld-C0OSZJtn.js.map} +1 -1
  69. package/dist/openmeld-dev.js +17 -9
  70. package/dist/openmeld-dev.js.map +1 -1
  71. package/dist/{openmeld-environment-target-Cw3V0WnE.js → openmeld-environment-target-BgYR6ozy.js} +8 -25
  72. package/dist/openmeld-environment-target-BgYR6ozy.js.map +1 -0
  73. package/dist/{openmeld-maintenance-worker-Br6WIhhe.js → openmeld-maintenance-worker-DY90mkWW.js} +14 -14
  74. package/dist/{openmeld-maintenance-worker-Br6WIhhe.js.map → openmeld-maintenance-worker-DY90mkWW.js.map} +1 -1
  75. package/dist/{openmeld-tools-update-join-B1l6RER6.js → openmeld-tools-update-join-DgzNuaDy.js} +4 -4
  76. package/dist/{openmeld-tools-update-join-B1l6RER6.js.map → openmeld-tools-update-join-DgzNuaDy.js.map} +1 -1
  77. package/dist/openmeld.js +5 -5
  78. package/dist/{paths-DSkUuEu3.js → paths-De9xdA2h.js} +11 -6
  79. package/dist/paths-De9xdA2h.js.map +1 -0
  80. package/dist/{prepare-provider-runtime-DfsSj_N_.js → prepare-provider-runtime-BGdfbFyZ.js} +20 -15
  81. package/dist/prepare-provider-runtime-BGdfbFyZ.js.map +1 -0
  82. package/dist/{prepare-session-executor-CrYpWljb.js → prepare-session-executor-CA1gq8dR.js} +25 -25
  83. package/dist/{prepare-session-executor-CrYpWljb.js.map → prepare-session-executor-CA1gq8dR.js.map} +1 -1
  84. package/dist/{process-channel-DmTb_kO4.js → process-channel-C1wRGUmk.js} +2 -2
  85. package/dist/{process-channel-DmTb_kO4.js.map → process-channel-C1wRGUmk.js.map} +1 -1
  86. package/dist/{published-production-safety-CgXxtdMK.js → published-production-safety-zANGAGDI.js} +5 -6
  87. package/dist/published-production-safety-zANGAGDI.js.map +1 -0
  88. package/dist/{runtime-ZLBVtFFY.js → runtime-DFlEdls4.js} +76 -22
  89. package/dist/runtime-DFlEdls4.js.map +1 -0
  90. package/dist/{runtime-agent-controller-reporting-submission-CbaUsNTF.js → runtime-agent-controller-reporting-submission-C_xD2A-P.js} +15 -12
  91. package/dist/runtime-agent-controller-reporting-submission-C_xD2A-P.js.map +1 -0
  92. package/dist/{runtime-reporting-health-state-DOg9iwwO.js → runtime-reporting-health-state-_bvJcV1y.js} +116 -22
  93. package/dist/runtime-reporting-health-state-_bvJcV1y.js.map +1 -0
  94. package/dist/{runtime-transport-D4x8_AmR.js → runtime-transport-DH8Ks-AU.js} +86 -6
  95. package/dist/runtime-transport-DH8Ks-AU.js.map +1 -0
  96. package/dist/{service-B9y1SQlB.js → service-KHA_Yv8q.js} +61 -28
  97. package/dist/service-KHA_Yv8q.js.map +1 -0
  98. package/dist/{service-account-authorization-Di59Cjth.js → service-account-authorization-BHWs8cRP.js} +6 -6
  99. package/dist/{service-account-authorization-Di59Cjth.js.map → service-account-authorization-BHWs8cRP.js.map} +1 -1
  100. package/dist/{service-account-control-DALO1USM.js → service-account-control-BcHjpVid.js} +13 -13
  101. package/dist/{service-account-control-DALO1USM.js.map → service-account-control-BcHjpVid.js.map} +1 -1
  102. package/dist/{service-control-capabilities-CKwU9Er5.js → service-control-capabilities-B4433dGT.js} +5 -5
  103. package/dist/{service-control-capabilities-CKwU9Er5.js.map → service-control-capabilities-B4433dGT.js.map} +1 -1
  104. package/dist/{service-control-capabilities-B9ZxDPOJ.js → service-control-capabilities-DTKD2-o0.js} +1 -1
  105. package/dist/{state-CdSbKM0J.js → state-iJqU2XWw.js} +3 -3
  106. package/dist/{state-CdSbKM0J.js.map → state-iJqU2XWw.js.map} +1 -1
  107. package/dist/upgrade-CuzsgsKh.js +4 -0
  108. package/dist/{upgrade-DLJJlkbf.js → upgrade-DlBDEvs4.js} +8 -8
  109. package/dist/{upgrade-DLJJlkbf.js.map → upgrade-DlBDEvs4.js.map} +1 -1
  110. package/dist/{windows-preview-channel-DPrYuLyY.js → windows-preview-channel-BPhfSwji.js} +2 -2
  111. package/dist/{windows-preview-channel-DPrYuLyY.js.map → windows-preview-channel-BPhfSwji.js.map} +1 -1
  112. package/dist/{windows-user-task-BR-WB7hr.js → windows-user-task-CTsMnmD4.js} +3 -3
  113. package/dist/{windows-user-task-BR-WB7hr.js.map → windows-user-task-CTsMnmD4.js.map} +1 -1
  114. package/dist/{windows-user-task-m9eMEUEq.js → windows-user-task-DnxKO3oB.js} +1 -1
  115. package/package.json +11 -11
  116. package/dist/auth-session-DExyUwLo.js +0 -4
  117. package/dist/channel-DppbHxHw.js.map +0 -1
  118. package/dist/daemon-frame-transport-xQnNyg6E.js.map +0 -1
  119. package/dist/daemon-service-update-coordinator-C8cW7Vn_.js.map +0 -1
  120. package/dist/dist-CAypwFRu.js.map +0 -1
  121. package/dist/entry-DIjUKIep.js.map +0 -1
  122. package/dist/meta-api-CEw8eOeN.js +0 -845
  123. package/dist/meta-api-CEw8eOeN.js.map +0 -1
  124. package/dist/openmeld-environment-target-Cw3V0WnE.js.map +0 -1
  125. package/dist/paths-DSkUuEu3.js.map +0 -1
  126. package/dist/prepare-provider-runtime-DfsSj_N_.js.map +0 -1
  127. package/dist/published-production-safety-CgXxtdMK.js.map +0 -1
  128. package/dist/runtime-ZLBVtFFY.js.map +0 -1
  129. package/dist/runtime-agent-controller-reporting-submission-CbaUsNTF.js.map +0 -1
  130. package/dist/runtime-reporting-health-state-DOg9iwwO.js.map +0 -1
  131. package/dist/runtime-transport-D4x8_AmR.js.map +0 -1
  132. package/dist/service-B9y1SQlB.js.map +0 -1
  133. package/dist/upgrade-BFWUxFpJ.js +0 -4
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { t as ExecutionHostError } from "./channel-DppbHxHw.js";
3
+ import { t as ExecutionHostError } from "./channel-tvFZSSVr.js";
4
4
  //#region src/local-service/execution-host/process-channel.ts
5
5
  function childExecutionHostChannel(child) {
6
6
  return {
@@ -61,4 +61,4 @@ function parentExecutionHostChannel() {
61
61
  //#endregion
62
62
  export { parentExecutionHostChannel as n, childExecutionHostChannel as t };
63
63
 
64
- //# sourceMappingURL=process-channel-DmTb_kO4.js.map
64
+ //# sourceMappingURL=process-channel-C1wRGUmk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"process-channel-DmTb_kO4.js","names":[],"sources":["../src/local-service/execution-host/process-channel.ts"],"sourcesContent":["import type { ChildProcess } from \"node:child_process\";\nimport type { ExecutionHostChannel } from \"./channel\";\nimport { ExecutionHostError } from \"./channel\";\n\n// Use inherited Node-compatible IPC with JSON serialization. Provider stdout is\n// not a protocol channel; ordinary logs cannot become control messages.\nexport function childExecutionHostChannel(\n child: ChildProcess\n): ExecutionHostChannel {\n return {\n connected: () => child.connected,\n send: (message, completed) => {\n child.send(message, (error) => completed(error ?? null));\n },\n onMessage: (listener) => {\n child.on(\"message\", listener);\n return () => {\n child.off(\"message\", listener);\n };\n },\n onDisconnect: (listener) => {\n let observed = false;\n const finish = (error?: Error) => {\n if (!observed) {\n observed = true;\n listener(error);\n }\n };\n const exited = (code: number | null, signal: NodeJS.Signals | null) => {\n finish(\n new Error(`Host process exited (${signal ?? code ?? \"unknown\"})`)\n );\n };\n child.on(\"disconnect\", finish);\n child.on(\"exit\", exited);\n // Spawn/send failures must not become unhandled EventEmitter errors.\n child.on(\"error\", finish);\n return () => {\n child.off(\"disconnect\", finish);\n child.off(\"exit\", exited);\n child.off(\"error\", finish);\n };\n },\n };\n}\n\nexport function parentExecutionHostChannel(): ExecutionHostChannel {\n const send = process.send?.bind(process);\n if (!(send && process.connected)) {\n throw new ExecutionHostError(\n \"host.inherited_channel_required\",\n \"The execution host requires its supervisor's inherited IPC channel.\"\n );\n }\n return {\n connected: () => process.connected === true,\n send: (message, completed) => {\n send(message, undefined, undefined, (error) => completed(error ?? null));\n },\n onMessage: (listener) => {\n process.on(\"message\", listener);\n return () => {\n process.off(\"message\", listener);\n };\n },\n onDisconnect: (listener) => {\n process.on(\"disconnect\", listener);\n return () => {\n process.off(\"disconnect\", listener);\n };\n },\n };\n}\n"],"mappings":";;;;AAMA,SAAgB,0BACd,OACsB;CACtB,OAAO;EACL,iBAAiB,MAAM;EACvB,OAAO,SAAS,cAAc;GAC5B,MAAM,KAAK,UAAU,UAAU,UAAU,SAAS,IAAI,CAAC;EACzD;EACA,YAAY,aAAa;GACvB,MAAM,GAAG,WAAW,QAAQ;GAC5B,aAAa;IACX,MAAM,IAAI,WAAW,QAAQ;GAC/B;EACF;EACA,eAAe,aAAa;GAC1B,IAAI,WAAW;GACf,MAAM,UAAU,UAAkB;IAChC,IAAI,CAAC,UAAU;KACb,WAAW;KACX,SAAS,KAAK;IAChB;GACF;GACA,MAAM,UAAU,MAAqB,WAAkC;IACrE,uBACE,IAAI,MAAM,wBAAwB,UAAU,QAAQ,UAAU,EAAE,CAClE;GACF;GACA,MAAM,GAAG,cAAc,MAAM;GAC7B,MAAM,GAAG,QAAQ,MAAM;GAEvB,MAAM,GAAG,SAAS,MAAM;GACxB,aAAa;IACX,MAAM,IAAI,cAAc,MAAM;IAC9B,MAAM,IAAI,QAAQ,MAAM;IACxB,MAAM,IAAI,SAAS,MAAM;GAC3B;EACF;CACF;AACF;AAEA,SAAgB,6BAAmD;CACjE,MAAM,OAAO,QAAQ,MAAM,KAAK,OAAO;CACvC,IAAI,EAAE,QAAQ,QAAQ,YACpB,MAAM,IAAI,mBACR,mCACA,qEACF;CAEF,OAAO;EACL,iBAAiB,QAAQ,cAAc;EACvC,OAAO,SAAS,cAAc;GAC5B,KAAK,SAAS,KAAA,GAAW,KAAA,IAAY,UAAU,UAAU,SAAS,IAAI,CAAC;EACzE;EACA,YAAY,aAAa;GACvB,QAAQ,GAAG,WAAW,QAAQ;GAC9B,aAAa;IACX,QAAQ,IAAI,WAAW,QAAQ;GACjC;EACF;EACA,eAAe,aAAa;GAC1B,QAAQ,GAAG,cAAc,QAAQ;GACjC,aAAa;IACX,QAAQ,IAAI,cAAc,QAAQ;GACpC;EACF;CACF;AACF"}
1
+ {"version":3,"file":"process-channel-C1wRGUmk.js","names":[],"sources":["../src/local-service/execution-host/process-channel.ts"],"sourcesContent":["import type { ChildProcess } from \"node:child_process\";\nimport type { ExecutionHostChannel } from \"./channel\";\nimport { ExecutionHostError } from \"./channel\";\n\n// Use inherited Node-compatible IPC with JSON serialization. Provider stdout is\n// not a protocol channel; ordinary logs cannot become control messages.\nexport function childExecutionHostChannel(\n child: ChildProcess\n): ExecutionHostChannel {\n return {\n connected: () => child.connected,\n send: (message, completed) => {\n child.send(message, (error) => completed(error ?? null));\n },\n onMessage: (listener) => {\n child.on(\"message\", listener);\n return () => {\n child.off(\"message\", listener);\n };\n },\n onDisconnect: (listener) => {\n let observed = false;\n const finish = (error?: Error) => {\n if (!observed) {\n observed = true;\n listener(error);\n }\n };\n const exited = (code: number | null, signal: NodeJS.Signals | null) => {\n finish(\n new Error(`Host process exited (${signal ?? code ?? \"unknown\"})`)\n );\n };\n child.on(\"disconnect\", finish);\n child.on(\"exit\", exited);\n // Spawn/send failures must not become unhandled EventEmitter errors.\n child.on(\"error\", finish);\n return () => {\n child.off(\"disconnect\", finish);\n child.off(\"exit\", exited);\n child.off(\"error\", finish);\n };\n },\n };\n}\n\nexport function parentExecutionHostChannel(): ExecutionHostChannel {\n const send = process.send?.bind(process);\n if (!(send && process.connected)) {\n throw new ExecutionHostError(\n \"host.inherited_channel_required\",\n \"The execution host requires its supervisor's inherited IPC channel.\"\n );\n }\n return {\n connected: () => process.connected === true,\n send: (message, completed) => {\n send(message, undefined, undefined, (error) => completed(error ?? null));\n },\n onMessage: (listener) => {\n process.on(\"message\", listener);\n return () => {\n process.off(\"message\", listener);\n };\n },\n onDisconnect: (listener) => {\n process.on(\"disconnect\", listener);\n return () => {\n process.off(\"disconnect\", listener);\n };\n },\n };\n}\n"],"mappings":";;;;AAMA,SAAgB,0BACd,OACsB;CACtB,OAAO;EACL,iBAAiB,MAAM;EACvB,OAAO,SAAS,cAAc;GAC5B,MAAM,KAAK,UAAU,UAAU,UAAU,SAAS,IAAI,CAAC;EACzD;EACA,YAAY,aAAa;GACvB,MAAM,GAAG,WAAW,QAAQ;GAC5B,aAAa;IACX,MAAM,IAAI,WAAW,QAAQ;GAC/B;EACF;EACA,eAAe,aAAa;GAC1B,IAAI,WAAW;GACf,MAAM,UAAU,UAAkB;IAChC,IAAI,CAAC,UAAU;KACb,WAAW;KACX,SAAS,KAAK;IAChB;GACF;GACA,MAAM,UAAU,MAAqB,WAAkC;IACrE,uBACE,IAAI,MAAM,wBAAwB,UAAU,QAAQ,UAAU,EAAE,CAClE;GACF;GACA,MAAM,GAAG,cAAc,MAAM;GAC7B,MAAM,GAAG,QAAQ,MAAM;GAEvB,MAAM,GAAG,SAAS,MAAM;GACxB,aAAa;IACX,MAAM,IAAI,cAAc,MAAM;IAC9B,MAAM,IAAI,QAAQ,MAAM;IACxB,MAAM,IAAI,SAAS,MAAM;GAC3B;EACF;CACF;AACF;AAEA,SAAgB,6BAAmD;CACjE,MAAM,OAAO,QAAQ,MAAM,KAAK,OAAO;CACvC,IAAI,EAAE,QAAQ,QAAQ,YACpB,MAAM,IAAI,mBACR,mCACA,qEACF;CAEF,OAAO;EACL,iBAAiB,QAAQ,cAAc;EACvC,OAAO,SAAS,cAAc;GAC5B,KAAK,SAAS,KAAA,GAAW,KAAA,IAAY,UAAU,UAAU,SAAS,IAAI,CAAC;EACzE;EACA,YAAY,aAAa;GACvB,QAAQ,GAAG,WAAW,QAAQ;GAC9B,aAAa;IACX,QAAQ,IAAI,WAAW,QAAQ;GACjC;EACF;EACA,eAAe,aAAa;GAC1B,QAAQ,GAAG,cAAc,QAAQ;GACjC,aAAa;IACX,QAAQ,IAAI,cAAc,QAAQ;GACpC;EACF;CACF;AACF"}
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { F as resolveOpenMeldEnvPreset, I as resolveOpenMeldRootDir, M as resolveDefaultOpenMeldHomeDirname, N as resolveExplicitOpenMeldEnvPreset } from "./paths-DSkUuEu3.js";
3
+ import { F as resolveOpenMeldRootDir, M as resolveDefaultOpenMeldHomeDirname, P as resolveOpenMeldEnvPreset } from "./paths-De9xdA2h.js";
4
4
  import { homedir } from "node:os";
5
5
  import { join, resolve } from "node:path";
6
6
  //#region src/config/published-production-safety.ts
@@ -17,8 +17,8 @@ function assertNoPublishedProductionMutationDuringTests(pathInput, targetName) {
17
17
  * a process with an isolated root can still stop, boot out, or uninstall the
18
18
  * real published production service. Fail closed before any such mutation:
19
19
  * - test processes must never mutate the production registration, and
20
- * - a non-test process whose effective root left the published production
21
- * lane must state its intent with an explicit OPENMELD_ENV_PRESET.
20
+ * - the production service identity may be mutated only from the published
21
+ * production root. An explicit preset cannot make an isolated root safe.
22
22
  */
23
23
  function assertSafePublishedProductionServiceRegistrationMutation(operation, pathInput = {}) {
24
24
  if (resolveOpenMeldEnvPreset(pathInput) !== "prod") return;
@@ -27,12 +27,11 @@ function assertSafePublishedProductionServiceRegistrationMutation(operation, pat
27
27
  "OPENMELD_HOME does not isolate the OS service manager registration.",
28
28
  "Target an isolated lane with OPENMELD_ENV_PRESET=dev-local or OPENMELD_ENV_PRESET=canary, or stub the service manager."
29
29
  ].join(" "));
30
- if (resolveExplicitOpenMeldEnvPreset(pathInput) === "prod") return;
31
30
  if (isPublishedProductionOpenMeldRoot(pathInput)) return;
32
31
  throw new Error([
33
32
  `Refusing to ${operation} the published production OpenMeld Service registration:`,
34
33
  "the effective OpenMeld root is outside the published production lane, but the service identity resolved to the production label.",
35
- "Set OPENMELD_ENV_PRESET explicitly to state which service registration this command must mutate."
34
+ "Use the published production root, or target an isolated lane with OPENMELD_ENV_PRESET=dev-local or OPENMELD_ENV_PRESET=canary."
36
35
  ].join(" "));
37
36
  }
38
37
  function isPublishedProductionOpenMeldRoot(pathInput) {
@@ -50,4 +49,4 @@ function normalizeComparablePath(path) {
50
49
  //#endregion
51
50
  export { isTestProcess as i, assertSafePublishedProductionServiceRegistrationMutation as n, isPublishedProductionOpenMeldRoot as r, assertNoPublishedProductionMutationDuringTests as t };
52
51
 
53
- //# sourceMappingURL=published-production-safety-CgXxtdMK.js.map
52
+ //# sourceMappingURL=published-production-safety-zANGAGDI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"published-production-safety-zANGAGDI.js","names":[],"sources":["../src/config/published-production-safety.ts"],"sourcesContent":["import { homedir } from \"node:os\";\nimport { join, resolve } from \"node:path\";\nimport type { OpenMeldPathResolutionInput } from \"./paths\";\nimport {\n resolveDefaultOpenMeldHomeDirname,\n resolveOpenMeldEnvPreset,\n resolveOpenMeldRootDir,\n} from \"./paths\";\n\nconst PUBLISHED_PRODUCTION_OPENMELD_ROOT = normalizeComparablePath(\n join(homedir(), resolveDefaultOpenMeldHomeDirname(\"prod\"))\n);\n\nexport function assertNoPublishedProductionMutationDuringTests(\n pathInput: OpenMeldPathResolutionInput,\n targetName: string\n): void {\n if (!isTestProcess(pathInput)) {\n return;\n }\n if (!isPublishedProductionOpenMeldRoot(pathInput)) {\n return;\n }\n throw new Error(\n [\n `Refusing to mutate ${targetName} in the published production lane during tests.`,\n \"Set OPENMELD_HOME to a fresh temporary directory, or run the validation through openmeld-dev or openmeld-canary.\",\n ].join(\" \")\n );\n}\n\n/**\n * The OS service manager registration (launchd label / systemd unit / Windows\n * service name) is a per-user global resource keyed only by the env preset.\n * OPENMELD_HOME isolates lane files but does NOT isolate this registration, so\n * a process with an isolated root can still stop, boot out, or uninstall the\n * real published production service. Fail closed before any such mutation:\n * - test processes must never mutate the production registration, and\n * - the production service identity may be mutated only from the published\n * production root. An explicit preset cannot make an isolated root safe.\n */\nexport function assertSafePublishedProductionServiceRegistrationMutation(\n operation: string,\n pathInput: OpenMeldPathResolutionInput = {}\n): void {\n if (resolveOpenMeldEnvPreset(pathInput) !== \"prod\") {\n return;\n }\n if (isTestProcess(pathInput)) {\n throw new Error(\n [\n `Refusing to ${operation} the published production OpenMeld Service registration during tests.`,\n \"OPENMELD_HOME does not isolate the OS service manager registration.\",\n \"Target an isolated lane with OPENMELD_ENV_PRESET=dev-local or OPENMELD_ENV_PRESET=canary, or stub the service manager.\",\n ].join(\" \")\n );\n }\n if (isPublishedProductionOpenMeldRoot(pathInput)) {\n return;\n }\n throw new Error(\n [\n `Refusing to ${operation} the published production OpenMeld Service registration:`,\n \"the effective OpenMeld root is outside the published production lane, but the service identity resolved to the production label.\",\n \"Use the published production root, or target an isolated lane with OPENMELD_ENV_PRESET=dev-local or OPENMELD_ENV_PRESET=canary.\",\n ].join(\" \")\n );\n}\n\nexport function isPublishedProductionOpenMeldRoot(\n pathInput: OpenMeldPathResolutionInput\n): boolean {\n return (\n normalizeComparablePath(resolveOpenMeldRootDir(pathInput)) ===\n PUBLISHED_PRODUCTION_OPENMELD_ROOT\n );\n}\n\nexport function isTestProcess(\n pathInput: OpenMeldPathResolutionInput = {}\n): boolean {\n const env = pathInput.env ?? process.env;\n const argv = pathInput.argv ?? process.argv;\n return (\n env.NODE_ENV === \"test\" ||\n env.VITEST === \"true\" ||\n typeof env.VITEST_WORKER_ID === \"string\" ||\n typeof env.JEST_WORKER_ID === \"string\" ||\n argv.some((arg) => arg.includes(\"vitest\"))\n );\n}\n\nfunction normalizeComparablePath(path: string): string {\n const normalized = resolve(path);\n return process.platform === \"win32\" ? normalized.toLowerCase() : normalized;\n}\n"],"mappings":";;;;;;AASA,MAAM,qCAAqC,wBACzC,KAAK,QAAQ,GAAG,kCAAkC,MAAM,CAAC,CAC3D;AAEA,SAAgB,+CACd,WACA,YACM;CACN,IAAI,CAAC,cAAc,SAAS,GAC1B;CAEF,IAAI,CAAC,kCAAkC,SAAS,GAC9C;CAEF,MAAM,IAAI,MACR,CACE,sBAAsB,WAAW,kDACjC,kHACF,CAAC,CAAC,KAAK,GAAG,CACZ;AACF;;;;;;;;;;;AAYA,SAAgB,yDACd,WACA,YAAyC,CAAC,GACpC;CACN,IAAI,yBAAyB,SAAS,MAAM,QAC1C;CAEF,IAAI,cAAc,SAAS,GACzB,MAAM,IAAI,MACR;EACE,eAAe,UAAU;EACzB;EACA;CACF,CAAC,CAAC,KAAK,GAAG,CACZ;CAEF,IAAI,kCAAkC,SAAS,GAC7C;CAEF,MAAM,IAAI,MACR;EACE,eAAe,UAAU;EACzB;EACA;CACF,CAAC,CAAC,KAAK,GAAG,CACZ;AACF;AAEA,SAAgB,kCACd,WACS;CACT,OACE,wBAAwB,uBAAuB,SAAS,CAAC,MACzD;AAEJ;AAEA,SAAgB,cACd,YAAyC,CAAC,GACjC;CACT,MAAM,MAAM,UAAU,OAAO,QAAQ;CACrC,MAAM,OAAO,UAAU,QAAQ,QAAQ;CACvC,OACE,IAAI,aAAa,UACjB,IAAI,WAAW,UACf,OAAO,IAAI,qBAAqB,YAChC,OAAO,IAAI,mBAAmB,YAC9B,KAAK,MAAM,QAAQ,IAAI,SAAS,QAAQ,CAAC;AAE7C;AAEA,SAAS,wBAAwB,MAAsB;CACrD,MAAM,aAAa,QAAQ,IAAI;CAC/B,OAAO,QAAQ,aAAa,UAAU,WAAW,YAAY,IAAI;AACnE"}
@@ -1,24 +1,24 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { I as resolveOpenMeldRootDir } from "./paths-DSkUuEu3.js";
4
- import { At as buildSpaceAttachmentDownloadPath, Or as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Wi as COMPUTER_FILE_ACCESS_OWNER_CANCELLED_REASON_CODE, mn as createSpaceApi, rn as createOrganizationSkillsApi } from "./dist-CAypwFRu.js";
3
+ import { F as resolveOpenMeldRootDir } from "./paths-De9xdA2h.js";
4
+ import { At as buildSpaceAttachmentDownloadPath, Or as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, Wi as COMPUTER_FILE_ACCESS_OWNER_CANCELLED_REASON_CODE, mn as createSpaceApi, rn as createOrganizationSkillsApi } from "./dist-Bw6OBFYo.js";
5
5
  import { b as normalizeKnownBuiltinAgentControllerId, d as resolveBuiltinAgentControllerConversationKind, l as buildAgentControllerConversationRef } from "./controller-contract-DAOCaefz.js";
6
- import { $ as canManageRegistryAgentSkillTargets, $n as DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV, $t as mergeOpenClawGatewayVisibility, An as runRuntimeTask, Bn as upsertConversationExecutionState, Bt as createMutableRouteCatalogState, Cn as verifyCodexAppServerThread, E as resolveProfileWorkspaceRuntime, Fn as loadLedgerState, Gt as syncRuntimeEventToInflightTaskControlRegistry, In as removeConversationExecutionState, Kt as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, L as manageAgentRegistrationInstallation, Ln as resolveConversationExecutionStateByLookupKey, Nn as appendLedgerHistoryEntry, Pn as commitResolvedAgentContext, Qt as createPendingAgentInteractionRegistry, Rn as seedLegacyAgentContext, Sn as resolveCodexAppServerCompletedTurn, U as setAgentRegistrationEnabled, Un as assertLegacyAgentContextAssociation, Vn as withLedgerStateTransaction, Vt as createRouteCatalogFromMutableState, Wn as buildAgentContextLookupKey, Wt as normalizeDispatchThreadAction, Yt as createSerialAgentInteractionCallback, Zt as normalizeDispatchPostMessageAction, _ as loadDaemonRouteCatalog, a as buildOpenClawSpaceSessionKey, an as resolveDispatchContinuityObservation, b as resolveLocalController, bn as resolveInstalledCodexLaunchCandidates, cn as resolveLatestScopedConversationExecutionState, dn as createLocalAdapterEntries, en as createLocalTaskInterruptSender, ft as listProjectBindings, g as writeDaemonRouteCatalogCache, h as readDaemonRouteCatalogCache, in as resolveDispatchQueueLogMeta, jn as buildRuntimeWorkspaceFingerprint, kn as DaemonServiceRunError, kt as resolveRegistryRuntimeAdapterContractByAgentControllerRef, mn as resolveInstalledOpenCodeLaunchCandidates, nn as createLocalExecutionSlots, o as normalizeOpenClawSpaceIdPrefix, on as resolveCompatibleAgentContextMatch, pn as forkOpenCodeServerSession, qt as SPACE_ACTION_TARGET_GUIDANCE_LINES, rn as createInflightTaskControlRegistry, rt as resolveBuiltinAgentControllerDefinition, s as slugifyOpenClawNamePart, sn as resolveCompatibleConversationExecutionState, t as prepareProviderRuntime, tr as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, tt as resolveSkillsAgentRegistry, un as createLocalAdapterContainer, v as buildRuntimeRouteTargets, w as resolveCurrentEffectiveProfileWorkingFolderRuntime, x as resolveLocalRuntimeControllerSupport, xn as forkCodexAppServerThread, y as readLocalEnabledControllers, yn as resolveCodexTimeoutMs, z as reconcileNewRunnableBuiltinAgentRegistrations, zn as settleInflightTask } from "./prepare-provider-runtime-DfsSj_N_.js";
7
- import { A as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, D as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, Dr as runtimeTransportDeliveryExecutionIdentitySchema, E as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, Er as runtimeCoordinatorExecutionTokenEnvelopeSchema, Gt as spaceWorkSelectionSchema, O as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, R as runtimeTransportResumeControllerConversationFramePayloadSchema, T as runtimeTransportLocalAgentControlCancelFramePayloadSchema, Vr as localAgentReasoningPreferencesSchema, X as openMeldDaemonTaskResultPayloadSchema, f as runtimeTransportDispatchInteractionResponseFramePayloadSchema, hr as agentInteractionRequestSchema, l as runtimeTransportDeliverDispatchRequestSchema, m as runtimeTransportDispatchLifecycleRequestSchema, p as runtimeTransportDispatchLifecycleAcknowledgementSchema, pr as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, u as runtimeTransportDispatchInteractionDeliveredRequestSchema, x as runtimeTransportForkAgentSessionResultSchema, z as runtimeTransportResumeControllerConversationResultFramePayloadSchema, zr as LOCAL_AGENT_REASONING_MAX_CHARS } from "./runtime-transport-D4x8_AmR.js";
8
- import { d as getAuthSessionState } from "./auth-session-pLaN5cnC.js";
6
+ import { $ as canManageRegistryAgentSkillTargets, $n as DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV, $t as mergeOpenClawGatewayVisibility, An as runRuntimeTask, Bn as upsertConversationExecutionState, Bt as createMutableRouteCatalogState, Cn as verifyCodexAppServerThread, E as resolveProfileWorkspaceRuntime, Fn as loadLedgerState, Gt as syncRuntimeEventToInflightTaskControlRegistry, In as removeConversationExecutionState, Kt as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, L as manageAgentRegistrationInstallation, Ln as resolveConversationExecutionStateByLookupKey, Nn as appendLedgerHistoryEntry, Pn as commitResolvedAgentContext, Qt as createPendingAgentInteractionRegistry, Rn as seedLegacyAgentContext, Sn as resolveCodexAppServerCompletedTurn, U as setAgentRegistrationEnabled, Un as assertLegacyAgentContextAssociation, Vn as withLedgerStateTransaction, Vt as createRouteCatalogFromMutableState, Wn as buildAgentContextLookupKey, Wt as normalizeDispatchThreadAction, Yt as createSerialAgentInteractionCallback, Zt as normalizeDispatchPostMessageAction, _ as loadDaemonRouteCatalog, a as buildOpenClawSpaceSessionKey, an as resolveDispatchContinuityObservation, b as resolveLocalController, bn as resolveInstalledCodexLaunchCandidates, cn as resolveLatestScopedConversationExecutionState, dn as createLocalAdapterEntries, en as createLocalTaskInterruptSender, ft as listProjectBindings, g as writeDaemonRouteCatalogCache, h as readDaemonRouteCatalogCache, in as resolveDispatchQueueLogMeta, jn as buildRuntimeWorkspaceFingerprint, kn as DaemonServiceRunError, kt as resolveRegistryRuntimeAdapterContractByAgentControllerRef, mn as resolveInstalledOpenCodeLaunchCandidates, nn as createLocalExecutionSlots, o as normalizeOpenClawSpaceIdPrefix, on as resolveCompatibleAgentContextMatch, pn as forkOpenCodeServerSession, qt as SPACE_ACTION_TARGET_GUIDANCE_LINES, rn as createInflightTaskControlRegistry, rt as resolveBuiltinAgentControllerDefinition, s as slugifyOpenClawNamePart, sn as resolveCompatibleConversationExecutionState, t as prepareProviderRuntime, tr as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, tt as resolveSkillsAgentRegistry, un as createLocalAdapterContainer, v as buildRuntimeRouteTargets, w as resolveCurrentEffectiveProfileWorkingFolderRuntime, x as resolveLocalRuntimeControllerSupport, xn as forkCodexAppServerThread, y as readLocalEnabledControllers, yn as resolveCodexTimeoutMs, z as reconcileNewRunnableBuiltinAgentRegistrations, zn as settleInflightTask } from "./prepare-provider-runtime-BGdfbFyZ.js";
7
+ import { Ar as runtimeTransportDeliveryExecutionIdentitySchema, B as runtimeTransportResumeControllerConversationResultFramePayloadSchema, D as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, E as runtimeTransportLocalAgentControlCancelFramePayloadSchema, Hr as LOCAL_AGENT_REASONING_MAX_CHARS, O as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, S as runtimeTransportForkAgentSessionResultSchema, Wr as localAgentReasoningPreferencesSchema, Z as openMeldDaemonTaskResultPayloadSchema, f as runtimeTransportDispatchInteractionResponseFramePayloadSchema, gr as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, j as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, k as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, kr as runtimeCoordinatorExecutionTokenEnvelopeSchema, l as runtimeTransportDeliverDispatchRequestSchema, m as runtimeTransportDispatchLifecycleRequestSchema, p as runtimeTransportDispatchLifecycleAcknowledgementSchema, qt as spaceWorkSelectionSchema, u as runtimeTransportDispatchInteractionDeliveredRequestSchema, vr as agentInteractionRequestSchema, z as runtimeTransportResumeControllerConversationFramePayloadSchema } from "./runtime-transport-DH8Ks-AU.js";
8
+ import { d as getAuthSessionState } from "./auth-session-DhSHCYvl.js";
9
9
  import { n as OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE, t as OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE } from "./control-plane-rTE2rHZ5.js";
10
- import { f as withSkillsInstallLock, h as OFFICIAL_CLI_SKILL_URL, r as ensureLocalSkills, t as resolveSkillInstallStateForTarget } from "./state-CdSbKM0J.js";
11
- import { $ as emitDaemonDispatchJournalEvent, $t as getSpaceAccessRequestContext, B as enqueueDispatchResultOutboxRecord, G as resolveDispatchResultPayload, H as listDispatchResultOutboxPendingAcknowledgementKeys, Ht as buildSpaceRoundSignalPublication, J as sendDispatchPreviewEndFrame, K as sendDispatchInteractionRequestFrame, Kt as createDispatchContinuationSpaceAccessContext, O as consumeArmedAgentControllerInterfaceReprobe, Q as sendDispatchToolActivityFrame, Qt as getSpaceAccessPassword, U as waitForDispatchResultOutboxAcknowledgement, V as flushDispatchResultOutbox, W as buildFailedTaskResultPayload, X as sendDispatchReasoningFrame, Y as sendDispatchPreviewFrame, Z as sendDispatchRuntimeEvidenceFrame, a as resolveRegisterResponseFrame, at as isSameOrDescendantPath, ct as buildDispatchPromptPlan, dt as resolveBootstrapSpaceOwnerProfileId, f as resolveOpenCodeDatabasePath, ft as resolveBootstrapTargetProfileContext, i as resolveHeartbeatResponseFrame, lt as buildDispatchSessionTitle, mn as DISPATCH_SPACE_ACTION_CLI_FALLBACK_COMMAND, nn as isWakeClosingSystemNoticeType, nt as readComputerFileAccessPolicy, o as sendDaemonFrame, ot as buildDispatchBootstrapTemplateFacts, pt as resolveDispatchMentionSourceContext, q as sendDispatchLifecycleFrame, r as parseDaemonFrame, rn as listSpaceMemberDirectorySendTargets, rt as resolveComputerFileAccessStorePath, st as buildDispatchCorrelation, t as emitDaemonErrorFrame, u as readOpenCodeSessionRows, ut as parseDispatchTask, z as acknowledgeDispatchResultOutboxRecord } from "./daemon-frame-transport-xQnNyg6E.js";
12
- import { C as startLocalAgentActivitySyncLoop, E as recordOpenMeldCreatedLocalAgentSession, I as defaultManagedIntegrationPaths, L as installAgentActivityIntegrations, M as registerAgentActivityRoute, S as prepareClaudeProjectContainer, T as discoverLocalAgentSessionProviders, _ as markExecutionContextWorkspaceInUse, a as fetchSpaceUpdates, b as releaseExecutionContextWorkspace, c as materializeOrganizationSkillRelease, i as recordRuntimeReportingSuccess, l as createDispatchSpaceTools, n as recordRuntimeReportingFailure, o as createSpaceWorkingCopies, r as recordRuntimeReportingNotApplicable, s as downloadWorkingCopyFile, v as prepareExecutionContextWorkspace, x as createLedgerIo, y as readExecutionContextWorkspace } from "./runtime-reporting-health-state-DOg9iwwO.js";
13
- import { S as CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS, _ as toErrorMessage$2, n as ensureDaemonRuntimePaths, s as emitRunLine, t as buildLedgerPaths, u as normalizeOptionalText$3, v as warnDaemonEvent } from "./daemon-device-id-B6iDyQEs.js";
14
- import { _ as resolvePublicAgentFailureReason, n as SPACE_COLLABORATION_CONTEXT_RULE, r as SPACE_PERSONAL_CONTRIBUTION_RULE, v as resolveSpacePublicationRequirement } from "./dist-DFhd6JmQ.js";
15
- import { a as serviceExecutionHostCatalogSchema, i as SERVICE_EXECUTION_HOST_PROTOCOL, t as ExecutionHostError } from "./channel-DppbHxHw.js";
16
- import { a as resolveBaseUrl, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig } from "./base-url-eck31vC8.js";
17
- import { t as emitDaemonLifecycleEvent } from "./daemon-lifecycle-journal-DrwEygzu.js";
18
- import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, f as buildOpenMeldRequestContextFromProfileIdentity, n as fetchSpaceRequestWithTimeout, t as createCliApiClientFoundation } from "./api-client-foundation-DgTXf3Gb.js";
19
- import { a as submitRuntimeProviderConversationProofs, f as recordRuntimeProviderUsageLimits, i as submitRuntimeAgentControllerReports, l as resolveLocalAgentControllerReportDecision, o as collectLocalAgentControllerInventory, t as notifyRuntimeReportingAttemptObserver, u as probeAgentControllerUsageObservationAuth } from "./runtime-agent-controller-reporting-submission-CbaUsNTF.js";
20
- import { t as installSkillsToTargets } from "./installer-Sc79LhuA.js";
21
- import { C as supersedeDispatchSpaceActionRecordForReconsideration, S as readDispatchSpaceActionRecord, f as createCliSpaceApi, m as buildDispatchOwnedRuntimeEnv, t as fetchSpaceMeta, v as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, y as createDispatchSpaceActionContext } from "./meta-api-CEw8eOeN.js";
10
+ import { f as withSkillsInstallLock, h as OFFICIAL_CLI_SKILL_URL, r as ensureLocalSkills, t as resolveSkillInstallStateForTarget } from "./state-iJqU2XWw.js";
11
+ import { $ as enqueueDispatchResultOutboxRecord, C as readOpenCodeSessionRows, Ct as buildDispatchSessionTitle, Dt as resolveDispatchMentionSourceContext, Et as resolveBootstrapTargetProfileContext, On as DISPATCH_SPACE_ACTION_CLI_FALLBACK_COMMAND, Q as acknowledgeDispatchResultOutboxRecord, St as buildDispatchPromptPlan, T as resolveOpenCodeDatabasePath, Tt as resolveBootstrapSpaceOwnerProfileId, V as consumeArmedAgentControllerInterfaceReprobe, _ as resolveHeartbeatResponseFrame, _n as listSpaceMemberDirectorySendTargets, _t as resolveComputerFileAccessStorePath, at as sendDispatchInteractionRequestFrame, bt as buildDispatchBootstrapTemplateFacts, c as createDispatchSpaceActionContext, ct as sendDispatchPreviewFrame, d as readDispatchSpaceActionRecord, dt as sendDispatchRuntimeEvidenceFrame, et as flushDispatchResultOutbox, f as supersedeDispatchSpaceActionRecordForReconsideration, fn as getSpaceAccessPassword, ft as sendDispatchToolActivityFrame, g as parseDaemonFrame, gn as isWakeClosingSystemNoticeType, gt as readComputerFileAccessPolicy, it as resolveDispatchResultPayload, l as readDispatchSpaceActionContextForReceiptFromEnv, lt as sendDispatchProgressFrame, m as emitDaemonErrorFrame, nn as buildSpaceRoundSignalPublication, nt as waitForDispatchResultOutboxAcknowledgement, on as createDispatchContinuationSpaceAccessContext, ot as sendDispatchLifecycleFrame, pn as getSpaceAccessRequestContext, pt as emitDaemonDispatchJournalEvent, r as buildDispatchOwnedRuntimeEnv, rt as buildFailedTaskResultPayload, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, st as sendDispatchPreviewEndFrame, tt as listDispatchResultOutboxPendingAcknowledgementKeys, ut as sendDispatchReasoningFrame, v as resolveRegisterResponseFrame, wt as parseDispatchTask, xt as buildDispatchCorrelation, y as sendDaemonFrame, yt as isSameOrDescendantPath } from "./dispatch-owned-runtime-CK2YJ2Oo.js";
12
+ import { C as startDispatchSpaceProgressRelay, D as recordOpenMeldCreatedLocalAgentSession, E as discoverLocalAgentSessionProviders, L as defaultManagedIntegrationPaths, N as registerAgentActivityRoute, R as installAgentActivityIntegrations, S as prepareClaudeProjectContainer, _ as markExecutionContextWorkspaceInUse, a as fetchSpaceUpdates, b as releaseExecutionContextWorkspace, c as materializeOrganizationSkillRelease, i as recordRuntimeReportingSuccess, l as createDispatchSpaceTools, n as recordRuntimeReportingFailure, o as createSpaceWorkingCopies, r as recordRuntimeReportingNotApplicable, s as downloadWorkingCopyFile, v as prepareExecutionContextWorkspace, w as startLocalAgentActivitySyncLoop, x as createLedgerIo, y as readExecutionContextWorkspace } from "./runtime-reporting-health-state-_bvJcV1y.js";
13
+ import { S as CONTROLLED_SHUTDOWN_RESULT_ACK_TIMEOUT_MS, _ as toErrorMessage$2, n as ensureDaemonRuntimePaths, s as emitRunLine, t as buildLedgerPaths, u as normalizeOptionalText$3, v as warnDaemonEvent } from "./daemon-device-id-DDazRZUV.js";
14
+ import { _ as resolvePublicAgentFailureReason, n as SPACE_COLLABORATION_CONTEXT_RULE, r as SPACE_PERSONAL_CONTRIBUTION_RULE, v as resolveSpacePublicationRequirement } from "./dist--TaSMxQz.js";
15
+ import { a as serviceExecutionHostCatalogSchema, i as SERVICE_EXECUTION_HOST_PROTOCOL, t as ExecutionHostError } from "./channel-tvFZSSVr.js";
16
+ import { a as resolveBaseUrl, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig } from "./base-url-0AoeTi3w.js";
17
+ import { t as emitDaemonLifecycleEvent } from "./daemon-lifecycle-journal-CRxQL9m6.js";
18
+ import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, f as buildOpenMeldRequestContextFromProfileIdentity, n as fetchSpaceRequestWithTimeout, t as createCliApiClientFoundation } from "./api-client-foundation-EZpFLGVC.js";
19
+ import { a as submitRuntimeProviderConversationProofs, f as recordRuntimeProviderUsageLimits, i as submitRuntimeAgentControllerReports, l as resolveLocalAgentControllerReportDecision, o as collectLocalAgentControllerInventory, t as notifyRuntimeReportingAttemptObserver, u as probeAgentControllerUsageObservationAuth } from "./runtime-agent-controller-reporting-submission-C_xD2A-P.js";
20
+ import { t as installSkillsToTargets } from "./installer-C7iSAOSz.js";
21
+ import { f as createCliSpaceApi, t as fetchSpaceMeta } from "./meta-api-BpwJWE22.js";
22
22
  import { createHash, randomUUID } from "node:crypto";
23
23
  import { homedir } from "node:os";
24
24
  import { basename, dirname, extname, join } from "node:path";
@@ -2005,6 +2005,21 @@ function buildDispatchPromptTrace(input) {
2005
2005
  };
2006
2006
  }
2007
2007
  //#endregion
2008
+ //#region src/local-service/dispatch/public-progress-stream.ts
2009
+ function createDispatchPublicProgressReporter(input) {
2010
+ const acceptedUpdates = [];
2011
+ const acceptedUpdateSet = /* @__PURE__ */ new Set();
2012
+ return (update) => {
2013
+ const normalized = update.trim();
2014
+ if (acceptedUpdateSet.has(normalized)) return { status: "duplicate" };
2015
+ const progressSnapshot = [...acceptedUpdates, normalized].join("\n\n").slice(-8192);
2016
+ if (!input.publish(progressSnapshot)) return { status: "unavailable" };
2017
+ acceptedUpdateSet.add(normalized);
2018
+ acceptedUpdates.push(normalized);
2019
+ return { status: "accepted" };
2020
+ };
2021
+ }
2022
+ //#endregion
2008
2023
  //#region src/local-service/dispatch/reasoning-stream.ts
2009
2024
  /** Keep private live content outside all lifecycle and journaling observers. */
2010
2025
  function routeReasoningEvents(reasoning, lifecycle) {
@@ -2735,6 +2750,32 @@ async function handleDispatchDeliverFrame(input) {
2735
2750
  });
2736
2751
  const runtimeStartedAtMs = Date.now();
2737
2752
  let agentToolActivitySequence = 0;
2753
+ const reportPublicProgress = createDispatchPublicProgressReporter({ publish: (progressSnapshot) => {
2754
+ const socket = currentSocketRef.socket;
2755
+ if (!socket || (socket.bufferedAmount ?? 0) > 64 * 1024) return false;
2756
+ sendDispatchProgressFrame({
2757
+ socket,
2758
+ progressSnapshot,
2759
+ observedAtMs: Date.now(),
2760
+ sequence: ++agentToolActivitySequence,
2761
+ attemptId: parsedTask.attemptId,
2762
+ dispatchId: parsedTask.dispatchId,
2763
+ daemonSessionId: input.daemonSessionId,
2764
+ connectionGeneration: resolveCurrentConnectionGeneration({
2765
+ currentSocketRef,
2766
+ fallbackConnectionGeneration: input.deliverRequest.connectionGeneration
2767
+ }),
2768
+ executionIdentityEcho: toRuntimeTransportRuntimeEvidenceIdentityEcho(input.deliverRequest),
2769
+ executionTokenEcho: parsedTask.executionTokenEcho,
2770
+ leaseEpoch: input.deliverRequest.leaseEpoch,
2771
+ runtimeCoordinatorExecutionId: parsedTask.runtimeCoordinatorExecutionId,
2772
+ sourceSignalId: parsedTask.sourceEventId,
2773
+ spaceId: parsedTask.spaceId,
2774
+ targetProfileId: parsedTask.targetProfileId,
2775
+ taskId: parsedTask.taskId
2776
+ });
2777
+ return true;
2778
+ } });
2738
2779
  let firstReasoningMs;
2739
2780
  const sendReasoning = (thinkingSnapshot, observedAtMs, status = "streaming") => {
2740
2781
  const socket = currentSocketRef.socket;
@@ -3385,6 +3426,7 @@ async function handleDispatchDeliverFrame(input) {
3385
3426
  onInteractionRequest,
3386
3427
  onNativeTurnStarted,
3387
3428
  onNativeTurnCompleted,
3429
+ onPublicProgress: reportPublicProgress,
3388
3430
  onRuntimeEvent,
3389
3431
  onPreview: (preview) => {
3390
3432
  emitDispatchPreviewFrame({
@@ -4230,14 +4272,15 @@ async function resolveDispatchComputerFileAccess(input) {
4230
4272
  taskWorkspace: input.taskWorkspace,
4231
4273
  workingCopyId: input.parsedTask.workingCopyId
4232
4274
  });
4233
- if (!(await verifier({
4275
+ const verification = await verifier({
4234
4276
  boundary,
4235
4277
  workingDirectory,
4236
4278
  executionMode: "normal",
4237
4279
  agentControllerPermissionMode: input.routeConfig?.agentControllerPermissionMode,
4238
4280
  launchContract: input.routeConfig?.launchContract ?? null,
4239
4281
  transportMode: input.parsedTask.transportMode
4240
- })).supported) throw new Error("execution_context.file_access_unverified");
4282
+ });
4283
+ if (!verification.supported) throw new Error(verification.reasonCode === "computer.file_access.controller_unsupported" && input.routeConfig?.agentControllerPermissionMode === "codex:customConfig" ? "execution_context.custom_config_file_access_unverified" : "execution_context.file_access_unverified");
4241
4284
  return boundary;
4242
4285
  }
4243
4286
  const admission = await resolveComputerFileAccessAdmission({
@@ -5379,10 +5422,19 @@ async function runDispatchRuntimeExecution(input) {
5379
5422
  runtimeControllerSupport: input.runtimeControllerSupport,
5380
5423
  streamingMode: input.streamingModeOverride ?? input.parsedTask.streamingMode
5381
5424
  });
5382
- const spaceActionTools = route.env?.["OPENMELD_SPACE_ACTION_CONTEXT_PATH"] ? createDispatchSpaceTools({ env: {
5425
+ const dispatchRuntimeEnv = {
5383
5426
  ...process.env,
5384
5427
  ...route.env
5385
- } }) : void 0;
5428
+ };
5429
+ const spaceActionTools = route.env?.["OPENMELD_SPACE_ACTION_CONTEXT_PATH"] ? createDispatchSpaceTools({
5430
+ env: dispatchRuntimeEnv,
5431
+ ...input.onPublicProgress ? { reportProgress: input.onPublicProgress } : {}
5432
+ }) : void 0;
5433
+ const progressRelay = input.onPublicProgress && route.env?.["OPENMELD_SPACE_ACTION_CONTEXT_PATH"] ? startDispatchSpaceProgressRelay({
5434
+ context: readDispatchSpaceActionContextForReceiptFromEnv(dispatchRuntimeEnv),
5435
+ contextPath: route.env[OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV],
5436
+ reportProgress: input.onPublicProgress
5437
+ }) : null;
5386
5438
  try {
5387
5439
  await input.onNativeTurnStarted();
5388
5440
  const result = await runRuntimeTask({
@@ -5409,6 +5461,7 @@ async function runDispatchRuntimeExecution(input) {
5409
5461
  input.onNativeTurnCompleted(result);
5410
5462
  return result;
5411
5463
  } finally {
5464
+ await progressRelay?.close();
5412
5465
  spaceActionTools?.close();
5413
5466
  }
5414
5467
  }
@@ -8082,6 +8135,7 @@ async function createExecutionHostResources(input) {
8082
8135
  await interrupt(signal);
8083
8136
  },
8084
8137
  registerRuntimeProcess: (event) => {
8138
+ input.observeOwnedProcess?.(event);
8085
8139
  const processId = event.phase === "process_exit" ? null : event.processId;
8086
8140
  const updated = inflightTaskControlRegistry.updateTaskProcess({
8087
8141
  processId,
@@ -8587,4 +8641,4 @@ function createExecutionHostRuntime(input) {
8587
8641
  //#endregion
8588
8642
  export { createExecutionHostResources, createExecutionHostRuntime };
8589
8643
 
8590
- //# sourceMappingURL=runtime-ZLBVtFFY.js.map
8644
+ //# sourceMappingURL=runtime-DFlEdls4.js.map