openmeld 0.3.244 → 0.3.247

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/{add-me-membership-CWS97GK8.js → add-me-membership-DUeJA9q4.js} +2 -2
  2. package/dist/{add-me-membership-CWS97GK8.js.map → add-me-membership-DUeJA9q4.js.map} +1 -1
  3. package/dist/{agents-BoapsuRq.js → agents-woAcH0O6.js} +10 -10
  4. package/dist/{agents-BoapsuRq.js.map → agents-woAcH0O6.js.map} +1 -1
  5. package/dist/{api-client-foundation-BYTxVhem.js → api-client-foundation-DMEfIARh.js} +3 -3
  6. package/dist/{api-client-foundation-BYTxVhem.js.map → api-client-foundation-DMEfIARh.js.map} +1 -1
  7. package/dist/{api-client-foundation-DDdQCc2T.js → api-client-foundation-mqLjUunz.js} +1 -1
  8. package/dist/{auth-session-CpKxiYC2.js → auth-session-D7hlE-47.js} +3 -3
  9. package/dist/{auth-session-CpKxiYC2.js.map → auth-session-D7hlE-47.js.map} +1 -1
  10. package/dist/auth-session-DXxmGll1.js +4 -0
  11. package/dist/{channel-BXovlRXN.js → channel-BeUv2bLR.js} +4 -4
  12. package/dist/{channel-BXovlRXN.js.map → channel-BeUv2bLR.js.map} +1 -1
  13. package/dist/{cli-binary-manifest-ETxqCzfS.js → cli-binary-manifest-ChuzORh3.js} +2 -2
  14. package/dist/{cli-binary-manifest-ETxqCzfS.js.map → cli-binary-manifest-ChuzORh3.js.map} +1 -1
  15. package/dist/{cloud-computer-D2VuZov1.js → cloud-computer-C81_vVOV.js} +4 -4
  16. package/dist/{cloud-computer-D2VuZov1.js.map → cloud-computer-C81_vVOV.js.map} +1 -1
  17. package/dist/{command-BZvpjGWe.js → command-qNknO9gl.js} +16 -16
  18. package/dist/{command-BZvpjGWe.js.map → command-qNknO9gl.js.map} +1 -1
  19. package/dist/{computer-connection-Cd5R-jnA.js → computer-connection-WpsIQfkh.js} +2 -2
  20. package/dist/{computer-connection-Cd5R-jnA.js.map → computer-connection-WpsIQfkh.js.map} +1 -1
  21. package/dist/{computer-connection-review-lBDHLC0c.js → computer-connection-review-Df2G8VWY.js} +5 -5
  22. package/dist/{computer-connection-review-lBDHLC0c.js.map → computer-connection-review-Df2G8VWY.js.map} +1 -1
  23. package/dist/{computer-disconnect-C6OH3940.js → computer-disconnect-ttAH9WgN.js} +7 -7
  24. package/dist/{computer-disconnect-C6OH3940.js.map → computer-disconnect-ttAH9WgN.js.map} +1 -1
  25. package/dist/{computer-setup-continuation-BsSM1pzW.js → computer-setup-continuation-tbuUZSe5.js} +3 -3
  26. package/dist/{computer-setup-continuation-BsSM1pzW.js.map → computer-setup-continuation-tbuUZSe5.js.map} +1 -1
  27. package/dist/{context-BbodhIFX.js → context-x0T_qTHp.js} +4 -4
  28. package/dist/{context-BbodhIFX.js.map → context-x0T_qTHp.js.map} +1 -1
  29. package/dist/{control-plane-TOfZ-veG.js → control-plane-B93wmVS6.js} +2 -2
  30. package/dist/{control-plane-TOfZ-veG.js.map → control-plane-B93wmVS6.js.map} +1 -1
  31. package/dist/{daemon-device-id-DwMFWGI5.js → daemon-device-id-DgwvQllt.js} +5 -5
  32. package/dist/{daemon-device-id-DwMFWGI5.js.map → daemon-device-id-DgwvQllt.js.map} +1 -1
  33. package/dist/{daemon-lifecycle-journal-NJaimyPD.js → daemon-lifecycle-journal-C32I8p4n.js} +7 -6
  34. package/dist/{daemon-lifecycle-journal-NJaimyPD.js.map → daemon-lifecycle-journal-C32I8p4n.js.map} +1 -1
  35. package/dist/{daemon-service-runtime-COC1JtWX.js → daemon-service-runtime-DVqzJKke.js} +4 -4
  36. package/dist/{daemon-service-runtime-COC1JtWX.js.map → daemon-service-runtime-DVqzJKke.js.map} +1 -1
  37. package/dist/{daemon-service-update-coordinator-BmZHGGiO.js → daemon-service-update-coordinator-BTlVzU-7.js} +17 -17
  38. package/dist/daemon-service-update-coordinator-BTlVzU-7.js.map +1 -0
  39. package/dist/{dispatch-owned-runtime-dLHDTL7f.js → dispatch-owned-runtime-g2lLeYtx.js} +211 -65
  40. package/dist/dispatch-owned-runtime-g2lLeYtx.js.map +1 -0
  41. package/dist/dist-CXB_bdSS.js +4 -0
  42. package/dist/{dist-Cu_yzOuS.js → dist-DGeoVaIx.js} +521 -288
  43. package/dist/dist-DGeoVaIx.js.map +1 -0
  44. package/dist/{dual-view-guide-catalog-8Pr5QO_z.js → dual-view-guide-catalog-CkcY09Kh.js} +4 -4
  45. package/dist/{dual-view-guide-catalog-8Pr5QO_z.js.map → dual-view-guide-catalog-CkcY09Kh.js.map} +1 -1
  46. package/dist/{elapsed-time-DCufUrLA.js → elapsed-time-BMG1CU23.js} +4 -4
  47. package/dist/{elapsed-time-DCufUrLA.js.map → elapsed-time-BMG1CU23.js.map} +1 -1
  48. package/dist/{entry-CJ289WR7.js → entry-CP7_Vgs4.js} +7 -7
  49. package/dist/{entry-CJ289WR7.js.map → entry-CP7_Vgs4.js.map} +1 -1
  50. package/dist/{installation-inventory-dvcGmUBg.js → installation-inventory-7JOtUjyG.js} +3 -3
  51. package/dist/{installation-inventory-dvcGmUBg.js.map → installation-inventory-7JOtUjyG.js.map} +1 -1
  52. package/dist/{installer-D0fh4fzg.js → installer-BRpAz1X_.js} +2 -2
  53. package/dist/{installer-D0fh4fzg.js.map → installer-BRpAz1X_.js.map} +1 -1
  54. package/dist/{local-components-DJiMS67S.js → local-components-jXECvlEY.js} +3 -2
  55. package/dist/local-components-jXECvlEY.js.map +1 -0
  56. package/dist/{meta-api-BdH7IJMv.js → meta-api-QskBmfuf.js} +5 -5
  57. package/dist/{meta-api-BdH7IJMv.js.map → meta-api-QskBmfuf.js.map} +1 -1
  58. package/dist/{open-code-permission-DHFJYc_o.js → open-code-permission-B5f1e5an.js} +2 -31
  59. package/dist/open-code-permission-B5f1e5an.js.map +1 -0
  60. package/dist/{openmeld-DQPDws0E.js → openmeld-BxTCCHMn.js} +224 -69
  61. package/dist/openmeld-BxTCCHMn.js.map +1 -0
  62. package/dist/{openmeld-maintenance-worker-ALfbSMyQ.js → openmeld-maintenance-worker-BQ2YbwA9.js} +9 -9
  63. package/dist/{openmeld-maintenance-worker-ALfbSMyQ.js.map → openmeld-maintenance-worker-BQ2YbwA9.js.map} +1 -1
  64. package/dist/{openmeld-tools-update-join-Cezc7ARc.js → openmeld-tools-update-join-Dj-MEQW_.js} +4 -4
  65. package/dist/{openmeld-tools-update-join-Cezc7ARc.js.map → openmeld-tools-update-join-Dj-MEQW_.js.map} +1 -1
  66. package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js → openmeld-tools-update-process-frame-BtYOlJXu.js} +2 -2
  67. package/dist/{openmeld-tools-update-process-frame-YLOS82E3.js.map → openmeld-tools-update-process-frame-BtYOlJXu.js.map} +1 -1
  68. package/dist/{openmeld-tools-update-process-frame-Csy2XKUf.js → openmeld-tools-update-process-frame-CINV6Qt3.js} +1 -1
  69. package/dist/openmeld.js +5 -5
  70. package/dist/{prepare-provider-runtime-Cko0dLXN.js → prepare-provider-runtime-B6_dfpiZ.js} +1679 -1018
  71. package/dist/prepare-provider-runtime-B6_dfpiZ.js.map +1 -0
  72. package/dist/{prepare-session-executor-B-TWlSSd.js → prepare-session-executor-DA9saGAk.js} +19 -19
  73. package/dist/{prepare-session-executor-B-TWlSSd.js.map → prepare-session-executor-DA9saGAk.js.map} +1 -1
  74. package/dist/{process-channel-z_4u04-k.js → process-channel-HthE5ehS.js} +2 -2
  75. package/dist/{process-channel-z_4u04-k.js.map → process-channel-HthE5ehS.js.map} +1 -1
  76. package/dist/{runtime-C6SS6jm6.js → runtime-C7lY_Z2r.js} +104 -21
  77. package/dist/{runtime-C6SS6jm6.js.map → runtime-C7lY_Z2r.js.map} +1 -1
  78. package/dist/{runtime-agent-controller-reporting-submission-Cyb5OuVp.js → runtime-agent-controller-reporting-submission-IhxMO4UA.js} +80 -19
  79. package/dist/runtime-agent-controller-reporting-submission-IhxMO4UA.js.map +1 -0
  80. package/dist/{runtime-transport-DYbpUYBL.js → runtime-transport-DRb5__yP.js} +214 -37
  81. package/dist/runtime-transport-DRb5__yP.js.map +1 -0
  82. package/dist/{service-DjqXdt6p.js → service-DveGEdh3.js} +315 -24
  83. package/dist/service-DveGEdh3.js.map +1 -0
  84. package/dist/{service-account-authorization-BZFLy1E7.js → service-account-authorization-CAVkiKSF.js} +2 -2
  85. package/dist/{service-account-authorization-BZFLy1E7.js.map → service-account-authorization-CAVkiKSF.js.map} +1 -1
  86. package/dist/{service-account-control-CsXtCjRi.js → service-account-control-BtE73wcO.js} +9 -9
  87. package/dist/{service-account-control-CsXtCjRi.js.map → service-account-control-BtE73wcO.js.map} +1 -1
  88. package/dist/{service-control-capabilities-Ck-KcBXg.js → service-control-capabilities-BQrqIGBP.js} +3 -3
  89. package/dist/{service-control-capabilities-Ck-KcBXg.js.map → service-control-capabilities-BQrqIGBP.js.map} +1 -1
  90. package/dist/{service-control-capabilities-C4SOrFHN.js → service-control-capabilities-adDptMIH.js} +1 -1
  91. package/dist/{state-BmiyrHe4.js → state-DWwNdCy5.js} +2 -2
  92. package/dist/{state-BmiyrHe4.js.map → state-DWwNdCy5.js.map} +1 -1
  93. package/dist/{updates-api-DD3p5dx5.js → updates-api-9midbUU1.js} +71 -167
  94. package/dist/updates-api-9midbUU1.js.map +1 -0
  95. package/dist/upgrade-BvpBhL0U.js +4 -0
  96. package/dist/{upgrade-DIt6nkyo.js → upgrade-H-_QW75e.js} +9 -9
  97. package/dist/{upgrade-DIt6nkyo.js.map → upgrade-H-_QW75e.js.map} +1 -1
  98. package/package.json +13 -12
  99. package/skills/openmeld-cli/SKILL.md +5 -2
  100. package/skills/openmeld-cli/playbooks/computer.md +55 -0
  101. package/skills/openmeld-cli/playbooks/plugins.md +37 -0
  102. package/skills/openmeld-cli/references/commands.md +20 -0
  103. package/dist/auth-session-EhHX7q2K.js +0 -4
  104. package/dist/daemon-service-update-coordinator-BmZHGGiO.js.map +0 -1
  105. package/dist/dispatch-owned-runtime-dLHDTL7f.js.map +0 -1
  106. package/dist/dist-BDix0nxy.js +0 -4
  107. package/dist/dist-Cu_yzOuS.js.map +0 -1
  108. package/dist/local-components-DJiMS67S.js.map +0 -1
  109. package/dist/open-code-permission-DHFJYc_o.js.map +0 -1
  110. package/dist/openmeld-DQPDws0E.js.map +0 -1
  111. package/dist/prepare-provider-runtime-Cko0dLXN.js.map +0 -1
  112. package/dist/runtime-agent-controller-reporting-submission-Cyb5OuVp.js.map +0 -1
  113. package/dist/runtime-transport-DYbpUYBL.js.map +0 -1
  114. package/dist/service-DjqXdt6p.js.map +0 -1
  115. package/dist/updates-api-DD3p5dx5.js.map +0 -1
  116. package/dist/upgrade-3z755G8g.js +0 -4
