acpx 0.12.1 → 0.13.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 +8 -1
- package/dist/{cli-pKoIEH5O.js → cli-D52eGvxU.js} +5 -4
- package/dist/cli-D52eGvxU.js.map +1 -0
- package/dist/cli.d.ts +2 -2
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +72 -19
- package/dist/cli.js.map +1 -1
- package/dist/{client-CFo_9MIo.d.ts → client-BeKvumq9.d.ts} +4 -2
- package/dist/client-BeKvumq9.d.ts.map +1 -0
- package/dist/{flags-CjeFX5ki.js → flags---9OR06b.js} +36 -9
- package/dist/flags---9OR06b.js.map +1 -0
- package/dist/{flows-Cym6H3vg.js → flows-CYfjwbn2.js} +14 -4
- package/dist/flows-CYfjwbn2.js.map +1 -0
- package/dist/flows.d.ts +6 -2
- package/dist/flows.d.ts.map +1 -1
- package/dist/flows.js +1 -1
- package/dist/{live-checkpoint-DQp4JSHD.js → live-checkpoint-CBecfnSH.js} +220 -15
- package/dist/live-checkpoint-CBecfnSH.js.map +1 -0
- package/dist/{output-fNqTAsFQ.js → output-CzN8vLdE.js} +26 -2
- package/dist/output-CzN8vLdE.js.map +1 -0
- package/dist/runtime.d.ts +4 -4
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +32 -10
- package/dist/runtime.js.map +1 -1
- package/dist/{session-options-C4uYkKDy.d.ts → session-options-CTdZvr68.d.ts} +4 -1
- package/dist/session-options-CTdZvr68.d.ts.map +1 -0
- package/package.json +19 -19
- package/skills/acpx/SKILL.md +5 -2
- package/dist/cli-pKoIEH5O.js.map +0 -1
- package/dist/client-CFo_9MIo.d.ts.map +0 -1
- package/dist/flags-CjeFX5ki.js.map +0 -1
- package/dist/flows-Cym6H3vg.js.map +0 -1
- package/dist/live-checkpoint-DQp4JSHD.js.map +0 -1
- package/dist/output-fNqTAsFQ.js.map +0 -1
- package/dist/session-options-C4uYkKDy.d.ts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as withInterrupt, Bt as isRetryablePromptError, C as mergeSessionOptions, Ct as isPromptInput, D as applyLifecycleSnapshotToRecord, Dt as textPrompt, E as applyConversation, Et as promptToDisplayText, F as modelStateFromConfigOptions, G as findSessionByDirectoryWalk, H as absolutePath, Ht as extractAcpError, J as listSessionsForAgent, Jt as OUTPUT_ERROR_CODES, K as isoNow, N as assertRequestedModelSupported, Ot as InterruptedError, Q as writeSessionRecord, R as splitCommandLine, S as advertisedModelState, T as sessionOptionsFromRecord, U as findGitRepositoryRoot, Vt as normalizeOutputError, W as findSession, Wt as toAcpErrorPayload, X as pruneSessions, Y as normalizeName, Yt as OUTPUT_ERROR_ORIGINS, Z as resolveSessionRecord, _ as createSessionConversation, _t as sessionEventSegmentPath, a as applyRequestedModelIfAdvertised, at as recordPerfDuration, b as recordSessionUpdate, bt as parseJsonRpcErrorMessage, c as setCurrentModelId, ct as startPerfTimer, d as setDesiredModelId, dt as normalizeRuntimeSessionId, f as syncAdvertisedModelState, g as cloneSessionConversation, gt as sessionEventLockPath, h as cloneSessionAcpxState, ht as sessionEventActivePath, i as connectAndLoadSession, it as measurePerf, jt as withTimeout, k as AcpClient, kt as TimeoutError, l as setDesiredConfigOption, m as applyConfigOptionsToState, mt as sessionBaseDir, n as runPromptTurn, nn as QueueConnectionError, nt as getPerfMetricsSnapshot, o as currentModelIdFromSetModelResponse, ot as resetPerfMetrics, p as applyConfigOptionsToRecord, pt as defaultSessionEventLog, q as listSessions, r as withConnectedSession, rn as QueueProtocolError, rt as incrementPerfCounter, s as clearDesiredConfigOption, st as setPerfGauge, t as LiveSessionCheckpoint, tt as formatPerfMetric, u as setDesiredModeId, v as recordClientOperation, vt as extractSessionUpdateNotification, w as persistSessionOptions, x as trimConversationForRuntime, xt as parsePromptStopReason, y as recordPromptSubmission, yt as isAcpJsonRpcMessage, zt as formatErrorMessage } from "./live-checkpoint-CBecfnSH.js";
|
|
2
2
|
import fs, { mkdtempSync, realpathSync, writeFileSync } from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
import fs$1 from "node:fs/promises";
|
|
@@ -1611,6 +1611,7 @@ function buildDirectConnectedSessionOptions(options, run) {
|
|
|
1611
1611
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
1612
1612
|
authCredentials: options.authCredentials,
|
|
1613
1613
|
authPolicy: options.authPolicy,
|
|
1614
|
+
fs: options.fs,
|
|
1614
1615
|
terminal: options.terminal,
|
|
1615
1616
|
timeoutMs: options.timeoutMs,
|
|
1616
1617
|
verbose: options.verbose,
|
|
@@ -1694,6 +1695,7 @@ async function setSessionMode(options) {
|
|
|
1694
1695
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
1695
1696
|
authCredentials: options.authCredentials,
|
|
1696
1697
|
authPolicy: options.authPolicy,
|
|
1698
|
+
fs: options.fs,
|
|
1697
1699
|
terminal: options.terminal,
|
|
1698
1700
|
timeoutMs: options.timeoutMs,
|
|
1699
1701
|
verbose: options.verbose
|
|
@@ -1720,6 +1722,7 @@ async function setSessionModel(options) {
|
|
|
1720
1722
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
1721
1723
|
authCredentials: options.authCredentials,
|
|
1722
1724
|
authPolicy: options.authPolicy,
|
|
1725
|
+
fs: options.fs,
|
|
1723
1726
|
terminal: options.terminal,
|
|
1724
1727
|
timeoutMs: options.timeoutMs,
|
|
1725
1728
|
verbose: options.verbose
|
|
@@ -1751,6 +1754,7 @@ async function setSessionConfigOption(options) {
|
|
|
1751
1754
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
1752
1755
|
authCredentials: options.authCredentials,
|
|
1753
1756
|
authPolicy: options.authPolicy,
|
|
1757
|
+
fs: options.fs,
|
|
1754
1758
|
terminal: options.terminal,
|
|
1755
1759
|
timeoutMs: options.timeoutMs,
|
|
1756
1760
|
verbose: options.verbose
|
|
@@ -1849,6 +1853,7 @@ async function createSessionRecordWithClient(client, options) {
|
|
|
1849
1853
|
acpSessionId: sessionId,
|
|
1850
1854
|
agentSessionId,
|
|
1851
1855
|
agentCommand: options.agentCommand,
|
|
1856
|
+
agentArgv: options.agentArgv,
|
|
1852
1857
|
cwd,
|
|
1853
1858
|
name: normalizeName(options.name),
|
|
1854
1859
|
createdAt: now,
|
|
@@ -1927,6 +1932,7 @@ async function resumeSessionRecordWithClient(client, options, cwd) {
|
|
|
1927
1932
|
async function createSessionWithClient(options) {
|
|
1928
1933
|
const client = new AcpClient({
|
|
1929
1934
|
agentCommand: options.agentCommand,
|
|
1935
|
+
agentArgv: options.agentArgv,
|
|
1930
1936
|
cwd: absolutePath(options.cwd),
|
|
1931
1937
|
mcpServers: options.mcpServers,
|
|
1932
1938
|
permissionMode: options.permissionMode,
|
|
@@ -1934,6 +1940,7 @@ async function createSessionWithClient(options) {
|
|
|
1934
1940
|
permissionPolicy: options.permissionPolicy,
|
|
1935
1941
|
authCredentials: options.authCredentials,
|
|
1936
1942
|
authPolicy: options.authPolicy,
|
|
1943
|
+
fs: options.fs,
|
|
1937
1944
|
terminal: options.terminal,
|
|
1938
1945
|
verbose: options.verbose,
|
|
1939
1946
|
sessionOptions: options.sessionOptions
|
|
@@ -1963,6 +1970,7 @@ async function createSession(options) {
|
|
|
1963
1970
|
async function listAgentSessions(options) {
|
|
1964
1971
|
const client = new AcpClient({
|
|
1965
1972
|
agentCommand: options.agentCommand,
|
|
1973
|
+
agentArgv: options.agentArgv,
|
|
1966
1974
|
cwd: absolutePath(options.cwd),
|
|
1967
1975
|
mcpServers: options.mcpServers,
|
|
1968
1976
|
permissionMode: options.permissionMode,
|
|
@@ -1970,6 +1978,7 @@ async function listAgentSessions(options) {
|
|
|
1970
1978
|
permissionPolicy: options.permissionPolicy,
|
|
1971
1979
|
authCredentials: options.authCredentials,
|
|
1972
1980
|
authPolicy: options.authPolicy,
|
|
1981
|
+
fs: options.fs,
|
|
1973
1982
|
terminal: options.terminal,
|
|
1974
1983
|
verbose: options.verbose
|
|
1975
1984
|
});
|
|
@@ -2017,6 +2026,7 @@ async function ensureSession(options) {
|
|
|
2017
2026
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
2018
2027
|
authCredentials: options.authCredentials,
|
|
2019
2028
|
authPolicy: options.authPolicy,
|
|
2029
|
+
fs: options.fs,
|
|
2020
2030
|
terminal: options.terminal,
|
|
2021
2031
|
timeoutMs: options.timeoutMs,
|
|
2022
2032
|
verbose: options.verbose
|
|
@@ -2031,6 +2041,7 @@ async function ensureSession(options) {
|
|
|
2031
2041
|
return {
|
|
2032
2042
|
record: await createSession({
|
|
2033
2043
|
agentCommand: options.agentCommand,
|
|
2044
|
+
agentArgv: options.agentArgv,
|
|
2034
2045
|
cwd,
|
|
2035
2046
|
name: options.name,
|
|
2036
2047
|
resumeSessionId: options.resumeSessionId,
|
|
@@ -2040,6 +2051,7 @@ async function ensureSession(options) {
|
|
|
2040
2051
|
permissionPolicy: options.permissionPolicy,
|
|
2041
2052
|
authCredentials: options.authCredentials,
|
|
2042
2053
|
authPolicy: options.authPolicy,
|
|
2054
|
+
fs: options.fs,
|
|
2043
2055
|
terminal: options.terminal,
|
|
2044
2056
|
timeoutMs: options.timeoutMs,
|
|
2045
2057
|
verbose: options.verbose,
|
|
@@ -2301,6 +2313,7 @@ function queueOwnerRuntimeOptionsFromSend(options) {
|
|
|
2301
2313
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
2302
2314
|
authCredentials: options.authCredentials,
|
|
2303
2315
|
authPolicy: options.authPolicy,
|
|
2316
|
+
fs: options.fs,
|
|
2304
2317
|
terminal: options.terminal,
|
|
2305
2318
|
suppressSdkConsoleErrors: options.suppressSdkConsoleErrors,
|
|
2306
2319
|
verbose: options.verbose,
|
|
@@ -2966,6 +2979,7 @@ async function runSessionPrompt(options) {
|
|
|
2966
2979
|
const ownClient = options.client == null;
|
|
2967
2980
|
const client = options.client ?? new AcpClient({
|
|
2968
2981
|
agentCommand: record.agentCommand,
|
|
2982
|
+
agentArgv: record.agentArgv,
|
|
2969
2983
|
cwd: absolutePath(record.cwd),
|
|
2970
2984
|
mcpServers: options.mcpServers,
|
|
2971
2985
|
permissionMode: options.permissionMode,
|
|
@@ -2973,6 +2987,7 @@ async function runSessionPrompt(options) {
|
|
|
2973
2987
|
permissionPolicy: options.permissionPolicy,
|
|
2974
2988
|
authCredentials: options.authCredentials,
|
|
2975
2989
|
authPolicy: options.authPolicy,
|
|
2990
|
+
fs: options.fs,
|
|
2976
2991
|
terminal: options.terminal,
|
|
2977
2992
|
suppressSdkConsoleErrors: options.suppressSdkConsoleErrors,
|
|
2978
2993
|
verbose: options.verbose,
|
|
@@ -2982,6 +2997,7 @@ async function runSessionPrompt(options) {
|
|
|
2982
2997
|
permissionMode: options.permissionMode,
|
|
2983
2998
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
2984
2999
|
permissionPolicy: options.permissionPolicy,
|
|
3000
|
+
fs: options.fs,
|
|
2985
3001
|
terminal: options.terminal,
|
|
2986
3002
|
suppressSdkConsoleErrors: options.suppressSdkConsoleErrors,
|
|
2987
3003
|
verbose: options.verbose
|
|
@@ -3244,6 +3260,7 @@ async function runOnce(options) {
|
|
|
3244
3260
|
const acpErrors = new AcpErrorTracker();
|
|
3245
3261
|
const client = new AcpClient({
|
|
3246
3262
|
agentCommand: options.agentCommand,
|
|
3263
|
+
agentArgv: options.agentArgv,
|
|
3247
3264
|
cwd: absolutePath(options.cwd),
|
|
3248
3265
|
mcpServers: options.mcpServers,
|
|
3249
3266
|
permissionMode: options.permissionMode,
|
|
@@ -3251,6 +3268,7 @@ async function runOnce(options) {
|
|
|
3251
3268
|
permissionPolicy: options.permissionPolicy,
|
|
3252
3269
|
authCredentials: options.authCredentials,
|
|
3253
3270
|
authPolicy: options.authPolicy,
|
|
3271
|
+
fs: options.fs,
|
|
3254
3272
|
terminal: options.terminal,
|
|
3255
3273
|
suppressSdkConsoleErrors: options.suppressSdkConsoleErrors,
|
|
3256
3274
|
verbose: options.verbose,
|
|
@@ -3339,6 +3357,7 @@ async function sendSessionDirect(options) {
|
|
|
3339
3357
|
permissionPolicy: options.permissionPolicy,
|
|
3340
3358
|
authCredentials: options.authCredentials,
|
|
3341
3359
|
authPolicy: options.authPolicy,
|
|
3360
|
+
fs: options.fs,
|
|
3342
3361
|
terminal: options.terminal,
|
|
3343
3362
|
outputFormatter: options.outputFormatter,
|
|
3344
3363
|
errorEmissionPolicy: options.errorEmissionPolicy,
|
|
@@ -3381,12 +3400,14 @@ async function submitToRunningOwner(options, waitForCompletion, extras) {
|
|
|
3381
3400
|
function createQueueOwnerSharedClient(options, sessionRecord) {
|
|
3382
3401
|
return new AcpClient({
|
|
3383
3402
|
agentCommand: sessionRecord.agentCommand,
|
|
3403
|
+
agentArgv: sessionRecord.agentArgv,
|
|
3384
3404
|
cwd: absolutePath(sessionRecord.cwd),
|
|
3385
3405
|
mcpServers: options.mcpServers,
|
|
3386
3406
|
permissionMode: options.permissionMode,
|
|
3387
3407
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
3388
3408
|
authCredentials: options.authCredentials,
|
|
3389
3409
|
authPolicy: options.authPolicy,
|
|
3410
|
+
fs: options.fs,
|
|
3390
3411
|
terminal: options.terminal,
|
|
3391
3412
|
suppressSdkConsoleErrors: options.suppressSdkConsoleErrors,
|
|
3392
3413
|
verbose: options.verbose,
|
|
@@ -3404,6 +3425,7 @@ function createQueueOwnerTurnController(options) {
|
|
|
3404
3425
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
3405
3426
|
authCredentials: options.authCredentials,
|
|
3406
3427
|
authPolicy: options.authPolicy,
|
|
3428
|
+
fs: options.fs,
|
|
3407
3429
|
terminal: options.terminal,
|
|
3408
3430
|
timeoutMs,
|
|
3409
3431
|
verbose: options.verbose
|
|
@@ -3417,6 +3439,7 @@ function createQueueOwnerTurnController(options) {
|
|
|
3417
3439
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
3418
3440
|
authCredentials: options.authCredentials,
|
|
3419
3441
|
authPolicy: options.authPolicy,
|
|
3442
|
+
fs: options.fs,
|
|
3420
3443
|
terminal: options.terminal,
|
|
3421
3444
|
timeoutMs,
|
|
3422
3445
|
verbose: options.verbose
|
|
@@ -3431,6 +3454,7 @@ function createQueueOwnerTurnController(options) {
|
|
|
3431
3454
|
nonInteractivePermissions: options.nonInteractivePermissions,
|
|
3432
3455
|
authCredentials: options.authCredentials,
|
|
3433
3456
|
authPolicy: options.authPolicy,
|
|
3457
|
+
fs: options.fs,
|
|
3434
3458
|
terminal: options.terminal,
|
|
3435
3459
|
timeoutMs,
|
|
3436
3460
|
verbose: options.verbose
|
|
@@ -4698,4 +4722,4 @@ function createOutputFormatter(format, options = {}) {
|
|
|
4698
4722
|
//#endregion
|
|
4699
4723
|
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 };
|
|
4700
4724
|
|
|
4701
|
-
//# sourceMappingURL=output-
|
|
4725
|
+
//# sourceMappingURL=output-CzN8vLdE.js.map
|