@hyperdrive.bot/fleet-client 0.3.212 → 0.3.214
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/daemon-client.d.ts +6 -1
- package/dist/daemon-client.js +7 -1
- package/package.json +3 -3
package/dist/daemon-client.d.ts
CHANGED
|
@@ -1245,8 +1245,13 @@ export declare class DaemonClient {
|
|
|
1245
1245
|
/**
|
|
1246
1246
|
* Answer a decision the agent parked on its digest. `optionId: null` with a
|
|
1247
1247
|
* note is a free-text answer — an option the agent did not list.
|
|
1248
|
+
*
|
|
1249
|
+
* Pass the `revision` of the decision you showed the user. The daemon refuses
|
|
1250
|
+
* the answer if the agent reworded the decision since, instead of recording a
|
|
1251
|
+
* choice against text the user never read. Appended after `requestId` so
|
|
1252
|
+
* existing positional callers keep working.
|
|
1248
1253
|
*/
|
|
1249
|
-
answerAgentDecision(agentId: string, decisionId: string, optionId: string | null, note: string | null, requestId?: string): Promise<{
|
|
1254
|
+
answerAgentDecision(agentId: string, decisionId: string, optionId: string | null, note: string | null, requestId?: string, revision?: string | null): Promise<{
|
|
1250
1255
|
decision: PendingDecision | null;
|
|
1251
1256
|
}>;
|
|
1252
1257
|
/**
|
package/dist/daemon-client.js
CHANGED
|
@@ -2160,8 +2160,13 @@ export class DaemonClient {
|
|
|
2160
2160
|
/**
|
|
2161
2161
|
* Answer a decision the agent parked on its digest. `optionId: null` with a
|
|
2162
2162
|
* note is a free-text answer — an option the agent did not list.
|
|
2163
|
+
*
|
|
2164
|
+
* Pass the `revision` of the decision you showed the user. The daemon refuses
|
|
2165
|
+
* the answer if the agent reworded the decision since, instead of recording a
|
|
2166
|
+
* choice against text the user never read. Appended after `requestId` so
|
|
2167
|
+
* existing positional callers keep working.
|
|
2163
2168
|
*/
|
|
2164
|
-
async answerAgentDecision(agentId, decisionId, optionId, note, requestId) {
|
|
2169
|
+
async answerAgentDecision(agentId, decisionId, optionId, note, requestId, revision) {
|
|
2165
2170
|
const payload = await this.sendCorrelatedSessionRequest({
|
|
2166
2171
|
requestId,
|
|
2167
2172
|
message: {
|
|
@@ -2170,6 +2175,7 @@ export class DaemonClient {
|
|
|
2170
2175
|
decisionId,
|
|
2171
2176
|
optionId,
|
|
2172
2177
|
note,
|
|
2178
|
+
...(revision ? { revision } : {}),
|
|
2173
2179
|
},
|
|
2174
2180
|
responseType: "agent.decision.answer.response",
|
|
2175
2181
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperdrive.bot/fleet-client",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.214",
|
|
4
4
|
"description": "Paseo client SDK package",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"test": "vitest run"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@hyperdrive.bot/fleet-protocol": "0.3.
|
|
38
|
-
"@hyperdrive.bot/fleet-relay": "0.3.
|
|
37
|
+
"@hyperdrive.bot/fleet-protocol": "0.3.214",
|
|
38
|
+
"@hyperdrive.bot/fleet-relay": "0.3.214",
|
|
39
39
|
"zod": "^4.4.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|