@treeseed/sdk 0.13.0-rc.120 → 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.
Files changed (97) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +1594 -922
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +22 -1
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-context-pack.d.ts +40 -40
  5. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +1 -59
  6. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.d.ts +1 -1
  7. package/dist/agent-capacity/contracts/capacity/workdays/assignment-allocation.js +1 -1
  8. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +18 -20
  9. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +1 -1
  10. package/dist/agent-capacity/contracts/capacity/workdays/workday-records.d.ts +0 -67
  11. package/dist/agent-capacity/contracts/configuration/configuration.d.ts +1 -1
  12. package/dist/agent-capacity/contracts/configuration/configuration.js +0 -2
  13. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +8 -8
  14. package/dist/agent-capacity/contracts/projects/agents/project-agent-class.d.ts +0 -23
  15. package/dist/agent-capacity/contracts/runtime/runtime-observability.d.ts +2 -154
  16. package/dist/agent-capacity/contracts/support/agent-atlas.d.ts +0 -13
  17. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +176 -176
  18. package/dist/agent-capacity/contracts/support/execution-graph.js +1 -1
  19. package/dist/agent-capacity/contracts/support/financial-records.d.ts +1 -6
  20. package/dist/agent-capacity/contracts/support/planning-records.d.ts +1 -87
  21. package/dist/agent-capacity/grant.d.ts +34 -0
  22. package/dist/agent-capacity/grant.js +4 -0
  23. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +1042 -1042
  24. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +11 -11
  25. package/dist/agent-capacity/validation/agent-lab-forensics-schema.js +0 -1
  26. package/dist/agent-capacity/validation/assignment-records.d.ts +1 -6
  27. package/dist/agent-capacity/validation/assignment-records.js +4 -35
  28. package/dist/agent-capacity/validation/configuration.d.ts +1 -1
  29. package/dist/agent-capacity/validation/configuration.js +2 -6
  30. package/dist/agent-capacity/validation/grant.d.ts +11 -0
  31. package/dist/agent-capacity/validation/grant.js +31 -0
  32. package/dist/capacity/agents/agent-capacity.d.ts +2 -4
  33. package/dist/capacity/agents/agent-capacity.js +1 -3
  34. package/dist/capacity-provider/capability-ontology.d.ts +138 -138
  35. package/dist/capacity-provider/client.d.ts +1 -2
  36. package/dist/capacity-provider/client.js +0 -6
  37. package/dist/capacity-provider/contracts/environment-profiles.d.ts +8 -8
  38. package/dist/capacity-provider/core-capability-catalog.d.ts +4 -4
  39. package/dist/capacity-provider/environment-catalog.d.ts +166 -166
  40. package/dist/capacity-provider/install-configuration.d.ts +2 -2
  41. package/dist/capacity-provider/sandbox-contracts.d.ts +52 -52
  42. package/dist/capacity-provider/source-workspace.d.ts +102 -4
  43. package/dist/capacity-provider/source-workspace.js +5 -1
  44. package/dist/content/validation/agent-operational-content-schemas.d.ts +108 -108
  45. package/dist/content/validation/auxiliary-content-schemas.d.ts +108 -108
  46. package/dist/content/validation/content-model-schemas.d.ts +9473 -6284
  47. package/dist/content/validation/content-model-schemas.js +116 -48
  48. package/dist/content/validation/portable-content-data.d.ts +351 -181
  49. package/dist/content/validation/portable-content-data.js +6 -1
  50. package/dist/deployment/ai/storage.d.ts +14 -14
  51. package/dist/deployment/ai-hosting.d.ts +10 -10
  52. package/dist/deployment/ai-instance.d.ts +14 -14
  53. package/dist/deployment/ai-mode.d.ts +82 -82
  54. package/dist/deployment/hosted-topology-template.d.ts +24 -24
  55. package/dist/deployment/hosted-topology.d.ts +219 -219
  56. package/dist/deployment/postgres/contracts.d.ts +52 -52
  57. package/dist/deployment/postgres/transfer.d.ts +4 -4
  58. package/dist/deployment/schemas.d.ts +780 -780
  59. package/dist/development/schemas.d.ts +440 -440
  60. package/dist/development/schemas.js +1 -1
  61. package/dist/knowledge/contracts.d.ts +9 -2
  62. package/dist/knowledge/contracts.js +2 -2
  63. package/dist/model-registry/discussion-models.js +0 -1
  64. package/dist/operator-contracts/canonical-command-tree.js +9 -2
  65. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +2 -2
  66. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +17 -17
  67. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +4 -4
  68. package/dist/operator-contracts/catalog/communication-operations.d.ts +100 -100
  69. package/dist/operator-contracts/catalog/hosted-topology-operations.d.ts +40 -40
  70. package/dist/operator-contracts/catalog/inbox-operations.d.ts +54 -54
  71. package/dist/operator-contracts/catalog/infrastructure/ai-instance-operations.d.ts +5 -5
  72. package/dist/operator-contracts/catalog/knowledge-share-operations.d.ts +10 -10
  73. package/dist/operator-contracts/catalog/services/secret-operations.d.ts +8 -8
  74. package/dist/operator-contracts/communication/contracts.d.ts +273 -273
  75. package/dist/operator-contracts/control-plane-operations.d.ts +236 -242
  76. package/dist/operator-contracts/control-plane-operations.js +0 -2
  77. package/dist/operator-contracts/inbox/contracts.d.ts +204 -204
  78. package/dist/operator-contracts/knowledge/contracts.d.ts +16 -16
  79. package/dist/platform/agent-schema-verification.d.ts +3 -0
  80. package/dist/platform/agent-schema-verification.js +94 -0
  81. package/dist/platform/verification.js +6 -0
  82. package/dist/sdk-types/support/planning-policy.d.ts +1 -1
  83. package/dist/secrets-capability/shared-access.d.ts +2 -2
  84. package/dist/secrets-capability/shared-resources.d.ts +46 -46
  85. package/dist/secrets-capability/vault-contracts.d.ts +2 -2
  86. package/dist/security/encrypted-envelope.d.ts +8 -8
  87. package/package.json +3 -2
  88. package/dist/agent-capacity/allocation.d.ts +0 -183
  89. package/dist/agent-capacity/allocation.js +0 -5
  90. package/dist/agent-capacity/artifact-mutation-receipt.d.ts +0 -49
  91. package/dist/agent-capacity/artifact-mutation-receipt.js +0 -36
  92. package/dist/agent-capacity/artifacts.d.ts +0 -123
  93. package/dist/agent-capacity/artifacts.js +0 -39
  94. package/dist/agent-capacity/contracts/support/decision-work.d.ts +0 -227
  95. package/dist/agent-capacity/contracts/support/decision-work.js +0 -0
  96. package/dist/agent-capacity/validation/allocation.d.ts +0 -12
  97. package/dist/agent-capacity/validation/allocation.js +0 -115