@@ -1,23 +1,23 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { $n as resolveExecutablePathsOnPath, On as resolveInstalledClaudeCodeLaunchCandidates, Tt as withAgentActivityLocalStateLock, Xn as resolveDispatchSpaceActionMcpServer, Zn as buildCliLaunchInvocation, er as listAgentControllerSupervisedProcessIds, ft as listProjectBindings, hn as resolveInstalledOpenCodeLaunchCandidates, ht as removeAgentActivityBindingsWhileDeliveryLocked, rr as isDispatchSpaceActionDeliveryOnly, vn as resolveInstalledGrokBuildLaunchCandidates, vt as resolveProjectBindingForPath, wt as withAgentActivityDeliveryLock, xn as resolveInstalledCodexLaunchCandidates } from "./prepare-provider-runtime-Cko0dLXN.js";
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-B6_dfpiZ.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 { Nn as executionContextTaskSchema, Si as spaceFileRevisionNumberSchema, Ti as spaceMessageFileReferenceSchema, Xt as spaceWorkSelectionSchema, Yt as spaceWorkRelativePathSchema, Zt as spaceWorkingCopyResultSchema, en as spaceThreadEvidenceRequestSchema, jn as executionContextAssignmentSchema, oi as readSpaceFileTextResponseSchema, qt as SPACE_WORK_MAX_BYTES, vi as spaceFileEntryIdSchema } from "./runtime-transport-DYbpUYBL.js";
7
- import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-TOfZ-veG.js";
8
- import { $n as buildSpaceThreadEvidence, Dr as mutateSpaceTaskBodySchema, Er as createSpaceTaskBodySchema, Hi 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-Cu_yzOuS.js";
9
- import { d as getAuthSessionState } from "./auth-session-CpKxiYC2.js";
10
- import { o as dirnamePath } from "./daemon-device-id-DwMFWGI5.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-dLHDTL7f.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-BdH7IJMv.js";
6
+ import { Ai as spaceMessageFileReferenceSchema, Ci as spaceFileEntryIdSchema, Di as spaceFileRevisionNumberSchema, Fn as executionContextAssignmentSchema, Jt as SPACE_WORK_MAX_BYTES, Ln as executionContextTaskSchema, Qt as spaceWorkingCopyResultSchema, Xt as spaceWorkRelativePathSchema, Zt as spaceWorkSelectionSchema, di as readSpaceFileTextResponseSchema, tn as spaceThreadEvidenceRequestSchema } from "./runtime-transport-DRb5__yP.js";
7
+ import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-B93wmVS6.js";
8
+ import { $n as buildSpaceMessageEvidence, Ar as spaceTaskMutationReceiptSchema, Dr as createSpaceTaskBodySchema, Lt as createAgentActivityApi, Or as mutateSpaceTaskBodySchema, Wr as spaceThreadEvidenceResponseSchema, ai as organizationSkillBundleSchema, cr as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, di as stringifyOrganizationSkillBundleCanonicalJson, er as buildSpaceThreadEvidence, fr as getSpaceUpdatesResponseSchema, in as createOrganizationSkillsApi, ji as observedLocalAgentSessionSchema, kr as spaceTaskIdSchema, mr as openDirectMessageSpaceBodySchema, na as signalTextEnvelopeSchema, pn as createRuntimeReportingApi, qt as createDirectMessageApi, rn as createOrganizationDocumentsApi, t as OpenMeldApiClientHttpError, xi as submitAgentControllerTaskLifecycleEventItemSchema } from "./dist-DGeoVaIx.js";
9
+ import { d as getAuthSessionState } from "./auth-session-D7hlE-47.js";
10
+ import { o as dirnamePath } from "./daemon-device-id-DgwvQllt.js";
11
+ import { A as removeProjectInbox, C as resolveOpenCodeDatabasePath, E as normalizeSharedSessionTitle, F as readDueAgentActivityOutbox, I as removeProjectOutbox, L as readRecentAgentActivityHookStatus, M as applyAgentActivitySubmissionResults, N as deferAgentActivityOutbox, O as drainAgentActivityHookInbox, P as readAgentActivityOutboxHealth, R as createServiceGitEnvironment, T as resolveObservedAgentActivityBinding, a as DispatchSpaceActionClosedError, b as startAgentActivityTranscriptWatchers, d as readDispatchSpaceActionRecord, hn as cliJsonErrorEnvelopeSchema, i as readDispatchOwnedRuntimeGuard, j as AgentActivitySubmissionResultsMismatchError, jt as buildPublicSpaceEntryPath, l as readDispatchSpaceActionContextForReceiptFromEnv, m as createCodexJsonRpcClient, o as DispatchSpaceActionRejectedError, p as writeDispatchSpaceActionRecord, s as OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV, u as readDispatchSpaceActionContextFromEnv, x as readOpenCodeSessionRows, y as scanLocalAgentActivity } from "./dispatch-owned-runtime-g2lLeYtx.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-QskBmfuf.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-BbodhIFX.js";
15
+ import { a as requireOpenMeldProfile, n as resolveRuntimeContext } from "./context-x0T_qTHp.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-BYTxVhem.js";
20
+ import { d as buildOpenMeldRequestContextFromProfile, l as canAttachAuthTokenToRequest, n as fetchSpaceRequestWithTimeout, s as buildOpenMeldRequestContextHeadersWithAuth, t as createCliApiClientFoundation } from "./api-client-foundation-DMEfIARh.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
- }).refine((value) => value.result !== void 0 !== (value.page !== void 0), { message: "A read returns either the complete result or one continuation page." });
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";
@@ -1476,8 +1490,6 @@ function isNodeError$2(error, code) {
1476
1490
  //#endregion
1477
1491
  //#region src/agent-activity/session-inventory-provider-adapters.ts
1478
1492
  const PROVIDER_PROBE_TIMEOUT_MS = 5e3;
1479
- const PROVIDER_DISCOVERY_TIMEOUT_MS = 3e4;
1480
- const MAX_JSON_RPC_LINE_BYTES = 8 * 1024 * 1024;
1481
1493
  const CODEX_THREAD_SOURCE_KINDS = [
1482
1494
  "cli",
1483
1495
  "vscode",
@@ -1621,130 +1633,6 @@ async function listAllCodexThreads(launchContract) {
1621
1633
  await client.close();
1622
1634
  }
1623
1635
  }
1624
- function createCodexJsonRpcClient(launchContract) {
1625
- const invocation = buildCliLaunchInvocation({
1626
- args: [
1627
- "app-server",
1628
- "--listen",
1629
- "stdio://"
1630
- ],
1631
- launchContract
1632
- });
1633
- const child = spawn(invocation.bin, invocation.args, {
1634
- env: process.env,
1635
- shell: invocation.shell ?? false,
1636
- stdio: [
1637
- "pipe",
1638
- "pipe",
1639
- "ignore"
1640
- ],
1641
- windowsHide: true
1642
- });
1643
- let nextId = 1;
1644
- let buffer = "";
1645
- let closed = false;
1646
- const pending = /* @__PURE__ */ new Map();
1647
- const rejectPending = (error) => {
1648
- for (const request of pending.values()) {
1649
- clearTimeout(request.timer);
1650
- request.reject(error);
1651
- }
1652
- pending.clear();
1653
- };
1654
- child.stdout.setEncoding("utf8");
1655
- child.stdout.on("data", (chunk) => {
1656
- buffer = consumeCodexJsonRpcChunk({
1657
- buffer,
1658
- chunk,
1659
- kill: () => child.kill("SIGTERM"),
1660
- pending,
1661
- rejectPending
1662
- });
1663
- });
1664
- child.on("error", (error) => rejectPending(error));
1665
- child.on("close", () => {
1666
- closed = true;
1667
- rejectPending(/* @__PURE__ */ new Error("Codex app-server closed during discovery."));
1668
- });
1669
- return {
1670
- close: async () => {
1671
- if (closed) return;
1672
- child.kill("SIGTERM");
1673
- await new Promise((resolveClose) => {
1674
- const timer = setTimeout(resolveClose, 1e3);
1675
- child.once("close", () => {
1676
- clearTimeout(timer);
1677
- resolveClose();
1678
- });
1679
- });
1680
- },
1681
- notify: (method, params) => {
1682
- child.stdin.write(`${JSON.stringify({
1683
- jsonrpc: "2.0",
1684
- method,
1685
- params
1686
- })}\n`);
1687
- },
1688
- request: (method, params) => {
1689
- if (closed) return Promise.reject(/* @__PURE__ */ new Error("Codex app-server is closed."));
1690
- const id = nextId;
1691
- nextId += 1;
1692
- return new Promise((resolveRequest, rejectRequest) => {
1693
- const timer = setTimeout(() => {
1694
- pending.delete(id);
1695
- rejectRequest(/* @__PURE__ */ new Error(`Codex ${method} timed out.`));
1696
- }, PROVIDER_DISCOVERY_TIMEOUT_MS);
1697
- pending.set(id, {
1698
- reject: rejectRequest,
1699
- resolve: resolveRequest,
1700
- timer
1701
- });
1702
- child.stdin.write(`${JSON.stringify({
1703
- id,
1704
- jsonrpc: "2.0",
1705
- method,
1706
- params
1707
- })}\n`);
1708
- });
1709
- }
1710
- };
1711
- }
1712
- function consumeCodexJsonRpcChunk(input) {
1713
- let buffer = input.buffer + input.chunk;
1714
- if (Buffer.byteLength(buffer) > MAX_JSON_RPC_LINE_BYTES) {
1715
- input.rejectPending(/* @__PURE__ */ new Error("Codex app-server response exceeded its bound."));
1716
- input.kill();
1717
- return "";
1718
- }
1719
- while (true) {
1720
- const newline = buffer.indexOf("\n");
1721
- if (newline < 0) return buffer;
1722
- const line = buffer.slice(0, newline).trim();
1723
- buffer = buffer.slice(newline + 1);
1724
- if (!line) continue;
1725
- let message;
1726
- try {
1727
- message = JSON.parse(line);
1728
- } catch {
1729
- input.rejectPending(/* @__PURE__ */ new Error("Codex app-server returned invalid JSON."));
1730
- input.kill();
1731
- return "";
1732
- }
1733
- settleCodexJsonRpcResponse(message, input.pending);
1734
- }
1735
- }
1736
- function settleCodexJsonRpcResponse(message, pending) {
1737
- if (!isRecord(message) || typeof message.id !== "number") return;
1738
- const request = pending.get(message.id);
1739
- if (!request) return;
1740
- pending.delete(message.id);
1741
- clearTimeout(request.timer);
1742
- if (isRecord(message.error)) {
1743
- request.reject(new Error(text(message.error.message) ?? "Codex app-server request failed."));
1744
- return;
1745
- }
1746
- request.resolve(message.result);
1747
- }
1748
1636
  async function discoverClaudeCode(input) {
1749
1637
  const launch = await resolveInstalledClaudeCodeLaunchCandidates({ timeoutMs: PROVIDER_PROBE_TIMEOUT_MS });
1750
1638
  if (!launch.ok) return providerLaunchFailure("claude-code", launch.reason);
@@ -2193,6 +2081,8 @@ function isRecord(value) {
2193
2081
  function isNodeError$1(error, code) {
2194
2082
  return error instanceof Error && error.code === code;
2195
2083
  }
2084
+ const PROVIDER_DISCOVERY_TIMEOUT_MS = 3e4;
2085
+ const MAX_JSON_RPC_LINE_BYTES = 8 * 1024 * 1024;
2196
2086
  //#endregion
2197
2087
  //#region src/agent-activity/session-inventory-sync.ts
2198
2088
  const SOURCE_STORE_VERSION = 2;
@@ -4943,7 +4833,7 @@ var DispatchReadResults = class {
4943
4833
  this.#bytes += bytes.length;
4944
4834
  return this.#page(resultId, 0);
4945
4835
  }
4946
- async read(resultId, offset) {
4836
+ async read(resultId, offset, query) {
4947
4837
  const snapshot = this.#requireSnapshot(resultId, offset);
4948
4838
  const current = await snapshot.revalidate();
4949
4839
  if (current.isError || !Buffer.from(JSON.stringify(readValue(current))).equals(snapshot.bytes)) {
@@ -4951,17 +4841,38 @@ var DispatchReadResults = class {
4951
4841
  this.#snapshots.delete(resultId);
4952
4842
  throw new Error("The source is no longer accessible or its selected version changed. No cached page was disclosed. Read the source again.");
4953
4843
  }
4954
- return this.#page(resultId, offset);
4844
+ if (query === void 0) return this.#page(resultId, offset);
4845
+ let matchOffset = snapshot.bytes.indexOf(query, offset, "utf8");
4846
+ const matches = [];
4847
+ while (matchOffset !== -1 && matches.length < 2) {
4848
+ let start = Math.max(0, matchOffset - 256);
4849
+ while (isUtf8Continuation(snapshot.bytes[start])) start -= 1;
4850
+ snapshot.offsets.add(start);
4851
+ const excerpt = dispatchSpaceReadResultPageSchema.parse(this.#page(resultId, start, 3 * 1024).structuredContent?.page);
4852
+ matches.push({
4853
+ matchOffset,
4854
+ excerpt
4855
+ });
4856
+ matchOffset = snapshot.bytes.indexOf(query, matchOffset + Buffer.byteLength(query), "utf8");
4857
+ }
4858
+ const nextOffset = matchOffset === -1 ? null : matchOffset;
4859
+ if (nextOffset !== null) snapshot.offsets.add(nextOffset);
4860
+ return this.#result({ search: {
4861
+ resultId,
4862
+ query,
4863
+ nextOffset,
4864
+ matches
4865
+ } });
4955
4866
  }
4956
4867
  #requireSnapshot(resultId, offset) {
4957
4868
  const snapshot = this.#snapshots.get(resultId);
4958
4869
  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
4870
  return snapshot;
4960
4871
  }
4961
- #page(resultId, offset) {
4872
+ #page(resultId, offset, limit = PAGE_BYTES) {
4962
4873
  const snapshot = this.#requireSnapshot(resultId, offset);
4963
4874
  const { bytes } = snapshot;
4964
- let end = Math.min(offset + PAGE_BYTES, bytes.length);
4875
+ let end = Math.min(offset + limit, bytes.length);
4965
4876
  while (true) {
4966
4877
  while (end < bytes.length && isUtf8Continuation(bytes[end])) end -= 1;
4967
4878
  const nextOffset = end === bytes.length ? null : end;
@@ -4972,7 +4883,7 @@ var DispatchReadResults = class {
4972
4883
  totalBytes: bytes.length,
4973
4884
  text: bytes.subarray(offset, end).toString("utf8")
4974
4885
  } });
4975
- if (Buffer.byteLength(JSON.stringify(value)) <= PAGE_BYTES) {
4886
+ if (Buffer.byteLength(JSON.stringify(value)) <= limit) {
4976
4887
  if (nextOffset !== null) snapshot.offsets.add(nextOffset);
4977
4888
  return this.#result(value);
4978
4889
  }
@@ -5098,6 +5009,15 @@ async function runDispatchWorkingCopy(action, resolution, env = process.env) {
5098
5009
  //#endregion
5099
5010
  //#region src/space/action-mcp-server.ts
5100
5011
  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.";
5012
+ const PAGED_READ_TOOLS = /* @__PURE__ */ new Set([
5013
+ "read_history",
5014
+ "read_evidence",
5015
+ "read_thread",
5016
+ "read_file",
5017
+ "list_tasks",
5018
+ "read_documents",
5019
+ "read_skills"
5020
+ ]);
5101
5021
  /** Every carrier uses the same schemas, validation, authority and recorder. */
5102
5022
  var DispatchSpaceTools = class {
5103
5023
  tools = [];
@@ -5119,22 +5039,14 @@ var DispatchSpaceTools = class {
5119
5039
  "read_receipt"
5120
5040
  ].includes(name)) return;
5121
5041
  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);
5042
+ const pagedRead = PAGED_READ_TOOLS.has(name);
5131
5043
  this.tools.push({
5132
5044
  ...config,
5133
5045
  name,
5134
5046
  inputSchema,
5135
5047
  ...pagedRead ? {
5136
5048
  outputSchema: dispatchSpaceReadResultSchema,
5137
- description: `${config.description} Small reads return result; large reads return page. Continue with read_result using page.resultId and page.nextOffset; no local file is needed.`
5049
+ 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
5050
  } : {}
5139
5051
  });
5140
5052
  this.#handlers.set(name, (args) => {
@@ -5154,15 +5066,7 @@ var DispatchSpaceTools = class {
5154
5066
  if (!handler) return executeSpaceAction(() => {
5155
5067
  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
5068
  }, 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);
5069
+ const pagedRead = PAGED_READ_TOOLS.has(name);
5166
5070
  if (pagedRead || name === "read_result") try {
5167
5071
  readDispatchSpaceActionContextFromEnv(this.#env);
5168
5072
  const result = await handler(args);
@@ -5182,8 +5086,8 @@ var DispatchSpaceTools = class {
5182
5086
  }
5183
5087
  registerResultReader() {
5184
5088
  this.registerTool("read_result", {
5185
- title: "Continue reading a large Space tool result",
5186
- description: "Read the next page of a large read_history, read_file, or list_tasks result. Pass the returned resultId and nextOffset exactly; append page.text in order to reconstruct the complete JSON. 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. Does not publish or repeat an operation.",
5089
+ title: "Read or search a large Space tool result",
5090
+ 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
5091
  inputSchema: dispatchSpaceReadResultRequestSchema,
5188
5092
  outputSchema: dispatchSpaceReadResultSchema,
5189
5093
  annotations: {
@@ -5192,7 +5096,7 @@ var DispatchSpaceTools = class {
5192
5096
  idempotentHint: true,
5193
5097
  openWorldHint: false
5194
5098
  }
5195
- }, async ({ resultId, offset }) => this.#readResults.read(resultId, offset));
5099
+ }, async ({ resultId, offset, query }) => this.#readResults.read(resultId, offset, query));
5196
5100
  }
5197
5101
  close() {
5198
5102
  this.#closed = true;
@@ -6325,4 +6229,4 @@ async function fetchSpaceUpdates(input) {
6325
6229
  //#endregion
6326
6230
  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
6231
 
6328
- //# sourceMappingURL=updates-api-DD3p5dx5.js.map
6232
+ //# sourceMappingURL=updates-api-9midbUU1.js.map