openmeld 0.3.246 → 0.3.248
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-C7dYkfPz.js → add-me-membership-zSJAa2ET.js} +2 -2
- package/dist/{add-me-membership-C7dYkfPz.js.map → add-me-membership-zSJAa2ET.js.map} +1 -1
- package/dist/{agents-QisYIlFS.js → agents-DLjDbkLV.js} +10 -10
- package/dist/{agents-QisYIlFS.js.map → agents-DLjDbkLV.js.map} +1 -1
- package/dist/{api-client-foundation-CYbEdm9o.js → api-client-foundation-BZvzqIeX.js} +3 -3
- package/dist/{api-client-foundation-CYbEdm9o.js.map → api-client-foundation-BZvzqIeX.js.map} +1 -1
- package/dist/{api-client-foundation-B1aTRrIy.js → api-client-foundation-DE_UqE2s.js} +1 -1
- package/dist/auth-session-BOi-tZ2y.js +4 -0
- package/dist/{auth-session-JhILeJRO.js → auth-session-DywRZLBr.js} +4 -4
- package/dist/{auth-session-JhILeJRO.js.map → auth-session-DywRZLBr.js.map} +1 -1
- package/dist/{channel-C6tm9T7P.js → channel-40SR2b5S.js} +3 -3
- package/dist/{channel-C6tm9T7P.js.map → channel-40SR2b5S.js.map} +1 -1
- package/dist/{cloud-computer-J2tdcTPm.js → cloud-computer-BqFhsHhC.js} +4 -4
- package/dist/{cloud-computer-J2tdcTPm.js.map → cloud-computer-BqFhsHhC.js.map} +1 -1
- package/dist/{command-BXJ-OwBD.js → command-DBfu-GeG.js} +15 -15
- package/dist/{command-BXJ-OwBD.js.map → command-DBfu-GeG.js.map} +1 -1
- package/dist/{computer-connection-BKtrn0d2.js → computer-connection-CVyM42a0.js} +2 -2
- package/dist/{computer-connection-BKtrn0d2.js.map → computer-connection-CVyM42a0.js.map} +1 -1
- package/dist/{computer-connection-review-bUqNKi6q.js → computer-connection-review-B5qKu2C9.js} +5 -5
- package/dist/{computer-connection-review-bUqNKi6q.js.map → computer-connection-review-B5qKu2C9.js.map} +1 -1
- package/dist/{computer-disconnect-D_Apsn9P.js → computer-disconnect-BxhAjQQx.js} +7 -7
- package/dist/{computer-disconnect-D_Apsn9P.js.map → computer-disconnect-BxhAjQQx.js.map} +1 -1
- package/dist/{computer-setup-continuation-occq0LmS.js → computer-setup-continuation-V40ov5FS.js} +3 -3
- package/dist/{computer-setup-continuation-occq0LmS.js.map → computer-setup-continuation-V40ov5FS.js.map} +1 -1
- package/dist/{context-M7dvalCp.js → context-BEgBhfbb.js} +4 -4
- package/dist/{context-M7dvalCp.js.map → context-BEgBhfbb.js.map} +1 -1
- package/dist/{daemon-device-id-C3gKch4E.js → daemon-device-id-CmykIapy.js} +4 -4
- package/dist/{daemon-device-id-C3gKch4E.js.map → daemon-device-id-CmykIapy.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-CGUuJshv.js → daemon-lifecycle-journal-2dzGUSWU.js} +3 -3
- package/dist/{daemon-lifecycle-journal-CGUuJshv.js.map → daemon-lifecycle-journal-2dzGUSWU.js.map} +1 -1
- package/dist/{daemon-service-runtime-CktU3ER4.js → daemon-service-runtime-pECs8jVc.js} +2 -2
- package/dist/{daemon-service-runtime-CktU3ER4.js.map → daemon-service-runtime-pECs8jVc.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-D0-15tZW.js → daemon-service-update-coordinator-DJKBTEjx.js} +14 -14
- package/dist/daemon-service-update-coordinator-DJKBTEjx.js.map +1 -0
- package/dist/{dispatch-owned-runtime-gOluDX5_.js → dispatch-owned-runtime-QhxDRdNr.js} +191 -52
- package/dist/dispatch-owned-runtime-QhxDRdNr.js.map +1 -0
- package/dist/{dist-KibLweLD.js → dist-BQcUIyf6.js} +747 -529
- package/dist/dist-BQcUIyf6.js.map +1 -0
- package/dist/dist-C8M8nzJ2.js +4 -0
- package/dist/{dual-view-guide-catalog-0kSizTFt.js → dual-view-guide-catalog-DDsnLpIT.js} +3 -3
- package/dist/{dual-view-guide-catalog-0kSizTFt.js.map → dual-view-guide-catalog-DDsnLpIT.js.map} +1 -1
- package/dist/{elapsed-time-Bo1CJczC.js → elapsed-time-DTb6L36x.js} +3 -3
- package/dist/{elapsed-time-Bo1CJczC.js.map → elapsed-time-DTb6L36x.js.map} +1 -1
- package/dist/{entry-B11DkH2I.js → entry-B3w4ZTC5.js} +7 -7
- package/dist/{entry-B11DkH2I.js.map → entry-B3w4ZTC5.js.map} +1 -1
- package/dist/{installation-inventory-BZgQmVup.js → installation-inventory-CCkKix8R.js} +3 -3
- package/dist/{installation-inventory-BZgQmVup.js.map → installation-inventory-CCkKix8R.js.map} +1 -1
- package/dist/{installer-k2gOOs58.js → installer-BiZM-o_y.js} +2 -2
- package/dist/{installer-k2gOOs58.js.map → installer-BiZM-o_y.js.map} +1 -1
- package/dist/{meta-api-DruuiAx-.js → meta-api-9iqkG_MP.js} +5 -5
- package/dist/{meta-api-DruuiAx-.js.map → meta-api-9iqkG_MP.js.map} +1 -1
- package/dist/{open-code-permission-DHFJYc_o.js → open-code-permission-B5f1e5an.js} +2 -31
- package/dist/open-code-permission-B5f1e5an.js.map +1 -0
- package/dist/{openmeld-DUdN78WD.js → openmeld-C70uo4ON.js} +215 -71
- package/dist/openmeld-C70uo4ON.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DwkvZD0q.js → openmeld-maintenance-worker-BFPEm1rE.js} +9 -9
- package/dist/{openmeld-maintenance-worker-DwkvZD0q.js.map → openmeld-maintenance-worker-BFPEm1rE.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-BNUIw_Lo.js → openmeld-tools-update-join-Bki3ugUW.js} +4 -4
- package/dist/{openmeld-tools-update-join-BNUIw_Lo.js.map → openmeld-tools-update-join-Bki3ugUW.js.map} +1 -1
- package/dist/openmeld.js +4 -4
- package/dist/{prepare-provider-runtime-_XRIioDp.js → prepare-provider-runtime-CWZOcEF7.js} +85 -23
- package/dist/prepare-provider-runtime-CWZOcEF7.js.map +1 -0
- package/dist/{prepare-session-executor-B5AjN0qz.js → prepare-session-executor-B8XSTQdx.js} +18 -18
- package/dist/{prepare-session-executor-B5AjN0qz.js.map → prepare-session-executor-B8XSTQdx.js.map} +1 -1
- package/dist/{process-channel-CTXWjlBP.js → process-channel-DLXPiGRF.js} +2 -2
- package/dist/{process-channel-CTXWjlBP.js.map → process-channel-DLXPiGRF.js.map} +1 -1
- package/dist/{runtime-DCBc6YOq.js → runtime-DzToUfqW.js} +115 -32
- package/dist/{runtime-DCBc6YOq.js.map → runtime-DzToUfqW.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-CGa3GGL6.js → runtime-agent-controller-reporting-submission-BszHi0S1.js} +8 -8
- package/dist/{runtime-agent-controller-reporting-submission-CGa3GGL6.js.map → runtime-agent-controller-reporting-submission-BszHi0S1.js.map} +1 -1
- package/dist/{runtime-transport-BzCp9hM3.js → runtime-transport-DFBYm5Re.js} +214 -21
- package/dist/runtime-transport-DFBYm5Re.js.map +1 -0
- package/dist/{service-BEH6-P8U.js → service-8EozP77B.js} +546 -21
- package/dist/service-8EozP77B.js.map +1 -0
- package/dist/{service-account-authorization-CtvSn02O.js → service-account-authorization-CqUcNoD1.js} +2 -2
- package/dist/{service-account-authorization-CtvSn02O.js.map → service-account-authorization-CqUcNoD1.js.map} +1 -1
- package/dist/{service-account-control-BUPiFEGo.js → service-account-control-CzPgo-Iy.js} +9 -9
- package/dist/{service-account-control-BUPiFEGo.js.map → service-account-control-CzPgo-Iy.js.map} +1 -1
- package/dist/{service-control-capabilities-PMvSlaJj.js → service-control-capabilities-C5hd37o9.js} +3 -3
- package/dist/{service-control-capabilities-PMvSlaJj.js.map → service-control-capabilities-C5hd37o9.js.map} +1 -1
- package/dist/{service-control-capabilities-D-Nhqqgo.js → service-control-capabilities-CcwdbQf3.js} +1 -1
- package/dist/{state-C_iJAzKh.js → state-Fskb-utn.js} +2 -2
- package/dist/{state-C_iJAzKh.js.map → state-Fskb-utn.js.map} +1 -1
- package/dist/{updates-api-s2-QB929.js → updates-api-JM7f1ZDQ.js} +43 -146
- package/dist/updates-api-JM7f1ZDQ.js.map +1 -0
- package/dist/{upgrade-JmhCNmvs.js → upgrade-CDW-7zvb.js} +8 -8
- package/dist/{upgrade-JmhCNmvs.js.map → upgrade-CDW-7zvb.js.map} +1 -1
- package/dist/upgrade-r6W5TzOo.js +4 -0
- package/package.json +11 -11
- package/skills/openmeld-cli/SKILL.md +2 -0
- package/skills/openmeld-cli/playbooks/computer.md +55 -0
- package/skills/openmeld-cli/playbooks/plugins.md +37 -0
- package/dist/auth-session-DUYOBXO3.js +0 -4
- package/dist/daemon-service-update-coordinator-D0-15tZW.js.map +0 -1
- package/dist/dispatch-owned-runtime-gOluDX5_.js.map +0 -1
- package/dist/dist-DMlKqjUf.js +0 -4
- package/dist/dist-KibLweLD.js.map +0 -1
- package/dist/open-code-permission-DHFJYc_o.js.map +0 -1
- package/dist/openmeld-DUdN78WD.js.map +0 -1
- package/dist/prepare-provider-runtime-_XRIioDp.js.map +0 -1
- package/dist/runtime-transport-BzCp9hM3.js.map +0 -1
- package/dist/service-BEH6-P8U.js.map +0 -1
- package/dist/updates-api-s2-QB929.js.map +0 -1
- package/dist/upgrade-Dikfgr8z.js +0 -4
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Ct as resolveLocalProjectConnectionForPath, Dr as renderInformationProtectionPrompt, In as DaemonServiceRunError, Tt as withAgentActivityLocalStateLock, Zt as buildDispatchReplyContextSummary, br as isAgentControllerUsageAccountUnavailable, dt as isProjectBound, fr as buildInformationProtectionPromptPlan, ft as listProjectBindings, kr as renderWorkingLanguagePrompt, pr as buildWorkingLanguagePromptPlan, qt as SPACE_ACTION_CONTEXT_GUIDANCE_LINES, tr as buildCliLaunchInvocation, ur as areAgentControllerInterfaceAccountsSame, wr as parseAgentControllerRef } from "./prepare-provider-runtime-CWZOcEF7.js";
|
|
4
4
|
import { F as resolveOpenMeldRootDir, P as resolveOpenMeldEnvPreset, b as normalizeOpenMeldProfileId, g as legacyAccountProfileSpacesDir, r as accountProfileSpaceCacheDir, w as openMeldManagedBinaryPath } from "./paths-De9xdA2h.js";
|
|
5
|
-
import { $ as openMeldSpaceEgressActionSchema, At as sanitizeSignalTextPreview,
|
|
5
|
+
import { $ as openMeldSpaceEgressActionSchema, At as sanitizeSignalTextPreview, Fn as executionContextAssignmentSchema, L as runtimeTransportRegisterSessionResponseSchema, Li as centerAgentToolSpeakerSchema, Sn as getSpaceMessageAddressingRelationSupportForTargetKind, Tn as resolveMessageEnvelopeTargetField, Xi as openMeldRequestContextSchema, a as daemonStreamFrameSchema, bn as collectCanonicalMentionTextFragments, dr as normalizeSpacePasswordText, mr as resolveSpaceMentionLabels, or as runtimeCoordinatorExecutionTokenEchoSchema, pr as resolveSingleSpaceMentionLabels, w as runtimeTransportHeartbeatResponseSchema, wn as normalizeMessageEnvelope, yn as MESSAGE_MENTION_TYPE_VALUES } from "./runtime-transport-DFBYm5Re.js";
|
|
6
6
|
import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-B93wmVS6.js";
|
|
7
7
|
import { A as boolean, I as iso, K as strictObject, M as discriminatedUnion, P as enumFactory, Q as url, p as localServiceComponentUpdateProjectionSchema, q as string, s as localCliComponentUpdateProjectionSchema, z as literal } from "./local-components-jXECvlEY.js";
|
|
8
|
-
import { $i as
|
|
9
|
-
import { a as asRecord, d as normalizeText, l as normalizeNonNegativeInteger$1, s as emitRunLine, u as normalizeOptionalText$8 } from "./daemon-device-id-
|
|
8
|
+
import { $i as spaceCreatorSchema, Ai as centerAgentRoutineSchema, Bi as updateCenterAgentRoutineResponseSchema, Ei as organizationComputersResponseSchema, Fi as listRoutineManagementResponseSchema, Fr as submitFeedbackIssueResponseSchema, Ii as pauseCenterAgentRoutineResponseSchema, Ji as agentActivitySnapshotResponseSchema, Li as resumeCenterAgentRoutineResponseSchema, Mi as deleteCenterAgentRoutineResponseSchema, Mr as organizationSpaceDirectoryWithMemberCountsResponseSchema, Ni as listCenterAgentRoutineRunsResponseSchema, Nr as organizationDirectoryResponseSchema, Oi as agentActivitySessionInventoryResponseSchema, Pi as listCenterAgentRoutinesResponseSchema, Pr as submitFeedbackIssueRequestSchema, Ri as routineManagementSchema, Ui as AGENT_ACTIVITY_PRESENCE_TTL_MAX_MS, Wi as agentActivityEventSchema, _i as spaceMemberAgentWakeAvailabilitySchema, aa as createProjectResponseSchema, ai as listOrganizationSkillsResponseSchema, bi as spaceMemberDirectorySchema, ca as updateProjectResponseSchema, ci as organizationSkillGitHubRepositoryPreviewSchema, di as organizationSkillSummarySchema, ia as archiveProjectResponseSchema, ii as getOrganizationSkillResponseSchema, ji as createCenterAgentRoutineResponseSchema, li as organizationSkillReleaseSummarySchema, ma as computerFileAccessPolicySchema, mr as spaceEntryTargetSchema, oa as listProjectsResponseSchema, pa as computerFileAccessPolicyInputSchema, sa as projectSchema, ta as localProjectControlConnectionSchema, ui as organizationSkillRuntimeReleaseSelectionSchema, vi as spaceMemberDirectoryAllowedRelationsSchema, xi as spaceMemberKindSchema, yi as spaceMemberDirectoryEntrySchema, zr as sessionHistoryPageSchema } from "./dist-BQcUIyf6.js";
|
|
9
|
+
import { a as asRecord, d as normalizeText, l as normalizeNonNegativeInteger$1, s as emitRunLine, u as normalizeOptionalText$8 } from "./daemon-device-id-CmykIapy.js";
|
|
10
10
|
import { i as serviceControlCapabilitiesSchema } from "./service-account-admission-BfdJ-kKR.js";
|
|
11
11
|
import { v as resolveCliContextId } from "./lock-BMI00i2F.js";
|
|
12
|
-
import { B as buildCenterAgentRoleTemplateText, F as SPACE_COLLABORATION_CONTEXT_RULE, H as buildSpaceAgentIdentityLine, J as isSelfWakeSpaceAction, K as composeDispatchBrief, R as buildAgentFacingMentalModelLines, U as buildSpaceEntryBriefNeedMoreLine, V as buildCompactDispatchActionGuidanceLines, W as buildSpaceWakeParticipantLines, Y as renderSpaceEntryBrief, Z as resolveSpacePublicationRequirement, q as deriveContinuity } from "./dual-view-guide-catalog-
|
|
12
|
+
import { B as buildCenterAgentRoleTemplateText, F as SPACE_COLLABORATION_CONTEXT_RULE, H as buildSpaceAgentIdentityLine, J as isSelfWakeSpaceAction, K as composeDispatchBrief, R as buildAgentFacingMentalModelLines, U as buildSpaceEntryBriefNeedMoreLine, V as buildCompactDispatchActionGuidanceLines, W as buildSpaceWakeParticipantLines, Y as renderSpaceEntryBrief, Z as resolveSpacePublicationRequirement, q as deriveContinuity } from "./dual-view-guide-catalog-DDsnLpIT.js";
|
|
13
13
|
import { d as createDefaultRuntimeAgentControllerSettings } from "./base-url-0AoeTi3w.js";
|
|
14
|
-
import { F as resolveCurrentOpenMeldAccountContext } from "./context-
|
|
14
|
+
import { F as resolveCurrentOpenMeldAccountContext } from "./context-BEgBhfbb.js";
|
|
15
15
|
import { a as formatOpenMeldCliTextBlock } from "./cli-entry-command-CR_9QU1i.js";
|
|
16
16
|
import { n as resolveOpenMeldDistribution } from "./distribution-BDQT2ilb.js";
|
|
17
17
|
import { a as DAEMON_SERVICE_RUNTIME_MODE_ENV, d as daemonDispatchJournalPath, h as daemonRuntimeRootPath, i as DAEMON_SERVICE_RUNTIME_DETACHED_ENV, n as DAEMON_SERVICE_RUNTIME_AUTO_START_ENV, r as DAEMON_SERVICE_RUNTIME_CONTROLLER_ENV, s as DAEMON_SERVICE_RUNTIME_SYSTEM_SERVICE_ENV } from "./daemon-state-Dte9re5V.js";
|
|
@@ -23,6 +23,7 @@ import * as z$1 from "zod/v4";
|
|
|
23
23
|
import { z } from "zod/v4";
|
|
24
24
|
import { appendFileSync, chmodSync, constants, existsSync, mkdirSync, readFileSync, renameSync, watch, writeFileSync } from "node:fs";
|
|
25
25
|
import process$1 from "node:process";
|
|
26
|
+
import { spawn } from "node:child_process";
|
|
26
27
|
import { isDeepStrictEqual } from "node:util";
|
|
27
28
|
import { Worker } from "node:worker_threads";
|
|
28
29
|
//#region ../../packages/schemas/dist/schemas/cli/daemon-status-server-requirement.js
|
|
@@ -347,6 +348,7 @@ const cliJsonProjectsConnectionsRemoveEnvelopeSchema = defineStrictSuccessEnvelo
|
|
|
347
348
|
});
|
|
348
349
|
const cliJsonAgentActivityReadEnvelopeSchema = defineStrictSuccessEnvelope("activity.read", agentActivitySnapshotResponseSchema.shape);
|
|
349
350
|
const cliJsonAgentActivitySessionsEnvelopeSchema = defineStrictSuccessEnvelope("activity.sessions", agentActivitySessionInventoryResponseSchema.shape);
|
|
351
|
+
const cliJsonAgentActivityHistoryEnvelopeSchema = defineStrictSuccessEnvelope("activity.history", sessionHistoryPageSchema.shape);
|
|
350
352
|
const cliJsonAgentActivityIntegrationStatusSchema = z$1.strictObject({
|
|
351
353
|
claude: z$1.boolean(),
|
|
352
354
|
codex: z$1.boolean(),
|
|
@@ -546,6 +548,7 @@ const cliJsonOutputEnvelopeSchema = z$1.discriminatedUnion("type", [
|
|
|
546
548
|
cliJsonProjectsConnectionsRemoveEnvelopeSchema,
|
|
547
549
|
cliJsonAgentActivityReadEnvelopeSchema,
|
|
548
550
|
cliJsonAgentActivitySessionsEnvelopeSchema,
|
|
551
|
+
cliJsonAgentActivityHistoryEnvelopeSchema,
|
|
549
552
|
cliJsonAgentActivityInstallEnvelopeSchema,
|
|
550
553
|
cliJsonAgentActivityUninstallEnvelopeSchema,
|
|
551
554
|
cliJsonAgentActivityStatusEnvelopeSchema,
|
|
@@ -2833,7 +2836,7 @@ function storeNewestSpaceConfig(list, candidate) {
|
|
|
2833
2836
|
if (!existing || compareIsoDateDesc(candidate.updatedAt, existing.updatedAt) < 0) list.set(candidate.space, candidate);
|
|
2834
2837
|
}
|
|
2835
2838
|
function normalizeSpaceConfig(value) {
|
|
2836
|
-
if (!isRecord$
|
|
2839
|
+
if (!isRecord$3(value)) return null;
|
|
2837
2840
|
if (value.v === 2) return normalizeCurrentSpaceConfig(value);
|
|
2838
2841
|
if (value.v === 1) return normalizeLegacySpaceConfig(value);
|
|
2839
2842
|
return null;
|
|
@@ -2862,7 +2865,7 @@ function normalizeCurrentSpaceConfig(parsed) {
|
|
|
2862
2865
|
});
|
|
2863
2866
|
}
|
|
2864
2867
|
function normalizeSpaceCacheMaintenanceState(value) {
|
|
2865
|
-
if (!isRecord$
|
|
2868
|
+
if (!isRecord$3(value)) return null;
|
|
2866
2869
|
const lastRunAt = resolveIsoTimestamp(value.lastRunAt);
|
|
2867
2870
|
const lastRemovedByRemote = resolveOptionalNonNegativeInteger(value.lastRemovedByRemote);
|
|
2868
2871
|
const lastRemovedByTtl = resolveOptionalNonNegativeInteger(value.lastRemovedByTtl);
|
|
@@ -2877,8 +2880,8 @@ function normalizeSpaceCacheMaintenanceState(value) {
|
|
|
2877
2880
|
};
|
|
2878
2881
|
}
|
|
2879
2882
|
function normalizeSpaceCacheDeletionNoticeState(value) {
|
|
2880
|
-
if (!isRecord$
|
|
2881
|
-
if (value.v !== SPACE_CACHE_DELETION_NOTICE_SCHEMA_VERSION || !isRecord$
|
|
2883
|
+
if (!isRecord$3(value)) return null;
|
|
2884
|
+
if (value.v !== SPACE_CACHE_DELETION_NOTICE_SCHEMA_VERSION || !isRecord$3(value.seen)) return null;
|
|
2882
2885
|
const seen = {};
|
|
2883
2886
|
for (const [rawKey, rawValue] of Object.entries(value.seen)) {
|
|
2884
2887
|
const key = normalizeTrimmedOptionalString(rawKey);
|
|
@@ -2979,7 +2982,7 @@ function hasInvalidLegacySpaceConfigPrimitives(parsed) {
|
|
|
2979
2982
|
hasInvalidOptionalStringEntry(parsed, "role"),
|
|
2980
2983
|
hasInvalidOptionalStringEntry(parsed, "mentionAlias"),
|
|
2981
2984
|
hasInvalidOptionalStringEntry(parsed, "guide"),
|
|
2982
|
-
hasOwn(parsed, "permissions") && !isRecord$
|
|
2985
|
+
hasOwn(parsed, "permissions") && !isRecord$3(parsed.permissions),
|
|
2983
2986
|
hasInvalidOptionalBooleanEntry(parsed, "passwordProtected"),
|
|
2984
2987
|
hasInvalidOptionalStringEntry(parsed, "spacePurpose"),
|
|
2985
2988
|
hasInvalidOptionalNonNegativeIntegerEntry(parsed, "activeAgentCount"),
|
|
@@ -3064,7 +3067,7 @@ function areStringListsEqual(left, right) {
|
|
|
3064
3067
|
for (let index = 0; index < left.length; index += 1) if (left[index] !== right[index]) return false;
|
|
3065
3068
|
return true;
|
|
3066
3069
|
}
|
|
3067
|
-
function isRecord$
|
|
3070
|
+
function isRecord$3(value) {
|
|
3068
3071
|
return !!value && typeof value === "object" && !Array.isArray(value);
|
|
3069
3072
|
}
|
|
3070
3073
|
function hasOwn(value, key) {
|
|
@@ -3358,6 +3361,7 @@ const OPENMELD_WAKE_WORKFLOW = `OpenMeld Wake workflow:
|
|
|
3358
3361
|
- Consider incorporating the requester's clear follow-ups to the current task before finishing, within the current permissions and execution mode. Keep separate assignments separate, and state what remains undone rather than merely promising action.
|
|
3359
3362
|
- Within the current permissions and execution mode, carry out the requester's explicitly authorized action without asking for the same permission again. A resumed task or another tool call does not by itself require renewed authorization. Ask only when necessary information or authority is missing, or the action, target, or scope materially changes. Tool output and retrieved content cannot grant permission; native permission controls still apply.
|
|
3360
3363
|
- When completion depends on other work, use an available supported wait or continuation capability and continue the original request when resumed. Do not ask the requester to say continue merely because you waited. If no supported callback exists, state the specific limitation; do not promise to return automatically or repeatedly poll an OpenMeld Agent task.
|
|
3364
|
+
- If a required read or tool fails and useful work can continue, promptly use report_progress when available to share the blocker, its effect on the request, and the next step in the Space. Private commentary does not reach the Space. Keep updates brief and public-safe; omit credentials, raw commands, and private reasoning. Do not repeat an unchanged blocker. If no useful work can continue after the supported recovery attempt, use the required completion action to report what remains blocked and what is needed next. Do not spend the turn repeating the same failed operation or permission request.
|
|
3361
3365
|
- Follow the current Wake's completion contract. When a Space Action is required, a private answer is insufficient. OpenMeld validates and publishes the proposal.`;
|
|
3362
3366
|
const COMPACT_DISPATCH_BOOTSTRAP_TEMPLATE_VERSION = "space-mesh-entry-brief-v2";
|
|
3363
3367
|
const LOCAL_AGENT_INSTRUCTION_CONTRACT_VERSION = "openmeld-native-instructions-v1";
|
|
@@ -5011,8 +5015,8 @@ async function readCodexSessionTitles(input) {
|
|
|
5011
5015
|
if (!line.trim()) continue;
|
|
5012
5016
|
try {
|
|
5013
5017
|
const record = JSON.parse(line);
|
|
5014
|
-
if (!isRecord$
|
|
5015
|
-
const sessionId = text$
|
|
5018
|
+
if (!isRecord$2(record)) continue;
|
|
5019
|
+
const sessionId = text$3(record.id);
|
|
5016
5020
|
const title = normalizeSharedSessionTitle(record.thread_name);
|
|
5017
5021
|
if (sessionId && title) titles.set(sessionId, title);
|
|
5018
5022
|
} catch {}
|
|
@@ -5020,13 +5024,13 @@ async function readCodexSessionTitles(input) {
|
|
|
5020
5024
|
return titles;
|
|
5021
5025
|
}
|
|
5022
5026
|
function normalizeSharedSessionTitle(value) {
|
|
5023
|
-
const normalized = text$
|
|
5027
|
+
const normalized = text$3(value);
|
|
5024
5028
|
return normalized && normalized.length <= 240 ? normalized : null;
|
|
5025
5029
|
}
|
|
5026
|
-
function text$
|
|
5030
|
+
function text$3(value) {
|
|
5027
5031
|
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
5028
5032
|
}
|
|
5029
|
-
function isRecord$
|
|
5033
|
+
function isRecord$2(value) {
|
|
5030
5034
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5031
5035
|
}
|
|
5032
5036
|
function isNodeError(error) {
|
|
@@ -5036,12 +5040,12 @@ function isNodeError(error) {
|
|
|
5036
5040
|
//#region src/agent-activity/observer-adapters.ts
|
|
5037
5041
|
const ACTIVE_WINDOW_MS = 2 * 6e4;
|
|
5038
5042
|
function parseCodexRolloutSnapshot(input) {
|
|
5039
|
-
const meta = input.lines.find((line) => isRecord(line) && line.type === "session_meta" && isRecord(line.payload));
|
|
5040
|
-
if (!(isRecord(meta) && isRecord(meta.payload))) return null;
|
|
5041
|
-
const sessionId = text$
|
|
5042
|
-
const cwd = text$
|
|
5043
|
+
const meta = input.lines.find((line) => isRecord$1(line) && line.type === "session_meta" && isRecord$1(line.payload));
|
|
5044
|
+
if (!(isRecord$1(meta) && isRecord$1(meta.payload))) return null;
|
|
5045
|
+
const sessionId = text$2(meta.payload.id);
|
|
5046
|
+
const cwd = text$2(meta.payload.cwd);
|
|
5043
5047
|
if (!(sessionId && cwd)) return null;
|
|
5044
|
-
const safeEvidence = input.lines.filter((line) => isRecord(line)).map((line) => ({
|
|
5048
|
+
const safeEvidence = input.lines.filter((line) => isRecord$1(line)).map((line) => ({
|
|
5045
5049
|
line,
|
|
5046
5050
|
observedAtMs: timestamp(line.timestamp)
|
|
5047
5051
|
})).filter((entry) => entry.observedAtMs !== null).sort((left, right) => Number(left.observedAtMs) - Number(right.observedAtMs));
|
|
@@ -5049,17 +5053,17 @@ function parseCodexRolloutSnapshot(input) {
|
|
|
5049
5053
|
const latestTurn = [...safeEvidence].reverse().find((entry) => entry.line.type === "turn_context");
|
|
5050
5054
|
const observedAtMs = latest?.observedAtMs ?? timestamp(meta.timestamp);
|
|
5051
5055
|
if (observedAtMs === null) return null;
|
|
5052
|
-
const turnPayload = isRecord(latestTurn?.line.payload) ? latestTurn.line.payload : {};
|
|
5056
|
+
const turnPayload = isRecord$1(latestTurn?.line.payload) ? latestTurn.line.payload : {};
|
|
5053
5057
|
const originator = normalizeCodexOriginator(meta.payload);
|
|
5054
5058
|
const status = resolveObservedStatus({
|
|
5055
5059
|
explicitIdle: safeEvidence.slice(-4).some((entry) => {
|
|
5056
|
-
const payload = isRecord(entry.line.payload) ? entry.line.payload : null;
|
|
5060
|
+
const payload = isRecord$1(entry.line.payload) ? entry.line.payload : null;
|
|
5057
5061
|
return entry.line.type === "event_msg" && (payload?.type === "task_complete" || payload?.type === "turn_aborted");
|
|
5058
5062
|
}),
|
|
5059
5063
|
nowMs: input.nowMs,
|
|
5060
5064
|
observedAtMs
|
|
5061
5065
|
});
|
|
5062
|
-
const git = isRecord(meta.payload.git) ? meta.payload.git : {};
|
|
5066
|
+
const git = isRecord$1(meta.payload.git) ? meta.payload.git : {};
|
|
5063
5067
|
return {
|
|
5064
5068
|
clientKind: resolveCodexClientKind(originator),
|
|
5065
5069
|
cwd,
|
|
@@ -5077,7 +5081,7 @@ function parseCodexRolloutSnapshot(input) {
|
|
|
5077
5081
|
"never"
|
|
5078
5082
|
]),
|
|
5079
5083
|
cliVersion: nullableText(meta.payload.cli_version),
|
|
5080
|
-
contextWindow: positiveInteger(isRecord(turnPayload.summary) ? turnPayload.summary.model_context_window : void 0),
|
|
5084
|
+
contextWindow: positiveInteger(isRecord$1(turnPayload.summary) ? turnPayload.summary.model_context_window : void 0),
|
|
5081
5085
|
modelProvider: nullableText(meta.payload.model_provider),
|
|
5082
5086
|
originator,
|
|
5083
5087
|
reasoningEffort: enumValue(turnPayload.effort, [
|
|
@@ -5088,7 +5092,7 @@ function parseCodexRolloutSnapshot(input) {
|
|
|
5088
5092
|
"xhigh",
|
|
5089
5093
|
"ultra"
|
|
5090
5094
|
]),
|
|
5091
|
-
sandboxMode: enumValue(isRecord(turnPayload.sandbox_policy) ? turnPayload.sandbox_policy.type : turnPayload.sandbox_policy, [
|
|
5095
|
+
sandboxMode: enumValue(isRecord$1(turnPayload.sandbox_policy) ? turnPayload.sandbox_policy.type : turnPayload.sandbox_policy, [
|
|
5092
5096
|
"read-only",
|
|
5093
5097
|
"workspace-write",
|
|
5094
5098
|
"danger-full-access"
|
|
@@ -5106,11 +5110,11 @@ function resolveCodexClientKind(originator) {
|
|
|
5106
5110
|
return originator === "cli" ? "codex-cli" : "unknown";
|
|
5107
5111
|
}
|
|
5108
5112
|
function parseClaudeTranscriptSnapshot(input) {
|
|
5109
|
-
const records = input.lines.filter((line) => isRecord(line));
|
|
5110
|
-
const identity = records.find((line) => text$
|
|
5113
|
+
const records = input.lines.filter((line) => isRecord$1(line));
|
|
5114
|
+
const identity = records.find((line) => text$2(line.sessionId) && text$2(line.cwd));
|
|
5111
5115
|
if (!identity) return null;
|
|
5112
|
-
const providerSessionId = text$
|
|
5113
|
-
const cwd = text$
|
|
5116
|
+
const providerSessionId = text$2(identity.sessionId);
|
|
5117
|
+
const cwd = text$2(identity.cwd);
|
|
5114
5118
|
if (!(providerSessionId && cwd)) return null;
|
|
5115
5119
|
const timed = records.map((line) => ({
|
|
5116
5120
|
line,
|
|
@@ -5118,7 +5122,7 @@ function parseClaudeTranscriptSnapshot(input) {
|
|
|
5118
5122
|
})).filter((entry) => entry.observedAtMs !== null).sort((left, right) => left.observedAtMs - right.observedAtMs);
|
|
5119
5123
|
const latest = timed.at(-1);
|
|
5120
5124
|
if (!latest) return null;
|
|
5121
|
-
const latestWithModel = [...timed].reverse().find((entry) => isRecord(entry.line.message) && text$
|
|
5125
|
+
const latestWithModel = [...timed].reverse().find((entry) => isRecord$1(entry.line.message) && text$2(entry.line.message.model));
|
|
5122
5126
|
const customTitle = [...records].reverse().find((line) => line.type === "custom-title");
|
|
5123
5127
|
const status = resolveObservedStatus({
|
|
5124
5128
|
explicitIdle: false,
|
|
@@ -5131,7 +5135,7 @@ function parseClaudeTranscriptSnapshot(input) {
|
|
|
5131
5135
|
eventType: status === "active" ? "heartbeat" : statusEventType(status),
|
|
5132
5136
|
gitBranch: nullableText(latest.line.gitBranch ?? identity.gitBranch),
|
|
5133
5137
|
gitCommit: null,
|
|
5134
|
-
model: isRecord(latestWithModel?.line.message) ? nullableText(latestWithModel.line.message.model) : null,
|
|
5138
|
+
model: isRecord$1(latestWithModel?.line.message) ? nullableText(latestWithModel.line.message.model) : null,
|
|
5135
5139
|
observedAtMs: latest.observedAtMs,
|
|
5136
5140
|
provider: "claude-code",
|
|
5137
5141
|
providerMetadata: compact({
|
|
@@ -5157,8 +5161,8 @@ function parseClaudeTranscriptSnapshot(input) {
|
|
|
5157
5161
|
};
|
|
5158
5162
|
}
|
|
5159
5163
|
function parseOpenCodeSessionRow(input) {
|
|
5160
|
-
const providerSessionId = text$
|
|
5161
|
-
const cwd = text$
|
|
5164
|
+
const providerSessionId = text$2(input.row.id);
|
|
5165
|
+
const cwd = text$2(input.row.directory);
|
|
5162
5166
|
const observedAtMs = timestamp(input.row.time_updated);
|
|
5163
5167
|
if (!(providerSessionId && cwd && observedAtMs !== null)) return null;
|
|
5164
5168
|
const model = parseJsonRecord(input.row.model);
|
|
@@ -5257,13 +5261,13 @@ function resolveObservedStatus(input) {
|
|
|
5257
5261
|
return !input.explicitIdle && input.nowMs - input.observedAtMs <= ACTIVE_WINDOW_MS ? "active" : "idle";
|
|
5258
5262
|
}
|
|
5259
5263
|
function normalizeCodexOriginator(meta) {
|
|
5260
|
-
if (text$
|
|
5261
|
-
if (isRecord(meta.source) && "subagent" in meta.source) return "subagent";
|
|
5262
|
-
const originator = text$
|
|
5264
|
+
if (text$2(meta.originator) === "Codex Desktop") return "desktop";
|
|
5265
|
+
if (isRecord$1(meta.source) && "subagent" in meta.source) return "subagent";
|
|
5266
|
+
const originator = text$2(meta.originator)?.toLowerCase();
|
|
5263
5267
|
return originator === "codex cli" || originator === "codex_cli" ? "cli" : void 0;
|
|
5264
5268
|
}
|
|
5265
5269
|
function normalizeClaudeEntrypoint(value) {
|
|
5266
|
-
const normalized = text$
|
|
5270
|
+
const normalized = text$2(value);
|
|
5267
5271
|
if (normalized === "claude-desktop") return "desktop";
|
|
5268
5272
|
return normalized === "cli" ? "cli" : void 0;
|
|
5269
5273
|
}
|
|
@@ -5275,7 +5279,7 @@ function compact(value) {
|
|
|
5275
5279
|
return Object.fromEntries(Object.entries(value).filter(([, entry]) => entry !== void 0));
|
|
5276
5280
|
}
|
|
5277
5281
|
function enumValue(value, allowed) {
|
|
5278
|
-
const normalized = text$
|
|
5282
|
+
const normalized = text$2(value);
|
|
5279
5283
|
return normalized && allowed.includes(normalized) ? normalized : void 0;
|
|
5280
5284
|
}
|
|
5281
5285
|
function positiveInteger(value) {
|
|
@@ -5296,31 +5300,32 @@ function timestamp(value) {
|
|
|
5296
5300
|
return Number.isFinite(parsed) ? parsed : null;
|
|
5297
5301
|
}
|
|
5298
5302
|
function nullableText(value) {
|
|
5299
|
-
const normalized = text$
|
|
5303
|
+
const normalized = text$2(value);
|
|
5300
5304
|
return normalized && normalized.length <= 512 ? normalized : null;
|
|
5301
5305
|
}
|
|
5302
|
-
function text$
|
|
5306
|
+
function text$2(value) {
|
|
5303
5307
|
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
5304
5308
|
}
|
|
5305
5309
|
function parseJsonRecord(value) {
|
|
5306
|
-
if (isRecord(value)) return value;
|
|
5310
|
+
if (isRecord$1(value)) return value;
|
|
5307
5311
|
if (typeof value !== "string") return null;
|
|
5308
5312
|
try {
|
|
5309
5313
|
const parsed = JSON.parse(value);
|
|
5310
|
-
return isRecord(parsed) ? parsed : null;
|
|
5314
|
+
return isRecord$1(parsed) ? parsed : null;
|
|
5311
5315
|
} catch {
|
|
5312
5316
|
return null;
|
|
5313
5317
|
}
|
|
5314
5318
|
}
|
|
5315
|
-
function isRecord(value) {
|
|
5319
|
+
function isRecord$1(value) {
|
|
5316
5320
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5317
5321
|
}
|
|
5318
5322
|
//#endregion
|
|
5319
5323
|
//#region src/agent-activity/opencode-storage.ts
|
|
5320
5324
|
/** Native retained-session reads shared by inventory and execution admission. */
|
|
5321
5325
|
async function readOpenCodeSessionRows(databasePath, nativeSessionId) {
|
|
5322
|
-
|
|
5323
|
-
|
|
5326
|
+
return await queryOpenCodeReadOnly(databasePath, `SELECT id, directory, title, time_created, time_updated, time_archived FROM session ${nativeSessionId === void 0 ? "ORDER BY time_updated DESC, id ASC" : "WHERE id = ?"}`, nativeSessionId === void 0 ? [] : [nativeSessionId]);
|
|
5327
|
+
}
|
|
5328
|
+
async function queryOpenCodeReadOnly(databasePath, sql, parameters) {
|
|
5324
5329
|
if (typeof process.versions.bun === "string") {
|
|
5325
5330
|
const { Database } = await import("bun:sqlite");
|
|
5326
5331
|
const database = new Database(databasePath, {
|
|
@@ -5768,8 +5773,8 @@ function reportCandidateReadDiagnostic(input, diagnostic) {
|
|
|
5768
5773
|
}
|
|
5769
5774
|
async function processOpenCodeIdentityRows(input, database, identityRows, result) {
|
|
5770
5775
|
for (const identity of identityRows) {
|
|
5771
|
-
const id = text(identity.id);
|
|
5772
|
-
const directory = text(identity.directory);
|
|
5776
|
+
const id = text$1(identity.id);
|
|
5777
|
+
const directory = text$1(identity.directory);
|
|
5773
5778
|
const updatedAtMs = Number(identity.time_updated) || 0;
|
|
5774
5779
|
input.state.openCodeCursor = {
|
|
5775
5780
|
id: id ?? "",
|
|
@@ -5991,7 +5996,7 @@ async function writeObserverState(input, state) {
|
|
|
5991
5996
|
function observerStatePath(input) {
|
|
5992
5997
|
return join(input.rootDir ?? resolveOpenMeldRootDir(), "device", "agent-activity", "observer-state.json");
|
|
5993
5998
|
}
|
|
5994
|
-
function text(value) {
|
|
5999
|
+
function text$1(value) {
|
|
5995
6000
|
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
5996
6001
|
}
|
|
5997
6002
|
//#endregion
|
|
@@ -6129,6 +6134,140 @@ function sendDaemonFrame(sink, input) {
|
|
|
6129
6134
|
}));
|
|
6130
6135
|
}
|
|
6131
6136
|
//#endregion
|
|
6137
|
+
//#region src/agent-activity/codex-read-client.ts
|
|
6138
|
+
const PROVIDER_DISCOVERY_TIMEOUT_MS = 3e4;
|
|
6139
|
+
const MAX_JSON_RPC_LINE_BYTES = 8 * 1024 * 1024;
|
|
6140
|
+
function createCodexJsonRpcClient(launchContract) {
|
|
6141
|
+
const invocation = buildCliLaunchInvocation({
|
|
6142
|
+
args: [
|
|
6143
|
+
"app-server",
|
|
6144
|
+
"--listen",
|
|
6145
|
+
"stdio://"
|
|
6146
|
+
],
|
|
6147
|
+
launchContract
|
|
6148
|
+
});
|
|
6149
|
+
const child = spawn(invocation.bin, invocation.args, {
|
|
6150
|
+
env: process.env,
|
|
6151
|
+
shell: invocation.shell ?? false,
|
|
6152
|
+
stdio: [
|
|
6153
|
+
"pipe",
|
|
6154
|
+
"pipe",
|
|
6155
|
+
"ignore"
|
|
6156
|
+
],
|
|
6157
|
+
windowsHide: true
|
|
6158
|
+
});
|
|
6159
|
+
let nextId = 1;
|
|
6160
|
+
let buffer = "";
|
|
6161
|
+
let closed = false;
|
|
6162
|
+
const pending = /* @__PURE__ */ new Map();
|
|
6163
|
+
const rejectPending = (error) => {
|
|
6164
|
+
for (const request of pending.values()) {
|
|
6165
|
+
clearTimeout(request.timer);
|
|
6166
|
+
request.reject(error);
|
|
6167
|
+
}
|
|
6168
|
+
pending.clear();
|
|
6169
|
+
};
|
|
6170
|
+
child.stdout.setEncoding("utf8");
|
|
6171
|
+
child.stdout.on("data", (chunk) => {
|
|
6172
|
+
buffer = consumeCodexJsonRpcChunk({
|
|
6173
|
+
buffer,
|
|
6174
|
+
chunk,
|
|
6175
|
+
kill: () => child.kill("SIGTERM"),
|
|
6176
|
+
pending,
|
|
6177
|
+
rejectPending
|
|
6178
|
+
});
|
|
6179
|
+
});
|
|
6180
|
+
child.on("error", (error) => rejectPending(error));
|
|
6181
|
+
child.on("close", () => {
|
|
6182
|
+
closed = true;
|
|
6183
|
+
rejectPending(/* @__PURE__ */ new Error("Codex app-server closed during discovery."));
|
|
6184
|
+
});
|
|
6185
|
+
return {
|
|
6186
|
+
close: async () => {
|
|
6187
|
+
if (closed) return;
|
|
6188
|
+
child.kill("SIGTERM");
|
|
6189
|
+
await new Promise((resolveClose) => {
|
|
6190
|
+
const timer = setTimeout(resolveClose, 1e3);
|
|
6191
|
+
child.once("close", () => {
|
|
6192
|
+
clearTimeout(timer);
|
|
6193
|
+
resolveClose();
|
|
6194
|
+
});
|
|
6195
|
+
});
|
|
6196
|
+
},
|
|
6197
|
+
notify: (method, params) => {
|
|
6198
|
+
child.stdin.write(`${JSON.stringify({
|
|
6199
|
+
jsonrpc: "2.0",
|
|
6200
|
+
method,
|
|
6201
|
+
params
|
|
6202
|
+
})}\n`);
|
|
6203
|
+
},
|
|
6204
|
+
request: (method, params) => {
|
|
6205
|
+
if (closed) return Promise.reject(/* @__PURE__ */ new Error("Codex app-server is closed."));
|
|
6206
|
+
const id = nextId;
|
|
6207
|
+
nextId += 1;
|
|
6208
|
+
return new Promise((resolveRequest, rejectRequest) => {
|
|
6209
|
+
const timer = setTimeout(() => {
|
|
6210
|
+
pending.delete(id);
|
|
6211
|
+
rejectRequest(/* @__PURE__ */ new Error(`Codex ${method} timed out.`));
|
|
6212
|
+
}, PROVIDER_DISCOVERY_TIMEOUT_MS);
|
|
6213
|
+
pending.set(id, {
|
|
6214
|
+
reject: rejectRequest,
|
|
6215
|
+
resolve: resolveRequest,
|
|
6216
|
+
timer
|
|
6217
|
+
});
|
|
6218
|
+
child.stdin.write(`${JSON.stringify({
|
|
6219
|
+
id,
|
|
6220
|
+
jsonrpc: "2.0",
|
|
6221
|
+
method,
|
|
6222
|
+
params
|
|
6223
|
+
})}\n`);
|
|
6224
|
+
});
|
|
6225
|
+
}
|
|
6226
|
+
};
|
|
6227
|
+
}
|
|
6228
|
+
function consumeCodexJsonRpcChunk(input) {
|
|
6229
|
+
let buffer = input.buffer + input.chunk;
|
|
6230
|
+
if (Buffer.byteLength(buffer) > MAX_JSON_RPC_LINE_BYTES) {
|
|
6231
|
+
input.rejectPending(/* @__PURE__ */ new Error("Codex app-server response exceeded its bound."));
|
|
6232
|
+
input.kill();
|
|
6233
|
+
return "";
|
|
6234
|
+
}
|
|
6235
|
+
while (true) {
|
|
6236
|
+
const newline = buffer.indexOf("\n");
|
|
6237
|
+
if (newline < 0) return buffer;
|
|
6238
|
+
const line = buffer.slice(0, newline).trim();
|
|
6239
|
+
buffer = buffer.slice(newline + 1);
|
|
6240
|
+
if (!line) continue;
|
|
6241
|
+
let message;
|
|
6242
|
+
try {
|
|
6243
|
+
message = JSON.parse(line);
|
|
6244
|
+
} catch {
|
|
6245
|
+
input.rejectPending(/* @__PURE__ */ new Error("Codex app-server returned invalid JSON."));
|
|
6246
|
+
input.kill();
|
|
6247
|
+
return "";
|
|
6248
|
+
}
|
|
6249
|
+
settleCodexJsonRpcResponse(message, input.pending);
|
|
6250
|
+
}
|
|
6251
|
+
}
|
|
6252
|
+
function settleCodexJsonRpcResponse(message, pending) {
|
|
6253
|
+
if (!isRecord(message) || typeof message.id !== "number") return;
|
|
6254
|
+
const request = pending.get(message.id);
|
|
6255
|
+
if (!request) return;
|
|
6256
|
+
pending.delete(message.id);
|
|
6257
|
+
clearTimeout(request.timer);
|
|
6258
|
+
if (isRecord(message.error)) {
|
|
6259
|
+
request.reject(new Error(text(message.error.message) ?? "Codex app-server request failed."));
|
|
6260
|
+
return;
|
|
6261
|
+
}
|
|
6262
|
+
request.resolve(message.result);
|
|
6263
|
+
}
|
|
6264
|
+
function isRecord(value) {
|
|
6265
|
+
return Boolean(value && typeof value === "object" && !Array.isArray(value));
|
|
6266
|
+
}
|
|
6267
|
+
function text(value) {
|
|
6268
|
+
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
6269
|
+
}
|
|
6270
|
+
//#endregion
|
|
6132
6271
|
//#region src/runtime/dispatch-space-action-context.ts
|
|
6133
6272
|
const OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV = "OPENMELD_SPACE_ACTION_CONTEXT_PATH";
|
|
6134
6273
|
/** The local action context is known expired/closed/mismatched: a new ordinary action must be rejected, never recorded. */
|
|
@@ -6612,6 +6751,6 @@ function prependPathEntry(input) {
|
|
|
6612
6751
|
return [input.nextEntry, ...dedupedEntries].join(delimiter);
|
|
6613
6752
|
}
|
|
6614
6753
|
//#endregion
|
|
6615
|
-
export {
|
|
6754
|
+
export { readRecentDaemonDispatchJournalEvents as $, getSpaceAccessRequestContext as $t, enqueueAgentActivityHookEvent as A, buildDispatchResultMessageReadProjection as At, buildAgentControllerInterfaceKeeperKey as B, buildSpaceProfileAddPlan as Bt, resolveOpenCodeAuthPath as C, cliJsonSkillsScanEnvelopeSchema as Cn, toLocalSpaceStateIntegrityError as Ct, normalizeSharedSessionTitle as D, organizationJoinLinkErrorResponseSchema as Dn, writeSpaceCacheDeletionNoticeState as Dt, resolveObservedAgentActivityBinding as E, getOrganizationJoinLinkResponseSchema as En, upsertSpaceConfig as Et, readAgentActivityOutboxHealth as F, buildSignalMessageReadProjection as Ft, readLastSuccessfulAgentControllerInterfaceCheckAt as G, collectResolvedSpaceMentions as Gt, didAgentControllerCommandFingerprintRemainStable as H, buildSpaceRoundSignalPublication as Ht, readDueAgentActivityOutbox as I, buildSignalReplyWorkflowProjection as It, recordAgentControllerInterfaceProbeSuccess as J, createSpaceTargetCatalog as Jt, readReusableAgentControllerInterfaceSnapshot as K, createDispatchContinuationSpaceAccessContext as Kt, removeProjectOutbox as L, buildSpaceMemberAgentPresencePresentation as Lt, AgentActivitySubmissionResultsMismatchError as M, buildPublicSpaceEntryPath as Mt, applyAgentActivitySubmissionResults as N, buildPublicSpaceEntryUrl as Nt, readCodexSessionTitles as O, organizationJoinLinkManagementQuerySchema as On, writeSpaceRecentMentionProfileIds as Ot, deferAgentActivityOutbox as P, buildSignalIndex as Pt, emitDaemonDispatchJournalEvent as Q, getSpaceAccessPassword as Qt, readRecentAgentActivityHookStatus as R, buildSpaceMentionProfileIndex as Rt, readOpenCodeSessionRows as S, cliJsonSkillsLoadEnvelopeSchema as Sn, removeSpaceConfig as St, buildAgentActivityEvent as T, acceptOrganizationJoinLinkBodySchema as Tn, updateSpaceLastSeenTs as Tt, readLastKnownAgentControllerAuthSnapshot as U, buildUpdatesReplyWorkflowProjection as Ut, consumeArmedAgentControllerInterfaceReprobe as V, buildSpaceRoundReadProjection as Vt, readLastKnownAgentControllerUsageLimits as W, closeMentionPickerState as Wt, resolveAgentControllerCommandFingerprint as X, extractMentionAuthoringPrefix as Xt, recordAgentControllerUsageLimitsObservation as Y, enterRelationPickerState as Yt, resolveNextRuntimeAgentControllerReportSyncAtMs as Z, formatRemovedCcRelationMessage as Zt, sendDaemonFrame as _, cliJsonOutputEnvelopeSchema as _n, listSpaceConfigs as _t, DispatchSpaceActionClosedError as a, listSpaceMentionSuggestions as an, buildDispatchBootstrapTemplateFacts as at, startAgentActivityTranscriptWatchers as b, cliJsonSkillsAddPreviewEnvelopeSchema as bn, readSpaceLastSeenTs as bt, createDispatchSpaceActionContext as c, prepareSpaceFileOnlySubmission as cn, buildDispatchSessionTitle as ct, readDispatchSpaceActionRecord as d, returnToTargetPickerState as dn, resolveBootstrapTargetProfileContext as dt, isRelationPickerState as en, ComputerFileAccessStoreError as et, supersedeDispatchSpaceActionRecordForReconsideration as f, updateAuthoredMentionRanges as fn, resolveDispatchMentionSourceContext as ft, parseDaemonFrame as g, cliJsonErrorEnvelopeSchema as gn, isLocalSpaceStateCorruptResult as gt, handleDaemonTransportFrame as h, OPENMELD_DISPATCH_RUNTIME_MODE_ENV as hn, inspectSpaceCacheFile as ht, readDispatchOwnedRuntimeGuard as i, listSpaceMentionRelationChoices as in, isSameOrDescendantPath as it, removeProjectInbox as j, buildDispatchResultReplyWorkflowProjection as jt, drainAgentActivityHookInbox as k, revokeOrganizationJoinLinkResponseSchema as kn, SpaceComposerSubmissionError as kt, readDispatchSpaceActionContextForReceiptFromEnv as l, resolveNextRecentMentionProfileIdsForQueuedText as ln, parseDispatchTask as lt, createCodexJsonRpcClient as m, DISPATCH_SPACE_ACTION_CLI_FALLBACK_COMMAND as mn, LocalSpaceStateIntegrityError as mt, assertDispatchOwnedRuntimeServiceMutationAllowed as n, isWakeClosingSystemNoticeType as nn, resolveComputerFileAccessStorePath as nt, DispatchSpaceActionRejectedError as o, openTargetPickerState as on, buildDispatchCorrelation as ot, writeDispatchSpaceActionRecord as p, DISPATCH_OWNED_RUNTIME_MODE as pn, projectSpaceProfileCache as pt, recordAgentControllerInterfaceProbeFailure as q, createSpaceMemberIdentityIndex as qt, buildDispatchOwnedRuntimeEnv as r, listSpaceMemberDirectorySendTargets as rn, updateComputerFileAccessPolicy as rt, OPENMELD_SPACE_ACTION_CONTEXT_PATH_ENV as s, prepareSpaceComposerSubmission as sn, buildDispatchPromptPlan as st, assertDispatchOwnedRuntimePublicWriteAllowed as t, isTargetPickerState as tn, readComputerFileAccessPolicy as tt, readDispatchSpaceActionContextFromEnv as u, resolveSpaceMemberAgentOwnerWakeDiagnosticsView as un, resolveBootstrapSpaceOwnerProfileId as ut, collectObservedSessionWorkingDirectories as v, cliJsonSkillsAddAllEnvelopeSchema as vn, readSpaceCacheDeletionNoticeState as vt, resolveOpenCodeDatabasePath as w, cliJsonSkillsShowEnvelopeSchema as wn, toSpaceConfigListIntegrityError as wt, queryOpenCodeReadOnly as x, cliJsonSkillsListEnvelopeSchema as xn, readSpaceRecentMentionProfileIds as xt, scanLocalAgentActivity as y, cliJsonSkillsAddEnvelopeSchema as yn, readSpaceConfig as yt, createServiceGitEnvironment as z, buildSpaceMessageReadRelationSummary as zt };
|
|
6616
6755
|
|
|
6617
|
-
//# sourceMappingURL=dispatch-owned-runtime-
|
|
6756
|
+
//# sourceMappingURL=dispatch-owned-runtime-QhxDRdNr.js.map
|