@1agents/acp-service 0.10.8 → 0.10.10
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/bin/a2a.js +12 -1
- package/dist/src/a2a/gateway.d.ts +268 -2
- package/dist/src/a2a/gateway.js +337 -25
- package/dist/src/a2a/job-directory.d.ts +5 -0
- package/dist/src/a2a/job-directory.js +15 -0
- package/dist/src/a2a/preflight.d.ts +38 -0
- package/dist/src/a2a/preflight.js +56 -8
- package/dist/src/a2a/types.d.ts +8 -0
- package/dist/src/execution/case-view.d.ts +109 -0
- package/dist/src/execution/case-view.js +125 -0
- package/dist/src/execution/cases.d.ts +56 -0
- package/dist/src/execution/cases.js +77 -0
- package/dist/src/execution/externals.d.ts +83 -0
- package/dist/src/execution/externals.js +61 -0
- package/dist/src/execution/handoff.d.ts +54 -1
- package/dist/src/execution/handoff.js +80 -15
- package/dist/src/execution/ledger.d.ts +35 -2
- package/dist/src/execution/ledger.js +72 -2
- package/dist/src/execution/snapshots.d.ts +28 -0
- package/dist/src/execution/snapshots.js +64 -0
- package/dist/src/execution/targets.d.ts +63 -0
- package/dist/src/execution/targets.js +15 -1
- package/dist/src/execution/workbench.d.ts +5 -1
- package/dist/src/execution/workbench.js +13 -4
- package/dist/workbench-ui/app.css +18 -0
- package/dist/workbench-ui/app.js +13 -13
- package/package.json +12 -13
- package/vendor/dsh/a2a-executor.d.ts +2 -2
- package/vendor/dsh/adapter.d.ts +4 -4
- package/vendor/dsh/cordis.patch.yml +6 -5
- package/vendor/dsh/handoff-executor.d.ts +7 -0
- package/vendor/dsh/handoff-executor.js +28 -0
- package/vendor/dsh/handoff-spec.d.ts +26 -0
- package/vendor/dsh/handoff-spec.js +14 -0
- package/vendor/dsh/handoff-tools.d.ts +4 -0
- package/vendor/dsh/handoff-tools.js +20 -0
- package/vendor/dsh/index.js +8 -0
- package/vendor/dsh/review-mcp.js +6 -2
- package/vendor/dsh/review.d.ts +3 -0
- package/vendor/dsh/review.js +19 -0
- package/vendor/dsh/service-process.d.ts +9 -1
- package/vendor/dsh/service-process.js +69 -3
- package/vendor/dsh/ticket-tools.d.ts +1 -1
- package/vendor/runtime/dist/{cli-DXmYwv3U.js → cli-BwanDcOo.js} +4 -4
- package/vendor/runtime/dist/{cli-DXmYwv3U.js.map → cli-BwanDcOo.js.map} +1 -1
- package/vendor/runtime/dist/cli.js +8 -8
- package/vendor/runtime/dist/{client-VQsqcIOJ.d.ts → client-C5zneoBs.d.ts} +3 -1
- package/vendor/runtime/dist/{client-VQsqcIOJ.d.ts.map → client-C5zneoBs.d.ts.map} +1 -1
- package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
- package/vendor/runtime/dist/docs-site/CLI.html +833 -0
- package/vendor/runtime/dist/docs-site/VISION.html +415 -0
- package/vendor/runtime/dist/docs-site/agents.html +391 -0
- package/vendor/runtime/dist/docs-site/compare.html +359 -0
- package/vendor/runtime/dist/docs-site/config.html +450 -0
- package/vendor/runtime/dist/docs-site/custom-agents.html +408 -0
- package/vendor/runtime/dist/docs-site/exit-codes.html +347 -0
- package/vendor/runtime/dist/docs-site/favicon.svg +21 -0
- package/vendor/runtime/dist/docs-site/flows.html +498 -0
- package/vendor/runtime/dist/docs-site/index.html +367 -0
- package/vendor/runtime/dist/docs-site/install.html +386 -0
- package/vendor/runtime/dist/docs-site/llms.txt +36 -0
- package/vendor/runtime/dist/docs-site/output-formats.html +407 -0
- package/vendor/runtime/dist/docs-site/permissions.html +422 -0
- package/vendor/runtime/dist/docs-site/prompting.html +460 -0
- package/vendor/runtime/dist/docs-site/quickstart.html +382 -0
- package/vendor/runtime/dist/docs-site/releasing.html +341 -0
- package/vendor/runtime/dist/docs-site/runtime-environment.html +329 -0
- package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +336 -0
- package/vendor/runtime/dist/docs-site/safe-errors.html +323 -0
- package/vendor/runtime/dist/docs-site/session-control.html +408 -0
- package/vendor/runtime/dist/docs-site/session-watch.html +354 -0
- package/vendor/runtime/dist/docs-site/sessions.html +488 -0
- package/vendor/runtime/dist/docs-site/shared-sessions.html +377 -0
- package/vendor/runtime/dist/{flows-DJ17ajbw.js → flows-CzLUHUTS.js} +4 -4
- package/vendor/runtime/dist/{flows-DJ17ajbw.js.map → flows-CzLUHUTS.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-PBfCgrdi.js → invocation-options-B6pIpdpR.js} +4 -4
- package/vendor/runtime/dist/{invocation-options-PBfCgrdi.js.map → invocation-options-B6pIpdpR.js.map} +1 -1
- package/vendor/runtime/dist/{ipc-BQQpcEdP.js → ipc-ivLtSAdL.js} +21 -3
- package/vendor/runtime/dist/ipc-ivLtSAdL.js.map +1 -0
- package/vendor/runtime/dist/{output-B3MDn7kv.js → output-BqKnXXb0.js} +3 -3
- package/vendor/runtime/dist/{output-B3MDn7kv.js.map → output-BqKnXXb0.js.map} +1 -1
- package/vendor/runtime/dist/{queue-owner-runtime-DXCVngwU.js → queue-owner-runtime-DXJND10J.js} +11 -2
- package/vendor/runtime/dist/queue-owner-runtime-DXJND10J.js.map +1 -0
- package/vendor/runtime/dist/runtime.d.ts +1 -1
- package/vendor/runtime/dist/runtime.d.ts.map +1 -1
- package/vendor/runtime/dist/runtime.js +3 -3
- package/vendor/runtime/dist/{session-watch-DURyCw31.js → session-watch-BHB3_PXm.js} +4 -4
- package/vendor/runtime/dist/{session-watch-DURyCw31.js.map → session-watch-BHB3_PXm.js.map} +1 -1
- package/vendor/runtime/dist/{watch-CIpoMaWD.js → watch-UjokHUfS.js} +2 -2
- package/vendor/runtime/dist/{watch-CIpoMaWD.js.map → watch-UjokHUfS.js.map} +1 -1
- package/vendor/runtime/dist/ipc-BQQpcEdP.js.map +0 -1
- package/vendor/runtime/dist/queue-owner-runtime-DXCVngwU.js.map +0 -1
package/dist/bin/a2a.js
CHANGED
|
@@ -21,7 +21,18 @@ Methods: remote_agent_preflight, remote_agent_spawn, remote_agent_get, remote_ag
|
|
|
21
21
|
remote_agent_cancel, remote_agent_close, remote_agent_sessions, remote_agent_list, remote_agent_inbox, remote_agent_ack,
|
|
22
22
|
session_bind, session_send, session_delivery_get, session_delivery_resolve,
|
|
23
23
|
execution_project_scan, execution_project_list,
|
|
24
|
-
execution_discovery_config_get, execution_discovery_config_update
|
|
24
|
+
execution_discovery_config_get, execution_discovery_config_update,
|
|
25
|
+
handoff_propose, handoff_decide, handoff_offer, handoff_space, handoff_get,
|
|
26
|
+
case_open, case_get
|
|
27
|
+
|
|
28
|
+
handoff_* records a ledger edge. It does not open the next job; after
|
|
29
|
+
handoff_decide accepts, call execution_submit with the returned handoffId.
|
|
30
|
+
There is no acp-service handoff subcommand.
|
|
31
|
+
|
|
32
|
+
case_open registers one thing; handoff_space, handoff_offer and a submit
|
|
33
|
+
that names a caseId may only reference a thing that already exists.
|
|
34
|
+
handoff_decide on this channel records a coach's decision only: a person
|
|
35
|
+
accepts or rejects on the workbench page.
|
|
25
36
|
|
|
26
37
|
Project discovery requires trusted gateway projectDiscovery configuration.
|
|
27
38
|
It defaults to manual; scan/list only cache role candidates, without registering
|
|
@@ -6,6 +6,7 @@ import { type CapacityInspection } from '../capacity.js';
|
|
|
6
6
|
import { TargetDirectory } from '../execution/targets.js';
|
|
7
7
|
import { ProjectRoleDiscovery } from '../execution/project-discovery.js';
|
|
8
8
|
import { JobLedger } from '../execution/ledger.js';
|
|
9
|
+
import { type Handoff } from '../execution/handoff.js';
|
|
9
10
|
import { type ProcessRequest } from '../execution/process-request.js';
|
|
10
11
|
import { type WorkbenchListQuery } from '../execution/workbench.js';
|
|
11
12
|
import { AgentRegistry } from '../execution/agent-registry.js';
|
|
@@ -97,6 +98,11 @@ declare const configSchema: z.ZodObject<{
|
|
|
97
98
|
token: z.ZodOptional<z.ZodString>;
|
|
98
99
|
reviewerId: z.ZodDefault<z.ZodString>;
|
|
99
100
|
reviewerName: z.ZodOptional<z.ZodString>;
|
|
101
|
+
gateReviewers: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
handoff: z.ZodOptional<z.ZodString>;
|
|
103
|
+
publish: z.ZodOptional<z.ZodString>;
|
|
104
|
+
acceptance: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strict>>;
|
|
100
106
|
publicBaseUrl: z.ZodOptional<z.ZodString>;
|
|
101
107
|
pageRelaySecret: z.ZodOptional<z.ZodString>;
|
|
102
108
|
allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -131,6 +137,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
131
137
|
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
132
138
|
moduleRoot: z.ZodOptional<z.ZodString>;
|
|
133
139
|
}, z.core.$strict>>;
|
|
140
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
name: z.ZodString;
|
|
142
|
+
image: z.ZodOptional<z.ZodString>;
|
|
143
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
144
|
+
bridge: "bridge";
|
|
145
|
+
none: "none";
|
|
146
|
+
}>>;
|
|
147
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
148
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
149
|
+
}, z.core.$strict>>;
|
|
134
150
|
cwd: z.ZodString;
|
|
135
151
|
remote: z.ZodString;
|
|
136
152
|
originSessionId: z.ZodString;
|
|
@@ -161,6 +177,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
161
177
|
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
162
178
|
moduleRoot: z.ZodOptional<z.ZodString>;
|
|
163
179
|
}, z.core.$strict>>;
|
|
180
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
image: z.ZodOptional<z.ZodString>;
|
|
183
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
184
|
+
bridge: "bridge";
|
|
185
|
+
none: "none";
|
|
186
|
+
}>>;
|
|
187
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
188
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
189
|
+
}, z.core.$strict>>;
|
|
164
190
|
}, z.core.$strict>>;
|
|
165
191
|
resultContract: z.ZodOptional<z.ZodObject<{
|
|
166
192
|
jobId: z.ZodString;
|
|
@@ -188,8 +214,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
188
214
|
person: "person";
|
|
189
215
|
coach: "coach";
|
|
190
216
|
}>;
|
|
217
|
+
id: z.ZodOptional<z.ZodString>;
|
|
191
218
|
agent: z.ZodOptional<z.ZodString>;
|
|
192
219
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
220
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
221
|
+
page: "page";
|
|
222
|
+
relay: "relay";
|
|
223
|
+
}>>;
|
|
193
224
|
}, z.core.$strict>>;
|
|
194
225
|
originSessionId: z.ZodString;
|
|
195
226
|
}, z.core.$strict>>;
|
|
@@ -219,8 +250,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
219
250
|
person: "person";
|
|
220
251
|
coach: "coach";
|
|
221
252
|
}>;
|
|
253
|
+
id: z.ZodOptional<z.ZodString>;
|
|
222
254
|
agent: z.ZodOptional<z.ZodString>;
|
|
223
255
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
256
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
257
|
+
page: "page";
|
|
258
|
+
relay: "relay";
|
|
259
|
+
}>>;
|
|
224
260
|
}, z.core.$strict>>;
|
|
225
261
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
226
262
|
roleId: z.ZodOptional<z.ZodString>;
|
|
@@ -239,6 +275,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
239
275
|
modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
276
|
moduleRoot: z.ZodOptional<z.ZodString>;
|
|
241
277
|
}, z.core.$strict>>;
|
|
278
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
name: z.ZodString;
|
|
280
|
+
image: z.ZodOptional<z.ZodString>;
|
|
281
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
282
|
+
bridge: "bridge";
|
|
283
|
+
none: "none";
|
|
284
|
+
}>>;
|
|
285
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
286
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
287
|
+
}, z.core.$strict>>;
|
|
242
288
|
}, z.core.$strict>>;
|
|
243
289
|
resultContract: z.ZodOptional<z.ZodObject<{
|
|
244
290
|
jobId: z.ZodString;
|
|
@@ -368,8 +414,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
368
414
|
person: "person";
|
|
369
415
|
coach: "coach";
|
|
370
416
|
}>;
|
|
417
|
+
id: z.ZodOptional<z.ZodString>;
|
|
371
418
|
agent: z.ZodOptional<z.ZodString>;
|
|
372
419
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
420
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
421
|
+
page: "page";
|
|
422
|
+
relay: "relay";
|
|
423
|
+
}>>;
|
|
373
424
|
}, z.core.$strict>;
|
|
374
425
|
}, z.core.$strict>>;
|
|
375
426
|
};
|
|
@@ -385,9 +436,20 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
385
436
|
when: z.ZodEnum<{
|
|
386
437
|
acceptance_accepted: "acceptance_accepted";
|
|
387
438
|
ticket_closed: "ticket_closed";
|
|
439
|
+
fact_reached: "fact_reached";
|
|
388
440
|
}>;
|
|
389
441
|
requireHuman: z.ZodOptional<z.ZodBoolean>;
|
|
390
442
|
clientRequestId: z.ZodOptional<z.ZodString>;
|
|
443
|
+
condition: z.ZodOptional<z.ZodObject<{
|
|
444
|
+
metric: z.ZodString;
|
|
445
|
+
operator: z.ZodEnum<{
|
|
446
|
+
gte: "gte";
|
|
447
|
+
lte: "lte";
|
|
448
|
+
gt: "gt";
|
|
449
|
+
lt: "lt";
|
|
450
|
+
}>;
|
|
451
|
+
value: z.ZodNumber;
|
|
452
|
+
}, z.core.$strict>>;
|
|
391
453
|
}, z.core.$strict>>;
|
|
392
454
|
};
|
|
393
455
|
handoff_space: {
|
|
@@ -598,8 +660,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
598
660
|
person: "person";
|
|
599
661
|
coach: "coach";
|
|
600
662
|
}>;
|
|
663
|
+
id: z.ZodOptional<z.ZodString>;
|
|
601
664
|
agent: z.ZodOptional<z.ZodString>;
|
|
602
665
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
666
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
667
|
+
page: "page";
|
|
668
|
+
relay: "relay";
|
|
669
|
+
}>>;
|
|
603
670
|
}, z.core.$strict>>;
|
|
604
671
|
originSessionId: z.ZodString;
|
|
605
672
|
}, z.core.$strict>>;
|
|
@@ -616,8 +683,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
616
683
|
person: "person";
|
|
617
684
|
coach: "coach";
|
|
618
685
|
}>;
|
|
686
|
+
id: z.ZodOptional<z.ZodString>;
|
|
619
687
|
agent: z.ZodOptional<z.ZodString>;
|
|
620
688
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
689
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
690
|
+
page: "page";
|
|
691
|
+
relay: "relay";
|
|
692
|
+
}>>;
|
|
621
693
|
}, z.core.$strict>>;
|
|
622
694
|
}, z.core.$strict>>;
|
|
623
695
|
};
|
|
@@ -674,8 +746,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
674
746
|
person: "person";
|
|
675
747
|
coach: "coach";
|
|
676
748
|
}>;
|
|
749
|
+
id: z.ZodOptional<z.ZodString>;
|
|
677
750
|
agent: z.ZodOptional<z.ZodString>;
|
|
678
751
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
752
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
753
|
+
page: "page";
|
|
754
|
+
relay: "relay";
|
|
755
|
+
}>>;
|
|
679
756
|
}, z.core.$strict>;
|
|
680
757
|
}, z.core.$strict>>;
|
|
681
758
|
};
|
|
@@ -722,8 +799,13 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
722
799
|
person: "person";
|
|
723
800
|
coach: "coach";
|
|
724
801
|
}>;
|
|
802
|
+
id: z.ZodOptional<z.ZodString>;
|
|
725
803
|
agent: z.ZodOptional<z.ZodString>;
|
|
726
804
|
sessionId: z.ZodOptional<z.ZodString>;
|
|
805
|
+
via: z.ZodOptional<z.ZodEnum<{
|
|
806
|
+
page: "page";
|
|
807
|
+
relay: "relay";
|
|
808
|
+
}>>;
|
|
727
809
|
}, z.core.$strict>>;
|
|
728
810
|
}, z.core.$strict>>;
|
|
729
811
|
};
|
|
@@ -740,6 +822,31 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
740
822
|
originSessionId: z.ZodString;
|
|
741
823
|
}, z.core.$strict>>;
|
|
742
824
|
};
|
|
825
|
+
case_open: {
|
|
826
|
+
description: string;
|
|
827
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
828
|
+
originSessionId: z.ZodString;
|
|
829
|
+
caseId: z.ZodOptional<z.ZodString>;
|
|
830
|
+
goal: z.ZodString;
|
|
831
|
+
title: z.ZodOptional<z.ZodString>;
|
|
832
|
+
createdBy: z.ZodOptional<z.ZodObject<{
|
|
833
|
+
kind: z.ZodEnum<{
|
|
834
|
+
person: "person";
|
|
835
|
+
coach: "coach";
|
|
836
|
+
}>;
|
|
837
|
+
id: z.ZodOptional<z.ZodString>;
|
|
838
|
+
agent: z.ZodOptional<z.ZodString>;
|
|
839
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
840
|
+
}, z.core.$strict>>;
|
|
841
|
+
}, z.core.$strict>>;
|
|
842
|
+
};
|
|
843
|
+
case_get: {
|
|
844
|
+
description: string;
|
|
845
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
846
|
+
originSessionId: z.ZodString;
|
|
847
|
+
caseId: z.ZodString;
|
|
848
|
+
}, z.core.$strict>>;
|
|
849
|
+
};
|
|
743
850
|
execution_project_scan: {
|
|
744
851
|
description: string;
|
|
745
852
|
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
|
|
@@ -862,6 +969,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
862
969
|
agentFile: z.ZodOptional<z.ZodString>;
|
|
863
970
|
provider: z.ZodOptional<z.ZodString>;
|
|
864
971
|
model: z.ZodOptional<z.ZodString>;
|
|
972
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
973
|
+
name: z.ZodString;
|
|
974
|
+
image: z.ZodOptional<z.ZodString>;
|
|
975
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
976
|
+
bridge: "bridge";
|
|
977
|
+
none: "none";
|
|
978
|
+
}>>;
|
|
979
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
980
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
981
|
+
}, z.core.$strict>>;
|
|
865
982
|
}, z.core.$strict>>;
|
|
866
983
|
}, z.core.$strict>>;
|
|
867
984
|
};
|
|
@@ -903,6 +1020,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
903
1020
|
agentFile: z.ZodOptional<z.ZodString>;
|
|
904
1021
|
provider: z.ZodOptional<z.ZodString>;
|
|
905
1022
|
model: z.ZodOptional<z.ZodString>;
|
|
1023
|
+
sandbox: z.ZodOptional<z.ZodObject<{
|
|
1024
|
+
name: z.ZodString;
|
|
1025
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1026
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
1027
|
+
bridge: "bridge";
|
|
1028
|
+
none: "none";
|
|
1029
|
+
}>>;
|
|
1030
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1031
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1032
|
+
}, z.core.$strict>>;
|
|
906
1033
|
}, z.core.$strict>>;
|
|
907
1034
|
}, z.core.$strict>;
|
|
908
1035
|
}, z.core.$strict>>;
|
|
@@ -952,6 +1079,16 @@ export declare const REMOTE_AGENT_METHODS: {
|
|
|
952
1079
|
agentFile: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
953
1080
|
provider: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
954
1081
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1082
|
+
sandbox: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
1083
|
+
name: z.ZodString;
|
|
1084
|
+
image: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
network: z.ZodDefault<z.ZodEnum<{
|
|
1086
|
+
bridge: "bridge";
|
|
1087
|
+
none: "none";
|
|
1088
|
+
}>>;
|
|
1089
|
+
writableRoots: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1090
|
+
env: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1091
|
+
}, z.core.$strict>>>;
|
|
955
1092
|
}, z.core.$strict>>;
|
|
956
1093
|
}, z.core.$strict>>;
|
|
957
1094
|
}, z.core.$strict>>;
|
|
@@ -982,6 +1119,7 @@ export declare class RemoteAgentGateway {
|
|
|
982
1119
|
readonly ledger: JobLedger;
|
|
983
1120
|
private readonly lease;
|
|
984
1121
|
private readonly stateFile;
|
|
1122
|
+
private readonly snapshots;
|
|
985
1123
|
private readonly state;
|
|
986
1124
|
private readonly clients;
|
|
987
1125
|
private readonly probeCards;
|
|
@@ -1013,6 +1151,13 @@ export declare class RemoteAgentGateway {
|
|
|
1013
1151
|
private developmentFor;
|
|
1014
1152
|
private targetSnapshot;
|
|
1015
1153
|
private ledgerView;
|
|
1154
|
+
/**
|
|
1155
|
+
* Freeze the bytes a handoff talks about. The files are copied into the gateway's snapshot store and addressed
|
|
1156
|
+
* by their digest, so a later round of the source job cannot change what an accepted handoff points at.
|
|
1157
|
+
*/
|
|
1158
|
+
private freezeHandoff;
|
|
1159
|
+
/** The verified bytes of one artifact: the local copy when it still matches, otherwise the host's own copy. */
|
|
1160
|
+
private artifactBytes;
|
|
1016
1161
|
private submitExecution;
|
|
1017
1162
|
private childView;
|
|
1018
1163
|
private advanceDelivery;
|
|
@@ -1037,8 +1182,16 @@ export declare class RemoteAgentGateway {
|
|
|
1037
1182
|
refreshWorkbenchTask(jobId: string): Promise<import("../execution/workbench.js").AcpTaskDetail>;
|
|
1038
1183
|
/** A person sends a failed task another round in its own session. */
|
|
1039
1184
|
continueWorkbenchTask(jobId: string, prompt: string): Promise<import("../execution/workbench.js").AcpTaskDetail>;
|
|
1040
|
-
/** A person marks the task's current result as read (已阅). */
|
|
1041
|
-
acceptWorkbenchTask(jobId: string, note?: string): import("../execution/workbench.js").AcpTaskDetail;
|
|
1185
|
+
/** A person marks the task's current result as read (已阅). This is the acceptance the conventions wait for. */
|
|
1186
|
+
acceptWorkbenchTask(jobId: string, note?: string, via?: 'page' | 'relay'): import("../execution/workbench.js").AcpTaskDetail;
|
|
1187
|
+
/**
|
|
1188
|
+
* Tell the person a decision was written in their name.
|
|
1189
|
+
*
|
|
1190
|
+
* The gateway cannot prove a click happened: a caller that runs as the same user can read the relay
|
|
1191
|
+
* secret and post the same request a page would. The banner is the check that does not depend on
|
|
1192
|
+
* that secret — if the person did not just decide this, they see it now instead of at review time.
|
|
1193
|
+
*/
|
|
1194
|
+
private noticeDecision;
|
|
1042
1195
|
workbenchArtifact(jobId: string, sha256: string): Promise<{
|
|
1043
1196
|
content: Buffer;
|
|
1044
1197
|
name: string;
|
|
@@ -1057,6 +1210,7 @@ export declare class RemoteAgentGateway {
|
|
|
1057
1210
|
private invokeMethod;
|
|
1058
1211
|
/** Push events are hints. GetTask remains authoritative, including after missed callbacks. */
|
|
1059
1212
|
receivePush(event: unknown): Promise<void>;
|
|
1213
|
+
private workbenchSource;
|
|
1060
1214
|
private workbenchProjection;
|
|
1061
1215
|
private workbench;
|
|
1062
1216
|
private writeProcessRequest;
|
|
@@ -1072,6 +1226,118 @@ export declare class RemoteAgentGateway {
|
|
|
1072
1226
|
offset: number;
|
|
1073
1227
|
limit: number;
|
|
1074
1228
|
};
|
|
1229
|
+
/** Who may decide each gate. A gate with nobody named belongs to the reviewer. */
|
|
1230
|
+
private gateReviewer;
|
|
1231
|
+
/** The gates and their people, so the page can show who may press which button. */
|
|
1232
|
+
private gateReviewers;
|
|
1233
|
+
/** One thing is the first screen of the workbench: the cases this scope can see. */
|
|
1234
|
+
workbenchCaseList(query?: {
|
|
1235
|
+
limit?: number;
|
|
1236
|
+
offset?: number;
|
|
1237
|
+
}): {
|
|
1238
|
+
items: import("../execution/case-view.js").WorkbenchCaseSummary[];
|
|
1239
|
+
offset: number;
|
|
1240
|
+
limit: number;
|
|
1241
|
+
origins: string[];
|
|
1242
|
+
reviewers: {
|
|
1243
|
+
handoff: string;
|
|
1244
|
+
publish: string;
|
|
1245
|
+
acceptance: string;
|
|
1246
|
+
};
|
|
1247
|
+
total: number;
|
|
1248
|
+
counts: {
|
|
1249
|
+
all: number;
|
|
1250
|
+
pending: number;
|
|
1251
|
+
};
|
|
1252
|
+
};
|
|
1253
|
+
private workbenchCaseDetails;
|
|
1254
|
+
/** One case, in the scope this page may see. */
|
|
1255
|
+
workbenchCase(caseId: string, originSessionId?: string): {
|
|
1256
|
+
reviewers: {
|
|
1257
|
+
handoff: string;
|
|
1258
|
+
publish: string;
|
|
1259
|
+
acceptance: string;
|
|
1260
|
+
};
|
|
1261
|
+
tasks: import("../execution/workbench.js").AcpTaskSummary[];
|
|
1262
|
+
edges: import("../execution/case-view.js").WorkbenchCaseEdge[];
|
|
1263
|
+
conventions: import("../execution/case-view.js").WorkbenchCaseConvention[];
|
|
1264
|
+
artifacts: import("../execution/case-view.js").WorkbenchCaseArtifact[];
|
|
1265
|
+
receipts: import("../execution/externals.js").CaseReceipt[];
|
|
1266
|
+
facts: import("../execution/externals.js").CaseFact[];
|
|
1267
|
+
inbox: import("../execution/case-view.js").WorkbenchInboxItem[];
|
|
1268
|
+
caseId: string;
|
|
1269
|
+
originSessionId: string;
|
|
1270
|
+
goal: string;
|
|
1271
|
+
title?: string;
|
|
1272
|
+
createdAt: string;
|
|
1273
|
+
createdBy?: import("../execution/ledger.js").LedgerActor;
|
|
1274
|
+
updatedAt: string;
|
|
1275
|
+
legacy?: boolean;
|
|
1276
|
+
taskCount: number;
|
|
1277
|
+
pendingCount: number;
|
|
1278
|
+
artifactSpace?: string;
|
|
1279
|
+
lastActivityAt: string;
|
|
1280
|
+
};
|
|
1281
|
+
/** Open a thing from the page. The page's reviewer is its creator. */
|
|
1282
|
+
openWorkbenchCase(input: unknown): Promise<import("../execution/cases.js").CaseRecord>;
|
|
1283
|
+
/** Register a convention on a case, from the page. It states what may follow; it dispatches nothing. */
|
|
1284
|
+
registerWorkbenchConvention(caseId: string, input: unknown): Promise<import("../execution/handoff.js").HandoffConvention>;
|
|
1285
|
+
/**
|
|
1286
|
+
* Accept or reject a handoff proposal. Only a person on the workbench page does this; the decision carries the
|
|
1287
|
+
* configured reviewer, and the bytes are frozen before the decision is written down.
|
|
1288
|
+
*/
|
|
1289
|
+
decideWorkbenchHandoff(caseId: string, handoffId: string, input: unknown, via?: 'page' | 'relay'): Promise<{
|
|
1290
|
+
handoff: Handoff;
|
|
1291
|
+
case: {
|
|
1292
|
+
reviewers: {
|
|
1293
|
+
handoff: string;
|
|
1294
|
+
publish: string;
|
|
1295
|
+
acceptance: string;
|
|
1296
|
+
};
|
|
1297
|
+
tasks: import("../execution/workbench.js").AcpTaskSummary[];
|
|
1298
|
+
edges: import("../execution/case-view.js").WorkbenchCaseEdge[];
|
|
1299
|
+
conventions: import("../execution/case-view.js").WorkbenchCaseConvention[];
|
|
1300
|
+
artifacts: import("../execution/case-view.js").WorkbenchCaseArtifact[];
|
|
1301
|
+
receipts: import("../execution/externals.js").CaseReceipt[];
|
|
1302
|
+
facts: import("../execution/externals.js").CaseFact[];
|
|
1303
|
+
inbox: import("../execution/case-view.js").WorkbenchInboxItem[];
|
|
1304
|
+
caseId: string;
|
|
1305
|
+
originSessionId: string;
|
|
1306
|
+
goal: string;
|
|
1307
|
+
title?: string;
|
|
1308
|
+
createdAt: string;
|
|
1309
|
+
createdBy?: import("../execution/ledger.js").LedgerActor;
|
|
1310
|
+
updatedAt: string;
|
|
1311
|
+
legacy?: boolean;
|
|
1312
|
+
taskCount: number;
|
|
1313
|
+
pendingCount: number;
|
|
1314
|
+
artifactSpace?: string;
|
|
1315
|
+
lastActivityAt: string;
|
|
1316
|
+
};
|
|
1317
|
+
}>;
|
|
1318
|
+
/** Record that these bytes went out through a channel. Only a caller holding a credential may write this. */
|
|
1319
|
+
recordWorkbenchReceipt(caseId: string, input: unknown, actor: {
|
|
1320
|
+
kind: 'person' | 'coach' | 'application';
|
|
1321
|
+
id?: string;
|
|
1322
|
+
agent?: string;
|
|
1323
|
+
}): Promise<import("../execution/externals.js").CaseReceipt>;
|
|
1324
|
+
/** Record a measured number. The gateway compares it with the case's thresholds and only proposes. */
|
|
1325
|
+
recordWorkbenchFact(caseId: string, input: unknown, actor: {
|
|
1326
|
+
kind: 'person' | 'coach' | 'application';
|
|
1327
|
+
id?: string;
|
|
1328
|
+
agent?: string;
|
|
1329
|
+
}): Promise<{
|
|
1330
|
+
fact: import("../execution/externals.js").CaseFact;
|
|
1331
|
+
proposals: Handoff[];
|
|
1332
|
+
}>;
|
|
1333
|
+
/** A threshold that has been reached proposes the next hop. It never decides it and never dispatches. */
|
|
1334
|
+
private factProposals;
|
|
1335
|
+
/** The frozen bytes of an accepted handoff. The digest is checked again on every read. */
|
|
1336
|
+
workbenchCaseArtifact(caseId: string, handoffId: string, digest: string): Promise<{
|
|
1337
|
+
mediaType?: string | undefined;
|
|
1338
|
+
content: Buffer<ArrayBufferLike>;
|
|
1339
|
+
name: string;
|
|
1340
|
+
}>;
|
|
1075
1341
|
workbenchAgents(): {
|
|
1076
1342
|
connections: {
|
|
1077
1343
|
connectionId: string;
|