@1agents/acp-service 0.8.1 → 0.8.3

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 (103) hide show
  1. package/README.md +37 -2
  2. package/dist/bin/a2a.js +3 -2
  3. package/dist/src/a2a/executor.d.ts +2 -0
  4. package/dist/src/a2a/executor.js +63 -10
  5. package/dist/src/a2a/gateway.d.ts +407 -14
  6. package/dist/src/a2a/gateway.js +719 -37
  7. package/dist/src/a2a/index.d.ts +8 -1
  8. package/dist/src/a2a/index.js +4 -0
  9. package/dist/src/a2a/notices.d.ts +24 -0
  10. package/dist/src/a2a/notices.js +56 -0
  11. package/dist/src/a2a/preflight.d.ts +52 -0
  12. package/dist/src/a2a/preflight.js +153 -0
  13. package/dist/src/a2a/result-metadata.d.ts +59 -0
  14. package/dist/src/a2a/result-metadata.js +156 -0
  15. package/dist/src/a2a/server.js +30 -0
  16. package/dist/src/a2a/session-delivery.d.ts +69 -0
  17. package/dist/src/a2a/session-delivery.js +260 -0
  18. package/dist/src/a2a/session-hosts.d.ts +34 -0
  19. package/dist/src/a2a/session-hosts.js +211 -0
  20. package/dist/src/a2a/store.js +3 -1
  21. package/dist/src/a2a/types.d.ts +33 -0
  22. package/dist/src/execution/delivery-progress.d.ts +108 -0
  23. package/dist/src/execution/delivery-progress.js +57 -0
  24. package/dist/src/execution/ledger.d.ts +235 -0
  25. package/dist/src/execution/ledger.js +396 -0
  26. package/dist/src/execution/ppt-delivery.d.ts +231 -0
  27. package/dist/src/execution/ppt-delivery.js +625 -0
  28. package/dist/src/execution/targets.d.ts +349 -0
  29. package/dist/src/execution/targets.js +428 -0
  30. package/package.json +11 -12
  31. package/skills/acp-service/SKILL.md +9 -2
  32. package/skills/acp-service/references/a2a.md +72 -4
  33. package/vendor/dsh/a2a-executor.d.ts +2 -1
  34. package/vendor/dsh/a2a-executor.js +28 -1
  35. package/vendor/dsh/a2a.js +1 -0
  36. package/vendor/dsh/client.js +95 -27
  37. package/vendor/runtime/dist/{agent-registry-CMg8LHKY.js → agent-registry-R7A3MSpr.js} +9 -1
  38. package/vendor/runtime/dist/agent-registry-R7A3MSpr.js.map +1 -0
  39. package/vendor/runtime/dist/agent-registry.d.ts +1 -0
  40. package/vendor/runtime/dist/agent-registry.d.ts.map +1 -1
  41. package/vendor/runtime/dist/agent-registry.js +1 -2
  42. package/vendor/runtime/dist/{cli-Bdzplbpj.js → cli-DeOpE2Xz.js} +4 -4
  43. package/vendor/runtime/dist/{cli-Bdzplbpj.js.map → cli-DeOpE2Xz.js.map} +1 -1
  44. package/vendor/runtime/dist/cli.d.ts +2 -1
  45. package/vendor/runtime/dist/cli.js +10 -10
  46. package/vendor/runtime/dist/cli.js.map +1 -1
  47. package/vendor/runtime/dist/{client-BXOiB0ND.d.ts → client-VQsqcIOJ.d.ts} +2 -2
  48. package/vendor/runtime/dist/{client-BXOiB0ND.d.ts.map → client-VQsqcIOJ.d.ts.map} +1 -1
  49. package/vendor/runtime/dist/docs-site/.nojekyll +0 -0
  50. package/vendor/runtime/dist/docs-site/CLI.html +833 -0
  51. package/vendor/runtime/dist/docs-site/VISION.html +415 -0
  52. package/vendor/runtime/dist/docs-site/agents.html +391 -0
  53. package/vendor/runtime/dist/docs-site/compare.html +359 -0
  54. package/vendor/runtime/dist/docs-site/config.html +450 -0
  55. package/vendor/runtime/dist/docs-site/custom-agents.html +408 -0
  56. package/vendor/runtime/dist/docs-site/exit-codes.html +347 -0
  57. package/vendor/runtime/dist/docs-site/favicon.svg +21 -0
  58. package/vendor/runtime/dist/docs-site/flows.html +498 -0
  59. package/vendor/runtime/dist/docs-site/index.html +367 -0
  60. package/vendor/runtime/dist/docs-site/install.html +386 -0
  61. package/vendor/runtime/dist/docs-site/llms.txt +36 -0
  62. package/vendor/runtime/dist/docs-site/output-formats.html +407 -0
  63. package/vendor/runtime/dist/docs-site/permissions.html +422 -0
  64. package/vendor/runtime/dist/docs-site/prompting.html +460 -0
  65. package/vendor/runtime/dist/docs-site/quickstart.html +382 -0
  66. package/vendor/runtime/dist/docs-site/releasing.html +341 -0
  67. package/vendor/runtime/dist/docs-site/runtime-environment.html +329 -0
  68. package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +335 -0
  69. package/vendor/runtime/dist/docs-site/safe-errors.html +323 -0
  70. package/vendor/runtime/dist/docs-site/session-control.html +408 -0
  71. package/vendor/runtime/dist/docs-site/session-watch.html +354 -0
  72. package/vendor/runtime/dist/docs-site/sessions.html +488 -0
  73. package/vendor/runtime/dist/docs-site/shared-sessions.html +377 -0
  74. package/vendor/runtime/dist/{flows-BKlAuzM8.js → flows-oaBGn31w.js} +5 -5
  75. package/vendor/runtime/dist/{flows-BKlAuzM8.js.map → flows-oaBGn31w.js.map} +1 -1
  76. package/vendor/runtime/dist/flows.d.ts +2 -2
  77. package/vendor/runtime/dist/flows.d.ts.map +1 -1
  78. package/vendor/runtime/dist/flows.js +1 -2
  79. package/vendor/runtime/dist/{invocation-options-DMy77sEU.js → invocation-options-CUDEE8vW.js} +5 -5
  80. package/vendor/runtime/dist/{invocation-options-DMy77sEU.js.map → invocation-options-CUDEE8vW.js.map} +1 -1
  81. package/vendor/runtime/dist/{ipc-CLv2iL89.js → ipc-BQQpcEdP.js} +98 -20
  82. package/vendor/runtime/dist/ipc-BQQpcEdP.js.map +1 -0
  83. package/vendor/runtime/dist/{output-I-t-v55D.js → output-CFv3jcOQ.js} +86 -22
  84. package/vendor/runtime/dist/output-CFv3jcOQ.js.map +1 -0
  85. package/vendor/runtime/dist/{queue-owner-runtime-RN3uSid0.js → queue-owner-runtime-DvMJiGbP.js} +86 -27
  86. package/vendor/runtime/dist/queue-owner-runtime-DvMJiGbP.js.map +1 -0
  87. package/vendor/runtime/dist/runtime.d.ts +5 -2
  88. package/vendor/runtime/dist/runtime.d.ts.map +1 -1
  89. package/vendor/runtime/dist/runtime.js +77 -29
  90. package/vendor/runtime/dist/runtime.js.map +1 -1
  91. package/vendor/runtime/dist/{session-options-DNnDfiUt.d.ts → session-options-NjpFwf-c.d.ts} +5 -1
  92. package/vendor/runtime/dist/session-options-NjpFwf-c.d.ts.map +1 -0
  93. package/vendor/runtime/dist/{session-watch-CmHbH0jS.js → session-watch-Di-wIdCH.js} +4 -4
  94. package/vendor/runtime/dist/{session-watch-CmHbH0jS.js.map → session-watch-Di-wIdCH.js.map} +1 -1
  95. package/vendor/runtime/dist/{watch-BE-kKa7o.js → watch-CIpoMaWD.js} +2 -2
  96. package/vendor/runtime/dist/{watch-BE-kKa7o.js.map → watch-CIpoMaWD.js.map} +1 -1
  97. package/vendor/runtime/package.json +1 -1
  98. package/vendor/runtime/skills/acpx/SKILL.md +7 -2
  99. package/vendor/runtime/dist/agent-registry-CMg8LHKY.js.map +0 -1
  100. package/vendor/runtime/dist/ipc-CLv2iL89.js.map +0 -1
  101. package/vendor/runtime/dist/output-I-t-v55D.js.map +0 -1
  102. package/vendor/runtime/dist/queue-owner-runtime-RN3uSid0.js.map +0 -1
  103. package/vendor/runtime/dist/session-options-DNnDfiUt.d.ts.map +0 -1
