@1agents/acp-service 0.10.3 → 0.10.5
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/standalone.d.ts +4 -0
- package/dist/src/a2a/standalone.js +3 -0
- package/dist/src/a2a/workbench-ui.js +6 -2
- package/dist/src/capacity.d.ts +6 -1
- package/dist/src/capacity.js +5 -4
- package/dist/workbench-ui/app.js +1 -1
- package/package.json +5 -1
- package/vendor/dsh/README.md +1 -1
- package/vendor/dsh/a2a-executor.d.ts +3 -3
- package/vendor/dsh/a2a.d.ts +2 -2
- package/vendor/dsh/a2a.js +1 -4
- package/vendor/dsh/adapter.d.ts +5 -5
- package/vendor/dsh/cordis.patch.yml +2 -1
- package/vendor/dsh/diagnostics.d.ts +2 -14
- package/vendor/dsh/diagnostics.js +4 -79
- package/vendor/dsh/index.js +1 -3
- package/vendor/dsh/ticket-tools.d.ts +1 -1
- package/vendor/runtime/dist/{cli-Cy5XbWX9.js → cli-DXmYwv3U.js} +4 -4
- package/vendor/runtime/dist/{cli-Cy5XbWX9.js.map → cli-DXmYwv3U.js.map} +1 -1
- package/vendor/runtime/dist/cli.js +7 -7
- package/vendor/runtime/dist/{client-C5zneoBs.d.ts → client-VQsqcIOJ.d.ts} +1 -3
- package/vendor/runtime/dist/{client-C5zneoBs.d.ts.map → client-VQsqcIOJ.d.ts.map} +1 -1
- package/vendor/runtime/dist/{flows-q0phAwvh.js → flows-DJ17ajbw.js} +3 -3
- package/vendor/runtime/dist/{flows-q0phAwvh.js.map → flows-DJ17ajbw.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-BxtrhRYT.js → invocation-options-PBfCgrdi.js} +3 -3
- package/vendor/runtime/dist/{invocation-options-BxtrhRYT.js.map → invocation-options-PBfCgrdi.js.map} +1 -1
- package/vendor/runtime/dist/{output-BiOUhKGO.js → output-B3MDn7kv.js} +2 -2
- package/vendor/runtime/dist/{output-BiOUhKGO.js.map → output-B3MDn7kv.js.map} +1 -1
- package/vendor/runtime/dist/{queue-owner-runtime-CJwEW-f-.js → queue-owner-runtime-DXCVngwU.js} +1 -10
- package/vendor/runtime/dist/queue-owner-runtime-DXCVngwU.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-kRtST0Y5.js → session-watch-DURyCw31.js} +2 -2
- package/vendor/runtime/dist/{session-watch-kRtST0Y5.js.map → session-watch-DURyCw31.js.map} +1 -1
- package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
- package/vendor/runtime/dist/docs-site/CLI.html +0 -833
- 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 -498
- 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 -36
- package/vendor/runtime/dist/docs-site/output-formats.html +0 -407
- package/vendor/runtime/dist/docs-site/permissions.html +0 -422
- package/vendor/runtime/dist/docs-site/prompting.html +0 -460
- package/vendor/runtime/dist/docs-site/quickstart.html +0 -382
- package/vendor/runtime/dist/docs-site/releasing.html +0 -341
- package/vendor/runtime/dist/docs-site/runtime-environment.html +0 -329
- package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +0 -336
- package/vendor/runtime/dist/docs-site/safe-errors.html +0 -323
- package/vendor/runtime/dist/docs-site/session-control.html +0 -408
- package/vendor/runtime/dist/docs-site/session-watch.html +0 -354
- package/vendor/runtime/dist/docs-site/sessions.html +0 -488
- package/vendor/runtime/dist/docs-site/shared-sessions.html +0 -377
- package/vendor/runtime/dist/queue-owner-runtime-CJwEW-f-.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AcpAgentInspection, AcpAgentInspectionOptions, AcpAgentRegistry, AcpInspectableAgentRegistry, DEFAULT_AGENT_NAME, createAgentRegistry } from "./agent-registry.js";
|
|
2
2
|
import { A as GrokExitPlanModeRequest, C as PermissionPolicy, D as SafeErrorOrigin, E as SafeErrorCategory, F as GrokAskUserQuestionResponse, M as GrokExitPlanOutcome, N as GrokAskUserAnswers, O as SessionRecord, P as GrokAskUserQuestionRequest, S as PermissionMode, T as SafeError, _ as AcpProcessSpawnFailure, a as AcpElicitationHandler, b as McpServer$1, c as AcpElicitationResponse, d as AcpPermissionHandler, f as AcpPermissionRequest, g as AcpProcessLifecycle, h as AcpProcessLaunchScope, i as AcpElicitationContext, j as GrokExitPlanModeResponse, k as PromptInput, l as AcpJsonRpcMessage, m as AcpProcessLaunch, n as SystemPromptOption, o as AcpElicitationMode, p as AcpProcessExit, s as AcpElicitationRequest, t as SessionAgentOptions, u as AcpPermissionDecision, v as AcpProcessStarted, x as NonInteractivePermissionPolicy, y as AuthPolicy } from "./session-options-NjpFwf-c.js";
|
|
3
|
-
import { n as AcpControlAuthority, t as AcpClient } from "./client-
|
|
3
|
+
import { n as AcpControlAuthority, t as AcpClient } from "./client-VQsqcIOJ.js";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { SetSessionConfigOptionResponse, ToolCallContent, ToolCallLocation, ToolKind } from "@1agents/acp-runtime-sdk";
|
|
6
6
|
//#region src/acp/model-support.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as findSession, At as extractAcpError, B as assertPersistedKeyPolicy, Bt as isAcpRuntimeError, C as textPrompt, Dt as normalizeOutputError, L as readSessionRecord, Ot as safeErrorRejection, R as resolveSessionRecord, U as serializeSessionRecordForDisk, V as parseSessionRecord, bt as writePrivateJsonFile, ft as defaultSessionEventLog, jt as isAcpResourceNotFoundError, kt as toSafeError, t as tryCancelOnRunningOwner, zt as AcpRuntimeError } from "./ipc-BQQpcEdP.js";
|
|
2
2
|
import { a as createAgentRegistry, i as DEFAULT_AGENT_NAME, k as normalizeAgentCommandInput } from "./agent-registry-R7A3MSpr.js";
|
|
3
|
-
import { $ as isRequestedModelUnsupportedError, A as applyInitialModelSelection, B as reconcileAgentSessionId, C as setSessionModeOnOwner, D as connectAndLoadSession, E as withConnectedSession, F as persistSessionOptions, G as recordSessionUpdate, I as sessionOptionsFromRecord, J as advertisedModelState, K as trimConversationForRuntime, L as applyConversation, M as applyRequestedModelIfAdvertised, N as setDesiredModeId, O as applyConfigOptionSelection, P as normalizeSessionOptionShape, Q as RequestedModelUnsupportedError, R as applyLifecycleSnapshotToRecord, T as setSessionModelOnOwner, U as recordClientOperation, V as cloneSessionConversation, W as recordPromptSubmission, X as REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, Y as AcpClient, Z as REQUESTED_MODEL_UNSUPPORTED_REASONS, _ as cancelSessionPrompt, c as LiveSessionCheckpoint, dt as TimeoutError, et as resolveRequestedConfigOption, ft as assertControlAuthority, h as ensureSession, j as applyModelSelection, k as applyConfigOptionsToRecord, l as runPromptTurn, mt as withTimeout, q as cloneSessionAcpxState, r as sendSession, s as DISCARD_OUTPUT_FORMATTER, tt as resolveRequestedModelId, v as closeSession, x as setSessionConfigOptionOnOwner, z as createInitialSessionRecord } from "./queue-owner-runtime-
|
|
3
|
+
import { $ as isRequestedModelUnsupportedError, A as applyInitialModelSelection, B as reconcileAgentSessionId, C as setSessionModeOnOwner, D as connectAndLoadSession, E as withConnectedSession, F as persistSessionOptions, G as recordSessionUpdate, I as sessionOptionsFromRecord, J as advertisedModelState, K as trimConversationForRuntime, L as applyConversation, M as applyRequestedModelIfAdvertised, N as setDesiredModeId, O as applyConfigOptionSelection, P as normalizeSessionOptionShape, Q as RequestedModelUnsupportedError, R as applyLifecycleSnapshotToRecord, T as setSessionModelOnOwner, U as recordClientOperation, V as cloneSessionConversation, W as recordPromptSubmission, X as REQUESTED_MODEL_UNSUPPORTED_ERROR_CODE, Y as AcpClient, Z as REQUESTED_MODEL_UNSUPPORTED_REASONS, _ as cancelSessionPrompt, c as LiveSessionCheckpoint, dt as TimeoutError, et as resolveRequestedConfigOption, ft as assertControlAuthority, h as ensureSession, j as applyModelSelection, k as applyConfigOptionsToRecord, l as runPromptTurn, mt as withTimeout, q as cloneSessionAcpxState, r as sendSession, s as DISCARD_OUTPUT_FORMATTER, tt as resolveRequestedModelId, v as closeSession, x as setSessionConfigOptionOnOwner, z as createInitialSessionRecord } from "./queue-owner-runtime-DXCVngwU.js";
|
|
4
4
|
import { t as watchSession } from "./watch-CIpoMaWD.js";
|
|
5
5
|
import { fileURLToPath } from "node:url";
|
|
6
6
|
import path from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as JsonMessageSanitizer, t as createOutputFormatter } from "./output-
|
|
1
|
+
import { i as JsonMessageSanitizer, t as createOutputFormatter } from "./output-B3MDn7kv.js";
|
|
2
2
|
import { it as isAcpJsonRpcMessage, lt as parsePromptStopReason } from "./ipc-BQQpcEdP.js";
|
|
3
3
|
import { t as watchSession } from "./watch-CIpoMaWD.js";
|
|
4
4
|
import { once } from "node:events";
|
|
@@ -73,4 +73,4 @@ async function runSessionWatch(record, options) {
|
|
|
73
73
|
//#endregion
|
|
74
74
|
export { runSessionWatch };
|
|
75
75
|
|
|
76
|
-
//# sourceMappingURL=session-watch-
|
|
76
|
+
//# sourceMappingURL=session-watch-DURyCw31.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-watch-
|
|
1
|
+
{"version":3,"file":"session-watch-DURyCw31.js","names":[],"sources":["../src/cli/session-watch.ts"],"sourcesContent":["import { once } from \"node:events\";\nimport { isAcpJsonRpcMessage, parsePromptStopReason } from \"../acp/jsonrpc.js\";\nimport type { SessionWatchEvent } from \"../session/journal.js\";\nimport { watchSession } from \"../session/watch.js\";\nimport type { OutputFormatter, OutputPolicy, SessionRecord } from \"../types.js\";\nimport { JsonMessageSanitizer } from \"./output/json-formatter.js\";\nimport { createOutputFormatter } from \"./output/output.js\";\n\nfunction watchRenderer(policy: OutputPolicy): (event: SessionWatchEvent) => string[] {\n const chunks: string[] = [];\n const stdout = {\n write: (chunk: string) => {\n chunks.push(chunk);\n },\n };\n let sanitizer = new JsonMessageSanitizer(policy.suppressReads, true);\n let formatter = createOutputFormatter(policy.format, { stdout });\n return (event) => {\n chunks.length = 0;\n if (event.type === \"turn_started\") {\n sanitizer = new JsonMessageSanitizer(policy.suppressReads, true);\n formatter = createOutputFormatter(policy.format, { stdout });\n }\n if (policy.format === \"json\") {\n chunks.push(\n JSON.stringify(\n event.type === \"message\"\n ? { ...event, message: sanitizer.sanitize(event.message) }\n : event,\n ) + \"\\n\",\n );\n } else if (event.type === \"message\") {\n renderWatchMessage(event, sanitizer, formatter, policy.format === \"quiet\");\n } else {\n if (event.type === \"turn_result\") {\n formatter.flush();\n }\n if (policy.format !== \"quiet\") {\n chunks.push(watchLifecycleLine(event));\n }\n }\n return chunks;\n };\n}\n\nfunction renderWatchMessage(\n event: Extract<SessionWatchEvent, { type: \"message\" }>,\n sanitizer: JsonMessageSanitizer,\n formatter: OutputFormatter,\n quiet: boolean,\n): void {\n const message = sanitizer.sanitize(event.message);\n if (!isAcpJsonRpcMessage(message)) {\n throw new Error(\"Invalid sanitized session message\");\n }\n if (quiet || parsePromptStopReason(message) === undefined) {\n formatter.onAcpMessage(message);\n }\n}\n\nfunction watchLifecycleLine(event: Exclude<SessionWatchEvent, { type: \"message\" }>): string {\n if (event.type === \"turn_started\") {\n return `\\n[${event.requestId}] started cursor=${event.cursor}\\n`;\n }\n const detail =\n event.result.status === \"failed\" ? event.result.error.message : event.result.stopReason;\n return `\\n[${event.requestId}] ${event.result.status}${detail ? `: ${detail}` : \"\"} cursor=${event.cursor}\\n`;\n}\n\nexport async function runSessionWatch(\n record: SessionRecord,\n options: { cursor?: string; policy: OutputPolicy },\n): Promise<void> {\n const stopped = new AbortController();\n let outputError: Error | undefined;\n const stop = () => stopped.abort();\n const onOutputError = (error: Error) => {\n if ((error as NodeJS.ErrnoException).code !== \"EPIPE\") {\n outputError = error;\n }\n stop();\n };\n const render = watchRenderer(options.policy);\n process.on(\"SIGINT\", stop);\n process.on(\"SIGTERM\", stop);\n process.on(\"SIGHUP\", stop);\n process.stdout.on(\"error\", onOutputError);\n try {\n for await (const event of watchSession({\n record,\n cursor: options.cursor,\n signal: stopped.signal,\n })) {\n for (const chunk of render(event)) {\n if (stopped.signal.aborted) {\n break;\n }\n if (!process.stdout.write(chunk)) {\n await once(process.stdout, \"drain\", { signal: stopped.signal });\n }\n }\n }\n } catch (error) {\n if (!stopped.signal.aborted) {\n throw error;\n }\n } finally {\n process.off(\"SIGINT\", stop);\n process.off(\"SIGTERM\", stop);\n process.off(\"SIGHUP\", stop);\n process.stdout.off(\"error\", onOutputError);\n }\n if (outputError) {\n throw outputError;\n }\n}\n"],"mappings":";;;;;AAQA,SAAS,cAAc,QAA8D;CACnF,MAAM,SAAmB,CAAC;CAC1B,MAAM,SAAS,EACb,QAAQ,UAAkB;EACxB,OAAO,KAAK,KAAK;CACnB,EACF;CACA,IAAI,YAAY,IAAI,qBAAqB,OAAO,eAAe,IAAI;CACnE,IAAI,YAAY,sBAAsB,OAAO,QAAQ,EAAE,OAAO,CAAC;CAC/D,QAAQ,UAAU;EAChB,OAAO,SAAS;EAChB,IAAI,MAAM,SAAS,gBAAgB;GACjC,YAAY,IAAI,qBAAqB,OAAO,eAAe,IAAI;GAC/D,YAAY,sBAAsB,OAAO,QAAQ,EAAE,OAAO,CAAC;EAC7D;EACA,IAAI,OAAO,WAAW,QACpB,OAAO,KACL,KAAK,UACH,MAAM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