@moxt-ai/mobius 0.0.318 → 0.0.319

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.
Files changed (76) hide show
  1. package/dist/acp/adapter/agent-initialization.d.ts.map +1 -1
  2. package/dist/acp/adapter/agent-initialization.js +7 -12
  3. package/dist/acp/adapter/agent-initialization.js.map +1 -1
  4. package/dist/acp/adapter/claude/agent-connection.d.ts +6 -0
  5. package/dist/acp/adapter/claude/agent-connection.d.ts.map +1 -0
  6. package/dist/acp/adapter/claude/agent-connection.js +15 -0
  7. package/dist/acp/adapter/claude/agent-connection.js.map +1 -0
  8. package/dist/acp/adapter/codex/agent-connection.d.ts +6 -0
  9. package/dist/acp/adapter/codex/agent-connection.d.ts.map +1 -0
  10. package/dist/acp/adapter/codex/agent-connection.js +15 -0
  11. package/dist/acp/adapter/codex/agent-connection.js.map +1 -0
  12. package/dist/acp/adapter/pi/agent-connection.d.ts +6 -0
  13. package/dist/acp/adapter/pi/agent-connection.d.ts.map +1 -0
  14. package/dist/acp/adapter/pi/agent-connection.js +15 -0
  15. package/dist/acp/adapter/pi/agent-connection.js.map +1 -0
  16. package/dist/acp/adapter/session-events.d.ts +1 -1
  17. package/dist/acp/adapter/session-events.d.ts.map +1 -1
  18. package/dist/acp/adapter/session-events.js +12 -11
  19. package/dist/acp/adapter/session-events.js.map +1 -1
  20. package/dist/acp/agent/agent-definition.d.ts +9 -21
  21. package/dist/acp/agent/agent-definition.d.ts.map +1 -1
  22. package/dist/acp/agent/agent-definition.js +11 -31
  23. package/dist/acp/agent/agent-definition.js.map +1 -1
  24. package/dist/acp/connection/agent-connection.d.ts +18 -10
  25. package/dist/acp/connection/agent-connection.d.ts.map +1 -1
  26. package/dist/acp/connection/agent-connection.js +1 -231
  27. package/dist/acp/connection/agent-connection.js.map +1 -1
  28. package/dist/acp/connection/agent-operation.d.ts +4 -0
  29. package/dist/acp/connection/agent-operation.d.ts.map +1 -0
  30. package/dist/acp/connection/agent-operation.js +57 -0
  31. package/dist/acp/connection/agent-operation.js.map +1 -0
  32. package/dist/acp/connection/endpoint-agent-connection.d.ts +28 -0
  33. package/dist/acp/connection/endpoint-agent-connection.d.ts.map +1 -0
  34. package/dist/acp/connection/endpoint-agent-connection.js +31 -0
  35. package/dist/acp/connection/endpoint-agent-connection.js.map +1 -0
  36. package/dist/agent/discovery/acp-readiness-probe.d.ts +1 -0
  37. package/dist/agent/discovery/acp-readiness-probe.d.ts.map +1 -1
  38. package/dist/agent/discovery/acp-readiness-probe.js +29 -188
  39. package/dist/agent/discovery/acp-readiness-probe.js.map +1 -1
  40. package/dist/agent/discovery/discover-agent.d.ts.map +1 -1
  41. package/dist/agent/discovery/discover-agent.js +4 -6
  42. package/dist/agent/discovery/discover-agent.js.map +1 -1
  43. package/dist/agent/discovery/executable-discovery.d.ts +1 -1
  44. package/dist/agent/discovery/executable-discovery.d.ts.map +1 -1
  45. package/dist/agent/discovery/executable-discovery.js +1 -6
  46. package/dist/agent/discovery/executable-discovery.js.map +1 -1
  47. package/dist/agent/specification/agent-specification.d.ts +3 -9
  48. package/dist/agent/specification/agent-specification.d.ts.map +1 -1
  49. package/dist/agent/specification/agent-specification.js +1 -12
  50. package/dist/agent/specification/agent-specification.js.map +1 -1
  51. package/dist/agent/specification/vendors/claude-code-agent.d.ts +2 -2
  52. package/dist/agent/specification/vendors/claude-code-agent.d.ts.map +1 -1
  53. package/dist/agent/specification/vendors/claude-code-agent.js +2 -2
  54. package/dist/agent/specification/vendors/claude-code-agent.js.map +1 -1
  55. package/dist/agent/specification/vendors/codex-agent.d.ts +2 -2
  56. package/dist/agent/specification/vendors/codex-agent.d.ts.map +1 -1
  57. package/dist/agent/specification/vendors/codex-agent.js +2 -2
  58. package/dist/agent/specification/vendors/codex-agent.js.map +1 -1
  59. package/dist/agent/specification/vendors/pi-agent.d.ts +2 -2
  60. package/dist/agent/specification/vendors/pi-agent.d.ts.map +1 -1
  61. package/dist/agent/specification/vendors/pi-agent.js +2 -2
  62. package/dist/agent/specification/vendors/pi-agent.js.map +1 -1
  63. package/dist/cli/handler/agents/logic/agent-diagnostics.d.ts.map +1 -1
  64. package/dist/cli/handler/agents/logic/agent-diagnostics.js +1 -4
  65. package/dist/cli/handler/agents/logic/agent-diagnostics.js.map +1 -1
  66. package/dist/cli.js +579 -860
  67. package/dist/cli.js.map +4 -4
  68. package/dist/runtime/catalog/resolve-catalog-agent.js +6 -3
  69. package/dist/runtime/catalog/resolve-catalog-agent.js.map +1 -1
  70. package/dist/runtime.d.ts +3 -2
  71. package/dist/runtime.d.ts.map +1 -1
  72. package/dist/runtime.js +303 -609
  73. package/dist/runtime.js.map +4 -4
  74. package/dist/session/settings/discover-agent-settings.js +1 -1
  75. package/dist/session/settings/discover-agent-settings.js.map +1 -1
  76. package/package.json +1 -1