@@ -1,5 +1,9 @@
1
1
  import { z } from 'zod';
2
2
  import { A2AAutomation } from './automation.js';
3
+ import { SessionDelivery } from './session-delivery.js';
4
+ import { TargetDirectory } from '../execution/targets.js';
5
+ import { JobLedger } from '../execution/ledger.js';
6
+ export type { RemoteAgentNotice } from './notices.js';
3
7
  declare const configSchema: z.ZodObject<{
4
8
  stateDirectory: z.ZodString;
5
9
  port: z.ZodDefault<z.ZodNumber>;
@@ -17,6 +21,19 @@ declare const configSchema: z.ZodObject<{
17
21
  url: z.ZodString;
18
22
  token: z.ZodString;
19
23
  }, z.core.$strict>>>;
24
+ sessionHosts: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ kind: z.ZodLiteral<"codex">;
26
+ executable: z.ZodDefault<z.ZodString>;
27
+ remote: z.ZodOptional<z.ZodString>;
28
+ remoteAuthTokenEnv: z.ZodOptional<z.ZodString>;
29
+ cwd: z.ZodOptional<z.ZodString>;
30
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
31
+ }, z.core.$strict>, z.ZodObject<{
32
+ kind: z.ZodLiteral<"dsh">;
33
+ url: z.ZodString;
34
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
36
+ }, z.core.$strict>], "kind">>>;
20
37
  automation: z.ZodOptional<z.ZodObject<{
21
38
  host: z.ZodDefault<z.ZodString>;
22
39
  port: z.ZodDefault<z.ZodNumber>;
@@ -30,10 +47,56 @@ declare const configSchema: z.ZodObject<{
30
47
  processingLeaseMs: z.ZodDefault<z.ZodNumber>;
31
48
  }, z.core.$strict>>;
32
49
  pollIntervalMs: z.ZodDefault<z.ZodNumber>;
50
+ pptDelivery: z.ZodOptional<z.ZodObject<{
51
+ version: z.ZodDefault<z.ZodString>;
52
+ workspaceRoot: z.ZodString;
53
+ publicDirectory: z.ZodString;
54
+ publicBaseUrl: z.ZodString;
55
+ allowedProjectRoots: z.ZodArray<z.ZodString>;
56
+ summaryTargetId: z.ZodString;
57
+ makerTargetId: z.ZodString;
58
+ reviewTargetId: z.ZodString;
59
+ summaryAgentPreset: z.ZodDefault<z.ZodString>;
60
+ backupTargets: z.ZodOptional<z.ZodObject<{
61
+ project_script: z.ZodOptional<z.ZodString>;
62
+ ppt_production: z.ZodOptional<z.ZodString>;
63
+ independent_review: z.ZodOptional<z.ZodString>;
64
+ }, z.core.$strict>>;
65
+ maxTargetSwitches: z.ZodDefault<z.ZodNumber>;
66
+ runtimeDocument: z.ZodString;
67
+ designSkill: z.ZodString;
68
+ pythonExecutable: z.ZodString;
69
+ nodeExecutable: z.ZodOptional<z.ZodString>;
70
+ nodeModuleRoot: z.ZodOptional<z.ZodString>;
71
+ maxRevisionRounds: z.ZodDefault<z.ZodNumber>;
72
+ maxExecutionRetries: z.ZodDefault<z.ZodNumber>;
73
+ maxDurationMs: z.ZodDefault<z.ZodNumber>;
74
+ httpTimeoutMs: z.ZodDefault<z.ZodNumber>;
75
+ }, z.core.$strict>>;
33
76
  }, z.core.$strict>;
