@1agents/acp-service 0.10.1 → 0.10.3
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/src/a2a/index.d.ts +1 -1
- package/dist/src/a2a/index.js +1 -1
- package/dist/src/a2a/lease.d.ts +2 -0
- package/dist/src/a2a/lease.js +3 -0
- package/dist/src/a2a/server.d.ts +6 -0
- package/dist/src/a2a/server.js +13 -12
- package/dist/src/a2a/store.d.ts +9 -2
- package/dist/src/a2a/store.js +37 -11
- package/package.json +1 -1
- package/vendor/dsh/README.md +1 -1
- package/vendor/dsh/a2a-executor.d.ts +2 -2
- package/vendor/dsh/a2a.d.ts +2 -2
- package/vendor/dsh/a2a.js +4 -1
- package/vendor/dsh/adapter.d.ts +2 -2
- package/vendor/dsh/diagnostics.d.ts +14 -2
- package/vendor/dsh/diagnostics.js +79 -4
- package/vendor/dsh/index.js +3 -1
- package/vendor/runtime/dist/{cli-DXmYwv3U.js → cli-Cy5XbWX9.js} +4 -4
- package/vendor/runtime/dist/{cli-DXmYwv3U.js.map → cli-Cy5XbWX9.js.map} +1 -1
- package/vendor/runtime/dist/cli.js +7 -7
- package/vendor/runtime/dist/{client-VQsqcIOJ.d.ts → client-C5zneoBs.d.ts} +3 -1
- package/vendor/runtime/dist/{client-VQsqcIOJ.d.ts.map → client-C5zneoBs.d.ts.map} +1 -1
- package/vendor/runtime/dist/{flows-DJ17ajbw.js → flows-q0phAwvh.js} +3 -3
- package/vendor/runtime/dist/{flows-DJ17ajbw.js.map → flows-q0phAwvh.js.map} +1 -1
- package/vendor/runtime/dist/flows.d.ts +1 -1
- package/vendor/runtime/dist/flows.js +1 -1
- package/vendor/runtime/dist/{invocation-options-PBfCgrdi.js → invocation-options-BxtrhRYT.js} +3 -3
- package/vendor/runtime/dist/{invocation-options-PBfCgrdi.js.map → invocation-options-BxtrhRYT.js.map} +1 -1
- package/vendor/runtime/dist/{output-B3MDn7kv.js → output-BiOUhKGO.js} +2 -2
- package/vendor/runtime/dist/{output-B3MDn7kv.js.map → output-BiOUhKGO.js.map} +1 -1
- package/vendor/runtime/dist/{queue-owner-runtime-DXCVngwU.js → queue-owner-runtime-CJwEW-f-.js} +10 -1
- package/vendor/runtime/dist/queue-owner-runtime-CJwEW-f-.js.map +1 -0
- package/vendor/runtime/dist/runtime.d.ts +1 -1
- package/vendor/runtime/dist/runtime.js +1 -1
- package/vendor/runtime/dist/{session-watch-DURyCw31.js → session-watch-kRtST0Y5.js} +2 -2
- package/vendor/runtime/dist/{session-watch-DURyCw31.js.map → session-watch-kRtST0Y5.js.map} +1 -1
- package/vendor/runtime/skills/acpx/SKILL.md +3 -1
- package/vendor/runtime/dist/queue-owner-runtime-DXCVngwU.js.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as __exportAll, n as getTextErrorRemediationHints, o as toTimerMilliseconds, t as createOutputFormatter } from "./output-
|
|
2
|
+
import { c as __exportAll, n as getTextErrorRemediationHints, o as toTimerMilliseconds, t as createOutputFormatter } from "./output-BiOUhKGO.js";
|
|
3
3
|
import { A as findSession, C as textPrompt, Ct as exitCodeForOutputErrorCode, Dt as normalizeOutputError, F as normalizeName, Ft as OUTPUT_FORMATS, G as normalizeAgentSessionId, N as listSessions, Nt as EXIT_CODES, O as absolutePath, St as isProcessAlive, U as serializeSessionRecordForDisk, Ut as AgentSpawnError, V as parseSessionRecord, Vt as AcpxOperationalError, _t as sessionEventLockPath, b as mergePromptSourceWithText, c as probeQueueOwnerHealth, dt as boundedEventMaxSegments, ft as defaultSessionEventLog, gt as sessionEventActivePath, j as findSessionByDirectoryWalk, k as findGitRepositoryRoot, v as PromptInputValidationError, x as parsePromptSource, xt as _usingCtx, yt as writePrivateFile, z as writeSessionRecord } from "./ipc-BQQpcEdP.js";
|
|
4
4
|
import { A as renderArgvIdentity, i as DEFAULT_AGENT_NAME, l as normalizeAgentName$1, s as listBuiltInAgents } from "./agent-registry-R7A3MSpr.js";
|
|
5
|
-
import { ct as listSessionEvents, d as flushPerfMetricsCapture, dt as TimeoutError, f as installPerfMetricsCapture, i as runOnce, lt as isLegacyZedCodexAcpInvocation, n as runSessionQueueOwner, nt as getAcpxVersion, ot as acquireSessionImport, s as DISCARD_OUTPUT_FORMATTER, st as acquireSessionScope, u as buildQueueOwnerArgOverride, ut as InterruptedError } from "./queue-owner-runtime-
|
|
6
|
-
import { C as resolvePermissionMode, E as resolveSessionsListFlags, S as resolveOutputPolicy, T as resolveSessionNameFromFlags, _ as parseSessionName, a as addGlobalFlags, b as resolveAgentInvocation, c as addSessionOption, d as parseDaysOlderThan, f as parseHistoryLimit, g as parsePruneBeforeDate, h as parseOutputFormat$1, i as addExecConfigOption, m as parseNonEmptyValue, n as sessionConnectionOptions, o as addPromptInputOption, p as parseMaxTurns, r as sessionOptionsFromGlobalFlags, s as addSessionNameOption, t as resolvePermissionPolicyFromFlags, u as parseAllowedTools, v as parseTimeoutSeconds, w as resolvePromptFlags, x as resolveGlobalFlags, y as parseTtlSeconds } from "./invocation-options-
|
|
5
|
+
import { ct as listSessionEvents, d as flushPerfMetricsCapture, dt as TimeoutError, f as installPerfMetricsCapture, i as runOnce, lt as isLegacyZedCodexAcpInvocation, n as runSessionQueueOwner, nt as getAcpxVersion, ot as acquireSessionImport, s as DISCARD_OUTPUT_FORMATTER, st as acquireSessionScope, u as buildQueueOwnerArgOverride, ut as InterruptedError } from "./queue-owner-runtime-CJwEW-f-.js";
|
|
6
|
+
import { C as resolvePermissionMode, E as resolveSessionsListFlags, S as resolveOutputPolicy, T as resolveSessionNameFromFlags, _ as parseSessionName, a as addGlobalFlags, b as resolveAgentInvocation, c as addSessionOption, d as parseDaysOlderThan, f as parseHistoryLimit, g as parsePruneBeforeDate, h as parseOutputFormat$1, i as addExecConfigOption, m as parseNonEmptyValue, n as sessionConnectionOptions, o as addPromptInputOption, p as parseMaxTurns, r as sessionOptionsFromGlobalFlags, s as addSessionNameOption, t as resolvePermissionPolicyFromFlags, u as parseAllowedTools, v as parseTimeoutSeconds, w as resolvePromptFlags, x as resolveGlobalFlags, y as parseTtlSeconds } from "./invocation-options-BxtrhRYT.js";
|
|
7
7
|
import { realpathSync } from "node:fs";
|
|
8
8
|
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
9
9
|
import path from "node:path";
|
|
@@ -416,11 +416,11 @@ let sessionModulePromise;
|
|
|
416
416
|
let outputModulePromise;
|
|
417
417
|
let outputRenderModulePromise;
|
|
418
418
|
function loadSessionModule() {
|
|
419
|
-
sessionModulePromise ??= import("./output-
|
|
419
|
+
sessionModulePromise ??= import("./output-BiOUhKGO.js").then((n) => n.s);
|
|
420
420
|
return sessionModulePromise;
|
|
421
421
|
}
|
|
422
422
|
function loadOutputModule() {
|
|
423
|
-
outputModulePromise ??= import("./output-
|
|
423
|
+
outputModulePromise ??= import("./output-BiOUhKGO.js").then((n) => n.r);
|
|
424
424
|
return outputModulePromise;
|
|
425
425
|
}
|
|
426
426
|
function loadOutputRenderModule() {
|
|
@@ -902,7 +902,7 @@ async function handleSessionsWatch(explicitAgentName, flags, command, config) {
|
|
|
902
902
|
includeClosed: true
|
|
903
903
|
});
|
|
904
904
|
if (!record) throw new Error(missingScopedSessionMessage(agent, sessionName));
|
|
905
|
-
const { runSessionWatch } = await import("./session-watch-
|
|
905
|
+
const { runSessionWatch } = await import("./session-watch-kRtST0Y5.js");
|
|
906
906
|
await runSessionWatch(record, {
|
|
907
907
|
cursor: flags.cursor,
|
|
908
908
|
policy: resolveRequestedOutputPolicy(globalFlags)
|
|
@@ -2149,7 +2149,7 @@ function registerAgentCommand(program, agentName, config) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
function registerFlowCommand(program, config) {
|
|
2151
2151
|
program.command("flow").description("Run multi-step ACP workflows from flow files").command("run").description("Run a flow file").argument("<file>", "Flow module path").option("--input-json <json>", "Flow input as JSON").option("--input-file <path>", "Read flow input JSON from file").option("--default-agent <name>", "Default agent profile for ACP nodes without profile", (value) => parseNonEmptyValue("Default agent", value)).action(async function(file, flags) {
|
|
2152
|
-
const { handleFlowRun } = await import("./cli-
|
|
2152
|
+
const { handleFlowRun } = await import("./cli-Cy5XbWX9.js");
|
|
2153
2153
|
await handleFlowRun(file, flags, this, config);
|
|
2154
2154
|
});
|
|
2155
2155
|
}
|
|
@@ -197,6 +197,8 @@ declare class AcpClient {
|
|
|
197
197
|
private selectAuthMethod;
|
|
198
198
|
private readAgentSpecificEnvCredential;
|
|
199
199
|
private selectAgentManagedAuthMethod;
|
|
200
|
+
/** Cursor stores the login itself; `cursor_login` has no client credential. */
|
|
201
|
+
private usesCursorCliLogin;
|
|
200
202
|
private isGrokBuildAcpCommand;
|
|
201
203
|
private applyGrokPermissionModeCompatibility;
|
|
202
204
|
private resolveGrokPermissionModeDecision;
|
|
@@ -259,4 +261,4 @@ declare class AcpClient {
|
|
|
259
261
|
}
|
|
260
262
|
//#endregion
|
|
261
263
|
export { AcpControlAuthority as n, AcpClient as t };
|
|
262
|
-
//# sourceMappingURL=client-
|
|
264
|
+
//# sourceMappingURL=client-C5zneoBs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-
|
|
1
|
+
{"version":3,"file":"client-C5zneoBs.d.ts","names":[],"sources":["../src/async-control.ts","../src/acp/model-config-state.ts","../src/acp/client.ts"],"mappings":";;;KAcY;EACV,SAAS;EACT;;;;KChBU;EACV;EACA;EACA,iBAAiB;IACf;IACA;;;;;KCuVC;EACH,YAAY;EACZ;EACA;EACA;;KAGU;EACV;EACA;EACA,gBAAgB;EAChB,SAAS;EACT;EACA;;KAGU;EACV;EACA,gBAAgB;EAChB,SAAS;EACT;EACA;;KAGU,sBAAsB;KA4C7B;KAwFO;EACV;EACA,QAAQ,OAAO;EACf;EACA,QAAQ;EACR;;KAGU;EACV;EACA;EACA;EACA,WAAW;;cAoBA;UACH;UACA;UACA;mBACS;mBACA;mBACA;UACT;UACA;UACA;mBAQS;mBAMA;mBACA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AS;IAAmB;MAAiB,QAAQ;EA+BjE,UAAU;EAKV,aAAa,kBAAkB,cAAc,yBAAyB;EAatE,6BAA6B;EAS7B,mBAAmB,kBAAiB,QAAQ;EAyClD,SAAS;UAgBK;UAqCA;UAyCA;UAeN;UAIA;UAIM;UAON;UAcM;UA8BN;UAYM;UAyBN;UAkBA;UAOA;UAOA;UAcA;UASA;UAqEM;UA0BN;UA2CA;UAOA;;UAcA;UAQA;UAIA;UAcA;UAYM;UA+BA;UA8BA;UA4CA;;;;;;;UAoDN;UAqBM;UA8BN;UAiBA;UAUA;UAQM;UAuCN;UAuBA;UAqBA;UAIA;UAwBA;UASM;UA8BN;UAoBA;UAiBM;UAwBN;UAqBA;UAQA;UAQA;UA6BA;UAmBA;UAmBA;UAmBA;UAyBA;UAKA;UAwBA;UASA;UAUM;UAqDN;UAYM;UAmBA;UASA;UASA;UAoBN;UASA;UAMA;UAaA;UAWM;;UAkBN;UAiBA;UAWM;EAgCR,0BAA0B;IAC9B;IACA;MACE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as MAX_TIMER_DELAY_MS, t as createOutputFormatter } from "./output-
|
|
1
|
+
import { a as MAX_TIMER_DELAY_MS, t as createOutputFormatter } from "./output-BiOUhKGO.js";
|
|
2
2
|
import { C as textPrompt, It as PERMISSION_MODES, R as resolveSessionRecord, Rt as SESSION_RECORD_SCHEMA, S as promptToDisplayText, bt as writePrivateJsonFile, ft as defaultSessionEventLog, yt as writePrivateFile } from "./ipc-BQQpcEdP.js";
|
|
3
3
|
import { P as runTimedExecFile } from "./agent-registry-R7A3MSpr.js";
|
|
4
|
-
import { G as recordSessionUpdate, H as createSessionConversation, U as recordClientOperation, W as recordPromptSubmission, dt as TimeoutError, i as runOnce, m as createSessionWithClient, mt as withTimeout, o as sendSessionDirect, pt as withInterrupt, q as cloneSessionAcpxState, ut as InterruptedError } from "./queue-owner-runtime-
|
|
4
|
+
import { G as recordSessionUpdate, H as createSessionConversation, U as recordClientOperation, W as recordPromptSubmission, dt as TimeoutError, i as runOnce, m as createSessionWithClient, mt as withTimeout, o as sendSessionDirect, pt as withInterrupt, q as cloneSessionAcpxState, ut as InterruptedError } from "./queue-owner-runtime-CJwEW-f-.js";
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
import { spawn } from "node:child_process";
|
|
7
7
|
import fs from "node:fs/promises";
|
|
@@ -2471,4 +2471,4 @@ function formatDecisionPrompt(question, choices, field) {
|
|
|
2471
2471
|
//#endregion
|
|
2472
2472
|
export { parseStrictJsonObject as a, validateFlowDefinition as c, checkpoint as d, compute as f, isDefinedFlow as h, parseJsonObject as i, acp as l, shell as m, decisionEdge as n, FlowRunner as o, defineFlow as p, extractJsonObject as r, flowRunsBaseDir as s, decision as t, action as u };
|
|
2473
2473
|
|
|
2474
|
-
//# sourceMappingURL=flows-
|
|
2474
|
+
//# sourceMappingURL=flows-q0phAwvh.js.map
|