@1agents/acp-service 0.7.0 → 0.8.1
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 +10 -0
- package/dist/src/a2a/executor.js +34 -9
- package/dist/src/a2a/index.d.ts +1 -0
- package/dist/src/a2a/index.js +1 -0
- package/dist/src/a2a/lease.d.ts +13 -0
- package/dist/src/a2a/lease.js +149 -0
- package/dist/src/a2a/request-id.d.ts +2 -0
- package/dist/src/a2a/request-id.js +6 -0
- package/dist/src/a2a/server.js +13 -1
- package/dist/src/a2a/store.d.ts +4 -6
- package/dist/src/a2a/store.js +14 -114
- package/dist/src/a2a/types.d.ts +9 -0
- package/dist/src/acp-connection.d.ts +2 -1
- package/dist/src/acp-connection.js +52 -9
- package/dist/src/bridge.js +38 -39
- package/package.json +15 -13
- package/vendor/dsh/README.md +12 -2
- package/vendor/dsh/a2a-executor.d.ts +7 -1
- package/vendor/dsh/a2a-executor.js +56 -15
- package/vendor/dsh/a2a.d.ts +2 -1
- package/vendor/dsh/a2a.js +9 -5
- package/vendor/dsh/adapter.d.ts +3 -1
- package/vendor/dsh/adapter.js +144 -16
- package/vendor/dsh/diagnostics.d.ts +42 -0
- package/vendor/dsh/diagnostics.js +176 -0
- package/vendor/dsh/index.d.ts +1 -0
- package/vendor/dsh/index.js +16 -4
- package/vendor/runtime/dist/{cli-DUHyAADv.js → cli-Bdzplbpj.js} +4 -4
- package/vendor/runtime/dist/{cli-DUHyAADv.js.map → cli-Bdzplbpj.js.map} +1 -1
- package/vendor/runtime/dist/cli.d.ts +1 -1
- package/vendor/runtime/dist/cli.js +8 -8
- package/vendor/runtime/dist/{client-DjkWknf7.d.ts → client-BXOiB0ND.d.ts} +2 -2
- package/vendor/runtime/dist/{client-DjkWknf7.d.ts.map → client-BXOiB0ND.d.ts.map} +1 -1
- package/vendor/runtime/dist/{flows-CiJSCy4D.js → flows-BKlAuzM8.js} +4 -4
- package/vendor/runtime/dist/{flows-CiJSCy4D.js.map → flows-BKlAuzM8.js.map} +1 -1
- package/vendor/runtime/dist/flows.d.ts +2 -2
- package/vendor/runtime/dist/flows.js +1 -1
- package/vendor/runtime/dist/{invocation-options-BlIySxIw.js → invocation-options-DMy77sEU.js} +4 -4
- package/vendor/runtime/dist/{invocation-options-BlIySxIw.js.map → invocation-options-DMy77sEU.js.map} +1 -1
- package/vendor/runtime/dist/{ipc-BlljKR2b.js → ipc-CLv2iL89.js} +260 -2
- package/vendor/runtime/dist/ipc-CLv2iL89.js.map +1 -0
- package/vendor/runtime/dist/{output-BzXQKArM.js → output-I-t-v55D.js} +3 -3
- package/vendor/runtime/dist/{output-BzXQKArM.js.map → output-I-t-v55D.js.map} +1 -1
- package/vendor/runtime/dist/{queue-owner-runtime-DSFdsS_y.js → queue-owner-runtime-RN3uSid0.js} +2 -2
- package/vendor/runtime/dist/{queue-owner-runtime-DSFdsS_y.js.map → queue-owner-runtime-RN3uSid0.js.map} +1 -1
- package/vendor/runtime/dist/runtime.d.ts +25 -15
- package/vendor/runtime/dist/runtime.d.ts.map +1 -1
- package/vendor/runtime/dist/runtime.js +57 -37
- package/vendor/runtime/dist/runtime.js.map +1 -1
- package/vendor/runtime/dist/{session-options-ORCchZGk.d.ts → session-options-DNnDfiUt.d.ts} +18 -2
- package/vendor/runtime/dist/session-options-DNnDfiUt.d.ts.map +1 -0
- package/vendor/runtime/dist/{session-watch-BiBTBMz4.js → session-watch-CmHbH0jS.js} +4 -4
- package/vendor/runtime/dist/{session-watch-BiBTBMz4.js.map → session-watch-CmHbH0jS.js.map} +1 -1
- package/vendor/runtime/dist/{watch-iYiP-lOo.js → watch-BE-kKa7o.js} +2 -2
- package/vendor/runtime/dist/{watch-iYiP-lOo.js.map → watch-BE-kKa7o.js.map} +1 -1
- package/vendor/runtime/skills/acpx/SKILL.md +1 -0
- package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
- package/vendor/runtime/dist/docs-site/CLI.html +0 -832
- package/vendor/runtime/dist/docs-site/CNAME +0 -1
- package/vendor/runtime/dist/docs-site/VISION.html +0 -415
- package/vendor/runtime/dist/docs-site/agents.html +0 -391
- package/vendor/runtime/dist/docs-site/compare.html +0 -359
- package/vendor/runtime/dist/docs-site/config.html +0 -450
- package/vendor/runtime/dist/docs-site/custom-agents.html +0 -408
- package/vendor/runtime/dist/docs-site/exit-codes.html +0 -347
- package/vendor/runtime/dist/docs-site/favicon.svg +0 -21
- package/vendor/runtime/dist/docs-site/flows.html +0 -497
- package/vendor/runtime/dist/docs-site/index.html +0 -367
- package/vendor/runtime/dist/docs-site/install.html +0 -386
- package/vendor/runtime/dist/docs-site/llms.txt +0 -35
- package/vendor/runtime/dist/docs-site/output-formats.html +0 -406
- package/vendor/runtime/dist/docs-site/permissions.html +0 -413
- package/vendor/runtime/dist/docs-site/prompting.html +0 -460
- package/vendor/runtime/dist/docs-site/proof-2026-07-18-grok-ext-methods/index.html +0 -336
- package/vendor/runtime/dist/docs-site/quickstart.html +0 -382
- package/vendor/runtime/dist/docs-site/runtime-environment.html +0 -329
- package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +0 -335
- package/vendor/runtime/dist/docs-site/session-control.html +0 -406
- package/vendor/runtime/dist/docs-site/session-watch.html +0 -354
- package/vendor/runtime/dist/docs-site/sessions.html +0 -486
- package/vendor/runtime/dist/docs-site/shared-sessions.html +0 -377
- package/vendor/runtime/dist/ipc-BlljKR2b.js.map +0 -1
- package/vendor/runtime/dist/session-options-ORCchZGk.d.ts.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-
|
|
3
|
-
import { A as findSession, C as textPrompt, Ct as normalizeOutputError,
|
|
2
|
+
import { c as __exportAll, n as getTextErrorRemediationHints, o as toTimerMilliseconds, t as createOutputFormatter } from "./output-I-t-v55D.js";
|
|
3
|
+
import { A as findSession, C as textPrompt, Ct as normalizeOutputError, F as normalizeName, H as serializeSessionRecordForDisk, Lt as AcpxOperationalError, N as listSessions, O as absolutePath, V as parseSessionRecord, W as normalizeAgentSessionId, _t as _usingCtx, b as mergePromptSourceWithText, c as probeQueueOwnerHealth, ft as sessionEventActivePath, ht as writePrivateFile, j as findSessionByDirectoryWalk, jt as OUTPUT_FORMATS, k as findGitRepositoryRoot, kt as EXIT_CODES, pt as sessionEventLockPath, ut as defaultSessionEventLog, v as PromptInputValidationError, vt as isProcessAlive, x as parsePromptSource, yt as exitCodeForOutputErrorCode, z as writeSessionRecord, zt as AgentSpawnError } from "./ipc-CLv2iL89.js";
|
|
4
4
|
import { A as renderArgvIdentity, i as DEFAULT_AGENT_NAME, l as normalizeAgentName$1, s as listBuiltInAgents } from "./agent-registry-CMg8LHKY.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-RN3uSid0.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-DMy77sEU.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-I-t-v55D.js").then((n) => n.s);
|
|
420
420
|
return sessionModulePromise;
|
|
421
421
|
}
|
|
422
422
|
function loadOutputModule() {
|
|
423
|
-
outputModulePromise ??= import("./output-
|
|
423
|
+
outputModulePromise ??= import("./output-I-t-v55D.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-CmHbH0jS.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-Bdzplbpj.js");
|
|
2153
2153
|
await handleFlowRun(file, flags, this, config);
|
|
2154
2154
|
});
|
|
2155
2155
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as PermissionMode, a as AcpElicitationHandler, d as AcpPermissionHandler, k as PromptInput, r as AcpClientOptions, w as PermissionStats, x as NonInteractivePermissionPolicy } from "./session-options-DNnDfiUt.js";
|
|
2
2
|
import { AnyMessage, InitializeResponse, ListSessionsRequest, ListSessionsResponse, PromptResponse, SessionConfigOption, SetSessionConfigOptionResponse } from "@1agents/acp-runtime-sdk";
|
|
3
3
|
//#region src/async-control.d.ts
|
|
4
4
|
type AcpControlAuthority = {
|
|
@@ -259,4 +259,4 @@ declare class AcpClient {
|
|
|
259
259
|
}
|
|
260
260
|
//#endregion
|
|
261
261
|
export { AcpControlAuthority as n, AcpClient as t };
|
|
262
|
-
//# sourceMappingURL=client-
|
|
262
|
+
//# sourceMappingURL=client-BXOiB0ND.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-
|
|
1
|
+
{"version":3,"file":"client-BXOiB0ND.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;;;;;KCsVC;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;UACT;UACA;UACA;UACA;UAMA;0BACgB;UAChB;UACA;mBACS;mBACA;mBACA;UACT;UACA;UAEA;UACA;UACA;UACA;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;EAEL,YAAA,SAAS;MAsEjB,oBAAoB;EAIxB;EAIA,sBAAsB;EAItB,6BAA6B;EAW7B;EAIA;EAIA;EAIA;EAIA;EAIA;EAIA;EAIA,iBACE,UAAU,KACR;EA0BJ;UAIQ;EAUR,qBAAqB;IACnB,iBAAiB;IACjB,4BAA4B;IAC5B,mBAAmB;IACnB;IACA;IACA;IACA;;UAuBM;UASA;UAcA;EAUR,mBAAmB;EAInB,gBAAgB;EAUhB;UAIQ;EAWF,MACJ,YAAY,qBACZ,UAAU,KAAK,sCACd;UA0FW;UAWA;UAgEN;UAiBM;UAyBN;UAwBA;UAIM;UA2CN;UAOM;UA6EA;UAaA;UAoBN;UAoFM;UAwBA;UAoBA;UA+BN;UAgBA;EAWF,cACJ,cACA,YAAY,sBACX,QAAQ;EAqDL,YAAY,mBAAmB,eAAyB,QAAQ;EAKhE,uBACJ,mBACA,cACA,UAAS,qBACR,QAAQ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./output-
|
|
2
|
-
import {
|
|
1
|
+
import { a as MAX_TIMER_DELAY_MS, t as createOutputFormatter } from "./output-I-t-v55D.js";
|
|
2
|
+
import { C as textPrompt, Mt as PERMISSION_MODES, Pt as SESSION_RECORD_SCHEMA, R as resolveSessionRecord, S as promptToDisplayText, gt as writePrivateJsonFile, ht as writePrivateFile, ut as defaultSessionEventLog } from "./ipc-CLv2iL89.js";
|
|
3
3
|
import { P as runTimedExecFile } from "./agent-registry-CMg8LHKY.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-RN3uSid0.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-BKlAuzM8.js.map
|