@treeseed/sdk 0.13.0-rc.60 → 0.13.0-rc.62

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 (35) hide show
  1. package/dist/.treeseed-build-complete.json +1 -1
  2. package/dist/agent-capacity/validation/agent-definition-schema.d.ts +120 -120
  3. package/dist/capacity-provider/capability-ontology.d.ts +190 -190
  4. package/dist/capacity-provider/client.d.ts +3 -3
  5. package/dist/capacity-provider/core-capability-catalog.d.ts +13 -13
  6. package/dist/capacity-provider/environment-catalog.d.ts +62 -62
  7. package/dist/capacity-provider/sandbox-contracts.d.ts +66 -66
  8. package/dist/content/validation/agent-operational-content-schemas.d.ts +72 -72
  9. package/dist/content/validation/auxiliary-content-schemas.d.ts +74 -74
  10. package/dist/content/validation/content-model-schemas.d.ts +435 -435
  11. package/dist/content/validation/portable-content-data.d.ts +53 -53
  12. package/dist/deployment/ai-mode.d.ts +46 -46
  13. package/dist/deployment/schemas.d.ts +648 -648
  14. package/dist/development/schemas.d.ts +290 -290
  15. package/dist/operator-contracts/canonical-command-tree.js +10 -0
  16. package/dist/operator-contracts/catalog/capability-ontology-operations.d.ts +41 -41
  17. package/dist/operator-contracts/catalog/communication-operations.d.ts +62 -62
  18. package/dist/operator-contracts/catalog/inbox-operations.d.ts +34 -34
  19. package/dist/operator-contracts/communication/contracts.d.ts +228 -228
  20. package/dist/operator-contracts/control-plane-operations.d.ts +145 -145
  21. package/dist/operator-contracts/inbox/contracts.d.ts +108 -108
  22. package/dist/platform/contracts.d.ts +383 -0
  23. package/dist/platform/contracts.js +79 -0
  24. package/dist/platform/index.d.ts +5 -0
  25. package/dist/platform/index.js +5 -0
  26. package/dist/platform/inventory.d.ts +11 -0
  27. package/dist/platform/inventory.js +53 -0
  28. package/dist/platform/schemas.d.ts +806 -0
  29. package/dist/platform/schemas.js +68 -0
  30. package/dist/platform/verification.d.ts +9 -0
  31. package/dist/platform/verification.js +104 -0
  32. package/dist/platform/workset.d.ts +21 -0
  33. package/dist/platform/workset.js +102 -0
  34. package/dist/security/encrypted-envelope.d.ts +14 -14
  35. package/package.json +5 -1
