openmeld 0.3.241 → 0.3.242

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 (66) hide show
  1. package/dist/{add-me-membership-BU2dHctF.js → add-me-membership-JGpmeWkk.js} +2 -2
  2. package/dist/{add-me-membership-BU2dHctF.js.map → add-me-membership-JGpmeWkk.js.map} +1 -1
  3. package/dist/{agents-BCbxo9ej.js → agents-4ldZFtzT.js} +8 -8
  4. package/dist/{agents-BCbxo9ej.js.map → agents-4ldZFtzT.js.map} +1 -1
  5. package/dist/{command-BEWvHfNy.js → command-D1poZMYq.js} +10 -10
  6. package/dist/{command-BEWvHfNy.js.map → command-D1poZMYq.js.map} +1 -1
  7. package/dist/{computer-connection-review-B3jM81-q.js → computer-connection-review-DlPe08AU.js} +2 -2
  8. package/dist/{computer-connection-review-B3jM81-q.js.map → computer-connection-review-DlPe08AU.js.map} +1 -1
  9. package/dist/{computer-disconnect-De7aDtz9.js → computer-disconnect-C6xJfCMA.js} +3 -3
  10. package/dist/{computer-disconnect-De7aDtz9.js.map → computer-disconnect-C6xJfCMA.js.map} +1 -1
  11. package/dist/{computer-setup-continuation-DUDXeWyZ.js → computer-setup-continuation-fbbvdA8o.js} +2 -2
  12. package/dist/{computer-setup-continuation-DUDXeWyZ.js.map → computer-setup-continuation-fbbvdA8o.js.map} +1 -1
  13. package/dist/{daemon-lifecycle-journal-txRGG09R.js → daemon-lifecycle-journal-eiHCp4B7.js} +6 -6
  14. package/dist/{daemon-lifecycle-journal-txRGG09R.js.map → daemon-lifecycle-journal-eiHCp4B7.js.map} +1 -1
  15. package/dist/{daemon-service-runtime-DVou-9gk.js → daemon-service-runtime-zCpuDvfl.js} +2 -2
  16. package/dist/{daemon-service-runtime-DVou-9gk.js.map → daemon-service-runtime-zCpuDvfl.js.map} +1 -1
  17. package/dist/{daemon-service-update-coordinator-j-NJ6SG6.js → daemon-service-update-coordinator-Q5ihbImP.js} +4 -4
  18. package/dist/{daemon-service-update-coordinator-j-NJ6SG6.js.map → daemon-service-update-coordinator-Q5ihbImP.js.map} +1 -1
  19. package/dist/{dispatch-owned-runtime-Ds0NjZbf.js → dispatch-owned-runtime-B6HXvHVa.js} +3 -3
  20. package/dist/{dispatch-owned-runtime-Ds0NjZbf.js.map → dispatch-owned-runtime-B6HXvHVa.js.map} +1 -1
  21. package/dist/{dual-view-guide-catalog-Bm3heywF.js → dual-view-guide-catalog-Cf9dxh8-.js} +2 -2
  22. package/dist/{dual-view-guide-catalog-Bm3heywF.js.map → dual-view-guide-catalog-Cf9dxh8-.js.map} +1 -1
  23. package/dist/{elapsed-time-8Z_hiMHG.js → elapsed-time-ZiuFKVLD.js} +3 -3
  24. package/dist/{elapsed-time-8Z_hiMHG.js.map → elapsed-time-ZiuFKVLD.js.map} +1 -1
  25. package/dist/{entry-CRNdcPn2.js → entry-B3OCEi01.js} +2 -2
  26. package/dist/{entry-CRNdcPn2.js.map → entry-B3OCEi01.js.map} +1 -1
  27. package/dist/{installation-inventory-C2gqd8Ui.js → installation-inventory-CRS2_ZJi.js} +3 -3
  28. package/dist/{installation-inventory-C2gqd8Ui.js.map → installation-inventory-CRS2_ZJi.js.map} +1 -1
  29. package/dist/{installer-C5wRsjRo.js → installer-9RCKL6Dh.js} +2 -2
  30. package/dist/{installer-C5wRsjRo.js.map → installer-9RCKL6Dh.js.map} +1 -1
  31. package/dist/{meta-api-f30I0cYW.js → meta-api-BBfF-3ln.js} +2 -2
  32. package/dist/{meta-api-f30I0cYW.js.map → meta-api-BBfF-3ln.js.map} +1 -1
  33. package/dist/{openmeld-pa6CFD0L.js → openmeld-CAlNOxmA.js} +23 -23
  34. package/dist/{openmeld-pa6CFD0L.js.map → openmeld-CAlNOxmA.js.map} +1 -1
  35. package/dist/{openmeld-maintenance-worker-DO2-9bPr.js → openmeld-maintenance-worker-DR32kAsg.js} +9 -9
  36. package/dist/{openmeld-maintenance-worker-DO2-9bPr.js.map → openmeld-maintenance-worker-DR32kAsg.js.map} +1 -1
  37. package/dist/{openmeld-tools-update-join-7k8F3WoX.js → openmeld-tools-update-join-DWRJ6WpO.js} +4 -4
  38. package/dist/{openmeld-tools-update-join-7k8F3WoX.js.map → openmeld-tools-update-join-DWRJ6WpO.js.map} +1 -1
  39. package/dist/openmeld.js +4 -4
  40. package/dist/{prepare-provider-runtime-CRKT1qfE.js → prepare-provider-runtime-CpG_NTZF.js} +2 -2
  41. package/dist/{prepare-provider-runtime-CRKT1qfE.js.map → prepare-provider-runtime-CpG_NTZF.js.map} +1 -1
  42. package/dist/{prepare-session-executor-HgLhIpBN.js → prepare-session-executor-ByEiJyxT.js} +14 -14
  43. package/dist/{prepare-session-executor-HgLhIpBN.js.map → prepare-session-executor-ByEiJyxT.js.map} +1 -1
  44. package/dist/{runtime-DMlmaA44.js → runtime-DMHRemwP.js} +39 -58
  45. package/dist/runtime-DMHRemwP.js.map +1 -0
  46. package/dist/{runtime-agent-controller-reporting-submission-BYU0eXKb.js → runtime-agent-controller-reporting-submission-D51t3Q8e.js} +3 -3
  47. package/dist/{runtime-agent-controller-reporting-submission-BYU0eXKb.js.map → runtime-agent-controller-reporting-submission-D51t3Q8e.js.map} +1 -1
  48. package/dist/{service-BLA4eCyA.js → service-BhwxCPsM.js} +10 -10
  49. package/dist/{service-BLA4eCyA.js.map → service-BhwxCPsM.js.map} +1 -1
  50. package/dist/{service-account-control-xIDWMYp7.js → service-account-control-D_hTHF4w.js} +5 -5
  51. package/dist/{service-account-control-xIDWMYp7.js.map → service-account-control-D_hTHF4w.js.map} +1 -1
  52. package/dist/{service-control-capabilities-C4rpfc9B.js → service-control-capabilities-CfKNg0x2.js} +1 -1
  53. package/dist/{service-control-capabilities-9SQY-44h.js → service-control-capabilities-VYS3-qJC.js} +3 -3
  54. package/dist/{service-control-capabilities-9SQY-44h.js.map → service-control-capabilities-VYS3-qJC.js.map} +1 -1
  55. package/dist/{state-BNcCVukg.js → state-Bef17OTn.js} +2 -2
  56. package/dist/{state-BNcCVukg.js.map → state-Bef17OTn.js.map} +1 -1
  57. package/dist/{updates-api-CTf05SZn.js → updates-api-Cot1YmlU.js} +47 -17
  58. package/dist/updates-api-Cot1YmlU.js.map +1 -0
  59. package/dist/{upgrade-B17yGEBC.js → upgrade-9xk3iYag.js} +7 -7
  60. package/dist/{upgrade-B17yGEBC.js.map → upgrade-9xk3iYag.js.map} +1 -1
  61. package/dist/upgrade-CGcMw4vC.js +4 -0
  62. package/dist/windows/openmeld-windows-process.exe +0 -0
  63. package/package.json +12 -12
  64. package/dist/runtime-DMlmaA44.js.map +0 -1
  65. package/dist/updates-api-CTf05SZn.js.map +0 -1
  66. package/dist/upgrade-BoX1y1zH.js +0 -4
