@treeseed/sdk 0.13.0-rc.118 → 0.13.0-rc.119

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 (73) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.d.ts +4199 -0
  3. package/dist/agent-capacity/contracts/capacity/assignments/agent-execution.js +155 -0
  4. package/dist/agent-capacity/contracts/capacity/assignments/assignment-records.d.ts +7 -1
  5. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.d.ts +199 -0
  6. package/dist/agent-capacity/contracts/capacity/workdays/workday-allocation.js +96 -0
  7. package/dist/agent-capacity/contracts/operations/agent-team-clone.d.ts +218 -0
  8. package/dist/agent-capacity/contracts/operations/agent-team-clone.js +57 -0
  9. package/dist/agent-capacity/contracts/support/decision-work.d.ts +1 -24
  10. package/dist/agent-capacity/contracts/support/execution-graph.d.ts +1087 -0
  11. package/dist/agent-capacity/contracts/support/execution-graph.js +120 -0
  12. package/dist/agent-capacity/validation/activity-profile.d.ts +1 -1
  13. package/dist/agent-capacity/validation/activity-profile.js +3 -272
  14. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +2699 -8867
  15. package/dist/agent-capacity/validation/agent-definition-schema.js +67 -159
  16. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +3 -3
  17. package/dist/agent-capacity/validation/assignment-records.js +1 -1
  18. package/dist/agent-capacity/validation/execution/execution-graph.d.ts +1 -0
  19. package/dist/agent-capacity/validation/execution/execution-graph.js +16 -0
  20. package/dist/agent-capacity/validation/index.d.ts +2 -1
  21. package/dist/agent-capacity/validation/index.js +2 -1
  22. package/dist/capacity/agents/agent-capacity.d.ts +5 -1
  23. package/dist/capacity/agents/agent-capacity.js +4 -1
  24. package/dist/capacity-provider/client.d.ts +1 -43
  25. package/dist/capacity-provider/client.js +1 -22
  26. package/dist/capacity-provider/sandbox-contracts.d.ts +4 -4
  27. package/dist/capacity-provider/sandbox.d.ts +0 -1
  28. package/dist/capacity-provider/sandbox.js +0 -1
  29. package/dist/capacity-provider/source-workspace.d.ts +19 -171
  30. package/dist/capacity-provider/source-workspace.js +7 -24
  31. package/dist/content/contracts.d.ts +1 -1
  32. package/dist/content/validation/agent-operational-content-schemas.d.ts +24 -695
  33. package/dist/content/validation/agent-operational-content-schemas.js +11 -54
  34. package/dist/content/validation/auxiliary-content-schemas.d.ts +58 -58
  35. package/dist/content/validation/content-model-schemas.d.ts +8617 -18610
  36. package/dist/content/validation/content-model-schemas.js +160 -43
  37. package/dist/content/validation/portable-content-data.d.ts +369 -1681
  38. package/dist/content/validation/portable-content-data.js +5 -4
  39. package/dist/model-registry/agent-operational-models.d.ts +1 -1
  40. package/dist/model-registry/agent-operational-models.js +0 -3
  41. package/dist/model-registry/build-builtin-model-registry.js +44 -72
  42. package/dist/operator-contracts/canonical-command-tree.js +62 -179
  43. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.d.ts +75 -0
  44. package/dist/operator-contracts/catalog/agents/agent-team-clone-operations.js +42 -0
  45. package/dist/operator-contracts/catalog/commands/command-tree-builders.d.ts +60 -0
  46. package/dist/operator-contracts/catalog/commands/command-tree-builders.js +191 -0
  47. package/dist/operator-contracts/catalog/communication-operations.d.ts +1 -1
  48. package/dist/operator-contracts/catalog/execution/execution-operations.d.ts +36 -0
  49. package/dist/operator-contracts/catalog/execution/execution-operations.js +39 -0
  50. package/dist/operator-contracts/catalog/inbox-operations.d.ts +5 -1
  51. package/dist/operator-contracts/command-tree.js +1 -0
  52. package/dist/operator-contracts/control-plane-operations.d.ts +136 -73
  53. package/dist/operator-contracts/control-plane-operations.js +19 -40
  54. package/dist/operator-contracts/inbox/contracts.d.ts +12 -0
  55. package/dist/operator-contracts/inbox/contracts.js +5 -1
  56. package/dist/operator-contracts/mcp.js +1 -1
  57. package/dist/operator-contracts/workday-lifecycle.d.ts +6 -8
  58. package/dist/operator-contracts/workday-lifecycle.js +3 -3
  59. package/dist/sdk-types/support/sdk-model-names.d.ts +1 -1
  60. package/dist/sdk-types/support/sdk-model-names.js +0 -3
  61. package/dist/secrets-capability/shared-resources.d.ts +6 -6
  62. package/dist/types/agents/agent-activity-profile.d.ts +39 -77
  63. package/dist/types/agents/agent-activity-profile.js +23 -0
  64. package/dist/types/agents/execution-run-ref.d.ts +1 -8
  65. package/package.json +1 -1
  66. package/dist/agent-capacity/authority/agent-authority-presets.d.ts +0 -13
  67. package/dist/agent-capacity/authority/agent-authority-presets.js +0 -107
  68. package/dist/agent-capacity/contracts/operations/workflow-promotion.d.ts +0 -24
  69. package/dist/agent-capacity/contracts/operations/workflow-promotion.js +0 -0
  70. package/dist/agent-capacity/validation/workflow-promotion.d.ts +0 -2
  71. package/dist/agent-capacity/validation/workflow-promotion.js +0 -34
  72. package/dist/capacity-provider/source/candidate.d.ts +0 -1275
  73. package/dist/capacity-provider/source/candidate.js +0 -72
