@treeseed/sdk 0.13.0-rc.19 → 0.13.0-rc.20
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/agent-capacity/contracts/capacity/communication/communication-records.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +1 -1
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +1 -1
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +72 -72
- package/dist/capacity-provider/contracts/governance.d.ts +58 -34
- package/dist/capacity-provider/validation.d.ts +2 -2
- package/dist/capacity-provider/validation.js +63 -53
- package/dist/content/validation/agent-operational-content-schemas.d.ts +8 -8
- package/dist/content/validation/auxiliary-content-schemas.d.ts +24 -24
- package/dist/content/validation/content-model-schemas.d.ts +174 -174
- package/dist/content/validation/portable-content-data.d.ts +17 -17
- package/dist/operator-contracts/canonical-command-tree.js +21 -6
- package/dist/operator-contracts/control-plane-operations.d.ts +73 -1
- package/dist/operator-contracts/control-plane-operations.js +44 -2
- package/dist/operator-contracts/index.d.ts +1 -0
- package/dist/operator-contracts/index.js +1 -0
- package/dist/operator-contracts/seed/seed-bundle.d.ts +123 -0
- package/dist/operator-contracts/seed/seed-bundle.js +50 -0
- package/package.json +1 -1
|
@@ -55,84 +55,94 @@ function validateProviderSupplyOffer(offer, path = "offer") {
|
|
|
55
55
|
if (!Array.isArray(offer.capabilities) || offer.capabilities.some((entry) => !nonEmpty(entry))) add(diagnostics, "provider_offer_capabilities_invalid", `${path}.capabilities`, "Offer capabilities must be non-empty strings.");
|
|
56
56
|
return result(diagnostics);
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function validateCapacityProviderManifestV3(manifest) {
|
|
59
59
|
const diagnostics = [];
|
|
60
|
-
if (manifest?.schemaVersion !==
|
|
61
|
-
if (
|
|
60
|
+
if (manifest?.schemaVersion !== 3) add(diagnostics, "provider_manifest_schema_invalid", "schemaVersion", "Capacity provider manifest schemaVersion must be 3.");
|
|
61
|
+
if ("providerClass" in manifest) add(diagnostics, "provider_manifest_legacy_class_forbidden", "providerClass", "Provider classes are not part of the unified battery contract.");
|
|
62
62
|
if (!["team", "external"].includes(manifest?.ownership?.type)) add(diagnostics, "provider_manifest_ownership_invalid", "ownership.type", "ownership.type must be team or external.");
|
|
63
63
|
if (manifest?.ownership?.type === "team" && !nonEmpty(manifest.ownership.teamId)) add(diagnostics, "provider_manifest_owner_team_required", "ownership.teamId", "Team-owned providers require ownership.teamId.");
|
|
64
64
|
if (!nonEmpty(manifest?.configuration?.generation)) add(diagnostics, "provider_manifest_generation_required", "configuration.generation", "An immutable desired configuration generation is required.");
|
|
65
65
|
if (!nonEmpty(manifest?.identity?.privateKeyRef) || !manifest.identity.privateKeyRef.includes("://")) add(diagnostics, "provider_manifest_identity_ref_invalid", "identity.privateKeyRef", "Provider identity must use an encrypted secret reference.");
|
|
66
66
|
if (!nonEmpty(manifest?.identity?.displayName)) add(diagnostics, "provider_manifest_identity_name_required", "identity.displayName", "Provider identity displayName is required.");
|
|
67
|
-
if (!Number.isInteger(manifest?.
|
|
67
|
+
if (!Number.isInteger(manifest?.capacity?.maxConcurrentWorkers) || manifest.capacity.maxConcurrentWorkers < 1) add(diagnostics, "provider_manifest_concurrency_invalid", "capacity.maxConcurrentWorkers", "Provider worker concurrency must be a positive integer.");
|
|
68
|
+
for (const field of ["cpuCores", "memoryBytes"]) {
|
|
69
|
+
const value = manifest?.capacity?.[field];
|
|
70
|
+
if (value !== void 0 && (!Number.isFinite(value) || value <= 0)) add(diagnostics, "provider_manifest_resource_capacity_invalid", `capacity.${field}`, `${field} must be greater than zero when configured.`);
|
|
71
|
+
}
|
|
72
|
+
for (const [index, accelerator] of (manifest?.capacity?.accelerators ?? []).entries()) {
|
|
73
|
+
if (!nonEmpty(accelerator.kind)) add(diagnostics, "provider_manifest_accelerator_kind_required", `capacity.accelerators[${index}].kind`, "Accelerator kind is required.");
|
|
74
|
+
if (!Number.isInteger(accelerator.count) || accelerator.count < 1) add(diagnostics, "provider_manifest_accelerator_count_invalid", `capacity.accelerators[${index}].count`, "Accelerator count must be a positive integer.");
|
|
75
|
+
}
|
|
68
76
|
for (const field of ["maxActiveSeconds", "maxInputTokens", "maxOutputTokens", "maxCost", "maxAttempts"]) {
|
|
69
|
-
const value = manifest?.
|
|
70
|
-
if (value !== void 0 && (!Number.isFinite(value) || value <= 0)) add(diagnostics, "provider_manifest_supply_ceiling_invalid", `
|
|
77
|
+
const value = manifest?.capacity?.[field];
|
|
78
|
+
if (value !== void 0 && (!Number.isFinite(value) || value <= 0)) add(diagnostics, "provider_manifest_supply_ceiling_invalid", `capacity.${field}`, `${field} must be greater than zero when configured.`);
|
|
71
79
|
}
|
|
72
|
-
if (manifest?.
|
|
80
|
+
if (manifest?.capacity?.maxCost !== void 0 && !nonEmpty(manifest.capacity.currency)) add(diagnostics, "provider_manifest_supply_currency_required", "capacity.currency", "A currency is required when maxCost is configured.");
|
|
73
81
|
const bindingIds = /* @__PURE__ */ new Set();
|
|
74
|
-
for (const [index, binding] of (manifest?.
|
|
75
|
-
const path = `
|
|
82
|
+
for (const [index, binding] of (manifest?.credentialProfiles ?? []).entries()) {
|
|
83
|
+
const path = `credentialProfiles[${index}]`;
|
|
76
84
|
if (!nonEmpty(binding.id) || bindingIds.has(binding.id)) add(diagnostics, "provider_manifest_credential_binding_id_invalid", `${path}.id`, "Credential binding IDs must be non-empty and unique.");
|
|
77
85
|
bindingIds.add(binding.id);
|
|
78
86
|
if (!["service-vault", "process-environment"].includes(binding.source)) add(diagnostics, "provider_manifest_credential_binding_source_invalid", `${path}.source`, "Credential bindings must use service-vault or process-environment.");
|
|
79
87
|
if (!nonEmpty(binding.reference)) add(diagnostics, "provider_manifest_credential_binding_reference_required", `${path}.reference`, "Credential binding reference is required.");
|
|
80
88
|
if (binding.source === "process-environment" && !/^TREESEED_[A-Z0-9_]+$/u.test(binding.reference)) add(diagnostics, "provider_manifest_credential_environment_invalid", `${path}.reference`, "Process-environment bindings must name a TREESEED_* variable.");
|
|
81
89
|
}
|
|
82
|
-
if (!Array.isArray(manifest?.
|
|
83
|
-
const executionProviderIds = /* @__PURE__ */ new Set();
|
|
90
|
+
if (!Array.isArray(manifest?.lanes) || manifest.lanes.length === 0) add(diagnostics, "provider_manifest_lanes_required", "lanes", "At least one provider lane is required.");
|
|
84
91
|
const laneIds = /* @__PURE__ */ new Set();
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (!nonEmpty(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
if (!
|
|
93
|
-
|
|
92
|
+
let reservedWorkers = 0;
|
|
93
|
+
const purposes = /* @__PURE__ */ new Set();
|
|
94
|
+
for (const [laneIndex, lane] of (manifest?.lanes ?? []).entries()) {
|
|
95
|
+
const lanePath = `lanes[${laneIndex}]`;
|
|
96
|
+
if (!nonEmpty(lane.id) || laneIds.has(lane.id)) add(diagnostics, "provider_lane_id_invalid", `${lanePath}.id`, "Provider lane id must be non-empty and provider-global unique.");
|
|
97
|
+
laneIds.add(lane.id);
|
|
98
|
+
purposes.add(lane.purpose);
|
|
99
|
+
if (!["communication", "platform", "workday"].includes(lane.purpose)) add(diagnostics, "provider_lane_purpose_invalid", `${lanePath}.purpose`, "Provider lane purpose must be communication, platform, or workday.");
|
|
100
|
+
if (!Number.isInteger(lane.priority) || lane.priority < 1) add(diagnostics, "provider_lane_priority_invalid", `${lanePath}.priority`, "Provider lane priority must be a positive integer.");
|
|
101
|
+
if (!Number.isInteger(lane.reservedConcurrentWorkers) || lane.reservedConcurrentWorkers < 0) add(diagnostics, "provider_lane_reservation_invalid", `${lanePath}.reservedConcurrentWorkers`, "Reserved workers must be a non-negative integer.");
|
|
102
|
+
if (!Number.isInteger(lane.maxConcurrentWorkers) || lane.maxConcurrentWorkers < 1 || lane.maxConcurrentWorkers > manifest.capacity.maxConcurrentWorkers) add(diagnostics, "provider_lane_concurrency_invalid", `${lanePath}.maxConcurrentWorkers`, "Lane concurrency must be positive and no greater than provider capacity.");
|
|
103
|
+
if (lane.reservedConcurrentWorkers > lane.maxConcurrentWorkers) add(diagnostics, "provider_lane_reservation_exceeds_maximum", `${lanePath}.reservedConcurrentWorkers`, "Lane reservation may not exceed its maximum.");
|
|
104
|
+
reservedWorkers += Number.isInteger(lane.reservedConcurrentWorkers) ? lane.reservedConcurrentWorkers : 0;
|
|
105
|
+
if (lane.reclaimPolicy !== "admission") add(diagnostics, "provider_lane_reclaim_policy_invalid", `${lanePath}.reclaimPolicy`, "Borrowed capacity is reclaimed through admission control, never worker termination.");
|
|
106
|
+
if (!Number.isInteger(lane.queueLimit) || lane.queueLimit < 0) add(diagnostics, "provider_lane_queue_limit_invalid", `${lanePath}.queueLimit`, "Lane queueLimit must be a non-negative integer.");
|
|
107
|
+
if (!Number.isInteger(lane.timeoutSeconds) || lane.timeoutSeconds < 1) add(diagnostics, "provider_lane_timeout_invalid", `${lanePath}.timeoutSeconds`, "Lane timeoutSeconds must be a positive integer.");
|
|
108
|
+
if (lane.capabilities && lane.capabilities.some((entry) => !nonEmpty(entry))) add(diagnostics, "provider_lane_capabilities_invalid", `${lanePath}.capabilities`, "Provider lane capabilities must be non-empty strings.");
|
|
109
|
+
const minimumDuration = lane.minimumAssignmentDuration;
|
|
94
110
|
if (minimumDuration !== void 0) {
|
|
95
|
-
if (!Number.isInteger(minimumDuration.amount) || minimumDuration.amount < 1) add(diagnostics, "
|
|
96
|
-
if (!["seconds", "business-days"].includes(minimumDuration.unit)) add(diagnostics, "
|
|
111
|
+
if (!Number.isInteger(minimumDuration.amount) || minimumDuration.amount < 1) add(diagnostics, "provider_lane_minimum_duration_invalid", `${lanePath}.minimumAssignmentDuration.amount`, "Minimum assignment duration amount must be a positive integer.");
|
|
112
|
+
if (!["seconds", "business-days"].includes(minimumDuration.unit)) add(diagnostics, "provider_lane_minimum_duration_unit_invalid", `${lanePath}.minimumAssignmentDuration.unit`, "Minimum assignment duration unit must be seconds or business-days.");
|
|
97
113
|
if (minimumDuration.unit === "business-days") {
|
|
98
114
|
try {
|
|
99
115
|
new Intl.DateTimeFormat("en", { timeZone: minimumDuration.calendar?.timeZone }).format();
|
|
100
116
|
} catch {
|
|
101
|
-
add(diagnostics, "
|
|
117
|
+
add(diagnostics, "provider_lane_minimum_duration_timezone_invalid", `${lanePath}.minimumAssignmentDuration.calendar.timeZone`, "Business-day duration requires a valid IANA time zone.");
|
|
102
118
|
}
|
|
103
119
|
const weekdays = minimumDuration.calendar?.weekdays ?? [1, 2, 3, 4, 5];
|
|
104
|
-
if (!Array.isArray(weekdays) || weekdays.length === 0 || weekdays.some((day) => !Number.isInteger(day) || day < 1 || day > 7) || new Set(weekdays).size !== weekdays.length) add(diagnostics, "
|
|
105
|
-
if ((minimumDuration.calendar?.holidayDates ?? []).some((date) => !/^\d{4}-\d{2}-\d{2}$/u.test(date))) add(diagnostics, "
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
if (executionProvider.researchSourcePolicy !== void 0) {
|
|
109
|
-
for (const diagnostic of validateResearchSourcePolicy(executionProvider.researchSourcePolicy).diagnostics) {
|
|
110
|
-
add(diagnostics, diagnostic.code, `${path}.researchSourcePolicy.${diagnostic.path}`, diagnostic.message);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
for (const [laneIndex, lane] of (executionProvider.lanes ?? []).entries()) {
|
|
114
|
-
const lanePath = `${path}.lanes[${laneIndex}]`;
|
|
115
|
-
if (!nonEmpty(lane.id) || laneIds.has(lane.id)) add(diagnostics, "provider_lane_id_invalid", `${lanePath}.id`, "Provider lane id must be non-empty and provider-global unique.");
|
|
116
|
-
laneIds.add(lane.id);
|
|
117
|
-
if (!["communication", "operation"].includes(lane.purpose)) add(diagnostics, "provider_lane_purpose_invalid", `${lanePath}.purpose`, "Provider lane purpose must be communication or operation.");
|
|
118
|
-
if (!Number.isInteger(lane.maxConcurrentRunners) || lane.maxConcurrentRunners < 1) add(diagnostics, "provider_lane_concurrency_invalid", `${lanePath}.maxConcurrentRunners`, "Provider lane concurrency must be a positive integer.");
|
|
119
|
-
const laneMinimum = lane.minimumAssignmentDuration;
|
|
120
|
-
if (laneMinimum !== void 0) {
|
|
121
|
-
if (!Number.isInteger(laneMinimum.amount) || laneMinimum.amount < 1) add(diagnostics, "provider_lane_minimum_duration_invalid", `${lanePath}.minimumAssignmentDuration.amount`, "Lane minimum assignment duration amount must be a positive integer.");
|
|
122
|
-
if (!["seconds", "business-days"].includes(laneMinimum.unit)) add(diagnostics, "provider_lane_minimum_duration_unit_invalid", `${lanePath}.minimumAssignmentDuration.unit`, "Lane minimum assignment duration unit must be seconds or business-days.");
|
|
123
|
-
if (laneMinimum.unit === "business-days") {
|
|
124
|
-
try {
|
|
125
|
-
new Intl.DateTimeFormat("en", { timeZone: laneMinimum.calendar?.timeZone }).format();
|
|
126
|
-
} catch {
|
|
127
|
-
add(diagnostics, "provider_lane_minimum_duration_timezone_invalid", `${lanePath}.minimumAssignmentDuration.calendar.timeZone`, "Business-day lane duration requires a valid IANA time zone.");
|
|
128
|
-
}
|
|
129
|
-
}
|
|
120
|
+
if (!Array.isArray(weekdays) || weekdays.length === 0 || weekdays.some((day) => !Number.isInteger(day) || day < 1 || day > 7) || new Set(weekdays).size !== weekdays.length) add(diagnostics, "provider_lane_minimum_duration_weekdays_invalid", `${lanePath}.minimumAssignmentDuration.calendar.weekdays`, "Business weekdays must be unique ISO weekday numbers from 1 through 7.");
|
|
121
|
+
if ((minimumDuration.calendar?.holidayDates ?? []).some((date) => !/^\d{4}-\d{2}-\d{2}$/u.test(date))) add(diagnostics, "provider_lane_minimum_duration_holidays_invalid", `${lanePath}.minimumAssignmentDuration.calendar.holidayDates`, "Business-day holidays must use YYYY-MM-DD dates.");
|
|
130
122
|
}
|
|
131
|
-
if (lane.capabilities && lane.capabilities.some((entry) => !nonEmpty(entry))) add(diagnostics, "provider_lane_capabilities_invalid", `${lanePath}.capabilities`, "Provider lane capabilities must be non-empty strings.");
|
|
132
123
|
}
|
|
133
124
|
}
|
|
134
|
-
if (manifest?.
|
|
135
|
-
|
|
125
|
+
if (reservedWorkers > manifest?.capacity?.maxConcurrentWorkers) add(diagnostics, "provider_lane_reservations_exceed_capacity", "lanes", "Total reserved workers may not exceed provider capacity.");
|
|
126
|
+
for (const purpose of ["communication", "platform", "workday"]) if (!purposes.has(purpose)) add(diagnostics, "provider_lane_purpose_required", "lanes", `Unified providers require a ${purpose} lane.`);
|
|
127
|
+
const communication = (manifest?.lanes ?? []).find((lane) => lane.purpose === "communication");
|
|
128
|
+
if (communication && communication.reservedConcurrentWorkers < 1) add(diagnostics, "provider_communication_reservation_required", "lanes", "Communication requires at least one reserved worker.");
|
|
129
|
+
if (communication && (manifest?.lanes ?? []).some((lane) => lane.purpose !== "communication" && lane.priority >= communication.priority)) add(diagnostics, "provider_communication_priority_invalid", "lanes", "Communication must have the highest lane priority.");
|
|
130
|
+
if (!Array.isArray(manifest?.adapters) || manifest.adapters.length === 0) add(diagnostics, "provider_manifest_adapters_required", "adapters", "At least one execution adapter is required.");
|
|
131
|
+
const adapterIds = /* @__PURE__ */ new Set();
|
|
132
|
+
for (const [index, adapter] of (manifest?.adapters ?? []).entries()) {
|
|
133
|
+
const path = `adapters[${index}]`;
|
|
134
|
+
if (!nonEmpty(adapter.id) || adapterIds.has(adapter.id)) add(diagnostics, "provider_adapter_id_invalid", `${path}.id`, "Adapter id must be non-empty and unique.");
|
|
135
|
+
adapterIds.add(adapter.id);
|
|
136
|
+
if (!nonEmpty(adapter.adapter)) add(diagnostics, "provider_adapter_required", `${path}.adapter`, "Adapter implementation is required.");
|
|
137
|
+
if (!["process", "worker"].includes(adapter.isolation)) add(diagnostics, "provider_adapter_isolation_invalid", `${path}.isolation`, "Adapter isolation must be process or worker.");
|
|
138
|
+
if (!Number.isInteger(adapter.maxConcurrentWorkers) || adapter.maxConcurrentWorkers < 1 || adapter.maxConcurrentWorkers > manifest.capacity.maxConcurrentWorkers) add(diagnostics, "provider_adapter_concurrency_invalid", `${path}.maxConcurrentWorkers`, "Adapter concurrency must be positive and no greater than provider capacity.");
|
|
139
|
+
if (!Array.isArray(adapter.laneIds) || adapter.laneIds.length === 0) add(diagnostics, "provider_adapter_lanes_required", `${path}.laneIds`, "Every adapter must serve at least one lane.");
|
|
140
|
+
for (const laneId of adapter.laneIds ?? []) if (!laneIds.has(laneId)) add(diagnostics, "provider_adapter_lane_unknown", `${path}.laneIds`, `Adapter references unknown lane ${laneId}.`);
|
|
141
|
+
for (const bindingId of adapter.credentialProfiles ?? []) if (!bindingIds.has(bindingId)) add(diagnostics, "provider_adapter_credential_unknown", `${path}.credentialProfiles`, `Adapter references unknown credential profile ${bindingId}.`);
|
|
142
|
+
if ((adapter.laneIds ?? []).some((laneId) => (manifest.lanes ?? []).find((lane) => lane.id === laneId)?.purpose === "platform") && adapter.isolation !== "process") add(diagnostics, "provider_platform_adapter_isolation_required", `${path}.isolation`, "Platform adapters require process isolation.");
|
|
143
|
+
if (!adapter.nativeLimits || typeof adapter.nativeLimits !== "object" || Array.isArray(adapter.nativeLimits)) add(diagnostics, "provider_adapter_limits_invalid", `${path}.nativeLimits`, "Adapter nativeLimits must be an object.");
|
|
144
|
+
for (const entry of validateExecutionProviderRuntimeConfiguration(adapter, path).diagnostics) add(diagnostics, entry.code, entry.path, entry.message);
|
|
145
|
+
if (adapter.researchSourcePolicy !== void 0) for (const diagnostic of validateResearchSourcePolicy(adapter.researchSourcePolicy).diagnostics) add(diagnostics, diagnostic.code, `${path}.researchSourcePolicy.${diagnostic.path}`, diagnostic.message);
|
|
136
146
|
}
|
|
137
147
|
if (!Array.isArray(manifest?.connections)) add(diagnostics, "provider_manifest_connections_required", "connections", "connections must be an array.");
|
|
138
148
|
const ids = /* @__PURE__ */ new Set();
|
|
@@ -177,7 +187,7 @@ export {
|
|
|
177
187
|
capacityProviderSecurityDefaults,
|
|
178
188
|
nonEmpty,
|
|
179
189
|
result,
|
|
180
|
-
|
|
190
|
+
validateCapacityProviderManifestV3,
|
|
181
191
|
validateCapacityProviderProofPayload,
|
|
182
192
|
validateCapacityProviderPublicJwk,
|
|
183
193
|
validateProviderSupplyOffer
|
|
@@ -352,7 +352,7 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
352
352
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
353
353
|
}, "strict", z.ZodTypeAny, {
|
|
354
354
|
id: string;
|
|
355
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
355
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
356
356
|
projectId: string;
|
|
357
357
|
teamId: string;
|
|
358
358
|
title: string;
|
|
@@ -371,7 +371,7 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
371
371
|
progress?: number | undefined;
|
|
372
372
|
}, {
|
|
373
373
|
id: string;
|
|
374
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
374
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
375
375
|
projectId: string;
|
|
376
376
|
teamId: string;
|
|
377
377
|
title: string;
|
|
@@ -390,7 +390,7 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
390
390
|
progress?: number | undefined;
|
|
391
391
|
}>, {
|
|
392
392
|
id: string;
|
|
393
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
393
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
394
394
|
projectId: string;
|
|
395
395
|
teamId: string;
|
|
396
396
|
title: string;
|
|
@@ -409,7 +409,7 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
409
409
|
progress?: number | undefined;
|
|
410
410
|
}, {
|
|
411
411
|
id: string;
|
|
412
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
412
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
413
413
|
projectId: string;
|
|
414
414
|
teamId: string;
|
|
415
415
|
title: string;
|
|
@@ -1022,7 +1022,7 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1022
1022
|
progress: z.ZodOptional<z.ZodNumber>;
|
|
1023
1023
|
}, "strict", z.ZodTypeAny, {
|
|
1024
1024
|
id: string;
|
|
1025
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
1025
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
1026
1026
|
projectId: string;
|
|
1027
1027
|
teamId: string;
|
|
1028
1028
|
title: string;
|
|
@@ -1041,7 +1041,7 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1041
1041
|
progress?: number | undefined;
|
|
1042
1042
|
}, {
|
|
1043
1043
|
id: string;
|
|
1044
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
1044
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
1045
1045
|
projectId: string;
|
|
1046
1046
|
teamId: string;
|
|
1047
1047
|
title: string;
|
|
@@ -1060,7 +1060,7 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1060
1060
|
progress?: number | undefined;
|
|
1061
1061
|
}>, {
|
|
1062
1062
|
id: string;
|
|
1063
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
1063
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
1064
1064
|
projectId: string;
|
|
1065
1065
|
teamId: string;
|
|
1066
1066
|
title: string;
|
|
@@ -1079,7 +1079,7 @@ export declare const agentOperationalContentSchemas: {
|
|
|
1079
1079
|
progress?: number | undefined;
|
|
1080
1080
|
}, {
|
|
1081
1081
|
id: string;
|
|
1082
|
-
status: "completed" | "cancelled" | "failed" | "
|
|
1082
|
+
status: "completed" | "cancelled" | "failed" | "admitted" | "running" | "suspended" | "pending" | "waiting" | "leased";
|
|
1083
1083
|
projectId: string;
|
|
1084
1084
|
teamId: string;
|
|
1085
1085
|
title: string;
|
|
@@ -392,13 +392,13 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
392
392
|
license: z.ZodOptional<z.ZodString>;
|
|
393
393
|
support: z.ZodOptional<z.ZodString>;
|
|
394
394
|
}, "strip", z.ZodTypeAny, {
|
|
395
|
-
priceModel: "
|
|
396
|
-
license?: string | undefined;
|
|
395
|
+
priceModel: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
|
|
397
396
|
support?: string | undefined;
|
|
398
|
-
}, {
|
|
399
|
-
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
400
397
|
license?: string | undefined;
|
|
398
|
+
}, {
|
|
401
399
|
support?: string | undefined;
|
|
400
|
+
priceModel?: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
401
|
+
license?: string | undefined;
|
|
402
402
|
}>>;
|
|
403
403
|
relatedBooks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
404
404
|
relatedKnowledge: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -444,9 +444,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
444
444
|
supportsReconcile: boolean;
|
|
445
445
|
};
|
|
446
446
|
offer: {
|
|
447
|
-
priceModel: "
|
|
448
|
-
license?: string | undefined;
|
|
447
|
+
priceModel: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
|
|
449
448
|
support?: string | undefined;
|
|
449
|
+
license?: string | undefined;
|
|
450
450
|
};
|
|
451
451
|
relatedBooks: string[];
|
|
452
452
|
relatedKnowledge: string[];
|
|
@@ -496,9 +496,9 @@ export declare const templateProductContentSchema: z.ZodObject<{
|
|
|
496
496
|
listingEnabled?: boolean | undefined;
|
|
497
497
|
publisherVerified?: boolean | undefined;
|
|
498
498
|
offer?: {
|
|
499
|
-
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
500
|
-
license?: string | undefined;
|
|
501
499
|
support?: string | undefined;
|
|
500
|
+
priceModel?: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
501
|
+
license?: string | undefined;
|
|
502
502
|
} | undefined;
|
|
503
503
|
relatedBooks?: string[] | undefined;
|
|
504
504
|
relatedKnowledge?: string[] | undefined;
|
|
@@ -667,11 +667,11 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
667
667
|
} & {
|
|
668
668
|
[k: string]: unknown;
|
|
669
669
|
};
|
|
670
|
+
fixture?: string | undefined;
|
|
670
671
|
budget?: {
|
|
671
672
|
maxTokens: number;
|
|
672
673
|
maxContextItems: number;
|
|
673
674
|
} | undefined;
|
|
674
|
-
fixture?: string | undefined;
|
|
675
675
|
queryRef?: {
|
|
676
676
|
id: string;
|
|
677
677
|
revision: number;
|
|
@@ -694,11 +694,11 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
694
694
|
id: string;
|
|
695
695
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
696
696
|
agent: string;
|
|
697
|
+
fixture?: string | undefined;
|
|
697
698
|
budget?: {
|
|
698
699
|
maxTokens: number;
|
|
699
700
|
maxContextItems: number;
|
|
700
701
|
} | undefined;
|
|
701
|
-
fixture?: string | undefined;
|
|
702
702
|
contextQueryRefs?: string[] | undefined;
|
|
703
703
|
groupIds?: string[] | undefined;
|
|
704
704
|
trigger?: Record<string, unknown> | undefined;
|
|
@@ -771,11 +771,11 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
771
771
|
} & {
|
|
772
772
|
[k: string]: unknown;
|
|
773
773
|
};
|
|
774
|
+
fixture?: string | undefined;
|
|
774
775
|
budget?: {
|
|
775
776
|
maxTokens: number;
|
|
776
777
|
maxContextItems: number;
|
|
777
778
|
} | undefined;
|
|
778
|
-
fixture?: string | undefined;
|
|
779
779
|
queryRef?: {
|
|
780
780
|
id: string;
|
|
781
781
|
revision: number;
|
|
@@ -798,11 +798,11 @@ export declare const agentTestContentSchema: z.ZodEffects<z.ZodObject<{
|
|
|
798
798
|
id: string;
|
|
799
799
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
800
800
|
agent: string;
|
|
801
|
+
fixture?: string | undefined;
|
|
801
802
|
budget?: {
|
|
802
803
|
maxTokens: number;
|
|
803
804
|
maxContextItems: number;
|
|
804
805
|
} | undefined;
|
|
805
|
-
fixture?: string | undefined;
|
|
806
806
|
contextQueryRefs?: string[] | undefined;
|
|
807
807
|
groupIds?: string[] | undefined;
|
|
808
808
|
trigger?: Record<string, unknown> | undefined;
|
|
@@ -1019,11 +1019,11 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1019
1019
|
} & {
|
|
1020
1020
|
[k: string]: unknown;
|
|
1021
1021
|
};
|
|
1022
|
+
fixture?: string | undefined;
|
|
1022
1023
|
budget?: {
|
|
1023
1024
|
maxTokens: number;
|
|
1024
1025
|
maxContextItems: number;
|
|
1025
1026
|
} | undefined;
|
|
1026
|
-
fixture?: string | undefined;
|
|
1027
1027
|
queryRef?: {
|
|
1028
1028
|
id: string;
|
|
1029
1029
|
revision: number;
|
|
@@ -1046,11 +1046,11 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1046
1046
|
id: string;
|
|
1047
1047
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
1048
1048
|
agent: string;
|
|
1049
|
+
fixture?: string | undefined;
|
|
1049
1050
|
budget?: {
|
|
1050
1051
|
maxTokens: number;
|
|
1051
1052
|
maxContextItems: number;
|
|
1052
1053
|
} | undefined;
|
|
1053
|
-
fixture?: string | undefined;
|
|
1054
1054
|
contextQueryRefs?: string[] | undefined;
|
|
1055
1055
|
groupIds?: string[] | undefined;
|
|
1056
1056
|
trigger?: Record<string, unknown> | undefined;
|
|
@@ -1123,11 +1123,11 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1123
1123
|
} & {
|
|
1124
1124
|
[k: string]: unknown;
|
|
1125
1125
|
};
|
|
1126
|
+
fixture?: string | undefined;
|
|
1126
1127
|
budget?: {
|
|
1127
1128
|
maxTokens: number;
|
|
1128
1129
|
maxContextItems: number;
|
|
1129
1130
|
} | undefined;
|
|
1130
|
-
fixture?: string | undefined;
|
|
1131
1131
|
queryRef?: {
|
|
1132
1132
|
id: string;
|
|
1133
1133
|
revision: number;
|
|
@@ -1150,11 +1150,11 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1150
1150
|
id: string;
|
|
1151
1151
|
kind: "workday" | "handler" | "spec" | "message_chain" | "manager_worker" | "api" | "ui" | "context-query" | "context-query-set";
|
|
1152
1152
|
agent: string;
|
|
1153
|
+
fixture?: string | undefined;
|
|
1153
1154
|
budget?: {
|
|
1154
1155
|
maxTokens: number;
|
|
1155
1156
|
maxContextItems: number;
|
|
1156
1157
|
} | undefined;
|
|
1157
|
-
fixture?: string | undefined;
|
|
1158
1158
|
contextQueryRefs?: string[] | undefined;
|
|
1159
1159
|
groupIds?: string[] | undefined;
|
|
1160
1160
|
trigger?: Record<string, unknown> | undefined;
|
|
@@ -1600,13 +1600,13 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1600
1600
|
license: z.ZodOptional<z.ZodString>;
|
|
1601
1601
|
support: z.ZodOptional<z.ZodString>;
|
|
1602
1602
|
}, "strip", z.ZodTypeAny, {
|
|
1603
|
-
priceModel: "
|
|
1604
|
-
license?: string | undefined;
|
|
1603
|
+
priceModel: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
|
|
1605
1604
|
support?: string | undefined;
|
|
1606
|
-
}, {
|
|
1607
|
-
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
1608
1605
|
license?: string | undefined;
|
|
1606
|
+
}, {
|
|
1609
1607
|
support?: string | undefined;
|
|
1608
|
+
priceModel?: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
1609
|
+
license?: string | undefined;
|
|
1610
1610
|
}>>;
|
|
1611
1611
|
relatedBooks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1612
1612
|
relatedKnowledge: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -1652,9 +1652,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1652
1652
|
supportsReconcile: boolean;
|
|
1653
1653
|
};
|
|
1654
1654
|
offer: {
|
|
1655
|
-
priceModel: "
|
|
1656
|
-
license?: string | undefined;
|
|
1655
|
+
priceModel: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external";
|
|
1657
1656
|
support?: string | undefined;
|
|
1657
|
+
license?: string | undefined;
|
|
1658
1658
|
};
|
|
1659
1659
|
relatedBooks: string[];
|
|
1660
1660
|
relatedKnowledge: string[];
|
|
@@ -1704,9 +1704,9 @@ export declare const auxiliaryContentSchemas: {
|
|
|
1704
1704
|
listingEnabled?: boolean | undefined;
|
|
1705
1705
|
publisherVerified?: boolean | undefined;
|
|
1706
1706
|
offer?: {
|
|
1707
|
-
priceModel?: "subscription" | "free" | "private" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
1708
|
-
license?: string | undefined;
|
|
1709
1707
|
support?: string | undefined;
|
|
1708
|
+
priceModel?: "private" | "subscription" | "free" | "contact" | "one_time" | "one_time_current_version" | "subscription_updates" | "professional_hosting" | "scoped_contract" | "external" | undefined;
|
|
1709
|
+
license?: string | undefined;
|
|
1710
1710
|
} | undefined;
|
|
1711
1711
|
relatedBooks?: string[] | undefined;
|
|
1712
1712
|
relatedKnowledge?: string[] | undefined;
|