@sentropic/artifacts 0.2.17 → 0.2.18
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/CHANGELOG.md +18 -0
- package/dist/adapters/github-forge.d.ts +4 -0
- package/dist/adapters/github-forge.js +88 -0
- package/dist/adapters/github-git-port.d.ts +5 -0
- package/dist/adapters/github-git-port.js +102 -0
- package/dist/adapters/github-http.d.ts +5 -0
- package/dist/adapters/github-http.js +57 -0
- package/dist/adapters/github-receive-pack.d.ts +4 -0
- package/dist/adapters/github-receive-pack.js +49 -0
- package/dist/adapters/postgres-git-bindings.d.ts +7 -0
- package/dist/adapters/postgres-git-bindings.js +110 -0
- package/dist/adapters/postgres-live.d.ts +4 -0
- package/dist/adapters/postgres-live.js +97 -0
- package/dist/adapters/postgres.d.ts +1 -0
- package/dist/adapters/postgres.js +1 -0
- package/dist/git-tool-definitions.d.ts +606 -0
- package/dist/git-tool-definitions.js +14 -0
- package/dist/http.d.ts +6 -0
- package/dist/http.js +20 -2
- package/dist/index.d.ts +13 -0
- package/dist/index.js +12 -0
- package/dist/mcp-core.d.ts +3 -3
- package/dist/mcp-core.js +15 -2
- package/dist/profile/contracts.d.ts +1 -1
- package/dist/profile/contracts.js +4 -0
- package/dist/profile/index.js +8 -1
- package/dist/profile/schemas.js +19 -0
- package/dist/profile/validation.js +5 -1
- package/dist/server/build-contract.d.ts +64 -0
- package/dist/server/build-contract.js +58 -0
- package/dist/server/build-dependencies.d.ts +3 -0
- package/dist/server/build-dependencies.js +122 -0
- package/dist/server/consent-grant.d.ts +91 -0
- package/dist/server/consent-grant.js +89 -0
- package/dist/server/consent-screen.d.ts +21 -0
- package/dist/server/consent-screen.js +52 -0
- package/dist/server/failures.d.ts +3 -2
- package/dist/server/failures.js +30 -0
- package/dist/server/git-bindings.d.ts +8 -0
- package/dist/server/git-bindings.js +113 -0
- package/dist/server/git-contracts.d.ts +98 -0
- package/dist/server/git-contracts.js +1 -0
- package/dist/server/git-port-policy.d.ts +9 -0
- package/dist/server/git-port-policy.js +76 -0
- package/dist/server/git-port-read.d.ts +3 -0
- package/dist/server/git-port-read.js +95 -0
- package/dist/server/git-port-session.d.ts +38 -0
- package/dist/server/git-port-session.js +59 -0
- package/dist/server/git-port-tree.d.ts +8 -0
- package/dist/server/git-port-tree.js +92 -0
- package/dist/server/git-port-write.d.ts +6 -0
- package/dist/server/git-port-write.js +102 -0
- package/dist/server/git-port.d.ts +147 -0
- package/dist/server/git-port.js +8 -0
- package/dist/server/git-projection.d.ts +16 -0
- package/dist/server/git-projection.js +20 -0
- package/dist/server/git-registry.d.ts +37 -0
- package/dist/server/git-registry.js +39 -0
- package/dist/server/live-body.d.ts +3 -0
- package/dist/server/live-body.js +28 -0
- package/dist/server/live-commit-outcome.d.ts +6 -0
- package/dist/server/live-commit-outcome.js +10 -0
- package/dist/server/live-commit.d.ts +11 -0
- package/dist/server/live-commit.js +133 -0
- package/dist/server/live-contracts.d.ts +62 -0
- package/dist/server/live-contracts.js +8 -0
- package/dist/server/live-crypto.d.ts +14 -0
- package/dist/server/live-crypto.js +50 -0
- package/dist/server/live-drafts.d.ts +61 -0
- package/dist/server/live-drafts.js +119 -0
- package/dist/server/live-errors.d.ts +23 -0
- package/dist/server/live-errors.js +9 -0
- package/dist/server/live-mutations.d.ts +18 -0
- package/dist/server/live-mutations.js +83 -0
- package/dist/server/live-read.d.ts +15 -0
- package/dist/server/live-read.js +95 -0
- package/dist/server/live-service.d.ts +3 -0
- package/dist/server/live-service.js +181 -0
- package/dist/server/live-store.d.ts +111 -0
- package/dist/server/live-store.js +80 -0
- package/dist/server/live-tree.d.ts +22 -0
- package/dist/server/live-tree.js +148 -0
- package/dist/server/live-worker.d.ts +10 -0
- package/dist/server/live-worker.js +55 -0
- package/migrations/0010_git_bindings.sql +82 -0
- package/migrations/0011_live_drafts.sql +42 -0
- package/package.json +13 -1
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
/** Frozen G0 v3 and A-LIVE v2 definition values; generated from the signed JSON blocks. */
|
|
2
|
+
export declare const GIT_TOOL_DEFINITIONS: {
|
|
3
|
+
artifacts_list_app_sources: {
|
|
4
|
+
description: string;
|
|
5
|
+
gates: {
|
|
6
|
+
requiresElicitation: false;
|
|
7
|
+
requiresHumanConfirmation: false;
|
|
8
|
+
requiresPrincipalGate: false;
|
|
9
|
+
};
|
|
10
|
+
idempotency: {
|
|
11
|
+
required: false;
|
|
12
|
+
};
|
|
13
|
+
inputSchema: {
|
|
14
|
+
additionalProperties: boolean;
|
|
15
|
+
properties: {
|
|
16
|
+
cursor: {
|
|
17
|
+
maxLength: number;
|
|
18
|
+
minLength: number;
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
required: never[];
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
mutability: "read-only";
|
|
26
|
+
outputSchema: {
|
|
27
|
+
additionalProperties: boolean;
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
artifacts_fetch_app_source: {
|
|
32
|
+
description: string;
|
|
33
|
+
gates: {
|
|
34
|
+
requiresElicitation: false;
|
|
35
|
+
requiresHumanConfirmation: false;
|
|
36
|
+
requiresPrincipalGate: false;
|
|
37
|
+
};
|
|
38
|
+
idempotency: {
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
inputSchema: {
|
|
42
|
+
additionalProperties: boolean;
|
|
43
|
+
anyOf: {
|
|
44
|
+
required: string[];
|
|
45
|
+
}[];
|
|
46
|
+
properties: {
|
|
47
|
+
artifactId: {
|
|
48
|
+
pattern: string;
|
|
49
|
+
type: string;
|
|
50
|
+
};
|
|
51
|
+
cursor: {
|
|
52
|
+
maxLength: number;
|
|
53
|
+
minLength: number;
|
|
54
|
+
type: string;
|
|
55
|
+
};
|
|
56
|
+
paths: {
|
|
57
|
+
items: {
|
|
58
|
+
description: string;
|
|
59
|
+
minLength: number;
|
|
60
|
+
type: string;
|
|
61
|
+
};
|
|
62
|
+
maxItems: number;
|
|
63
|
+
minItems: number;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
ref: {
|
|
67
|
+
minLength: number;
|
|
68
|
+
type: string;
|
|
69
|
+
};
|
|
70
|
+
repoId: {
|
|
71
|
+
minLength: number;
|
|
72
|
+
type: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
required: never[];
|
|
76
|
+
type: string;
|
|
77
|
+
};
|
|
78
|
+
mutability: "read-only";
|
|
79
|
+
outputSchema: {
|
|
80
|
+
additionalProperties: boolean;
|
|
81
|
+
type: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
artifacts_git_attach: {
|
|
85
|
+
description: string;
|
|
86
|
+
gates: {
|
|
87
|
+
requiresElicitation: false;
|
|
88
|
+
requiresHumanConfirmation: false;
|
|
89
|
+
requiresPrincipalGate: false;
|
|
90
|
+
};
|
|
91
|
+
idempotency: {
|
|
92
|
+
required: true;
|
|
93
|
+
scope: "principal";
|
|
94
|
+
};
|
|
95
|
+
inputSchema: {
|
|
96
|
+
additionalProperties: boolean;
|
|
97
|
+
properties: {
|
|
98
|
+
artifactId: {
|
|
99
|
+
pattern: string;
|
|
100
|
+
type: string;
|
|
101
|
+
};
|
|
102
|
+
autoPublish: {
|
|
103
|
+
type: string;
|
|
104
|
+
};
|
|
105
|
+
baseRef: {
|
|
106
|
+
minLength: number;
|
|
107
|
+
type: string;
|
|
108
|
+
};
|
|
109
|
+
branch: {
|
|
110
|
+
minLength: number;
|
|
111
|
+
type: string;
|
|
112
|
+
};
|
|
113
|
+
detach: {
|
|
114
|
+
type: string;
|
|
115
|
+
};
|
|
116
|
+
executor: {
|
|
117
|
+
enum: string[];
|
|
118
|
+
type: string;
|
|
119
|
+
};
|
|
120
|
+
idempotencyKey: {
|
|
121
|
+
description: string;
|
|
122
|
+
minLength: number;
|
|
123
|
+
type: string;
|
|
124
|
+
};
|
|
125
|
+
pause: {
|
|
126
|
+
type: string;
|
|
127
|
+
};
|
|
128
|
+
repoId: {
|
|
129
|
+
minLength: number;
|
|
130
|
+
type: string;
|
|
131
|
+
};
|
|
132
|
+
subPath: {
|
|
133
|
+
description: string;
|
|
134
|
+
type: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
required: string[];
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
mutability: "state-transition";
|
|
141
|
+
outputSchema: {
|
|
142
|
+
additionalProperties: boolean;
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
artifacts_git_commit: {
|
|
147
|
+
description: string;
|
|
148
|
+
gates: {
|
|
149
|
+
requiresElicitation: false;
|
|
150
|
+
requiresHumanConfirmation: false;
|
|
151
|
+
requiresPrincipalGate: false;
|
|
152
|
+
};
|
|
153
|
+
idempotency: {
|
|
154
|
+
required: true;
|
|
155
|
+
scope: "principal";
|
|
156
|
+
};
|
|
157
|
+
inputSchema: {
|
|
158
|
+
additionalProperties: boolean;
|
|
159
|
+
anyOf: {
|
|
160
|
+
required: string[];
|
|
161
|
+
}[];
|
|
162
|
+
properties: {
|
|
163
|
+
artifactId: {
|
|
164
|
+
pattern: string;
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
167
|
+
deletes: {
|
|
168
|
+
description: string;
|
|
169
|
+
items: {
|
|
170
|
+
description: string;
|
|
171
|
+
minLength: number;
|
|
172
|
+
type: string;
|
|
173
|
+
};
|
|
174
|
+
minItems: number;
|
|
175
|
+
type: string;
|
|
176
|
+
};
|
|
177
|
+
edits: {
|
|
178
|
+
description: string;
|
|
179
|
+
items: {
|
|
180
|
+
additionalProperties: boolean;
|
|
181
|
+
properties: {
|
|
182
|
+
newStr: {
|
|
183
|
+
type: string;
|
|
184
|
+
};
|
|
185
|
+
oldStr: {
|
|
186
|
+
minLength: number;
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
path: {
|
|
190
|
+
description: string;
|
|
191
|
+
minLength: number;
|
|
192
|
+
type: string;
|
|
193
|
+
};
|
|
194
|
+
};
|
|
195
|
+
required: string[];
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
maxItems: number;
|
|
199
|
+
minItems: number;
|
|
200
|
+
type: string;
|
|
201
|
+
};
|
|
202
|
+
expectedHeadSha: {
|
|
203
|
+
description: string;
|
|
204
|
+
minLength: number;
|
|
205
|
+
type: string;
|
|
206
|
+
};
|
|
207
|
+
files: {
|
|
208
|
+
description: string;
|
|
209
|
+
items: {
|
|
210
|
+
additionalProperties: boolean;
|
|
211
|
+
properties: {
|
|
212
|
+
path: {
|
|
213
|
+
description: string;
|
|
214
|
+
minLength: number;
|
|
215
|
+
type: string;
|
|
216
|
+
};
|
|
217
|
+
text: {
|
|
218
|
+
type: string;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
required: string[];
|
|
222
|
+
type: string;
|
|
223
|
+
};
|
|
224
|
+
minItems: number;
|
|
225
|
+
type: string;
|
|
226
|
+
};
|
|
227
|
+
idempotencyKey: {
|
|
228
|
+
description: string;
|
|
229
|
+
minLength: number;
|
|
230
|
+
type: string;
|
|
231
|
+
};
|
|
232
|
+
message: {
|
|
233
|
+
minLength: number;
|
|
234
|
+
type: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
required: string[];
|
|
238
|
+
type: string;
|
|
239
|
+
};
|
|
240
|
+
mutability: "state-transition";
|
|
241
|
+
outputSchema: {
|
|
242
|
+
additionalProperties: boolean;
|
|
243
|
+
type: string;
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
artifacts_git_publish: {
|
|
247
|
+
description: string;
|
|
248
|
+
gates: {
|
|
249
|
+
requiresElicitation: false;
|
|
250
|
+
requiresHumanConfirmation: false;
|
|
251
|
+
requiresPrincipalGate: false;
|
|
252
|
+
};
|
|
253
|
+
idempotency: {
|
|
254
|
+
required: true;
|
|
255
|
+
scope: "principal";
|
|
256
|
+
};
|
|
257
|
+
inputSchema: {
|
|
258
|
+
additionalProperties: boolean;
|
|
259
|
+
properties: {
|
|
260
|
+
artifactId: {
|
|
261
|
+
pattern: string;
|
|
262
|
+
type: string;
|
|
263
|
+
};
|
|
264
|
+
commitSha: {
|
|
265
|
+
description: string;
|
|
266
|
+
minLength: number;
|
|
267
|
+
type: string;
|
|
268
|
+
};
|
|
269
|
+
expectedCurrentReleaseId: {
|
|
270
|
+
description: string;
|
|
271
|
+
pattern: string;
|
|
272
|
+
type: string[];
|
|
273
|
+
};
|
|
274
|
+
idempotencyKey: {
|
|
275
|
+
description: string;
|
|
276
|
+
minLength: number;
|
|
277
|
+
type: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
required: string[];
|
|
281
|
+
type: string;
|
|
282
|
+
};
|
|
283
|
+
mutability: "append";
|
|
284
|
+
outputSchema: {
|
|
285
|
+
additionalProperties: boolean;
|
|
286
|
+
type: string;
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
artifacts_git_live: {
|
|
290
|
+
description: string;
|
|
291
|
+
gates: {
|
|
292
|
+
requiresElicitation: false;
|
|
293
|
+
requiresHumanConfirmation: false;
|
|
294
|
+
requiresPrincipalGate: false;
|
|
295
|
+
};
|
|
296
|
+
idempotency: {
|
|
297
|
+
required: true;
|
|
298
|
+
scope: "principal";
|
|
299
|
+
};
|
|
300
|
+
inputSchema: {
|
|
301
|
+
additionalProperties: boolean;
|
|
302
|
+
properties: {
|
|
303
|
+
action: {
|
|
304
|
+
enum: string[];
|
|
305
|
+
type: string;
|
|
306
|
+
};
|
|
307
|
+
artifactId: {
|
|
308
|
+
pattern: string;
|
|
309
|
+
type: string;
|
|
310
|
+
};
|
|
311
|
+
expectedHeadSha: {
|
|
312
|
+
description: string;
|
|
313
|
+
minLength: number;
|
|
314
|
+
type: string;
|
|
315
|
+
};
|
|
316
|
+
idempotencyKey: {
|
|
317
|
+
description: string;
|
|
318
|
+
minLength: number;
|
|
319
|
+
type: string;
|
|
320
|
+
};
|
|
321
|
+
liveSessionId: {
|
|
322
|
+
description: string;
|
|
323
|
+
minLength: number;
|
|
324
|
+
type: string;
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
required: string[];
|
|
328
|
+
type: string;
|
|
329
|
+
};
|
|
330
|
+
mutability: "state-transition";
|
|
331
|
+
outputSchema: {
|
|
332
|
+
additionalProperties: boolean;
|
|
333
|
+
type: string;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
artifacts_live_control: {
|
|
337
|
+
description: string;
|
|
338
|
+
gates: {
|
|
339
|
+
requiresElicitation: false;
|
|
340
|
+
requiresHumanConfirmation: false;
|
|
341
|
+
requiresPrincipalGate: false;
|
|
342
|
+
};
|
|
343
|
+
idempotency: {
|
|
344
|
+
required: true;
|
|
345
|
+
scope: "principal";
|
|
346
|
+
};
|
|
347
|
+
inputSchema: {
|
|
348
|
+
additionalProperties: boolean;
|
|
349
|
+
properties: {
|
|
350
|
+
action: {
|
|
351
|
+
enum: string[];
|
|
352
|
+
type: string;
|
|
353
|
+
};
|
|
354
|
+
artifactId: {
|
|
355
|
+
pattern: string;
|
|
356
|
+
type: string;
|
|
357
|
+
};
|
|
358
|
+
expectedHeadSha: {
|
|
359
|
+
description: string;
|
|
360
|
+
minLength: number;
|
|
361
|
+
type: string;
|
|
362
|
+
};
|
|
363
|
+
expectedLiveRevision: {
|
|
364
|
+
description: string;
|
|
365
|
+
minLength: number;
|
|
366
|
+
type: string;
|
|
367
|
+
};
|
|
368
|
+
idempotencyKey: {
|
|
369
|
+
description: string;
|
|
370
|
+
minLength: number;
|
|
371
|
+
type: string;
|
|
372
|
+
};
|
|
373
|
+
liveSessionId: {
|
|
374
|
+
minLength: number;
|
|
375
|
+
type: string;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
required: string[];
|
|
379
|
+
type: string;
|
|
380
|
+
};
|
|
381
|
+
mutability: "state-transition";
|
|
382
|
+
outputSchema: {
|
|
383
|
+
additionalProperties: boolean;
|
|
384
|
+
type: string;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
artifacts_live_read: {
|
|
388
|
+
description: string;
|
|
389
|
+
gates: {
|
|
390
|
+
requiresElicitation: false;
|
|
391
|
+
requiresHumanConfirmation: false;
|
|
392
|
+
requiresPrincipalGate: false;
|
|
393
|
+
};
|
|
394
|
+
idempotency: {
|
|
395
|
+
required: false;
|
|
396
|
+
};
|
|
397
|
+
inputSchema: {
|
|
398
|
+
additionalProperties: boolean;
|
|
399
|
+
properties: {
|
|
400
|
+
artifactId: {
|
|
401
|
+
pattern: string;
|
|
402
|
+
type: string;
|
|
403
|
+
};
|
|
404
|
+
cursor: {
|
|
405
|
+
minLength: number;
|
|
406
|
+
type: string;
|
|
407
|
+
};
|
|
408
|
+
expectedLiveRevision: {
|
|
409
|
+
description: string;
|
|
410
|
+
minLength: number;
|
|
411
|
+
type: string;
|
|
412
|
+
};
|
|
413
|
+
paths: {
|
|
414
|
+
items: {
|
|
415
|
+
description: string;
|
|
416
|
+
minLength: number;
|
|
417
|
+
type: string;
|
|
418
|
+
};
|
|
419
|
+
minItems: number;
|
|
420
|
+
type: string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
required: string[];
|
|
424
|
+
type: string;
|
|
425
|
+
};
|
|
426
|
+
mutability: "read-only";
|
|
427
|
+
outputSchema: {
|
|
428
|
+
additionalProperties: boolean;
|
|
429
|
+
type: string;
|
|
430
|
+
};
|
|
431
|
+
};
|
|
432
|
+
artifacts_live_reset: {
|
|
433
|
+
description: string;
|
|
434
|
+
gates: {
|
|
435
|
+
requiresElicitation: false;
|
|
436
|
+
requiresHumanConfirmation: false;
|
|
437
|
+
requiresPrincipalGate: false;
|
|
438
|
+
};
|
|
439
|
+
idempotency: {
|
|
440
|
+
required: true;
|
|
441
|
+
scope: "principal";
|
|
442
|
+
};
|
|
443
|
+
inputSchema: {
|
|
444
|
+
additionalProperties: boolean;
|
|
445
|
+
properties: {
|
|
446
|
+
artifactId: {
|
|
447
|
+
pattern: string;
|
|
448
|
+
type: string;
|
|
449
|
+
};
|
|
450
|
+
expectedHeadSha: {
|
|
451
|
+
description: string;
|
|
452
|
+
minLength: number;
|
|
453
|
+
type: string;
|
|
454
|
+
};
|
|
455
|
+
expectedLiveRevision: {
|
|
456
|
+
description: string;
|
|
457
|
+
minLength: number;
|
|
458
|
+
type: string;
|
|
459
|
+
};
|
|
460
|
+
idempotencyKey: {
|
|
461
|
+
description: string;
|
|
462
|
+
minLength: number;
|
|
463
|
+
type: string;
|
|
464
|
+
};
|
|
465
|
+
};
|
|
466
|
+
required: string[];
|
|
467
|
+
type: string;
|
|
468
|
+
};
|
|
469
|
+
mutability: "state-transition";
|
|
470
|
+
outputSchema: {
|
|
471
|
+
additionalProperties: boolean;
|
|
472
|
+
type: string;
|
|
473
|
+
};
|
|
474
|
+
};
|
|
475
|
+
artifacts_live_status: {
|
|
476
|
+
description: string;
|
|
477
|
+
gates: {
|
|
478
|
+
requiresElicitation: false;
|
|
479
|
+
requiresHumanConfirmation: false;
|
|
480
|
+
requiresPrincipalGate: false;
|
|
481
|
+
};
|
|
482
|
+
idempotency: {
|
|
483
|
+
required: false;
|
|
484
|
+
};
|
|
485
|
+
inputSchema: {
|
|
486
|
+
additionalProperties: boolean;
|
|
487
|
+
properties: {
|
|
488
|
+
artifactId: {
|
|
489
|
+
pattern: string;
|
|
490
|
+
type: string;
|
|
491
|
+
};
|
|
492
|
+
cursor: {
|
|
493
|
+
minLength: number;
|
|
494
|
+
type: string;
|
|
495
|
+
};
|
|
496
|
+
includeDiff: {
|
|
497
|
+
type: string;
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
required: string[];
|
|
501
|
+
type: string;
|
|
502
|
+
};
|
|
503
|
+
mutability: "read-only";
|
|
504
|
+
outputSchema: {
|
|
505
|
+
additionalProperties: boolean;
|
|
506
|
+
type: string;
|
|
507
|
+
};
|
|
508
|
+
};
|
|
509
|
+
artifacts_live_write: {
|
|
510
|
+
description: string;
|
|
511
|
+
gates: {
|
|
512
|
+
requiresElicitation: false;
|
|
513
|
+
requiresHumanConfirmation: false;
|
|
514
|
+
requiresPrincipalGate: false;
|
|
515
|
+
};
|
|
516
|
+
idempotency: {
|
|
517
|
+
required: true;
|
|
518
|
+
scope: "principal";
|
|
519
|
+
};
|
|
520
|
+
inputSchema: {
|
|
521
|
+
additionalProperties: boolean;
|
|
522
|
+
anyOf: {
|
|
523
|
+
required: string[];
|
|
524
|
+
}[];
|
|
525
|
+
properties: {
|
|
526
|
+
artifactId: {
|
|
527
|
+
pattern: string;
|
|
528
|
+
type: string;
|
|
529
|
+
};
|
|
530
|
+
deletes: {
|
|
531
|
+
items: {
|
|
532
|
+
description: string;
|
|
533
|
+
minLength: number;
|
|
534
|
+
type: string;
|
|
535
|
+
};
|
|
536
|
+
minItems: number;
|
|
537
|
+
type: string;
|
|
538
|
+
};
|
|
539
|
+
edits: {
|
|
540
|
+
items: {
|
|
541
|
+
additionalProperties: boolean;
|
|
542
|
+
properties: {
|
|
543
|
+
newStr: {
|
|
544
|
+
type: string;
|
|
545
|
+
};
|
|
546
|
+
oldStr: {
|
|
547
|
+
minLength: number;
|
|
548
|
+
type: string;
|
|
549
|
+
};
|
|
550
|
+
path: {
|
|
551
|
+
description: string;
|
|
552
|
+
minLength: number;
|
|
553
|
+
type: string;
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
required: string[];
|
|
557
|
+
type: string;
|
|
558
|
+
};
|
|
559
|
+
minItems: number;
|
|
560
|
+
type: string;
|
|
561
|
+
};
|
|
562
|
+
expectedHeadSha: {
|
|
563
|
+
description: string;
|
|
564
|
+
minLength: number;
|
|
565
|
+
type: string;
|
|
566
|
+
};
|
|
567
|
+
expectedLiveRevision: {
|
|
568
|
+
description: string;
|
|
569
|
+
minLength: number;
|
|
570
|
+
type: string;
|
|
571
|
+
};
|
|
572
|
+
files: {
|
|
573
|
+
items: {
|
|
574
|
+
additionalProperties: boolean;
|
|
575
|
+
properties: {
|
|
576
|
+
path: {
|
|
577
|
+
description: string;
|
|
578
|
+
minLength: number;
|
|
579
|
+
type: string;
|
|
580
|
+
};
|
|
581
|
+
text: {
|
|
582
|
+
type: string;
|
|
583
|
+
};
|
|
584
|
+
};
|
|
585
|
+
required: string[];
|
|
586
|
+
type: string;
|
|
587
|
+
};
|
|
588
|
+
minItems: number;
|
|
589
|
+
type: string;
|
|
590
|
+
};
|
|
591
|
+
idempotencyKey: {
|
|
592
|
+
description: string;
|
|
593
|
+
minLength: number;
|
|
594
|
+
type: string;
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
required: string[];
|
|
598
|
+
type: string;
|
|
599
|
+
};
|
|
600
|
+
mutability: "state-transition";
|
|
601
|
+
outputSchema: {
|
|
602
|
+
additionalProperties: boolean;
|
|
603
|
+
type: string;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Frozen G0 v3 and A-LIVE v2 definition values; generated from the signed JSON blocks. */
|
|
2
|
+
export const GIT_TOOL_DEFINITIONS = {
|
|
3
|
+
artifacts_list_app_sources: { "description": "Artifacts list app sources: list the registered application sources and repositories visible to the caller. Opaque repoIds only; a source registered for reading is not necessarily writable (canWrite).", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": false }, "inputSchema": { "additionalProperties": false, "properties": { "cursor": { "maxLength": 4096, "minLength": 1, "type": "string" } }, "required": [], "type": "object" }, "mutability": "read-only", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
4
|
+
artifacts_fetch_app_source: { "description": "Artifacts fetch app source: read application source files at a server-resolved commit. artifactId resolves the bound branch; otherwise repoId and ref select the source. Oversized files are reported as omitted entries, never as failures.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": false }, "inputSchema": { "additionalProperties": false, "anyOf": [{ "required": ["artifactId"] }, { "required": ["repoId"] }], "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "cursor": { "maxLength": 4096, "minLength": 1, "type": "string" }, "paths": { "items": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "maxItems": 255, "minItems": 1, "type": "array" }, "ref": { "minLength": 1, "type": "string" }, "repoId": { "minLength": 1, "type": "string" } }, "required": [], "type": "object" }, "mutability": "read-only", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
5
|
+
artifacts_git_attach: { "description": "Artifacts git attach: attach an artifact to a dedicated branch of a registered repository, or pause, resume or detach the binding. Repository, branch prefix and sub-path are validated against the host registry; detaching never deletes the branch or the served release.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "autoPublish": { "type": "boolean" }, "baseRef": { "minLength": 1, "type": "string" }, "branch": { "minLength": 1, "type": "string" }, "detach": { "type": "boolean" }, "executor": { "enum": ["caller", "ci", "sandbox"], "type": "string" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" }, "pause": { "type": "boolean" }, "repoId": { "minLength": 1, "type": "string" }, "subPath": { "description": "Source root inside the repository; empty string means the repository root.", "type": "string" } }, "required": ["artifactId", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
6
|
+
artifacts_git_commit: { "description": "Artifacts git commit: create exactly one commit on the bound branch from edits, full text files and deletes, under a compare-and-swap on expectedHeadSha. The built output is never committed; use artifacts_git_publish to release a commit.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "anyOf": [{ "required": ["edits"] }, { "required": ["files"] }, { "required": ["deletes"] }], "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "deletes": { "description": "Paths to delete at expectedHeadSha.", "items": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" }, "edits": { "description": "Small old/new edits applied to text files at expectedHeadSha; oldStr must occur exactly once per edit.", "items": { "additionalProperties": false, "properties": { "newStr": { "type": "string" }, "oldStr": { "minLength": 1, "type": "string" }, "path": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" } }, "required": ["path", "oldStr", "newStr"], "type": "object" }, "maxItems": 100, "minItems": 1, "type": "array" }, "expectedHeadSha": { "description": "Full commit SHA of the bound branch head as returned by artifacts_fetch_app_source; the new commit is created only if the branch head still equals this value.", "minLength": 1, "type": "string" }, "files": { "description": "Full text files to create or replace at expectedHeadSha.", "items": { "additionalProperties": false, "properties": { "path": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "text": { "type": "string" } }, "required": ["path", "text"], "type": "object" }, "minItems": 1, "type": "array" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" }, "message": { "minLength": 1, "type": "string" } }, "required": ["artifactId", "expectedHeadSha", "message", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
7
|
+
artifacts_git_publish: { "description": "Artifacts git publish: request a build job for one commit of the bound branch and publication under a compare-and-swap on expectedCurrentReleaseId. Returns jobId; with the caller executor, publish-dist must submit that jobId and commitSha with the candidate. The release appears only after successful build and publication validation.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "commitSha": { "description": "Full commit SHA reachable from the bound branch; the server verifies reachability before any build.", "minLength": 1, "type": "string" }, "expectedCurrentReleaseId": { "description": "Compare the current release atomically; null requires an unpublished artifact.", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": ["string", "null"] }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" } }, "required": ["artifactId", "commitSha", "expectedCurrentReleaseId", "idempotencyKey"], "type": "object" }, "mutability": "append", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
8
|
+
artifacts_git_live: { "description": "Artifacts git live: start or stop a private live preview of the bound personal branch. Starting requires automatic publication to be disabled and the supplied head SHA to match. The preview follows committed edits without building or publishing a release.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "properties": { "action": { "enum": ["start", "stop"], "type": "string" }, "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "expectedHeadSha": { "description": "Full commit SHA of the bound branch head; required when starting a live preview.", "minLength": 1, "type": "string" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" }, "liveSessionId": { "description": "Server-issued live session identifier; required when stopping a live preview.", "minLength": 1, "type": "string" } }, "required": ["artifactId", "action", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
9
|
+
artifacts_live_control: { "description": "Artifacts live control: start or stop the bound owner's live session. Start restores the saved draft at a verified head; stop preserves the draft and decommissions the worker without publishing.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "properties": { "action": { "enum": ["start", "stop"], "type": "string" }, "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "expectedHeadSha": { "description": "Full commit SHA of the bound branch head; the server verifies the repository object format and compares the current head.", "minLength": 1, "type": "string" }, "expectedLiveRevision": { "description": "Opaque revision returned by live read or status; the server compares the complete binding generation, draft revision and base head.", "minLength": 1, "type": "string" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" }, "liveSessionId": { "minLength": 1, "type": "string" } }, "required": ["artifactId", "action", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
10
|
+
artifacts_live_read: { "description": "Artifacts live read: read a consistent snapshot of admitted live source files or a saved draft. The owner or an explicitly invited reader must hold current code rights. Reading does not start a worker.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": false }, "inputSchema": { "additionalProperties": false, "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "cursor": { "minLength": 1, "type": "string" }, "expectedLiveRevision": { "description": "Opaque revision returned by live read or status; the server compares the complete binding generation, draft revision and base head.", "minLength": 1, "type": "string" }, "paths": { "items": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" } }, "required": ["artifactId"], "type": "object" }, "mutability": "read-only", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
11
|
+
artifacts_live_reset: { "description": "Artifacts live reset: discard the complete uncommitted draft and reset the live source tree to the verified bound branch head under a revision comparison. Do not move a git ref or publish.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "expectedHeadSha": { "description": "Full commit SHA of the bound branch head; the server verifies the repository object format and compares the current head.", "minLength": 1, "type": "string" }, "expectedLiveRevision": { "description": "Opaque revision returned by live read or status; the server compares the complete binding generation, draft revision and base head.", "minLength": 1, "type": "string" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" } }, "required": ["artifactId", "expectedHeadSha", "expectedLiveRevision", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
12
|
+
artifacts_live_status: { "description": "Artifacts live status: inspect the binding's live state and optionally page the complete source diff against its base head. Report external head changes separately. Do not start a worker, commit or publish.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": false }, "inputSchema": { "additionalProperties": false, "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "cursor": { "minLength": 1, "type": "string" }, "includeDiff": { "type": "boolean" } }, "required": ["artifactId"], "type": "object" }, "mutability": "read-only", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
13
|
+
artifacts_live_write: { "description": "Artifacts live write: atomically apply text edits, full text files and deletes to the bound owner's live source tree. Revive the live worker when needed. Persist the draft before acknowledging; do not commit or publish.", "gates": { "requiresElicitation": false, "requiresHumanConfirmation": false, "requiresPrincipalGate": false }, "idempotency": { "required": true, "scope": "principal" }, "inputSchema": { "additionalProperties": false, "anyOf": [{ "required": ["edits"] }, { "required": ["files"] }, { "required": ["deletes"] }], "properties": { "artifactId": { "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "type": "string" }, "deletes": { "items": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "minItems": 1, "type": "array" }, "edits": { "items": { "additionalProperties": false, "properties": { "newStr": { "type": "string" }, "oldStr": { "minLength": 1, "type": "string" }, "path": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" } }, "required": ["path", "oldStr", "newStr"], "type": "object" }, "minItems": 1, "type": "array" }, "expectedHeadSha": { "description": "Full commit SHA of the bound branch head; the server verifies the repository object format and compares the current head.", "minLength": 1, "type": "string" }, "expectedLiveRevision": { "description": "Opaque revision returned by live read or status; the server compares the complete binding generation, draft revision and base head.", "minLength": 1, "type": "string" }, "files": { "items": { "additionalProperties": false, "properties": { "path": { "description": "Repository path relative to the binding sub-path; the active profile bounds its byte length and forbids reserved or dot segments, enforced server-side with typed errors.", "minLength": 1, "type": "string" }, "text": { "type": "string" } }, "required": ["path", "text"], "type": "object" }, "minItems": 1, "type": "array" }, "idempotencyKey": { "description": "Nonblank by JavaScript trim(); the active profile bounds its length in UTF-16 units; original bytes retained.", "minLength": 1, "type": "string" } }, "required": ["artifactId", "expectedHeadSha", "expectedLiveRevision", "idempotencyKey"], "type": "object" }, "mutability": "state-transition", "outputSchema": { "additionalProperties": true, "type": "object" } },
|
|
14
|
+
};
|
package/dist/http.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ import type { ArtifactReaderStore } from './server/reader-store.js';
|
|
|
12
12
|
import type { LifecycleService } from './server/lifecycle.js';
|
|
13
13
|
import { type ArtifactInvocationContext, type ArtifactCommitCoordinator } from './server/commit/types.js';
|
|
14
14
|
import { type ArtifactOutcome, type ArtifactHostFailureMapper } from './server/failures.js';
|
|
15
|
+
import { type GitProjectionPorts } from './server/git-projection.js';
|
|
16
|
+
import type { LiveService } from './server/live-contracts.js';
|
|
15
17
|
import { type ManagementUnit, type ArtifactConfirmationPort } from './server/management.js';
|
|
16
18
|
import type { FinalizeTxClient } from './server/commit/types.js';
|
|
17
19
|
import type { SourceStore } from './server/sources.js';
|
|
@@ -35,6 +37,10 @@ export declare function errorBody(status: number): {
|
|
|
35
37
|
error: string;
|
|
36
38
|
};
|
|
37
39
|
export interface HttpAppDeps {
|
|
40
|
+
/** AL-T/AL-D: trusted service; absence is a closed capability refusal. */
|
|
41
|
+
live?: LiveService;
|
|
42
|
+
/** SG1: host repository code access, independent of page/source grants. */
|
|
43
|
+
git?: GitProjectionPorts;
|
|
38
44
|
/** Trusted mapping of host wrapper errors; causes remain private. Also bind on the coordinator. */
|
|
39
45
|
mapHostError?: ArtifactHostFailureMapper;
|
|
40
46
|
profile: CompiledArtifactsProfile;
|