openmeld 0.3.243 → 0.3.246
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-FVD0x_9l.js → add-me-membership-C7dYkfPz.js} +2 -2
- package/dist/{add-me-membership-FVD0x_9l.js.map → add-me-membership-C7dYkfPz.js.map} +1 -1
- package/dist/{agents-Cfx3N1rf.js → agents-QisYIlFS.js} +10 -10
- package/dist/{agents-Cfx3N1rf.js.map → agents-QisYIlFS.js.map} +1 -1
- package/dist/{api-client-foundation-DjzQysm8.js → api-client-foundation-B1aTRrIy.js} +1 -1
- package/dist/{api-client-foundation-CytD8TbL.js → api-client-foundation-CYbEdm9o.js} +3 -3
- package/dist/{api-client-foundation-CytD8TbL.js.map → api-client-foundation-CYbEdm9o.js.map} +1 -1
- package/dist/auth-session-DUYOBXO3.js +4 -0
- package/dist/{auth-session-Injt39gv.js → auth-session-JhILeJRO.js} +3 -3
- package/dist/{auth-session-Injt39gv.js.map → auth-session-JhILeJRO.js.map} +1 -1
- package/dist/{channel-UCuauH8X.js → channel-C6tm9T7P.js} +4 -4
- package/dist/{channel-UCuauH8X.js.map → channel-C6tm9T7P.js.map} +1 -1
- package/dist/{cli-binary-manifest-ETxqCzfS.js → cli-binary-manifest-ChuzORh3.js} +2 -2
- package/dist/{cli-binary-manifest-ETxqCzfS.js.map → cli-binary-manifest-ChuzORh3.js.map} +1 -1
- package/dist/{cloud-computer-Tm9YAbeL.js → cloud-computer-J2tdcTPm.js} +4 -4
- package/dist/{cloud-computer-Tm9YAbeL.js.map → cloud-computer-J2tdcTPm.js.map} +1 -1
- package/dist/{command-DSAT4Dvl.js → command-BXJ-OwBD.js} +18 -18
- package/dist/{command-DSAT4Dvl.js.map → command-BXJ-OwBD.js.map} +1 -1
- package/dist/{computer-connection-CSa8O0op.js → computer-connection-BKtrn0d2.js} +2 -2
- package/dist/{computer-connection-CSa8O0op.js.map → computer-connection-BKtrn0d2.js.map} +1 -1
- package/dist/{computer-connection-review-pWI1btuC.js → computer-connection-review-bUqNKi6q.js} +5 -5
- package/dist/{computer-connection-review-pWI1btuC.js.map → computer-connection-review-bUqNKi6q.js.map} +1 -1
- package/dist/{computer-disconnect-Cahboj3J.js → computer-disconnect-D_Apsn9P.js} +7 -7
- package/dist/{computer-disconnect-Cahboj3J.js.map → computer-disconnect-D_Apsn9P.js.map} +1 -1
- package/dist/{computer-setup-continuation-DmKqN6Kf.js → computer-setup-continuation-occq0LmS.js} +3 -3
- package/dist/{computer-setup-continuation-DmKqN6Kf.js.map → computer-setup-continuation-occq0LmS.js.map} +1 -1
- package/dist/{context--QS-5kJ8.js → context-M7dvalCp.js} +4 -4
- package/dist/{context--QS-5kJ8.js.map → context-M7dvalCp.js.map} +1 -1
- package/dist/{control-plane-QqGL-jtT.js → control-plane-B93wmVS6.js} +2 -2
- package/dist/{control-plane-QqGL-jtT.js.map → control-plane-B93wmVS6.js.map} +1 -1
- package/dist/{daemon-device-id-Bo1QzbXB.js → daemon-device-id-C3gKch4E.js} +4 -4
- package/dist/{daemon-device-id-Bo1QzbXB.js.map → daemon-device-id-C3gKch4E.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-DFZyoyx9.js → daemon-lifecycle-journal-CGUuJshv.js} +7 -6
- package/dist/{daemon-lifecycle-journal-DFZyoyx9.js.map → daemon-lifecycle-journal-CGUuJshv.js.map} +1 -1
- package/dist/{daemon-service-runtime-Cn8K1WAb.js → daemon-service-runtime-CktU3ER4.js} +4 -4
- package/dist/{daemon-service-runtime-Cn8K1WAb.js.map → daemon-service-runtime-CktU3ER4.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-Bk4reE6J.js → daemon-service-update-coordinator-D0-15tZW.js} +13 -13
- package/dist/{daemon-service-update-coordinator-Bk4reE6J.js.map → daemon-service-update-coordinator-D0-15tZW.js.map} +1 -1
- package/dist/{dispatch-owned-runtime-CAgSp4Sk.js → dispatch-owned-runtime-gOluDX5_.js} +31 -22
- package/dist/dispatch-owned-runtime-gOluDX5_.js.map +1 -0
- package/dist/{dist-CfvQIuzK.js → dist-DMlKqjUf.js} +1 -1
- package/dist/{dist-D2adiC2P.js → dist-KibLweLD.js} +307 -199
- package/dist/dist-KibLweLD.js.map +1 -0
- package/dist/{dual-view-guide-catalog-D7DcI-F8.js → dual-view-guide-catalog-0kSizTFt.js} +4 -4
- package/dist/{dual-view-guide-catalog-D7DcI-F8.js.map → dual-view-guide-catalog-0kSizTFt.js.map} +1 -1
- package/dist/{elapsed-time-BvqrpioR.js → elapsed-time-Bo1CJczC.js} +4 -4
- package/dist/{elapsed-time-BvqrpioR.js.map → elapsed-time-Bo1CJczC.js.map} +1 -1
- package/dist/{entry-BSMXdz-n.js → entry-B11DkH2I.js} +7 -7
- package/dist/{entry-BSMXdz-n.js.map → entry-B11DkH2I.js.map} +1 -1
- package/dist/{installation-inventory-CUB5QFBF.js → installation-inventory-BZgQmVup.js} +3 -3
- package/dist/{installation-inventory-CUB5QFBF.js.map → installation-inventory-BZgQmVup.js.map} +1 -1
- package/dist/{installer-DslRR89F.js → installer-k2gOOs58.js} +2 -2
- package/dist/{installer-DslRR89F.js.map → installer-k2gOOs58.js.map} +1 -1
- package/dist/{local-components-DJiMS67S.js → local-components-jXECvlEY.js} +3 -2
- package/dist/local-components-jXECvlEY.js.map +1 -0
- package/dist/{meta-api-DcbI4Cjm.js → meta-api-DruuiAx-.js} +5 -5
- package/dist/{meta-api-DcbI4Cjm.js.map → meta-api-DruuiAx-.js.map} +1 -1
- package/dist/{openmeld-CpdXY6Fv.js → openmeld-DUdN78WD.js} +61 -40
- package/dist/{openmeld-CpdXY6Fv.js.map → openmeld-DUdN78WD.js.map} +1 -1
- package/dist/{openmeld-maintenance-worker-CJqQfm0t.js → openmeld-maintenance-worker-DwkvZD0q.js} +9 -9
- package/dist/{openmeld-maintenance-worker-CJqQfm0t.js.map → openmeld-maintenance-worker-DwkvZD0q.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-C8NHNJPy.js → openmeld-tools-update-join-BNUIw_Lo.js} +4 -4
- package/dist/{openmeld-tools-update-join-C8NHNJPy.js.map → openmeld-tools-update-join-BNUIw_Lo.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js → openmeld-tools-update-process-frame-BtYOlJXu.js} +2 -2
- package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js.map → openmeld-tools-update-process-frame-BtYOlJXu.js.map} +1 -1
- package/dist/{openmeld-tools-update-process-frame-Csy2XKUf.js → openmeld-tools-update-process-frame-CINV6Qt3.js} +1 -1
- package/dist/openmeld.js +5 -5
- package/dist/{prepare-provider-runtime-CDs1nV-P.js → prepare-provider-runtime-_XRIioDp.js} +1615 -1006
- package/dist/prepare-provider-runtime-_XRIioDp.js.map +1 -0
- package/dist/{prepare-session-executor-BLPG3mLl.js → prepare-session-executor-B5AjN0qz.js} +19 -19
- package/dist/{prepare-session-executor-BLPG3mLl.js.map → prepare-session-executor-B5AjN0qz.js.map} +1 -1
- package/dist/{process-channel-DyKbHNH7.js → process-channel-CTXWjlBP.js} +2 -2
- package/dist/{process-channel-DyKbHNH7.js.map → process-channel-CTXWjlBP.js.map} +1 -1
- package/dist/{runtime-CMxGDQR2.js → runtime-DCBc6YOq.js} +17 -17
- package/dist/{runtime-CMxGDQR2.js.map → runtime-DCBc6YOq.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-DVZfWBM7.js → runtime-agent-controller-reporting-submission-CGa3GGL6.js} +80 -19
- package/dist/runtime-agent-controller-reporting-submission-CGa3GGL6.js.map +1 -0
- package/dist/{runtime-transport-BPK70mkB.js → runtime-transport-BzCp9hM3.js} +3671 -3664
- package/dist/runtime-transport-BzCp9hM3.js.map +1 -0
- package/dist/{service-DzRwreWp.js → service-BEH6-P8U.js} +22 -22
- package/dist/{service-DzRwreWp.js.map → service-BEH6-P8U.js.map} +1 -1
- package/dist/{service-account-authorization-C6wZHidB.js → service-account-authorization-CtvSn02O.js} +2 -2
- package/dist/{service-account-authorization-C6wZHidB.js.map → service-account-authorization-CtvSn02O.js.map} +1 -1
- package/dist/{service-account-control-rYk3uHAE.js → service-account-control-BUPiFEGo.js} +9 -9
- package/dist/{service-account-control-rYk3uHAE.js.map → service-account-control-BUPiFEGo.js.map} +1 -1
- package/dist/{service-control-capabilities-BpqpJM9N.js → service-control-capabilities-D-Nhqqgo.js} +1 -1
- package/dist/{service-control-capabilities-JqmrqJGu.js → service-control-capabilities-PMvSlaJj.js} +3 -3
- package/dist/{service-control-capabilities-JqmrqJGu.js.map → service-control-capabilities-PMvSlaJj.js.map} +1 -1
- package/dist/{state-C-Esm899.js → state-C_iJAzKh.js} +2 -2
- package/dist/{state-C-Esm899.js.map → state-C_iJAzKh.js.map} +1 -1
- package/dist/{updates-api-DWLii54q.js → updates-api-s2-QB929.js} +69 -41
- package/dist/updates-api-s2-QB929.js.map +1 -0
- package/dist/upgrade-Dikfgr8z.js +4 -0
- package/dist/{upgrade-gwIwzrdg.js → upgrade-JmhCNmvs.js} +9 -9
- package/dist/{upgrade-gwIwzrdg.js.map → upgrade-JmhCNmvs.js.map} +1 -1
- package/package.json +13 -12
- package/skills/openmeld-cli/SKILL.md +3 -2
- package/skills/openmeld-cli/references/commands.md +20 -0
- package/dist/auth-session-j1EhJkpg.js +0 -4
- package/dist/dispatch-owned-runtime-CAgSp4Sk.js.map +0 -1
- package/dist/dist-D2adiC2P.js.map +0 -1
- package/dist/local-components-DJiMS67S.js.map +0 -1
- package/dist/prepare-provider-runtime-CDs1nV-P.js.map +0 -1
- package/dist/runtime-agent-controller-reporting-submission-DVZfWBM7.js.map +0 -1
- package/dist/runtime-transport-BPK70mkB.js.map +0 -1
- package/dist/updates-api-DWLii54q.js.map +0 -1
- package/dist/upgrade-Dw6-zvES.js +0 -4
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $n as
|
|
3
|
+
import { $n as resolveDispatchSpaceActionMcpServer, Sn as resolveInstalledCodexLaunchCandidates, Tt as withAgentActivityLocalStateLock, er as buildCliLaunchInvocation, ft as listProjectBindings, gn as resolveInstalledOpenCodeLaunchCandidates, ht as removeAgentActivityBindingsWhileDeliveryLocked, kn as resolveInstalledClaudeCodeLaunchCandidates, nr as resolveExecutablePathsOnPath, or as isDispatchSpaceActionDeliveryOnly, rr as listAgentControllerSupervisedProcessIds, vt as resolveProjectBindingForPath, wt as withAgentActivityDeliveryLock, yn as resolveInstalledGrokBuildLaunchCandidates } from "./prepare-provider-runtime-_XRIioDp.js";
|
|
4
4
|
import { g as toSpaceUpdatesUrl } from "./urls-CY2uzH2-.js";
|
|
5
5
|
import { F as resolveOpenMeldRootDir, k as organizationSkillReleaseDir, t as OPENMELD_HOME_ENV_KEY } from "./paths-De9xdA2h.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { d as getAuthSessionState } from "./auth-session-
|
|
10
|
-
import { o as dirnamePath } from "./daemon-device-id-
|
|
11
|
-
import { A as AgentActivitySubmissionResultsMismatchError, At as buildPublicSpaceEntryPath, D as drainAgentActivityHookInbox, F as removeProjectOutbox, I as readRecentAgentActivityHookStatus, L as createServiceGitEnvironment, M as deferAgentActivityOutbox, N as readAgentActivityOutboxHealth, P as readDueAgentActivityOutbox, S as resolveOpenCodeDatabasePath, T as normalizeSharedSessionTitle, a as DispatchSpaceActionClosedError, b as readOpenCodeSessionRows, d as readDispatchSpaceActionRecord, i as readDispatchOwnedRuntimeGuard, j as applyAgentActivitySubmissionResults, k as removeProjectInbox, l as readDispatchSpaceActionContextForReceiptFromEnv, mn as cliJsonErrorEnvelopeSchema, o as DispatchSpaceActionRejectedError, p as writeDispatchSpaceActionRecord, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, u as readDispatchSpaceActionContextFromEnv, v as scanLocalAgentActivity, w as resolveObservedAgentActivityBinding, y as startAgentActivityTranscriptWatchers } from "./dispatch-owned-runtime-
|
|
12
|
-
import { f as prepareRequestedSpaceSendFiles, h as spaceSendRequestReceiptSchema, l as parseJsonResponse, m as createCliSpaceApi, p as uploadPreparedSpaceFiles, s as readGatewayTextResponse, t as fetchSpaceMeta, u as resolveSpaceSendText } from "./meta-api-
|
|
6
|
+
import { Ci as spaceFileRevisionNumberSchema, Ei as spaceMessageFileReferenceSchema, Jt as SPACE_WORK_MAX_BYTES, Mn as executionContextAssignmentSchema, Pn as executionContextTaskSchema, Qt as spaceWorkingCopyResultSchema, Xt as spaceWorkRelativePathSchema, Zt as spaceWorkSelectionSchema, si as readSpaceFileTextResponseSchema, tn as spaceThreadEvidenceRequestSchema, yi as spaceFileEntryIdSchema } from "./runtime-transport-BzCp9hM3.js";
|
|
7
|
+
import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-B93wmVS6.js";
|
|
8
|
+
import { $n as buildSpaceThreadEvidence, Dr as mutateSpaceTaskBodySchema, Er as createSpaceTaskBodySchema, Ki as signalTextEnvelopeSchema, Lt as createAgentActivityApi, Or as spaceTaskIdSchema, Pr as spaceThreadEvidenceResponseSchema, Qn as buildSpaceMessageEvidence, Yr as organizationSkillBundleSchema, di as submitAgentControllerTaskLifecycleEventItemSchema, dr as getSpaceUpdatesResponseSchema, in as createOrganizationSkillsApi, kr as spaceTaskMutationReceiptSchema, pn as createRuntimeReportingApi, pr as openDirectMessageSpaceBodySchema, qt as createDirectMessageApi, rn as createOrganizationDocumentsApi, sr as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, t as OpenMeldApiClientHttpError, ti as stringifyOrganizationSkillBundleCanonicalJson, xi as observedLocalAgentSessionSchema } from "./dist-KibLweLD.js";
|
|
9
|
+
import { d as getAuthSessionState } from "./auth-session-JhILeJRO.js";
|
|
10
|
+
import { o as dirnamePath } from "./daemon-device-id-C3gKch4E.js";
|
|
11
|
+
import { A as AgentActivitySubmissionResultsMismatchError, At as buildPublicSpaceEntryPath, D as drainAgentActivityHookInbox, F as removeProjectOutbox, I as readRecentAgentActivityHookStatus, L as createServiceGitEnvironment, M as deferAgentActivityOutbox, N as readAgentActivityOutboxHealth, P as readDueAgentActivityOutbox, S as resolveOpenCodeDatabasePath, T as normalizeSharedSessionTitle, a as DispatchSpaceActionClosedError, b as readOpenCodeSessionRows, d as readDispatchSpaceActionRecord, i as readDispatchOwnedRuntimeGuard, j as applyAgentActivitySubmissionResults, k as removeProjectInbox, l as readDispatchSpaceActionContextForReceiptFromEnv, mn as cliJsonErrorEnvelopeSchema, o as DispatchSpaceActionRejectedError, p as writeDispatchSpaceActionRecord, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, u as readDispatchSpaceActionContextFromEnv, v as scanLocalAgentActivity, w as resolveObservedAgentActivityBinding, y as startAgentActivityTranscriptWatchers } from "./dispatch-owned-runtime-gOluDX5_.js";
|
|
12
|
+
import { f as prepareRequestedSpaceSendFiles, h as spaceSendRequestReceiptSchema, l as parseJsonResponse, m as createCliSpaceApi, p as uploadPreparedSpaceFiles, s as readGatewayTextResponse, t as fetchSpaceMeta, u as resolveSpaceSendText } from "./meta-api-DruuiAx-.js";
|
|
13
13
|
import { d as runWithHeldLock, s as releaseLock, t as acquireLock } from "./lock-BMI00i2F.js";
|
|
14
14
|
import { a as resolveBaseUrl } from "./base-url-0AoeTi3w.js";
|
|
15
|
-
import { a as requireOpenMeldProfile, n as resolveRuntimeContext } from "./context
|
|
15
|
+
import { a as requireOpenMeldProfile, n as resolveRuntimeContext } from "./context-M7dvalCp.js";
|
|
16
16
|
import { l as resolveUserFacingCliEntryCommand, n as formatOpenMeldCliCommand } from "./cli-entry-command-CR_9QU1i.js";
|
|
17
17
|
import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
|
|
18
18
|
import { _ as daemonRuntimeStateRootPath } from "./daemon-state-Dte9re5V.js";
|
|
19
19
|
import { o as outLine, t as createPresenter } from "./presenter-BcxiQyJg.js";
|
|
20
|
-
import { d as buildOpenMeldRequestContextFromProfile, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-
|
|
20
|
+
import { d as buildOpenMeldRequestContextFromProfile, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-CYbEdm9o.js";
|
|
21
21
|
import { i as readDaemonServiceContract } from "./daemon-service-contract-COPKbCy_.js";
|
|
22
22
|
import { createHash, randomBytes, randomUUID } from "node:crypto";
|
|
23
23
|
import { homedir } from "node:os";
|
|
@@ -157,7 +157,8 @@ const dispatchSpaceHistoryResultSchema = z$1.strictObject({
|
|
|
157
157
|
//#region ../../packages/schemas/dist/schemas/space-mesh/dispatch-space-read-result.js
|
|
158
158
|
const dispatchSpaceReadResultRequestSchema = z$1.strictObject({
|
|
159
159
|
resultId: z$1.string().uuid(),
|
|
160
|
-
offset: z$1.number().int().nonnegative()
|
|
160
|
+
offset: z$1.number().int().nonnegative(),
|
|
161
|
+
query: z$1.string().min(1).max(256).optional()
|
|
161
162
|
});
|
|
162
163
|
/** A byte cursor addresses one immutable JSON snapshot, not a local file. */
|
|
163
164
|
const dispatchSpaceReadResultPageSchema = z$1.strictObject({
|
|
@@ -169,8 +170,21 @@ const dispatchSpaceReadResultPageSchema = z$1.strictObject({
|
|
|
169
170
|
});
|
|
170
171
|
const dispatchSpaceReadResultSchema = z$1.strictObject({
|
|
171
172
|
result: z$1.record(z$1.string(), z$1.unknown()).optional(),
|
|
172
|
-
page: dispatchSpaceReadResultPageSchema.optional()
|
|
173
|
-
|
|
173
|
+
page: dispatchSpaceReadResultPageSchema.optional(),
|
|
174
|
+
search: z$1.strictObject({
|
|
175
|
+
resultId: z$1.string().uuid(),
|
|
176
|
+
query: z$1.string(),
|
|
177
|
+
nextOffset: z$1.number().int().positive().nullable(),
|
|
178
|
+
matches: z$1.array(z$1.strictObject({
|
|
179
|
+
matchOffset: z$1.number().int().nonnegative(),
|
|
180
|
+
excerpt: dispatchSpaceReadResultPageSchema
|
|
181
|
+
})).max(2)
|
|
182
|
+
}).optional()
|
|
183
|
+
}).refine((value) => [
|
|
184
|
+
value.result,
|
|
185
|
+
value.page,
|
|
186
|
+
value.search
|
|
187
|
+
].filter((item) => item !== void 0).length === 1, { message: "A read returns a complete result, a continuation page, or a search excerpt." });
|
|
174
188
|
//#endregion
|
|
175
189
|
//#region src/agent-activity/managed-integrations.ts
|
|
176
190
|
const AGENT_ACTIVITY_INTEGRATION_OWNER = "openmeld-agent-activity-v1";
|
|
@@ -4943,7 +4957,7 @@ var DispatchReadResults = class {
|
|
|
4943
4957
|
this.#bytes += bytes.length;
|
|
4944
4958
|
return this.#page(resultId, 0);
|
|
4945
4959
|
}
|
|
4946
|
-
async read(resultId, offset) {
|
|
4960
|
+
async read(resultId, offset, query) {
|
|
4947
4961
|
const snapshot = this.#requireSnapshot(resultId, offset);
|
|
4948
4962
|
const current = await snapshot.revalidate();
|
|
4949
4963
|
if (current.isError || !Buffer.from(JSON.stringify(readValue(current))).equals(snapshot.bytes)) {
|
|
@@ -4951,17 +4965,38 @@ var DispatchReadResults = class {
|
|
|
4951
4965
|
this.#snapshots.delete(resultId);
|
|
4952
4966
|
throw new Error("The source is no longer accessible or its selected version changed. No cached page was disclosed. Read the source again.");
|
|
4953
4967
|
}
|
|
4954
|
-
return this.#page(resultId, offset);
|
|
4968
|
+
if (query === void 0) return this.#page(resultId, offset);
|
|
4969
|
+
let matchOffset = snapshot.bytes.indexOf(query, offset, "utf8");
|
|
4970
|
+
const matches = [];
|
|
4971
|
+
while (matchOffset !== -1 && matches.length < 2) {
|
|
4972
|
+
let start = Math.max(0, matchOffset - 256);
|
|
4973
|
+
while (isUtf8Continuation(snapshot.bytes[start])) start -= 1;
|
|
4974
|
+
snapshot.offsets.add(start);
|
|
4975
|
+
const excerpt = dispatchSpaceReadResultPageSchema.parse(this.#page(resultId, start, 3 * 1024).structuredContent?.page);
|
|
4976
|
+
matches.push({
|
|
4977
|
+
matchOffset,
|
|
4978
|
+
excerpt
|
|
4979
|
+
});
|
|
4980
|
+
matchOffset = snapshot.bytes.indexOf(query, matchOffset + Buffer.byteLength(query), "utf8");
|
|
4981
|
+
}
|
|
4982
|
+
const nextOffset = matchOffset === -1 ? null : matchOffset;
|
|
4983
|
+
if (nextOffset !== null) snapshot.offsets.add(nextOffset);
|
|
4984
|
+
return this.#result({ search: {
|
|
4985
|
+
resultId,
|
|
4986
|
+
query,
|
|
4987
|
+
nextOffset,
|
|
4988
|
+
matches
|
|
4989
|
+
} });
|
|
4955
4990
|
}
|
|
4956
4991
|
#requireSnapshot(resultId, offset) {
|
|
4957
4992
|
const snapshot = this.#snapshots.get(resultId);
|
|
4958
4993
|
if (!snapshot?.offsets.has(offset)) throw new Error("This result or offset is unavailable in the current tool invocation. Use a returned nextOffset, or read the source again; do not open a local file.");
|
|
4959
4994
|
return snapshot;
|
|
4960
4995
|
}
|
|
4961
|
-
#page(resultId, offset) {
|
|
4996
|
+
#page(resultId, offset, limit = PAGE_BYTES) {
|
|
4962
4997
|
const snapshot = this.#requireSnapshot(resultId, offset);
|
|
4963
4998
|
const { bytes } = snapshot;
|
|
4964
|
-
let end = Math.min(offset +
|
|
4999
|
+
let end = Math.min(offset + limit, bytes.length);
|
|
4965
5000
|
while (true) {
|
|
4966
5001
|
while (end < bytes.length && isUtf8Continuation(bytes[end])) end -= 1;
|
|
4967
5002
|
const nextOffset = end === bytes.length ? null : end;
|
|
@@ -4972,7 +5007,7 @@ var DispatchReadResults = class {
|
|
|
4972
5007
|
totalBytes: bytes.length,
|
|
4973
5008
|
text: bytes.subarray(offset, end).toString("utf8")
|
|
4974
5009
|
} });
|
|
4975
|
-
if (Buffer.byteLength(JSON.stringify(value)) <=
|
|
5010
|
+
if (Buffer.byteLength(JSON.stringify(value)) <= limit) {
|
|
4976
5011
|
if (nextOffset !== null) snapshot.offsets.add(nextOffset);
|
|
4977
5012
|
return this.#result(value);
|
|
4978
5013
|
}
|
|
@@ -5098,6 +5133,15 @@ async function runDispatchWorkingCopy(action, resolution, env = process.env) {
|
|
|
5098
5133
|
//#endregion
|
|
5099
5134
|
//#region src/space/action-mcp-server.ts
|
|
5100
5135
|
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.";
|
|
5136
|
+
const PAGED_READ_TOOLS = /* @__PURE__ */ new Set([
|
|
5137
|
+
"read_history",
|
|
5138
|
+
"read_evidence",
|
|
5139
|
+
"read_thread",
|
|
5140
|
+
"read_file",
|
|
5141
|
+
"list_tasks",
|
|
5142
|
+
"read_documents",
|
|
5143
|
+
"read_skills"
|
|
5144
|
+
]);
|
|
5101
5145
|
/** Every carrier uses the same schemas, validation, authority and recorder. */
|
|
5102
5146
|
var DispatchSpaceTools = class {
|
|
5103
5147
|
tools = [];
|
|
@@ -5119,22 +5163,14 @@ var DispatchSpaceTools = class {
|
|
|
5119
5163
|
"read_receipt"
|
|
5120
5164
|
].includes(name)) return;
|
|
5121
5165
|
const inputSchema = config.inputSchema instanceof z.ZodObject ? config.inputSchema : z.strictObject(config.inputSchema);
|
|
5122
|
-
const pagedRead =
|
|
5123
|
-
"read_history",
|
|
5124
|
-
"read_evidence",
|
|
5125
|
-
"read_thread",
|
|
5126
|
-
"read_file",
|
|
5127
|
-
"list_tasks",
|
|
5128
|
-
"read_documents",
|
|
5129
|
-
"read_skills"
|
|
5130
|
-
].includes(name);
|
|
5166
|
+
const pagedRead = PAGED_READ_TOOLS.has(name);
|
|
5131
5167
|
this.tools.push({
|
|
5132
5168
|
...config,
|
|
5133
5169
|
name,
|
|
5134
5170
|
inputSchema,
|
|
5135
5171
|
...pagedRead ? {
|
|
5136
5172
|
outputSchema: dispatchSpaceReadResultSchema,
|
|
5137
|
-
description: `${config.description} Small reads return result; large reads return page.
|
|
5173
|
+
description: `${config.description} Small reads return result; large reads return page. Use read_result with a query to locate relevant original text, or page.nextOffset to continue reading. No local file is needed.`
|
|
5138
5174
|
} : {}
|
|
5139
5175
|
});
|
|
5140
5176
|
this.#handlers.set(name, (args) => {
|
|
@@ -5154,15 +5190,7 @@ var DispatchSpaceTools = class {
|
|
|
5154
5190
|
if (!handler) return executeSpaceAction(() => {
|
|
5155
5191
|
throw new DispatchSpaceActionRejectedError("space_action.not_allowed", "This tool is not available in the current invocation. Final communication uses reply or stay_silent, subject to the existing Space policy.");
|
|
5156
5192
|
}, this.#env);
|
|
5157
|
-
const pagedRead =
|
|
5158
|
-
"read_history",
|
|
5159
|
-
"read_evidence",
|
|
5160
|
-
"read_thread",
|
|
5161
|
-
"read_file",
|
|
5162
|
-
"list_tasks",
|
|
5163
|
-
"read_documents",
|
|
5164
|
-
"read_skills"
|
|
5165
|
-
].includes(name);
|
|
5193
|
+
const pagedRead = PAGED_READ_TOOLS.has(name);
|
|
5166
5194
|
if (pagedRead || name === "read_result") try {
|
|
5167
5195
|
readDispatchSpaceActionContextFromEnv(this.#env);
|
|
5168
5196
|
const result = await handler(args);
|
|
@@ -5182,8 +5210,8 @@ var DispatchSpaceTools = class {
|
|
|
5182
5210
|
}
|
|
5183
5211
|
registerResultReader() {
|
|
5184
5212
|
this.registerTool("read_result", {
|
|
5185
|
-
title: "
|
|
5186
|
-
description: "Read
|
|
5213
|
+
title: "Read or search a large Space tool result",
|
|
5214
|
+
description: "Read original JSON from a large Space tool result. For targeted lookup, pass query (case-sensitive literal text in serialized JSON, not regex) and offset 0. Search returns up to two matches with surrounding original text, not a complete answer or summary. Use search.nextOffset with the same query for later matches, including corrections; null means no further exact matches. Each match.excerpt.nextOffset with no query reads more surrounding text. Empty matches do not prove absence of related facts: try other terms or read complete pages for broader questions. Omit query to page through the full JSON: start at 0, then append page.text using each nextOffset. Offsets are UTF-8 bytes and must be 0 or a returned offset. No local path or shell is needed. The snapshot belongs only to this active Wake and tool connection; after expiry or eviction, read the source again. Source access and version are rechecked on every call. Does not publish or repeat an operation.",
|
|
5187
5215
|
inputSchema: dispatchSpaceReadResultRequestSchema,
|
|
5188
5216
|
outputSchema: dispatchSpaceReadResultSchema,
|
|
5189
5217
|
annotations: {
|
|
@@ -5192,7 +5220,7 @@ var DispatchSpaceTools = class {
|
|
|
5192
5220
|
idempotentHint: true,
|
|
5193
5221
|
openWorldHint: false
|
|
5194
5222
|
}
|
|
5195
|
-
}, async ({ resultId, offset }) => this.#readResults.read(resultId, offset));
|
|
5223
|
+
}, async ({ resultId, offset, query }) => this.#readResults.read(resultId, offset, query));
|
|
5196
5224
|
}
|
|
5197
5225
|
close() {
|
|
5198
5226
|
this.#closed = true;
|
|
@@ -6325,4 +6353,4 @@ async function fetchSpaceUpdates(input) {
|
|
|
6325
6353
|
//#endregion
|
|
6326
6354
|
export { readAgentActivityContextForPath as A, installAgentActivityIntegrations as B, recordRuntimeReportingNotApplicable as C, syncLocalAgentActivity as D, startLocalAgentActivitySyncLoop as E, registerAgentActivityRoute as F, resolveAgentActivityDispatcherCommand as H, resolveAgentActivityRouteForPath as I, unregisterAgentActivityRoute as L, enqueueControllerTaskLifecycleEventWhileLocked as M, readControllerTaskLifecycleOutboxHealth as N, discoverLocalAgentSessionProviders as O, isAgentActivityRouteRegistered as P, AGENT_ACTIVITY_INTEGRATION_OWNER as R, recordRuntimeReportingFailure as S, createLedgerIo as T, uninstallAgentActivityIntegrations as U, readAgentActivityIntegrationStatus as V, readExecutionContextWorkspace as _, createDispatchSpaceTools as a, startDispatchSpaceProgressRelay as b, runDirectMessage as c, runSpaceActionSilent as d, runSpaceActionStatus as f, prepareExecutionContextWorkspace as g, markExecutionContextWorkspaceInUse as h, materializeOrganizationSkillRelease as i, removeAgentActivityContextCache as j, recordOpenMeldCreatedLocalAgentSession as k, runSpaceActionHelp as l, runSpaceActionWake as m, createSpaceWorkingCopies as n, runSpaceActionMcpServer as o, runSpaceActionTargets as p, downloadWorkingCopyFile as r, readTaskKnowledge as s, fetchSpaceUpdates as t, runSpaceActionReply as u, releaseExecutionContextWorkspace as v, recordRuntimeReportingSuccess as w, readRuntimeReportingHealthState as x, prepareClaudeProjectContainer as y, defaultManagedIntegrationPaths as z };
|
|
6327
6355
|
|
|
6328
|
-
//# sourceMappingURL=updates-api-
|
|
6356
|
+
//# sourceMappingURL=updates-api-s2-QB929.js.map
|