34
77
  export type A2AGatewayConfig = z.input<typeof configSchema>;
35
78
  type Config = z.output<typeof configSchema>;
36
79
  export declare const REMOTE_AGENT_METHODS: {
80
+ remote_agent_preflight: {
81
+ description: string;
82
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
83
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
84
+ jobDirectory: z.ZodOptional<z.ZodString>;
85
+ requiredFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
86
+ python: z.ZodOptional<z.ZodObject<{
87
+ executable: z.ZodString;
88
+ modules: z.ZodArray<z.ZodString>;
89
+ }, z.core.$strict>>;
90
+ node: z.ZodOptional<z.ZodObject<{
91
+ executable: z.ZodString;
92
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
93
+ moduleRoot: z.ZodOptional<z.ZodString>;
94
+ }, z.core.$strict>>;
95
+ cwd: z.ZodString;
96
+ remote: z.ZodString;
97
+ originSessionId: z.ZodString;
98
+ }, z.core.$strict>>;
99
+ };
37
100
  remote_agent_spawn: {
38
101
  description: string;
39
102
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
@@ -43,6 +106,28 @@ export declare const REMOTE_AGENT_METHODS: {
43
106
  agentPreset: z.ZodOptional<z.ZodString>;
44
107
  notificationTarget: z.ZodOptional<z.ZodString>;
45
108
  title: z.ZodOptional<z.ZodString>;
109
+ preflight: z.ZodOptional<z.ZodObject<{
110
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
+ jobDirectory: z.ZodOptional<z.ZodString>;
112
+ requiredFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
113
+ python: z.ZodOptional<z.ZodObject<{
114
+ executable: z.ZodString;
115
+ modules: z.ZodArray<z.ZodString>;
116
+ }, z.core.$strict>>;
117
+ node: z.ZodOptional<z.ZodObject<{
118
+ executable: z.ZodString;
119
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
120
+ moduleRoot: z.ZodOptional<z.ZodString>;
121
+ }, z.core.$strict>>;
122
+ }, z.core.$strict>>;
123
+ resultContract: z.ZodOptional<z.ZodObject<{
124
+ jobId: z.ZodString;
125
+ parentTaskId: z.ZodOptional<z.ZodString>;
126
+ parentSessionId: z.ZodOptional<z.ZodString>;
127
+ originSessionId: z.ZodOptional<z.ZodString>;
128
+ artifactManifestPath: z.ZodOptional<z.ZodString>;
129
+ }, z.core.$strict>>;
130
+ clientRequestId: z.ZodOptional<z.ZodString>;
46
131
  originSessionId: z.ZodString;
47
132
  }, z.core.$strict>>;
48
133
  };
