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.
- package/dist/{add-me-membership-0KyMk1wi.js → add-me-membership-ChntsjGm.js} +2 -2
- package/dist/{add-me-membership-0KyMk1wi.js.map → add-me-membership-ChntsjGm.js.map} +1 -1
- package/dist/{agents-Bkx6ldpV.js → agents-DruPcNSg.js} +11 -11
- package/dist/{agents-Bkx6ldpV.js.map → agents-DruPcNSg.js.map} +1 -1
- package/dist/{api-client-foundation-d4E5XWdJ.js → api-client-foundation-CDj_9Rks.js} +1 -1
- package/dist/{api-client-foundation-DgTXf3Gb.js → api-client-foundation-EZpFLGVC.js} +3 -3
- package/dist/{api-client-foundation-DgTXf3Gb.js.map → api-client-foundation-EZpFLGVC.js.map} +1 -1
- package/dist/auth-session-BOG3gV2K2.js +4 -0
- package/dist/{auth-session-pLaN5cnC.js → auth-session-DhSHCYvl.js} +4 -4
- package/dist/{auth-session-pLaN5cnC.js.map → auth-session-DhSHCYvl.js.map} +1 -1
- package/dist/auth-url-6Bb6YdNm.js +24 -0
- package/dist/auth-url-6Bb6YdNm.js.map +1 -0
- package/dist/{base-url-eck31vC8.js → base-url-0AoeTi3w.js} +3 -3
- package/dist/{base-url-eck31vC8.js.map → base-url-0AoeTi3w.js.map} +1 -1
- package/dist/{base-url-B8eWb2md.js → base-url-Bdjp-5vy.js} +1 -1
- package/dist/{channel-DppbHxHw.js → channel-tvFZSSVr.js} +24 -4
- package/dist/channel-tvFZSSVr.js.map +1 -0
- package/dist/{command-CBWv24uj.js → command-0yoZa1GT.js} +18 -18
- package/dist/{command-CBWv24uj.js.map → command-0yoZa1GT.js.map} +1 -1
- package/dist/{computer-connection-DMkamVpB.js → computer-connection-CoBDorh6.js} +2 -2
- package/dist/{computer-connection-DMkamVpB.js.map → computer-connection-CoBDorh6.js.map} +1 -1
- package/dist/{computer-connection-review-BSPMGVhN.js → computer-connection-review-Dy7p1LXZ.js} +6 -6
- package/dist/{computer-connection-review-BSPMGVhN.js.map → computer-connection-review-Dy7p1LXZ.js.map} +1 -1
- package/dist/{computer-disconnect-BQ_MDeeA.js → computer-disconnect-4Ks_DVXV.js} +9 -9
- package/dist/{computer-disconnect-BQ_MDeeA.js.map → computer-disconnect-4Ks_DVXV.js.map} +1 -1
- package/dist/{computer-setup-continuation-Cd293Yzi.js → computer-setup-continuation-ZcQb7MvI.js} +3 -3
- package/dist/{computer-setup-continuation-Cd293Yzi.js.map → computer-setup-continuation-ZcQb7MvI.js.map} +1 -1
- package/dist/{context-qbQXVLF5.js → context-BPIoofMa.js} +5 -5
- package/dist/{context-qbQXVLF5.js.map → context-BPIoofMa.js.map} +1 -1
- package/dist/{daemon-device-id-B6iDyQEs.js → daemon-device-id-DDazRZUV.js} +7 -7
- package/dist/{daemon-device-id-B6iDyQEs.js.map → daemon-device-id-DDazRZUV.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-DrwEygzu.js → daemon-lifecycle-journal-CRxQL9m6.js} +7 -7
- package/dist/{daemon-lifecycle-journal-DrwEygzu.js.map → daemon-lifecycle-journal-CRxQL9m6.js.map} +1 -1
- package/dist/{daemon-runtime-lease-C1wkT4Bi.js → daemon-runtime-lease-Bv6vhqOe.js} +2 -2
- package/dist/{daemon-runtime-lease-C1wkT4Bi.js.map → daemon-runtime-lease-Bv6vhqOe.js.map} +1 -1
- package/dist/{daemon-runtime-lease-DAQyRUc5.js → daemon-runtime-lease-ZjP0urJt.js} +1 -1
- package/dist/{daemon-service-contract-DhEfbzHt.js → daemon-service-contract-COPKbCy_.js} +4 -4
- package/dist/{daemon-service-contract-DhEfbzHt.js.map → daemon-service-contract-COPKbCy_.js.map} +1 -1
- package/dist/{daemon-service-manager-CRnFxPKA.js → daemon-service-manager-BXAp21GH.js} +6 -6
- package/dist/{daemon-service-manager-CRnFxPKA.js.map → daemon-service-manager-BXAp21GH.js.map} +1 -1
- package/dist/{daemon-service-manager-l0unaDGa.js → daemon-service-manager-C_ny0JhB.js} +1 -1
- package/dist/{daemon-service-runtime-B4nWB2Qx.js → daemon-service-runtime-BTzL0w6s.js} +14 -13
- package/dist/{daemon-service-runtime-B4nWB2Qx.js.map → daemon-service-runtime-BTzL0w6s.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-C8cW7Vn_.js → daemon-service-update-coordinator-BDs0p4bA.js} +26 -21
- package/dist/daemon-service-update-coordinator-BDs0p4bA.js.map +1 -0
- package/dist/{daemon-state-B6G5xe7f.js → daemon-state-Dte9re5V.js} +4 -4
- package/dist/{daemon-state-B6G5xe7f.js.map → daemon-state-Dte9re5V.js.map} +1 -1
- package/dist/{daemon-frame-transport-xQnNyg6E.js → dispatch-owned-runtime-CK2YJ2Oo.js} +547 -50
- package/dist/dispatch-owned-runtime-CK2YJ2Oo.js.map +1 -0
- package/dist/{dist-DFhd6JmQ.js → dist--TaSMxQz.js} +2 -2
- package/dist/{dist-DFhd6JmQ.js.map → dist--TaSMxQz.js.map} +1 -1
- package/dist/{dist-olOaAWkl.js → dist-B12upl5l.js} +1 -1
- package/dist/{dist-CAypwFRu.js → dist-Bw6OBFYo.js} +195 -185
- package/dist/dist-Bw6OBFYo.js.map +1 -0
- package/dist/{elapsed-time-COv3bjEl.js → elapsed-time-C3nfbdd9.js} +5 -5
- package/dist/{elapsed-time-COv3bjEl.js.map → elapsed-time-C3nfbdd9.js.map} +1 -1
- package/dist/{entry-DIjUKIep.js → entry-De__5RVq.js} +81 -17
- package/dist/entry-De__5RVq.js.map +1 -0
- package/dist/{installation-inventory-DllgoKT1.js → installation-inventory-Bq8iZfSa.js} +5 -5
- package/dist/{installation-inventory-DllgoKT1.js.map → installation-inventory-Bq8iZfSa.js.map} +1 -1
- package/dist/{installer-Sc79LhuA.js → installer-C7iSAOSz.js} +2 -2
- package/dist/{installer-Sc79LhuA.js.map → installer-C7iSAOSz.js.map} +1 -1
- package/dist/{lock-CMH9eoS7.js → lock-BMI00i2F.js} +2 -2
- package/dist/{lock-CMH9eoS7.js.map → lock-BMI00i2F.js.map} +1 -1
- package/dist/meta-api-BpwJWE22.js +371 -0
- package/dist/meta-api-BpwJWE22.js.map +1 -0
- package/dist/{openmeld-BUYFXSyY.js → openmeld-C0OSZJtn.js} +40 -38
- package/dist/{openmeld-BUYFXSyY.js.map → openmeld-C0OSZJtn.js.map} +1 -1
- package/dist/openmeld-dev.js +17 -9
- package/dist/openmeld-dev.js.map +1 -1
- package/dist/{openmeld-environment-target-Cw3V0WnE.js → openmeld-environment-target-BgYR6ozy.js} +8 -25
- package/dist/openmeld-environment-target-BgYR6ozy.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-Br6WIhhe.js → openmeld-maintenance-worker-DY90mkWW.js} +14 -14
- package/dist/{openmeld-maintenance-worker-Br6WIhhe.js.map → openmeld-maintenance-worker-DY90mkWW.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-B1l6RER6.js → openmeld-tools-update-join-DgzNuaDy.js} +4 -4
- package/dist/{openmeld-tools-update-join-B1l6RER6.js.map → openmeld-tools-update-join-DgzNuaDy.js.map} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{paths-DSkUuEu3.js → paths-De9xdA2h.js} +11 -6
- package/dist/paths-De9xdA2h.js.map +1 -0
- package/dist/{prepare-provider-runtime-DfsSj_N_.js → prepare-provider-runtime-BGdfbFyZ.js} +20 -15
- package/dist/prepare-provider-runtime-BGdfbFyZ.js.map +1 -0
- package/dist/{prepare-session-executor-CrYpWljb.js → prepare-session-executor-CA1gq8dR.js} +25 -25
- package/dist/{prepare-session-executor-CrYpWljb.js.map → prepare-session-executor-CA1gq8dR.js.map} +1 -1
- package/dist/{process-channel-DmTb_kO4.js → process-channel-C1wRGUmk.js} +2 -2
- package/dist/{process-channel-DmTb_kO4.js.map → process-channel-C1wRGUmk.js.map} +1 -1
- package/dist/{published-production-safety-CgXxtdMK.js → published-production-safety-zANGAGDI.js} +5 -6
- package/dist/published-production-safety-zANGAGDI.js.map +1 -0
- package/dist/{runtime-ZLBVtFFY.js → runtime-DFlEdls4.js} +76 -22
- package/dist/runtime-DFlEdls4.js.map +1 -0
- package/dist/{runtime-agent-controller-reporting-submission-CbaUsNTF.js → runtime-agent-controller-reporting-submission-C_xD2A-P.js} +15 -12
- package/dist/runtime-agent-controller-reporting-submission-C_xD2A-P.js.map +1 -0
- package/dist/{runtime-reporting-health-state-DOg9iwwO.js → runtime-reporting-health-state-_bvJcV1y.js} +116 -22
- package/dist/runtime-reporting-health-state-_bvJcV1y.js.map +1 -0
- package/dist/{runtime-transport-D4x8_AmR.js → runtime-transport-DH8Ks-AU.js} +86 -6
- package/dist/runtime-transport-DH8Ks-AU.js.map +1 -0
- package/dist/{service-B9y1SQlB.js → service-KHA_Yv8q.js} +61 -28
- package/dist/service-KHA_Yv8q.js.map +1 -0
- package/dist/{service-account-authorization-Di59Cjth.js → service-account-authorization-BHWs8cRP.js} +6 -6
- package/dist/{service-account-authorization-Di59Cjth.js.map → service-account-authorization-BHWs8cRP.js.map} +1 -1
- package/dist/{service-account-control-DALO1USM.js → service-account-control-BcHjpVid.js} +13 -13
- package/dist/{service-account-control-DALO1USM.js.map → service-account-control-BcHjpVid.js.map} +1 -1
- package/dist/{service-control-capabilities-CKwU9Er5.js → service-control-capabilities-B4433dGT.js} +5 -5
- package/dist/{service-control-capabilities-CKwU9Er5.js.map → service-control-capabilities-B4433dGT.js.map} +1 -1
- package/dist/{service-control-capabilities-B9ZxDPOJ.js → service-control-capabilities-DTKD2-o0.js} +1 -1
- package/dist/{state-CdSbKM0J.js → state-iJqU2XWw.js} +3 -3
- package/dist/{state-CdSbKM0J.js.map → state-iJqU2XWw.js.map} +1 -1
- package/dist/upgrade-CuzsgsKh.js +4 -0
- package/dist/{upgrade-DLJJlkbf.js → upgrade-DlBDEvs4.js} +8 -8
- package/dist/{upgrade-DLJJlkbf.js.map → upgrade-DlBDEvs4.js.map} +1 -1
- package/dist/{windows-preview-channel-DPrYuLyY.js → windows-preview-channel-BPhfSwji.js} +2 -2
- package/dist/{windows-preview-channel-DPrYuLyY.js.map → windows-preview-channel-BPhfSwji.js.map} +1 -1
- package/dist/{windows-user-task-BR-WB7hr.js → windows-user-task-CTsMnmD4.js} +3 -3
- package/dist/{windows-user-task-BR-WB7hr.js.map → windows-user-task-CTsMnmD4.js.map} +1 -1
- package/dist/{windows-user-task-m9eMEUEq.js → windows-user-task-DnxKO3oB.js} +1 -1
- package/package.json +11 -11
- package/dist/auth-session-DExyUwLo.js +0 -4
- package/dist/channel-DppbHxHw.js.map +0 -1
- package/dist/daemon-frame-transport-xQnNyg6E.js.map +0 -1
- package/dist/daemon-service-update-coordinator-C8cW7Vn_.js.map +0 -1
- package/dist/dist-CAypwFRu.js.map +0 -1
- package/dist/entry-DIjUKIep.js.map +0 -1
- package/dist/meta-api-CEw8eOeN.js +0 -845
- package/dist/meta-api-CEw8eOeN.js.map +0 -1
- package/dist/openmeld-environment-target-Cw3V0WnE.js.map +0 -1
- package/dist/paths-DSkUuEu3.js.map +0 -1
- package/dist/prepare-provider-runtime-DfsSj_N_.js.map +0 -1
- package/dist/published-production-safety-CgXxtdMK.js.map +0 -1
- package/dist/runtime-ZLBVtFFY.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-CbaUsNTF.js.map +0 -1
- package/dist/runtime-reporting-health-state-DOg9iwwO.js.map +0 -1
- package/dist/runtime-transport-D4x8_AmR.js.map +0 -1
- package/dist/service-B9y1SQlB.js.map +0 -1
- package/dist/upgrade-BFWUxFpJ.js +0 -4
|
@@ -1,32 +1,33 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
import { g as toSpaceUpdatesUrl } from "./urls-CY2uzH2-.js";
|
|
4
|
-
import {
|
|
5
|
-
import { Cr as spaceTaskMutationReceiptSchema, Fi as signalTextEnvelopeSchema, Hr as organizationSkillBundleSchema, Lt as createAgentActivityApi, Sr as spaceTaskIdSchema, br as createSpaceTaskBodySchema, fn as createRuntimeReportingApi, or as getSpaceUpdatesResponseSchema, pi as observedLocalAgentSessionSchema, qr as stringifyOrganizationSkillBundleCanonicalJson, ri as submitAgentControllerTaskLifecycleEventItemSchema, rr as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, t as OpenMeldApiClientHttpError, xr as mutateSpaceTaskBodySchema } from "./dist-
|
|
6
|
-
import { Jn as buildCliLaunchInvocation, Tt as withAgentActivityLocalStateLock, Xn as resolveExecutablePathsOnPath, Zn as listAgentControllerSupervisedProcessIds, _n as resolveInstalledGrokBuildLaunchCandidates, bn as resolveInstalledCodexLaunchCandidates, er as isDispatchSpaceActionDeliveryOnly, ft as listProjectBindings, ht as removeAgentActivityBindingsWhileDeliveryLocked, mn as resolveInstalledOpenCodeLaunchCandidates, qn as resolveDispatchSpaceActionMcpServer, vt as resolveProjectBindingForPath, wn as resolveInstalledClaudeCodeLaunchCandidates, wt as withAgentActivityDeliveryLock } from "./prepare-provider-runtime-
|
|
7
|
-
import {
|
|
8
|
-
import { d as getAuthSessionState } from "./auth-session-
|
|
4
|
+
import { F as resolveOpenMeldRootDir, k as organizationSkillReleaseDir, t as OPENMELD_HOME_ENV_KEY } from "./paths-De9xdA2h.js";
|
|
5
|
+
import { Cr as spaceTaskMutationReceiptSchema, Fi as signalTextEnvelopeSchema, Hr as organizationSkillBundleSchema, Lt as createAgentActivityApi, Sr as spaceTaskIdSchema, br as createSpaceTaskBodySchema, fn as createRuntimeReportingApi, or as getSpaceUpdatesResponseSchema, pi as observedLocalAgentSessionSchema, qr as stringifyOrganizationSkillBundleCanonicalJson, ri as submitAgentControllerTaskLifecycleEventItemSchema, rr as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, t as OpenMeldApiClientHttpError, xr as mutateSpaceTaskBodySchema } from "./dist-Bw6OBFYo.js";
|
|
6
|
+
import { Jn as buildCliLaunchInvocation, Tt as withAgentActivityLocalStateLock, Xn as resolveExecutablePathsOnPath, Zn as listAgentControllerSupervisedProcessIds, _n as resolveInstalledGrokBuildLaunchCandidates, bn as resolveInstalledCodexLaunchCandidates, er as isDispatchSpaceActionDeliveryOnly, ft as listProjectBindings, ht as removeAgentActivityBindingsWhileDeliveryLocked, mn as resolveInstalledOpenCodeLaunchCandidates, qn as resolveDispatchSpaceActionMcpServer, vt as resolveProjectBindingForPath, wn as resolveInstalledClaudeCodeLaunchCandidates, wt as withAgentActivityDeliveryLock } from "./prepare-provider-runtime-BGdfbFyZ.js";
|
|
7
|
+
import { Jt as spaceWorkingCopyResultSchema, Kt as spaceWorkRelativePathSchema, Wt as SPACE_WORK_MAX_BYTES, _n as spaceFileEntryIdSchema, an as readSpaceFileTextResponseSchema, cr as executionContextTaskSchema, or as executionContextAssignmentSchema, qt as spaceWorkSelectionSchema, wn as spaceMessageFileReferenceSchema, xn as spaceFileRevisionNumberSchema } from "./runtime-transport-DH8Ks-AU.js";
|
|
8
|
+
import { d as getAuthSessionState } from "./auth-session-DhSHCYvl.js";
|
|
9
9
|
import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-rTE2rHZ5.js";
|
|
10
|
-
import { C as
|
|
11
|
-
import { B as requireOpenMeldProfile, o as dirnamePath } from "./daemon-device-id-
|
|
12
|
-
import { d as runWithHeldLock, s as releaseLock, t as acquireLock } from "./lock-
|
|
13
|
-
import { a as resolveBaseUrl } from "./base-url-
|
|
10
|
+
import { A as drainAgentActivityHookInbox, An as cliJsonErrorEnvelopeSchema, C as readOpenCodeSessionRows, D as resolveObservedAgentActivityBinding, F as deferAgentActivityOutbox, I as readAgentActivityOutboxHealth, L as readDueAgentActivityOutbox, M as removeProjectInbox, N as AgentActivitySubmissionResultsMismatchError, O as normalizeSharedSessionTitle, P as applyAgentActivitySubmissionResults, R as removeProjectOutbox, S as startAgentActivityTranscriptWatchers, T as resolveOpenCodeDatabasePath, a as DispatchSpaceActionClosedError, d as readDispatchSpaceActionRecord, l as readDispatchSpaceActionContextForReceiptFromEnv, o as DispatchSpaceActionRejectedError, p as writeDispatchSpaceActionRecord, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, u as readDispatchSpaceActionContextFromEnv, x as scanLocalAgentActivity, z as readRecentAgentActivityHookStatus } from "./dispatch-owned-runtime-CK2YJ2Oo.js";
|
|
11
|
+
import { B as requireOpenMeldProfile, o as dirnamePath } from "./daemon-device-id-DDazRZUV.js";
|
|
12
|
+
import { d as runWithHeldLock, s as releaseLock, t as acquireLock } from "./lock-BMI00i2F.js";
|
|
13
|
+
import { a as resolveBaseUrl } from "./base-url-0AoeTi3w.js";
|
|
14
14
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
15
|
-
import { _ as daemonRuntimeStateRootPath } from "./daemon-state-
|
|
16
|
-
import { i as readDaemonServiceContract } from "./daemon-service-contract-
|
|
15
|
+
import { _ as daemonRuntimeStateRootPath } from "./daemon-state-Dte9re5V.js";
|
|
16
|
+
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
17
17
|
import { l as resolveUserFacingCliEntryCommand, n as formatOpenMeldCliCommand } from "./cli-entry-command-CR_9QU1i.js";
|
|
18
18
|
import { r as outLine } from "./io-DT66typ4.js";
|
|
19
|
-
import { d as buildOpenMeldRequestContextFromProfile, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
20
|
-
import {
|
|
19
|
+
import { d as buildOpenMeldRequestContextFromProfile, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-EZpFLGVC.js";
|
|
20
|
+
import { d as uploadPreparedSpaceFiles, f as createCliSpaceApi, l as parseJsonResponse, s as readGatewayTextResponse, u as prepareRequestedSpaceSendFiles } from "./meta-api-BpwJWE22.js";
|
|
21
21
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
22
22
|
import { homedir } from "node:os";
|
|
23
23
|
import { basename, dirname, isAbsolute, join, relative, resolve, sep } from "node:path";
|
|
24
24
|
import { appendFile, chmod, copyFile, lstat, mkdir, mkdtemp, open, readFile, readdir, readlink, realpath, rename, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
25
25
|
import * as z$1 from "zod/v4";
|
|
26
26
|
import { z } from "zod/v4";
|
|
27
|
-
import { constants, createReadStream, readFileSync } from "node:fs";
|
|
27
|
+
import { appendFileSync, chmodSync, constants, createReadStream, readFileSync } from "node:fs";
|
|
28
28
|
import { execFile, spawn } from "node:child_process";
|
|
29
29
|
import { promisify } from "node:util";
|
|
30
|
+
import { setTimeout as setTimeout$1 } from "node:timers/promises";
|
|
30
31
|
import { createInterface } from "node:readline";
|
|
31
32
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
32
33
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
@@ -1627,7 +1628,8 @@ function createCodexJsonRpcClient(launchContract) {
|
|
|
1627
1628
|
"pipe",
|
|
1628
1629
|
"pipe",
|
|
1629
1630
|
"ignore"
|
|
1630
|
-
]
|
|
1631
|
+
],
|
|
1632
|
+
windowsHide: true
|
|
1631
1633
|
});
|
|
1632
1634
|
let nextId = 1;
|
|
1633
1635
|
let buffer = "";
|
|
@@ -2065,7 +2067,8 @@ async function executeJsonCommand(input) {
|
|
|
2065
2067
|
"ignore",
|
|
2066
2068
|
"pipe",
|
|
2067
2069
|
"ignore"
|
|
2068
|
-
]
|
|
2070
|
+
],
|
|
2071
|
+
windowsHide: true
|
|
2069
2072
|
});
|
|
2070
2073
|
let stdout = "";
|
|
2071
2074
|
const timer = setTimeout(() => {
|
|
@@ -2872,6 +2875,74 @@ async function readLocalReportingHealth(rootDir) {
|
|
|
2872
2875
|
return await Promise.all([readAgentActivityOutboxHealth({ rootDir }), readControllerTaskLifecycleOutboxHealth({ rootDir })]);
|
|
2873
2876
|
}
|
|
2874
2877
|
//#endregion
|
|
2878
|
+
//#region src/runtime/dispatch-space-progress-relay.ts
|
|
2879
|
+
const DISPATCH_PROGRESS_RELAY_FILENAME = "progress.ndjson";
|
|
2880
|
+
const DISPATCH_PROGRESS_RELAY_POLL_INTERVAL_MS = 50;
|
|
2881
|
+
const DISPATCH_PROGRESS_RELAY_MAX_BYTES = 128 * 1024;
|
|
2882
|
+
function recordDispatchSpaceProgress(update, env = process.env) {
|
|
2883
|
+
const context = readDispatchSpaceActionContextFromEnv(env);
|
|
2884
|
+
const relayPath = resolveDispatchSpaceProgressRelayPath(env);
|
|
2885
|
+
appendFileSync(relayPath, `${JSON.stringify({
|
|
2886
|
+
version: 1,
|
|
2887
|
+
contextId: context.contextId,
|
|
2888
|
+
nonce: context.nonce,
|
|
2889
|
+
createdAtMs: Date.now(),
|
|
2890
|
+
update
|
|
2891
|
+
})}\n`, {
|
|
2892
|
+
encoding: "utf8",
|
|
2893
|
+
mode: 384
|
|
2894
|
+
});
|
|
2895
|
+
chmodSync(relayPath, 384);
|
|
2896
|
+
return { status: "accepted" };
|
|
2897
|
+
}
|
|
2898
|
+
function startDispatchSpaceProgressRelay(input) {
|
|
2899
|
+
let closed = false;
|
|
2900
|
+
let consumedCount = 0;
|
|
2901
|
+
const relayPath = join(dirname(input.contextPath), DISPATCH_PROGRESS_RELAY_FILENAME);
|
|
2902
|
+
const drain = async () => {
|
|
2903
|
+
const records = readProgressRelayRecords({
|
|
2904
|
+
context: input.context,
|
|
2905
|
+
relayPath
|
|
2906
|
+
});
|
|
2907
|
+
for (const record of records.slice(consumedCount)) {
|
|
2908
|
+
await input.reportProgress(record.update);
|
|
2909
|
+
consumedCount++;
|
|
2910
|
+
}
|
|
2911
|
+
};
|
|
2912
|
+
const loop = (async () => {
|
|
2913
|
+
while (!closed) {
|
|
2914
|
+
await setTimeout$1(input.pollIntervalMs ?? DISPATCH_PROGRESS_RELAY_POLL_INTERVAL_MS);
|
|
2915
|
+
await drain();
|
|
2916
|
+
}
|
|
2917
|
+
await drain();
|
|
2918
|
+
})();
|
|
2919
|
+
return { close: async () => {
|
|
2920
|
+
closed = true;
|
|
2921
|
+
await loop;
|
|
2922
|
+
} };
|
|
2923
|
+
}
|
|
2924
|
+
function resolveDispatchSpaceProgressRelayPath(env) {
|
|
2925
|
+
const contextPath = env[OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV];
|
|
2926
|
+
if (!contextPath) throw new Error("No active OpenMeld Space Action context path was found.");
|
|
2927
|
+
return join(dirname(contextPath), DISPATCH_PROGRESS_RELAY_FILENAME);
|
|
2928
|
+
}
|
|
2929
|
+
function readProgressRelayRecords(input) {
|
|
2930
|
+
let text;
|
|
2931
|
+
try {
|
|
2932
|
+
text = readFileSync(input.relayPath, "utf8");
|
|
2933
|
+
} catch (error) {
|
|
2934
|
+
if (error.code === "ENOENT") return [];
|
|
2935
|
+
throw error;
|
|
2936
|
+
}
|
|
2937
|
+
if (Buffer.byteLength(text, "utf8") > DISPATCH_PROGRESS_RELAY_MAX_BYTES) throw new Error("The dispatch progress relay exceeded its safe size.");
|
|
2938
|
+
return text.split("\n").filter(Boolean).map((line) => parseProgressRelayRecord(line, input.context));
|
|
2939
|
+
}
|
|
2940
|
+
function parseProgressRelayRecord(line, context) {
|
|
2941
|
+
const value = JSON.parse(line);
|
|
2942
|
+
if (value.version !== 1 || value.contextId !== context.contextId || value.nonce !== context.nonce || typeof value.createdAtMs !== "number" || typeof value.update !== "string" || value.update.trim().length === 0 || value.update.length > 600) throw new Error("The dispatch progress relay record is invalid.");
|
|
2943
|
+
return value;
|
|
2944
|
+
}
|
|
2945
|
+
//#endregion
|
|
2875
2946
|
//#region src/local-service/file-access/claude-project-container.ts
|
|
2876
2947
|
const execFileAsync$2 = promisify(execFile);
|
|
2877
2948
|
const PROJECT_IMAGE = "node:24-bookworm@sha256:64af3819f9275802414d7cdc38c27e9d82bd564dec4d4da87d008255d36c63b4";
|
|
@@ -3856,6 +3927,7 @@ function runSpaceActionReply(input) {
|
|
|
3856
3927
|
filePaths: input.filePaths,
|
|
3857
3928
|
messagePartCount: input.messageParts.length,
|
|
3858
3929
|
mentionTargets: input.mentionTargets,
|
|
3930
|
+
placement: input.placement,
|
|
3859
3931
|
referenceTargets: input.referenceTargets,
|
|
3860
3932
|
text,
|
|
3861
3933
|
wakeTargets: input.wakeTargets
|
|
@@ -3895,6 +3967,7 @@ function recordDispatchSpaceReply(input) {
|
|
|
3895
3967
|
context,
|
|
3896
3968
|
files: input.files ? [...input.files] : [],
|
|
3897
3969
|
targetIds,
|
|
3970
|
+
placement: input.placement,
|
|
3898
3971
|
text,
|
|
3899
3972
|
timing
|
|
3900
3973
|
});
|
|
@@ -3902,6 +3975,7 @@ function recordDispatchSpaceReply(input) {
|
|
|
3902
3975
|
context,
|
|
3903
3976
|
filePaths,
|
|
3904
3977
|
targetIds,
|
|
3978
|
+
placement: input.placement,
|
|
3905
3979
|
text,
|
|
3906
3980
|
timing
|
|
3907
3981
|
});
|
|
@@ -3927,6 +4001,7 @@ function writeSpaceActionReplyRecord(input) {
|
|
|
3927
4001
|
const record = recordAction({
|
|
3928
4002
|
action: {
|
|
3929
4003
|
type: "post_message",
|
|
4004
|
+
...input.placement ? { placement: input.placement } : {},
|
|
3930
4005
|
...input.files.length > 0 ? { files: [...input.files] } : {},
|
|
3931
4006
|
messageEnvelope: {
|
|
3932
4007
|
activationTargets: input.targetIds.activationTargets,
|
|
@@ -4435,7 +4510,7 @@ async function runDispatchWorkingCopy(action, resolution, env = process.env) {
|
|
|
4435
4510
|
}
|
|
4436
4511
|
//#endregion
|
|
4437
4512
|
//#region src/space/action-mcp-server.ts
|
|
4438
|
-
const DISPATCH_SPACE_TOOL_INSTRUCTIONS = "Use read_history for the bounded text history around the current Wake, and read_file for shared text files in the current Space. Use Space Task tools only when a clear deliverable needs durable ownership, progress, review, or later closure; questions and tiny same-turn actions stay in Messages. Task operations are non-final. Then choose exactly one permitted final OpenMeld Space Action: reply for an answer, limitation, error explanation, or request for help; stay_silent only when no public communication is appropriate. Do not create a Task just to acknowledge a message. Parameter validation errors record no action and may be corrected. Use read_receipt to reconcile an unknown outcome before resending. Private assistant output is not posted to the Space.";
|
|
4513
|
+
const DISPATCH_SPACE_TOOL_INSTRUCTIONS = "Use read_history for the bounded text history around the current Wake, and read_file for shared text files in the current Space. When report_progress is available, use it only for a brief deliberate public update during meaningful multi-step work; it is non-final and does not replace the final action. Use Space Task tools only when a clear deliverable needs durable ownership, progress, review, or later closure; questions and tiny same-turn actions stay in Messages. Task operations are non-final. Then choose exactly one permitted final OpenMeld Space Action: reply for an answer, limitation, error explanation, or request for help; stay_silent only when no public communication is appropriate. Do not create a Task just to acknowledge a message. Parameter validation errors record no action and may be corrected. Use read_receipt to reconcile an unknown outcome before resending. Private assistant output is not posted to the Space.";
|
|
4439
4514
|
/** Every carrier uses the same schemas, validation, authority and recorder. */
|
|
4440
4515
|
var DispatchSpaceTools = class {
|
|
4441
4516
|
tools = [];
|
|
@@ -4671,6 +4746,23 @@ function createDispatchSpaceTools(input = {}) {
|
|
|
4671
4746
|
};
|
|
4672
4747
|
}
|
|
4673
4748
|
});
|
|
4749
|
+
if (input.reportProgress) server.registerTool("report_progress", {
|
|
4750
|
+
title: "Share public progress in the current OpenMeld Space",
|
|
4751
|
+
description: "Share one brief, concrete update while this Wake is still running. Use this only when you start meaningful work, confirm a useful fact, change direction, or begin verification. Do not include private reasoning, protected information, credentials, raw commands, or unverified claims. Exact retries are idempotent. This does not post a final reply, close the Wake, or resume a parent task.",
|
|
4752
|
+
inputSchema: { update: z.string().trim().min(1).max(600) },
|
|
4753
|
+
annotations: {
|
|
4754
|
+
readOnlyHint: false,
|
|
4755
|
+
destructiveHint: false,
|
|
4756
|
+
idempotentHint: true,
|
|
4757
|
+
openWorldHint: false
|
|
4758
|
+
}
|
|
4759
|
+
}, async ({ update }) => {
|
|
4760
|
+
const result = await input.reportProgress?.(update);
|
|
4761
|
+
return { content: [{
|
|
4762
|
+
type: "text",
|
|
4763
|
+
text: JSON.stringify(result ?? { status: "unavailable" })
|
|
4764
|
+
}] };
|
|
4765
|
+
});
|
|
4674
4766
|
server.registerTool("list_tasks", {
|
|
4675
4767
|
title: "List Tasks in the current OpenMeld Space",
|
|
4676
4768
|
description: "Read durable collaboration Tasks for this Space. Use the returned revision before changing a Task. Task phase is collaboration state, not Agent execution truth.",
|
|
@@ -4802,9 +4894,10 @@ function createDispatchSpaceTools(input = {}) {
|
|
|
4802
4894
|
}, env)));
|
|
4803
4895
|
server.registerTool("reply", {
|
|
4804
4896
|
title: "Reply in the current OpenMeld Space",
|
|
4805
|
-
description: "Record the exact final public message for the active Wake
|
|
4897
|
+
description: "Record the exact final public message for the active Wake. Shared Spaces default to a thread under the triggering message; set placement=conversation only when the user asks for the main conversation or the conclusion, decision, or blocker matters to the whole Space. Direct messages remain direct. Use real newlines. Omit recipient fields for a plain reply; use full Profile IDs from this Wake's send target reference when addressing recipients. Correct invalid arguments and retry; do not bypass denials or blindly resend an unknown outcome.",
|
|
4806
4898
|
inputSchema: {
|
|
4807
4899
|
message: z.string().min(1),
|
|
4900
|
+
placement: z.enum(["conversation", "thread"]).optional(),
|
|
4808
4901
|
files: z.array(spaceMessageFileReferenceSchema).max(10).optional(),
|
|
4809
4902
|
mentionTargets: z.array(z.string().min(1)).optional(),
|
|
4810
4903
|
referenceTargets: z.array(z.string().min(1)).optional(),
|
|
@@ -4817,10 +4910,11 @@ function createDispatchSpaceTools(input = {}) {
|
|
|
4817
4910
|
openWorldHint: false,
|
|
4818
4911
|
readOnlyHint: false
|
|
4819
4912
|
}
|
|
4820
|
-
}, async ({ files, mentionTargets, message, referenceTargets, wakeTargets }) => executeSpaceAction(() => recordDispatchSpaceReply({
|
|
4913
|
+
}, async ({ files, mentionTargets, message, placement, referenceTargets, wakeTargets }) => executeSpaceAction(() => recordDispatchSpaceReply({
|
|
4821
4914
|
env,
|
|
4822
4915
|
files,
|
|
4823
4916
|
mentionTargets,
|
|
4917
|
+
placement,
|
|
4824
4918
|
referenceTargets,
|
|
4825
4919
|
text: message,
|
|
4826
4920
|
wakeTargets
|
|
@@ -4866,7 +4960,7 @@ function createDispatchSpaceTools(input = {}) {
|
|
|
4866
4960
|
}
|
|
4867
4961
|
function createSpaceActionMcpServer() {
|
|
4868
4962
|
const context = readDispatchSpaceActionContextForReceiptFromEnv();
|
|
4869
|
-
const tools = createDispatchSpaceTools();
|
|
4963
|
+
const tools = createDispatchSpaceTools({ reportProgress: (update) => recordDispatchSpaceProgress(update) });
|
|
4870
4964
|
const server = new McpServer({
|
|
4871
4965
|
name: "openmeld-dispatch-space-action",
|
|
4872
4966
|
version: "1.0.0"
|
|
@@ -5659,6 +5753,6 @@ function isSameServiceIdentity(left, right) {
|
|
|
5659
5753
|
return left?.deviceId === right.deviceId && left.contractGeneration === right.contractGeneration;
|
|
5660
5754
|
}
|
|
5661
5755
|
//#endregion
|
|
5662
|
-
export {
|
|
5756
|
+
export { enqueueControllerTaskLifecycleEventWhileLocked as A, resolveAgentActivityDispatcherCommand as B, startDispatchSpaceProgressRelay as C, recordOpenMeldCreatedLocalAgentSession as D, discoverLocalAgentSessionProviders as E, unregisterAgentActivityRoute as F, AGENT_ACTIVITY_INTEGRATION_OWNER as I, defaultManagedIntegrationPaths as L, isAgentActivityRouteRegistered as M, registerAgentActivityRoute as N, readAgentActivityContextForPath as O, resolveAgentActivityRouteForPath as P, installAgentActivityIntegrations as R, prepareClaudeProjectContainer as S, syncLocalAgentActivity as T, uninstallAgentActivityIntegrations as V, markExecutionContextWorkspaceInUse as _, fetchSpaceUpdates as a, releaseExecutionContextWorkspace as b, materializeOrganizationSkillRelease as c, runSpaceActionHelp as d, runSpaceActionReply as f, runSpaceActionWake as g, runSpaceActionTargets as h, recordRuntimeReportingSuccess as i, readControllerTaskLifecycleOutboxHealth as j, removeAgentActivityContextCache as k, createDispatchSpaceTools as l, runSpaceActionStatus as m, recordRuntimeReportingFailure as n, createSpaceWorkingCopies as o, runSpaceActionSilent as p, recordRuntimeReportingNotApplicable as r, downloadWorkingCopyFile as s, readRuntimeReportingHealthState as t, runSpaceActionMcpServer as u, prepareExecutionContextWorkspace as v, startLocalAgentActivitySyncLoop as w, createLedgerIo as x, readExecutionContextWorkspace as y, readAgentActivityIntegrationStatus as z };
|
|
5663
5757
|
|
|
5664
|
-
//# sourceMappingURL=runtime-reporting-health-state-
|
|
5758
|
+
//# sourceMappingURL=runtime-reporting-health-state-_bvJcV1y.js.map
|