openmeld 0.3.254 → 0.3.255
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-me-membership-DuLYJgUD.js → add-me-membership-D4LqDjKg.js} +2 -2
- package/dist/{add-me-membership-DuLYJgUD.js.map → add-me-membership-D4LqDjKg.js.map} +1 -1
- package/dist/{agents-DxZHFdXn.js → agents-CaXKShmK.js} +13 -13
- package/dist/{agents-DxZHFdXn.js.map → agents-CaXKShmK.js.map} +1 -1
- package/dist/{api-client-foundation-CPF0nXbH.js → api-client-foundation-IQugghjb.js} +4 -4
- package/dist/{api-client-foundation-CPF0nXbH.js.map → api-client-foundation-IQugghjb.js.map} +1 -1
- package/dist/{api-client-foundation-BEg5W5r1.js → api-client-foundation-W_IU_yEx.js} +1 -1
- package/dist/auth-session-BQyoodFm.js +4 -0
- package/dist/{auth-session-C1QlGOT-.js → auth-session-BdAItAyB.js} +5 -5
- package/dist/{auth-session-C1QlGOT-.js.map → auth-session-BdAItAyB.js.map} +1 -1
- package/dist/{auth-url-B5qYMJO_.js → auth-url-COLYXh_s.js} +2 -2
- package/dist/{auth-url-B5qYMJO_.js.map → auth-url-COLYXh_s.js.map} +1 -1
- package/dist/{base-url-gA1mPiKc.js → base-url-DCUxssQz.js} +1 -1
- package/dist/{base-url-BUHbVXb3.js → base-url-DRxlYvp_.js} +3 -3
- package/dist/{base-url-BUHbVXb3.js.map → base-url-DRxlYvp_.js.map} +1 -1
- package/dist/{channel-BUrgmtp1.js → channel-DXZro9KR.js} +2 -2
- package/dist/{channel-BUrgmtp1.js.map → channel-DXZro9KR.js.map} +1 -1
- package/dist/{cloud-computer-ZO4Y_XSQ.js → cloud-computer-CK2PIWoO.js} +6 -6
- package/dist/{cloud-computer-ZO4Y_XSQ.js.map → cloud-computer-CK2PIWoO.js.map} +1 -1
- package/dist/{command-CvHpanAE.js → command-DPrAKRIF.js} +17 -17
- package/dist/{command-CvHpanAE.js.map → command-DPrAKRIF.js.map} +1 -1
- package/dist/{computer-connection-review-CcOpaXuG.js → computer-connection-review-CCjlShNF.js} +6 -6
- package/dist/{computer-connection-review-CcOpaXuG.js.map → computer-connection-review-CCjlShNF.js.map} +1 -1
- package/dist/{computer-disconnect-DhUhwPXH.js → computer-disconnect-C7GiBynE.js} +9 -9
- package/dist/{computer-disconnect-DhUhwPXH.js.map → computer-disconnect-C7GiBynE.js.map} +1 -1
- package/dist/{computer-setup-continuation-DdbcZczm.js → computer-setup-continuation-ri4gskwX.js} +3 -3
- package/dist/{computer-setup-continuation-DdbcZczm.js.map → computer-setup-continuation-ri4gskwX.js.map} +1 -1
- package/dist/{context-CuCerz9H.js → context-BEC44g6x.js} +7 -7
- package/dist/{context-CuCerz9H.js.map → context-BEC44g6x.js.map} +1 -1
- package/dist/{daemon-device-id-D9V35Y8G.js → daemon-device-id-BC4Rh0Es.js} +4 -4
- package/dist/{daemon-device-id-D9V35Y8G.js.map → daemon-device-id-BC4Rh0Es.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-CUhIcQCC.js → daemon-lifecycle-journal-BSNIcKyb.js} +5 -5
- package/dist/{daemon-lifecycle-journal-CUhIcQCC.js.map → daemon-lifecycle-journal-BSNIcKyb.js.map} +1 -1
- package/dist/{daemon-runtime-lease-WHFY3-dd.js → daemon-runtime-lease-BJtsZuxP.js} +1 -1
- package/dist/{daemon-runtime-lease-Cz48mBXh.js → daemon-runtime-lease-D1OofUWa.js} +3 -3
- package/dist/{daemon-runtime-lease-Cz48mBXh.js.map → daemon-runtime-lease-D1OofUWa.js.map} +1 -1
- package/dist/{daemon-service-contract-Ab9x7DQh.js → daemon-service-contract-C-UUgJPA.js} +3 -3
- package/dist/{daemon-service-contract-Ab9x7DQh.js.map → daemon-service-contract-C-UUgJPA.js.map} +1 -1
- package/dist/{daemon-service-manager-CB78d5SA.js → daemon-service-manager-DN4PjrBi.js} +5 -5
- package/dist/{daemon-service-manager-CB78d5SA.js.map → daemon-service-manager-DN4PjrBi.js.map} +1 -1
- package/dist/{daemon-service-manager-BAo7kulx.js → daemon-service-manager-S4Ji57ib.js} +1 -1
- package/dist/{daemon-service-runtime-DDfld-8y.js → daemon-service-runtime-n-aqN9OF.js} +14 -14
- package/dist/{daemon-service-runtime-DDfld-8y.js.map → daemon-service-runtime-n-aqN9OF.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-C7GvL6y0.js → daemon-service-update-coordinator-DfMVTyth.js} +20 -20
- package/dist/{daemon-service-update-coordinator-C7GvL6y0.js.map → daemon-service-update-coordinator-DfMVTyth.js.map} +1 -1
- package/dist/{daemon-state-BHmahVmK.js → daemon-state-CpJ1iJF9.js} +3 -3
- package/dist/{daemon-state-BHmahVmK.js.map → daemon-state-CpJ1iJF9.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-D_S7zy21.js → dispatch-owned-runtime-CMJkBNAQ.js} +10 -10
- package/dist/{dispatch-owned-runtime-D_S7zy21.js.map → dispatch-owned-runtime-CMJkBNAQ.js.map} +1 -1
- package/dist/{dist-BvGnlYhy.js → dist-Bn5dP-sF.js} +28 -5
- package/dist/dist-Bn5dP-sF.js.map +1 -0
- package/dist/{dist-QI2-yvvy.js → dist-C-rQ8sd1.js} +1 -1
- package/dist/dist-DDDUvhVp.js +4 -0
- package/dist/{dist-DuAsT5Uv.js → dist-DIw8yJxL.js} +2 -2
- package/dist/{dist-DuAsT5Uv.js.map → dist-DIw8yJxL.js.map} +1 -1
- package/dist/{dual-view-guide-catalog-Bwl2JU77.js → dual-view-guide-catalog-4C6kyFrW.js} +3 -3
- package/dist/{dual-view-guide-catalog-Bwl2JU77.js.map → dual-view-guide-catalog-4C6kyFrW.js.map} +1 -1
- package/dist/{elapsed-time-EN_F3k88.js → elapsed-time-BSg4Kl1k.js} +4 -4
- package/dist/{elapsed-time-EN_F3k88.js.map → elapsed-time-BSg4Kl1k.js.map} +1 -1
- package/dist/{entry-qp30qZLc.js → entry-BpREVrXJ.js} +12 -12
- package/dist/{entry-qp30qZLc.js.map → entry-BpREVrXJ.js.map} +1 -1
- package/dist/{installation-inventory--ux3wRf5.js → installation-inventory-R_cnrDX2.js} +4 -4
- package/dist/{installation-inventory--ux3wRf5.js.map → installation-inventory-R_cnrDX2.js.map} +1 -1
- package/dist/{installer-BN7gvBue.js → installer-BbU7x9jH.js} +2 -2
- package/dist/{installer-BN7gvBue.js.map → installer-BbU7x9jH.js.map} +1 -1
- package/dist/{lock-anKblZEb.js → lock-CTsTGDK5.js} +3 -3
- package/dist/{lock-anKblZEb.js.map → lock-CTsTGDK5.js.map} +1 -1
- package/dist/{meta-api-m1Wxrftk.js → meta-api-CT94Ce82.js} +7 -7
- package/dist/{meta-api-m1Wxrftk.js.map → meta-api-CT94Ce82.js.map} +1 -1
- package/dist/{openmeld-D8f6YPac.js → openmeld-CO1Bg3pa.js} +39 -39
- package/dist/{openmeld-D8f6YPac.js.map → openmeld-CO1Bg3pa.js.map} +1 -1
- package/dist/{openmeld-dev-environment-DoOqw488.js → openmeld-dev-environment-BmjrczzT.js} +3 -3
- package/dist/{openmeld-dev-environment-DoOqw488.js.map → openmeld-dev-environment-BmjrczzT.js.map} +1 -1
- package/dist/openmeld-dev.js +1 -1
- package/dist/{openmeld-environment-target-Cv3uIT4I.js → openmeld-environment-target-D4omdAWm.js} +3 -3
- package/dist/{openmeld-environment-target-Cv3uIT4I.js.map → openmeld-environment-target-D4omdAWm.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-vYtuiCUl.js → openmeld-maintenance-worker-9NseIYMI.js} +14 -14
- package/dist/{openmeld-maintenance-worker-vYtuiCUl.js.map → openmeld-maintenance-worker-9NseIYMI.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-CJUV243X.js → openmeld-tools-update-join-C03U4DpW.js} +4 -4
- package/dist/{openmeld-tools-update-join-CJUV243X.js.map → openmeld-tools-update-join-C03U4DpW.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-gQxz8eyk.js → openmeld-tools-update-process-frame-Bftc9hhf.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-gQxz8eyk.js.map → openmeld-tools-update-process-frame-Bftc9hhf.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-VsOsal5C.js → openmeld-tools-update-process-frame-BzOpetIU.js} +1 -1
- package/dist/openmeld.js +7 -7
- package/dist/{prepare-provider-runtime-D9d7PN7P.js → prepare-provider-runtime-8LN1Vkl9.js} +16 -16
- package/dist/{prepare-provider-runtime-D9d7PN7P.js.map → prepare-provider-runtime-8LN1Vkl9.js.map} +1 -1
- package/dist/{prepare-session-executor-TS55wAl6.js → prepare-session-executor-B2LKxCSD.js} +25 -25
- package/dist/{prepare-session-executor-TS55wAl6.js.map → prepare-session-executor-B2LKxCSD.js.map} +1 -1
- package/dist/{process-channel-B5adCeDd.js → process-channel-Bk6fvbgU.js} +2 -2
- package/dist/{process-channel-B5adCeDd.js.map → process-channel-Bk6fvbgU.js.map} +1 -1
- package/dist/{process-identity-CLoTVpHt.js → process-identity-QLkKdm7C.js} +2 -2
- package/dist/{process-identity-CLoTVpHt.js.map → process-identity-QLkKdm7C.js.map} +1 -1
- package/dist/{runtime-D04xLceb.js → runtime-BCepNsti.js} +17 -17
- package/dist/{runtime-D04xLceb.js.map → runtime-BCepNsti.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-CZ0Px7ji.js → runtime-agent-controller-reporting-submission-Dg1-4Io3.js} +9 -9
- package/dist/{runtime-agent-controller-reporting-submission-CZ0Px7ji.js.map → runtime-agent-controller-reporting-submission-Dg1-4Io3.js.map} +1 -1
- package/dist/{service-COlB2A9y.js → service-9uslzxXY.js} +30 -30
- package/dist/{service-COlB2A9y.js.map → service-9uslzxXY.js.map} +1 -1
- package/dist/{service-account-authorization-CmN8zEW6.js → service-account-authorization-BCNKSqgz.js} +5 -5
- package/dist/{service-account-authorization-CmN8zEW6.js.map → service-account-authorization-BCNKSqgz.js.map} +1 -1
- package/dist/{service-account-control-Ddu-GY7r.js → service-account-control-BpQRqap6.js} +15 -15
- package/dist/{service-account-control-Ddu-GY7r.js.map → service-account-control-BpQRqap6.js.map} +1 -1
- package/dist/{service-control-capabilities-DZhPHrpC.js → service-control-capabilities-CtAsORKy.js} +1 -1
- package/dist/{service-control-capabilities-0rXZMj_g.js → service-control-capabilities-yE6nD91T.js} +6 -6
- package/dist/{service-control-capabilities-0rXZMj_g.js.map → service-control-capabilities-yE6nD91T.js.map} +1 -1
- package/dist/{service-control-carrier-capability-D0AixLdI.js → service-control-carrier-capability-DYoU1FkR.js} +3 -3
- package/dist/{service-control-carrier-capability-D0AixLdI.js.map → service-control-carrier-capability-DYoU1FkR.js.map} +1 -1
- package/dist/{state-dDgMns5H.js → state-C2oIplb_.js} +3 -3
- package/dist/{state-dDgMns5H.js.map → state-C2oIplb_.js.map} +1 -1
- package/dist/{updates-api-Cgei9u7C.js → updates-api-BveNpigg.js} +14 -14
- package/dist/{updates-api-Cgei9u7C.js.map → updates-api-BveNpigg.js.map} +1 -1
- package/dist/upgrade-C8Y9ecL5.js +4 -0
- package/dist/{upgrade-DOWGG5vs.js → upgrade-DPBhf5HX.js} +9 -9
- package/dist/{upgrade-DOWGG5vs.js.map → upgrade-DPBhf5HX.js.map} +1 -1
- package/dist/{windows-managed-install-Ci7VP4U-.js → windows-managed-install-BuM0Oz0r.js} +2 -2
- package/dist/{windows-managed-install-Ci7VP4U-.js.map → windows-managed-install-BuM0Oz0r.js.map} +1 -1
- package/dist/{windows-preview-channel-5Bbmxzrc.js → windows-preview-channel-D6K0RPUY.js} +3 -3
- package/dist/{windows-preview-channel-5Bbmxzrc.js.map → windows-preview-channel-D6K0RPUY.js.map} +1 -1
- package/dist/{windows-task-command-D3NzNfjC.js → windows-task-command-DoV4UQCe.js} +2 -2
- package/dist/{windows-task-command-D3NzNfjC.js.map → windows-task-command-DoV4UQCe.js.map} +1 -1
- package/dist/{windows-task-entry-BhpUcj36.js → windows-task-entry-BUwpQZin.js} +3 -3
- package/dist/{windows-task-entry-BhpUcj36.js.map → windows-task-entry-BUwpQZin.js.map} +1 -1
- package/dist/{windows-user-task-BkwJAIlf.js → windows-user-task-7wwaXVwf.js} +6 -6
- package/dist/{windows-user-task-BkwJAIlf.js.map → windows-user-task-7wwaXVwf.js.map} +1 -1
- package/dist/{windows-user-task-DFNOQ9pw.js → windows-user-task-CWLd5IO1.js} +1 -1
- package/package.json +11 -11
- package/dist/auth-session-BjkIIzIz.js +0 -4
- package/dist/dist-BvGnlYhy.js.map +0 -1
- package/dist/dist-DdS110I0.js +0 -4
- package/dist/upgrade-LU1sa_6_.js +0 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { t as ExecutionHostError } from "./channel-
|
|
3
|
+
import { t as ExecutionHostError } from "./channel-DXZro9KR.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-
|
|
64
|
+
//# sourceMappingURL=process-channel-Bk6fvbgU.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-channel-
|
|
1
|
+
{"version":3,"file":"process-channel-Bk6fvbgU.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 {
|
|
3
|
+
import { XP as WINDOWS_PROCESS_HELPER_FILENAME, ja as windowsNativeProcessRequestSchema } from "./dist-Bn5dP-sF.js";
|
|
4
4
|
import { n as normalizeCommandEnvironment } from "./process-environment-BWSFeUu6.js";
|
|
5
5
|
import { win32 } from "node:path";
|
|
6
6
|
import { execFile, execFileSync } from "node:child_process";
|
|
@@ -155,4 +155,4 @@ function isNodeError(error, code) {
|
|
|
155
155
|
//#endregion
|
|
156
156
|
export { activateWindowsManagedCommand as a, readWindowsProcessStartFileTime as c, resolveWindowsNativeProcessHelper as d, readProcessStartIdentity as i, resolveWindowsPowerShellPath as l, isPreciseProcessStartIdentity as n, powerShellEncodedArguments as o, isProcessIdentityAlive as r, pruneWindowsBinaryBundle as s, CURRENT_PROCESS_START_IDENTITY as t, WINDOWS_NATIVE_PROCESS_REQUEST_ENV as u };
|
|
157
157
|
|
|
158
|
-
//# sourceMappingURL=process-identity-
|
|
158
|
+
//# sourceMappingURL=process-identity-QLkKdm7C.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process-identity-CLoTVpHt.js","names":[],"sources":["../../../runtime/adapters/core/dist/windows-native-process.js","../../../runtime/adapters/core/dist/windows-system.js","../src/system/process-identity.ts"],"sourcesContent":["import { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { WINDOWS_PROCESS_HELPER_FILENAME } from \"@openmeld/schemas\";\nexport const WINDOWS_NATIVE_PROCESS_REQUEST_ENV = \"OPENMELD_NATIVE_JOB_REQUEST\";\nexport function resolveWindowsNativeProcessHelper() {\n const binary = typeof __OPENMELD_DISTRIBUTION__ !== \"undefined\" &&\n __OPENMELD_DISTRIBUTION__ === \"binary\";\n return binary\n ? join(dirname(process.execPath), WINDOWS_PROCESS_HELPER_FILENAME)\n : fileURLToPath(\n // Both src/ (workspace tests) and dist/ (installed code) share this\n // package-owned build output. Never search another installation.\n new URL(`../dist/windows/${WINDOWS_PROCESS_HELPER_FILENAME}`, import.meta.url));\n}\n","import { execFile, execFileSync } from \"node:child_process\";\nimport { win32 } from \"node:path\";\nimport { promisify } from \"node:util\";\nimport { windowsNativeProcessRequestSchema } from \"@openmeld/schemas\";\nimport { normalizeCommandEnvironment } from \"./process-environment.js\";\nimport { resolveWindowsNativeProcessHelper, WINDOWS_NATIVE_PROCESS_REQUEST_ENV, } from \"./windows-native-process.js\";\nexport function resolveWindowsPowerShellPath(env = process.env) {\n const source = normalizeCommandEnvironment(env, \"win32\");\n const root = source.SystemRoot ?? source.WINDIR;\n if (!(root && win32.isAbsolute(root))) {\n throw new Error(\"Windows system directory is unavailable.\");\n }\n return win32.join(root, \"System32\", \"WindowsPowerShell\", \"v1.0\", \"powershell.exe\");\n}\nexport function powerShellEncodedArguments(script) {\n return [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-EncodedCommand\",\n Buffer.from(script, \"utf16le\").toString(\"base64\"),\n ];\n}\nconst FILE_TIME_PATTERN = /^\\d{10,20}$/u;\n// Keep native identity reads bounded; an unavailable identity fails admission.\nconst PROCESS_IDENTITY_TIMEOUT_MS = 15_000;\nlet currentProcessFileTime;\nexport async function activateWindowsManagedCommand(binDirectory) {\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"activate-managed-command\",\n binDirectory,\n });\n const { stdout } = await promisify(execFile)(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: 15_000,\n maxBuffer: 4096,\n });\n const result = stdout.trim();\n if (result !== \"activated\" && result !== \"already_active\") {\n throw new Error(\"Windows returned an invalid command activation receipt.\");\n }\n return result;\n}\n/** Kernel sharing rules keep a live CLI and its helper together during pruning. */\nexport async function pruneWindowsBinaryBundle(directory) {\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"prune-binary-bundle\",\n directory,\n });\n const { stdout } = await promisify(execFile)(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: 15_000,\n maxBuffer: 4096,\n });\n const result = stdout.trim();\n if (result !== \"removed\" &&\n result !== \"absent\" &&\n result !== \"in_use\" &&\n result !== \"unrecognized\") {\n throw new Error(\"Windows returned an invalid managed-version cleanup receipt.\");\n }\n return result;\n}\n/** An opened process handle binds the observation to the actual instance, not a reused PID. */\nexport function readWindowsProcessStartFileTime(pid) {\n if (!(Number.isSafeInteger(pid) && pid > 0)) {\n return null;\n }\n if (pid === process.pid && currentProcessFileTime) {\n return currentProcessFileTime;\n }\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"identity\",\n pid,\n });\n try {\n const output = execFileSync(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: PROCESS_IDENTITY_TIMEOUT_MS,\n maxBuffer: 1024,\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n }).trim();\n if (!FILE_TIME_PATTERN.test(output)) {\n return null;\n }\n if (pid === process.pid) {\n currentProcessFileTime = output;\n }\n return output;\n }\n catch {\n return null;\n }\n}\n","import { execFileSync } from \"node:child_process\";\nimport { readWindowsProcessStartFileTime } from \"@openmeld/adapter-core/windows-system\";\n\nconst WINDOWS_PROCESS_IDENTITY_PATTERN = /^win32:\\d{10,20}$/u;\n\nexport function isPreciseProcessStartIdentity(value: unknown): value is string {\n return (\n typeof value === \"string\" &&\n ((value.startsWith(\"ps:\") && value.length > 3) ||\n WINDOWS_PROCESS_IDENTITY_PATTERN.test(value))\n );\n}\n\nexport const CURRENT_PROCESS_START_IDENTITY =\n readProcessStartIdentity(process.pid) ??\n `fallback:${process.pid}:${Math.floor(Date.now() - process.uptime() * 1000)}`;\n\nexport function isProcessIdentityAlive(\n input: { ownerPid: number; ownerProcessStartedAt: string },\n platform: NodeJS.Platform = process.platform\n): boolean {\n if (!isProcessAlive(input.ownerPid)) {\n return false;\n }\n const observedIdentity = readProcessStartIdentity(input.ownerPid, platform);\n if (\n isPreciseProcessStartIdentity(observedIdentity) &&\n isPreciseProcessStartIdentity(input.ownerProcessStartedAt) &&\n observedIdentity.split(\":\", 1)[0] ===\n input.ownerProcessStartedAt.split(\":\", 1)[0]\n ) {\n return observedIdentity === input.ownerProcessStartedAt;\n }\n // Fail closed when a live process cannot be identified precisely. A caller\n // may recover only after it can prove that the transition owner has exited.\n return true;\n}\n\nexport function readProcessStartIdentity(\n pid: number,\n platform: NodeJS.Platform = process.platform\n): string | null {\n if (!(Number.isSafeInteger(pid) && pid > 0)) {\n return null;\n }\n if (platform === \"win32\") {\n const created = readWindowsProcessStartFileTime(pid);\n return created === null ? null : `win32:${created}`;\n }\n try {\n const output = execFileSync(\"ps\", [\"-o\", \"lstart=\", \"-p\", String(pid)], {\n encoding: \"utf8\",\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n timeout: 1000,\n windowsHide: true,\n }).trim();\n return output.length > 0 ? `ps:${output}` : null;\n } catch {\n return null;\n }\n}\n\nfunction isProcessAlive(pid: number): boolean {\n try {\n process.kill(pid, 0);\n return true;\n } catch (error) {\n return !isNodeError(error, \"ESRCH\");\n }\n}\n\nfunction isNodeError(error: unknown, code: string): boolean {\n return (\n error instanceof Error && \"code\" in error && String(error.code) === code\n );\n}\n"],"mappings":";;;;;;;;;AAGA,MAAa,qCAAqC;AAClD,SAAgB,oCAAoC;CAGhD,OAEM,cAGF,IAAI,IAAI,mBAAmB,mCAAmC,OAAO,KAAK,GAAG,CAAC;AACtF;;;ACPA,SAAgB,6BAA6B,MAAM,QAAQ,KAAK;CAC5D,MAAM,SAAS,4BAA4B,KAAK,OAAO;CACvD,MAAM,OAAO,OAAO,cAAc,OAAO;CACzC,IAAI,EAAE,QAAQ,MAAM,WAAW,IAAI,IAC/B,MAAM,IAAI,MAAM,0CAA0C;CAE9D,OAAO,MAAM,KAAK,MAAM,YAAY,qBAAqB,QAAQ,gBAAgB;AACrF;AACA,SAAgB,2BAA2B,QAAQ;CAC/C,OAAO;EACH;EACA;EACA;EACA;EACA,OAAO,KAAK,QAAQ,SAAS,CAAC,CAAC,SAAS,QAAQ;CACpD;AACJ;AACA,MAAM,oBAAoB;AAE1B,MAAM,8BAA8B;AACpC,IAAI;AACJ,eAAsB,8BAA8B,cAAc;CAC9D,MAAM,UAAU,kCAAkC,MAAM;EACpD,WAAW;EACX;CAC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C,CAAC,KAAK;EACR,OAAO,OAAO,SAAS,IAAI,MAAM,WAAW;CAC9C,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAS,eAAe,KAAsB;CAC5C,IAAI;EACF,QAAQ,KAAK,KAAK,CAAC;EACnB,OAAO;CACT,SAAS,OAAO;EACd,OAAO,CAAC,YAAY,OAAO,OAAO;CACpC;AACF;AAEA,SAAS,YAAY,OAAgB,MAAuB;CAC1D,OACE,iBAAiB,SAAS,UAAU,SAAS,OAAO,MAAM,IAAI,MAAM;AAExE"}
|
|
1
|
+
{"version":3,"file":"process-identity-QLkKdm7C.js","names":[],"sources":["../../../runtime/adapters/core/dist/windows-native-process.js","../../../runtime/adapters/core/dist/windows-system.js","../src/system/process-identity.ts"],"sourcesContent":["import { dirname, join } from \"node:path\";\nimport { fileURLToPath } from \"node:url\";\nimport { WINDOWS_PROCESS_HELPER_FILENAME } from \"@openmeld/schemas\";\nexport const WINDOWS_NATIVE_PROCESS_REQUEST_ENV = \"OPENMELD_NATIVE_JOB_REQUEST\";\nexport function resolveWindowsNativeProcessHelper() {\n const binary = typeof __OPENMELD_DISTRIBUTION__ !== \"undefined\" &&\n __OPENMELD_DISTRIBUTION__ === \"binary\";\n return binary\n ? join(dirname(process.execPath), WINDOWS_PROCESS_HELPER_FILENAME)\n : fileURLToPath(\n // Both src/ (workspace tests) and dist/ (installed code) share this\n // package-owned build output. Never search another installation.\n new URL(`../dist/windows/${WINDOWS_PROCESS_HELPER_FILENAME}`, import.meta.url));\n}\n","import { execFile, execFileSync } from \"node:child_process\";\nimport { win32 } from \"node:path\";\nimport { promisify } from \"node:util\";\nimport { windowsNativeProcessRequestSchema } from \"@openmeld/schemas\";\nimport { normalizeCommandEnvironment } from \"./process-environment.js\";\nimport { resolveWindowsNativeProcessHelper, WINDOWS_NATIVE_PROCESS_REQUEST_ENV, } from \"./windows-native-process.js\";\nexport function resolveWindowsPowerShellPath(env = process.env) {\n const source = normalizeCommandEnvironment(env, \"win32\");\n const root = source.SystemRoot ?? source.WINDIR;\n if (!(root && win32.isAbsolute(root))) {\n throw new Error(\"Windows system directory is unavailable.\");\n }\n return win32.join(root, \"System32\", \"WindowsPowerShell\", \"v1.0\", \"powershell.exe\");\n}\nexport function powerShellEncodedArguments(script) {\n return [\n \"-NoLogo\",\n \"-NoProfile\",\n \"-NonInteractive\",\n \"-EncodedCommand\",\n Buffer.from(script, \"utf16le\").toString(\"base64\"),\n ];\n}\nconst FILE_TIME_PATTERN = /^\\d{10,20}$/u;\n// Keep native identity reads bounded; an unavailable identity fails admission.\nconst PROCESS_IDENTITY_TIMEOUT_MS = 15_000;\nlet currentProcessFileTime;\nexport async function activateWindowsManagedCommand(binDirectory) {\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"activate-managed-command\",\n binDirectory,\n });\n const { stdout } = await promisify(execFile)(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: 15_000,\n maxBuffer: 4096,\n });\n const result = stdout.trim();\n if (result !== \"activated\" && result !== \"already_active\") {\n throw new Error(\"Windows returned an invalid command activation receipt.\");\n }\n return result;\n}\n/** Kernel sharing rules keep a live CLI and its helper together during pruning. */\nexport async function pruneWindowsBinaryBundle(directory) {\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"prune-binary-bundle\",\n directory,\n });\n const { stdout } = await promisify(execFile)(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: 15_000,\n maxBuffer: 4096,\n });\n const result = stdout.trim();\n if (result !== \"removed\" &&\n result !== \"absent\" &&\n result !== \"in_use\" &&\n result !== \"unrecognized\") {\n throw new Error(\"Windows returned an invalid managed-version cleanup receipt.\");\n }\n return result;\n}\n/** An opened process handle binds the observation to the actual instance, not a reused PID. */\nexport function readWindowsProcessStartFileTime(pid) {\n if (!(Number.isSafeInteger(pid) && pid > 0)) {\n return null;\n }\n if (pid === process.pid && currentProcessFileTime) {\n return currentProcessFileTime;\n }\n const request = windowsNativeProcessRequestSchema.parse({\n operation: \"identity\",\n pid,\n });\n try {\n const output = execFileSync(resolveWindowsNativeProcessHelper(), [], {\n env: {\n ...process.env,\n [WINDOWS_NATIVE_PROCESS_REQUEST_ENV]: Buffer.from(JSON.stringify(request), \"utf8\").toString(\"base64\"),\n },\n encoding: \"utf8\",\n windowsHide: true,\n timeout: PROCESS_IDENTITY_TIMEOUT_MS,\n maxBuffer: 1024,\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n }).trim();\n if (!FILE_TIME_PATTERN.test(output)) {\n return null;\n }\n if (pid === process.pid) {\n currentProcessFileTime = output;\n }\n return output;\n }\n catch {\n return null;\n }\n}\n","import { execFileSync } from \"node:child_process\";\nimport { readWindowsProcessStartFileTime } from \"@openmeld/adapter-core/windows-system\";\n\nconst WINDOWS_PROCESS_IDENTITY_PATTERN = /^win32:\\d{10,20}$/u;\n\nexport function isPreciseProcessStartIdentity(value: unknown): value is string {\n return (\n typeof value === \"string\" &&\n ((value.startsWith(\"ps:\") && value.length > 3) ||\n WINDOWS_PROCESS_IDENTITY_PATTERN.test(value))\n );\n}\n\nexport const CURRENT_PROCESS_START_IDENTITY =\n readProcessStartIdentity(process.pid) ??\n `fallback:${process.pid}:${Math.floor(Date.now() - process.uptime() * 1000)}`;\n\nexport function isProcessIdentityAlive(\n input: { ownerPid: number; ownerProcessStartedAt: string },\n platform: NodeJS.Platform = process.platform\n): boolean {\n if (!isProcessAlive(input.ownerPid)) {\n return false;\n }\n const observedIdentity = readProcessStartIdentity(input.ownerPid, platform);\n if (\n isPreciseProcessStartIdentity(observedIdentity) &&\n isPreciseProcessStartIdentity(input.ownerProcessStartedAt) &&\n observedIdentity.split(\":\", 1)[0] ===\n input.ownerProcessStartedAt.split(\":\", 1)[0]\n ) {\n return observedIdentity === input.ownerProcessStartedAt;\n }\n // Fail closed when a live process cannot be identified precisely. A caller\n // may recover only after it can prove that the transition owner has exited.\n return true;\n}\n\nexport function readProcessStartIdentity(\n pid: number,\n platform: NodeJS.Platform = process.platform\n): string | null {\n if (!(Number.isSafeInteger(pid) && pid > 0)) {\n return null;\n }\n if (platform === \"win32\") {\n const created = readWindowsProcessStartFileTime(pid);\n return created === null ? null : `win32:${created}`;\n }\n try {\n const output = execFileSync(\"ps\", [\"-o\", \"lstart=\", \"-p\", String(pid)], {\n encoding: \"utf8\",\n stdio: [\"ignore\", \"pipe\", \"ignore\"],\n timeout: 1000,\n windowsHide: true,\n }).trim();\n return output.length > 0 ? `ps:${output}` : null;\n } catch {\n return null;\n }\n}\n\nfunction isProcessAlive(pid: number): boolean {\n try {\n process.kill(pid, 0);\n return true;\n } catch (error) {\n return !isNodeError(error, \"ESRCH\");\n }\n}\n\nfunction isNodeError(error: unknown, code: string): boolean {\n return (\n error instanceof Error && \"code\" in error && String(error.code) === code\n );\n}\n"],"mappings":";;;;;;;;;AAGA,MAAa,qCAAqC;AAClD,SAAgB,oCAAoC;CAGhD,OAEM,cAGF,IAAI,IAAI,mBAAmB,mCAAmC,OAAO,KAAK,GAAG,CAAC;AACtF;;;ACPA,SAAgB,6BAA6B,MAAM,QAAQ,KAAK;CAC5D,MAAM,SAAS,4BAA4B,KAAK,OAAO;CACvD,MAAM,OAAO,OAAO,cAAc,OAAO;CACzC,IAAI,EAAE,QAAQ,MAAM,WAAW,IAAI,IAC/B,MAAM,IAAI,MAAM,0CAA0C;CAE9D,OAAO,MAAM,KAAK,MAAM,YAAY,qBAAqB,QAAQ,gBAAgB;AACrF;AACA,SAAgB,2BAA2B,QAAQ;CAC/C,OAAO;EACH;EACA;EACA;EACA;EACA,OAAO,KAAK,QAAQ,SAAS,CAAC,CAAC,SAAS,QAAQ;CAC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a,MAAM;GAAC;GAAM;GAAW;GAAM,OAAO,GAAG;EAAC,GAAG;GACtE,UAAU;GACV,OAAO;IAAC;IAAU;IAAQ;GAAQ;GAClC,SAAS;GACT,aAAa;EACf,CAAC,CAAC,CAAC,KAAK;EACR,OAAO,OAAO,SAAS,IAAI,MAAM,WAAW;CAC9C,QAAQ;EACN,OAAO;CACT;AACF;AAEA,SAAS,eAAe,KAAsB;CAC5C,IAAI;EACF,QAAQ,KAAK,KAAK,CAAC;EACnB,OAAO;CACT,SAAS,OAAO;EACd,OAAO,CAAC,YAAY,OAAO,OAAO;CACpC;AACF;AAEA,SAAS,YAAY,OAAgB,MAAuB;CAC1D,OACE,iBAAiB,SAAS,UAAU,SAAS,OAAO,MAAM,IAAI,MAAM;AAExE"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $n as buildAgentContextLookupKey, $t as normalizeDispatchPostMessageAction, Ar as renderTaskKnowledgeIndex, Bn as buildRuntimeWorkspaceFingerprint, Cn as resolveCodexTimeoutMs, Dn as resolveCodexAppServerCompletedTurn, E as resolveProfileWorkspaceRuntime, Gn as removeConversationExecutionState, H as setAgentRegistrationEnabled, Hn as appendLedgerHistoryEntry, Ht as createRouteCatalogFromMutableState, Jn as settleInflightTask, Jt as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, Kn as resolveConversationExecutionStateByLookupKey, Kt as normalizeDispatchThreadAction, L as manageAgentRegistrationInstallation, On as verifyCodexAppServerThread, Q as canManageRegistryAgentSkillTargets, Qn as assertLegacyAgentContextAssociation, Rn as DaemonServiceRunError, Rr as supportsSpaceWorkHandoff, Tn as forkCodexAppServerThread, Un as commitResolvedAgentContext, Ut as replaceMutableRouteCatalogState, Vn as buildTaskResultEnvelope, Vt as createMutableRouteCatalogState, Wn as loadLedgerState, Xn as withLedgerStateTransaction, Yn as upsertConversationExecutionState, Yt as SPACE_ACTION_TARGET_GUIDANCE_LINES, Zt as createSerialAgentInteractionCallback, _ as loadDaemonRouteCatalog, a as buildOpenClawSpaceSessionKey, an as createInflightTaskControlRegistry, b as resolveLocalController, cn as resolveCompatibleAgentContextMatch, cr as DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV, dr as TASK_KNOWLEDGE_GUIDANCE, en as createPendingAgentInteractionRegistry, et as resolveSkillsAgentRegistry, fn as createLocalAdapterContainer, ft as listProjectBindings, g as writeDaemonRouteCatalogCache, gn as forkOpenCodeServerSession, h as readDaemonRouteCatalogCache, in as createLocalExecutionSlots, kt as resolveRegistryRuntimeAdapterContractByAgentControllerRef, ln as resolveCompatibleConversationExecutionState, nn as createLocalTaskInterruptSender, nt as resolveBuiltinAgentControllerDefinition, o as normalizeOpenClawSpaceIdPrefix, on as resolveDispatchQueueLogMeta, pn as createLocalAdapterEntries, pt as listProjectConnectionsWithStatus, qn as seedLegacyAgentContext, qt as syncRuntimeEventToInflightTaskControlRegistry, s as slugifyOpenClawNamePart, sn as resolveDispatchContinuityObservation, t as prepareProviderRuntime, tn as mergeOpenClawGatewayVisibility, un as resolveLatestScopedConversationExecutionState, ur as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, v as buildRuntimeRouteTargets, vn as resolveInstalledOpenCodeLaunchCandidates, w as resolveCurrentEffectiveProfileWorkingFolderRuntime, wn as resolveInstalledCodexLaunchCandidates, x as resolveLocalRuntimeControllerSupport, y as readLocalEnabledControllers, zn as runRuntimeTask } from "./prepare-provider-runtime-
|
|
4
|
-
import { a as resolveBaseUrl, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig } from "./base-url-
|
|
3
|
+
import { $n as buildAgentContextLookupKey, $t as normalizeDispatchPostMessageAction, Ar as renderTaskKnowledgeIndex, Bn as buildRuntimeWorkspaceFingerprint, Cn as resolveCodexTimeoutMs, Dn as resolveCodexAppServerCompletedTurn, E as resolveProfileWorkspaceRuntime, Gn as removeConversationExecutionState, H as setAgentRegistrationEnabled, Hn as appendLedgerHistoryEntry, Ht as createRouteCatalogFromMutableState, Jn as settleInflightTask, Jt as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, Kn as resolveConversationExecutionStateByLookupKey, Kt as normalizeDispatchThreadAction, L as manageAgentRegistrationInstallation, On as verifyCodexAppServerThread, Q as canManageRegistryAgentSkillTargets, Qn as assertLegacyAgentContextAssociation, Rn as DaemonServiceRunError, Rr as supportsSpaceWorkHandoff, Tn as forkCodexAppServerThread, Un as commitResolvedAgentContext, Ut as replaceMutableRouteCatalogState, Vn as buildTaskResultEnvelope, Vt as createMutableRouteCatalogState, Wn as loadLedgerState, Xn as withLedgerStateTransaction, Yn as upsertConversationExecutionState, Yt as SPACE_ACTION_TARGET_GUIDANCE_LINES, Zt as createSerialAgentInteractionCallback, _ as loadDaemonRouteCatalog, a as buildOpenClawSpaceSessionKey, an as createInflightTaskControlRegistry, b as resolveLocalController, cn as resolveCompatibleAgentContextMatch, cr as DISPATCH_SPACE_ACTION_DELIVERY_ONLY_ENV, dr as TASK_KNOWLEDGE_GUIDANCE, en as createPendingAgentInteractionRegistry, et as resolveSkillsAgentRegistry, fn as createLocalAdapterContainer, ft as listProjectBindings, g as writeDaemonRouteCatalogCache, gn as forkOpenCodeServerSession, h as readDaemonRouteCatalogCache, in as createLocalExecutionSlots, kt as resolveRegistryRuntimeAdapterContractByAgentControllerRef, ln as resolveCompatibleConversationExecutionState, nn as createLocalTaskInterruptSender, nt as resolveBuiltinAgentControllerDefinition, o as normalizeOpenClawSpaceIdPrefix, on as resolveDispatchQueueLogMeta, pn as createLocalAdapterEntries, pt as listProjectConnectionsWithStatus, qn as seedLegacyAgentContext, qt as syncRuntimeEventToInflightTaskControlRegistry, s as slugifyOpenClawNamePart, sn as resolveDispatchContinuityObservation, t as prepareProviderRuntime, tn as mergeOpenClawGatewayVisibility, un as resolveLatestScopedConversationExecutionState, ur as DEFAULT_TASK_LIFECYCLE_HEARTBEAT_INTERVAL_MS, v as buildRuntimeRouteTargets, vn as resolveInstalledOpenCodeLaunchCandidates, w as resolveCurrentEffectiveProfileWorkingFolderRuntime, wn as resolveInstalledCodexLaunchCandidates, x as resolveLocalRuntimeControllerSupport, y as readLocalEnabledControllers, zn as runRuntimeTask } from "./prepare-provider-runtime-8LN1Vkl9.js";
|
|
4
|
+
import { a as resolveBaseUrl, f as getConfiguredDaemonDispatchLimits, g as getConfiguredSkillsConfig } from "./base-url-DRxlYvp_.js";
|
|
5
5
|
import { F as resolveOpenMeldRootDir } from "./paths-De9xdA2h.js";
|
|
6
|
-
import { $b as runtimeTransportDispatchProgressRequestSchema,
|
|
7
|
-
import { Nt as buildSpaceAttachmentDownloadPath, bn as createSpaceApi, cn as createOrganizationSkillsApi } from "./dist-
|
|
8
|
-
import { d as getAuthSessionState } from "./auth-session-
|
|
9
|
-
import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, f as buildOpenMeldRequestContextFromProfileIdentity, n as fetchSpaceRequestWithTimeout, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
10
|
-
import { t as emitDaemonLifecycleEvent } from "./daemon-lifecycle-journal-
|
|
11
|
-
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-
|
|
12
|
-
import { F as SPACE_COLLABORATION_CONTEXT_RULE, I as SPACE_PERSONAL_CONTRIBUTION_RULE, X as resolvePublicAgentFailureReason, Z as resolveSpacePublicationRequirement } from "./dual-view-guide-catalog-
|
|
13
|
-
import { $t as createDispatchContinuationSpaceAccessContext, C as recordOpenMeldCreatedLocalAgentSession, D as readOpenCodeSessionRows, J as consumeArmedAgentControllerInterfaceReprobe, Yt as buildSpaceRoundSignalPublication, _ as sendDaemonFrame$1, _t as resolveBootstrapSpaceOwnerProfileId, an as getSpaceAccessPassword, at as emitDaemonDispatchJournalEvent, c as createDispatchSpaceActionContext, ct as readComputerFileAccessPolicy, d as readDispatchSpaceActionRecord, dt as isSameOrDescendantPath, f as supersedeDispatchSpaceActionRecordForReconsideration, ft as buildDispatchBootstrapTemplateFacts, g as parseDaemonFrame, gt as parseDispatchTask, ht as buildDispatchSessionTitle, k as resolveOpenCodeDatabasePath, l as readDispatchSpaceActionContextForReceiptFromEnv, ln as isWakeClosingSystemNoticeType, lt as resolveComputerFileAccessStorePath, mt as buildDispatchPromptPlan, on as getSpaceAccessRequestContext, pt as buildDispatchCorrelation, r as buildDispatchOwnedRuntimeEnv, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, un as listSpaceMemberDirectorySendTargets, vt as resolveBootstrapTargetProfileContext, xn as DISPATCH_SPACE_ACTION_CLI_FALLBACK_COMMAND, yt as resolveDispatchMentionSourceContext } from "./dispatch-owned-runtime-
|
|
14
|
-
import { t as ExecutionHostError } from "./channel-
|
|
15
|
-
import { f as withSkillsInstallLock, r as ensureLocalSkills, t as resolveSkillInstallStateForTarget } from "./state-
|
|
16
|
-
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-
|
|
17
|
-
import { t as installSkillsToTargets } from "./installer-
|
|
18
|
-
import { B as installAgentActivityIntegrations, C as recordRuntimeReportingFailure, D as startLocalAgentActivitySyncLoop, E as createLedgerIo, F as registerAgentActivityRoute, T as recordRuntimeReportingSuccess, _ as markExecutionContextWorkspaceInUse, a as createDispatchSpaceTools, b as releaseExecutionContextWorkspace, g as deriveExecutionContextComputerFileAccessPolicy, h as startDispatchSpaceProgressRelay, i as materializeOrganizationSkillRelease, k as discoverLocalAgentSessionProviders, n as createSpaceWorkingCopies, r as downloadWorkingCopyFile, s as readTaskKnowledge, t as fetchSpaceUpdates, v as prepareExecutionContextWorkspace, w as recordRuntimeReportingNotApplicable, x as prepareClaudeProjectContainer, y as readExecutionContextWorkspace, z as defaultManagedIntegrationPaths } from "./updates-api-
|
|
19
|
-
import { h as createCliSpaceApi } from "./meta-api-
|
|
6
|
+
import { $b as runtimeTransportDispatchProgressRequestSchema, AP as toCompatibleSpaceAddressingRequestWireValue, CA as COMPUTER_FILE_ACCESS_OWNER_CANCELLED_REASON_CODE, Dw as spaceWorkSelectionSchema, Ex as runtimeTransportResumeControllerConversationResultFramePayloadSchema, Gb as runtimeTransportDispatchInteractionRequestSchema, Kb as runtimeTransportDispatchInteractionResponseFramePayloadSchema, NT as providerDispatchRuntimeContextSchema, Nw as OPENMELD_DAEMON_CANCEL_STOP_REQUESTED_AFTER_START_REASON_CODE, Pw as OPENMELD_DAEMON_CANCEL_WITHDRAWN_BEFORE_START_REASON_CODE, Qb as runtimeTransportDispatchPreviewRequestSchema, Tx as runtimeTransportResumeControllerConversationFramePayloadSchema, UO as runtimeTransportDeliveryExecutionIdentitySchema, Ub as runtimeTransportDeliverDispatchRequestSchema, Wb as runtimeTransportDispatchInteractionDeliveredRequestSchema, Yb as runtimeTransportDispatchLifecycleRequestSchema, Zb as runtimeTransportDispatchPreviewEndRequestSchema, _u as SPACE_DISPATCH_TRACE_PROMPT_PREVIEW_MAX_CHARS, aE as resolveBuiltinAgentControllerConversationKind, aS as openMeldDaemonTaskResultPayloadSchema, ak as LOCAL_AGENT_REASONING_MAX_CHARS, bv as agentExecutionSteerResponseSchema, d as SERVICE_EXECUTION_HOST_PROTOCOL, dx as runtimeTransportLocalAgentControlForkSessionFramePayloadSchema, ex as runtimeTransportDispatchReasoningRequestSchema, fx as runtimeTransportLocalAgentControlInterruptFramePayloadSchema, gx as runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema, ix as runtimeTransportDispatchToolActivityRequestSchema, kO as runtimeCoordinatorExecutionTokenEnvelopeSchema, nO as agentInteractionRequestSchema, nx as runtimeTransportDispatchRuntimeEvidenceRequestSchema, oI as normalizeKnownBuiltinAgentControllerId, ox as runtimeTransportForkAgentSessionResultSchema, p as serviceExecutionHostCatalogSchema, px as runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema, qD as AGENT_INTERACTION_DEFAULT_TIMEOUT_MS, qb as runtimeTransportDispatchLifecycleAcknowledgementSchema, qx as runtimeTransportSubmitTaskResultRequestSchema, r as buildWorkingFolderRecoveryQuestion, rE as buildAgentControllerConversationRef, rO as agentInteractionResolutionSchema, sk as localAgentReasoningPreferencesSchema, t as WORKING_FOLDER_RECOVERY_DECLINED, uR as normalizeOptionalWorkingDirectory, uv as OFFICIAL_CLI_SKILL_URL, ux as runtimeTransportLocalAgentControlCancelFramePayloadSchema } from "./dist-Bn5dP-sF.js";
|
|
7
|
+
import { Nt as buildSpaceAttachmentDownloadPath, bn as createSpaceApi, cn as createOrganizationSkillsApi } from "./dist-DIw8yJxL.js";
|
|
8
|
+
import { d as getAuthSessionState } from "./auth-session-BdAItAyB.js";
|
|
9
|
+
import { a as buildOpenMeldProfileIdentityRequestHeadersWithAuth, f as buildOpenMeldRequestContextFromProfileIdentity, n as fetchSpaceRequestWithTimeout, t as createCliApiClientFoundation } from "./api-client-foundation-IQugghjb.js";
|
|
10
|
+
import { t as emitDaemonLifecycleEvent } from "./daemon-lifecycle-journal-BSNIcKyb.js";
|
|
11
|
+
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-BC4Rh0Es.js";
|
|
12
|
+
import { F as SPACE_COLLABORATION_CONTEXT_RULE, I as SPACE_PERSONAL_CONTRIBUTION_RULE, X as resolvePublicAgentFailureReason, Z as resolveSpacePublicationRequirement } from "./dual-view-guide-catalog-4C6kyFrW.js";
|
|
13
|
+
import { $t as createDispatchContinuationSpaceAccessContext, C as recordOpenMeldCreatedLocalAgentSession, D as readOpenCodeSessionRows, J as consumeArmedAgentControllerInterfaceReprobe, Yt as buildSpaceRoundSignalPublication, _ as sendDaemonFrame$1, _t as resolveBootstrapSpaceOwnerProfileId, an as getSpaceAccessPassword, at as emitDaemonDispatchJournalEvent, c as createDispatchSpaceActionContext, ct as readComputerFileAccessPolicy, d as readDispatchSpaceActionRecord, dt as isSameOrDescendantPath, f as supersedeDispatchSpaceActionRecordForReconsideration, ft as buildDispatchBootstrapTemplateFacts, g as parseDaemonFrame, gt as parseDispatchTask, ht as buildDispatchSessionTitle, k as resolveOpenCodeDatabasePath, l as readDispatchSpaceActionContextForReceiptFromEnv, ln as isWakeClosingSystemNoticeType, lt as resolveComputerFileAccessStorePath, mt as buildDispatchPromptPlan, on as getSpaceAccessRequestContext, pt as buildDispatchCorrelation, r as buildDispatchOwnedRuntimeEnv, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, un as listSpaceMemberDirectorySendTargets, vt as resolveBootstrapTargetProfileContext, xn as DISPATCH_SPACE_ACTION_CLI_FALLBACK_COMMAND, yt as resolveDispatchMentionSourceContext } from "./dispatch-owned-runtime-CMJkBNAQ.js";
|
|
14
|
+
import { t as ExecutionHostError } from "./channel-DXZro9KR.js";
|
|
15
|
+
import { f as withSkillsInstallLock, r as ensureLocalSkills, t as resolveSkillInstallStateForTarget } from "./state-C2oIplb_.js";
|
|
16
|
+
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-Dg1-4Io3.js";
|
|
17
|
+
import { t as installSkillsToTargets } from "./installer-BbU7x9jH.js";
|
|
18
|
+
import { B as installAgentActivityIntegrations, C as recordRuntimeReportingFailure, D as startLocalAgentActivitySyncLoop, E as createLedgerIo, F as registerAgentActivityRoute, T as recordRuntimeReportingSuccess, _ as markExecutionContextWorkspaceInUse, a as createDispatchSpaceTools, b as releaseExecutionContextWorkspace, g as deriveExecutionContextComputerFileAccessPolicy, h as startDispatchSpaceProgressRelay, i as materializeOrganizationSkillRelease, k as discoverLocalAgentSessionProviders, n as createSpaceWorkingCopies, r as downloadWorkingCopyFile, s as readTaskKnowledge, t as fetchSpaceUpdates, v as prepareExecutionContextWorkspace, w as recordRuntimeReportingNotApplicable, x as prepareClaudeProjectContainer, y as readExecutionContextWorkspace, z as defaultManagedIntegrationPaths } from "./updates-api-BveNpigg.js";
|
|
19
|
+
import { h as createCliSpaceApi } from "./meta-api-CT94Ce82.js";
|
|
20
20
|
import { createHash, randomUUID } from "node:crypto";
|
|
21
21
|
import { homedir } from "node:os";
|
|
22
22
|
import { basename, dirname, extname, join } from "node:path";
|
|
@@ -9519,4 +9519,4 @@ function createExecutionHostRuntime(input) {
|
|
|
9519
9519
|
//#endregion
|
|
9520
9520
|
export { createExecutionHostResources, createExecutionHostRuntime };
|
|
9521
9521
|
|
|
9522
|
-
//# sourceMappingURL=runtime-
|
|
9522
|
+
//# sourceMappingURL=runtime-BCepNsti.js.map
|