@@ -66,6 +151,28 @@ export declare const REMOTE_AGENT_METHODS: {
66
151
  description: string;
67
152
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
68
153
  prompt: z.ZodString;
154
+ clientRequestId: z.ZodOptional<z.ZodString>;
155
+ preflight: z.ZodOptional<z.ZodObject<{
156
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
+ jobDirectory: z.ZodOptional<z.ZodString>;
158
+ requiredFiles: z.ZodOptional<z.ZodArray<z.ZodString>>;
159
+ python: z.ZodOptional<z.ZodObject<{
160
+ executable: z.ZodString;
161
+ modules: z.ZodArray<z.ZodString>;
162
+ }, z.core.$strict>>;
163
+ node: z.ZodOptional<z.ZodObject<{
164
+ executable: z.ZodString;
165
+ modules: z.ZodOptional<z.ZodArray<z.ZodString>>;
166
+ moduleRoot: z.ZodOptional<z.ZodString>;
167
+ }, z.core.$strict>>;
168
+ }, z.core.$strict>>;
169
+ resultContract: z.ZodOptional<z.ZodObject<{
170
+ jobId: z.ZodString;
171
+ parentTaskId: z.ZodOptional<z.ZodString>;
172
+ parentSessionId: z.ZodOptional<z.ZodString>;
173
+ originSessionId: z.ZodOptional<z.ZodString>;
174
+ artifactManifestPath: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strict>>;
69
176
  remote: z.ZodString;
70
177
  taskId: z.ZodString;
71
178
  originSessionId: z.ZodString;
@@ -90,38 +197,325 @@ export declare const REMOTE_AGENT_METHODS: {
90
197
  originSessionId: z.ZodString;
91
198
  }, z.core.$strict>>;
92
199
  };
200
+ session_bind: {
201
+ description: string;
202
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
203
+ originSessionId: z.ZodString;
204
+ host: z.ZodString;
205
+ sessionId: z.ZodString;
206
+ }, z.core.$strict>>;
207
+ };
208
+ session_send: {
209
+ description: string;
210
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
211
+ originSessionId: z.ZodString;
212
+ messageId: z.ZodString;
213
+ text: z.ZodString;
214
+ }, z.core.$strict>>;
215
+ };
216
+ session_delivery_get: {
217
+ description: string;
218
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
219
+ originSessionId: z.ZodString;
220
+ messageId: z.ZodString;
221
+ }, z.core.$strict>>;
222
+ };
223
+ session_delivery_resolve: {
224
+ description: string;
225
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
226
+ originSessionId: z.ZodString;
227
+ messageId: z.ZodString;
228
+ accepted: z.ZodBoolean;
229
+ note: z.ZodString;
230
+ hostReceiptId: z.ZodOptional<z.ZodString>;
231
+ }, z.core.$strict>>;
232
+ };
233
+ execution_submit: {
234
+ description: string;
235
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
236
+ targetId: z.ZodString;
237
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
238
+ clientRequestId: z.ZodOptional<z.ZodString>;
239
+ title: z.ZodOptional<z.ZodString>;
240
+ parentJobRef: z.ZodOptional<z.ZodObject<{
241
+ sourceId: z.ZodString;
242
+ jobId: z.ZodString;
243
+ }, z.core.$strict>>;
244
+ parentAttemptId: z.ZodOptional<z.ZodString>;
245
+ purpose: z.ZodOptional<z.ZodString>;
246
+ resultRevision: z.ZodOptional<z.ZodString>;
247
+ replacesJobRef: z.ZodOptional<z.ZodObject<{
248
+ sourceId: z.ZodString;
249
+ jobId: z.ZodString;
250
+ }, z.core.$strict>>;
251
+ originSessionId: z.ZodString;
252
+ }, z.core.$strict>>;
253
+ };
254
+ execution_continue: {
255
+ description: string;
256
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
257
+ jobId: z.ZodString;
258
+ originSessionId: z.ZodString;
259
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
260
+ clientRequestId: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strict>>;
262
+ };
263
+ execution_cancel: {
264
+ description: string;
265
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
266
+ jobId: z.ZodString;
267
+ originSessionId: z.ZodString;
268
+ cascade: z.ZodOptional<z.ZodBoolean>;
269
+ }, z.core.$strict>>;
270
+ };
271
+ execution_get: {
272
+ description: string;
273
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
274
+ jobId: z.ZodString;
275
+ originSessionId: z.ZodString;
276
+ }, z.core.$strict>>;
277
+ };
278
+ execution_list: {
279
+ description: string;
280
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
281
+ targetId: z.ZodOptional<z.ZodString>;
282
+ executionStatus: z.ZodOptional<z.ZodString>;
283
+ limit: z.ZodDefault<z.ZodNumber>;
284
+ offset: z.ZodDefault<z.ZodNumber>;
285
+ originSessionId: z.ZodString;
286
+ }, z.core.$strict>>;
287
+ };
288
+ execution_events: {
289
+ description: string;
290
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
291
+ jobId: z.ZodOptional<z.ZodString>;
292
+ afterSequence: z.ZodOptional<z.ZodNumber>;
293
+ limit: z.ZodDefault<z.ZodNumber>;
294
+ originSessionId: z.ZodString;
295
+ }, z.core.$strict>>;
296
+ };
297
+ execution_review: {
298
+ description: string;
299
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
300
+ jobId: z.ZodString;
301
+ originSessionId: z.ZodString;
302
+ attemptId: z.ZodString;
303
+ resultRevision: z.ZodString;
304
+ resultDigest: z.ZodString;
305
+ reviewStatus: z.ZodEnum<{
306
+ pending: "pending";
307
+ accepted: "accepted";
308
+ changes_requested: "changes_requested";
309
+ }>;
310
+ note: z.ZodOptional<z.ZodString>;
311
+ }, z.core.$strict>>;
312
+ };
313
+ execution_inbox: {
314
+ description: string;
315
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
316
+ originSessionId: z.ZodString;
317
+ }, z.core.$strict>>;
318
+ };
319
+ execution_ack: {
320
+ description: string;
321
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
322
+ noticeId: z.ZodString;
323
+ originSessionId: z.ZodString;
324
+ }, z.core.$strict>>;
325
+ };
326
+ execution_connection_list: {
327
+ description: string;
328
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
329
+ };
330
+ execution_connection_get: {
331
+ description: string;
332
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
333
+ connectionId: z.ZodString;
334
+ }, z.core.$strict>>;
335
+ };
336
+ execution_connection_create: {
337
+ description: string;
338
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
339
+ connectionId: z.ZodString;
340
+ provider: z.ZodDefault<z.ZodEnum<{
341
+ a2a: "a2a";
342
+ activepieces: "activepieces";
343
+ }>>;
344
+ remote: z.ZodString;
345
+ enabled: z.ZodDefault<z.ZodBoolean>;
346
+ description: z.ZodOptional<z.ZodString>;
347
+ probePolicy: z.ZodOptional<z.ZodObject<{
348
+ ttlMs: z.ZodDefault<z.ZodNumber>;
349
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
350
+ }, z.core.$strict>>;
351
+ }, z.core.$strict>>;
352
+ };
353
+ execution_connection_update: {
354
+ description: string;
355
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
356
+ connectionId: z.ZodString;
357
+ expectedConnectionVersion: z.ZodOptional<z.ZodNumber>;
358
+ patch: z.ZodObject<{
359
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
360
+ remote: z.ZodOptional<z.ZodString>;
361
+ probePolicy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
362
+ ttlMs: z.ZodDefault<z.ZodNumber>;
363
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
364
+ }, z.core.$strict>>>;
365
+ provider: z.ZodOptional<z.ZodEnum<{
366
+ a2a: "a2a";
367
+ activepieces: "activepieces";
368
+ }>>;
369
+ enabled: z.ZodOptional<z.ZodBoolean>;
370
+ }, z.core.$strict>;
371
+ }, z.core.$strict>>;
372
+ };
373
+ execution_connection_delete: {
374
+ description: string;
375
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
376
+ connectionId: z.ZodString;
377
+ expectedConnectionVersion: z.ZodOptional<z.ZodNumber>;
378
+ }, z.core.$strict>>;
379
+ };
380
+ execution_target_list: {
381
+ description: string;
382
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
383
+ };
384
+ execution_target_get: {
385
+ description: string;
386
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
387
+ targetId: z.ZodString;
388
+ }, z.core.$strict>>;
389
+ };
390
+ execution_target_create: {
391
+ description: string;
392
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
393
+ targetId: z.ZodString;
394
+ kind: z.ZodEnum<{
395
+ agent_host: "agent_host";
396
+ resident_agent: "resident_agent";
397
+ workflow: "workflow";
398
+ }>;
399
+ name: z.ZodString;
400
+ description: z.ZodOptional<z.ZodString>;
401
+ connectionId: z.ZodString;
402
+ enabled: z.ZodDefault<z.ZodBoolean>;
403
+ inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
404
+ outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
405
+ capabilities: z.ZodOptional<z.ZodObject<{
406
+ query: z.ZodDefault<z.ZodBoolean>;
407
+ cancel: z.ZodDefault<z.ZodBoolean>;
408
+ continue: z.ZodDefault<z.ZodBoolean>;
409
+ reconcile: z.ZodDefault<z.ZodBoolean>;
410
+ }, z.core.$strict>>;
411
+ binding: z.ZodDefault<z.ZodObject<{
412
+ remote: z.ZodOptional<z.ZodString>;
413
+ cwd: z.ZodOptional<z.ZodString>;
414
+ agentPreset: z.ZodOptional<z.ZodString>;
415
+ roleId: z.ZodOptional<z.ZodString>;
416
+ skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
417
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
+ allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
+ flowId: z.ZodOptional<z.ZodString>;
420
+ flowVersion: z.ZodOptional<z.ZodString>;
421
+ driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
422
+ }, z.core.$strict>>;
423
+ }, z.core.$strict>>;
424
+ };
425
+ execution_target_update: {
426
+ description: string;
427
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
428
+ targetId: z.ZodString;
429
+ expectedConfigVersion: z.ZodOptional<z.ZodNumber>;
430
+ patch: z.ZodObject<{
431
+ kind: z.ZodOptional<z.ZodEnum<{
432
+ agent_host: "agent_host";
433
+ resident_agent: "resident_agent";
434
+ workflow: "workflow";
435
+ }>>;
436
+ name: z.ZodOptional<z.ZodString>;
437
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
438
+ connectionId: z.ZodOptional<z.ZodString>;
439
+ inputSchema: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
440
+ outputSchema: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
441
+ capabilities: z.ZodOptional<z.ZodOptional<z.ZodObject<{
442
+ query: z.ZodDefault<z.ZodBoolean>;
443
+ cancel: z.ZodDefault<z.ZodBoolean>;
444
+ continue: z.ZodDefault<z.ZodBoolean>;
445
+ reconcile: z.ZodDefault<z.ZodBoolean>;
446
+ }, z.core.$strict>>>;
447
+ enabled: z.ZodOptional<z.ZodBoolean>;
448
+ binding: z.ZodOptional<z.ZodObject<{
449
+ remote: z.ZodOptional<z.ZodString>;
450
+ cwd: z.ZodOptional<z.ZodString>;
451
+ agentPreset: z.ZodOptional<z.ZodString>;
452
+ roleId: z.ZodOptional<z.ZodString>;
453
+ skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
454
+ allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
455
+ allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
456
+ flowId: z.ZodOptional<z.ZodString>;
457
+ flowVersion: z.ZodOptional<z.ZodString>;
458
+ driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
459
+ }, z.core.$strict>>;
460
+ }, z.core.$strict>;
461
+ }, z.core.$strict>>;
462
+ };
463
+ execution_target_delete: {
464
+ description: string;
465
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
466
+ targetId: z.ZodString;
467
+ expectedConfigVersion: z.ZodOptional<z.ZodNumber>;
468
+ }, z.core.$strict>>;
469
+ };
470
+ execution_target_probe: {
471
+ description: string;
472
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
473
+ targetId: z.ZodString;
474
+ }, z.core.$strict>>;
475
+ };
93
476
  };
