openmeld 0.3.246 → 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.
- package/dist/{add-me-membership-C7dYkfPz.js → add-me-membership-DUeJA9q4.js} +2 -2
- package/dist/{add-me-membership-C7dYkfPz.js.map → add-me-membership-DUeJA9q4.js.map} +1 -1
- package/dist/{agents-QisYIlFS.js → agents-woAcH0O6.js} +10 -10
- package/dist/{agents-QisYIlFS.js.map → agents-woAcH0O6.js.map} +1 -1
- package/dist/{api-client-foundation-CYbEdm9o.js → api-client-foundation-DMEfIARh.js} +3 -3
- package/dist/{api-client-foundation-CYbEdm9o.js.map → api-client-foundation-DMEfIARh.js.map} +1 -1
- package/dist/{api-client-foundation-B1aTRrIy.js → api-client-foundation-mqLjUunz.js} +1 -1
- package/dist/{auth-session-JhILeJRO.js → auth-session-D7hlE-47.js} +2 -2
- package/dist/{auth-session-JhILeJRO.js.map → auth-session-D7hlE-47.js.map} +1 -1
- package/dist/auth-session-DXxmGll1.js +4 -0
- package/dist/{channel-C6tm9T7P.js → channel-BeUv2bLR.js} +3 -3
- package/dist/{channel-C6tm9T7P.js.map → channel-BeUv2bLR.js.map} +1 -1
- package/dist/{cloud-computer-J2tdcTPm.js → cloud-computer-C81_vVOV.js} +4 -4
- package/dist/{cloud-computer-J2tdcTPm.js.map → cloud-computer-C81_vVOV.js.map} +1 -1
- package/dist/{command-BXJ-OwBD.js → command-qNknO9gl.js} +15 -15
- package/dist/{command-BXJ-OwBD.js.map → command-qNknO9gl.js.map} +1 -1
- package/dist/{computer-connection-BKtrn0d2.js → computer-connection-WpsIQfkh.js} +2 -2
- package/dist/{computer-connection-BKtrn0d2.js.map → computer-connection-WpsIQfkh.js.map} +1 -1
- package/dist/{computer-connection-review-bUqNKi6q.js → computer-connection-review-Df2G8VWY.js} +5 -5
- package/dist/{computer-connection-review-bUqNKi6q.js.map → computer-connection-review-Df2G8VWY.js.map} +1 -1
- package/dist/{computer-disconnect-D_Apsn9P.js → computer-disconnect-ttAH9WgN.js} +7 -7
- package/dist/{computer-disconnect-D_Apsn9P.js.map → computer-disconnect-ttAH9WgN.js.map} +1 -1
- package/dist/{computer-setup-continuation-occq0LmS.js → computer-setup-continuation-tbuUZSe5.js} +3 -3
- package/dist/{computer-setup-continuation-occq0LmS.js.map → computer-setup-continuation-tbuUZSe5.js.map} +1 -1
- package/dist/{context-M7dvalCp.js → context-x0T_qTHp.js} +4 -4
- package/dist/{context-M7dvalCp.js.map → context-x0T_qTHp.js.map} +1 -1
- package/dist/{daemon-device-id-C3gKch4E.js → daemon-device-id-DgwvQllt.js} +4 -4
- package/dist/{daemon-device-id-C3gKch4E.js.map → daemon-device-id-DgwvQllt.js.map} +1 -1
- package/dist/{daemon-lifecycle-journal-CGUuJshv.js → daemon-lifecycle-journal-C32I8p4n.js} +3 -3
- package/dist/{daemon-lifecycle-journal-CGUuJshv.js.map → daemon-lifecycle-journal-C32I8p4n.js.map} +1 -1
- package/dist/{daemon-service-runtime-CktU3ER4.js → daemon-service-runtime-DVqzJKke.js} +2 -2
- package/dist/{daemon-service-runtime-CktU3ER4.js.map → daemon-service-runtime-DVqzJKke.js.map} +1 -1
- package/dist/{daemon-service-update-coordinator-D0-15tZW.js → daemon-service-update-coordinator-BTlVzU-7.js} +14 -14
- package/dist/daemon-service-update-coordinator-BTlVzU-7.js.map +1 -0
- package/dist/{dispatch-owned-runtime-gOluDX5_.js → dispatch-owned-runtime-g2lLeYtx.js} +187 -50
- package/dist/dispatch-owned-runtime-g2lLeYtx.js.map +1 -0
- package/dist/dist-CXB_bdSS.js +4 -0
- package/dist/{dist-KibLweLD.js → dist-DGeoVaIx.js} +404 -279
- package/dist/dist-DGeoVaIx.js.map +1 -0
- package/dist/{dual-view-guide-catalog-0kSizTFt.js → dual-view-guide-catalog-CkcY09Kh.js} +3 -3
- package/dist/{dual-view-guide-catalog-0kSizTFt.js.map → dual-view-guide-catalog-CkcY09Kh.js.map} +1 -1
- package/dist/{elapsed-time-Bo1CJczC.js → elapsed-time-BMG1CU23.js} +3 -3
- package/dist/{elapsed-time-Bo1CJczC.js.map → elapsed-time-BMG1CU23.js.map} +1 -1
- package/dist/{entry-B11DkH2I.js → entry-CP7_Vgs4.js} +7 -7
- package/dist/{entry-B11DkH2I.js.map → entry-CP7_Vgs4.js.map} +1 -1
- package/dist/{installation-inventory-BZgQmVup.js → installation-inventory-7JOtUjyG.js} +3 -3
- package/dist/{installation-inventory-BZgQmVup.js.map → installation-inventory-7JOtUjyG.js.map} +1 -1
- package/dist/{installer-k2gOOs58.js → installer-BRpAz1X_.js} +2 -2
- package/dist/{installer-k2gOOs58.js.map → installer-BRpAz1X_.js.map} +1 -1
- package/dist/{meta-api-DruuiAx-.js → meta-api-QskBmfuf.js} +5 -5
- package/dist/{meta-api-DruuiAx-.js.map → meta-api-QskBmfuf.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-BxTCCHMn.js} +194 -60
- package/dist/openmeld-BxTCCHMn.js.map +1 -0
- package/dist/{openmeld-maintenance-worker-DwkvZD0q.js → openmeld-maintenance-worker-BQ2YbwA9.js} +9 -9
- package/dist/{openmeld-maintenance-worker-DwkvZD0q.js.map → openmeld-maintenance-worker-BQ2YbwA9.js.map} +1 -1
- package/dist/{openmeld-tools-update-join-BNUIw_Lo.js → openmeld-tools-update-join-Dj-MEQW_.js} +4 -4
- package/dist/{openmeld-tools-update-join-BNUIw_Lo.js.map → openmeld-tools-update-join-Dj-MEQW_.js.map} +1 -1
- package/dist/openmeld.js +4 -4
- package/dist/{prepare-provider-runtime-_XRIioDp.js → prepare-provider-runtime-B6_dfpiZ.js} +74 -22
- package/dist/prepare-provider-runtime-B6_dfpiZ.js.map +1 -0
- package/dist/{prepare-session-executor-B5AjN0qz.js → prepare-session-executor-DA9saGAk.js} +18 -18
- package/dist/{prepare-session-executor-B5AjN0qz.js.map → prepare-session-executor-DA9saGAk.js.map} +1 -1
- package/dist/{process-channel-CTXWjlBP.js → process-channel-HthE5ehS.js} +2 -2
- package/dist/{process-channel-CTXWjlBP.js.map → process-channel-HthE5ehS.js.map} +1 -1
- package/dist/{runtime-DCBc6YOq.js → runtime-C7lY_Z2r.js} +103 -20
- package/dist/{runtime-DCBc6YOq.js.map → runtime-C7lY_Z2r.js.map} +1 -1
- package/dist/{runtime-agent-controller-reporting-submission-CGa3GGL6.js → runtime-agent-controller-reporting-submission-IhxMO4UA.js} +8 -8
- package/dist/{runtime-agent-controller-reporting-submission-CGa3GGL6.js.map → runtime-agent-controller-reporting-submission-IhxMO4UA.js.map} +1 -1
- package/dist/{runtime-transport-BzCp9hM3.js → runtime-transport-DRb5__yP.js} +188 -18
- package/dist/runtime-transport-DRb5__yP.js.map +1 -0
- package/dist/{service-BEH6-P8U.js → service-DveGEdh3.js} +312 -21
- package/dist/service-DveGEdh3.js.map +1 -0
- package/dist/{service-account-authorization-CtvSn02O.js → service-account-authorization-CAVkiKSF.js} +2 -2
- package/dist/{service-account-authorization-CtvSn02O.js.map → service-account-authorization-CAVkiKSF.js.map} +1 -1
- package/dist/{service-account-control-BUPiFEGo.js → service-account-control-BtE73wcO.js} +9 -9
- package/dist/{service-account-control-BUPiFEGo.js.map → service-account-control-BtE73wcO.js.map} +1 -1
- package/dist/{service-control-capabilities-PMvSlaJj.js → service-control-capabilities-BQrqIGBP.js} +3 -3
- package/dist/{service-control-capabilities-PMvSlaJj.js.map → service-control-capabilities-BQrqIGBP.js.map} +1 -1
- package/dist/{service-control-capabilities-D-Nhqqgo.js → service-control-capabilities-adDptMIH.js} +1 -1
- package/dist/{state-C_iJAzKh.js → state-DWwNdCy5.js} +2 -2
- package/dist/{state-C_iJAzKh.js.map → state-DWwNdCy5.js.map} +1 -1
- package/dist/{updates-api-s2-QB929.js → updates-api-9midbUU1.js} +12 -136
- package/dist/updates-api-9midbUU1.js.map +1 -0
- package/dist/upgrade-BvpBhL0U.js +4 -0
- package/dist/{upgrade-JmhCNmvs.js → upgrade-H-_QW75e.js} +8 -8
- package/dist/{upgrade-JmhCNmvs.js.map → upgrade-H-_QW75e.js.map} +1 -1
- package/package.json +12 -12
- 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,23 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
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-
|
|
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 {
|
|
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
7
|
import { O as openMeldRuntimeProfileIdSchema } from "./control-plane-B93wmVS6.js";
|
|
8
|
-
import { $n as
|
|
9
|
-
import { d as getAuthSessionState } from "./auth-session-
|
|
10
|
-
import { o as dirnamePath } from "./daemon-device-id-
|
|
11
|
-
import { A as
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
|
@@ -1490,8 +1490,6 @@ function isNodeError$2(error, code) {
|
|
|
1490
1490
|
//#endregion
|
|
1491
1491
|
//#region src/agent-activity/session-inventory-provider-adapters.ts
|
|
1492
1492
|
const PROVIDER_PROBE_TIMEOUT_MS = 5e3;
|
|
1493
|
-
const PROVIDER_DISCOVERY_TIMEOUT_MS = 3e4;
|
|
1494
|
-
const MAX_JSON_RPC_LINE_BYTES = 8 * 1024 * 1024;
|
|
1495
1493
|
const CODEX_THREAD_SOURCE_KINDS = [
|
|
1496
1494
|
"cli",
|
|
1497
1495
|
"vscode",
|
|
@@ -1635,130 +1633,6 @@ async function listAllCodexThreads(launchContract) {
|
|
|
1635
1633
|
await client.close();
|
|
1636
1634
|
}
|
|
1637
1635
|
}
|
|
1638
|
-
function createCodexJsonRpcClient(launchContract) {
|
|
1639
|
-
const invocation = buildCliLaunchInvocation({
|
|
1640
|
-
args: [
|
|
1641
|
-
"app-server",
|
|
1642
|
-
"--listen",
|
|
1643
|
-
"stdio://"
|
|
1644
|
-
],
|
|
1645
|
-
launchContract
|
|
1646
|
-
});
|
|
1647
|
-
const child = spawn(invocation.bin, invocation.args, {
|
|
1648
|
-
env: process.env,
|
|
1649
|
-
shell: invocation.shell ?? false,
|
|
1650
|
-
stdio: [
|
|
1651
|
-
"pipe",
|
|
1652
|
-
"pipe",
|
|
1653
|
-
"ignore"
|
|
1654
|
-
],
|
|
1655
|
-
windowsHide: true
|
|
1656
|
-
});
|
|
1657
|
-
let nextId = 1;
|
|
1658
|
-
let buffer = "";
|
|
1659
|
-
let closed = false;
|
|
1660
|
-
const pending = /* @__PURE__ */ new Map();
|
|
1661
|
-
const rejectPending = (error) => {
|
|
1662
|
-
for (const request of pending.values()) {
|
|
1663
|
-
clearTimeout(request.timer);
|
|
1664
|
-
request.reject(error);
|
|
1665
|
-
}
|
|
1666
|
-
pending.clear();
|
|
1667
|
-
};
|
|
1668
|
-
child.stdout.setEncoding("utf8");
|
|
1669
|
-
child.stdout.on("data", (chunk) => {
|
|
1670
|
-
buffer = consumeCodexJsonRpcChunk({
|
|
1671
|
-
buffer,
|
|
1672
|
-
chunk,
|
|
1673
|
-
kill: () => child.kill("SIGTERM"),
|
|
1674
|
-
pending,
|
|
1675
|
-
rejectPending
|
|
1676
|
-
});
|
|
1677
|
-
});
|
|
1678
|
-
child.on("error", (error) => rejectPending(error));
|
|
1679
|
-
child.on("close", () => {
|
|
1680
|
-
closed = true;
|
|
1681
|
-
rejectPending(/* @__PURE__ */ new Error("Codex app-server closed during discovery."));
|
|
1682
|
-
});
|
|
1683
|
-
return {
|
|
1684
|
-
close: async () => {
|
|
1685
|
-
if (closed) return;
|
|
1686
|
-
child.kill("SIGTERM");
|
|
1687
|
-
await new Promise((resolveClose) => {
|
|
1688
|
-
const timer = setTimeout(resolveClose, 1e3);
|
|
1689
|
-
child.once("close", () => {
|
|
1690
|
-
clearTimeout(timer);
|
|
1691
|
-
resolveClose();
|
|
1692
|
-
});
|
|
1693
|
-
});
|
|
1694
|
-
},
|
|
1695
|
-
notify: (method, params) => {
|
|
1696
|
-
child.stdin.write(`${JSON.stringify({
|
|
1697
|
-
jsonrpc: "2.0",
|
|
1698
|
-
method,
|
|
1699
|
-
params
|
|
1700
|
-
})}\n`);
|
|
1701
|
-
},
|
|
1702
|
-
request: (method, params) => {
|
|
1703
|
-
if (closed) return Promise.reject(/* @__PURE__ */ new Error("Codex app-server is closed."));
|
|
1704
|
-
const id = nextId;
|
|
1705
|
-
nextId += 1;
|
|
1706
|
-
return new Promise((resolveRequest, rejectRequest) => {
|
|
1707
|
-
const timer = setTimeout(() => {
|
|
1708
|
-
pending.delete(id);
|
|
1709
|
-
rejectRequest(/* @__PURE__ */ new Error(`Codex ${method} timed out.`));
|
|
1710
|
-
}, PROVIDER_DISCOVERY_TIMEOUT_MS);
|
|
1711
|
-
pending.set(id, {
|
|
1712
|
-
reject: rejectRequest,
|
|
1713
|
-
resolve: resolveRequest,
|
|
1714
|
-
timer
|
|
1715
|
-
});
|
|
1716
|
-
child.stdin.write(`${JSON.stringify({
|
|
1717
|
-
id,
|
|
1718
|
-
jsonrpc: "2.0",
|
|
1719
|
-
method,
|
|
1720
|
-
params
|
|
1721
|
-
})}\n`);
|
|
1722
|
-
});
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
|
-
}
|
|
1726
|
-
function consumeCodexJsonRpcChunk(input) {
|
|
1727
|
-
let buffer = input.buffer + input.chunk;
|
|
1728
|
-
if (Buffer.byteLength(buffer) > MAX_JSON_RPC_LINE_BYTES) {
|
|
1729
|
-
input.rejectPending(/* @__PURE__ */ new Error("Codex app-server response exceeded its bound."));
|
|
1730
|
-
input.kill();
|
|
1731
|
-
return "";
|
|
1732
|
-
}
|
|
1733
|
-
while (true) {
|
|
1734
|
-
const newline = buffer.indexOf("\n");
|
|
1735
|
-
if (newline < 0) return buffer;
|
|
1736
|
-
const line = buffer.slice(0, newline).trim();
|
|
1737
|
-
buffer = buffer.slice(newline + 1);
|
|
1738
|
-
if (!line) continue;
|
|
1739
|
-
let message;
|
|
1740
|
-
try {
|
|
1741
|
-
message = JSON.parse(line);
|
|
1742
|
-
} catch {
|
|
1743
|
-
input.rejectPending(/* @__PURE__ */ new Error("Codex app-server returned invalid JSON."));
|
|
1744
|
-
input.kill();
|
|
1745
|
-
return "";
|
|
1746
|
-
}
|
|
1747
|
-
settleCodexJsonRpcResponse(message, input.pending);
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
function settleCodexJsonRpcResponse(message, pending) {
|
|
1751
|
-
if (!isRecord(message) || typeof message.id !== "number") return;
|
|
1752
|
-
const request = pending.get(message.id);
|
|
1753
|
-
if (!request) return;
|
|
1754
|
-
pending.delete(message.id);
|
|
1755
|
-
clearTimeout(request.timer);
|
|
1756
|
-
if (isRecord(message.error)) {
|
|
1757
|
-
request.reject(new Error(text(message.error.message) ?? "Codex app-server request failed."));
|
|
1758
|
-
return;
|
|
1759
|
-
}
|
|
1760
|
-
request.resolve(message.result);
|
|
1761
|
-
}
|
|
1762
1636
|
async function discoverClaudeCode(input) {
|
|
1763
1637
|
const launch = await resolveInstalledClaudeCodeLaunchCandidates({ timeoutMs: PROVIDER_PROBE_TIMEOUT_MS });
|
|
1764
1638
|
if (!launch.ok) return providerLaunchFailure("claude-code", launch.reason);
|
|
@@ -2207,6 +2081,8 @@ function isRecord(value) {
|
|
|
2207
2081
|
function isNodeError$1(error, code) {
|
|
2208
2082
|
return error instanceof Error && error.code === code;
|
|
2209
2083
|
}
|
|
2084
|
+
const PROVIDER_DISCOVERY_TIMEOUT_MS = 3e4;
|
|
2085
|
+
const MAX_JSON_RPC_LINE_BYTES = 8 * 1024 * 1024;
|
|
2210
2086
|
//#endregion
|
|
2211
2087
|
//#region src/agent-activity/session-inventory-sync.ts
|
|
2212
2088
|
const SOURCE_STORE_VERSION = 2;
|
|
@@ -6353,4 +6229,4 @@ async function fetchSpaceUpdates(input) {
|
|
|
6353
6229
|
//#endregion
|
|
6354
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 };
|
|
6355
6231
|
|
|
6356
|
-
//# sourceMappingURL=updates-api-
|
|
6232
|
+
//# sourceMappingURL=updates-api-9midbUU1.js.map
|