@treeseed/sdk 0.13.0-rc.101 → 0.13.0-rc.102
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/.treeseed-build-complete.json +1 -1
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +24 -24
- package/dist/content/validation/content-model-schemas.d.ts +44 -44
- package/dist/content/validation/portable-content-data.d.ts +4 -4
- package/dist/deployment/postgres/contracts.d.ts +51 -32
- package/dist/deployment/postgres/contracts.js +2 -0
- package/dist/deployment/schemas.d.ts +204 -6
- package/dist/deployment/schemas.js +5 -0
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +3 -3
- package/dist/operator-contracts/control-plane-operations.d.ts +3 -3
- package/dist/operator-contracts/inbox/contracts.d.ts +16 -16
- package/package.json +1 -1
|
@@ -22,6 +22,25 @@ export declare const postgresRequirementSchema: z.ZodObject<{
|
|
|
22
22
|
extensions: string[];
|
|
23
23
|
runtimeConnectionLimit: number;
|
|
24
24
|
}>;
|
|
25
|
+
/** Immutable component requirement. Installation activation supplies componentId/enabled. */
|
|
26
|
+
export declare const postgresComponentRequirementSchema: z.ZodObject<Omit<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
componentId: z.ZodString;
|
|
29
|
+
enabled: z.ZodBoolean;
|
|
30
|
+
supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
|
|
31
|
+
extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
|
|
32
|
+
runtimeConnectionLimit: z.ZodNumber;
|
|
33
|
+
}, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
|
|
34
|
+
id: string;
|
|
35
|
+
supportedMajors: [number, ...number[]];
|
|
36
|
+
extensions: string[];
|
|
37
|
+
runtimeConnectionLimit: number;
|
|
38
|
+
}, {
|
|
39
|
+
id: string;
|
|
40
|
+
supportedMajors: [number, ...number[]];
|
|
41
|
+
extensions: string[];
|
|
42
|
+
runtimeConnectionLimit: number;
|
|
43
|
+
}>;
|
|
25
44
|
/** Deployment owns the selected server and its bootstrap authority. No credentials here. */
|
|
26
45
|
export declare const postgresServerSchema: z.ZodObject<{
|
|
27
46
|
id: z.ZodString;
|
|
@@ -44,30 +63,30 @@ export declare const postgresServerSchema: z.ZodObject<{
|
|
|
44
63
|
}>;
|
|
45
64
|
}, "strict", z.ZodTypeAny, {
|
|
46
65
|
id: string;
|
|
47
|
-
mode: "
|
|
66
|
+
mode: "shared" | "dedicated" | "external";
|
|
48
67
|
environment: "production" | "staging";
|
|
49
68
|
port: number;
|
|
50
69
|
major: number;
|
|
70
|
+
extensions: string[];
|
|
71
|
+
installationId: string;
|
|
72
|
+
hostname: string;
|
|
51
73
|
tls: {
|
|
52
74
|
mode: "verify-full";
|
|
53
75
|
trustReference: string;
|
|
54
76
|
};
|
|
55
|
-
extensions: string[];
|
|
56
|
-
installationId: string;
|
|
57
|
-
hostname: string;
|
|
58
77
|
}, {
|
|
59
78
|
id: string;
|
|
60
|
-
mode: "
|
|
79
|
+
mode: "shared" | "dedicated" | "external";
|
|
61
80
|
environment: "production" | "staging";
|
|
62
81
|
port: number;
|
|
63
82
|
major: number;
|
|
83
|
+
extensions: string[];
|
|
84
|
+
installationId: string;
|
|
85
|
+
hostname: string;
|
|
64
86
|
tls: {
|
|
65
87
|
mode: "verify-full";
|
|
66
88
|
trustReference: string;
|
|
67
89
|
};
|
|
68
|
-
extensions: string[];
|
|
69
|
-
installationId: string;
|
|
70
|
-
hostname: string;
|
|
71
90
|
}>;
|
|
72
91
|
export declare const postgresAllocationSchema: z.ZodEffects<z.ZodObject<{
|
|
73
92
|
requirementId: z.ZodString;
|
|
@@ -146,30 +165,30 @@ export declare const postgresTopologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
146
165
|
}>;
|
|
147
166
|
}, "strict", z.ZodTypeAny, {
|
|
148
167
|
id: string;
|
|
149
|
-
mode: "
|
|
168
|
+
mode: "shared" | "dedicated" | "external";
|
|
150
169
|
environment: "production" | "staging";
|
|
151
170
|
port: number;
|
|
152
171
|
major: number;
|
|
172
|
+
extensions: string[];
|
|
173
|
+
installationId: string;
|
|
174
|
+
hostname: string;
|
|
153
175
|
tls: {
|
|
154
176
|
mode: "verify-full";
|
|
155
177
|
trustReference: string;
|
|
156
178
|
};
|
|
157
|
-
extensions: string[];
|
|
158
|
-
installationId: string;
|
|
159
|
-
hostname: string;
|
|
160
179
|
}, {
|
|
161
180
|
id: string;
|
|
162
|
-
mode: "
|
|
181
|
+
mode: "shared" | "dedicated" | "external";
|
|
163
182
|
environment: "production" | "staging";
|
|
164
183
|
port: number;
|
|
165
184
|
major: number;
|
|
185
|
+
extensions: string[];
|
|
186
|
+
installationId: string;
|
|
187
|
+
hostname: string;
|
|
166
188
|
tls: {
|
|
167
189
|
mode: "verify-full";
|
|
168
190
|
trustReference: string;
|
|
169
191
|
};
|
|
170
|
-
extensions: string[];
|
|
171
|
-
installationId: string;
|
|
172
|
-
hostname: string;
|
|
173
192
|
}>, "many">;
|
|
174
193
|
requirements: z.ZodArray<z.ZodObject<{
|
|
175
194
|
id: z.ZodString;
|
|
@@ -250,17 +269,17 @@ export declare const postgresTopologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
250
269
|
installationId: string;
|
|
251
270
|
servers: {
|
|
252
271
|
id: string;
|
|
253
|
-
mode: "
|
|
272
|
+
mode: "shared" | "dedicated" | "external";
|
|
254
273
|
environment: "production" | "staging";
|
|
255
274
|
port: number;
|
|
256
275
|
major: number;
|
|
276
|
+
extensions: string[];
|
|
277
|
+
installationId: string;
|
|
278
|
+
hostname: string;
|
|
257
279
|
tls: {
|
|
258
280
|
mode: "verify-full";
|
|
259
281
|
trustReference: string;
|
|
260
282
|
};
|
|
261
|
-
extensions: string[];
|
|
262
|
-
installationId: string;
|
|
263
|
-
hostname: string;
|
|
264
283
|
}[];
|
|
265
284
|
requirements: {
|
|
266
285
|
id: string;
|
|
@@ -287,17 +306,17 @@ export declare const postgresTopologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
287
306
|
installationId: string;
|
|
288
307
|
servers: {
|
|
289
308
|
id: string;
|
|
290
|
-
mode: "
|
|
309
|
+
mode: "shared" | "dedicated" | "external";
|
|
291
310
|
environment: "production" | "staging";
|
|
292
311
|
port: number;
|
|
293
312
|
major: number;
|
|
313
|
+
extensions: string[];
|
|
314
|
+
installationId: string;
|
|
315
|
+
hostname: string;
|
|
294
316
|
tls: {
|
|
295
317
|
mode: "verify-full";
|
|
296
318
|
trustReference: string;
|
|
297
319
|
};
|
|
298
|
-
extensions: string[];
|
|
299
|
-
installationId: string;
|
|
300
|
-
hostname: string;
|
|
301
320
|
}[];
|
|
302
321
|
requirements: {
|
|
303
322
|
id: string;
|
|
@@ -324,17 +343,17 @@ export declare const postgresTopologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
324
343
|
installationId: string;
|
|
325
344
|
servers: {
|
|
326
345
|
id: string;
|
|
327
|
-
mode: "
|
|
346
|
+
mode: "shared" | "dedicated" | "external";
|
|
328
347
|
environment: "production" | "staging";
|
|
329
348
|
port: number;
|
|
330
349
|
major: number;
|
|
350
|
+
extensions: string[];
|
|
351
|
+
installationId: string;
|
|
352
|
+
hostname: string;
|
|
331
353
|
tls: {
|
|
332
354
|
mode: "verify-full";
|
|
333
355
|
trustReference: string;
|
|
334
356
|
};
|
|
335
|
-
extensions: string[];
|
|
336
|
-
installationId: string;
|
|
337
|
-
hostname: string;
|
|
338
357
|
}[];
|
|
339
358
|
requirements: {
|
|
340
359
|
id: string;
|
|
@@ -361,17 +380,17 @@ export declare const postgresTopologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
361
380
|
installationId: string;
|
|
362
381
|
servers: {
|
|
363
382
|
id: string;
|
|
364
|
-
mode: "
|
|
383
|
+
mode: "shared" | "dedicated" | "external";
|
|
365
384
|
environment: "production" | "staging";
|
|
366
385
|
port: number;
|
|
367
386
|
major: number;
|
|
387
|
+
extensions: string[];
|
|
388
|
+
installationId: string;
|
|
389
|
+
hostname: string;
|
|
368
390
|
tls: {
|
|
369
391
|
mode: "verify-full";
|
|
370
392
|
trustReference: string;
|
|
371
393
|
};
|
|
372
|
-
extensions: string[];
|
|
373
|
-
installationId: string;
|
|
374
|
-
hostname: string;
|
|
375
394
|
}[];
|
|
376
395
|
requirements: {
|
|
377
396
|
id: string;
|
|
@@ -10,6 +10,7 @@ const postgresRequirementSchema = z.object({
|
|
|
10
10
|
extensions: z.array(sqlName).refine(unique),
|
|
11
11
|
runtimeConnectionLimit: z.number().int().min(1).max(1e3)
|
|
12
12
|
}).strict();
|
|
13
|
+
const postgresComponentRequirementSchema = postgresRequirementSchema.omit({ componentId: true, enabled: true });
|
|
13
14
|
const postgresServerSchema = z.object({
|
|
14
15
|
id,
|
|
15
16
|
installationId: id,
|
|
@@ -71,6 +72,7 @@ const postgresTopologySchema = z.object({
|
|
|
71
72
|
});
|
|
72
73
|
export {
|
|
73
74
|
postgresAllocationSchema,
|
|
75
|
+
postgresComponentRequirementSchema,
|
|
74
76
|
postgresRequirementSchema,
|
|
75
77
|
postgresServerSchema,
|
|
76
78
|
postgresTopologySchema
|
|
@@ -575,18 +575,18 @@ export declare const hostConfigurationSchema: z.ZodObject<{
|
|
|
575
575
|
dataRoot: z.ZodOptional<z.ZodString>;
|
|
576
576
|
}, "strict", z.ZodTypeAny, {
|
|
577
577
|
environment: "development" | "production";
|
|
578
|
-
management: "
|
|
578
|
+
management: "external" | "managed";
|
|
579
579
|
dataRoot?: string | undefined;
|
|
580
580
|
}, {
|
|
581
|
-
management: "
|
|
581
|
+
management: "external" | "managed";
|
|
582
582
|
environment?: "development" | "production" | undefined;
|
|
583
583
|
dataRoot?: string | undefined;
|
|
584
584
|
}>, {
|
|
585
585
|
environment: "development" | "production";
|
|
586
|
-
management: "
|
|
586
|
+
management: "external" | "managed";
|
|
587
587
|
dataRoot?: string | undefined;
|
|
588
588
|
}, {
|
|
589
|
-
management: "
|
|
589
|
+
management: "external" | "managed";
|
|
590
590
|
environment?: "development" | "production" | undefined;
|
|
591
591
|
dataRoot?: string | undefined;
|
|
592
592
|
}>;
|
|
@@ -1450,7 +1450,7 @@ export declare const hostConfigurationSchema: z.ZodObject<{
|
|
|
1450
1450
|
schemaVersion: "treeseed.host/v1";
|
|
1451
1451
|
runtime: {
|
|
1452
1452
|
environment: "development" | "production";
|
|
1453
|
-
management: "
|
|
1453
|
+
management: "external" | "managed";
|
|
1454
1454
|
dataRoot?: string | undefined;
|
|
1455
1455
|
};
|
|
1456
1456
|
components: Record<string, {
|
|
@@ -1589,7 +1589,7 @@ export declare const hostConfigurationSchema: z.ZodObject<{
|
|
|
1589
1589
|
}, {
|
|
1590
1590
|
schemaVersion: "treeseed.host/v1";
|
|
1591
1591
|
runtime: {
|
|
1592
|
-
management: "
|
|
1592
|
+
management: "external" | "managed";
|
|
1593
1593
|
environment?: "development" | "production" | undefined;
|
|
1594
1594
|
dataRoot?: string | undefined;
|
|
1595
1595
|
};
|
|
@@ -2009,6 +2009,24 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2009
2009
|
default?: string | undefined;
|
|
2010
2010
|
}[] | undefined;
|
|
2011
2011
|
} | undefined>;
|
|
2012
|
+
postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
2013
|
+
id: z.ZodString;
|
|
2014
|
+
componentId: z.ZodString;
|
|
2015
|
+
enabled: z.ZodBoolean;
|
|
2016
|
+
supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
|
|
2017
|
+
extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
|
|
2018
|
+
runtimeConnectionLimit: z.ZodNumber;
|
|
2019
|
+
}, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
|
|
2020
|
+
id: string;
|
|
2021
|
+
supportedMajors: [number, ...number[]];
|
|
2022
|
+
extensions: string[];
|
|
2023
|
+
runtimeConnectionLimit: number;
|
|
2024
|
+
}, {
|
|
2025
|
+
id: string;
|
|
2026
|
+
supportedMajors: [number, ...number[]];
|
|
2027
|
+
extensions: string[];
|
|
2028
|
+
runtimeConnectionLimit: number;
|
|
2029
|
+
}>, "many">>;
|
|
2012
2030
|
services: z.ZodArray<z.ZodObject<{
|
|
2013
2031
|
id: z.ZodString;
|
|
2014
2032
|
composeService: z.ZodString;
|
|
@@ -2316,6 +2334,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2316
2334
|
backupRequired: boolean;
|
|
2317
2335
|
}[];
|
|
2318
2336
|
requiredCapabilities: string[];
|
|
2337
|
+
postgresRequirements?: {
|
|
2338
|
+
id: string;
|
|
2339
|
+
supportedMajors: [number, ...number[]];
|
|
2340
|
+
extensions: string[];
|
|
2341
|
+
runtimeConnectionLimit: number;
|
|
2342
|
+
}[] | undefined;
|
|
2319
2343
|
modeControl?: {
|
|
2320
2344
|
resource: "ai-gpu";
|
|
2321
2345
|
role: "inference" | "training" | "controller";
|
|
@@ -2405,6 +2429,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2405
2429
|
default?: string | undefined;
|
|
2406
2430
|
}[] | undefined;
|
|
2407
2431
|
} | undefined;
|
|
2432
|
+
postgresRequirements?: {
|
|
2433
|
+
id: string;
|
|
2434
|
+
supportedMajors: [number, ...number[]];
|
|
2435
|
+
extensions: string[];
|
|
2436
|
+
runtimeConnectionLimit: number;
|
|
2437
|
+
}[] | undefined;
|
|
2408
2438
|
modeControl?: {
|
|
2409
2439
|
resource: "ai-gpu";
|
|
2410
2440
|
role: "inference" | "training" | "controller";
|
|
@@ -2494,6 +2524,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2494
2524
|
backupRequired: boolean;
|
|
2495
2525
|
}[];
|
|
2496
2526
|
requiredCapabilities: string[];
|
|
2527
|
+
postgresRequirements?: {
|
|
2528
|
+
id: string;
|
|
2529
|
+
supportedMajors: [number, ...number[]];
|
|
2530
|
+
extensions: string[];
|
|
2531
|
+
runtimeConnectionLimit: number;
|
|
2532
|
+
}[] | undefined;
|
|
2497
2533
|
modeControl?: {
|
|
2498
2534
|
resource: "ai-gpu";
|
|
2499
2535
|
role: "inference" | "training" | "controller";
|
|
@@ -2583,6 +2619,12 @@ export declare const packageRuntimeSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2583
2619
|
default?: string | undefined;
|
|
2584
2620
|
}[] | undefined;
|
|
2585
2621
|
} | undefined;
|
|
2622
|
+
postgresRequirements?: {
|
|
2623
|
+
id: string;
|
|
2624
|
+
supportedMajors: [number, ...number[]];
|
|
2625
|
+
extensions: string[];
|
|
2626
|
+
runtimeConnectionLimit: number;
|
|
2627
|
+
}[] | undefined;
|
|
2586
2628
|
modeControl?: {
|
|
2587
2629
|
resource: "ai-gpu";
|
|
2588
2630
|
role: "inference" | "training" | "controller";
|
|
@@ -2873,6 +2915,24 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
2873
2915
|
default?: string | undefined;
|
|
2874
2916
|
}[] | undefined;
|
|
2875
2917
|
} | undefined>;
|
|
2918
|
+
postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
2919
|
+
id: z.ZodString;
|
|
2920
|
+
componentId: z.ZodString;
|
|
2921
|
+
enabled: z.ZodBoolean;
|
|
2922
|
+
supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
|
|
2923
|
+
extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
|
|
2924
|
+
runtimeConnectionLimit: z.ZodNumber;
|
|
2925
|
+
}, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
|
|
2926
|
+
id: string;
|
|
2927
|
+
supportedMajors: [number, ...number[]];
|
|
2928
|
+
extensions: string[];
|
|
2929
|
+
runtimeConnectionLimit: number;
|
|
2930
|
+
}, {
|
|
2931
|
+
id: string;
|
|
2932
|
+
supportedMajors: [number, ...number[]];
|
|
2933
|
+
extensions: string[];
|
|
2934
|
+
runtimeConnectionLimit: number;
|
|
2935
|
+
}>, "many">>;
|
|
2876
2936
|
services: z.ZodArray<z.ZodObject<{
|
|
2877
2937
|
id: z.ZodString;
|
|
2878
2938
|
composeService: z.ZodString;
|
|
@@ -3180,6 +3240,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3180
3240
|
backupRequired: boolean;
|
|
3181
3241
|
}[];
|
|
3182
3242
|
requiredCapabilities: string[];
|
|
3243
|
+
postgresRequirements?: {
|
|
3244
|
+
id: string;
|
|
3245
|
+
supportedMajors: [number, ...number[]];
|
|
3246
|
+
extensions: string[];
|
|
3247
|
+
runtimeConnectionLimit: number;
|
|
3248
|
+
}[] | undefined;
|
|
3183
3249
|
modeControl?: {
|
|
3184
3250
|
resource: "ai-gpu";
|
|
3185
3251
|
role: "inference" | "training" | "controller";
|
|
@@ -3269,6 +3335,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3269
3335
|
default?: string | undefined;
|
|
3270
3336
|
}[] | undefined;
|
|
3271
3337
|
} | undefined;
|
|
3338
|
+
postgresRequirements?: {
|
|
3339
|
+
id: string;
|
|
3340
|
+
supportedMajors: [number, ...number[]];
|
|
3341
|
+
extensions: string[];
|
|
3342
|
+
runtimeConnectionLimit: number;
|
|
3343
|
+
}[] | undefined;
|
|
3272
3344
|
modeControl?: {
|
|
3273
3345
|
resource: "ai-gpu";
|
|
3274
3346
|
role: "inference" | "training" | "controller";
|
|
@@ -3358,6 +3430,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3358
3430
|
backupRequired: boolean;
|
|
3359
3431
|
}[];
|
|
3360
3432
|
requiredCapabilities: string[];
|
|
3433
|
+
postgresRequirements?: {
|
|
3434
|
+
id: string;
|
|
3435
|
+
supportedMajors: [number, ...number[]];
|
|
3436
|
+
extensions: string[];
|
|
3437
|
+
runtimeConnectionLimit: number;
|
|
3438
|
+
}[] | undefined;
|
|
3361
3439
|
modeControl?: {
|
|
3362
3440
|
resource: "ai-gpu";
|
|
3363
3441
|
role: "inference" | "training" | "controller";
|
|
@@ -3447,6 +3525,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3447
3525
|
default?: string | undefined;
|
|
3448
3526
|
}[] | undefined;
|
|
3449
3527
|
} | undefined;
|
|
3528
|
+
postgresRequirements?: {
|
|
3529
|
+
id: string;
|
|
3530
|
+
supportedMajors: [number, ...number[]];
|
|
3531
|
+
extensions: string[];
|
|
3532
|
+
runtimeConnectionLimit: number;
|
|
3533
|
+
}[] | undefined;
|
|
3450
3534
|
modeControl?: {
|
|
3451
3535
|
resource: "ai-gpu";
|
|
3452
3536
|
role: "inference" | "training" | "controller";
|
|
@@ -3563,6 +3647,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3563
3647
|
backupRequired: boolean;
|
|
3564
3648
|
}[];
|
|
3565
3649
|
requiredCapabilities: string[];
|
|
3650
|
+
postgresRequirements?: {
|
|
3651
|
+
id: string;
|
|
3652
|
+
supportedMajors: [number, ...number[]];
|
|
3653
|
+
extensions: string[];
|
|
3654
|
+
runtimeConnectionLimit: number;
|
|
3655
|
+
}[] | undefined;
|
|
3566
3656
|
modeControl?: {
|
|
3567
3657
|
resource: "ai-gpu";
|
|
3568
3658
|
role: "inference" | "training" | "controller";
|
|
@@ -3693,6 +3783,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3693
3783
|
default?: string | undefined;
|
|
3694
3784
|
}[] | undefined;
|
|
3695
3785
|
} | undefined;
|
|
3786
|
+
postgresRequirements?: {
|
|
3787
|
+
id: string;
|
|
3788
|
+
supportedMajors: [number, ...number[]];
|
|
3789
|
+
extensions: string[];
|
|
3790
|
+
runtimeConnectionLimit: number;
|
|
3791
|
+
}[] | undefined;
|
|
3696
3792
|
modeControl?: {
|
|
3697
3793
|
resource: "ai-gpu";
|
|
3698
3794
|
role: "inference" | "training" | "controller";
|
|
@@ -3823,6 +3919,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3823
3919
|
backupRequired: boolean;
|
|
3824
3920
|
}[];
|
|
3825
3921
|
requiredCapabilities: string[];
|
|
3922
|
+
postgresRequirements?: {
|
|
3923
|
+
id: string;
|
|
3924
|
+
supportedMajors: [number, ...number[]];
|
|
3925
|
+
extensions: string[];
|
|
3926
|
+
runtimeConnectionLimit: number;
|
|
3927
|
+
}[] | undefined;
|
|
3826
3928
|
modeControl?: {
|
|
3827
3929
|
resource: "ai-gpu";
|
|
3828
3930
|
role: "inference" | "training" | "controller";
|
|
@@ -3953,6 +4055,12 @@ export declare const componentReleaseSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3953
4055
|
default?: string | undefined;
|
|
3954
4056
|
}[] | undefined;
|
|
3955
4057
|
} | undefined;
|
|
4058
|
+
postgresRequirements?: {
|
|
4059
|
+
id: string;
|
|
4060
|
+
supportedMajors: [number, ...number[]];
|
|
4061
|
+
extensions: string[];
|
|
4062
|
+
runtimeConnectionLimit: number;
|
|
4063
|
+
}[] | undefined;
|
|
3956
4064
|
modeControl?: {
|
|
3957
4065
|
resource: "ai-gpu";
|
|
3958
4066
|
role: "inference" | "training" | "controller";
|
|
@@ -4752,6 +4860,24 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4752
4860
|
default?: string | undefined;
|
|
4753
4861
|
}[] | undefined;
|
|
4754
4862
|
} | undefined>;
|
|
4863
|
+
postgresRequirements: z.ZodOptional<z.ZodArray<z.ZodObject<Omit<{
|
|
4864
|
+
id: z.ZodString;
|
|
4865
|
+
componentId: z.ZodString;
|
|
4866
|
+
enabled: z.ZodBoolean;
|
|
4867
|
+
supportedMajors: z.ZodEffects<z.ZodArray<z.ZodNumber, "atleastone">, [number, ...number[]], [number, ...number[]]>;
|
|
4868
|
+
extensions: z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">, string[], string[]>;
|
|
4869
|
+
runtimeConnectionLimit: z.ZodNumber;
|
|
4870
|
+
}, "componentId" | "enabled">, "strict", z.ZodTypeAny, {
|
|
4871
|
+
id: string;
|
|
4872
|
+
supportedMajors: [number, ...number[]];
|
|
4873
|
+
extensions: string[];
|
|
4874
|
+
runtimeConnectionLimit: number;
|
|
4875
|
+
}, {
|
|
4876
|
+
id: string;
|
|
4877
|
+
supportedMajors: [number, ...number[]];
|
|
4878
|
+
extensions: string[];
|
|
4879
|
+
runtimeConnectionLimit: number;
|
|
4880
|
+
}>, "many">>;
|
|
4755
4881
|
services: z.ZodArray<z.ZodObject<{
|
|
4756
4882
|
id: z.ZodString;
|
|
4757
4883
|
composeService: z.ZodString;
|
|
@@ -5059,6 +5185,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5059
5185
|
backupRequired: boolean;
|
|
5060
5186
|
}[];
|
|
5061
5187
|
requiredCapabilities: string[];
|
|
5188
|
+
postgresRequirements?: {
|
|
5189
|
+
id: string;
|
|
5190
|
+
supportedMajors: [number, ...number[]];
|
|
5191
|
+
extensions: string[];
|
|
5192
|
+
runtimeConnectionLimit: number;
|
|
5193
|
+
}[] | undefined;
|
|
5062
5194
|
modeControl?: {
|
|
5063
5195
|
resource: "ai-gpu";
|
|
5064
5196
|
role: "inference" | "training" | "controller";
|
|
@@ -5148,6 +5280,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5148
5280
|
default?: string | undefined;
|
|
5149
5281
|
}[] | undefined;
|
|
5150
5282
|
} | undefined;
|
|
5283
|
+
postgresRequirements?: {
|
|
5284
|
+
id: string;
|
|
5285
|
+
supportedMajors: [number, ...number[]];
|
|
5286
|
+
extensions: string[];
|
|
5287
|
+
runtimeConnectionLimit: number;
|
|
5288
|
+
}[] | undefined;
|
|
5151
5289
|
modeControl?: {
|
|
5152
5290
|
resource: "ai-gpu";
|
|
5153
5291
|
role: "inference" | "training" | "controller";
|
|
@@ -5237,6 +5375,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5237
5375
|
backupRequired: boolean;
|
|
5238
5376
|
}[];
|
|
5239
5377
|
requiredCapabilities: string[];
|
|
5378
|
+
postgresRequirements?: {
|
|
5379
|
+
id: string;
|
|
5380
|
+
supportedMajors: [number, ...number[]];
|
|
5381
|
+
extensions: string[];
|
|
5382
|
+
runtimeConnectionLimit: number;
|
|
5383
|
+
}[] | undefined;
|
|
5240
5384
|
modeControl?: {
|
|
5241
5385
|
resource: "ai-gpu";
|
|
5242
5386
|
role: "inference" | "training" | "controller";
|
|
@@ -5326,6 +5470,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5326
5470
|
default?: string | undefined;
|
|
5327
5471
|
}[] | undefined;
|
|
5328
5472
|
} | undefined;
|
|
5473
|
+
postgresRequirements?: {
|
|
5474
|
+
id: string;
|
|
5475
|
+
supportedMajors: [number, ...number[]];
|
|
5476
|
+
extensions: string[];
|
|
5477
|
+
runtimeConnectionLimit: number;
|
|
5478
|
+
}[] | undefined;
|
|
5329
5479
|
modeControl?: {
|
|
5330
5480
|
resource: "ai-gpu";
|
|
5331
5481
|
role: "inference" | "training" | "controller";
|
|
@@ -5442,6 +5592,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5442
5592
|
backupRequired: boolean;
|
|
5443
5593
|
}[];
|
|
5444
5594
|
requiredCapabilities: string[];
|
|
5595
|
+
postgresRequirements?: {
|
|
5596
|
+
id: string;
|
|
5597
|
+
supportedMajors: [number, ...number[]];
|
|
5598
|
+
extensions: string[];
|
|
5599
|
+
runtimeConnectionLimit: number;
|
|
5600
|
+
}[] | undefined;
|
|
5445
5601
|
modeControl?: {
|
|
5446
5602
|
resource: "ai-gpu";
|
|
5447
5603
|
role: "inference" | "training" | "controller";
|
|
@@ -5572,6 +5728,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5572
5728
|
default?: string | undefined;
|
|
5573
5729
|
}[] | undefined;
|
|
5574
5730
|
} | undefined;
|
|
5731
|
+
postgresRequirements?: {
|
|
5732
|
+
id: string;
|
|
5733
|
+
supportedMajors: [number, ...number[]];
|
|
5734
|
+
extensions: string[];
|
|
5735
|
+
runtimeConnectionLimit: number;
|
|
5736
|
+
}[] | undefined;
|
|
5575
5737
|
modeControl?: {
|
|
5576
5738
|
resource: "ai-gpu";
|
|
5577
5739
|
role: "inference" | "training" | "controller";
|
|
@@ -5702,6 +5864,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5702
5864
|
backupRequired: boolean;
|
|
5703
5865
|
}[];
|
|
5704
5866
|
requiredCapabilities: string[];
|
|
5867
|
+
postgresRequirements?: {
|
|
5868
|
+
id: string;
|
|
5869
|
+
supportedMajors: [number, ...number[]];
|
|
5870
|
+
extensions: string[];
|
|
5871
|
+
runtimeConnectionLimit: number;
|
|
5872
|
+
}[] | undefined;
|
|
5705
5873
|
modeControl?: {
|
|
5706
5874
|
resource: "ai-gpu";
|
|
5707
5875
|
role: "inference" | "training" | "controller";
|
|
@@ -5832,6 +6000,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5832
6000
|
default?: string | undefined;
|
|
5833
6001
|
}[] | undefined;
|
|
5834
6002
|
} | undefined;
|
|
6003
|
+
postgresRequirements?: {
|
|
6004
|
+
id: string;
|
|
6005
|
+
supportedMajors: [number, ...number[]];
|
|
6006
|
+
extensions: string[];
|
|
6007
|
+
runtimeConnectionLimit: number;
|
|
6008
|
+
}[] | undefined;
|
|
5835
6009
|
modeControl?: {
|
|
5836
6010
|
resource: "ai-gpu";
|
|
5837
6011
|
role: "inference" | "training" | "controller";
|
|
@@ -6078,6 +6252,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6078
6252
|
backupRequired: boolean;
|
|
6079
6253
|
}[];
|
|
6080
6254
|
requiredCapabilities: string[];
|
|
6255
|
+
postgresRequirements?: {
|
|
6256
|
+
id: string;
|
|
6257
|
+
supportedMajors: [number, ...number[]];
|
|
6258
|
+
extensions: string[];
|
|
6259
|
+
runtimeConnectionLimit: number;
|
|
6260
|
+
}[] | undefined;
|
|
6081
6261
|
modeControl?: {
|
|
6082
6262
|
resource: "ai-gpu";
|
|
6083
6263
|
role: "inference" | "training" | "controller";
|
|
@@ -6240,6 +6420,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6240
6420
|
default?: string | undefined;
|
|
6241
6421
|
}[] | undefined;
|
|
6242
6422
|
} | undefined;
|
|
6423
|
+
postgresRequirements?: {
|
|
6424
|
+
id: string;
|
|
6425
|
+
supportedMajors: [number, ...number[]];
|
|
6426
|
+
extensions: string[];
|
|
6427
|
+
runtimeConnectionLimit: number;
|
|
6428
|
+
}[] | undefined;
|
|
6243
6429
|
modeControl?: {
|
|
6244
6430
|
resource: "ai-gpu";
|
|
6245
6431
|
role: "inference" | "training" | "controller";
|
|
@@ -6402,6 +6588,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6402
6588
|
backupRequired: boolean;
|
|
6403
6589
|
}[];
|
|
6404
6590
|
requiredCapabilities: string[];
|
|
6591
|
+
postgresRequirements?: {
|
|
6592
|
+
id: string;
|
|
6593
|
+
supportedMajors: [number, ...number[]];
|
|
6594
|
+
extensions: string[];
|
|
6595
|
+
runtimeConnectionLimit: number;
|
|
6596
|
+
}[] | undefined;
|
|
6405
6597
|
modeControl?: {
|
|
6406
6598
|
resource: "ai-gpu";
|
|
6407
6599
|
role: "inference" | "training" | "controller";
|
|
@@ -6564,6 +6756,12 @@ export declare const releaseCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6564
6756
|
default?: string | undefined;
|
|
6565
6757
|
}[] | undefined;
|
|
6566
6758
|
} | undefined;
|
|
6759
|
+
postgresRequirements?: {
|
|
6760
|
+
id: string;
|
|
6761
|
+
supportedMajors: [number, ...number[]];
|
|
6762
|
+
extensions: string[];
|
|
6763
|
+
runtimeConnectionLimit: number;
|
|
6764
|
+
}[] | undefined;
|
|
6567
6765
|
modeControl?: {
|
|
6568
6766
|
resource: "ai-gpu";
|
|
6569
6767
|
role: "inference" | "training" | "controller";
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AI_MODE_INTERNAL_PATH } from "./ai-mode.js";
|
|
3
|
+
import { postgresComponentRequirementSchema } from "./postgres/contracts.js";
|
|
3
4
|
const identifier = z.string().regex(/^[a-z][a-z0-9.-]{1,63}$/u);
|
|
4
5
|
const digest = z.string().regex(/^sha256:[a-f0-9]{64}$/u);
|
|
5
6
|
const gitCommit = z.string().regex(/^[a-f0-9]{40}$/u);
|
|
@@ -202,6 +203,8 @@ const packageRuntimeSchema = z.object({
|
|
|
202
203
|
files: z.array(z.object({ path: z.string().min(1), digest }).strict()).min(1)
|
|
203
204
|
}).strict(),
|
|
204
205
|
configuration: componentRuntimeConfigurationSchema,
|
|
206
|
+
// Optional without a default: parsing published artifacts must not change their digest.
|
|
207
|
+
postgresRequirements: z.array(postgresComponentRequirementSchema).max(32).optional(),
|
|
205
208
|
services: z.array(z.object({ id: identifier, composeService: identifier, endpoints: z.array(packageEndpointSchema) }).strict()).min(1),
|
|
206
209
|
stateVolumes: z.array(z.object({ id: identifier, volume: z.string().min(1), backup: z.enum(["required", "optional", "none"]) }).strict()),
|
|
207
210
|
migrations: z.array(z.object({ id: identifier, order: z.number().int().nonnegative(), backupRequired: z.boolean() }).strict()),
|
|
@@ -231,6 +234,8 @@ const packageRuntimeSchema = z.object({
|
|
|
231
234
|
}).strict().optional()
|
|
232
235
|
}).strict().optional()
|
|
233
236
|
}).strict().superRefine((runtime, context) => {
|
|
237
|
+
const requirements = runtime.postgresRequirements ?? [];
|
|
238
|
+
if (new Set(requirements.map(({ id }) => id)).size !== requirements.length) context.addIssue({ code: z.ZodIssueCode.custom, path: ["postgresRequirements"], message: "PostgreSQL requirement identities must be unique within a component." });
|
|
234
239
|
const endpointIds = runtime.services.flatMap((service) => service.endpoints.map((endpoint) => `${service.id}.${endpoint.id}`));
|
|
235
240
|
if (new Set(endpointIds).size !== endpointIds.length) context.addIssue({ code: z.ZodIssueCode.custom, path: ["services"], message: "Endpoint identities must be unique within a component." });
|
|
236
241
|
for (const file of runtime.configuration.files) if (!file.path.startsWith(`/etc/treeseed/components/${runtime.componentId}/`)) context.addIssue({ code: z.ZodIssueCode.custom, path: ["configuration", "files"], message: `Configuration file ${file.id} is outside component ${runtime.componentId} custody.` });
|
|
@@ -54,8 +54,8 @@ export declare function inboxOperations(): {
|
|
|
54
54
|
availableActions: {
|
|
55
55
|
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
56
56
|
reason: string | null;
|
|
57
|
-
label: string;
|
|
58
57
|
enabled: boolean;
|
|
58
|
+
label: string;
|
|
59
59
|
confirmation: "never" | "input_required";
|
|
60
60
|
requiresFeedback: boolean;
|
|
61
61
|
}[];
|
|
@@ -132,8 +132,8 @@ export declare function inboxOperations(): {
|
|
|
132
132
|
availableActions: {
|
|
133
133
|
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
134
134
|
reason: string | null;
|
|
135
|
-
label: string;
|
|
136
135
|
enabled: boolean;
|
|
136
|
+
label: string;
|
|
137
137
|
confirmation: "never" | "input_required";
|
|
138
138
|
requiresFeedback: boolean;
|
|
139
139
|
}[];
|
|
@@ -232,8 +232,8 @@ export declare function inboxOperations(): {
|
|
|
232
232
|
availableActions: {
|
|
233
233
|
action: "approve" | "reject" | "publish_revision" | "comment" | "answer" | "reply" | "reopen";
|
|
234
234
|
reason: string | null;
|
|
235
|
-
label: string;
|
|
236
235
|
enabled: boolean;
|
|
236
|
+
label: string;
|
|
237
237
|
confirmation: "never" | "input_required";
|
|
238
238
|
requiresFeedback: boolean;
|
|
239
239
|
}[];
|