94
- export interface RemoteAgentNotice {
95
- noticeId: string;
96
- originSessionId: string;
97
- remote: string;
98
- taskId: string;
99
- contextId: string;
100
- cwd: string;
101
- agentPreset?: string;
102
- title?: string;
103
- state: string;
104
- result: string;
105
- createdAt: string;
106
- }
107
477
  export declare class RemoteAgentGateway {
108
478
  readonly config: Config;
109
479
  readonly automation?: A2AAutomation;
480
+ readonly sessions: SessionDelivery;
481
+ readonly targets: TargetDirectory;
482
+ readonly ledger: JobLedger;
110
483
  private readonly lease;
111
484
  private readonly stateFile;
112
485
  private readonly state;
113
486
  private readonly clients;
487
+ private readonly probeCards;
488
+ private readonly probeFailures;
114
489
  private readonly refreshing;
115
490
  private readonly delivering;
116
491
  private readonly controllers;
117
492
  private readonly operations;
493
+ private readonly advancingDeliveries;
494
+ private readonly canceling;
118
495
  private reconciling?;
119
496
  private readonly timer;
120
497
  private closed;
121
498
  constructor(input: A2AGatewayConfig);
122
499
  private save;
500
+ private standardState;
501
+ private legacySnapshot;
502
+ private targetSnapshot;
503
+ private ledgerView;
504
+ private submitExecution;
505
+ private childView;
506
+ private advanceDelivery;
507
+ private advanceDeliveryOnce;
508
+ private executionNotice;
509
+ private cancellationJobs;
510
+ private assertDispatchOpen;
511
+ private cancelExecution;
512
+ private reconcileCancellation;
513
+ private performCancellation;
514
+ private probeTarget;
123
515
  private client;
124
516
  private auth;
517
+ private preflight;
518
+ private checkDispatch;
125
519
  private job;
126
520
  private view;
127
521
  private accept;
@@ -148,4 +542,3 @@ export declare function serveA2AGateway(input: A2AGatewayConfig, options?: {
148
542
  } | undefined;
149
543
  close: () => Promise<void>;
150
544
  }>;
151
- export {};