@@ -1,10 +1,6 @@
1
1
  import type { AgentWorkExecutionMode } from '../../support/authority/execution-mode.js';
2
2
  export type CapacityWorkdayRunStatus = 'queued' | 'running' | 'completed' | 'cancelled' | 'failed' | 'degraded';
3
3
  export type CapacityWorkdayEventStatus = 'recorded' | 'active' | 'completed' | 'warning' | 'error' | 'failed';
4
- export type CapacityWorkdayDemandSource = 'objective' | 'question' | 'proposal' | 'decision-review' | 'knowledge-gap' | 'release-readiness' | 'idle-intent' | 'planning-input' | 'capacity-plan' | 'assignment-completion' | 'assignment-blockage' | 'workday-summary' | 'handoff' | 'research-workflow';
5
- export type CapacityWorkdayDemandStatus = 'pending' | 'claimed' | 'admitted' | 'completed' | 'blocked' | 'cancelled' | 'superseded';
6
- export type CapacityWorkdayParticipationCycleStatus = 'open' | 'covered' | 'closed';
7
- export type CapacityWorkdayParticipationEntryStatus = 'pending' | 'assigned' | 'completed' | 'excluded' | 'blocked';
8
4
  export interface CapacityWorkdayRunRecord {
9
5
  id: string;
10
6
  teamId: string;
@@ -36,7 +32,6 @@ export interface CapacityWorkdayEventRecord {
36
32
  projectId: string | null;
37
33
  workdayId: string | null;
38
34
  assignmentId: string | null;
39
- modeRunId: string | null;
40
35
  eventIndex: number;
41
36
  eventType: string;
42
37
  status: CapacityWorkdayEventStatus;
@@ -59,7 +54,6 @@ export interface AgentActivityEvent {
59
54
  projectId: string | null;
60
55
  workdayId: string;
61
56
  assignmentId: string | null;
62
- modeRunId: string | null;
63
57
  executionRunId: string | null;
64
58
  agentId: string | null;
65
59
  agentClassId: string | null;
@@ -106,64 +100,3 @@ export interface CapacityWorkdayScheduleRecord {
106
100
  createdAt: string;
107
101
  updatedAt: string;
108
102
  }
109
- export interface CapacityWorkdayDemandRecord {
110
- id: string;
111
- teamId: string;
112
- projectId: string;
113
- workdayRunId: string;
114
- workdayId: string;
115
- sourceType: CapacityWorkdayDemandSource;
116
- sourceId: string;
117
- mode: 'planning' | 'acting';
118
- executionMode?: AgentWorkExecutionMode;
119
- projectAgentClassId: string;
120
- agentId: string | null;
121
- handlerId: string;
122
- activityType: string;
123
- decisionId: string | null;
124
- capacityPlanId: string | null;
125
- status: CapacityWorkdayDemandStatus;
126
- priority: number;
127
- requestedSeconds: number;
128
- idempotencyKey: string;
129
- claimToken: string | null;
130
- assignmentId: string | null;
131
- payload: Record<string, unknown>;
132
- metadata: Record<string, unknown>;
133
- availableAt: string;
134
- claimedAt: string | null;
135
- admittedAt: string | null;
136
- completedAt: string | null;
137
- createdAt: string;
138
- updatedAt: string;
139
- }
140
- export interface CapacityWorkdayParticipationCycleRecord {
141
- id: string;
142
- teamId: string;
143
- projectId: string;
144
- workdayRunId: string;
145
- cycleNumber: number;
146
- status: CapacityWorkdayParticipationCycleStatus;
147
- openedAt: string;
148
- coveredAt: string | null;
149
- closedAt: string | null;
150
- createdAt: string;
151
- updatedAt: string;
152
- }
153
- export interface CapacityWorkdayParticipationEntryRecord {
154
- id: string;
155
- cycleId: string;
156
- teamId: string;
157
- projectId: string;
158
- workdayRunId: string;
159
- agentId: string;
160
- projectAgentClassId: string;
161
- status: CapacityWorkdayParticipationEntryStatus;
162
- reasonCode: string | null;
163
- demandId: string | null;
164
- assignmentId: string | null;
165
- coveredAt: string | null;
166
- metadata: Record<string, unknown>;
167
- createdAt: string;
168
- updatedAt: string;
169
- }
@@ -1,4 +1,4 @@
1
- export declare const CAPACITY_CONFIGURATION_FAMILIES: readonly ["provider-manifest", "provider-offer", "capacity-grant", "allocation-set", "project-agent-class", "activity-profile"];
1
+ export declare const CAPACITY_CONFIGURATION_FAMILIES: readonly ["provider-manifest", "provider-offer", "capacity-grant", "project-agent-class", "activity-profile"];
2
2
  export type CapacityConfigurationFamily = (typeof CAPACITY_CONFIGURATION_FAMILIES)[number];
3
3
  export interface CapacityConfigurationDescriptor {
4
4
  id: CapacityConfigurationFamily;
@@ -2,7 +2,6 @@ const CAPACITY_CONFIGURATION_FAMILIES = [
2
2
  "provider-manifest",
3
3
  "provider-offer",
4
4
  "capacity-grant",
5
- "allocation-set",
6
5
  "project-agent-class",
7
6
  "activity-profile"
8
7
  ];
@@ -10,7 +9,6 @@ const CAPACITY_CONFIGURATION_DESCRIPTORS = [
10
9
  { id: "provider-manifest", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-provider/v5", validator: "validateCapacityProviderManifestV5", runtimeOwner: "@treeseed/agent" },
11
10
  { id: "provider-offer", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.provider-supply-offer/v1", validator: "validateProviderSupplyOffer", runtimeOwner: "@treeseed/agent" },
12
11
  { id: "capacity-grant", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-grant/v2", validator: "validateCapacityGrantV2", runtimeOwner: "@treeseed/api" },
13
- { id: "allocation-set", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.capacity-allocation-set/v2", validator: "validateCapacityAllocationSetV2", runtimeOwner: "@treeseed/api" },
14
12
  { id: "project-agent-class", ownerPackage: "@treeseed/sdk", format: "yaml", schemaId: "treeseed.project-agent-class/v1", validator: "validateProjectAgentClassConfiguration", runtimeOwner: "@treeseed/api" },
15
13
  { id: "activity-profile", ownerPackage: "@treeseed/sdk", format: "mdx-frontmatter", schemaId: "treeseed.agent-activity-profiles/v1", validator: "validateAgentActivityProfilesConfiguration", runtimeOwner: "@treeseed/agent" }
16
14
  ];
@@ -27,13 +27,13 @@ export declare const agentTeamCloneDefinitionSchema: z.ZodObject<{
27
27
  desiredDigest: z.ZodString;
28
28
  }, "strict", z.ZodTypeAny, {
29
29
  path: string;
30
- desiredDigest: string;
31
30
  agentClass: string;
31
+ desiredDigest: string;
32
32
  sourceDigest: string;
33
33
  }, {
34
34
  path: string;
35
- desiredDigest: string;
36
35
  agentClass: string;
36
+ desiredDigest: string;
37
37
  sourceDigest: string;
38
38
  }>;
39
39
  export declare const agentTeamClonePlanSchema: z.ZodObject<{
@@ -73,13 +73,13 @@ export declare const agentTeamClonePlanSchema: z.ZodObject<{
73
73
  desiredDigest: z.ZodString;
74
74
  }, "strict", z.ZodTypeAny, {
75
75
  path: string;
76
- desiredDigest: string;
77
76
  agentClass: string;
77
+ desiredDigest: string;
78
78
  sourceDigest: string;
79
79
  }, {
80
80
  path: string;
81
- desiredDigest: string;
82
81
  agentClass: string;
82
+ desiredDigest: string;
83
83
  sourceDigest: string;
84
84
  }>, "many">;
85
85
  }, "strict", z.ZodTypeAny, {
@@ -91,8 +91,8 @@ export declare const agentTeamClonePlanSchema: z.ZodObject<{
91
91
  projectId: string;
92
92
  definitions: {
93
93
  path: string;
94
- desiredDigest: string;
95
94
  agentClass: string;
95
+ desiredDigest: string;
96
96
  sourceDigest: string;
97
97
  }[];
98
98
  }, {
@@ -104,8 +104,8 @@ export declare const agentTeamClonePlanSchema: z.ZodObject<{
104
104
  projectId: string;
105
105
  definitions: {
106
106
  path: string;
107
- desiredDigest: string;
108
107
  agentClass: string;
108
+ desiredDigest: string;
109
109
  sourceDigest: string;
110
110
  }[];
111
111
  }>, "many">;
@@ -121,8 +121,8 @@ export declare const agentTeamClonePlanSchema: z.ZodObject<{
121
121
  projectId: string;
122
122
  definitions: {
123
123
  path: string;
124
- desiredDigest: string;
125
124
  agentClass: string;
125
+ desiredDigest: string;
126
126
  sourceDigest: string;
127
127
  }[];
128
128
  }[];
@@ -146,8 +146,8 @@ export declare const agentTeamClonePlanSchema: z.ZodObject<{
146
146
  projectId: string;
147
147
  definitions: {
148
148
  path: string;
149
- desiredDigest: string;
150
149
  agentClass: string;
150
+ desiredDigest: string;
151
151
  sourceDigest: string;
152
152
  }[];
153
153
  }[];
@@ -1,23 +1,4 @@
1
- import type { AgentExecutionMode } from '../../capacity/assignments/assignment-records.js';
2
1
  export type ProjectAgentClassStatus = 'active' | 'paused' | 'archived';
3
- export interface AgentKernelProfile {
4
- id?: string;
5
- name?: string;
6
- defaultMode?: AgentExecutionMode;
7
- allowedModes?: AgentExecutionMode[];
8
- planningBudgetPercent?: number;
9
- actingBudgetPercent?: number;
10
- maxConcurrentModeRuns?: number;
11
- fallbackMode?: AgentExecutionMode | null;
12
- metadata?: Record<string, unknown>;
13
- }
14
- export interface AgentKernelPolicy {
15
- modeSelection?: Record<string, unknown>;
16
- budgetSplit?: Record<string, unknown>;
17
- fallback?: Record<string, unknown>;
18
- outputValidation?: Record<string, unknown>;
19
- metadata?: Record<string, unknown>;
20
- }
21
2
  export interface ProjectAgentClass {
22
3
  id: string;
23
4
  teamId: string;
@@ -25,11 +6,7 @@ export interface ProjectAgentClass {
25
6
  slug: string;
26
7
  name: string;
27
8
  status: ProjectAgentClassStatus;
28
- allowedModes: AgentExecutionMode[];
29
- kernelProfile: AgentKernelProfile;
30
- kernelPolicy: AgentKernelPolicy;
31
9
  handlerRefs: Record<string, unknown>;
32
- outputContracts: Record<string, unknown>;
33
10
  metadata?: Record<string, unknown>;
34
11
  createdAt?: string;
35
12
  updatedAt?: string;
@@ -1,104 +1,14 @@
1
1
  import type { CapacityPageInfo } from '../../../capacity/capacity-core/capacity-pagination.js';
2
2
  import type { ExecutionCapabilityDemand, ExecutionCapabilitySupply } from '../../../types/agents.js';
3
- import type { AgentCapacityEnvelope, AgentExecutionMode, AgentModeRun, AgentModeRunUsageSettlement, DecisionExecutionInput, ProviderAssignment, ProviderAssignmentSynthesisSource, TreeDxProxyHandle, WorkdayCapacityEnvelope } from '../capacity/assignments/assignment-records.js';
4
- import type { AgentKernelPolicy, AgentKernelProfile, ProjectAgentClass } from '../projects/agents/project-agent-class.js';
5
- import type { CapacityLedgerEntry, CapacityReservation, CapacityUsageActual } from '../support/financial-records.js';
6
- import type { DecisionPlanningStatus, WorkdayCapacityEnvelopeRecord } from '../support/planning-records.js';
7
- export type AgentKernelModeExecutionStatus = 'completed' | 'waiting' | 'failed' | 'returned';
3
+ import type { AgentExecutionMode, ProviderAssignment, ProviderAssignmentSynthesisSource, TreeDxProxyHandle } from '../capacity/assignments/assignment-records.js';
4
+ import type { CapacityLedgerEntry } from '../support/financial-records.js';
8
5
  export type AgentKernelModeFallbackCode = 'assignment_missing_project_or_agent' | 'assignment_governance_provenance_missing' | 'assignment_lease_expired' | 'assignment_mode_not_allowed' | 'assignment_missing_capacity_envelope' | 'assignment_missing_decision_input' | 'assignment_handler_failed' | 'assignment_project_not_synced' | 'assignment_agent_not_found' | 'assignment_insufficient_capability' | 'assignment_decision_not_ready' | 'assignment_capacity_plan_not_accepted' | 'assignment_capacity_not_reserved' | 'assignment_capability_handle_invalid' | 'assignment_capability_handle_secret_material' | 'assignment_capability_handle_write_not_ready' | 'assignment_capability_handle_workspace_denied' | 'assignment_repository_ref_scope_invalid' | 'assignment_workflow_operation_denied' | 'assignment_eligibility_capability_mismatch' | 'assignment_retry_policy_exceeded' | 'assignment_treedx_proxy_scope_invalid' | 'assignment_fallback_quota_exceeded' | 'assignment_output_invalid';
9
- export interface AgentCapacityPlan {
10
- teamId: string;
11
- projectId: string;
12
- environment: string;
13
- allocationSetId?: string | null;
14
- workday: WorkdayCapacityEnvelope;
15
- assignableProviders: Array<{
16
- capacityProviderId: string;
17
- executionProviderId?: string | null;
18
- availableAgentSeconds?: number | null;
19
- reasons?: string[];
20
- metadata?: Record<string, unknown>;
21
- }>;
22
- metadata?: Record<string, unknown>;
23
- }
24
6
  export interface AgentKernelModeFallback {
25
7
  code: AgentKernelModeFallbackCode | string;
26
8
  reason: string;
27
9
  retryable: boolean;
28
10
  metadata?: Record<string, unknown>;
29
11
  }
30
- export interface AgentKernelModeExecutionInput {
31
- assignment: ProviderAssignment;
32
- modeRunId?: string | null;
33
- projectAgentClass?: ProjectAgentClass | null;
34
- kernelProfile?: AgentKernelProfile | null;
35
- kernelPolicy?: AgentKernelPolicy | null;
36
- capacityEnvelope?: AgentCapacityEnvelope | null;
37
- decisionInput?: DecisionExecutionInput | null;
38
- leaseToken?: string | null;
39
- runnerId?: string | null;
40
- readiness?: DecisionPlanningStatus | null;
41
- treedxProxyHandle?: TreeDxProxyHandle | null;
42
- now?: string | Date;
43
- metadata?: Record<string, unknown>;
44
- }
45
- export interface AgentKernelModeExecutionResult {
46
- status: AgentKernelModeExecutionStatus;
47
- mode: AgentExecutionMode;
48
- assignmentId: string;
49
- projectId: string;
50
- projectAgentClassId: string;
51
- agentId?: string | null;
52
- handlerId?: string | null;
53
- summary: string;
54
- outputs?: Record<string, unknown>;
55
- selectedInput: Record<string, unknown>;
56
- capacityEnvelope: AgentCapacityEnvelope;
57
- traceRefs?: Record<string, unknown>;
58
- usageActual?: AgentModeRunUsageSettlement | Record<string, unknown> | null;
59
- artifactManifest?: import('../../artifacts.js').AgentArtifactManifest | null;
60
- fallback?: AgentKernelModeFallback | null;
61
- metadata?: Record<string, unknown>;
62
- }
63
- export interface AgentKernelQueueObservation {
64
- planningReady?: number | null;
65
- actingReady?: number | null;
66
- fallbackReady?: number | null;
67
- planningBudgetSeconds?: number | null;
68
- actingBudgetSeconds?: number | null;
69
- modePreference?: AgentExecutionMode | 'fallback' | null;
70
- metadata?: Record<string, unknown>;
71
- }
72
- export interface AgentKernelModeDecision {
73
- kind: 'mode' | 'fallback' | 'idle';
74
- mode?: AgentExecutionMode | null;
75
- reason: string;
76
- metadata?: Record<string, unknown>;
77
- }
78
- export interface AgentKernelOutputValidationResult {
79
- ok: boolean;
80
- reason?: string | null;
81
- metadata?: Record<string, unknown>;
82
- }
83
- export interface ProviderAssignmentSynthesisCandidate {
84
- id?: string;
85
- teamId: string;
86
- projectId: string;
87
- capacityProviderId: string;
88
- executionProviderId?: string | null;
89
- projectAgentClassId: string;
90
- mode: AgentExecutionMode;
91
- source: ProviderAssignmentSynthesisSource | string;
92
- sourceId: string;
93
- synthesisKey: string;
94
- priority?: number | null;
95
- readiness?: DecisionPlanningStatus | null;
96
- capacityEnvelope: AgentCapacityEnvelope;
97
- decisionInput: DecisionExecutionInput;
98
- workspaceContext?: Record<string, unknown>;
99
- explanation?: ProviderAssignmentExplanation | Record<string, unknown>;
100
- metadata?: Record<string, unknown>;
101
- }
102
12
  export interface ProviderAssignmentExplanation {
103
13
  id?: string;
104
14
  teamId: string;
@@ -197,7 +107,6 @@ export interface CapacityRuntimeDiagnosticsResponse {
197
107
  generatedAt: string;
198
108
  assignments: ProviderAssignment[];
199
109
  explanations: ProviderAssignmentExplanation[];
200
- modeRuns: AgentModeRun[];
201
110
  treeDxProxyAudit: Array<Record<string, unknown>>;
202
111
  ledgerEntries: CapacityLedgerEntry[];
203
112
  fallbackOutputs: Array<Record<string, unknown>>;
@@ -206,9 +115,6 @@ export interface CapacityRuntimeDiagnosticsResponse {
206
115
  assignments: CapacityPageInfo & {
207
116
  total: number;
208
117
  };
209
- modeRuns: CapacityPageInfo & {
210
- total: number;
211
- };
212
118
  treeDxProxyAudit: CapacityPageInfo & {
213
119
  total: number;
214
120
  };
@@ -275,61 +181,3 @@ export interface AgentFallbackOutput {
275
181
  metadata?: Record<string, unknown>;
276
182
  createdAt?: string;
277
183
  }
278
- export interface CapacitySettlementSummary {
279
- id?: string;
280
- teamId: string;
281
- projectId?: string | null;
282
- workDayId?: string | null;
283
- allocationSetId?: string | null;
284
- policyVersion?: string | null;
285
- requestedSeconds: number;
286
- reservedSeconds: number;
287
- activeSeconds: number;
288
- elapsedSeconds: number;
289
- releasedSeconds: number;
290
- overrunSeconds: number;
291
- nativeUsage: Record<string, unknown>;
292
- providerConfidence: 'high' | 'medium' | 'low' | 'blocked' | string;
293
- warnings: string[];
294
- metadata?: Record<string, unknown>;
295
- createdAt?: string;
296
- }
297
- export interface CapacityEvidenceWindow<T> {
298
- items: T[];
299
- page: CapacityPageInfo;
300
- total: number;
301
- }
302
- export interface WorkdayCapacitySummaryTotals {
303
- assignments: {
304
- total: number;
305
- pending: number;
306
- leased: number;
307
- completed: number;
308
- failed: number;
309
- returned: number;
310
- cancelled: number;
311
- };
312
- modeRuns: {
313
- total: number;
314
- queued: number;
315
- running: number;
316
- succeeded: number;
317
- failed: number;
318
- usageReported: number;
319
- };
320
- reservations: number;
321
- usageActuals: number;
322
- ledgerEntries: number;
323
- }
324
- export interface WorkdayCapacitySummaryPayload {
325
- workday: WorkdayCapacityEnvelopeRecord;
326
- totals: WorkdayCapacitySummaryTotals;
327
- settlement: CapacitySettlementSummary;
328
- evidence: {
329
- assignments?: CapacityEvidenceWindow<ProviderAssignment>;
330
- modeRuns?: CapacityEvidenceWindow<AgentModeRun>;
331
- reservations?: CapacityEvidenceWindow<CapacityReservation>;
332
- usageActuals?: CapacityEvidenceWindow<CapacityUsageActual>;
333
- ledgerEntries?: CapacityEvidenceWindow<CapacityLedgerEntry>;
334
- } | null;
335
- }
@@ -1,4 +1,3 @@
1
- import type { DecisionAssignmentGraphEdge, DecisionAssignmentGraphNode } from "./decision-work.js";
2
1
  export declare const AGENT_ATLAS_TOPOLOGY_CONTRACT: "treeseed.agent-atlas-topology/v1";
3
2
  export declare const agentAtlasSizingMetrics: readonly ["activity", "queue", "executions", "artifacts", "cost", "attention"];
4
3
  export type AgentAtlasSizingMetric = (typeof agentAtlasSizingMetrics)[number];
@@ -170,16 +169,4 @@ export interface AgentAtlasContextReference {
170
169
  path?: string;
171
170
  digest?: string;
172
171
  }
173
- export interface AgentAtlasAssignmentGraphProjection {
174
- id: string;
175
- projectId: string;
176
- decisionId: string;
177
- proposalId: string | null;
178
- status: string;
179
- nodes: Array<DecisionAssignmentGraphNode & {
180
- assignmentIds: string[];
181
- progressPercent: number | null;
182
- }>;
183
- edges: DecisionAssignmentGraphEdge[];
184
- }
185
172
  export declare function isAgentAtlasContextReference(value: unknown): value is AgentAtlasContextReference;