acpx 0.9.0 → 0.10.0
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/README.md +1 -0
- package/dist/{cli-Bf3yjqzE.js → cli-8dP_TqBp.js} +4 -4
- package/dist/{cli-Bf3yjqzE.js.map → cli-8dP_TqBp.js.map} +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +392 -12
- package/dist/cli.js.map +1 -1
- package/dist/{client-BssohYqM.d.ts → client-C4iJBO0j.d.ts} +2 -2
- package/dist/{client-BssohYqM.d.ts.map → client-C4iJBO0j.d.ts.map} +1 -1
- package/dist/{flags-C-rwARqg.js → flags--2oX_ubW.js} +3 -3
- package/dist/flags--2oX_ubW.js.map +1 -0
- package/dist/{flows-WLs26_5Y.js → flows-e4umXVbY.js} +4 -4
- package/dist/{flows-WLs26_5Y.js.map → flows-e4umXVbY.js.map} +1 -1
- package/dist/flows.d.ts +1 -1
- package/dist/flows.js +1 -1
- package/dist/{live-checkpoint-D5d-K9s1.js → live-checkpoint-CuFft_Nd.js} +300 -272
- package/dist/live-checkpoint-CuFft_Nd.js.map +1 -0
- package/dist/{output-DPg20dvn.js → output-Di77Yugq.js} +12 -12
- package/dist/{output-DPg20dvn.js.map → output-Di77Yugq.js.map} +1 -1
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.js +1 -1
- package/dist/{session-options-CFudjdkU.d.ts → session-options-Bh1bIqQ2.d.ts} +8 -1
- package/dist/{session-options-CFudjdkU.d.ts.map → session-options-Bh1bIqQ2.d.ts.map} +1 -1
- package/package.json +7 -1
- package/skills/acpx/SKILL.md +11 -2
- package/dist/flags-C-rwARqg.js.map +0 -1
- package/dist/live-checkpoint-D5d-K9s1.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as defaultSessionEventLog, A as findGitRepositoryRoot, Bt as QueueConnectionError, C as applyConversation, Ct as formatErrorMessage, E as AcpClient, F as listSessionsForAgent, G as recordPerfDuration, H as getPerfMetricsSnapshot, I as normalizeName, J as startPerfTimer, K as resetPerfMetrics, L as pruneSessions, M as findSessionByDirectoryWalk, Mt as OUTPUT_ERROR_CODES, N as isoNow, Nt as OUTPUT_ERROR_ORIGINS, Ot as toAcpErrorPayload, P as listSessions, R as resolveSessionRecord, S as sessionOptionsFromRecord, Tt as normalizeOutputError, U as incrementPerfCounter, V as formatPerfMetric, Vt as QueueProtocolError, W as measurePerf, Z as normalizeRuntimeSessionId, _ as recordPromptSubmission, _t as withTimeout, a as applyRequestedModelIfAdvertised, at as isAcpJsonRpcMessage, b as mergeSessionOptions, c as setDesiredConfigOption, d as syncAdvertisedModelState, et as sessionBaseDir, f as applyConfigOptionsToRecord, ft as promptToDisplayText, g as recordClientOperation, gt as withInterrupt, h as createSessionConversation, ht as TimeoutError, i as connectAndLoadSession, it as extractSessionUpdateNotification, j as findSession, k as absolutePath, l as setDesiredModeId, lt as isPromptInput, m as cloneSessionConversation, mt as InterruptedError, n as runPromptTurn, nt as sessionEventLockPath, o as assertRequestedModelSupported, ot as parseJsonRpcErrorMessage, p as cloneSessionAcpxState, pt as textPrompt, q as setPerfGauge, r as withConnectedSession, rt as sessionEventSegmentPath, s as setCurrentModelId, st as parsePromptStopReason, t as LiveSessionCheckpoint, tt as sessionEventActivePath, u as setDesiredModelId, v as recordSessionUpdate, w as applyLifecycleSnapshotToRecord, wt as isRetryablePromptError, x as persistSessionOptions, y as trimConversationForRuntime, z as writeSessionRecord } from "./live-checkpoint-CuFft_Nd.js";
|
|
2
2
|
import fs, { realpathSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
5
5
|
import os from "node:os";
|
|
6
|
-
import { spawn } from "node:child_process";
|
|
7
6
|
import { createHash, randomInt, randomUUID } from "node:crypto";
|
|
7
|
+
import { spawn } from "node:child_process";
|
|
8
8
|
import net from "node:net";
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -18,14 +18,6 @@ var __exportAll = (all, no_symbols) => {
|
|
|
18
18
|
return target;
|
|
19
19
|
};
|
|
20
20
|
//#endregion
|
|
21
|
-
//#region src/cli/session/contracts.ts
|
|
22
|
-
const DEFAULT_QUEUE_OWNER_TTL_MS = 3e5;
|
|
23
|
-
function normalizeQueueOwnerTtlMs(ttlMs) {
|
|
24
|
-
if (ttlMs == null) return DEFAULT_QUEUE_OWNER_TTL_MS;
|
|
25
|
-
if (!Number.isFinite(ttlMs) || ttlMs < 0) return DEFAULT_QUEUE_OWNER_TTL_MS;
|
|
26
|
-
return Math.round(ttlMs);
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
21
|
//#region src/process-liveness.ts
|
|
30
22
|
function isProcessAlive(pid) {
|
|
31
23
|
if (!pid || !Number.isInteger(pid) || pid <= 0 || pid === process.pid) return false;
|
|
@@ -37,6 +29,14 @@ function isProcessAlive(pid) {
|
|
|
37
29
|
}
|
|
38
30
|
}
|
|
39
31
|
//#endregion
|
|
32
|
+
//#region src/cli/session/contracts.ts
|
|
33
|
+
const DEFAULT_QUEUE_OWNER_TTL_MS = 3e5;
|
|
34
|
+
function normalizeQueueOwnerTtlMs(ttlMs) {
|
|
35
|
+
if (ttlMs == null) return DEFAULT_QUEUE_OWNER_TTL_MS;
|
|
36
|
+
if (!Number.isFinite(ttlMs) || ttlMs < 0) return DEFAULT_QUEUE_OWNER_TTL_MS;
|
|
37
|
+
return Math.round(ttlMs);
|
|
38
|
+
}
|
|
39
|
+
//#endregion
|
|
40
40
|
//#region src/cli/queue/paths.ts
|
|
41
41
|
function shortHash(value, length) {
|
|
42
42
|
return createHash("sha256").update(value).digest("hex").slice(0, length);
|
|
@@ -4141,6 +4141,6 @@ function createOutputFormatter(format, options = {}) {
|
|
|
4141
4141
|
}
|
|
4142
4142
|
}
|
|
4143
4143
|
//#endregion
|
|
4144
|
-
export { runSessionQueueOwner as a, buildQueueOwnerArgOverride as c, createSessionWithClient as d, cancelSessionPrompt as f, __exportAll as h, session_exports as i, flushPerfMetricsCapture as l, DEFAULT_QUEUE_OWNER_TTL_MS as m, getTextErrorRemediationHints as n, runOnce as o, probeQueueOwnerHealth as p, output_exports as r, sendSessionDirect as s, createOutputFormatter as t, installPerfMetricsCapture as u };
|
|
4144
|
+
export { runSessionQueueOwner as a, buildQueueOwnerArgOverride as c, createSessionWithClient as d, cancelSessionPrompt as f, __exportAll as g, isProcessAlive as h, session_exports as i, flushPerfMetricsCapture as l, DEFAULT_QUEUE_OWNER_TTL_MS as m, getTextErrorRemediationHints as n, runOnce as o, probeQueueOwnerHealth as p, output_exports as r, sendSessionDirect as s, createOutputFormatter as t, installPerfMetricsCapture as u };
|
|
4145
4145
|
|
|
4146
|
-
//# sourceMappingURL=output-
|
|
4146
|
+
//# sourceMappingURL=output-Di77Yugq.js.map
|