@claudexor/acp-server 5.1.0 → 6.1.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.
|
@@ -4,13 +4,22 @@ import * as acp from "@agentclientprotocol/sdk";
|
|
|
4
4
|
* Choice and multi-select questions are asked inline (multi-select as one
|
|
5
5
|
* include/skip round per option); a title and option names cannot carry a
|
|
6
6
|
* question's header or its options' descriptions, so each prompt also carries
|
|
7
|
-
* them as tool-call text content
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
7
|
+
* them as tool-call text content, every option of the question in every round.
|
|
8
|
+
* ACP cannot collect free text. Every question left without an answer (free
|
|
9
|
+
* text, every option skipped, dismissed) is named in one turn-text message
|
|
10
|
+
* instead of being skipped silently: with nothing chosen no answer is sent and
|
|
11
|
+
* a blocking question set keeps the agent waiting, while an async one leaves
|
|
12
|
+
* the agent working with its question still open; once some questions are
|
|
13
|
+
* answered, the message says those answers will be submitted as a partial
|
|
14
|
+
* answer, which closes the whole set if the daemon accepts it. The message goes
|
|
15
|
+
* out before the caller submits, so it cannot report the outcome. `ctx.signal`
|
|
16
|
+
* (the question resolved elsewhere, the caller cancelled or the run ended)
|
|
17
|
+
* cancels the open permission request and ends the round without waiting for the
|
|
18
|
+
* client's reply: its open call closes as failed, nothing further is asked, and
|
|
19
|
+
* it returns no answer and sends no message. A permission
|
|
20
|
+
* request that fails otherwise answered nothing: its call is closed as failed,
|
|
21
|
+
* still showing the question and saying it stays open, and the round fails with
|
|
22
|
+
* that error (with the close's own error too, if the close could not be sent).
|
|
14
23
|
*/
|
|
15
24
|
export declare function requestInteractionAnswers(client: acp.AgentContext, sessionId: string, ctx: any, say: (text: string) => Promise<void>): Promise<any | null>;
|
|
16
25
|
//# sourceMappingURL=interaction-answers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-answers.d.ts","sourceRoot":"","sources":["../src/interaction-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAKhD
|
|
1
|
+
{"version":3,"file":"interaction-answers.d.ts","sourceRoot":"","sources":["../src/interaction-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,GAAG,CAAC,YAAY,EACxB,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GACnC,OAAO,CAAC,GAAG,GAAG,IAAI,CAAC,CA+FrB"}
|
|
@@ -4,21 +4,34 @@ import * as acp from "@agentclientprotocol/sdk";
|
|
|
4
4
|
* Choice and multi-select questions are asked inline (multi-select as one
|
|
5
5
|
* include/skip round per option); a title and option names cannot carry a
|
|
6
6
|
* question's header or its options' descriptions, so each prompt also carries
|
|
7
|
-
* them as tool-call text content
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
7
|
+
* them as tool-call text content, every option of the question in every round.
|
|
8
|
+
* ACP cannot collect free text. Every question left without an answer (free
|
|
9
|
+
* text, every option skipped, dismissed) is named in one turn-text message
|
|
10
|
+
* instead of being skipped silently: with nothing chosen no answer is sent and
|
|
11
|
+
* a blocking question set keeps the agent waiting, while an async one leaves
|
|
12
|
+
* the agent working with its question still open; once some questions are
|
|
13
|
+
* answered, the message says those answers will be submitted as a partial
|
|
14
|
+
* answer, which closes the whole set if the daemon accepts it. The message goes
|
|
15
|
+
* out before the caller submits, so it cannot report the outcome. `ctx.signal`
|
|
16
|
+
* (the question resolved elsewhere, the caller cancelled or the run ended)
|
|
17
|
+
* cancels the open permission request and ends the round without waiting for the
|
|
18
|
+
* client's reply: its open call closes as failed, nothing further is asked, and
|
|
19
|
+
* it returns no answer and sends no message. A permission
|
|
20
|
+
* request that fails otherwise answered nothing: its call is closed as failed,
|
|
21
|
+
* still showing the question and saying it stays open, and the round fails with
|
|
22
|
+
* that error (with the close's own error too, if the close could not be sent).
|
|
14
23
|
*/
|
|
15
24
|
export async function requestInteractionAnswers(client, sessionId, ctx, say) {
|
|
16
25
|
const request = ctx?.request;
|
|
17
26
|
const runId = typeof ctx?.run_id === "string" ? ctx.run_id : "";
|
|
27
|
+
const signal = ctx?.signal instanceof AbortSignal ? ctx.signal : undefined;
|
|
28
|
+
const isAsync = request?.delivery === "async";
|
|
18
29
|
const questions = Array.isArray(request?.questions) ? request.questions : [];
|
|
19
30
|
const answers = [];
|
|
20
31
|
const left = [];
|
|
21
32
|
for (const [index, question] of questions.entries()) {
|
|
33
|
+
if (signal?.aborted)
|
|
34
|
+
return null;
|
|
22
35
|
const rawOptions = Array.isArray(question?.options) ? question.options : [];
|
|
23
36
|
const options = rawOptions.map((option, optionIndex) => ({
|
|
24
37
|
optionId: `opt-${optionIndex + 1}`,
|
|
@@ -35,17 +48,21 @@ export async function requestInteractionAnswers(client, sessionId, ctx, say) {
|
|
|
35
48
|
});
|
|
36
49
|
continue;
|
|
37
50
|
}
|
|
38
|
-
const prompt = (toolCallId, toolTitle,
|
|
51
|
+
const prompt = (toolCallId, toolTitle, choices, answered) => ask(client, sessionId, runId, { toolCallId, title: toolTitle, content: questionContent(question, options, isAsync) }, choices, answered, signal);
|
|
39
52
|
const toolCallId = `${String(request?.interaction_id ?? "interaction")}:${String(question?.id ?? index)}`;
|
|
40
53
|
if (question?.multi_select === true) {
|
|
41
54
|
// One include/skip round per option, so the client can pick MORE THAN ONE
|
|
42
|
-
// label (a single requestPermission returns exactly one optionId).
|
|
55
|
+
// label (a single requestPermission returns exactly one optionId). Each
|
|
56
|
+
// round shows every option, so no choice is made without its siblings.
|
|
43
57
|
const selectedLabels = [];
|
|
44
58
|
for (const option of options) {
|
|
45
|
-
const include = await prompt(`${toolCallId}:${option.optionId}`, `${title} — include "${option.name}"?`, [
|
|
59
|
+
const include = await prompt(`${toolCallId}:${option.optionId}`, `${title} — include "${option.name}"?`, [
|
|
46
60
|
{ optionId: "include", name: `Include ${option.name}`, kind: "allow_once" },
|
|
47
61
|
{ optionId: "skip", name: `Skip ${option.name}`, kind: "reject_once" },
|
|
48
62
|
], () => true);
|
|
63
|
+
// Closed during this option: the rest of the round must not be asked.
|
|
64
|
+
if (signal?.aborted)
|
|
65
|
+
return null;
|
|
49
66
|
if (include === "include")
|
|
50
67
|
selectedLabels.push(option.name);
|
|
51
68
|
}
|
|
@@ -59,7 +76,7 @@ export async function requestInteractionAnswers(client, sessionId, ctx, say) {
|
|
|
59
76
|
});
|
|
60
77
|
continue;
|
|
61
78
|
}
|
|
62
|
-
const picked = await prompt(toolCallId, title, options
|
|
79
|
+
const picked = await prompt(toolCallId, title, options.map(({ optionId, name }) => ({ optionId, name, kind: "allow_once" })), (picked) => options.some((option) => option.optionId === picked));
|
|
63
80
|
const selected = options.find((option) => option.optionId === picked);
|
|
64
81
|
if (!selected)
|
|
65
82
|
left.push({ question: title, reason: "dismissed without a choice" });
|
|
@@ -70,59 +87,134 @@ export async function requestInteractionAnswers(client, sessionId, ctx, say) {
|
|
|
70
87
|
free_text: null,
|
|
71
88
|
});
|
|
72
89
|
}
|
|
90
|
+
// A closed round's question was resolved elsewhere or its run ended.
|
|
91
|
+
if (signal?.aborted)
|
|
92
|
+
return null;
|
|
73
93
|
if (left.length > 0)
|
|
74
|
-
await say(leftOutMessage(left, answers.length > 0, runId, ctx?.timeoutAt));
|
|
94
|
+
await say(leftOutMessage(left, answers.length > 0, runId, ctx?.timeoutAt, isAsync));
|
|
75
95
|
return answers.length > 0
|
|
76
96
|
? { interaction_id: String(request?.interaction_id ?? ""), answers }
|
|
77
97
|
: null;
|
|
78
98
|
}
|
|
79
99
|
/** One permission round as a pending tool call; the selected option id, if any.
|
|
80
|
-
* The tool call ends `completed` when `answered` accepts the pick
|
|
81
|
-
|
|
100
|
+
* The tool call ends `completed` when `answered` accepts the pick while the
|
|
101
|
+
* round is still open. A closed round opens no call and sends no request once
|
|
102
|
+
* it knows, and a call it did open ends `failed`. */
|
|
103
|
+
async function ask(client, sessionId, runId, call, options, answered, signal) {
|
|
104
|
+
if (signal?.aborted)
|
|
105
|
+
return null;
|
|
82
106
|
await client.notify(acp.methods.client.session.update, {
|
|
83
107
|
sessionId,
|
|
84
108
|
update: { sessionUpdate: "tool_call", ...call, kind: "other", status: "pending" },
|
|
85
109
|
});
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
110
|
+
let picked = null;
|
|
111
|
+
if (!signal?.aborted) {
|
|
112
|
+
try {
|
|
113
|
+
const response = await untilRoundCloses(client.request(acp.methods.client.session.requestPermission, { sessionId, toolCall: call, options }, signal ? { cancellationSignal: signal } : undefined), signal);
|
|
114
|
+
const outcome = response?.outcome;
|
|
115
|
+
picked = outcome?.outcome === "selected" ? outcome.optionId : null;
|
|
116
|
+
}
|
|
117
|
+
catch (error) {
|
|
118
|
+
// A cancelled request settles with the client's cancellation below. Any
|
|
119
|
+
// other failure answered nothing: close the call as failed where the
|
|
120
|
+
// connection still carries updates, then fail with the request's error,
|
|
121
|
+
// and with the close's too when that could not be sent either.
|
|
122
|
+
if (!signal?.aborted) {
|
|
123
|
+
try {
|
|
124
|
+
await client.notify(acp.methods.client.session.update, {
|
|
125
|
+
sessionId,
|
|
126
|
+
update: {
|
|
127
|
+
sessionUpdate: "tool_call_update",
|
|
128
|
+
toolCallId: call.toolCallId,
|
|
129
|
+
status: "failed",
|
|
130
|
+
content: [...call.content, textContent(failedPromptText(runId, error))],
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
catch (closeError) {
|
|
135
|
+
throw new AggregateError([error, closeError], `permission request failed (${errorText(error)}) and its prompt could not be closed (${errorText(closeError)})`);
|
|
136
|
+
}
|
|
137
|
+
throw error;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
// A pick that crossed the cancellation is dropped with the round, so the call
|
|
142
|
+
// cannot claim it was answered.
|
|
143
|
+
const roundClosed = signal?.aborted === true;
|
|
93
144
|
await client.notify(acp.methods.client.session.update, {
|
|
94
145
|
sessionId,
|
|
95
146
|
update: {
|
|
96
147
|
sessionUpdate: "tool_call_update",
|
|
97
148
|
toolCallId: call.toolCallId,
|
|
98
|
-
status: answered(picked) ? "completed" : "failed",
|
|
149
|
+
status: !roundClosed && answered(picked) ? "completed" : "failed",
|
|
99
150
|
},
|
|
100
151
|
});
|
|
101
152
|
return picked;
|
|
102
153
|
}
|
|
103
|
-
/** The
|
|
104
|
-
*
|
|
105
|
-
function
|
|
154
|
+
/** The SDK's cancellation only sends `$/cancel_request`: the request stays open
|
|
155
|
+
* until the client replies, and a client may never reply to a stale prompt. */
|
|
156
|
+
function untilRoundCloses(request, signal) {
|
|
157
|
+
if (!signal)
|
|
158
|
+
return request;
|
|
159
|
+
return new Promise((resolve, reject) => {
|
|
160
|
+
const closed = () => resolve(null);
|
|
161
|
+
if (signal.aborted)
|
|
162
|
+
closed();
|
|
163
|
+
else
|
|
164
|
+
signal.addEventListener("abort", closed, { once: true });
|
|
165
|
+
const settled = () => signal.removeEventListener("abort", closed);
|
|
166
|
+
request.then((value) => {
|
|
167
|
+
settled();
|
|
168
|
+
resolve(value);
|
|
169
|
+
}, (error) => {
|
|
170
|
+
settled();
|
|
171
|
+
reject(error);
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/** The question in full as text: its header, its text and every option with
|
|
176
|
+
* its description; an async question also says the agent keeps working. */
|
|
177
|
+
function questionContent(question, options, isAsync = false) {
|
|
106
178
|
const lines = [];
|
|
179
|
+
if (isAsync)
|
|
180
|
+
lines.push("The agent keeps working while you answer.", "");
|
|
107
181
|
if (typeof question?.header === "string" && question.header)
|
|
108
182
|
lines.push(question.header, "");
|
|
109
183
|
lines.push(String(question?.question ?? ""), "");
|
|
110
184
|
for (const option of options)
|
|
111
185
|
lines.push(`- ${option.name}${option.description ? `: ${option.description}` : ""}`);
|
|
112
|
-
return [
|
|
186
|
+
return [textContent(lines.join("\n"))];
|
|
113
187
|
}
|
|
114
|
-
function
|
|
115
|
-
|
|
188
|
+
function textContent(text) {
|
|
189
|
+
return { type: "content", content: { type: "text", text } };
|
|
190
|
+
}
|
|
191
|
+
function errorText(error) {
|
|
192
|
+
return error instanceof Error ? error.message : String(error);
|
|
193
|
+
}
|
|
194
|
+
/** Where a question this surface could not settle can still be answered. */
|
|
195
|
+
function answerElsewhere(runId) {
|
|
116
196
|
const follow = runId ? `\`claudexor follow ${runId}\`` : "`claudexor follow <run>`";
|
|
117
|
-
|
|
197
|
+
return `${follow} or POST /v2/runs/:id/interactions/:id/answer`;
|
|
198
|
+
}
|
|
199
|
+
/** The closing text of a prompt whose permission request failed. */
|
|
200
|
+
function failedPromptText(runId, error) {
|
|
201
|
+
return `This question could not be asked here: the permission request failed (${errorText(error)}). Nothing was answered or declined, and it stays open: answer it with ${answerElsewhere(runId)}.`;
|
|
202
|
+
}
|
|
203
|
+
function leftOutMessage(left, partial, runId, timeoutAt, isAsync) {
|
|
204
|
+
const list = left.map((item, i) => `${i + 1}. ${item.question} (${item.reason})`).join("\n");
|
|
205
|
+
const elsewhere = answerElsewhere(runId);
|
|
118
206
|
const expiry = typeof timeoutAt === "string"
|
|
119
|
-
?
|
|
207
|
+
? isAsync
|
|
208
|
+
? ` If nobody answers by ${timeoutAt}, it closes and nothing is sent to the agent.`
|
|
209
|
+
: ` If nobody answers by ${timeoutAt}, it is declined automatically and the model continues with stated assumptions.`
|
|
120
210
|
: timeoutAt === null
|
|
121
211
|
? " It has no automatic expiry."
|
|
122
212
|
: "";
|
|
123
213
|
// Said before the answer is submitted, so it states the effect conditionally.
|
|
124
214
|
if (partial)
|
|
125
|
-
return `The chosen answers will now be submitted as a partial answer. Once it is accepted, it closes this question set, and these question(s) can no longer be answered in this run:\n\n${list}\n\nUntil then the set stays pending and can be answered with ${
|
|
126
|
-
|
|
215
|
+
return `The chosen answers will now be submitted as a partial answer. Once it is accepted, it closes this question set, and these question(s) can no longer be answered in this run:\n\n${list}\n\nUntil then the set stays pending and can be answered with ${elsewhere}.${expiry}`;
|
|
216
|
+
if (isAsync)
|
|
217
|
+
return `No answer was sent. The agent keeps working, and its question(s) stay open:\n\n${list}\n\nAnswer them with ${elsewhere} (ACP presents choices only).${expiry}`;
|
|
218
|
+
return `No answer was sent, so this run stays paused on its question(s):\n\n${list}\n\nAnswer them with ${elsewhere} (ACP presents choices only).${expiry}`;
|
|
127
219
|
}
|
|
128
220
|
//# sourceMappingURL=interaction-answers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interaction-answers.js","sourceRoot":"","sources":["../src/interaction-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAKhD
|
|
1
|
+
{"version":3,"file":"interaction-answers.js","sourceRoot":"","sources":["../src/interaction-answers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,0BAA0B,CAAC;AAKhD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,MAAwB,EACxB,SAAiB,EACjB,GAAQ,EACR,GAAoC;IAEpC,MAAM,OAAO,GAAG,GAAG,EAAE,OAAO,CAAC;IAC7B,MAAM,KAAK,GAAG,OAAO,GAAG,EAAE,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC;IAChE,MAAM,MAAM,GACV,GAAG,EAAE,MAAM,YAAY,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,MAAM,O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ClB,OAAgB;IAEhB,MAAM,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,QAAQ,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7F,MAAM,SAAS,GAAG,eAAe,CAAC,KAAK,CAAC,CAAC;IACzC,MAAM,MAAM,GACV,OAAO,SAAS,KAAK,QAAQ;QAC3B,CAAC,CAAC,OAAO;YACP,CAAC,CAAC,yBAAyB,SAAS,+CAA+C;YACnF,CAAC,CAAC,yBAAyB,SAAS,iFAAiF;QACvH,CAAC,CAAC,SAAS,KAAK,IAAI;YAClB,CAAC,CAAC,8BAA8B;YAChC,CAAC,CAAC,EAAE,CAAC;IACX,8EAA8E;IAC9E,IAAI,OAAO;QACT,OAAO,mLAAmL,IAAI,iEAAiE,SAAS,IAAI,MAAM,EAAE,CAAC;IACvR,IAAI,OAAO;QACT,OAAO,kFAAkF,IAAI,wBAAwB,SAAS,gCAAgC,MAAM,EAAE,CAAC;IACzK,OAAO,uEAAuE,IAAI,wBAAwB,SAAS,gCAAgC,MAAM,EAAE,CAAC;AAC9J,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudexor/acp-server",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.1.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Official-SDK ACP projection over daemon-owned Claudexor threads and runs.",
|
|
6
6
|
"type": "module",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@agentclientprotocol/sdk": "1.5.1",
|
|
20
|
-
"@claudexor/
|
|
21
|
-
"@claudexor/
|
|
20
|
+
"@claudexor/schema": "6.1.1",
|
|
21
|
+
"@claudexor/util": "6.1.1"
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|