@treeseed/sdk 0.13.0-rc.57 → 0.13.0-rc.59
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 -0
- package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -1
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -1
- package/dist/agent-capacity/validation/activity-profile.js +7 -3
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +222 -222
- package/dist/agent-capacity/validation/agent-definition-schema.js +1 -1
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +1 -2
- package/dist/capacity-provider/capability-ontology.d.ts +0 -5
- package/dist/capacity-provider/capability-ontology.js +0 -1
- package/dist/capacity-provider/contracts/governance.d.ts +46 -64
- package/dist/capacity-provider/core-capability-catalog.d.ts +2 -2
- package/dist/capacity-provider/core-capability-catalog.js +7 -21
- package/dist/capacity-provider/environment-catalog.d.ts +72 -72
- package/dist/capacity-provider/sandbox-contracts.d.ts +5 -0
- package/dist/capacity-provider/sandbox-contracts.js +1 -1
- package/dist/capacity-provider/sandbox.d.ts +1 -0
- package/dist/capacity-provider/sandbox.js +1 -0
- package/dist/capacity-provider/validation.d.ts +1 -3
- package/dist/capacity-provider/validation.js +6 -36
- package/dist/content/validation/content-model-schemas.d.ts +408 -408
- package/dist/content/validation/portable-content-data.d.ts +37 -37
- package/dist/operator-contracts/canonical-command-tree.js +11 -0
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +0 -1
- package/dist/operator-contracts/control-plane-operations.d.ts +0 -1
- package/dist/types/agents/agent-activity-profile.d.ts +3 -3
- package/dist/types/agents/agent-trigger-kinds.d.ts +3 -4
- package/dist/types/agents/agent-trigger-kinds.js +1 -13
- package/package.json +5 -1
|
@@ -92,7 +92,7 @@ const answerPolicySchema = z.object({
|
|
|
92
92
|
agentSlug: nonEmpty.optional()
|
|
93
93
|
}).strict();
|
|
94
94
|
const executionSchema = z.object({
|
|
95
|
-
|
|
95
|
+
reasoningEffort: z.enum(["minimal", "low", "medium", "high", "xhigh"]).optional(),
|
|
96
96
|
maxRuntimeSeconds: z.number().int().positive().optional(),
|
|
97
97
|
closeoutWarningSeconds: z.number().int().positive().optional(),
|
|
98
98
|
preparationSeconds: z.number().int().positive().optional(),
|
|
@@ -10,5 +10,5 @@ export interface CapacityConfigurationValidation {
|
|
|
10
10
|
diagnostics: CapacityConfigurationDiagnostic[];
|
|
11
11
|
}
|
|
12
12
|
export declare function validateProjectAgentClassConfiguration(value: unknown): CapacityConfigurationValidation;
|
|
13
|
-
export type ProjectAgentClassConfiguration = Pick<ProjectAgentClass, 'id' | 'slug' | 'name' | 'status' | 'allowedModes' | '
|
|
13
|
+
export type ProjectAgentClassConfiguration = Pick<ProjectAgentClass, 'id' | 'slug' | 'name' | 'status' | 'allowedModes' | 'kernelProfile' | 'kernelPolicy' | 'handlerRefs' | 'outputContracts' | 'metadata'>;
|
|
14
14
|
export type PortableActivityProfilesConfiguration = AgentActivityProfilesConfiguration;
|
|
@@ -8,13 +8,12 @@ function validateProjectAgentClassConfiguration(value) {
|
|
|
8
8
|
const diagnostics = [];
|
|
9
9
|
const add = (code, path, message) => diagnostics.push({ code, path, message });
|
|
10
10
|
if (!record(value)) return { ok: false, diagnostics: [{ code: "project_agent_class_configuration_invalid", path: "", message: "Project agent class configuration must be an object." }] };
|
|
11
|
-
const allowed = /* @__PURE__ */ new Set(["id", "slug", "name", "status", "allowedModes", "
|
|
11
|
+
const allowed = /* @__PURE__ */ new Set(["id", "slug", "name", "status", "allowedModes", "kernelProfile", "kernelPolicy", "handlerRefs", "outputContracts", "metadata"]);
|
|
12
12
|
for (const key of Object.keys(value)) if (!allowed.has(key)) add("project_agent_class_configuration_unknown_field", key, `Unknown project agent class field ${key}.`);
|
|
13
13
|
for (const key of ["id", "slug"]) if (typeof value[key] !== "string" || !String(value[key]).trim()) add("project_agent_class_configuration_field_required", key, `${key} is required.`);
|
|
14
14
|
if (value.name !== void 0 && (typeof value.name !== "string" || !value.name.trim())) add("project_agent_class_configuration_name_invalid", "name", "name must be a non-empty string.");
|
|
15
15
|
if (value.status !== void 0 && !["active", "paused", "archived"].includes(String(value.status))) add("project_agent_class_configuration_status_invalid", "status", "status is invalid.");
|
|
16
16
|
if (!strings(value.allowedModes) || value.allowedModes.some((mode) => mode !== "planning" && mode !== "acting")) add("project_agent_class_configuration_modes_invalid", "allowedModes", "allowedModes must contain unique planning and/or acting values.");
|
|
17
|
-
if (!strings(value.requiredCapabilities)) add("project_agent_class_configuration_capabilities_invalid", "requiredCapabilities", "requiredCapabilities must contain unique non-empty strings.");
|
|
18
17
|
for (const key of ["kernelProfile", "kernelPolicy", "handlerRefs", "outputContracts", "metadata"]) if (value[key] !== void 0 && !record(value[key])) add("project_agent_class_configuration_object_invalid", key, `${key} must be an object.`);
|
|
19
18
|
return { ok: diagnostics.length === 0, diagnostics };
|
|
20
19
|
}
|
|
@@ -378,7 +378,6 @@ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
378
378
|
}[];
|
|
379
379
|
qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
|
|
380
380
|
}>, "many">;
|
|
381
|
-
aliases: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
382
381
|
createdAt: z.ZodString;
|
|
383
382
|
signature: z.ZodObject<{
|
|
384
383
|
keyId: z.ZodString;
|
|
@@ -398,7 +397,6 @@ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
398
397
|
createdAt: string;
|
|
399
398
|
generation: number;
|
|
400
399
|
digest: string;
|
|
401
|
-
aliases: Record<string, string>;
|
|
402
400
|
definitions: {
|
|
403
401
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
404
402
|
status: "active" | "deprecated" | "revoked";
|
|
@@ -454,7 +452,6 @@ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
454
452
|
createdAt: string;
|
|
455
453
|
generation: number;
|
|
456
454
|
digest: string;
|
|
457
|
-
aliases: Record<string, string>;
|
|
458
455
|
definitions: {
|
|
459
456
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
460
457
|
status: "active" | "deprecated" | "revoked";
|
|
@@ -510,7 +507,6 @@ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
510
507
|
createdAt: string;
|
|
511
508
|
generation: number;
|
|
512
509
|
digest: string;
|
|
513
|
-
aliases: Record<string, string>;
|
|
514
510
|
definitions: {
|
|
515
511
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
516
512
|
status: "active" | "deprecated" | "revoked";
|
|
@@ -566,7 +562,6 @@ export declare const capabilityOntologySchema: z.ZodEffects<z.ZodObject<{
|
|
|
566
562
|
createdAt: string;
|
|
567
563
|
generation: number;
|
|
568
564
|
digest: string;
|
|
569
|
-
aliases: Record<string, string>;
|
|
570
565
|
definitions: {
|
|
571
566
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
572
567
|
status: "active" | "deprecated" | "revoked";
|
|
@@ -40,7 +40,6 @@ const capabilityOntologySchema = z.object({
|
|
|
40
40
|
generation: z.number().int().positive(),
|
|
41
41
|
digest,
|
|
42
42
|
definitions: z.array(capabilityDefinitionSchema),
|
|
43
|
-
aliases: z.record(capabilityId),
|
|
44
43
|
createdAt: z.string().datetime(),
|
|
45
44
|
signature: z.object({ keyId: identifier, algorithm: z.enum(["Ed25519", "release-catalog"]), value: z.string().min(1) }).strict()
|
|
46
45
|
}).strict().superRefine((catalog, context) => {
|
|
@@ -346,8 +346,37 @@ export interface CapacityProviderJoinInput {
|
|
|
346
346
|
registrationKeyRef: string;
|
|
347
347
|
offer: ProviderSupplyOffer;
|
|
348
348
|
}
|
|
349
|
-
export interface
|
|
350
|
-
|
|
349
|
+
export interface CapacityProviderSandboxProfile {
|
|
350
|
+
id: string;
|
|
351
|
+
contract?: {
|
|
352
|
+
id: string;
|
|
353
|
+
version: string;
|
|
354
|
+
digest: string;
|
|
355
|
+
capabilities: string[];
|
|
356
|
+
};
|
|
357
|
+
guestImage: string;
|
|
358
|
+
guestImageDigest: string;
|
|
359
|
+
lineage: {
|
|
360
|
+
baseImageDigest: string;
|
|
361
|
+
provenanceDigest: string;
|
|
362
|
+
architectures: Array<'amd64' | 'arm64'>;
|
|
363
|
+
signature: {
|
|
364
|
+
keyId: string;
|
|
365
|
+
algorithm: 'cosign' | 'Ed25519';
|
|
366
|
+
value: string;
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
defaultDenyNetwork: true;
|
|
370
|
+
resources: {
|
|
371
|
+
cpuCores: number;
|
|
372
|
+
memoryBytes: number;
|
|
373
|
+
diskBytes: number;
|
|
374
|
+
processLimit: number;
|
|
375
|
+
outputBytes: number;
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
export interface CapacityProviderManifestV5 {
|
|
379
|
+
schemaVersion: 5;
|
|
351
380
|
ownership: {
|
|
352
381
|
type: 'team' | 'external';
|
|
353
382
|
teamId?: string;
|
|
@@ -360,6 +389,10 @@ export interface CapacityProviderManifestV3 {
|
|
|
360
389
|
privateKeyRef: string;
|
|
361
390
|
displayName: string;
|
|
362
391
|
};
|
|
392
|
+
ontology: {
|
|
393
|
+
generation: number;
|
|
394
|
+
digest: string;
|
|
395
|
+
};
|
|
363
396
|
capacity: {
|
|
364
397
|
maxConcurrentWorkers: number;
|
|
365
398
|
cpuCores?: number;
|
|
@@ -378,7 +411,7 @@ export interface CapacityProviderManifestV3 {
|
|
|
378
411
|
};
|
|
379
412
|
credentialProfiles?: Array<{
|
|
380
413
|
id: string;
|
|
381
|
-
source: 'service-vault'
|
|
414
|
+
source: 'service-vault';
|
|
382
415
|
reference: string;
|
|
383
416
|
required: boolean;
|
|
384
417
|
}>;
|
|
@@ -396,10 +429,16 @@ export interface CapacityProviderManifestV3 {
|
|
|
396
429
|
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
397
430
|
capabilities?: string[];
|
|
398
431
|
}>;
|
|
432
|
+
sandbox: {
|
|
433
|
+
required: true;
|
|
434
|
+
brokerSocket: string;
|
|
435
|
+
runtime: 'kata-runtime-rs-qemu';
|
|
436
|
+
profiles: CapacityProviderSandboxProfile[];
|
|
437
|
+
};
|
|
399
438
|
adapters: Array<{
|
|
400
439
|
id: string;
|
|
401
440
|
adapter: string;
|
|
402
|
-
isolation: '
|
|
441
|
+
isolation: 'microvm';
|
|
403
442
|
profile?: string;
|
|
404
443
|
module?: string;
|
|
405
444
|
protocol?: 'responses' | 'chat-completions';
|
|
@@ -417,69 +456,12 @@ export interface CapacityProviderManifestV3 {
|
|
|
417
456
|
minimumAssignmentDuration?: MinimumAssignmentDuration;
|
|
418
457
|
nativeLimits: Record<string, unknown>;
|
|
419
458
|
researchSourcePolicy?: ResearchSourcePolicy;
|
|
420
|
-
capabilities?: string[];
|
|
421
|
-
}>;
|
|
422
|
-
connections: ProviderConnectionConfig[];
|
|
423
|
-
metadata?: Record<string, unknown>;
|
|
424
|
-
}
|
|
425
|
-
export interface CapacityProviderSandboxProfile {
|
|
426
|
-
id: string;
|
|
427
|
-
contract?: {
|
|
428
|
-
id: string;
|
|
429
|
-
version: string;
|
|
430
|
-
digest: string;
|
|
431
|
-
capabilities: string[];
|
|
432
|
-
};
|
|
433
|
-
guestImage: string;
|
|
434
|
-
guestImageDigest: string;
|
|
435
|
-
lineage?: {
|
|
436
|
-
baseImageDigest: string;
|
|
437
|
-
provenanceDigest: string;
|
|
438
|
-
architectures: Array<'amd64' | 'arm64'>;
|
|
439
|
-
signature: {
|
|
440
|
-
keyId: string;
|
|
441
|
-
algorithm: 'cosign' | 'Ed25519';
|
|
442
|
-
value: string;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
defaultDenyNetwork: true;
|
|
446
|
-
resources: {
|
|
447
|
-
cpuCores: number;
|
|
448
|
-
memoryBytes: number;
|
|
449
|
-
diskBytes: number;
|
|
450
|
-
processLimit: number;
|
|
451
|
-
outputBytes: number;
|
|
452
|
-
};
|
|
453
|
-
}
|
|
454
|
-
export interface CapacityProviderManifestV4 extends Omit<CapacityProviderManifestV3, 'schemaVersion' | 'adapters'> {
|
|
455
|
-
schemaVersion: 4;
|
|
456
|
-
sandbox: {
|
|
457
|
-
required: true;
|
|
458
|
-
brokerSocket: string;
|
|
459
|
-
runtime: 'kata-runtime-rs-qemu';
|
|
460
|
-
profiles: CapacityProviderSandboxProfile[];
|
|
461
|
-
};
|
|
462
|
-
adapters: Array<Omit<CapacityProviderManifestV3['adapters'][number], 'isolation'> & {
|
|
463
|
-
isolation: 'microvm' | 'process' | 'worker';
|
|
464
|
-
sandboxProfileIds?: string[];
|
|
465
|
-
defaultSandboxProfiles?: {
|
|
466
|
-
conversation: string;
|
|
467
|
-
execution: string;
|
|
468
|
-
};
|
|
469
|
-
}>;
|
|
470
|
-
}
|
|
471
|
-
export interface CapacityProviderManifestV5 extends Omit<CapacityProviderManifestV4, 'schemaVersion' | 'adapters'> {
|
|
472
|
-
schemaVersion: 5;
|
|
473
|
-
ontology: {
|
|
474
|
-
generation: number;
|
|
475
|
-
digest: string;
|
|
476
|
-
};
|
|
477
|
-
adapters: Array<Omit<CapacityProviderManifestV4['adapters'][number], 'capabilities' | 'sandboxProfileIds' | 'defaultSandboxProfiles'> & {
|
|
478
|
-
isolation: 'microvm';
|
|
479
459
|
offers: Array<{
|
|
480
460
|
offer: CapabilityOffer;
|
|
481
461
|
sandboxProfileId: string;
|
|
482
462
|
}>;
|
|
483
463
|
}>;
|
|
464
|
+
connections: ProviderConnectionConfig[];
|
|
465
|
+
metadata?: Record<string, unknown>;
|
|
484
466
|
}
|
|
485
|
-
export type CapacityProviderManifest =
|
|
467
|
+
export type CapacityProviderManifest = CapacityProviderManifestV5;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const CORE_CAPABILITY_ONTOLOGY_GENERATION = 3;
|
|
2
|
+
export declare const CORE_CAPABILITY_ONTOLOGY_CREATED_AT = "2026-08-30T00:00:00.000Z";
|
|
1
3
|
export declare const CORE_CAPABILITY_DEFINITIONS: {
|
|
2
4
|
schemaVersion: "treeseed.capability-definition/v1";
|
|
3
5
|
status: "active" | "deprecated" | "revoked";
|
|
@@ -43,5 +45,3 @@ export declare const CORE_CAPABILITY_DEFINITIONS: {
|
|
|
43
45
|
}[];
|
|
44
46
|
qualificationTier: "signed-attestation" | "automated-suite" | "reviewed-certification";
|
|
45
47
|
}[];
|
|
46
|
-
export declare const LEGACY_CAPABILITY_ALIASES: Record<string, string>;
|
|
47
|
-
export declare function resolveLegacyCapability(value: string, activityType?: string): string | null;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { capabilityDefinitionDigest, capabilityDefinitionSchema } from "./capability-ontology.js";
|
|
2
|
-
const
|
|
2
|
+
const CORE_CAPABILITY_ONTOLOGY_GENERATION = 3;
|
|
3
|
+
const CORE_CAPABILITY_ONTOLOGY_CREATED_AT = "2026-08-30T00:00:00.000Z";
|
|
4
|
+
const createdAt = CORE_CAPABILITY_ONTOLOGY_CREATED_AT;
|
|
3
5
|
const services = {
|
|
4
6
|
coordination: ["conversation", "question-answering", "planning", "estimation", "review", "reporting", "human-task-routing", "decision-support"],
|
|
5
7
|
research: ["web", "literature", "market", "repository", "dataset-discovery", "retrieval", "extraction", "verification", "citation", "synthesis", "experimentation"],
|
|
@@ -14,7 +16,8 @@ function definition(family, service) {
|
|
|
14
16
|
["instructions.task", "Provider-neutral task instruction delivery."],
|
|
15
17
|
["instructions.templates", "Immutable instruction template delivery."],
|
|
16
18
|
["context.queries", "Resolved context query manifest delivery."],
|
|
17
|
-
["tools.policy", "Assignment-scoped tool policy enforcement."]
|
|
19
|
+
["tools.policy", "Assignment-scoped tool policy enforcement."],
|
|
20
|
+
["intelligence.reasoning-effort", "Provider-neutral reasoning effort requested by the agent activity profile."]
|
|
18
21
|
].map(([key, description]) => ({ key, description, schema: {}, requirementSupport: ["required", "preferred"], securityCritical: true }));
|
|
19
22
|
const material = {
|
|
20
23
|
schemaVersion: "treeseed.capability-definition/v1",
|
|
@@ -39,25 +42,8 @@ function definition(family, service) {
|
|
|
39
42
|
return capabilityDefinitionSchema.parse({ ...material, digest: capabilityDefinitionDigest(material) });
|
|
40
43
|
}
|
|
41
44
|
const CORE_CAPABILITY_DEFINITIONS = Object.entries(services).flatMap(([family, values]) => values.map((service) => definition(family, service)));
|
|
42
|
-
const LEGACY_CAPABILITY_ALIASES = {
|
|
43
|
-
communication: "treeseed.coordination.conversation",
|
|
44
|
-
reporting: "treeseed.coordination.reporting",
|
|
45
|
-
"terminal-reporting": "treeseed.coordination.reporting",
|
|
46
|
-
"independent-review": "treeseed.engineering.review",
|
|
47
|
-
"governed-revision": "treeseed.engineering.code-change",
|
|
48
|
-
repository_work: "treeseed.engineering.repository-analysis",
|
|
49
|
-
"repository-read": "treeseed.engineering.repository-analysis",
|
|
50
|
-
research: "treeseed.research.synthesis",
|
|
51
|
-
planning: "treeseed.coordination.planning"
|
|
52
|
-
};
|
|
53
|
-
function resolveLegacyCapability(value, activityType) {
|
|
54
|
-
if (value === "agent-execution") return { chat: "treeseed.coordination.conversation", acting: "treeseed.engineering.code-change", reviewing: "treeseed.engineering.review", estimating: "treeseed.coordination.estimation", reporting: "treeseed.coordination.reporting", planning: "treeseed.coordination.planning" }[activityType ?? ""] ?? null;
|
|
55
|
-
if (value === "repository_work" && activityType === "acting") return "treeseed.engineering.code-change";
|
|
56
|
-
if (value.startsWith("engineering:")) return value.endsWith(":review") ? "treeseed.engineering.review" : "treeseed.engineering.code-change";
|
|
57
|
-
return LEGACY_CAPABILITY_ALIASES[value] ?? (value.startsWith("treeseed.") || value.startsWith("provider.") ? value : null);
|
|
58
|
-
}
|
|
59
45
|
export {
|
|
60
46
|
CORE_CAPABILITY_DEFINITIONS,
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
CORE_CAPABILITY_ONTOLOGY_CREATED_AT,
|
|
48
|
+
CORE_CAPABILITY_ONTOLOGY_GENERATION
|
|
63
49
|
};
|
|
@@ -141,6 +141,12 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
141
141
|
sbomDigest: string;
|
|
142
142
|
};
|
|
143
143
|
version: string;
|
|
144
|
+
image: {
|
|
145
|
+
digest: string;
|
|
146
|
+
reference: string;
|
|
147
|
+
architectures: ("amd64" | "arm64")[];
|
|
148
|
+
operatingSystem: "linux";
|
|
149
|
+
};
|
|
144
150
|
qualification: {
|
|
145
151
|
status: "passed";
|
|
146
152
|
completedAt: string;
|
|
@@ -154,12 +160,6 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
154
160
|
version: string;
|
|
155
161
|
capabilities: string[];
|
|
156
162
|
};
|
|
157
|
-
image: {
|
|
158
|
-
digest: string;
|
|
159
|
-
reference: string;
|
|
160
|
-
architectures: ("amd64" | "arm64")[];
|
|
161
|
-
operatingSystem: "linux";
|
|
162
|
-
};
|
|
163
163
|
derivedFrom: {
|
|
164
164
|
version: string;
|
|
165
165
|
imageDigest: string;
|
|
@@ -182,6 +182,12 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
182
182
|
sbomDigest: string;
|
|
183
183
|
};
|
|
184
184
|
version: string;
|
|
185
|
+
image: {
|
|
186
|
+
digest: string;
|
|
187
|
+
reference: string;
|
|
188
|
+
architectures: ("amd64" | "arm64")[];
|
|
189
|
+
operatingSystem: "linux";
|
|
190
|
+
};
|
|
185
191
|
qualification: {
|
|
186
192
|
status: "passed";
|
|
187
193
|
completedAt: string;
|
|
@@ -195,12 +201,6 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
195
201
|
version: string;
|
|
196
202
|
capabilities: string[];
|
|
197
203
|
};
|
|
198
|
-
image: {
|
|
199
|
-
digest: string;
|
|
200
|
-
reference: string;
|
|
201
|
-
architectures: ("amd64" | "arm64")[];
|
|
202
|
-
operatingSystem: "linux";
|
|
203
|
-
};
|
|
204
204
|
derivedFrom: {
|
|
205
205
|
version: string;
|
|
206
206
|
imageDigest: string;
|
|
@@ -223,6 +223,12 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
223
223
|
sbomDigest: string;
|
|
224
224
|
};
|
|
225
225
|
version: string;
|
|
226
|
+
image: {
|
|
227
|
+
digest: string;
|
|
228
|
+
reference: string;
|
|
229
|
+
architectures: ("amd64" | "arm64")[];
|
|
230
|
+
operatingSystem: "linux";
|
|
231
|
+
};
|
|
226
232
|
qualification: {
|
|
227
233
|
status: "passed";
|
|
228
234
|
completedAt: string;
|
|
@@ -236,12 +242,6 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
236
242
|
version: string;
|
|
237
243
|
capabilities: string[];
|
|
238
244
|
};
|
|
239
|
-
image: {
|
|
240
|
-
digest: string;
|
|
241
|
-
reference: string;
|
|
242
|
-
architectures: ("amd64" | "arm64")[];
|
|
243
|
-
operatingSystem: "linux";
|
|
244
|
-
};
|
|
245
245
|
derivedFrom: {
|
|
246
246
|
version: string;
|
|
247
247
|
imageDigest: string;
|
|
@@ -264,6 +264,12 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
264
264
|
sbomDigest: string;
|
|
265
265
|
};
|
|
266
266
|
version: string;
|
|
267
|
+
image: {
|
|
268
|
+
digest: string;
|
|
269
|
+
reference: string;
|
|
270
|
+
architectures: ("amd64" | "arm64")[];
|
|
271
|
+
operatingSystem: "linux";
|
|
272
|
+
};
|
|
267
273
|
qualification: {
|
|
268
274
|
status: "passed";
|
|
269
275
|
completedAt: string;
|
|
@@ -277,12 +283,6 @@ export declare const sandboxEnvironmentCatalogEntrySchema: z.ZodEffects<z.ZodObj
|
|
|
277
283
|
version: string;
|
|
278
284
|
capabilities: string[];
|
|
279
285
|
};
|
|
280
|
-
image: {
|
|
281
|
-
digest: string;
|
|
282
|
-
reference: string;
|
|
283
|
-
architectures: ("amd64" | "arm64")[];
|
|
284
|
-
operatingSystem: "linux";
|
|
285
|
-
};
|
|
286
286
|
derivedFrom: {
|
|
287
287
|
version: string;
|
|
288
288
|
imageDigest: string;
|
|
@@ -426,6 +426,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
426
426
|
sbomDigest: string;
|
|
427
427
|
};
|
|
428
428
|
version: string;
|
|
429
|
+
image: {
|
|
430
|
+
digest: string;
|
|
431
|
+
reference: string;
|
|
432
|
+
architectures: ("amd64" | "arm64")[];
|
|
433
|
+
operatingSystem: "linux";
|
|
434
|
+
};
|
|
429
435
|
qualification: {
|
|
430
436
|
status: "passed";
|
|
431
437
|
completedAt: string;
|
|
@@ -439,12 +445,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
439
445
|
version: string;
|
|
440
446
|
capabilities: string[];
|
|
441
447
|
};
|
|
442
|
-
image: {
|
|
443
|
-
digest: string;
|
|
444
|
-
reference: string;
|
|
445
|
-
architectures: ("amd64" | "arm64")[];
|
|
446
|
-
operatingSystem: "linux";
|
|
447
|
-
};
|
|
448
448
|
derivedFrom: {
|
|
449
449
|
version: string;
|
|
450
450
|
imageDigest: string;
|
|
@@ -467,6 +467,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
467
467
|
sbomDigest: string;
|
|
468
468
|
};
|
|
469
469
|
version: string;
|
|
470
|
+
image: {
|
|
471
|
+
digest: string;
|
|
472
|
+
reference: string;
|
|
473
|
+
architectures: ("amd64" | "arm64")[];
|
|
474
|
+
operatingSystem: "linux";
|
|
475
|
+
};
|
|
470
476
|
qualification: {
|
|
471
477
|
status: "passed";
|
|
472
478
|
completedAt: string;
|
|
@@ -480,12 +486,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
480
486
|
version: string;
|
|
481
487
|
capabilities: string[];
|
|
482
488
|
};
|
|
483
|
-
image: {
|
|
484
|
-
digest: string;
|
|
485
|
-
reference: string;
|
|
486
|
-
architectures: ("amd64" | "arm64")[];
|
|
487
|
-
operatingSystem: "linux";
|
|
488
|
-
};
|
|
489
489
|
derivedFrom: {
|
|
490
490
|
version: string;
|
|
491
491
|
imageDigest: string;
|
|
@@ -508,6 +508,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
508
508
|
sbomDigest: string;
|
|
509
509
|
};
|
|
510
510
|
version: string;
|
|
511
|
+
image: {
|
|
512
|
+
digest: string;
|
|
513
|
+
reference: string;
|
|
514
|
+
architectures: ("amd64" | "arm64")[];
|
|
515
|
+
operatingSystem: "linux";
|
|
516
|
+
};
|
|
511
517
|
qualification: {
|
|
512
518
|
status: "passed";
|
|
513
519
|
completedAt: string;
|
|
@@ -521,12 +527,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
521
527
|
version: string;
|
|
522
528
|
capabilities: string[];
|
|
523
529
|
};
|
|
524
|
-
image: {
|
|
525
|
-
digest: string;
|
|
526
|
-
reference: string;
|
|
527
|
-
architectures: ("amd64" | "arm64")[];
|
|
528
|
-
operatingSystem: "linux";
|
|
529
|
-
};
|
|
530
530
|
derivedFrom: {
|
|
531
531
|
version: string;
|
|
532
532
|
imageDigest: string;
|
|
@@ -549,6 +549,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
549
549
|
sbomDigest: string;
|
|
550
550
|
};
|
|
551
551
|
version: string;
|
|
552
|
+
image: {
|
|
553
|
+
digest: string;
|
|
554
|
+
reference: string;
|
|
555
|
+
architectures: ("amd64" | "arm64")[];
|
|
556
|
+
operatingSystem: "linux";
|
|
557
|
+
};
|
|
552
558
|
qualification: {
|
|
553
559
|
status: "passed";
|
|
554
560
|
completedAt: string;
|
|
@@ -562,12 +568,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
562
568
|
version: string;
|
|
563
569
|
capabilities: string[];
|
|
564
570
|
};
|
|
565
|
-
image: {
|
|
566
|
-
digest: string;
|
|
567
|
-
reference: string;
|
|
568
|
-
architectures: ("amd64" | "arm64")[];
|
|
569
|
-
operatingSystem: "linux";
|
|
570
|
-
};
|
|
571
571
|
derivedFrom: {
|
|
572
572
|
version: string;
|
|
573
573
|
imageDigest: string;
|
|
@@ -607,6 +607,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
607
607
|
sbomDigest: string;
|
|
608
608
|
};
|
|
609
609
|
version: string;
|
|
610
|
+
image: {
|
|
611
|
+
digest: string;
|
|
612
|
+
reference: string;
|
|
613
|
+
architectures: ("amd64" | "arm64")[];
|
|
614
|
+
operatingSystem: "linux";
|
|
615
|
+
};
|
|
610
616
|
qualification: {
|
|
611
617
|
status: "passed";
|
|
612
618
|
completedAt: string;
|
|
@@ -620,12 +626,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
620
626
|
version: string;
|
|
621
627
|
capabilities: string[];
|
|
622
628
|
};
|
|
623
|
-
image: {
|
|
624
|
-
digest: string;
|
|
625
|
-
reference: string;
|
|
626
|
-
architectures: ("amd64" | "arm64")[];
|
|
627
|
-
operatingSystem: "linux";
|
|
628
|
-
};
|
|
629
629
|
derivedFrom: {
|
|
630
630
|
version: string;
|
|
631
631
|
imageDigest: string;
|
|
@@ -662,6 +662,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
662
662
|
sbomDigest: string;
|
|
663
663
|
};
|
|
664
664
|
version: string;
|
|
665
|
+
image: {
|
|
666
|
+
digest: string;
|
|
667
|
+
reference: string;
|
|
668
|
+
architectures: ("amd64" | "arm64")[];
|
|
669
|
+
operatingSystem: "linux";
|
|
670
|
+
};
|
|
665
671
|
qualification: {
|
|
666
672
|
status: "passed";
|
|
667
673
|
completedAt: string;
|
|
@@ -675,12 +681,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
675
681
|
version: string;
|
|
676
682
|
capabilities: string[];
|
|
677
683
|
};
|
|
678
|
-
image: {
|
|
679
|
-
digest: string;
|
|
680
|
-
reference: string;
|
|
681
|
-
architectures: ("amd64" | "arm64")[];
|
|
682
|
-
operatingSystem: "linux";
|
|
683
|
-
};
|
|
684
684
|
derivedFrom: {
|
|
685
685
|
version: string;
|
|
686
686
|
imageDigest: string;
|
|
@@ -717,6 +717,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
717
717
|
sbomDigest: string;
|
|
718
718
|
};
|
|
719
719
|
version: string;
|
|
720
|
+
image: {
|
|
721
|
+
digest: string;
|
|
722
|
+
reference: string;
|
|
723
|
+
architectures: ("amd64" | "arm64")[];
|
|
724
|
+
operatingSystem: "linux";
|
|
725
|
+
};
|
|
720
726
|
qualification: {
|
|
721
727
|
status: "passed";
|
|
722
728
|
completedAt: string;
|
|
@@ -730,12 +736,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
730
736
|
version: string;
|
|
731
737
|
capabilities: string[];
|
|
732
738
|
};
|
|
733
|
-
image: {
|
|
734
|
-
digest: string;
|
|
735
|
-
reference: string;
|
|
736
|
-
architectures: ("amd64" | "arm64")[];
|
|
737
|
-
operatingSystem: "linux";
|
|
738
|
-
};
|
|
739
739
|
derivedFrom: {
|
|
740
740
|
version: string;
|
|
741
741
|
imageDigest: string;
|
|
@@ -772,6 +772,12 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
772
772
|
sbomDigest: string;
|
|
773
773
|
};
|
|
774
774
|
version: string;
|
|
775
|
+
image: {
|
|
776
|
+
digest: string;
|
|
777
|
+
reference: string;
|
|
778
|
+
architectures: ("amd64" | "arm64")[];
|
|
779
|
+
operatingSystem: "linux";
|
|
780
|
+
};
|
|
775
781
|
qualification: {
|
|
776
782
|
status: "passed";
|
|
777
783
|
completedAt: string;
|
|
@@ -785,12 +791,6 @@ export declare const sandboxEnvironmentCatalogSchema: z.ZodEffects<z.ZodObject<{
|
|
|
785
791
|
version: string;
|
|
786
792
|
capabilities: string[];
|
|
787
793
|
};
|
|
788
|
-
image: {
|
|
789
|
-
digest: string;
|
|
790
|
-
reference: string;
|
|
791
|
-
architectures: ("amd64" | "arm64")[];
|
|
792
|
-
operatingSystem: "linux";
|
|
793
|
-
};
|
|
794
794
|
derivedFrom: {
|
|
795
795
|
version: string;
|
|
796
796
|
imageDigest: string;
|
|
@@ -108,6 +108,7 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
|
|
|
108
108
|
modelPolicy: z.ZodObject<{
|
|
109
109
|
provider: z.ZodString;
|
|
110
110
|
model: z.ZodString;
|
|
111
|
+
reasoningEffort: z.ZodOptional<z.ZodEnum<["minimal", "low", "medium", "high", "xhigh"]>>;
|
|
111
112
|
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
112
113
|
maxInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
113
114
|
maxOutputTokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -116,6 +117,7 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
|
|
|
116
117
|
provider: string;
|
|
117
118
|
capabilities: string[];
|
|
118
119
|
model: string;
|
|
120
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
119
121
|
maxInputTokens?: number | undefined;
|
|
120
122
|
maxOutputTokens?: number | undefined;
|
|
121
123
|
maxCost?: number | undefined;
|
|
@@ -123,6 +125,7 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
|
|
|
123
125
|
provider: string;
|
|
124
126
|
capabilities: string[];
|
|
125
127
|
model: string;
|
|
128
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
126
129
|
maxInputTokens?: number | undefined;
|
|
127
130
|
maxOutputTokens?: number | undefined;
|
|
128
131
|
maxCost?: number | undefined;
|
|
@@ -206,6 +209,7 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
|
|
|
206
209
|
provider: string;
|
|
207
210
|
capabilities: string[];
|
|
208
211
|
model: string;
|
|
212
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
209
213
|
maxInputTokens?: number | undefined;
|
|
210
214
|
maxOutputTokens?: number | undefined;
|
|
211
215
|
maxCost?: number | undefined;
|
|
@@ -273,6 +277,7 @@ export declare const sandboxAssignmentSchema: z.ZodObject<{
|
|
|
273
277
|
provider: string;
|
|
274
278
|
capabilities: string[];
|
|
275
279
|
model: string;
|
|
280
|
+
reasoningEffort?: "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
276
281
|
maxInputTokens?: number | undefined;
|
|
277
282
|
maxOutputTokens?: number | undefined;
|
|
278
283
|
maxCost?: number | undefined;
|
|
@@ -27,7 +27,7 @@ const sandboxAssignmentSchema = z.object({
|
|
|
27
27
|
inputs: z.array(z.object({ id: identifier, digest, bytes: z.number().int().nonnegative(), disposition: z.enum(["read-only", "copy-on-write"]), mediaType: z.string().min(1), targetPath: z.string().startsWith("/workspace/") }).strict()),
|
|
28
28
|
outputs: z.array(z.object({ id: identifier, path: z.string().startsWith("/run/treeseed-output/"), mediaType: z.string().min(1), maxBytes: z.number().int().positive() }).strict()),
|
|
29
29
|
network: z.object({ defaultDeny: z.literal(true), relayUrl: z.string().url().startsWith("https://"), allowedServices: z.array(identifier), connectedDevelopmentSessionId: z.string().min(1).optional() }).strict(),
|
|
30
|
-
modelPolicy: z.object({ provider: identifier, model: z.string().min(1), capabilities: z.array(identifier), maxInputTokens: z.number().int().positive().optional(), maxOutputTokens: z.number().int().positive().optional(), maxCost: z.number().nonnegative().optional() }).strict(),
|
|
30
|
+
modelPolicy: z.object({ provider: identifier, model: z.string().min(1), reasoningEffort: z.enum(["minimal", "low", "medium", "high", "xhigh"]).optional(), capabilities: z.array(identifier), maxInputTokens: z.number().int().positive().optional(), maxOutputTokens: z.number().int().positive().optional(), maxCost: z.number().nonnegative().optional() }).strict(),
|
|
31
31
|
credentialHandles: z.array(z.object({ id: identifier, profileId: identifier, revealAllowed: z.literal(false) }).strict()),
|
|
32
32
|
treeDxHandleIds: z.array(z.string().min(1)),
|
|
33
33
|
leaseExpiresAt: z.string().datetime(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './sandbox-contracts.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sandbox-contracts.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type CapacityProviderManifestV5, type CapacityProviderProofPayload, type CapacityProviderPublicJwk, type ProviderSupplyOffer } from './contracts/index.js';
|
|
2
2
|
export interface CapacityProviderContractDiagnostic {
|
|
3
3
|
code: string;
|
|
4
4
|
path: string;
|
|
@@ -19,8 +19,6 @@ export declare function validateCapacityProviderProofPayload(payload: CapacityPr
|
|
|
19
19
|
expectedAudience?: string;
|
|
20
20
|
}): CapacityProviderContractValidation;
|
|
21
21
|
export declare function validateProviderSupplyOffer(offer: ProviderSupplyOffer, path?: string): CapacityProviderContractValidation;
|
|
22
|
-
export declare function validateCapacityProviderManifestV3(manifest: CapacityProviderManifestV3): CapacityProviderContractValidation;
|
|
23
|
-
export declare function validateCapacityProviderManifestV4(manifest: CapacityProviderManifestV4): CapacityProviderContractValidation;
|
|
24
22
|
export declare function validateCapacityProviderManifestV5(manifest: CapacityProviderManifestV5): CapacityProviderContractValidation;
|
|
25
23
|
export declare function capacityProviderSecurityDefaults(): {
|
|
26
24
|
proofTtlSeconds: number;
|