@treeseed/sdk 0.13.0-rc.121 → 0.13.0-rc.122
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/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
- package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
- package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
- package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
- package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
- package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
- package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
- package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
- package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
- package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
- package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
- package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
- package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
- package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
- package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
- package/dist/agent-capacity/grant.d.ts +34 -0
- package/dist/agent-capacity/grant.js +4 -0
- package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
- package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
- package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
- package/dist/agent-capacity/validation/assignment-records.js +4 -35
- package/dist/agent-capacity/validation/configuration.d.ts +1 -1
- package/dist/agent-capacity/validation/configuration.js +2 -6
- package/dist/agent-capacity/validation/grant.d.ts +11 -0
- package/dist/agent-capacity/validation/grant.js +31 -0
- package/dist/capacity/agents/agent-capacity.d.ts +2 -4
- package/dist/capacity/agents/agent-capacity.js +1 -3
- package/dist/capacity-provider/capability-ontology.d.ts +138 -138
- package/dist/capacity-provider/client.d.ts +1 -2
- package/dist/capacity-provider/client.js +0 -6
- package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
- package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
- package/dist/capacity-provider/environment-catalog.d.ts +166 -166
- package/dist/capacity-provider/install-configuration.d.ts +2 -2
- package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
- package/dist/capacity-provider/source-workspace.d.ts +102 -4
- package/dist/capacity-provider/source-workspace.js +5 -1
- package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
- package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
- package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
- package/dist/content/validation/content-model-schemas.js +116 -48
- package/dist/content/validation/portable-content-data.d.ts +351 -181
- package/dist/content/validation/portable-content-data.js +6 -1
- package/dist/deployment/ai/storage.d.ts +14 -14
- package/dist/deployment/ai-hosting.d.ts +10 -10
- package/dist/deployment/ai-instance.d.ts +14 -14
- package/dist/deployment/ai-mode.d.ts +82 -82
- package/dist/deployment/hosted-topology-template.d.ts +24 -24
- package/dist/deployment/hosted-topology.d.ts +219 -219
- package/dist/deployment/postgres/contracts.d.ts +52 -52
- package/dist/deployment/postgres/transfer.d.ts +4 -4
- package/dist/deployment/schemas.d.ts +780 -780
- package/dist/development/schemas.d.ts +439 -439
- package/dist/knowledge/contracts.d.ts +9 -2
- package/dist/knowledge/contracts.js +2 -2
- package/dist/model-registry/discussion-models.js +0 -1
- package/dist/operator-contracts/canonical-command-tree.js +3 -1
- package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
- package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
- package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
- package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
- package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
- package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
- package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
- package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
- package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
- package/dist/operator-contracts/communication/contracts.d.ts +273 -273
- package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
- package/dist/operator-contracts/control-plane-operations.js +0 -2
- package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
- package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
- package/dist/platform/agent-schema-verification.d.ts +3 -0
- package/dist/platform/agent-schema-verification.js +94 -0
- package/dist/platform/verification.js +6 -0
- package/dist/sdk-types/support/planning-policy.d.ts +1 -1
- package/dist/secrets-capability/shared-access.d.ts +2 -2
- package/dist/secrets-capability/shared-resources.d.ts +46 -46
- package/dist/secrets-capability/vault-contracts.d.ts +2 -2
- package/dist/security/encrypted-envelope.d.ts +8 -8
- package/package.json +3 -2
- package/dist/agent-capacity/allocation.d.ts +0 -183
- package/dist/agent-capacity/allocation.js +0 -5
- package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
- package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
- package/dist/agent-capacity/artifacts.d.ts +0 -123
- package/dist/agent-capacity/artifacts.js +0 -39
- package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
- package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
- package/dist/agent-capacity/validation/allocation.d.ts +0 -12
- package/dist/agent-capacity/validation/allocation.js +0 -115
|
@@ -53,7 +53,7 @@ const executionEdgeSchema = z.object({
|
|
|
53
53
|
teamId: identifier,
|
|
54
54
|
fromNodeId: identifier,
|
|
55
55
|
toNodeId: identifier,
|
|
56
|
-
provenance: z.enum(["profile-agent", "profile-event", "work-item", "review-pair", "governance"]),
|
|
56
|
+
provenance: z.enum(["profile-agent", "profile-event", "work-item", "review-pair", "governance", "treedx-link"]),
|
|
57
57
|
sourceRef: exactEntityReferenceSchema.optional(),
|
|
58
58
|
graphRevisionCreated: z.number().int().positive(),
|
|
59
59
|
graphRevisionRemoved: z.number().int().positive().optional()
|
|
@@ -5,13 +5,10 @@ export interface CapacityReservation {
|
|
|
5
5
|
id: string;
|
|
6
6
|
idempotencyKey: string;
|
|
7
7
|
membershipId: string;
|
|
8
|
-
grantId: string;
|
|
8
|
+
grantId: string | null;
|
|
9
9
|
capacityProviderId: string;
|
|
10
10
|
executionProviderId: string | null;
|
|
11
11
|
laneId: string | null;
|
|
12
|
-
allocationSetId: string;
|
|
13
|
-
allocationVersion: number;
|
|
14
|
-
allocationSliceIds: string[];
|
|
15
12
|
policySnapshot: Record<string, unknown>;
|
|
16
13
|
projectAgentClassId: string;
|
|
17
14
|
assignmentId: string | null;
|
|
@@ -47,7 +44,6 @@ export interface CapacityLedgerEntry {
|
|
|
47
44
|
capacityProviderId: string;
|
|
48
45
|
reservationId: string | null;
|
|
49
46
|
assignmentId: string | null;
|
|
50
|
-
modeRunId: string | null;
|
|
51
47
|
mode: 'planning' | 'acting' | null;
|
|
52
48
|
teamId: string;
|
|
53
49
|
projectId: string | null;
|
|
@@ -96,7 +92,6 @@ export interface CapacityUsageActual {
|
|
|
96
92
|
assignmentAttempt: number;
|
|
97
93
|
usageDimension: string;
|
|
98
94
|
accountingMode: 'informational' | 'incremental' | 'aggregate';
|
|
99
|
-
modeRunId: string | null;
|
|
100
95
|
mode: 'planning' | 'acting' | null;
|
|
101
96
|
capacityProviderId: string | null;
|
|
102
97
|
executionProviderId: string | null;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AgentExecutionMode } from '../capacity/assignments/assignment-records.js';
|
|
2
2
|
export type DecisionExecutionReadinessStatus = 'draft' | 'blocked' | 'ready' | 'stale' | 'waived';
|
|
3
3
|
export type PlanningInputRequestStatus = 'requested' | 'complete' | 'waived' | 'rejected' | 'stale';
|
|
4
|
-
export type DecisionExecutionInputStatus = 'proposed' | 'accepted' | 'revision_requested' | 'rejected' | 'stale';
|
|
5
|
-
export type WorkdayCapacityEnvelopeStatus = 'draft' | 'queued' | 'active' | 'paused' | 'completed' | 'cancelled' | 'failed' | 'degraded';
|
|
6
|
-
export type DurableAgentCapacityPlanStatus = 'draft' | 'accepted' | 'revision_requested' | 'deferred' | 'scheduled' | 'active' | 'completed' | 'superseded';
|
|
7
4
|
export interface DecisionPlanningStatus {
|
|
8
5
|
id: string;
|
|
9
6
|
teamId: string;
|
|
@@ -36,86 +33,3 @@ export interface PlanningInputRequest {
|
|
|
36
33
|
completedAt?: string | null;
|
|
37
34
|
staleAt?: string | null;
|
|
38
35
|
}
|
|
39
|
-
export interface DecisionExecutionInputRecord {
|
|
40
|
-
id: string;
|
|
41
|
-
teamId: string;
|
|
42
|
-
projectId: string;
|
|
43
|
-
decisionId: string;
|
|
44
|
-
workGraphNodeId?: string | null;
|
|
45
|
-
estimateId?: string | null;
|
|
46
|
-
projectAgentClassId: string;
|
|
47
|
-
mode: AgentExecutionMode;
|
|
48
|
-
status: DecisionExecutionInputStatus;
|
|
49
|
-
scopeHash: string;
|
|
50
|
-
input: DecisionExecutionInput;
|
|
51
|
-
acceptedAt?: string | null;
|
|
52
|
-
revisionRequestedAt?: string | null;
|
|
53
|
-
staleAt?: string | null;
|
|
54
|
-
metadata?: Record<string, unknown>;
|
|
55
|
-
createdAt?: string;
|
|
56
|
-
updatedAt?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface WorkdayCapacityEnvelopeRecord {
|
|
59
|
-
id: string;
|
|
60
|
-
teamId: string;
|
|
61
|
-
projectId: string;
|
|
62
|
-
workdayRunId?: string | null;
|
|
63
|
-
allocationSetId?: string | null;
|
|
64
|
-
status: WorkdayCapacityEnvelopeStatus;
|
|
65
|
-
startedAt?: string | null;
|
|
66
|
-
pausedAt?: string | null;
|
|
67
|
-
completedAt?: string | null;
|
|
68
|
-
envelope: WorkdayCapacityEnvelope;
|
|
69
|
-
metadata?: Record<string, unknown>;
|
|
70
|
-
createdAt?: string;
|
|
71
|
-
updatedAt?: string;
|
|
72
|
-
}
|
|
73
|
-
export interface AgentCapacityPlanWorkUnit {
|
|
74
|
-
id: string;
|
|
75
|
-
decisionExecutionInputId: string;
|
|
76
|
-
decisionId: string;
|
|
77
|
-
workGraphNodeId?: string | null;
|
|
78
|
-
projectAgentClassId: string;
|
|
79
|
-
mode: AgentExecutionMode;
|
|
80
|
-
activityType?: import('../../../types/agents.js').AgentActivityType;
|
|
81
|
-
taskId?: string | null;
|
|
82
|
-
agentId?: string | null;
|
|
83
|
-
handlerId?: string | null;
|
|
84
|
-
workDayId?: string | null;
|
|
85
|
-
expectedSeconds: number;
|
|
86
|
-
highSeconds: number;
|
|
87
|
-
requiredCapabilities: string[];
|
|
88
|
-
dependencies: string[];
|
|
89
|
-
blockers: string[];
|
|
90
|
-
risk: Record<string, unknown>;
|
|
91
|
-
assumptions: string[];
|
|
92
|
-
confidence?: number | null;
|
|
93
|
-
capacityEnvelope: AgentCapacityEnvelope;
|
|
94
|
-
decisionInput: DecisionExecutionInput;
|
|
95
|
-
metadata?: Record<string, unknown>;
|
|
96
|
-
}
|
|
97
|
-
export interface AgentCapacityPlanRecord {
|
|
98
|
-
id: string;
|
|
99
|
-
teamId: string;
|
|
100
|
-
projectId: string;
|
|
101
|
-
decisionId: string;
|
|
102
|
-
status: DurableAgentCapacityPlanStatus;
|
|
103
|
-
scopeHash: string;
|
|
104
|
-
allocationSetId?: string | null;
|
|
105
|
-
workDayId?: string | null;
|
|
106
|
-
expectedSeconds: number;
|
|
107
|
-
highSeconds: number;
|
|
108
|
-
workUnits: AgentCapacityPlanWorkUnit[];
|
|
109
|
-
capabilityNeeds: string[];
|
|
110
|
-
environmentNeeds: string[];
|
|
111
|
-
reserves: Record<string, unknown>;
|
|
112
|
-
blockers: string[];
|
|
113
|
-
priorityRationale?: string | null;
|
|
114
|
-
review?: Record<string, unknown>;
|
|
115
|
-
metadata?: Record<string, unknown>;
|
|
116
|
-
acceptedAt?: string | null;
|
|
117
|
-
scheduledAt?: string | null;
|
|
118
|
-
supersededAt?: string | null;
|
|
119
|
-
createdAt?: string;
|
|
120
|
-
updatedAt?: string;
|
|
121
|
-
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export type CapacityGrantStatus = 'planned' | 'active' | 'paused' | 'revoked' | 'expired';
|
|
2
|
+
export interface CapacityGrantV2 {
|
|
3
|
+
schemaVersion: 2;
|
|
4
|
+
id: string;
|
|
5
|
+
membershipId: string;
|
|
6
|
+
teamId: string;
|
|
7
|
+
providerId: string;
|
|
8
|
+
projectId: string;
|
|
9
|
+
environment: string;
|
|
10
|
+
status: CapacityGrantStatus;
|
|
11
|
+
executionProviderIds: string[];
|
|
12
|
+
laneIds: string[];
|
|
13
|
+
capabilities: string[];
|
|
14
|
+
allowedModes: Array<'planning' | 'acting'>;
|
|
15
|
+
dailyAgentSecondsLimit?: number | null;
|
|
16
|
+
monthlyAgentSecondsLimit?: number | null;
|
|
17
|
+
maxConcurrentAssignments?: number | null;
|
|
18
|
+
budgetLimits?: {
|
|
19
|
+
tokens?: number | null;
|
|
20
|
+
cost?: {
|
|
21
|
+
amount: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
} | null;
|
|
24
|
+
native?: Array<{
|
|
25
|
+
unit: string;
|
|
26
|
+
amount: number;
|
|
27
|
+
}>;
|
|
28
|
+
} | null;
|
|
29
|
+
unmetered?: boolean;
|
|
30
|
+
expiresAt?: string | null;
|
|
31
|
+
metadata?: Record<string, unknown>;
|
|
32
|
+
}
|
|
33
|
+
export { validateCapacityGrantV2 } from './validation/grant.js';
|
|
34
|
+
export type { CapacityGrantDiagnostic, CapacityGrantValidation } from './validation/grant.js';
|