@@ -0,0 +1,218 @@
1
+ import { z } from 'zod';
2
+ export declare const agentTeamCloneRequestSchema: z.ZodEffects<z.ZodObject<{
3
+ sourceProject: z.ZodString;
4
+ targetProjects: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
5
+ allEligible: z.ZodOptional<z.ZodBoolean>;
6
+ }, "strict", z.ZodTypeAny, {
7
+ sourceProject: string;
8
+ targetProjects?: string[] | undefined;
9
+ allEligible?: boolean | undefined;
10
+ }, {
11
+ sourceProject: string;
12
+ targetProjects?: string[] | undefined;
13
+ allEligible?: boolean | undefined;
14
+ }>, {
15
+ sourceProject: string;
16
+ targetProjects?: string[] | undefined;
17
+ allEligible?: boolean | undefined;
18
+ }, {
19
+ sourceProject: string;
20
+ targetProjects?: string[] | undefined;
21
+ allEligible?: boolean | undefined;
22
+ }>;
23
+ export declare const agentTeamCloneDefinitionSchema: z.ZodObject<{
24
+ path: z.ZodString;
25
+ agentClass: z.ZodString;
26
+ sourceDigest: z.ZodString;
27
+ desiredDigest: z.ZodString;
28
+ }, "strict", z.ZodTypeAny, {
29
+ path: string;
30
+ desiredDigest: string;
31
+ agentClass: string;
32
+ sourceDigest: string;
33
+ }, {
34
+ path: string;
35
+ desiredDigest: string;
36
+ agentClass: string;
37
+ sourceDigest: string;
38
+ }>;
39
+ export declare const agentTeamClonePlanSchema: z.ZodObject<{
40
+ schemaVersion: z.ZodLiteral<"treeseed.agent-team-clone-plan/v1">;
41
+ teamId: z.ZodString;
42
+ source: z.ZodObject<{
43
+ projectId: z.ZodString;
44
+ slug: z.ZodString;
45
+ name: z.ZodString;
46
+ repository: z.ZodString;
47
+ commit: z.ZodString;
48
+ }, "strict", z.ZodTypeAny, {
49
+ name: string;
50
+ slug: string;
51
+ repository: string;
52
+ commit: string;
53
+ projectId: string;
54
+ }, {
55
+ name: string;
56
+ slug: string;
57
+ repository: string;
58
+ commit: string;
59
+ projectId: string;
60
+ }>;
61
+ targets: z.ZodArray<z.ZodObject<{
62
+ projectId: z.ZodString;
63
+ slug: z.ZodString;
64
+ name: z.ZodString;
65
+ repository: z.ZodString;
66
+ commit: z.ZodString;
67
+ } & {
68
+ action: z.ZodEnum<["create", "update", "noop"]>;
69
+ definitions: z.ZodArray<z.ZodObject<{
70
+ path: z.ZodString;
71
+ agentClass: z.ZodString;
72
+ sourceDigest: z.ZodString;
73
+ desiredDigest: z.ZodString;
74
+ }, "strict", z.ZodTypeAny, {
75
+ path: string;
76
+ desiredDigest: string;
77
+ agentClass: string;
78
+ sourceDigest: string;
79
+ }, {
80
+ path: string;
81
+ desiredDigest: string;
82
+ agentClass: string;
83
+ sourceDigest: string;
84
+ }>, "many">;
85
+ }, "strict", z.ZodTypeAny, {
86
+ name: string;
87
+ slug: string;
88
+ repository: string;
89
+ commit: string;
90
+ action: "noop" | "create" | "update";
91
+ projectId: string;
92
+ definitions: {
93
+ path: string;
94
+ desiredDigest: string;
95
+ agentClass: string;
96
+ sourceDigest: string;
97
+ }[];
98
+ }, {
99
+ name: string;
100
+ slug: string;
101
+ repository: string;
102
+ commit: string;
103
+ action: "noop" | "create" | "update";
104
+ projectId: string;
105
+ definitions: {
106
+ path: string;
107
+ desiredDigest: string;
108
+ agentClass: string;
109
+ sourceDigest: string;
110
+ }[];
111
+ }>, "many">;
112
+ digest: z.ZodString;
113
+ }, "strict", z.ZodTypeAny, {
114
+ schemaVersion: "treeseed.agent-team-clone-plan/v1";
115
+ targets: {
116
+ name: string;
117
+ slug: string;
118
+ repository: string;
119
+ commit: string;
120
+ action: "noop" | "create" | "update";
121
+ projectId: string;
122
+ definitions: {
123
+ path: string;
124
+ desiredDigest: string;
125
+ agentClass: string;
126
+ sourceDigest: string;
127
+ }[];
128
+ }[];
129
+ digest: string;
130
+ teamId: string;
131
+ source: {
132
+ name: string;
133
+ slug: string;
134
+ repository: string;
135
+ commit: string;
136
+ projectId: string;
137
+ };
138
+ }, {
139
+ schemaVersion: "treeseed.agent-team-clone-plan/v1";
140
+ targets: {
141
+ name: string;
142
+ slug: string;
143
+ repository: string;
144
+ commit: string;
145
+ action: "noop" | "create" | "update";
146
+ projectId: string;
147
+ definitions: {
148
+ path: string;
149
+ desiredDigest: string;
150
+ agentClass: string;
151
+ sourceDigest: string;
152
+ }[];
153
+ }[];
154
+ digest: string;
155
+ teamId: string;
156
+ source: {
157
+ name: string;
158
+ slug: string;
159
+ repository: string;
160
+ commit: string;
161
+ projectId: string;
162
+ };
163
+ }>;
164
+ export declare const agentTeamCloneReceiptSchema: z.ZodObject<{
165
+ schemaVersion: z.ZodLiteral<"treeseed.agent-team-clone-receipt/v1">;
166
+ teamId: z.ZodString;
167
+ planDigest: z.ZodString;
168
+ mutation: z.ZodBoolean;
169
+ noop: z.ZodBoolean;
170
+ targets: z.ZodArray<z.ZodObject<{
171
+ projectId: z.ZodString;
172
+ action: z.ZodEnum<["created", "updated", "noop"]>;
173
+ repository: z.ZodString;
174
+ commit: z.ZodString;
175
+ definitionCount: z.ZodNumber;
176
+ }, "strict", z.ZodTypeAny, {
177
+ repository: string;
178
+ commit: string;
179
+ action: "noop" | "created" | "updated";
180
+ projectId: string;
181
+ definitionCount: number;
182
+ }, {
183
+ repository: string;
184
+ commit: string;
185
+ action: "noop" | "created" | "updated";
186
+ projectId: string;
187
+ definitionCount: number;
188
+ }>, "many">;
189
+ }, "strict", z.ZodTypeAny, {
190
+ schemaVersion: "treeseed.agent-team-clone-receipt/v1";
191
+ targets: {
192
+ repository: string;
193
+ commit: string;
194
+ action: "noop" | "created" | "updated";
195
+ projectId: string;
196
+ definitionCount: number;
197
+ }[];
198
+ noop: boolean;
199
+ planDigest: string;
200
+ teamId: string;
201
+ mutation: boolean;
202
+ }, {
203
+ schemaVersion: "treeseed.agent-team-clone-receipt/v1";
204
+ targets: {
205
+ repository: string;
206
+ commit: string;
207
+ action: "noop" | "created" | "updated";
208
+ projectId: string;
209
+ definitionCount: number;
210
+ }[];
211
+ noop: boolean;
212
+ planDigest: string;
213
+ teamId: string;
214
+ mutation: boolean;
215
+ }>;
216
+ export type AgentTeamCloneRequest = z.infer<typeof agentTeamCloneRequestSchema>;
217
+ export type AgentTeamClonePlan = z.infer<typeof agentTeamClonePlanSchema>;
218
+ export type AgentTeamCloneReceipt = z.infer<typeof agentTeamCloneReceiptSchema>;
@@ -0,0 +1,57 @@
1
+ import { z } from "zod";
2
+ const text = z.string().trim().min(1);
3
+ const commit = z.string().regex(/^[0-9a-f]{40}$/u);
4
+ const digest = z.string().regex(/^sha256:[0-9a-f]{64}$/u);
5
+ const agentTeamCloneRequestSchema = z.object({
6
+ sourceProject: text,
7
+ targetProjects: z.array(text).min(1).optional(),
8
+ allEligible: z.boolean().optional()
9
+ }).strict().superRefine((value, context) => {
10
+ if (Boolean(value.targetProjects) === (value.allEligible === true)) context.addIssue({
11
+ code: z.ZodIssueCode.custom,
12
+ message: "Select targetProjects or allEligible, but not both."
13
+ });
14
+ });
15
+ const agentTeamCloneDefinitionSchema = z.object({
16
+ path: text,
17
+ agentClass: text,
18
+ sourceDigest: digest,
19
+ desiredDigest: digest
20
+ }).strict();
21
+ const projectBindingSchema = z.object({
22
+ projectId: text,
23
+ slug: text,
24
+ name: text,
25
+ repository: text,
26
+ commit
27
+ }).strict();
28
+ const agentTeamClonePlanSchema = z.object({
29
+ schemaVersion: z.literal("treeseed.agent-team-clone-plan/v1"),
30
+ teamId: text,
31
+ source: projectBindingSchema,
32
+ targets: z.array(projectBindingSchema.extend({
33
+ action: z.enum(["create", "update", "noop"]),
34
+ definitions: z.array(agentTeamCloneDefinitionSchema).min(1)
35
+ })).min(1),
36
+ digest
37
+ }).strict();
38
+ const agentTeamCloneReceiptSchema = z.object({
39
+ schemaVersion: z.literal("treeseed.agent-team-clone-receipt/v1"),
40
+ teamId: text,
41
+ planDigest: digest,
42
+ mutation: z.boolean(),
43
+ noop: z.boolean(),
44
+ targets: z.array(z.object({
45
+ projectId: text,
46
+ action: z.enum(["created", "updated", "noop"]),
47
+ repository: text,
48
+ commit,
49
+ definitionCount: z.number().int().positive()
50
+ }).strict()).min(1)
51
+ }).strict();
52
+ export {
53
+ agentTeamCloneDefinitionSchema,
54
+ agentTeamClonePlanSchema,
55
+ agentTeamCloneReceiptSchema,
56
+ agentTeamCloneRequestSchema
57
+ };
@@ -211,30 +211,7 @@ export interface DecisionAssignmentGraphCompileResult {
211
211
  graph: DecisionAssignmentGraph;
212
212
  diagnostics: AgentCapacityContractDiagnostic[];
213
213
  }
214
- export interface EngineeringAssignmentGraphRoles {
215
- tester: string;
216
- engineer: string;
217
- reviewer: string;
218
- technicalWriter: string;
219
- releaser: string;
220
- operations?: string | null;
221
- researcher?: string | null;
222
- architect?: string | null;
223
- }
224
- export interface EngineeringAssignmentGraphInput {
225
- id?: string;
226
- teamId: string;
227
- projectId: string;
228
- decisionId: string;
229
- version?: number;
230
- exactBaseRef: string;
231
- roles: EngineeringAssignmentGraphRoles;
232
- includeResearch?: boolean;
233
- includeArchitecture?: boolean;
234
- seconds?: Partial<Record<'research' | 'architecture' | 'test' | 'implementation' | 'verification' | 'review' | 'documentation' | 'release' | 'operations', number>>;
235
- compiledAt?: string | null;
236
- }
237
- export interface EngineeringRevisionCycleResult {
214
+ export interface GovernedRevisionCycleResult {
238
215
  graph: DecisionAssignmentGraph;
239
216
  newContracts: DeliverableContract[];
240
217
  revisionCycle: number;