@@ -1,6 +1,6 @@
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-CRKT1qfE.js";
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-CpG_NTZF.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
6
  import { $r as stringifyOrganizationSkillBundleCanonicalJson, Bi as signalTextEnvelopeSchema, Dr as spaceTaskMutationReceiptSchema, Er as spaceTaskIdSchema, Kt as createDirectMessageApi, Lt as createAgentActivityApi, Mr as spaceThreadEvidenceResponseSchema, Qn as buildSpaceThreadEvidence, Tr as mutateSpaceTaskBodySchema, Zn as buildSpaceMessageEvidence, dr as openDirectMessageSpaceBodySchema, fn as createRuntimeReportingApi, li as submitAgentControllerTaskLifecycleEventItemSchema, lr as getSpaceUpdatesResponseSchema, nn as createOrganizationDocumentsApi, or as OPENMELD_HEADER_SPACE_ADDRESSING_VERSION, qr as organizationSkillBundleSchema, rn as createOrganizationSkillsApi, t as OpenMeldApiClientHttpError, wr as createSpaceTaskBodySchema, yi as observedLocalAgentSessionSchema } from "./dist-BE0dKSoc.js";
@@ -8,8 +8,8 @@ import { Er as executionContextTaskSchema, In as spaceFileRevisionNumberSchema,
8
8
  import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-QqGL-jtT.js";
9
9
  import { d as getAuthSessionState } from "./auth-session-Injt39gv.js";
10
10
  import { B as resolveRuntimeContext, U as requireOpenMeldProfile, o as dirnamePath } from "./daemon-device-id-CAKHWLK9.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-Ds0NjZbf.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-f30I0cYW.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-B6HXvHVa.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-BBfF-3ln.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
15
  import { n as writeDaemonLocalStateFile, t as readDaemonLocalStateFile } from "./daemon-local-state-file-jOXuXrky.js";
@@ -29,7 +29,7 @@ import { execFile, spawn } from "node:child_process";
29
29
  import { promisify } from "node:util";
30
30
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
31
31
  import { createInterface } from "node:readline";
32
- import { performance } from "node:perf_hooks";
32
+ import { performance as performance$1 } from "node:perf_hooks";
33
33
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
34
34
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
35
35
  //#region ../../packages/schemas/dist/schemas/config/agent-activity-route-registry.js
@@ -4447,11 +4447,11 @@ function emitActionRecorded(record) {
4447
4447
  outLine(`Action recorded: OpenMeld saved this unpublished Space action proposal (${record.action.type}) for the current Wake.`);
4448
4448
  }
4449
4449
  function createSpaceActionReplyTiming() {
4450
- const startedAt = performance.now();
4450
+ const startedAt = performance$1.now();
4451
4451
  let previousAt = startedAt;
4452
4452
  const commandStartProcessUptimeMs = Math.round(startedAt);
4453
4453
  return { emit: (phase, context, fields = {}) => {
4454
- const now = performance.now();
4454
+ const now = performance$1.now();
4455
4455
  const elapsedMs = Math.max(0, Math.round(now - startedAt));
4456
4456
  const durationMs = Math.max(0, Math.round(now - previousAt));
4457
4457
  previousAt = now;
@@ -4815,6 +4815,34 @@ async function readDispatchSource(env, read) {
4815
4815
  }
4816
4816
  //#endregion
4817
4817
  //#region src/space/dispatch-knowledge-read.ts
4818
+ async function observeRead(input, operation, read) {
4819
+ const startedAt = performance.now();
4820
+ let status = "failed";
4821
+ try {
4822
+ const result = await read();
4823
+ status = "loaded";
4824
+ return result;
4825
+ } finally {
4826
+ input.onRead?.({
4827
+ operation,
4828
+ durationMs: Math.round(performance.now() - startedAt),
4829
+ status
4830
+ });
4831
+ }
4832
+ }
4833
+ /** Share identity and Space scope only for this preparation, never across Wakes. */
4834
+ async function readTaskKnowledge(input) {
4835
+ const { foundation, requestContext, spaceMeta } = await createTaskKnowledgeReader(input);
4836
+ const [documents, skills] = await Promise.all([observeRead(input, "documents", () => createOrganizationDocumentsApi(foundation).list({ requestContext })).then((result) => result.documents).catch(() => null), input.skillSelections !== void 0 ? Promise.resolve(input.skillSelections) : observeRead(input, "skills", () => readSkillSelections({
4837
+ foundation,
4838
+ requestContext
4839
+ })).catch(() => null)]);
4840
+ return {
4841
+ documents,
4842
+ skills,
4843
+ spaceMeta
4844
+ };
4845
+ }
4818
4846
  /** Existing member API, with the Agent identity and the Space's Organization. */
4819
4847
  async function readTaskDocuments(input) {
4820
4848
  const { foundation, requestContext } = await createTaskKnowledgeReader(input);
@@ -4825,26 +4853,28 @@ async function readTaskDocuments(input) {
4825
4853
  }) : await api.list({ requestContext });
4826
4854
  }
4827
4855
  async function createTaskKnowledgeReader(input) {
4828
- const profile = await requireOpenMeldProfile({
4856
+ const profile = await observeRead(input, "identity", () => requireOpenMeldProfile({
4829
4857
  openMeldProfileId: input.targetProfileId,
4830
4858
  profileKind: "agent",
4831
4859
  persistSelection: false,
4832
4860
  authAction: "reading task documents"
4833
- });
4861
+ }));
4834
4862
  if (profile.openMeldProfileId !== input.targetProfileId || profile.profileKind !== "agent") throw new Error("The document reader does not match the current Agent.");
4835
4863
  const requestContext = buildOpenMeldRequestContextFromProfile({ openMeldProfile: profile });
4836
4864
  const baseUrl = await resolveBaseUrl();
4865
+ const meta = await observeRead(input, "space_metadata", () => fetchSpaceMeta({
4866
+ baseUrl,
4867
+ requestContext,
4868
+ space: input.spaceId,
4869
+ ...input.spacePassword ? { password: input.spacePassword } : {}
4870
+ }));
4837
4871
  return {
4872
+ spaceMeta: meta,
4838
4873
  requestContext,
4839
- foundation: createCliApiClientFoundation(baseUrl, { organizationId: (await fetchSpaceMeta({
4840
- baseUrl,
4841
- requestContext,
4842
- space: input.spaceId
4843
- })).organizationId })
4874
+ foundation: createCliApiClientFoundation(baseUrl, { organizationId: meta.organizationId })
4844
4875
  };
4845
4876
  }
4846
- async function readTaskSkillSelections(input) {
4847
- const { foundation, requestContext } = await createTaskKnowledgeReader(input);
4877
+ async function readSkillSelections({ foundation, requestContext }) {
4848
4878
  return (await createOrganizationSkillsApi(foundation).list({ requestContext })).skills.filter((skill) => skill.enabled).map((skill) => ({
4849
4879
  skillId: skill.id,
4850
4880
  name: skill.name,
@@ -6292,6 +6322,6 @@ async function fetchSpaceUpdates(input) {
6292
6322
  return parsed.data;
6293
6323
  }
6294
6324
  //#endregion
6295
- export { recordOpenMeldCreatedLocalAgentSession as A, defaultManagedIntegrationPaths as B, recordRuntimeReportingFailure as C, startLocalAgentActivitySyncLoop as D, createLedgerIo as E, isAgentActivityRouteRegistered as F, readAgentActivityIntegrationStatus as H, registerAgentActivityRoute as I, resolveAgentActivityRouteForPath as L, removeAgentActivityContextCache as M, enqueueControllerTaskLifecycleEventWhileLocked as N, syncLocalAgentActivity as O, readControllerTaskLifecycleOutboxHealth as P, unregisterAgentActivityRoute as R, readRuntimeReportingHealthState as S, recordRuntimeReportingSuccess as T, resolveAgentActivityDispatcherCommand as U, installAgentActivityIntegrations as V, uninstallAgentActivityIntegrations as W, prepareExecutionContextWorkspace as _, createDispatchSpaceTools as a, prepareClaudeProjectContainer as b, readTaskSkillSelections as c, runSpaceActionReply as d, runSpaceActionSilent as f, markExecutionContextWorkspaceInUse as g, runSpaceActionWake as h, materializeOrganizationSkillRelease as i, readAgentActivityContextForPath as j, discoverLocalAgentSessionProviders as k, runDirectMessage as l, runSpaceActionTargets as m, createSpaceWorkingCopies as n, runSpaceActionMcpServer as o, runSpaceActionStatus as p, downloadWorkingCopyFile as r, readTaskDocuments as s, fetchSpaceUpdates as t, runSpaceActionHelp as u, readExecutionContextWorkspace as v, recordRuntimeReportingNotApplicable as w, startDispatchSpaceProgressRelay as x, releaseExecutionContextWorkspace as y, AGENT_ACTIVITY_INTEGRATION_OWNER as z };
6325
+ 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 };
6296
6326
 
6297
- //# sourceMappingURL=updates-api-CTf05SZn.js.map
6327
+ //# sourceMappingURL=updates-api-Cot1YmlU.js.map