@1agents/acp-service 0.8.1 → 0.8.2
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/README.md +37 -2
- package/dist/bin/a2a.js +3 -2
- package/dist/src/a2a/executor.d.ts +2 -0
- package/dist/src/a2a/executor.js +63 -10
- package/dist/src/a2a/gateway.d.ts +407 -14
- package/dist/src/a2a/gateway.js +719 -37
- package/dist/src/a2a/index.d.ts +8 -1
- package/dist/src/a2a/index.js +4 -0
- package/dist/src/a2a/notices.d.ts +24 -0
- package/dist/src/a2a/notices.js +56 -0
- package/dist/src/a2a/preflight.d.ts +52 -0
- package/dist/src/a2a/preflight.js +153 -0
- package/dist/src/a2a/result-metadata.d.ts +59 -0
- package/dist/src/a2a/result-metadata.js +156 -0
- package/dist/src/a2a/server.js +30 -0
- package/dist/src/a2a/session-delivery.d.ts +69 -0
- package/dist/src/a2a/session-delivery.js +260 -0
- package/dist/src/a2a/session-hosts.d.ts +34 -0
- package/dist/src/a2a/session-hosts.js +211 -0
- package/dist/src/a2a/store.js +3 -1
- package/dist/src/a2a/types.d.ts +33 -0
- package/dist/src/execution/delivery-progress.d.ts +108 -0
- package/dist/src/execution/delivery-progress.js +57 -0
- package/dist/src/execution/ledger.d.ts +235 -0
- package/dist/src/execution/ledger.js +396 -0
- package/dist/src/execution/ppt-delivery.d.ts +231 -0
- package/dist/src/execution/ppt-delivery.js +625 -0
- package/dist/src/execution/targets.d.ts +349 -0
- package/dist/src/execution/targets.js +428 -0
- package/package.json +11 -12
- package/skills/acp-service/SKILL.md +9 -2
- package/skills/acp-service/references/a2a.md +72 -4
- package/vendor/dsh/a2a-executor.d.ts +2 -1
- package/vendor/dsh/a2a-executor.js +28 -1
- package/vendor/dsh/a2a.js +1 -0
- package/vendor/dsh/client.js +11 -3
- package/vendor/runtime/dist/{agent-registry-CMg8LHKY.js → agent-registry-R7A3MSpr.js} +9 -1
- package/vendor/runtime/dist/agent-registry-R7A3MSpr.js.map +1 -0
- package/vendor/runtime/dist/agent-registry.d.ts +1 -0
- package/vendor/runtime/dist/agent-registry.d.ts.map +1 -1
- package/vendor/runtime/dist/agent-registry.js +1 -2
- package/vendor/runtime/dist/{cli-Bdzplbpj.js → cli-DeOpE2Xz.js} +4 -4
- package/vendor/runtime/dist/{cli-Bdzplbpj.js.map → cli-DeOpE2Xz.js.map} +1 -1
- package/vendor/runtime/dist/cli.d.ts +2 -1
- package/vendor/runtime/dist/cli.js +10 -10
- package/vendor/runtime/dist/cli.js.map +1 -1
- package/vendor/runtime/dist/{client-BXOiB0ND.d.ts → client-VQsqcIOJ.d.ts} +2 -2
- package/vendor/runtime/dist/{client-BXOiB0ND.d.ts.map → client-VQsqcIOJ.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 +335 -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-BKlAuzM8.js → flows-oaBGn31w.js} +5 -5
- package/vendor/runtime/dist/{flows-BKlAuzM8.js.map → flows-oaBGn31w.js.map} +1 -1
- package/vendor/runtime/dist/flows.d.ts +2 -2
- package/vendor/runtime/dist/flows.d.ts.map +1 -1
- package/vendor/runtime/dist/flows.js +1 -2
- package/vendor/runtime/dist/{invocation-options-DMy77sEU.js → invocation-options-CUDEE8vW.js} +5 -5
- package/vendor/runtime/dist/{invocation-options-DMy77sEU.js.map → invocation-options-CUDEE8vW.js.map} +1 -1
- package/vendor/runtime/dist/{ipc-CLv2iL89.js → ipc-BQQpcEdP.js} +98 -20
- package/vendor/runtime/dist/ipc-BQQpcEdP.js.map +1 -0
- package/vendor/runtime/dist/{output-I-t-v55D.js → output-CFv3jcOQ.js} +86 -22
- package/vendor/runtime/dist/output-CFv3jcOQ.js.map +1 -0
- package/vendor/runtime/dist/{queue-owner-runtime-RN3uSid0.js → queue-owner-runtime-DvMJiGbP.js} +86 -27
- package/vendor/runtime/dist/queue-owner-runtime-DvMJiGbP.js.map +1 -0
- package/vendor/runtime/dist/runtime.d.ts +5 -2
- package/vendor/runtime/dist/runtime.d.ts.map +1 -1
- package/vendor/runtime/dist/runtime.js +77 -29
- package/vendor/runtime/dist/runtime.js.map +1 -1
- package/vendor/runtime/dist/{session-options-DNnDfiUt.d.ts → session-options-NjpFwf-c.d.ts} +5 -1
- package/vendor/runtime/dist/session-options-NjpFwf-c.d.ts.map +1 -0
- package/vendor/runtime/dist/{session-watch-CmHbH0jS.js → session-watch-Di-wIdCH.js} +4 -4
- package/vendor/runtime/dist/{session-watch-CmHbH0jS.js.map → session-watch-Di-wIdCH.js.map} +1 -1
- package/vendor/runtime/dist/{watch-BE-kKa7o.js → watch-CIpoMaWD.js} +2 -2
- package/vendor/runtime/dist/{watch-BE-kKa7o.js.map → watch-CIpoMaWD.js.map} +1 -1
- package/vendor/runtime/package.json +1 -1
- package/vendor/runtime/skills/acpx/SKILL.md +7 -2
- package/vendor/runtime/dist/agent-registry-CMg8LHKY.js.map +0 -1
- package/vendor/runtime/dist/ipc-CLv2iL89.js.map +0 -1
- package/vendor/runtime/dist/output-I-t-v55D.js.map +0 -1
- package/vendor/runtime/dist/queue-owner-runtime-RN3uSid0.js.map +0 -1
- package/vendor/runtime/dist/session-options-DNnDfiUt.d.ts.map +0 -1
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const executionConnectionConfigSchema: z.ZodObject<{
|
|
3
|
+
connectionId: z.ZodString;
|
|
4
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
5
|
+
a2a: "a2a";
|
|
6
|
+
activepieces: "activepieces";
|
|
7
|
+
}>>;
|
|
8
|
+
remote: z.ZodString;
|
|
9
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
10
|
+
description: z.ZodOptional<z.ZodString>;
|
|
11
|
+
probePolicy: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
ttlMs: z.ZodDefault<z.ZodNumber>;
|
|
13
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
14
|
+
}, z.core.$strict>>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
export declare const executionConnectionSchema: z.ZodObject<{
|
|
17
|
+
connectionId: z.ZodString;
|
|
18
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
a2a: "a2a";
|
|
20
|
+
activepieces: "activepieces";
|
|
21
|
+
}>>;
|
|
22
|
+
remote: z.ZodString;
|
|
23
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
+
description: z.ZodOptional<z.ZodString>;
|
|
25
|
+
probePolicy: z.ZodOptional<z.ZodObject<{
|
|
26
|
+
ttlMs: z.ZodDefault<z.ZodNumber>;
|
|
27
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
connectionVersion: z.ZodNumber;
|
|
30
|
+
createdAt: z.ZodString;
|
|
31
|
+
updatedAt: z.ZodString;
|
|
32
|
+
endpoint: z.ZodOptional<z.ZodString>;
|
|
33
|
+
endpointFingerprint: z.ZodOptional<z.ZodString>;
|
|
34
|
+
}, z.core.$strict>;
|
|
35
|
+
export declare const executionTargetBindingSchema: z.ZodObject<{
|
|
36
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
37
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
38
|
+
agentPreset: z.ZodOptional<z.ZodString>;
|
|
39
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
40
|
+
skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
42
|
+
allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
43
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
44
|
+
flowVersion: z.ZodOptional<z.ZodString>;
|
|
45
|
+
driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
|
|
46
|
+
}, z.core.$strict>;
|
|
47
|
+
export declare const executionTargetConfigSchema: z.ZodObject<{
|
|
48
|
+
targetId: z.ZodString;
|
|
49
|
+
kind: z.ZodEnum<{
|
|
50
|
+
agent_host: "agent_host";
|
|
51
|
+
resident_agent: "resident_agent";
|
|
52
|
+
workflow: "workflow";
|
|
53
|
+
}>;
|
|
54
|
+
name: z.ZodString;
|
|
55
|
+
description: z.ZodOptional<z.ZodString>;
|
|
56
|
+
connectionId: z.ZodString;
|
|
57
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
59
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
60
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
query: z.ZodDefault<z.ZodBoolean>;
|
|
62
|
+
cancel: z.ZodDefault<z.ZodBoolean>;
|
|
63
|
+
continue: z.ZodDefault<z.ZodBoolean>;
|
|
64
|
+
reconcile: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strict>>;
|
|
66
|
+
binding: z.ZodDefault<z.ZodObject<{
|
|
67
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
68
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
69
|
+
agentPreset: z.ZodOptional<z.ZodString>;
|
|
70
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
72
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
73
|
+
allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
74
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
75
|
+
flowVersion: z.ZodOptional<z.ZodString>;
|
|
76
|
+
driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
}, z.core.$strict>;
|
|
79
|
+
export declare const executionTargetSchema: z.ZodObject<{
|
|
80
|
+
targetId: z.ZodString;
|
|
81
|
+
kind: z.ZodEnum<{
|
|
82
|
+
agent_host: "agent_host";
|
|
83
|
+
resident_agent: "resident_agent";
|
|
84
|
+
workflow: "workflow";
|
|
85
|
+
}>;
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
description: z.ZodOptional<z.ZodString>;
|
|
88
|
+
connectionId: z.ZodString;
|
|
89
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
91
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
query: z.ZodDefault<z.ZodBoolean>;
|
|
94
|
+
cancel: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
continue: z.ZodDefault<z.ZodBoolean>;
|
|
96
|
+
reconcile: z.ZodDefault<z.ZodBoolean>;
|
|
97
|
+
}, z.core.$strict>>;
|
|
98
|
+
binding: z.ZodDefault<z.ZodObject<{
|
|
99
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
100
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
101
|
+
agentPreset: z.ZodOptional<z.ZodString>;
|
|
102
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
104
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
105
|
+
allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
106
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
107
|
+
flowVersion: z.ZodOptional<z.ZodString>;
|
|
108
|
+
driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
|
|
109
|
+
}, z.core.$strict>>;
|
|
110
|
+
configVersion: z.ZodNumber;
|
|
111
|
+
createdAt: z.ZodString;
|
|
112
|
+
updatedAt: z.ZodString;
|
|
113
|
+
}, z.core.$strict>;
|
|
114
|
+
export type ExecutionConnection = z.output<typeof executionConnectionSchema>;
|
|
115
|
+
export type ExecutionTarget = z.output<typeof executionTargetSchema>;
|
|
116
|
+
export declare const targetHealthSchema: z.ZodObject<{
|
|
117
|
+
targetId: z.ZodString;
|
|
118
|
+
configVersion: z.ZodNumber;
|
|
119
|
+
connectionId: z.ZodString;
|
|
120
|
+
connectionVersion: z.ZodNumber;
|
|
121
|
+
connectionStatus: z.ZodEnum<{
|
|
122
|
+
unknown: "unknown";
|
|
123
|
+
reachable: "reachable";
|
|
124
|
+
unreachable: "unreachable";
|
|
125
|
+
auth_required: "auth_required";
|
|
126
|
+
}>;
|
|
127
|
+
targetStatus: z.ZodEnum<{
|
|
128
|
+
unknown: "unknown";
|
|
129
|
+
ready: "ready";
|
|
130
|
+
misconfigured: "misconfigured";
|
|
131
|
+
unavailable: "unavailable";
|
|
132
|
+
}>;
|
|
133
|
+
checkedAt: z.ZodString;
|
|
134
|
+
validUntil: z.ZodString;
|
|
135
|
+
checkedScope: z.ZodArray<z.ZodString>;
|
|
136
|
+
lastSuccessAt: z.ZodOptional<z.ZodString>;
|
|
137
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
138
|
+
failureCount: z.ZodNumber;
|
|
139
|
+
nextCheckAt: z.ZodOptional<z.ZodString>;
|
|
140
|
+
capacity: z.ZodOptional<z.ZodEnum<{
|
|
141
|
+
unknown: "unknown";
|
|
142
|
+
busy: "busy";
|
|
143
|
+
available: "available";
|
|
144
|
+
}>>;
|
|
145
|
+
}, z.core.$strict>;
|
|
146
|
+
export type TargetHealth = z.output<typeof targetHealthSchema>;
|
|
147
|
+
export declare const TARGET_METHODS: {
|
|
148
|
+
execution_connection_list: {
|
|
149
|
+
description: string;
|
|
150
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
|
|
151
|
+
};
|
|
152
|
+
execution_connection_get: {
|
|
153
|
+
description: string;
|
|
154
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
155
|
+
connectionId: z.ZodString;
|
|
156
|
+
}, z.core.$strict>>;
|
|
157
|
+
};
|
|
158
|
+
execution_connection_create: {
|
|
159
|
+
description: string;
|
|
160
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
161
|
+
connectionId: z.ZodString;
|
|
162
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
163
|
+
a2a: "a2a";
|
|
164
|
+
activepieces: "activepieces";
|
|
165
|
+
}>>;
|
|
166
|
+
remote: z.ZodString;
|
|
167
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
description: z.ZodOptional<z.ZodString>;
|
|
169
|
+
probePolicy: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
ttlMs: z.ZodDefault<z.ZodNumber>;
|
|
171
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
172
|
+
}, z.core.$strict>>;
|
|
173
|
+
}, z.core.$strict>>;
|
|
174
|
+
};
|
|
175
|
+
execution_connection_update: {
|
|
176
|
+
description: string;
|
|
177
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
178
|
+
connectionId: z.ZodString;
|
|
179
|
+
expectedConnectionVersion: z.ZodOptional<z.ZodNumber>;
|
|
180
|
+
patch: z.ZodObject<{
|
|
181
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
182
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
183
|
+
probePolicy: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
184
|
+
ttlMs: z.ZodDefault<z.ZodNumber>;
|
|
185
|
+
timeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
186
|
+
}, z.core.$strict>>>;
|
|
187
|
+
provider: z.ZodOptional<z.ZodEnum<{
|
|
188
|
+
a2a: "a2a";
|
|
189
|
+
activepieces: "activepieces";
|
|
190
|
+
}>>;
|
|
191
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
}, z.core.$strict>>;
|
|
194
|
+
};
|
|
195
|
+
execution_connection_delete: {
|
|
196
|
+
description: string;
|
|
197
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
198
|
+
connectionId: z.ZodString;
|
|
199
|
+
expectedConnectionVersion: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
};
|
|
202
|
+
execution_target_list: {
|
|
203
|
+
description: string;
|
|
204
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
|
|
205
|
+
};
|
|
206
|
+
execution_target_get: {
|
|
207
|
+
description: string;
|
|
208
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
209
|
+
targetId: z.ZodString;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
};
|
|
212
|
+
execution_target_create: {
|
|
213
|
+
description: string;
|
|
214
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
215
|
+
targetId: z.ZodString;
|
|
216
|
+
kind: z.ZodEnum<{
|
|
217
|
+
agent_host: "agent_host";
|
|
218
|
+
resident_agent: "resident_agent";
|
|
219
|
+
workflow: "workflow";
|
|
220
|
+
}>;
|
|
221
|
+
name: z.ZodString;
|
|
222
|
+
description: z.ZodOptional<z.ZodString>;
|
|
223
|
+
connectionId: z.ZodString;
|
|
224
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
+
inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
226
|
+
outputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
227
|
+
capabilities: z.ZodOptional<z.ZodObject<{
|
|
228
|
+
query: z.ZodDefault<z.ZodBoolean>;
|
|
229
|
+
cancel: z.ZodDefault<z.ZodBoolean>;
|
|
230
|
+
continue: z.ZodDefault<z.ZodBoolean>;
|
|
231
|
+
reconcile: z.ZodDefault<z.ZodBoolean>;
|
|
232
|
+
}, z.core.$strict>>;
|
|
233
|
+
binding: z.ZodDefault<z.ZodObject<{
|
|
234
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
235
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
236
|
+
agentPreset: z.ZodOptional<z.ZodString>;
|
|
237
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
238
|
+
skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
239
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
240
|
+
allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
242
|
+
flowVersion: z.ZodOptional<z.ZodString>;
|
|
243
|
+
driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
|
|
244
|
+
}, z.core.$strict>>;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
};
|
|
247
|
+
execution_target_update: {
|
|
248
|
+
description: string;
|
|
249
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
250
|
+
targetId: z.ZodString;
|
|
251
|
+
expectedConfigVersion: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
patch: z.ZodObject<{
|
|
253
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
254
|
+
agent_host: "agent_host";
|
|
255
|
+
resident_agent: "resident_agent";
|
|
256
|
+
workflow: "workflow";
|
|
257
|
+
}>>;
|
|
258
|
+
name: z.ZodOptional<z.ZodString>;
|
|
259
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
260
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
261
|
+
inputSchema: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
262
|
+
outputSchema: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
263
|
+
capabilities: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
264
|
+
query: z.ZodDefault<z.ZodBoolean>;
|
|
265
|
+
cancel: z.ZodDefault<z.ZodBoolean>;
|
|
266
|
+
continue: z.ZodDefault<z.ZodBoolean>;
|
|
267
|
+
reconcile: z.ZodDefault<z.ZodBoolean>;
|
|
268
|
+
}, z.core.$strict>>>;
|
|
269
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
+
binding: z.ZodOptional<z.ZodObject<{
|
|
271
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
272
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
273
|
+
agentPreset: z.ZodOptional<z.ZodString>;
|
|
274
|
+
roleId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
276
|
+
allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
277
|
+
allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
278
|
+
flowId: z.ZodOptional<z.ZodString>;
|
|
279
|
+
flowVersion: z.ZodOptional<z.ZodString>;
|
|
280
|
+
driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
|
|
281
|
+
}, z.core.$strict>>;
|
|
282
|
+
}, z.core.$strict>;
|
|
283
|
+
}, z.core.$strict>>;
|
|
284
|
+
};
|
|
285
|
+
execution_target_delete: {
|
|
286
|
+
description: string;
|
|
287
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
288
|
+
targetId: z.ZodString;
|
|
289
|
+
expectedConfigVersion: z.ZodOptional<z.ZodNumber>;
|
|
290
|
+
}, z.core.$strict>>;
|
|
291
|
+
};
|
|
292
|
+
execution_target_probe: {
|
|
293
|
+
description: string;
|
|
294
|
+
parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
|
|
295
|
+
targetId: z.ZodString;
|
|
296
|
+
}, z.core.$strict>>;
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
type Remotes = Record<string, {
|
|
300
|
+
url: string;
|
|
301
|
+
token?: string;
|
|
302
|
+
}>;
|
|
303
|
+
export interface ExecutionTargetSnapshot {
|
|
304
|
+
target: ExecutionTarget;
|
|
305
|
+
connection: ExecutionConnection;
|
|
306
|
+
configVersion: number;
|
|
307
|
+
connectionVersion: number;
|
|
308
|
+
remote: string;
|
|
309
|
+
endpoint: string;
|
|
310
|
+
cwd?: string;
|
|
311
|
+
agentPreset?: string;
|
|
312
|
+
input: Record<string, unknown>;
|
|
313
|
+
directoryPolicy?: {
|
|
314
|
+
allowedDirectories: string[];
|
|
315
|
+
executorVerificationRequired: true;
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
/** Use inside the gateway's single-owner lease; targets.json is not a transaction with gateway.json. */
|
|
319
|
+
export declare class TargetDirectory {
|
|
320
|
+
private readonly remotes;
|
|
321
|
+
private readonly file;
|
|
322
|
+
private state;
|
|
323
|
+
private readonly health;
|
|
324
|
+
constructor(stateDirectory: string, remotes: Remotes);
|
|
325
|
+
private commit;
|
|
326
|
+
getConnection(connectionId: string): ExecutionConnection;
|
|
327
|
+
getTarget(targetId: string): ExecutionTarget;
|
|
328
|
+
listConnections(): ExecutionConnection[];
|
|
329
|
+
listTargets(): ExecutionTarget[];
|
|
330
|
+
private withEndpoint;
|
|
331
|
+
/** Controlled remote-config reload. A URL change creates a new connection version, never a new target. */
|
|
332
|
+
reloadRemoteEndpoints(): string[];
|
|
333
|
+
/** Explicit compatibility import of configured aliases only; never discovers presets or remote roles. */
|
|
334
|
+
ensureLegacyRemotes(): {
|
|
335
|
+
importedConnections: string[];
|
|
336
|
+
importedTargets: string[];
|
|
337
|
+
};
|
|
338
|
+
private validateConnection;
|
|
339
|
+
private validateTarget;
|
|
340
|
+
private checkDirectory;
|
|
341
|
+
/** Resolve configuration only. The actual executor must still validate realpath, permissions and dependencies. */
|
|
342
|
+
resolve(targetId: string, input: unknown): ExecutionTargetSnapshot;
|
|
343
|
+
getHealth(targetId: string): TargetHealth | undefined;
|
|
344
|
+
/** Only a trusted read-only probe adapter calls this; never exposed as an agent tool. */
|
|
345
|
+
recordProbe(input: unknown): boolean;
|
|
346
|
+
invoke(method: string, params: unknown): unknown;
|
|
347
|
+
private describe;
|
|
348
|
+
}
|
|
349
|
+
export {};
|