@@ -1,232 +1,2 @@
1
- import { spawn } from "node:child_process";
2
- import { ndJsonStream, RequestError } from "@agentclientprotocol/sdk";
3
- import { executableLaunch, platformSpawnOptions, stopProcessTree } from "../../util/process/executable.js";
4
- import { isRecord, truncate } from "../../util/value-utils.js";
5
- import { AcpExecutionError } from "../acp-error.js";
6
- import { acpEndpointTerminationError, } from "../agent/in-process-endpoint.js";
7
- import { createAcpClient } from "./create-client.js";
8
- function requestErrorMessage(error) {
9
- const fallback = truncate(error.message, 500);
10
- if (error.message !== "Internal error" || !isRecord(error.data)) {
11
- return fallback;
12
- }
13
- const agentError = error.data["error"];
14
- if (isRecord(agentError)) {
15
- const message = agentError["message"];
16
- if (typeof message === "string" && message.length > 0) {
17
- return truncate(message, 500);
18
- }
19
- }
20
- const details = error.data["details"];
21
- return typeof details === "string" && details.length > 0 ? truncate(details, 500) : fallback;
22
- }
23
- function readableWebStream(input) {
24
- let streamOpen = true;
25
- return new ReadableStream({
26
- start(controller) {
27
- input.on("data", (chunk) => {
28
- if (!streamOpen) {
29
- return;
30
- }
31
- if (chunk instanceof Uint8Array) {
32
- controller.enqueue(new Uint8Array(chunk));
33
- return;
34
- }
35
- streamOpen = false;
36
- controller.error(new Error("ACP process produced a non-binary chunk"));
37
- });
38
- input.once("end", () => {
39
- if (!streamOpen) {
40
- return;
41
- }
42
- streamOpen = false;
43
- controller.close();
44
- });
45
- input.once("error", (error) => {
46
- if (!streamOpen) {
47
- return;
48
- }
49
- streamOpen = false;
50
- controller.error(error);
51
- });
52
- },
53
- cancel() {
54
- streamOpen = false;
55
- },
56
- });
57
- }
58
- export function createWritableAcpStream(output) {
59
- let outputFailure;
60
- const pendingWriteFailures = new Set();
61
- const fail = (error) => {
62
- outputFailure = error;
63
- for (const reject of pendingWriteFailures) {
64
- reject(error);
65
- }
66
- pendingWriteFailures.clear();
67
- };
68
- output.on("error", fail);
69
- output.once("close", () => {
70
- if (outputFailure === undefined) {
71
- fail(new Error("ACP process input closed"));
72
- }
73
- });
74
- return new WritableStream({
75
- write(chunk) {
76
- if (outputFailure !== undefined) {
77
- return Promise.reject(outputFailure);
78
- }
79
- return new Promise((resolve, reject) => {
80
- pendingWriteFailures.add(reject);
81
- output.write(chunk, (error) => {
82
- pendingWriteFailures.delete(reject);
83
- if (error) {
84
- outputFailure = error;
85
- reject(error);
86
- return;
87
- }
88
- if (outputFailure !== undefined) {
89
- reject(outputFailure);
90
- return;
91
- }
92
- resolve();
93
- });
94
- });
95
- },
96
- });
97
- }
98
- /** Owns the transport, termination signal and process tree for one Agent endpoint. */
99
- export class AgentConnection {
100
- connection;
101
- termination;
102
- #process;
103
- constructor(agent, cwd, client, onBackgroundActivity = () => { }) {
104
- if (agent.kind === "in-process-acp") {
105
- // Mobius hosts the ACP Agent in-process and drives the vendor's own protocol, so there is
106
- // no adapter process to spawn or supervise here. The endpoint owns its own resources.
107
- const inProcess = agent.createEndpoint({
108
- command: agent.command,
109
- cwd,
110
- environment: agent.environment,
111
- onSessionUpdate: client.onUpdate,
112
- onBackgroundActivity,
113
- });
114
- this.#process = { kind: "in-process", endpoint: inProcess };
115
- this.termination = inProcess.terminated;
116
- this.connection = createAcpClient(client).connect(inProcess.app());
117
- return;
118
- }
119
- const launch = executableLaunch(agent.adapterPath, agent.arguments);
120
- const child = spawn(launch.command, [...launch.arguments], {
121
- cwd,
122
- ...platformSpawnOptions,
123
- env: { ...process.env, ...agent.environment },
124
- shell: false,
125
- stdio: ["pipe", "pipe", "pipe"],
126
- });
127
- this.#process = { kind: "child", child };
128
- const stdin = child.stdin;
129
- const stdout = child.stdout;
130
- const stderr = child.stderr;
131
- if (stdin === null || stdout === null || stderr === null) {
132
- child.kill("SIGKILL");
133
- throw new AcpExecutionError("ACP process streams are unavailable");
134
- }
135
- stderr.setEncoding("utf8");
136
- stderr.on("data", (chunk) => {
137
- process.stderr.write(`[${agent.id}-acp] ${chunk}`);
138
- });
139
- this.termination = new Promise((resolve) => {
140
- child.once("error", (cause) => {
141
- resolve({ kind: "failed", error: new AcpExecutionError("The ACP process could not run", { cause }) });
142
- });
143
- child.once("exit", (code, signal) => {
144
- resolve({
145
- kind: "failed",
146
- error: new AcpExecutionError("The ACP process stopped", { cause: { code, signal } }),
147
- });
148
- });
149
- });
150
- const stream = ndJsonStream(createWritableAcpStream(stdin), readableWebStream(stdout));
151
- let pendingUpdates = 0;
152
- this.connection = createAcpClient({
153
- onElicitation: client.onElicitation,
154
- onElicitationComplete: client.onElicitationComplete,
155
- onPermission: client.onPermission,
156
- // ACP notifications acknowledge transport writes, not their consumption.
157
- // Stop reading the child while updates from the current chunk drain;
158
- // the OS pipe then backpressures history replay instead of filling our queue.
159
- onUpdate: async (notification) => {
160
- pendingUpdates += 1;
161
- stdout.pause();
162
- try {
163
- await client.onUpdate(notification);
164
- }
165
- finally {
166
- pendingUpdates -= 1;
167
- if (pendingUpdates === 0) {
168
- stdout.resume();
169
- }
170
- }
171
- },
172
- }).connect(stream);
173
- }
174
- get inProcessAgent() {
175
- return this.#process.kind === "in-process" ? this.#process.endpoint : null;
176
- }
177
- closeProcess = async () => {
178
- try {
179
- if (this.#process.kind === "in-process") {
180
- await this.#process.endpoint.close();
181
- return;
182
- }
183
- await stopProcessTree(this.#process.child);
184
- }
185
- finally {
186
- this.connection.close();
187
- }
188
- };
189
- race = async (operation, exitMessage, signal) => {
190
- let removeAbortListener = () => { };
191
- const aborted = new Promise((_resolve, reject) => {
192
- const rejectAbort = () => {
193
- reject(signal.reason ?? new Error("ACP request was cancelled"));
194
- };
195
- signal.addEventListener("abort", rejectAbort, { once: true });
196
- removeAbortListener = () => {
197
- signal.removeEventListener("abort", rejectAbort);
198
- };
199
- if (signal.aborted) {
200
- rejectAbort();
201
- }
202
- });
203
- try {
204
- try {
205
- return await Promise.race([
206
- // The caller has already started operation. Even when cancellation
207
- // won before entry, observe its later rejection during endpoint cleanup.
208
- aborted,
209
- operation,
210
- this.termination.then((termination) => {
211
- const cause = acpEndpointTerminationError(termination);
212
- throw new AcpExecutionError(exitMessage, { cause }, cause.code);
213
- }),
214
- ]);
215
- }
216
- catch (error) {
217
- signal.throwIfAborted();
218
- if (error instanceof RequestError && error.code === -32_000) {
219
- throw new AcpExecutionError("Agent authentication is required", { cause: error }, "authentication_required");
220
- }
221
- if (error instanceof RequestError) {
222
- throw new AcpExecutionError(requestErrorMessage(error), { cause: error }, "acp_agent_error");
223
- }
224
- throw error;
225
- }
226
- }
227
- finally {
228
- removeAbortListener();
229
- }
230
- };
231
- }
1
+ export {};
232
2
  //# sourceMappingURL=agent-connection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent-connection.js","sourceRoot":"","sources":["../../../src/acp/connection/agent-connection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAyB,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAC3G,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAi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B,CAAC,CAAC;gBACjG,CAAC;gBACD,MAAM,KAAK,CAAC;YAChB,CAAC;QACL,CAAC;gBAAS,CAAC;YACP,mBAAmB,EAAE,CAAC;QAC1B,CAAC;IACL,CAAC,CAAC;CACL"}
1
+ {"version":3,"file":"agent-connection.js","sourceRoot":"","sources":["../../../src/acp/connection/agent-connection.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import { type AcpEndpointTermination } from "../agent/in-process-endpoint.ts";
2
+ /** Observes an already-started operation even when cancellation wins before entry. */
3
+ export declare function raceAgentOperation<T>(operation: Promise<T>, termination: Promise<AcpEndpointTermination>, exitMessage: string, signal: AbortSignal): Promise<T>;
4
+ //# sourceMappingURL=agent-operation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-operation.d.ts","sourceRoot":"","sources":["../../../src/acp/connection/agent-operation.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,sBAAsB,EAA+B,MAAM,iCAAiC,CAAC;AAkB3G,sFAAsF;AACtF,wBAAsB,kBAAkB,CAAC,CAAC,EACtC,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,EACrB,WAAW,EAAE,OAAO,CAAC,sBAAsB,CAAC,EAC5C,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,WAAW,GACpB,OAAO,CAAC,CAAC,CAAC,CAqCZ"}
@@ -0,0 +1,57 @@
1
+ import { RequestError } from "@agentclientprotocol/sdk";
2
+ import { isRecord, truncate } from "../../util/value-utils.js";
3
+ import { AcpExecutionError } from "../acp-error.js";
4
+ import { acpEndpointTerminationError } from "../agent/in-process-endpoint.js";
5
+ function requestErrorMessage(error) {
6
+ const fallback = truncate(error.message, 500);
7
+ if (error.message !== "Internal error" || !isRecord(error.data)) {
8
+ return fallback;
9
+ }
10
+ const agentError = error.data["error"];
11
+ if (isRecord(agentError)) {
12
+ const message = agentError["message"];
13
+ if (typeof message === "string" && message.length > 0) {
14
+ return truncate(message, 500);
15
+ }
16
+ }
17
+ const details = error.data["details"];
18
+ return typeof details === "string" && details.length > 0 ? truncate(details, 500) : fallback;
19
+ }
20
+ /** Observes an already-started operation even when cancellation wins before entry. */
21
+ export async function raceAgentOperation(operation, termination, exitMessage, signal) {
22
+ let removeAbortListener = () => { };
23
+ const aborted = new Promise((_resolve, reject) => {
24
+ const rejectAbort = () => {
25
+ reject(signal.reason ?? new Error("ACP request was cancelled"));
26
+ };
27
+ signal.addEventListener("abort", rejectAbort, { once: true });
28
+ removeAbortListener = () => signal.removeEventListener("abort", rejectAbort);
29
+ if (signal.aborted) {
30
+ rejectAbort();
31
+ }
32
+ });
33
+ try {
34
+ return await Promise.race([
35
+ aborted,
36
+ operation,
37
+ termination.then((result) => {
38
+ const cause = acpEndpointTerminationError(result);
39
+ throw new AcpExecutionError(exitMessage, { cause }, cause.code);
40
+ }),
41
+ ]);
42
+ }
43
+ catch (error) {
44
+ signal.throwIfAborted();
45
+ if (error instanceof RequestError && error.code === -32_000) {
46
+ throw new AcpExecutionError("Agent authentication is required", { cause: error }, "authentication_required");
47
+ }
48
+ if (error instanceof RequestError) {
49
+ throw new AcpExecutionError(requestErrorMessage(error), { cause: error }, "acp_agent_error");
50
+ }
51
+ throw error;
52
+ }
53
+ finally {
54
+ removeAbortListener();
55
+ }
56
+ }
57
+ //# sourceMappingURL=agent-operation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-operation.js","sourceRoot":"","sources":["../../../src/acp/connection/agent-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAA+B,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAE3G,SAAS,mBAAmB,CAAC,KAAmB;IAC5C,MAAM,QAAQ,GAAG,QAAQ,CAAC,KAAK,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C;QAC9D,mBAAmB,GAAG,GAAS,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,OAAO,EAAE,WAAW,CAAC,CAAC;QACnF,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC;YACjB,WAAW,EAAE,CAAC;QAClB,CAAC;IACL,CAAC,CAAC,CAAC;IACH,IAAI,CAAC;QACD,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC;YACtB,OAAO;YACP,SAAS;YACT,WAAW,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE;gBACxB,MAAM,KAAK,GAAG,2BAA2B,CAAC,MAAM,CAAC,CAAC;gBAClD,MAAM,IAAI,iBAAiB,CAAC,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YACpE,CAAC,CAAC;SACL,CAAC,CAAC;IACP,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACb,MAAM,CAAC,cAAc,EAAE,CAAC;QACxB,IAAI,KAAK,YAAY,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;YAC1D,MAAM,IAAI,iBAAiB,CACvB,kCAAkC,EAClC,EAAE,KAAK,EAAE,KAAK,EAAE,EAChB,yBAAyB,CAC5B,CAAC;QACN,CAAC;QACD,IAAI,KAAK,YAAY,YAAY,EAAE,CAAC;YAChC,MAAM,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,iBAAiB,CAAC,CAAC;QACjG,CAAC;QACD,MAAM,KAAK,CAAC;IAChB,CAAC;YAAS,CAAC;QACP,mBAAmB,EAAE,CAAC;IAC1B,CAAC;AACL,CAAC"}
@@ -0,0 +1,28 @@
1
+ import type { ClientConnection } from "@agentclientprotocol/sdk";
2
+ import type { InProcessAcpEndpoint } from "../agent/in-process-endpoint.ts";
3
+ import type { AgentConnection } from "./agent-connection.ts";
4
+ import { type AcpClientHandler } from "./create-client.ts";
5
+ /** Shared local ACP transport mechanics; the adapter constructs and wires its endpoint. */
6
+ export declare abstract class EndpointAgentConnection implements AgentConnection {
7
+ #private;
8
+ readonly connection: ClientConnection;
9
+ readonly termination: Promise<import("../agent/in-process-endpoint.ts").AcpEndpointTermination>;
10
+ constructor(endpoint: InProcessAcpEndpoint, client: AcpClientHandler);
11
+ readonly initialize: (signal: AbortSignal) => Promise<void>;
12
+ readonly agentSettingsModelEffort: () => Readonly<{
13
+ effortSettingId: string;
14
+ modelSettingId: string;
15
+ resolution: "complete" | "on_model_selection" | "unavailable";
16
+ unsupportedModelIds: readonly string[];
17
+ valuesByModel: Readonly<Record<string, readonly Readonly<{
18
+ description: string;
19
+ groupId: string;
20
+ groupName: string;
21
+ name: string;
22
+ value: string;
23
+ }>[]>>;
24
+ }> | null;
25
+ readonly closeProcess: () => Promise<void>;
26
+ readonly race: <T>(operation: Promise<T>, exitMessage: string, signal: AbortSignal) => Promise<T>;
27
+ }
28
+ //# sourceMappingURL=endpoint-agent-connection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-agent-connection.d.ts","sourceRoot":"","sources":["../../../src/acp/connection/endpoint-agent-connection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,EAAE,KAAK,gBAAgB,EAAmB,MAAM,oBAAoB,CAAC;AAE5E,2FAA2F;AAC3F,8BAAsB,uBAAwB,YAAW,eAAe;;IAEpE,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACtC,QAAQ,CAAC,WAAW,4EAAC;IAGrB,YAAY,QAAQ,EAAE,oBAAoB,EAAE,MAAM,EAAE,gBAAgB,EAInE;IAED,QAAQ,CAAC,UAAU,WAAkB,WAAW,KAAG,OAAO,CAAC,IAAI,CAAC,CAE9D;IAEF,QAAQ,CAAC,wBAAwB;;;;;;;;;;;;cAA6D;IAE9F,QAAQ,CAAC,YAAY,QAAO,OAAO,CAAC,IAAI,CAAC,CASvC;IAEF,QAAQ,CAAC,IAAI,GAAI,CAAC,aAAa,OAAO,CAAC,CAAC,CAAC,eAAe,MAAM,UAAU,WAAW,KAAG,OAAO,CAAC,CAAC,CAAC,CACvB;CAC5E"}
@@ -0,0 +1,31 @@
1
+ import { raceAgentOperation } from "./agent-operation.js";
2
+ import { createAcpClient } from "./create-client.js";
3
+ /** Shared local ACP transport mechanics; the adapter constructs and wires its endpoint. */
4
+ export class EndpointAgentConnection {
5
+ #endpoint;
6
+ connection;
7
+ termination;
8
+ #closePromise = null;
9
+ constructor(endpoint, client) {
10
+ this.#endpoint = endpoint;
11
+ this.termination = endpoint.terminated;
12
+ this.connection = createAcpClient(client).connect(endpoint.app());
13
+ }
14
+ initialize = async (signal) => {
15
+ await this.#endpoint.initialize(signal);
16
+ };
17
+ agentSettingsModelEffort = () => this.#endpoint.agentSettingsModelEffort?.() ?? null;
18
+ closeProcess = () => {
19
+ this.#closePromise ??= (async () => {
20
+ try {
21
+ await this.#endpoint.close();
22
+ }
23
+ finally {
24
+ this.connection.close();
25
+ }
26
+ })();
27
+ return this.#closePromise;
28
+ };
29
+ race = (operation, exitMessage, signal) => raceAgentOperation(operation, this.termination, exitMessage, signal);
30
+ }
31
+ //# sourceMappingURL=endpoint-agent-connection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"endpoint-agent-connection.js","sourceRoot":"","sources":["../../../src/acp/connection/endpoint-agent-connection.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAyB,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE5E,2FAA2F;AAC3F,MAAM,OAAgB,uBAAuB;IAChC,SAAS,CAAuB;IAChC,UAAU,CAAmB;IAC7B,WAAW,CAAC;IACrB,aAAa,GAAyB,IAAI,CAAC;IAE3C,YAAY,QAA8B,EAAE,MAAwB;QAChE,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC;QACvC,IAAI,CAAC,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC;IACtE,CAAC;IAEQ,UAAU,GAAG,KAAK,EAAE,MAAmB,EAAiB,EAAE;QAC/D,MAAM,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEO,wBAAwB,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,wBAAwB,EAAE,EAAE,IAAI,IAAI,CAAC;IAErF,YAAY,GAAG,GAAkB,EAAE;QACxC,IAAI,CAAC,aAAa,KAAK,CAAC,KAAK,IAAI,EAAE;YAC/B,IAAI,CAAC;gBACD,MAAM,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;YACjC,CAAC;oBAAS,CAAC;gBACP,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;YAC5B,CAAC;QACL,CAAC,CAAC,EAAE,CAAC;QACL,OAAO,IAAI,CAAC,aAAa,CAAC;IAC9B,CAAC,CAAC;IAEO,IAAI,GAAG,CAAI,SAAqB,EAAE,WAAmB,EAAE,MAAmB,EAAc,EAAE,CAC/F,kBAAkB,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;CAC5E"}
@@ -6,5 +6,6 @@ export declare class VerifiedAcpReadiness {
6
6
  readonly capabilities: SessionCapabilities;
7
7
  constructor(adapterVersion: string, capabilities: SessionCapabilities);
8
8
  }
9
+ /** Exercises the same adapter-owned connection used by sessions, with a bounded probe lifetime. */
9
10
  export declare function probeAcpReadiness(specification: LocalAgentSpecification, agent: AcpAgentDefinition, environment: Readonly<NodeJS.ProcessEnv>, defaultWorkspace: string, signal: AbortSignal): Promise<VerifiedAcpReadiness>;
10
11
  //# sourceMappingURL=acp-readiness-probe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"acp-readiness-probe.d.ts","sourceRoot":"","sources":["../../../src/agent/discovery/acp-readiness-probe.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAA+B,MAAM,qCAAqC,CAAC;AAU3G,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAMvF,qBAAa,oBAAoB;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC;IAE3C,YAAY,cAAc,EAAE,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAGpE;CACJ;AAkJD,wBAAsB,iBAAiB,CACnC,aAAa,EAAE,uBAAuB,EACtC,KAAK,EAAE,kBAAkB,EACzB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC,EACxC,gBAAgB,EAAE,MAAM,EACxB,MAAM,EAAE,WAAW,GACpB,OAAO,CAAC,oBAAoB,CAAC,CA4H/B"}
1
+ {"version":3,"file":"acp-readiness-probe.d.ts","sourceRoot":"","sources":["../../../src/agent/discovery/acp-readiness-probe.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAExE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAIvF,qBAAa,oBAAoB;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,YAAY,EAAE,mBAAmB,CAAC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