@treeseed/sdk 0.13.0-rc.38 → 0.13.0-rc.40

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 (28) hide show
  1. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +420 -420
  2. package/dist/agent-capacity/validation/agent-lab-forensics-schema.d.ts +8 -8
  3. package/dist/content/validation/agent-operational-content-schemas.d.ts +66 -66
  4. package/dist/content/validation/auxiliary-content-schemas.d.ts +44 -44
  5. package/dist/content/validation/content-model-schemas.d.ts +966 -966
  6. package/dist/content/validation/portable-content-data.d.ts +103 -103
  7. package/dist/deployment/schemas.d.ts +782 -782
  8. package/dist/development/index.d.ts +1 -0
  9. package/dist/development/index.js +1 -0
  10. package/dist/development/schemas.d.ts +3149 -0
  11. package/dist/development/schemas.js +153 -0
  12. package/dist/guarantees/index.d.ts +96 -0
  13. package/dist/guarantees/index.js +41 -0
  14. package/dist/operator-contracts/canonical-command-tree.js +35 -0
  15. package/dist/operator-contracts/catalog/communication-operations.d.ts +40 -40
  16. package/dist/operator-contracts/communication/contracts.d.ts +44 -44
  17. package/dist/operator-contracts/control-plane-operations.d.ts +46 -46
  18. package/dist/operator-contracts/oauth.d.ts +35 -0
  19. package/dist/operator-contracts/oauth.js +7 -0
  20. package/dist/site-contracts/catalog.d.ts +16 -0
  21. package/dist/site-contracts/catalog.js +19 -0
  22. package/dist/site-contracts/cloudflare.d.ts +48 -0
  23. package/dist/site-contracts/cloudflare.js +0 -0
  24. package/dist/site-contracts/platform.d.ts +94 -0
  25. package/dist/site-contracts/platform.js +0 -0
  26. package/dist/site-contracts/plugin.d.ts +63 -0
  27. package/dist/site-contracts/plugin.js +26 -0
  28. package/package.json +29 -1
@@ -157,14 +157,14 @@ export declare const agentForensicPayloadSchema: z.ZodObject<{
157
157
  severity: "error" | "warning" | "info";
158
158
  }>, "many">>;