@@ -132,8 +132,8 @@ export declare function validatePortableContentData(model: string, value: unknow
132
132
  mergeTargetBeforeSave: import("zod").ZodOptional<import("zod").ZodBoolean>;
133
133
  }, "strict", import("zod").ZodTypeAny, {
134
134
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
135
- base: "staging" | "main";
136
- target?: "staging" | "main" | undefined;
135
+ base: "main" | "staging";
136
+ target?: "main" | "staging" | undefined;
137
137
  worktree?: string | undefined;
138
138
  prefix?: string | undefined;
139
139
  branchNameTemplate?: string | undefined;
@@ -141,8 +141,8 @@ export declare function validatePortableContentData(model: string, value: unknow
141
141
  mergeTargetBeforeSave?: boolean | undefined;
142
142
  }, {
143
143
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
144
- base: "staging" | "main";
145
- target?: "staging" | "main" | undefined;
144
+ base: "main" | "staging";
145
+ target?: "main" | "staging" | undefined;
146
146
  worktree?: string | undefined;
147
147
  prefix?: string | undefined;
148
148
  branchNameTemplate?: string | undefined;
@@ -718,8 +718,8 @@ export declare function validatePortableContentData(model: string, value: unknow
718
718
  agentSlug: import("zod").ZodOptional<import("zod").ZodString>;
719
719
  }, "strict", import("zod").ZodTypeAny, {
720
720
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
721
- teamId?: string | undefined;
722
721
  projectId?: string | undefined;
722
+ teamId?: string | undefined;
723
723
  agentSlug?: string | undefined;
724
724
  requiredRoles?: string[] | undefined;
725
725
  allowedRoles?: string[] | undefined;
@@ -729,8 +729,8 @@ export declare function validatePortableContentData(model: string, value: unknow
729
729
  teamMemberId?: string | undefined;
730
730
  }, {
731
731
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
732
- teamId?: string | undefined;
733
732
  projectId?: string | undefined;
733
+ teamId?: string | undefined;
734
734
  agentSlug?: string | undefined;
735
735
  requiredRoles?: string[] | undefined;
736
736
  allowedRoles?: string[] | undefined;
@@ -742,8 +742,8 @@ export declare function validatePortableContentData(model: string, value: unknow
742
742
  }, "strict", import("zod").ZodTypeAny, {
743
743
  defaultAnswerPolicy?: {
744
744
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
745
- teamId?: string | undefined;
746
745
  projectId?: string | undefined;
746
+ teamId?: string | undefined;
747
747
  agentSlug?: string | undefined;
748
748
  requiredRoles?: string[] | undefined;
749
749
  allowedRoles?: string[] | undefined;
@@ -756,8 +756,8 @@ export declare function validatePortableContentData(model: string, value: unknow
756
756
  }, {
757
757
  defaultAnswerPolicy?: {
758
758
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
759
- teamId?: string | undefined;
760
759
  projectId?: string | undefined;
760
+ teamId?: string | undefined;
761
761
  agentSlug?: string | undefined;
762
762
  requiredRoles?: string[] | undefined;
763
763
  allowedRoles?: string[] | undefined;
@@ -853,8 +853,8 @@ export declare function validatePortableContentData(model: string, value: unknow
853
853
  enabled: boolean;
854
854
  branchPolicy: {
855
855
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
856
- base: "staging" | "main";
857
- target?: "staging" | "main" | undefined;
856
+ base: "main" | "staging";
857
+ target?: "main" | "staging" | undefined;
858
858
  worktree?: string | undefined;
859
859
  prefix?: string | undefined;
860
860
  branchNameTemplate?: string | undefined;
@@ -1000,8 +1000,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1000
1000
  questionPolicy?: {
1001
1001
  defaultAnswerPolicy?: {
1002
1002
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1003
- teamId?: string | undefined;
1004
1003
  projectId?: string | undefined;
1004
+ teamId?: string | undefined;
1005
1005
  agentSlug?: string | undefined;
1006
1006
  requiredRoles?: string[] | undefined;
1007
1007
  allowedRoles?: string[] | undefined;
@@ -1025,8 +1025,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1025
1025
  enabled: boolean;
1026
1026
  branchPolicy: {
1027
1027
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1028
- base: "staging" | "main";
1029
- target?: "staging" | "main" | undefined;
1028
+ base: "main" | "staging";
1029
+ target?: "main" | "staging" | undefined;
1030
1030
  worktree?: string | undefined;
1031
1031
  prefix?: string | undefined;
1032
1032
  branchNameTemplate?: string | undefined;
@@ -1172,8 +1172,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1172
1172
  questionPolicy?: {
1173
1173
  defaultAnswerPolicy?: {
1174
1174
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1175
- teamId?: string | undefined;
1176
1175
  projectId?: string | undefined;
1176
+ teamId?: string | undefined;
1177
1177
  agentSlug?: string | undefined;
1178
1178
  requiredRoles?: string[] | undefined;
1179
1179
  allowedRoles?: string[] | undefined;
@@ -1197,8 +1197,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1197
1197
  enabled: boolean;
1198
1198
  branchPolicy: {
1199
1199
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1200
- base: "staging" | "main";
1201
- target?: "staging" | "main" | undefined;
1200
+ base: "main" | "staging";
1201
+ target?: "main" | "staging" | undefined;
1202
1202
  worktree?: string | undefined;
1203
1203
  prefix?: string | undefined;
1204
1204
  branchNameTemplate?: string | undefined;
@@ -1344,8 +1344,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1344
1344
  questionPolicy?: {
1345
1345
  defaultAnswerPolicy?: {
1346
1346
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1347
- teamId?: string | undefined;
1348
1347
  projectId?: string | undefined;
1348
+ teamId?: string | undefined;
1349
1349
  agentSlug?: string | undefined;
1350
1350
  requiredRoles?: string[] | undefined;
1351
1351
  allowedRoles?: string[] | undefined;
@@ -1369,8 +1369,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1369
1369
  enabled: boolean;
1370
1370
  branchPolicy: {
1371
1371
  kind: "read-only" | "main-planning-content" | "staging-content" | "assignment-feature" | "staging-release";
1372
- base: "staging" | "main";
1373
- target?: "staging" | "main" | undefined;
1372
+ base: "main" | "staging";
1373
+ target?: "main" | "staging" | undefined;
1374
1374
  worktree?: string | undefined;
1375
1375
  prefix?: string | undefined;
1376
1376
  branchNameTemplate?: string | undefined;
@@ -1516,8 +1516,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1516
1516
  questionPolicy?: {
1517
1517
  defaultAnswerPolicy?: {
1518
1518
  kind: "team-human" | "human-or-agent" | "specific-human" | "specific-agent";
1519
- teamId?: string | undefined;
1520
1519
  projectId?: string | undefined;
1520
+ teamId?: string | undefined;
1521
1521
  agentSlug?: string | undefined;
1522
1522
  requiredRoles?: string[] | undefined;
1523
1523
  allowedRoles?: string[] | undefined;
@@ -1531,12 +1531,12 @@ export declare function validatePortableContentData(model: string, value: unknow
1531
1531
  }>>;
1532
1532
  }, import("zod").ZodTypeAny, "passthrough"> | {
1533
1533
  status: string;
1534
- environment: string;
1535
- visibility: "private" | "team" | "public" | "authenticated";
1534
+ slug: string;
1535
+ visibility: "team" | "public" | "private" | "authenticated";
1536
1536
  projectId: string;
1537
+ environment: string;
1537
1538
  startedAt: Date;
1538
1539
  summary: string;
1539
- slug: string;
1540
1540
  metadata: Record<string, unknown>;
1541
1541
  title: string;
1542
1542
  changedFiles: string[];
@@ -1555,8 +1555,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1555
1555
  model: string;
1556
1556
  priority: number;
1557
1557
  status?: string | undefined;
1558
- reason?: string | undefined;
1559
1558
  slug?: string | undefined;
1559
+ reason?: string | undefined;
1560
1560
  title?: string | undefined;
1561
1561
  estimatedCredits?: number | undefined;
1562
1562
  }[];
@@ -1569,8 +1569,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1569
1569
  id: string;
1570
1570
  changedFiles: string[];
1571
1571
  type?: string | undefined;
1572
- createdAt?: Date | undefined;
1573
1572
  state?: string | undefined;
1573
+ createdAt?: Date | undefined;
1574
1574
  completedAt?: Date | undefined;
1575
1575
  idempotencyKey?: string | undefined;
1576
1576
  startedAt?: Date | undefined;
@@ -1584,8 +1584,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1584
1584
  releases: {
1585
1585
  status: string;
1586
1586
  deploymentKind: string;
1587
- createdAt?: Date | undefined;
1588
1587
  id?: string | undefined;
1588
+ createdAt?: Date | undefined;
1589
1589
  startedAt?: Date | undefined;
1590
1590
  commitSha?: string | null | undefined;
1591
1591
  finishedAt?: Date | undefined;
@@ -1600,10 +1600,10 @@ export declare function validatePortableContentData(model: string, value: unknow
1600
1600
  prioritySnapshotId?: string | null | undefined;
1601
1601
  } | {
1602
1602
  status: "live" | "archived" | "draft";
1603
+ slug: string;
1603
1604
  description: string;
1604
1605
  audience: string[];
1605
1606
  summary: string;
1606
- slug: string;
1607
1607
  title: string;
1608
1608
  relatedObjectives: string[];
1609
1609
  groupIds: string[];
@@ -1621,7 +1621,6 @@ export declare function validatePortableContentData(model: string, value: unknow
1621
1621
  minCliVersion: string;
1622
1622
  minCoreVersion: string;
1623
1623
  fulfillment: {
1624
- mode: "packaged" | "git" | "r2";
1625
1624
  source: {
1626
1625
  kind: "git";
1627
1626
  ref: string;
@@ -1629,13 +1628,14 @@ export declare function validatePortableContentData(model: string, value: unknow
1629
1628
  directory: string;
1630
1629
  integrity?: string | undefined;
1631
1630
  } | {
1632
- kind: "r2";
1633
1631
  version: string;
1632
+ kind: "r2";
1634
1633
  objectKey: string;
1635
1634
  integrity?: string | undefined;
1636
1635
  bucket?: string | undefined;
1637
1636
  publicUrl?: string | undefined;
1638
1637
  };
1638
+ mode: "git" | "packaged" | "r2";
1639
1639
  hooksPolicy: "disabled" | "builtin_only" | "trusted_only";
1640
1640
  supportsReconcile: boolean;
1641
1641
  };
@@ -1649,8 +1649,8 @@ export declare function validatePortableContentData(model: string, value: unknow
1649
1649
  teamId?: string | undefined;
1650
1650
  sourceRef?: string | undefined;
1651
1651
  } | {
1652
- kind: "workday" | "api" | "handler" | "spec" | "message_chain" | "manager_worker" | "ui" | "context-query" | "context-query-set";
1653
1652
  id: string;
1653
+ kind: "workday" | "api" | "handler" | "spec" | "message_chain" | "manager_worker" | "ui" | "context-query" | "context-query-set";
1654
1654
  trigger: Record<string, unknown>;
1655
1655
  agent: string;
1656
1656
  contextQueryRefs: string[];
@@ -1693,15 +1693,15 @@ export declare function validatePortableContentData(model: string, value: unknow
1693
1693
  } | undefined;
1694
1694
  maxLatencyMs?: number | undefined;
1695
1695
  } | {
1696
- purpose: string;
1697
1696
  id: string;
1697
+ required: boolean;
1698
+ purpose: string;
1698
1699
  target: {
1699
1700
  kind: "code" | "content" | "mixed" | "graph";
1700
1701
  paths?: string[] | undefined;
1701
1702
  models?: string[] | undefined;
1702
1703
  };
1703
1704
  description: string;
1704
- required: boolean;
1705
1705
  revision: number;
1706
1706
  format: "map" | "sources" | "summary" | "list" | "full" | "brief";
1707
1707
  query: string;
@@ -1729,29 +1729,29 @@ export declare function validatePortableContentData(model: string, value: unknow
1729
1729
  }[];
1730
1730
  mergePolicy: "replace" | "append";
1731
1731
  } | {
1732
- kind: "message" | "status" | "summary" | "plan";
1733
1732
  id: string;
1733
+ variables: string[];
1734
+ kind: "status" | "message" | "summary" | "plan";
1734
1735
  description: string;
1735
1736
  revision: number;
1736
1737
  title: string;
1737
1738
  instructions: string;
1738
- variables: string[];
1739
1739
  appliesToProfiles: string[];
1740
1740
  outputSkeleton?: string | undefined;
1741
1741
  } | {
1742
1742
  status: "active" | "archived";
1743
+ slug: string;
1743
1744
  id: string;
1744
1745
  description: string;
1745
- slug: string;
1746
1746
  title: string;
1747
1747
  groupIds: string[];
1748
1748
  parentTopicId?: string | undefined;
1749
1749
  } | {
1750
- teamId: string;
1751
1750
  status: "ready" | "active" | "completed" | "superseded" | "draft";
1752
- createdAt: Date;
1753
1751
  id: string;
1754
1752
  projectId: string;
1753
+ teamId: string;
1754
+ createdAt: Date;
1755
1755
  revision: number;
1756
1756
  objective: string;
1757
1757
  completed: {
@@ -1782,12 +1782,12 @@ export declare function validatePortableContentData(model: string, value: unknow
1782
1782
  contextRefs: string[];
1783
1783
  } | undefined;
1784
1784
  } | {
1785
- teamId: string;
1786
- sequence: number;
1787
1785
  status: "pending" | "failed" | "running" | "completed" | "cancelled" | "admitted" | "suspended" | "waiting" | "leased";
1788
- createdAt: Date;
1789
1786
  id: string;
1790
1787
  projectId: string;
1788
+ teamId: string;
1789
+ createdAt: Date;
1790
+ sequence: number;
1791
1791
  title: string;
1792
1792
  phase: string;
1793
1793
  assignmentId?: string | undefined;
@@ -1801,12 +1801,12 @@ export declare function validatePortableContentData(model: string, value: unknow
1801
1801
  } | undefined;
1802
1802
  progress?: number | undefined;
1803
1803
  } | {
1804
- teamId: string;
1805
1804
  status: "failed" | "completed" | "cancelled" | "suspended";
1806
- createdAt: Date;
1807
1805
  id: string;
1808
- projectId: string;
1809
1806
  blockers: string[];
1807
+ projectId: string;
1808
+ teamId: string;
1809
+ createdAt: Date;
1810
1810
  summary: string;
1811
1811
  title: string;
1812
1812
  artifactRefs: string[];
@@ -1826,11 +1826,11 @@ export declare function validatePortableContentData(model: string, value: unknow
1826
1826
  contextRefs: string[];
1827
1827
  } | undefined;
1828
1828
  } | {
1829
- teamId: string;
1830
1829
  status: string;
1831
- createdAt: Date;
1832
1830
  id: string;
1833
1831
  projectId: string;
1832
+ teamId: string;
1833
+ createdAt: Date;
1834
1834
  outcome: "passed" | "failed" | "needs-revision";
1835
1835
  title: string;
1836
1836
  contextQueryRefs: {
@@ -1866,11 +1866,11 @@ export declare function validatePortableContentData(model: string, value: unknow
1866
1866
  } | {
1867
1867
  title: string;
1868
1868
  status?: "live" | "planned" | "in progress" | "exploratory" | "speculative" | undefined;
1869
+ slug?: string | undefined;
1869
1870
  description?: string | undefined;
1870
1871
  audience?: string[] | undefined;
1871
1872
  summary?: string | undefined;
1872
1873
  stage?: string | undefined;
1873
- slug?: string | undefined;
1874
1874
  updated_at?: Date | undefined;
1875
1875
  page_layout?: "article" | "bridge" | undefined;
1876
1876
  } | {
@@ -1942,9 +1942,9 @@ export declare function validatePortableContentData(model: string, value: unknow
1942
1942
  primary_contributor: string;
1943
1943
  proposal_type: string;
1944
1944
  plan?: {
1945
+ scope: string[];
1945
1946
  dependencies: string[];
1946
1947
  verification: string[];
1947
- scope: string[];
1948
1948
  risks: string[];
1949
1949
  desiredOutcome: string;
1950
1950
  currentProblem: string;
@@ -1987,25 +1987,25 @@ export declare function validatePortableContentData(model: string, value: unknow
1987
1987
  decision_type?: "approved" | "rejected" | "deferred" | "superseded" | "request_changes" | undefined;
1988
1988
  rationale?: string | undefined;
1989
1989
  } | {
1990
- schemaVersion: "treeseed.book/v2";
1991
1990
  status: "review" | "archived" | "draft" | "published";
1991
+ slug: string;
1992
+ schemaVersion: "treeseed.book/v2";
1992
1993
  id: string;
1993
1994
  visibility: "project" | "team" | "public" | "admin" | "authenticated";
1994
1995
  order: number;
1995
1996
  summary: string;
1996
- slug: string;
1997
1997
  title: string;
1998
1998
  description?: string | undefined;
1999
1999
  audience?: string[] | undefined;
2000
2000
  groupIds?: string[] | undefined;
2001
2001
  relatedBookIds?: string[] | undefined;
2002
2002
  } | {
2003
- schemaVersion: "treeseed.knowledge-page/v1";
2004
2003
  status: "review" | "archived" | "draft" | "published";
2004
+ slug: string;
2005
+ schemaVersion: "treeseed.knowledge-page/v1";
2005
2006
  id: string;
2006
2007
  visibility: "project" | "team" | "public" | "admin" | "authenticated";
2007
2008
  summary: string;
2008
- slug: string;
2009
2009
  title: string;
2010
2010
  bookId: string;
2011
2011
  description?: string | undefined;
@@ -2013,9 +2013,9 @@ export declare function validatePortableContentData(model: string, value: unknow
2013
2013
  groupIds?: string[] | undefined;
2014
2014
  } | {
2015
2015
  name: string;
2016
+ role?: string | undefined;
2016
2017
  status?: "live" | "planned" | "in progress" | "exploratory" | "speculative" | undefined;
2017
2018
  description?: string | undefined;
2018
- role?: string | undefined;
2019
2019
  summary?: string | undefined;
2020
2020
  group_ids?: string[] | undefined;
2021
2021
  related_objectives?: string[] | undefined;
@@ -2059,11 +2059,11 @@ export declare function validatePortableContentData(model: string, value: unknow
2059
2059
  occurred_at?: Date | undefined;
2060
2060
  refs?: string[] | undefined;
2061
2061
  } | {
2062
+ slug: string;
2062
2063
  id: string;
2063
2064
  name: string;
2064
2065
  description: string;
2065
2066
  classification: string;
2066
- slug: string;
2067
2067
  contract: "treeseed.group/v1";
2068
2068
  status?: "active" | "archived" | undefined;
2069
2069
  aliases?: string[] | undefined;
@@ -79,6 +79,11 @@ export declare const aiModeTransitionReceiptSchema: z.ZodObject<{
79
79
  completedAt: z.ZodNullable<z.ZodString>;
80
80
  }, "strict", z.ZodTypeAny, {
81
81
  schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
82
+ steps: {
83
+ id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
84
+ state: "pending" | "failed" | "running" | "succeeded" | "skipped";
85
+ completedAt: string | null;
86
+ }[];
82
87
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
83
88
  resource: "ai-gpu";
84
89
  completedAt: string | null;
@@ -92,14 +97,14 @@ export declare const aiModeTransitionReceiptSchema: z.ZodObject<{
92
97
  inferenceRuntimeDigest: string;
93
98
  trainingRuntimeDigest: string;
94
99
  };
100
+ startedAt: string;
101
+ }, {
102
+ schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
95
103
  steps: {
96
104
  id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
97
105
  state: "pending" | "failed" | "running" | "succeeded" | "skipped";
98
106
  completedAt: string | null;
99
107
  }[];
100
- startedAt: string;
101
- }, {
102
- schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
103
108
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
104
109
  resource: "ai-gpu";
105
110
  completedAt: string | null;
@@ -113,11 +118,6 @@ export declare const aiModeTransitionReceiptSchema: z.ZodObject<{
113
118
  inferenceRuntimeDigest: string;
114
119
  trainingRuntimeDigest: string;
115
120
  };
116
- steps: {
117
- id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
118
- state: "pending" | "failed" | "running" | "succeeded" | "skipped";
119
- completedAt: string | null;
120
- }[];
121
121
  startedAt: string;
122
122
  }>;
123
123
  export declare const aiModeStatusSchema: z.ZodObject<{
@@ -172,6 +172,11 @@ export declare const aiModeStatusSchema: z.ZodObject<{
172
172
  completedAt: z.ZodNullable<z.ZodString>;
173
173
  }, "strict", z.ZodTypeAny, {
174
174
  schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
175
+ steps: {
176
+ id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
177
+ state: "pending" | "failed" | "running" | "succeeded" | "skipped";
178
+ completedAt: string | null;
179
+ }[];
175
180
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
176
181
  resource: "ai-gpu";
177
182
  completedAt: string | null;
@@ -185,14 +190,14 @@ export declare const aiModeStatusSchema: z.ZodObject<{
185
190
  inferenceRuntimeDigest: string;
186
191
  trainingRuntimeDigest: string;
187
192
  };
193
+ startedAt: string;
194
+ }, {
195
+ schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
188
196
  steps: {
189
197
  id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
190
198
  state: "pending" | "failed" | "running" | "succeeded" | "skipped";
191
199
  completedAt: string | null;
192
200
  }[];
193
- startedAt: string;
194
- }, {
195
- schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
196
201
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
197
202
  resource: "ai-gpu";
198
203
  completedAt: string | null;
@@ -206,11 +211,6 @@ export declare const aiModeStatusSchema: z.ZodObject<{
206
211
  inferenceRuntimeDigest: string;
207
212
  trainingRuntimeDigest: string;
208
213
  };
209
- steps: {
210
- id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
211
- state: "pending" | "failed" | "running" | "succeeded" | "skipped";
212
- completedAt: string | null;
213
- }[];
214
214
  startedAt: string;
215
215
  }>>;
216
216
  lastReceipt: z.ZodNullable<z.ZodObject<{
@@ -250,6 +250,11 @@ export declare const aiModeStatusSchema: z.ZodObject<{
250
250
  completedAt: z.ZodNullable<z.ZodString>;
251
251
  }, "strict", z.ZodTypeAny, {
252
252
  schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
253
+ steps: {
254
+ id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
255
+ state: "pending" | "failed" | "running" | "succeeded" | "skipped";
256
+ completedAt: string | null;
257
+ }[];
253
258
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
254
259
  resource: "ai-gpu";
255
260
  completedAt: string | null;
@@ -263,14 +268,14 @@ export declare const aiModeStatusSchema: z.ZodObject<{
263
268
  inferenceRuntimeDigest: string;
264
269
  trainingRuntimeDigest: string;
265
270
  };
271
+ startedAt: string;
272
+ }, {
273
+ schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
266
274
  steps: {
267
275
  id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
268
276
  state: "pending" | "failed" | "running" | "succeeded" | "skipped";
269
277
  completedAt: string | null;
270
278
  }[];
271
- startedAt: string;
272
- }, {
273
- schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
274
279
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
275
280
  resource: "ai-gpu";
276
281
  completedAt: string | null;
@@ -284,24 +289,24 @@ export declare const aiModeStatusSchema: z.ZodObject<{
284
289
  inferenceRuntimeDigest: string;
285
290
  trainingRuntimeDigest: string;
286
291
  };
287
- steps: {
288
- id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
289
- state: "pending" | "failed" | "running" | "succeeded" | "skipped";
290
- completedAt: string | null;
291
- }[];
292
292
  startedAt: string;
293
293
  }>>;
294
294
  }, "strict", z.ZodTypeAny, {
295
295
  schemaVersion: "treeseed.ai-mode-status/v1";
296
+ available: boolean;
296
297
  mode: "degraded" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep" | "unavailable";
297
298
  resource: "ai-gpu";
298
299
  fingerprint: {
299
300
  inferenceRuntimeDigest: string;
300
301
  trainingRuntimeDigest: string;
301
302
  } | null;
302
- available: boolean;
303
303
  activeTransition: {
304
304
  schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
305
+ steps: {
306
+ id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
307
+ state: "pending" | "failed" | "running" | "succeeded" | "skipped";
308
+ completedAt: string | null;
309
+ }[];
305
310
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
306
311
  resource: "ai-gpu";
307
312
  completedAt: string | null;
@@ -315,15 +320,15 @@ export declare const aiModeStatusSchema: z.ZodObject<{
315
320
  inferenceRuntimeDigest: string;
316
321
  trainingRuntimeDigest: string;
317
322
  };
323
+ startedAt: string;
324
+ } | null;
325
+ lastReceipt: {
326
+ schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
318
327
  steps: {
319
328
  id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
320
329
  state: "pending" | "failed" | "running" | "succeeded" | "skipped";
321
330
  completedAt: string | null;
322
331
  }[];
323
- startedAt: string;
324
- } | null;
325
- lastReceipt: {
326
- schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
327
332
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
328
333
  resource: "ai-gpu";
329
334
  completedAt: string | null;
@@ -337,24 +342,24 @@ export declare const aiModeStatusSchema: z.ZodObject<{
337
342
  inferenceRuntimeDigest: string;
338
343
  trainingRuntimeDigest: string;
339
344
  };
340
- steps: {
341
- id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
342
- state: "pending" | "failed" | "running" | "succeeded" | "skipped";
343
- completedAt: string | null;
344
- }[];
345
345
  startedAt: string;
346
346
  } | null;
347
347
  }, {
348
348
  schemaVersion: "treeseed.ai-mode-status/v1";
349
+ available: boolean;
349
350
  mode: "degraded" | "awake" | "sleep" | "transitioning-awake" | "transitioning-sleep" | "unavailable";
350
351
  resource: "ai-gpu";
351
352
  fingerprint: {
352
353
  inferenceRuntimeDigest: string;
353
354
  trainingRuntimeDigest: string;
354
355
  } | null;
355
- available: boolean;
356
356
  activeTransition: {
357
357
  schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
358
+ steps: {
359
+ id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
360
+ state: "pending" | "failed" | "running" | "succeeded" | "skipped";
361
+ completedAt: string | null;
362
+ }[];
358
363
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
359
364
  resource: "ai-gpu";
360
365
  completedAt: string | null;
@@ -368,15 +373,15 @@ export declare const aiModeStatusSchema: z.ZodObject<{
368
373
  inferenceRuntimeDigest: string;
369
374
  trainingRuntimeDigest: string;
370
375
  };
376
+ startedAt: string;
377
+ } | null;
378
+ lastReceipt: {
379
+ schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
371
380
  steps: {
372
381
  id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
373
382
  state: "pending" | "failed" | "running" | "succeeded" | "skipped";
374
383
  completedAt: string | null;
375
384
  }[];
376
- startedAt: string;
377
- } | null;
378
- lastReceipt: {
379
- schemaVersion: "treeseed.ai-mode-transition-receipt/v1";
380
385
  state: "degraded" | "running" | "succeeded" | "planned" | "postponed" | "rolled-back";
381
386
  resource: "ai-gpu";
382
387
  completedAt: string | null;
@@ -390,11 +395,6 @@ export declare const aiModeStatusSchema: z.ZodObject<{
390
395
  inferenceRuntimeDigest: string;
391
396
  trainingRuntimeDigest: string;
392
397
  };
393
- steps: {
394
- id: "close-inference" | "drain-inference" | "stop-vllm" | "start-training" | "open-training" | "close-training" | "drain-training" | "stop-training" | "start-vllm" | "warm-vllm" | "open-inference" | "rollback";
395
- state: "pending" | "failed" | "running" | "succeeded" | "skipped";
396
- completedAt: string | null;
397
- }[];
398
398
  startedAt: string;
399
399
  } | null;
400
400
  }>;
@@ -421,8 +421,8 @@ export declare const aiModeInternalControlSchema: z.ZodObject<{
421
421
  requestSchema: z.ZodLiteral<"treeseed.ai-mode-request/v1">;
422
422
  receiptSchema: z.ZodLiteral<"treeseed.ai-mode-transition-receipt/v1">;
423
423
  }, "strict", z.ZodTypeAny, {
424
- schemaVersion: "treeseed.ai-mode-internal-control/v1";
425
424
  path: string;
425
+ schemaVersion: "treeseed.ai-mode-internal-control/v1";
426
426
  transport: "mtls";
427
427
  clientCommonName: "client-ai-lab-mode";
428
428
  method: "POST";
@@ -435,8 +435,8 @@ export declare const aiModeInternalControlSchema: z.ZodObject<{
435
435
  requestSchema: "treeseed.ai-mode-request/v1";
436
436
  receiptSchema: "treeseed.ai-mode-transition-receipt/v1";
437
437
  }, {
438
- schemaVersion: "treeseed.ai-mode-internal-control/v1";
439
438
  path: string;
439
+ schemaVersion: "treeseed.ai-mode-internal-control/v1";
440
440
  transport: "mtls";
441
441
  clientCommonName: "client-ai-lab-mode";
442
442
  method: "POST";