159
159
  }, "strict", z.ZodTypeAny, {
160
- contract: "treeseed.agent-forensic-payload/v1";
161
- activity: AgentActivityEvent;
162
160
  diagnostics: {
163
161
  code: string;
164
162
  path: string;
165
163
  message: string;
166
164
  severity: "error" | "warning" | "info";
167
165
  }[];
166
+ contract: "treeseed.agent-forensic-payload/v1";
167
+ activity: AgentActivityEvent;
168
168
  payload?: Record<string, unknown> | undefined;
169
169
  transcript?: {
170
170
  entries: Record<string, unknown>[];
@@ -180,6 +180,12 @@ export declare const agentForensicPayloadSchema: z.ZodObject<{
180
180
  contract: "treeseed.agent-forensic-payload/v1";
181
181
  activity: AgentActivityEvent;
182
182
  payload?: Record<string, unknown> | undefined;
183
+ diagnostics?: {
184
+ code: string;
185
+ path: string;
186
+ message: string;
187
+ severity: "error" | "warning" | "info";
188
+ }[] | undefined;
183
189
  transcript?: {
184
190
  entries: Record<string, unknown>[];
185
191
  page: {
@@ -190,12 +196,6 @@ export declare const agentForensicPayloadSchema: z.ZodObject<{
190
196
  executionRunId: string;
191
197
  redactionStatus: "sanitized" | "partially-redacted" | "withheld";
192
198
  } | undefined;
193
- diagnostics?: {
194
- code: string;
195
- path: string;
196
- message: string;
197
- severity: "error" | "warning" | "info";
198
- }[] | undefined;
199
199
  }>;
200
200
  export type AgentActivityQuery = z.infer<typeof agentActivityQuerySchema>;
201
201
  export type AgentActivityPage = z.infer<typeof agentActivityPageSchema>;
@@ -41,6 +41,11 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
41
41
  required: z.ZodDefault<z.ZodBoolean>;
42
42
  }, "strict", z.ZodTypeAny, {
43
43
  id: string;
44
+ target: {
45
+ kind: "code" | "content" | "mixed" | "graph";
46
+ paths?: string[] | undefined;
47
+ models?: string[] | undefined;
48
+ };
44
49
  required: boolean;
45
50
  revision: number;
46
51
  description: string;
@@ -48,11 +53,6 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
48
53
  depth: number;
49
54
  title: string;
50
55
  filters: Record<string, unknown>;
51
- target: {
52
- kind: "code" | "content" | "mixed" | "graph";
53
- paths?: string[] | undefined;
54
- models?: string[] | undefined;
55
- };
56
56
  purpose: string;
57
57
  maturity: "draft" | "validated" | "simulated" | "proven";
58
58
  relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
@@ -67,15 +67,15 @@ export declare const agentContextQueryContentSchema: z.ZodObject<{
67
67
  codeScopes?: string[] | undefined;
68
68
  }, {
69
69
  id: string;
70
- revision: number;
71
- description: string;
72
- query: string;
73
- title: string;
74
70
  target: {
75
71
  kind: "code" | "content" | "mixed" | "graph";
76
72
  paths?: string[] | undefined;
77
73
  models?: string[] | undefined;
78
74
  };
75
+ revision: number;
76
+ description: string;
77
+ query: string;
78
+ title: string;
79
79
  purpose: string;
80
80
  maturity: "draft" | "validated" | "simulated" | "proven";
81
81
  resultLimit: number;
@@ -254,12 +254,12 @@ export declare const assignmentPlanContentSchema: z.ZodObject<{
254
254
  decisionId: z.ZodOptional<z.ZodString>;
255
255
  capacityPlanId: z.ZodOptional<z.ZodString>;
256
256
  }, "strict", z.ZodTypeAny, {
257
- status: "active" | "completed" | "ready" | "superseded" | "draft";
257
+ status: "ready" | "active" | "completed" | "superseded" | "draft";
258
258
  id: string;
259
- revision: number;
259
+ projectId: string;
260
260
  createdAt: Date;
261
+ revision: number;
261
262
  teamId: string;
262
- projectId: string;
263
263
  objective: string;
264
264
  completed: {
265
265
  id: string;
@@ -289,12 +289,12 @@ export declare const assignmentPlanContentSchema: z.ZodObject<{
289
289
  contextRefs: string[];
290
290
  } | undefined;
291
291
  }, {
292
- status: "active" | "completed" | "ready" | "superseded" | "draft";
292
+ status: "ready" | "active" | "completed" | "superseded" | "draft";
293
293
  id: string;
294
- revision: number;
294
+ projectId: string;
295
295
  createdAt: Date;
296
+ revision: number;
296
297
  teamId: string;
297
- projectId: string;
298
298
  objective: string;
299
299
  title: string;
300
300
  description?: string | undefined;
@@ -351,11 +351,11 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
351
351
  reason: z.ZodOptional<z.ZodString>;
352
352
  progress: z.ZodOptional<z.ZodNumber>;
353
353
  }, "strict", z.ZodTypeAny, {
354
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
354
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
355
355
  id: string;
356
+ projectId: string;
356
357
  createdAt: Date;
357
358
  teamId: string;
358
- projectId: string;
359
359
  title: string;
360
360
  sequence: number;
361
361
  phase: string;
@@ -370,11 +370,11 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
370
370
  } | undefined;
371
371
  progress?: number | undefined;
372
372
  }, {
373
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
373
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
374
374
  id: string;
375
+ projectId: string;
375
376
  createdAt: Date;
376
377
  teamId: string;
377
- projectId: string;
378
378
  title: string;
379
379
  sequence: number;
380
380
  phase: string;
@@ -389,11 +389,11 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
389
389
  } | undefined;
390
390
  progress?: number | undefined;
391
391
  }>, {
392
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
392
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
393
393
  id: string;
394
+ projectId: string;
394
395
  createdAt: Date;
395
396
  teamId: string;
396
- projectId: string;
397
397
  title: string;
398
398
  sequence: number;
399
399
  phase: string;
@@ -408,11 +408,11 @@ export declare const assignmentStatusContentSchema: z.ZodEffects<z.ZodObject<{
408
408
  } | undefined;
409
409
  progress?: number | undefined;
410
410
  }, {
411
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
411
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
412
412
  id: string;
413
+ projectId: string;
413
414
  createdAt: Date;
414
415
  teamId: string;
415
- projectId: string;
416
416
  title: string;
417
417
  sequence: number;
418
418
  phase: string;
@@ -470,11 +470,11 @@ export declare const assignmentSummaryContentSchema: z.ZodObject<{
470
470
  }, "strict", z.ZodTypeAny, {
471
471
  status: "failed" | "completed" | "cancelled" | "suspended";
472
472
  id: string;
473
+ projectId: string;
473
474
  createdAt: Date;
474
475
  blockers: string[];
475
476
  summary: string;
476
477
  teamId: string;
477
- projectId: string;
478
478
  title: string;
479
479
  artifactRefs: string[];
480
480
  lessons: string[];
@@ -495,10 +495,10 @@ export declare const assignmentSummaryContentSchema: z.ZodObject<{
495
495
  }, {
496
496
  status: "failed" | "completed" | "cancelled" | "suspended";
497
497
  id: string;
498
+ projectId: string;
498
499
  createdAt: Date;
499
500
  summary: string;
500
501
  teamId: string;
501
- projectId: string;
502
502
  title: string;
503
503
  performance: {
504
504
  outcome: string;
@@ -582,22 +582,22 @@ export declare const agentEvaluationContentSchema: z.ZodObject<{
582
582
  notes: z.ZodOptional<z.ZodString>;
583
583
  }, "strict", z.ZodTypeAny, {
584
584
  id: string;
585
- outcome: "failed" | "passed" | "not-applicable";
585
+ outcome: "passed" | "failed" | "not-applicable";
586
586
  evidenceRefs: string[];
587
587
  notes?: string | undefined;
588
588
  }, {
589
589
  id: string;
590
- outcome: "failed" | "passed" | "not-applicable";
590
+ outcome: "passed" | "failed" | "not-applicable";
591
591
  notes?: string | undefined;
592
592
  evidenceRefs?: string[] | undefined;
593
593
  }>, "many">;
594
594
  }, "strict", z.ZodTypeAny, {
595
595
  status: string;
596
596
  id: string;
597
+ projectId: string;
597
598
  createdAt: Date;
598
599
  teamId: string;
599
- projectId: string;
600
- outcome: "failed" | "passed" | "needs-revision";
600
+ outcome: "passed" | "failed" | "needs-revision";
601
601
  title: string;
602
602
  contextQueryRefs: {
603
603
  id: string;
@@ -620,7 +620,7 @@ export declare const agentEvaluationContentSchema: z.ZodObject<{
620
620
  evaluatorId: string;
621
621
  criteria: {
622
622
  id: string;
623
- outcome: "failed" | "passed" | "not-applicable";
623
+ outcome: "passed" | "failed" | "not-applicable";
624
624
  evidenceRefs: string[];
625
625
  notes?: string | undefined;
626
626
  }[];
@@ -632,10 +632,10 @@ export declare const agentEvaluationContentSchema: z.ZodObject<{
632
632
  }, {
633
633
  status: string;
634
634
  id: string;
635
+ projectId: string;
635
636
  createdAt: Date;
636
637
  teamId: string;
637
- projectId: string;
638
- outcome: "failed" | "passed" | "needs-revision";
638
+ outcome: "passed" | "failed" | "needs-revision";
639
639
  title: string;
640
640
  agentId: string;
641
641
  agentDefinitionRef: {
@@ -646,7 +646,7 @@ export declare const agentEvaluationContentSchema: z.ZodObject<{
646
646
  evaluatorId: string;
647
647
  criteria: {
648
648
  id: string;
649
- outcome: "failed" | "passed" | "not-applicable";
649
+ outcome: "passed" | "failed" | "not-applicable";
650
650
  notes?: string | undefined;
651
651
  evidenceRefs?: string[] | undefined;
652
652
  }[];
@@ -711,6 +711,11 @@ export declare const agentOperationalContentSchemas: {
711
711
  required: z.ZodDefault<z.ZodBoolean>;
712
712
  }, "strict", z.ZodTypeAny, {
713
713
  id: string;
714
+ target: {
715
+ kind: "code" | "content" | "mixed" | "graph";
716
+ paths?: string[] | undefined;
717
+ models?: string[] | undefined;
718
+ };
714
719
  required: boolean;
715
720
  revision: number;
716
721
  description: string;
@@ -718,11 +723,6 @@ export declare const agentOperationalContentSchemas: {
718
723
  depth: number;
719
724
  title: string;
720
725
  filters: Record<string, unknown>;
721
- target: {
722
- kind: "code" | "content" | "mixed" | "graph";
723
- paths?: string[] | undefined;
724
- models?: string[] | undefined;
725
- };
726
726
  purpose: string;
727
727
  maturity: "draft" | "validated" | "simulated" | "proven";
728
728
  relations: import("../../sdk-types/support/sdk-search-request.js").SdkGraphDslRelation[];
@@ -737,15 +737,15 @@ export declare const agentOperationalContentSchemas: {
737
737
  codeScopes?: string[] | undefined;
738
738
  }, {
739
739
  id: string;
740
- revision: number;
741
- description: string;
742
- query: string;
743
- title: string;
744
740
  target: {
745
741
  kind: "code" | "content" | "mixed" | "graph";
746
742
  paths?: string[] | undefined;
747
743
  models?: string[] | undefined;
748
744
  };
745
+ revision: number;
746
+ description: string;
747
+ query: string;
748
+ title: string;
749
749
  purpose: string;
750
750
  maturity: "draft" | "validated" | "simulated" | "proven";
751
751
  resultLimit: number;
@@ -924,12 +924,12 @@ export declare const agentOperationalContentSchemas: {
924
924
  decisionId: z.ZodOptional<z.ZodString>;
925
925
  capacityPlanId: z.ZodOptional<z.ZodString>;
926
926
  }, "strict", z.ZodTypeAny, {
927
- status: "active" | "completed" | "ready" | "superseded" | "draft";
927
+ status: "ready" | "active" | "completed" | "superseded" | "draft";
928
928
  id: string;
929
- revision: number;
929
+ projectId: string;
930
930
  createdAt: Date;
931
+ revision: number;
931
932
  teamId: string;
932
- projectId: string;
933
933
  objective: string;
934
934
  completed: {
935
935
  id: string;
@@ -959,12 +959,12 @@ export declare const agentOperationalContentSchemas: {
959
959
  contextRefs: string[];
960
960
  } | undefined;
961
961
  }, {
962
- status: "active" | "completed" | "ready" | "superseded" | "draft";
962
+ status: "ready" | "active" | "completed" | "superseded" | "draft";
963
963
  id: string;
964
- revision: number;
964
+ projectId: string;
965
965
  createdAt: Date;
966
+ revision: number;
966
967
  teamId: string;
967
- projectId: string;
968
968
  objective: string;
969
969
  title: string;
970
970
  description?: string | undefined;
@@ -1021,11 +1021,11 @@ export declare const agentOperationalContentSchemas: {
1021
1021
  reason: z.ZodOptional<z.ZodString>;
1022
1022
  progress: z.ZodOptional<z.ZodNumber>;
1023
1023
  }, "strict", z.ZodTypeAny, {
1024
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1024
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1025
1025
  id: string;
1026
+ projectId: string;
1026
1027
  createdAt: Date;
1027
1028
  teamId: string;
1028
- projectId: string;
1029
1029
  title: string;
1030
1030
  sequence: number;
1031
1031
  phase: string;
@@ -1040,11 +1040,11 @@ export declare const agentOperationalContentSchemas: {
1040
1040
  } | undefined;
1041
1041
  progress?: number | undefined;
1042
1042
  }, {
1043
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1043
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1044
1044
  id: string;
1045
+ projectId: string;
1045
1046
  createdAt: Date;
1046
1047
  teamId: string;
1047
- projectId: string;
1048
1048
  title: string;
1049
1049
  sequence: number;
1050
1050
  phase: string;
@@ -1059,11 +1059,11 @@ export declare const agentOperationalContentSchemas: {
1059
1059
  } | undefined;
1060
1060
  progress?: number | undefined;
1061
1061
  }>, {
1062
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1062
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1063
1063
  id: string;
1064
+ projectId: string;
1064
1065
  createdAt: Date;
1065
1066
  teamId: string;
1066
- projectId: string;
1067
1067
  title: string;
1068
1068
  sequence: number;
1069
1069
  phase: string;
@@ -1078,11 +1078,11 @@ export declare const agentOperationalContentSchemas: {
1078
1078
  } | undefined;
1079
1079
  progress?: number | undefined;
1080
1080
  }, {
1081
- status: "failed" | "pending" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1081
+ status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1082
1082
  id: string;
1083
+ projectId: string;
1083
1084
  createdAt: Date;
1084
1085
  teamId: string;
1085
- projectId: string;
1086
1086
  title: string;
1087
1087
  sequence: number;
1088
1088
  phase: string;
@@ -1140,11 +1140,11 @@ export declare const agentOperationalContentSchemas: {
1140
1140
  }, "strict", z.ZodTypeAny, {
1141
1141
  status: "failed" | "completed" | "cancelled" | "suspended";
1142
1142
  id: string;
1143
+ projectId: string;
1143
1144
  createdAt: Date;
1144
1145
  blockers: string[];
1145
1146
  summary: string;
1146
1147
  teamId: string;
1147
- projectId: string;
1148
1148
  title: string;
1149
1149
  artifactRefs: string[];
1150
1150
  lessons: string[];
@@ -1165,10 +1165,10 @@ export declare const agentOperationalContentSchemas: {
1165
1165
  }, {
1166
1166
  status: "failed" | "completed" | "cancelled" | "suspended";
1167
1167
  id: string;
1168
+ projectId: string;
1168
1169
  createdAt: Date;
1169
1170
  summary: string;
1170
1171
  teamId: string;
1171
- projectId: string;
1172
1172
  title: string;
1173
1173
  performance: {
1174
1174
  outcome: string;
@@ -1252,22 +1252,22 @@ export declare const agentOperationalContentSchemas: {
1252
1252
  notes: z.ZodOptional<z.ZodString>;
1253
1253
  }, "strict", z.ZodTypeAny, {
1254
1254
  id: string;
1255
- outcome: "failed" | "passed" | "not-applicable";
1255
+ outcome: "passed" | "failed" | "not-applicable";
1256
1256
  evidenceRefs: string[];
1257
1257
  notes?: string | undefined;
1258
1258
  }, {
1259
1259
  id: string;
1260
- outcome: "failed" | "passed" | "not-applicable";
1260
+ outcome: "passed" | "failed" | "not-applicable";
1261
1261
  notes?: string | undefined;
1262
1262
  evidenceRefs?: string[] | undefined;
1263
1263
  }>, "many">;
1264
1264
  }, "strict", z.ZodTypeAny, {
1265
1265
  status: string;
1266
1266
  id: string;
1267
+ projectId: string;
1267
1268
  createdAt: Date;
1268
1269
  teamId: string;
1269
- projectId: string;
1270
- outcome: "failed" | "passed" | "needs-revision";
1270
+ outcome: "passed" | "failed" | "needs-revision";
1271
1271
  title: string;
1272
1272
  contextQueryRefs: {
1273
1273
  id: string;
@@ -1290,7 +1290,7 @@ export declare const agentOperationalContentSchemas: {
1290
1290
  evaluatorId: string;
1291
1291
  criteria: {
1292
1292
  id: string;
1293
- outcome: "failed" | "passed" | "not-applicable";
1293
+ outcome: "passed" | "failed" | "not-applicable";
1294
1294
  evidenceRefs: string[];
1295
1295
  notes?: string | undefined;
1296
1296
  }[];
@@ -1302,10 +1302,10 @@ export declare const agentOperationalContentSchemas: {
1302
1302
  }, {
1303
1303
  status: string;
1304
1304
  id: string;
1305
+ projectId: string;
1305
1306
  createdAt: Date;
1306
1307
  teamId: string;
1307
- projectId: string;
1308
- outcome: "failed" | "passed" | "needs-revision";
1308
+ outcome: "passed" | "failed" | "needs-revision";
1309
1309
  title: string;
1310
1310
  agentId: string;
1311
1311
  agentDefinitionRef: {
@@ -1316,7 +1316,7 @@ export declare const agentOperationalContentSchemas: {
1316
1316
  evaluatorId: string;
1317
1317
  criteria: {
1318
1318
  id: string;
1319
- outcome: "failed" | "passed" | "not-applicable";
1319
+ outcome: "passed" | "failed" | "not-applicable";
1320
1320
  notes?: string | undefined;
1321
1321
  evidenceRefs?: string[] | undefined;
1322
1322
  }[];