@bastani/atomic 0.9.38-alpha.6 → 0.9.38-alpha.8

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 (256) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/dist/builtin/intercom/package.json +2 -2
  3. package/dist/builtin/mcp/package.json +1 -1
  4. package/dist/builtin/subagents/CHANGELOG.md +12 -0
  5. package/dist/builtin/subagents/README.md +9 -4
  6. package/dist/builtin/subagents/package.json +3 -3
  7. package/dist/builtin/subagents/src/extension/index.bundle.mjs +143 -134
  8. package/dist/builtin/web-access/package.json +2 -2
  9. package/dist/builtin/workflows/CHANGELOG.md +25 -0
  10. package/dist/builtin/workflows/builtin/{chunk-q7dx7kh7.js → chunk-85mx6wcf.js} +6 -6
  11. package/dist/builtin/workflows/builtin/{chunk-neszcj53.js → chunk-8kkv04hz.js} +15 -15
  12. package/dist/builtin/workflows/builtin/{chunk-g1a4hw0s.js → chunk-8x61e0s7.js} +13 -25
  13. package/dist/builtin/workflows/builtin/{chunk-2qgfyvzs.js → chunk-y45tkftg.js} +7 -7
  14. package/dist/builtin/workflows/builtin/goal.js +2 -2
  15. package/dist/builtin/workflows/builtin/index.js +4 -4
  16. package/dist/builtin/workflows/builtin/open-claude-design.js +1 -1
  17. package/dist/builtin/workflows/builtin/ralph.js +2 -2
  18. package/dist/builtin/workflows/package.json +2 -2
  19. package/dist/builtin/workflows/src/durable/journal/internal.d.ts +0 -19
  20. package/dist/builtin/workflows/src/durable/journal/legacy-journal-tables.d.ts +42 -0
  21. package/dist/builtin/workflows/src/durable/journal/memory-run-journal.d.ts +3 -11
  22. package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +15 -9
  23. package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +3 -0
  24. package/dist/builtin/workflows/src/durable/journal/types.d.ts +3 -93
  25. package/dist/builtin/workflows/src/extension/index.bundle.mjs +1137 -748
  26. package/dist/builtin/workflows/src/index.js +709 -403
  27. package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +1 -1
  28. package/dist/cli/args.d.ts +2 -0
  29. package/dist/cli/args.d.ts.map +1 -1
  30. package/dist/cli/args.js +29 -3
  31. package/dist/cli/args.js.map +1 -1
  32. package/dist/cli/session-picker.d.ts +1 -1
  33. package/dist/cli/session-picker.d.ts.map +1 -1
  34. package/dist/cli/session-picker.js +2 -2
  35. package/dist/cli/session-picker.js.map +1 -1
  36. package/dist/core/agent-session-events.d.ts.map +1 -1
  37. package/dist/core/agent-session-events.js +6 -1
  38. package/dist/core/agent-session-events.js.map +1 -1
  39. package/dist/core/agent-session-runtime.d.ts +4 -0
  40. package/dist/core/agent-session-runtime.d.ts.map +1 -1
  41. package/dist/core/agent-session-runtime.js +44 -4
  42. package/dist/core/agent-session-runtime.js.map +1 -1
  43. package/dist/core/agent-session-services.d.ts +1 -1
  44. package/dist/core/agent-session-services.d.ts.map +1 -1
  45. package/dist/core/agent-session-services.js +2 -2
  46. package/dist/core/agent-session-services.js.map +1 -1
  47. package/dist/core/compaction/branch-summarization.d.ts +1 -4
  48. package/dist/core/compaction/branch-summarization.d.ts.map +1 -1
  49. package/dist/core/compaction/branch-summarization.js +0 -4
  50. package/dist/core/compaction/branch-summarization.js.map +1 -1
  51. package/dist/core/compaction/pi-summary-fallback.d.ts.map +1 -1
  52. package/dist/core/compaction/pi-summary-fallback.js +1 -3
  53. package/dist/core/compaction/pi-summary-fallback.js.map +1 -1
  54. package/dist/core/extensions/loader-api.js +1 -1
  55. package/dist/core/extensions/loader-api.js.map +1 -1
  56. package/dist/core/extensions/runner-context.d.ts.map +1 -1
  57. package/dist/core/extensions/runner-context.js +7 -1
  58. package/dist/core/extensions/runner-context.js.map +1 -1
  59. package/dist/core/fast-model-routing.js +1 -1
  60. package/dist/core/fast-model-routing.js.map +1 -1
  61. package/dist/core/model-config.d.ts +765 -0
  62. package/dist/core/model-config.d.ts.map +1 -1
  63. package/dist/core/model-config.js +46 -24
  64. package/dist/core/model-config.js.map +1 -1
  65. package/dist/core/model-resolver-defaults.js +1 -1
  66. package/dist/core/model-resolver-defaults.js.map +1 -1
  67. package/dist/core/resource-loader-reload.js +1 -1
  68. package/dist/core/resource-loader-reload.js.map +1 -1
  69. package/dist/core/resource-loader-types.d.ts +1 -1
  70. package/dist/core/resource-loader-types.d.ts.map +1 -1
  71. package/dist/core/resource-loader-types.js.map +1 -1
  72. package/dist/core/sdk-types.d.ts +4 -0
  73. package/dist/core/sdk-types.d.ts.map +1 -1
  74. package/dist/core/sdk-types.js.map +1 -1
  75. package/dist/core/sdk.d.ts +1 -1
  76. package/dist/core/sdk.d.ts.map +1 -1
  77. package/dist/core/sdk.js +48 -19
  78. package/dist/core/sdk.js.map +1 -1
  79. package/dist/core/session-lifecycle-work.d.ts +3 -0
  80. package/dist/core/session-lifecycle-work.d.ts.map +1 -1
  81. package/dist/core/session-lifecycle-work.js +2 -0
  82. package/dist/core/session-lifecycle-work.js.map +1 -1
  83. package/dist/core/session-manager-core.d.ts +7 -4
  84. package/dist/core/session-manager-core.d.ts.map +1 -1
  85. package/dist/core/session-manager-core.js +149 -41
  86. package/dist/core/session-manager-core.js.map +1 -1
  87. package/dist/core/session-manager-list.d.ts.map +1 -1
  88. package/dist/core/session-manager-list.js +7 -7
  89. package/dist/core/session-manager-list.js.map +1 -1
  90. package/dist/core/session-manager-storage.d.ts +2 -1
  91. package/dist/core/session-manager-storage.d.ts.map +1 -1
  92. package/dist/core/session-manager-storage.js +24 -9
  93. package/dist/core/session-manager-storage.js.map +1 -1
  94. package/dist/core/session-manager-types.d.ts +1 -1
  95. package/dist/core/session-manager-types.d.ts.map +1 -1
  96. package/dist/core/session-manager-types.js.map +1 -1
  97. package/dist/core/session-manager.d.ts +1 -1
  98. package/dist/core/session-manager.d.ts.map +1 -1
  99. package/dist/core/session-manager.js +1 -1
  100. package/dist/core/session-manager.js.map +1 -1
  101. package/dist/core/session-resume-args.d.ts +4 -0
  102. package/dist/core/session-resume-args.d.ts.map +1 -0
  103. package/dist/core/session-resume-args.js +9 -0
  104. package/dist/core/session-resume-args.js.map +1 -0
  105. package/dist/core/session-storage.d.ts +26 -0
  106. package/dist/core/session-storage.d.ts.map +1 -0
  107. package/dist/core/session-storage.js +171 -0
  108. package/dist/core/session-storage.js.map +1 -0
  109. package/dist/core/session-store-list.d.ts +4 -0
  110. package/dist/core/session-store-list.d.ts.map +1 -0
  111. package/dist/core/session-store-list.js +28 -0
  112. package/dist/core/session-store-list.js.map +1 -0
  113. package/dist/core/settings-manager-basic-accessors.d.ts +0 -1
  114. package/dist/core/settings-manager-basic-accessors.d.ts.map +1 -1
  115. package/dist/core/settings-manager-basic-accessors.js +0 -5
  116. package/dist/core/settings-manager-basic-accessors.js.map +1 -1
  117. package/dist/core/settings-merge.d.ts.map +1 -1
  118. package/dist/core/settings-merge.js +5 -0
  119. package/dist/core/settings-merge.js.map +1 -1
  120. package/dist/core/settings-schema.d.ts +74 -3
  121. package/dist/core/settings-schema.d.ts.map +1 -1
  122. package/dist/core/settings-schema.js +28 -14
  123. package/dist/core/settings-schema.js.map +1 -1
  124. package/dist/core/storage/errors.d.ts +1 -0
  125. package/dist/core/storage/errors.d.ts.map +1 -1
  126. package/dist/core/storage/errors.js.map +1 -1
  127. package/dist/core/storage/index.d.ts +4 -0
  128. package/dist/core/storage/index.d.ts.map +1 -1
  129. package/dist/core/storage/index.js +3 -0
  130. package/dist/core/storage/index.js.map +1 -1
  131. package/dist/core/storage/provider.d.ts +58 -0
  132. package/dist/core/storage/provider.d.ts.map +1 -0
  133. package/dist/core/storage/provider.js +243 -0
  134. package/dist/core/storage/provider.js.map +1 -0
  135. package/dist/core/storage/run-journal.d.ts +93 -0
  136. package/dist/core/storage/run-journal.d.ts.map +1 -0
  137. package/dist/core/storage/run-journal.js +15 -0
  138. package/dist/core/storage/run-journal.js.map +1 -0
  139. package/dist/core/storage/selection.d.ts +16 -0
  140. package/dist/core/storage/selection.d.ts.map +1 -0
  141. package/dist/core/storage/selection.js +87 -0
  142. package/dist/core/storage/selection.js.map +1 -0
  143. package/dist/core/storage/session/jsonl-session-store.d.ts +9 -1
  144. package/dist/core/storage/session/jsonl-session-store.d.ts.map +1 -1
  145. package/dist/core/storage/session/jsonl-session-store.js +82 -44
  146. package/dist/core/storage/session/jsonl-session-store.js.map +1 -1
  147. package/dist/core/storage/session/legacy-format.d.ts +20 -0
  148. package/dist/core/storage/session/legacy-format.d.ts.map +1 -0
  149. package/dist/core/storage/session/legacy-format.js +89 -0
  150. package/dist/core/storage/session/legacy-format.js.map +1 -0
  151. package/dist/core/storage/session/legacy-session-store.d.ts +60 -0
  152. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -0
  153. package/dist/core/storage/session/legacy-session-store.js +225 -0
  154. package/dist/core/storage/session/legacy-session-store.js.map +1 -0
  155. package/dist/core/storage/session/memory-session-store.d.ts +3 -1
  156. package/dist/core/storage/session/memory-session-store.d.ts.map +1 -1
  157. package/dist/core/storage/session/memory-session-store.js +9 -2
  158. package/dist/core/storage/session/memory-session-store.js.map +1 -1
  159. package/dist/core/storage/session/sql-session-store.d.ts +4 -1
  160. package/dist/core/storage/session/sql-session-store.d.ts.map +1 -1
  161. package/dist/core/storage/session/sql-session-store.js +25 -6
  162. package/dist/core/storage/session/sql-session-store.js.map +1 -1
  163. package/dist/core/storage/session/types.d.ts +4 -0
  164. package/dist/core/storage/session/types.d.ts.map +1 -1
  165. package/dist/core/storage/session/types.js.map +1 -1
  166. package/dist/core/tools/read-url.d.ts.map +1 -1
  167. package/dist/core/tools/read-url.js +6 -1
  168. package/dist/core/tools/read-url.js.map +1 -1
  169. package/dist/extensions/codemode/execute.d.ts.map +1 -1
  170. package/dist/extensions/codemode/execute.js +13 -0
  171. package/dist/extensions/codemode/execute.js.map +1 -1
  172. package/dist/extensions/herdr/index.d.ts.map +1 -1
  173. package/dist/extensions/herdr/index.js +5 -3
  174. package/dist/extensions/herdr/index.js.map +1 -1
  175. package/dist/index.d.ts +3 -1
  176. package/dist/index.d.ts.map +1 -1
  177. package/dist/index.js +3 -1
  178. package/dist/index.js.map +1 -1
  179. package/dist/main-session.d.ts +5 -1
  180. package/dist/main-session.d.ts.map +1 -1
  181. package/dist/main-session.js +106 -45
  182. package/dist/main-session.js.map +1 -1
  183. package/dist/main.d.ts.map +1 -1
  184. package/dist/main.js +49 -15
  185. package/dist/main.js.map +1 -1
  186. package/dist/modes/interactive/components/chat-session-host.d.ts +3 -1
  187. package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
  188. package/dist/modes/interactive/components/chat-session-host.js +15 -7
  189. package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
  190. package/dist/modes/interactive/components/session-selector-delete.d.ts +1 -1
  191. package/dist/modes/interactive/components/session-selector-delete.d.ts.map +1 -1
  192. package/dist/modes/interactive/components/session-selector-delete.js.map +1 -1
  193. package/dist/modes/interactive/components/session-selector-list.d.ts +4 -4
  194. package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
  195. package/dist/modes/interactive/components/session-selector-list.js +13 -12
  196. package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
  197. package/dist/modes/interactive/components/session-selector.d.ts +1 -0
  198. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  199. package/dist/modes/interactive/components/session-selector.js +16 -5
  200. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  201. package/dist/modes/interactive/interactive-mode-helpers.d.ts.map +1 -1
  202. package/dist/modes/interactive/interactive-mode-helpers.js +6 -2
  203. package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
  204. package/dist/modes/interactive/interactive-session-routing.js +19 -7
  205. package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
  206. package/dist/modes/interactive/interactive-slash-commands.js +3 -1
  207. package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
  208. package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
  209. package/dist/modes/interactive-engine/create-isolated-runtime.js +8 -1
  210. package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
  211. package/dist/modes/interactive-engine/engine-args.d.ts.map +1 -1
  212. package/dist/modes/interactive-engine/engine-args.js +5 -1
  213. package/dist/modes/interactive-engine/engine-args.js.map +1 -1
  214. package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
  215. package/dist/modes/interactive-engine/isolated-runtime.js +21 -15
  216. package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
  217. package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
  218. package/dist/modes/rpc/rpc-client-process.js +3 -1
  219. package/dist/modes/rpc/rpc-client-process.js.map +1 -1
  220. package/dist/modes/rpc/rpc-command-handler.js +1 -1
  221. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  222. package/dist/modes/rpc/rpc-terminal-drain.d.ts.map +1 -1
  223. package/dist/modes/rpc/rpc-terminal-drain.js +11 -2
  224. package/dist/modes/rpc/rpc-terminal-drain.js.map +1 -1
  225. package/dist/utils/canonical-path.d.ts +5 -0
  226. package/dist/utils/canonical-path.d.ts.map +1 -0
  227. package/dist/utils/canonical-path.js +26 -0
  228. package/dist/utils/canonical-path.js.map +1 -0
  229. package/dist/utils/paths.d.ts +1 -7
  230. package/dist/utils/paths.d.ts.map +1 -1
  231. package/dist/utils/paths.js +1 -15
  232. package/dist/utils/paths.js.map +1 -1
  233. package/docs/codemode.md +2 -0
  234. package/docs/compaction.md +2 -2
  235. package/docs/docs.json +1 -0
  236. package/docs/environment-variables.md +6 -2
  237. package/docs/getting-started/installation.md +1 -1
  238. package/docs/models/reference.md +2 -0
  239. package/docs/models-configuration.md +206 -0
  240. package/docs/models.md +11 -1
  241. package/docs/providers.md +2 -2
  242. package/docs/reference/cli.md +4 -0
  243. package/docs/sdk/web-server.md +3 -3
  244. package/docs/sdk.md +40 -3
  245. package/docs/session-format.md +30 -25
  246. package/docs/sessions.md +43 -17
  247. package/docs/settings.md +31 -9
  248. package/docs/storage.md +85 -2
  249. package/docs/subagents.md +19 -6
  250. package/docs/workflows/api-reference.md +23 -15
  251. package/docs/workflows/operations.md +3 -3
  252. package/docs/workflows/reliable-design.md +16 -16
  253. package/npm-shrinkwrap.json +53 -53
  254. package/package.json +7 -6
  255. package/schemas/models.schema.json +62 -29
  256. package/schemas/settings.schema.json +136 -31
@@ -529,7 +529,7 @@ Ordinary `intercom` is enabled by default but respects `tools`, `excludedTools`,
529
529
  - Persist decisions under stable keys. Pause/resume, model fallback, durable replay, and nested workflows then reread the artifact instead of sending duplicate interventions.
530
530
  - Omit `group` for ordinary use. The worker, guard, nested workflows, and delegated subagents inherit the top-level workflow invocation's stable Intercom group. Set an explicit group only for intentional isolation; an override isolates that stage from ordinary same-group peers while leaving it steerable from the invocation context, which retains directional list/send/live-ask control over the subgroups it owns.
531
531
  - Use `context: "fresh"` for guards, reviewers, and judges. They should see only the contract, candidate, decision artifacts, and current files.
532
- - Use `context: "fork"` plus `forkFromSessionFile` for implementation, debugging, and repair roles that need continuity with an owned earlier session. `context: "fork"` alone does not name a fork source; an initial worker with no prior lineage may start fresh. A later continuation should use the earlier worker's `sessionFile` when available. Do not fork an independent guard from the worker it judges.
532
+ - Use `context: "fork"` plus `forkFromSessionId` for implementation, debugging, and repair roles that need continuity with an owned earlier session. `context: "fork"` alone does not name a fork source; an initial worker with no prior lineage may start fresh. A later continuation should use the earlier worker's `sessionId` in the selected session store when available. Do not fork an independent guard from the worker it judges.
533
533
  - Send a forked continuation only the delta after the fork point: new evidence, the decision artifact, any human answer, and the next action. Keep the full shared contract in its canonical file.
534
534
 
535
535
  Expected lifecycle state is not a defect. If the contract says `candidate → validation → approval → push/publish`, a guard at the candidate or validation boundary must not reject the patch merely because it is unpushed or unpublished. Only the later publication stage owns that action.
@@ -568,10 +568,10 @@ const decisionLogSchema = Type.Object(
568
568
 
569
569
  type DecisionLog = Static<typeof decisionLogSchema>;
570
570
 
571
- function continueWorker(sessionFile: string | undefined) {
572
- return sessionFile === undefined
571
+ function continueWorker(sessionId: string | undefined) {
572
+ return sessionId === undefined
573
573
  ? { context: "fork" as const }
574
- : { context: "fork" as const, forkFromSessionFile: sessionFile };
574
+ : { context: "fork" as const, forkFromSessionId: sessionId };
575
575
  }
576
576
 
577
577
  export default workflow({
@@ -627,7 +627,7 @@ export default workflow({
627
627
  ].join("\n"));
628
628
 
629
629
  await ctx.task("continue worker", {
630
- ...continueWorker(worker.sessionFile),
630
+ ...continueWorker(worker.sessionId),
631
631
  reads: [contract, decisionLog],
632
632
  prompt: [
633
633
  `Read the decision log at ${decisionLog}.`,
@@ -653,10 +653,10 @@ Use `ctx.stage(...)` when one independent checker needs a retained conversation.
653
653
  import { workflow } from "@bastani/atomic/workflows";
654
654
  import { Type } from "typebox";
655
655
 
656
- function continueWorker(sessionFile: string | undefined) {
657
- return sessionFile === undefined
656
+ function continueWorker(sessionId: string | undefined) {
657
+ return sessionId === undefined
658
658
  ? { context: "fork" as const }
659
- : { context: "fork" as const, forkFromSessionFile: sessionFile };
659
+ : { context: "fork" as const, forkFromSessionId: sessionId };
660
660
  }
661
661
 
662
662
  export default workflow({
@@ -703,7 +703,7 @@ export default workflow({
703
703
  );
704
704
 
705
705
  await ctx.task("apply retained decision", {
706
- ...continueWorker(worker.sessionFile),
706
+ ...continueWorker(worker.sessionId),
707
707
  reads: [contract, decisionLog],
708
708
  prompt: [
709
709
  `Read ${decisionLog}.`,
@@ -742,10 +742,10 @@ const coordinationSchema = Type.Object(
742
742
 
743
743
  type Coordination = Static<typeof coordinationSchema>;
744
744
 
745
- function workerContext(sessionFile: string | undefined) {
746
- return sessionFile === undefined
745
+ function workerContext(sessionId: string | undefined) {
746
+ return sessionId === undefined
747
747
  ? { context: "fresh" as const }
748
- : { context: "fork" as const, forkFromSessionFile: sessionFile };
748
+ : { context: "fork" as const, forkFromSessionId: sessionId };
749
749
  }
750
750
 
751
751
  export default workflow({
@@ -753,7 +753,7 @@ export default workflow({
753
753
  description: "Run a worker with a live same-group scope peer.",
754
754
  inputs: {
755
755
  scope_contract: Type.String(),
756
- worker_session_file: Type.Optional(Type.String({
756
+ worker_session_id: Type.Optional(Type.String({
757
757
  description: "Earlier worker session to continue; omit when no worker lineage exists.",
758
758
  })),
759
759
  fallback_policy: Type.Union([
@@ -778,7 +778,7 @@ export default workflow({
778
778
  [
779
779
  {
780
780
  name: "worker",
781
- ...workerContext(ctx.inputs.worker_session_file),
781
+ ...workerContext(ctx.inputs.worker_session_id),
782
782
  reads: [contract],
783
783
  prompt: [
784
784
  `Read the immutable scope contract at ${contract}.`,
@@ -910,11 +910,11 @@ State important constraints once. Reserve absolute wording for safety, required
910
910
 
911
911
  Avoid unrelated workflow internals such as reducer algorithms, future PR stages, sibling reviewer names, loop implementation details, or project-specific nicknames unless they are explicitly part of the current stage contract. If a term such as a gate name, ledger field, or workflow nickname is necessary, define it in the prompt before using it.
912
912
 
913
- Choose context mode deliberately. Use `context: "fork"` or `forkFromSessionFile` for coherent long-running implementation stages that need continuity from their own earlier work. Use `context: "fresh"` for unbiased reviewer, evaluator, and gate stages so they inspect the current files and explicit artifacts rather than inheriting the implementer's assumptions. When continuity is needed across fresh stages, pass it explicitly through files, declared outputs, and `reads`.
913
+ Choose context mode deliberately. Use `context: "fork"` or `forkFromSessionId` for coherent long-running implementation stages that need continuity from their own earlier work. Use `context: "fresh"` for unbiased reviewer, evaluator, and gate stages so they inspect the current files and explicit artifacts rather than inheriting the implementer's assumptions. When continuity is needed across fresh stages, pass it explicitly through files, declared outputs, and `reads`.
914
914
 
915
915
  ### Context-Mode-Aware Prompt Text
916
916
 
917
- Context mode is an execution property configured with `context`/`forkFromSessionFile`; the model cannot act on context mode, so keep it out of prompt text:
917
+ Context mode is an execution property configured with `context`/`forkFromSessionId`; the model cannot act on context mode, so keep it out of prompt text:
918
918
 
919
919
  - **Never describe the stage's own context mode.** Sentences like "you are running in a fresh context window", "your context is clean/non-forked", or "this is a forked session" add tokens without changing behavior. State the concrete action, inputs, and success criteria instead.
920
920
  - **Fresh stages must not reference invisible context.** A fresh stage has no "previous conversation", cannot see sibling stages' transcripts, and does not know the surrounding graph, so instructions like "compare against previous workflow reasoning" or "this runs in parallel with the locator pass" do not help and may confuse the model. Phrase the same intent stage-locally ("compare the working tree against the baseline branch"; "do your own scan; do not assume any other stage's output is available") and pass any state the stage needs through files, declared outputs, and `reads`. If a stage should talk to a live peer, say so explicitly and tell it how to find that peer with `intercom list`; see [peer coordination between stages](#peer-coordination-between-stages).
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.6",
3
+ "version": "0.9.38-alpha.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.9.38-alpha.6",
9
+ "version": "0.9.38-alpha.8",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.9.38-alpha.6",
13
- "@bastani/pi-ai": "0.9.38-alpha.6",
14
- "@earendil-works/pi-agent-core": "1.2.0",
15
- "@earendil-works/pi-codemode": "1.2.0",
16
- "@earendil-works/pi-tui": "1.2.0",
12
+ "@bastani/atomic-natives": "0.9.38-alpha.8",
13
+ "@bastani/pi-ai": "0.9.38-alpha.8",
14
+ "@earendil-works/pi-agent-core": "1.3.0",
15
+ "@earendil-works/pi-codemode": "1.3.0",
16
+ "@earendil-works/pi-tui": "1.3.0",
17
17
  "@modelcontextprotocol/ext-apps": "^1.7.5",
18
18
  "@modelcontextprotocol/sdk": "1.32.1",
19
19
  "@mozilla/readability": "^0.6.0",
@@ -427,18 +427,18 @@
427
427
  }
428
428
  },
429
429
  "node_modules/@bastani/atomic-natives": {
430
- "version": "0.9.38-alpha.6",
431
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38-alpha.6.tgz",
430
+ "version": "0.9.38-alpha.8",
431
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38-alpha.8.tgz",
432
432
  "license": "MIT",
433
433
  "optionalDependencies": {
434
- "@bastani/atomic-natives-darwin-arm64": "0.9.38-alpha.6",
435
- "@bastani/atomic-natives-darwin-x64": "0.9.38-alpha.6",
436
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38-alpha.6",
437
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.38-alpha.6",
438
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.38-alpha.6",
439
- "@bastani/atomic-natives-linux-x64-musl": "0.9.38-alpha.6",
440
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38-alpha.6",
441
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.38-alpha.6"
434
+ "@bastani/atomic-natives-darwin-arm64": "0.9.38-alpha.8",
435
+ "@bastani/atomic-natives-darwin-x64": "0.9.38-alpha.8",
436
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38-alpha.8",
437
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.38-alpha.8",
438
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.38-alpha.8",
439
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.38-alpha.8",
440
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38-alpha.8",
441
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.38-alpha.8"
442
442
  },
443
443
  "engines": {
444
444
  "bun": ">=1.4.2",
@@ -446,8 +446,8 @@
446
446
  }
447
447
  },
448
448
  "node_modules/@bastani/atomic-natives-darwin-arm64": {
449
- "version": "0.9.38-alpha.6",
450
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38-alpha.6.tgz",
449
+ "version": "0.9.38-alpha.8",
450
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38-alpha.8.tgz",
451
451
  "license": "MIT",
452
452
  "os": [
453
453
  "darwin"
@@ -458,8 +458,8 @@
458
458
  "optional": true
459
459
  },
460
460
  "node_modules/@bastani/atomic-natives-darwin-x64": {
461
- "version": "0.9.38-alpha.6",
462
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38-alpha.6.tgz",
461
+ "version": "0.9.38-alpha.8",
462
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38-alpha.8.tgz",
463
463
  "license": "MIT",
464
464
  "os": [
465
465
  "darwin"
@@ -470,8 +470,8 @@
470
470
  "optional": true
471
471
  },
472
472
  "node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
473
- "version": "0.9.38-alpha.6",
474
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38-alpha.6.tgz",
473
+ "version": "0.9.38-alpha.8",
474
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38-alpha.8.tgz",
475
475
  "license": "MIT",
476
476
  "os": [
477
477
  "linux"
@@ -485,8 +485,8 @@
485
485
  "optional": true
486
486
  },
487
487
  "node_modules/@bastani/atomic-natives-linux-arm64-musl": {
488
- "version": "0.9.38-alpha.6",
489
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38-alpha.6.tgz",
488
+ "version": "0.9.38-alpha.8",
489
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38-alpha.8.tgz",
490
490
  "license": "MIT",
491
491
  "os": [
492
492
  "linux"
@@ -500,8 +500,8 @@
500
500
  "optional": true
501
501
  },
502
502
  "node_modules/@bastani/atomic-natives-linux-x64-gnu": {
503
- "version": "0.9.38-alpha.6",
504
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38-alpha.6.tgz",
503
+ "version": "0.9.38-alpha.8",
504
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38-alpha.8.tgz",
505
505
  "license": "MIT",
506
506
  "os": [
507
507
  "linux"
@@ -515,8 +515,8 @@
515
515
  "optional": true
516
516
  },
517
517
  "node_modules/@bastani/atomic-natives-linux-x64-musl": {
518
- "version": "0.9.38-alpha.6",
519
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38-alpha.6.tgz",
518
+ "version": "0.9.38-alpha.8",
519
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38-alpha.8.tgz",
520
520
  "license": "MIT",
521
521
  "os": [
522
522
  "linux"
@@ -530,8 +530,8 @@
530
530
  "optional": true
531
531
  },
532
532
  "node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
533
- "version": "0.9.38-alpha.6",
534
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38-alpha.6.tgz",
533
+ "version": "0.9.38-alpha.8",
534
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38-alpha.8.tgz",
535
535
  "license": "MIT",
536
536
  "os": [
537
537
  "win32"
@@ -542,8 +542,8 @@
542
542
  "optional": true
543
543
  },
544
544
  "node_modules/@bastani/atomic-natives-win32-x64-msvc": {
545
- "version": "0.9.38-alpha.6",
546
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38-alpha.6.tgz",
545
+ "version": "0.9.38-alpha.8",
546
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38-alpha.8.tgz",
547
547
  "license": "MIT",
548
548
  "os": [
549
549
  "win32"
@@ -554,13 +554,13 @@
554
554
  "optional": true
555
555
  },
556
556
  "node_modules/@bastani/pi-ai": {
557
- "version": "0.9.38-alpha.6",
558
- "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38-alpha.6.tgz",
557
+ "version": "0.9.38-alpha.8",
558
+ "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38-alpha.8.tgz",
559
559
  "license": "MIT",
560
560
  "dependencies": {
561
561
  "@anthropic-ai/sdk": "0.129.0",
562
562
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
563
- "@earendil-works/pi-telemetry": "1.2.0",
563
+ "@earendil-works/pi-telemetry": "1.3.0",
564
564
  "@google/genai": "2.21.0",
565
565
  "@smithy/node-http-handler": "4.12.1",
566
566
  "http-proxy-agent": "9.1.0",
@@ -610,12 +610,12 @@
610
610
  }
611
611
  },
612
612
  "node_modules/@earendil-works/pi-agent-core": {
613
- "version": "1.2.0",
614
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.2.0.tgz",
615
- "integrity": "sha512-pUR0vYmGhHkBQGeCeWjwVIA+l1+MrDu6m6VGuysjh6KBzBpovTV/MlcVrEIOaM8jv/slpAyUmuCEQl1jOBqHJQ==",
613
+ "version": "1.3.0",
614
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-1.3.0.tgz",
615
+ "integrity": "sha512-2jvpxZs47PFD5mSQb/yK0pGHJ5yO7Nu22u9mFjHbSLRgu62vZ9rupimDSIp4arnqOadyv0AWvYHtCSpFoJV7ag==",
616
616
  "license": "MIT",
617
617
  "dependencies": {
618
- "@earendil-works/pi-ai": "^1.2.0",
618
+ "@earendil-works/pi-ai": "1.3.0",
619
619
  "typebox": "1.3.27"
620
620
  },
621
621
  "engines": {
@@ -623,14 +623,14 @@
623
623
  }
624
624
  },
625
625
  "node_modules/@earendil-works/pi-ai": {
626
- "version": "1.2.0",
627
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.2.0.tgz",
628
- "integrity": "sha512-U5/1zXqfV1on7/9sbez03tT4Ru49Lvfb4+zXSDK3DBKF5cRk6KxvAOTOY3HJ4jimlZth+rs7vbJqN6iBQAoNuQ==",
626
+ "version": "1.3.0",
627
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-1.3.0.tgz",
628
+ "integrity": "sha512-KaBI8x7q7sPoFUXICNGD9efHzDG+oRNwVvkA9jdIsSQWH1RjFssOlEGsbLtewUPPgCrvmz0l2KTgSLXTyj3acw==",
629
629
  "license": "MIT",
630
630
  "dependencies": {
631
631
  "@anthropic-ai/sdk": "0.129.0",
632
632
  "@aws-sdk/client-bedrock-runtime": "3.1127.0",
633
- "@earendil-works/pi-telemetry": "^1.2.0",
633
+ "@earendil-works/pi-telemetry": "1.3.0",
634
634
  "@google/genai": "2.21.0",
635
635
  "@smithy/node-http-handler": "4.12.1",
636
636
  "http-proxy-agent": "9.1.0",
@@ -670,9 +670,9 @@
670
670
  }
671
671
  },
672
672
  "node_modules/@earendil-works/pi-codemode": {
673
- "version": "1.2.0",
674
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.2.0.tgz",
675
- "integrity": "sha512-UZF7IN0IIrf3bop2wTxrwoAakGctH6d3zdPwhPN+QHMECfoI5E6B6l6I17YGFZPj8cmGex6xX7mLCNJXRf7wsw==",
673
+ "version": "1.3.0",
674
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-codemode/-/pi-codemode-1.3.0.tgz",
675
+ "integrity": "sha512-2G9tmbsPhgzwfz7cmzJpbLSLqOx3eu22Gbzm+Wc3HqeZMjLQS4F3KfAabozVhv7uEjq3k2O1dZTHmhhWr2xbfQ==",
676
676
  "license": "MIT",
677
677
  "dependencies": {
678
678
  "quickjs-wasi": "3.6.2"
@@ -682,18 +682,18 @@
682
682
  }
683
683
  },
684
684
  "node_modules/@earendil-works/pi-telemetry": {
685
- "version": "1.2.0",
686
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.2.0.tgz",
687
- "integrity": "sha512-NZ3aJE6dr7aTgzzXDe53OW7BsAsF8ZUKHPJTtnjaQcxtlagkUT0Ew8Qas0EvYQsZqR/KpF1lB+z209XBzIC7xg==",
685
+ "version": "1.3.0",
686
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-telemetry/-/pi-telemetry-1.3.0.tgz",
687
+ "integrity": "sha512-ERGZr+aXjNJzoUbB7ZzHVH3g5otzMHjHLs2Fyizm12By5X+gBEhod9cJXFOk13S7M8a29Am+Mq21zm73mRJFLg==",
688
688
  "license": "MIT",
689
689
  "engines": {
690
690
  "node": ">=22.19.0"
691
691
  }
692
692
  },
693
693
  "node_modules/@earendil-works/pi-tui": {
694
- "version": "1.2.0",
695
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.2.0.tgz",
696
- "integrity": "sha512-OdJCiYklkL3TqmdmGKUflHoLy9zw18GBYO0DPASZvGlP4RkDXAZzLLDt7cidJ6wUR7DBrKb13rrekDsXgMF60g==",
694
+ "version": "1.3.0",
695
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-1.3.0.tgz",
696
+ "integrity": "sha512-AlKvEwEWyVtnuw7SVb4N/mUhlfIohyFslUNWarZVdLHHSdt3ca5EhMLwTzblBpDpaofSz+f+tAHie6CfxVrWKA==",
697
697
  "license": "MIT",
698
698
  "dependencies": {
699
699
  "get-east-asian-width": "1.6.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38-alpha.6",
3
+ "version": "0.9.38-alpha.8",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -83,16 +83,17 @@
83
83
  "assert-binary-assets": "bun run scripts/assert-pi-runtime-assets.ts --app dist/app.js",
84
84
  "docs:check": "bun run scripts/validate-docs-links.ts",
85
85
  "generate:schemas": "bun run scripts/generate-schemas.ts",
86
+ "generate:references": "bun run scripts/generate-references.ts",
86
87
  "test": "vitest --run",
87
88
  "shrinkwrap": "bun run ../../scripts/generate-coding-agent-shrinkwrap.mjs",
88
89
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
89
90
  },
90
91
  "dependencies": {
91
- "@bastani/atomic-natives": "0.9.38-alpha.6",
92
- "@bastani/pi-ai": "0.9.38-alpha.6",
93
- "@earendil-works/pi-agent-core": "1.2.0",
94
- "@earendil-works/pi-codemode": "1.2.0",
95
- "@earendil-works/pi-tui": "1.2.0",
92
+ "@bastani/atomic-natives": "0.9.38-alpha.8",
93
+ "@bastani/pi-ai": "0.9.38-alpha.8",
94
+ "@earendil-works/pi-agent-core": "1.3.0",
95
+ "@earendil-works/pi-codemode": "1.3.0",
96
+ "@earendil-works/pi-tui": "1.3.0",
96
97
  "@modelcontextprotocol/ext-apps": "^1.7.5",
97
98
  "@modelcontextprotocol/sdk": "1.32.1",
98
99
  "@mozilla/readability": "^0.6.0",
@@ -18,23 +18,28 @@
18
18
  "properties": {
19
19
  "name": {
20
20
  "type": "string",
21
- "minLength": 1
21
+ "minLength": 1,
22
+ "description": "Display name."
22
23
  },
23
24
  "baseUrl": {
24
25
  "type": "string",
25
- "minLength": 1
26
+ "minLength": 1,
27
+ "description": "API base URL. Also applies to the provider's built-in models."
26
28
  },
27
29
  "apiKey": {
28
30
  "type": "string",
29
- "minLength": 1
31
+ "minLength": 1,
32
+ "description": "Literal key, \"$NAME\" environment interpolation, or \"!command\" output."
30
33
  },
31
34
  "api": {
32
35
  "type": "string",
33
- "minLength": 1
36
+ "minLength": 1,
37
+ "description": "API for the provider's models, such as \"openai-completions\", \"openai-responses\", \"anthropic-messages\", or \"google-generative-ai\"."
34
38
  },
35
39
  "oauth": {
36
40
  "type": "string",
37
- "const": "radius"
41
+ "const": "radius",
42
+ "description": "OAuth login flow. Requires baseUrl."
38
43
  },
39
44
  "headers": {
40
45
  "type": "object",
@@ -42,14 +47,17 @@
42
47
  "^.*$": {
43
48
  "type": "string"
44
49
  }
45
- }
50
+ },
51
+ "description": "Request headers. Values resolve like apiKey."
46
52
  },
47
53
  "compat": {
48
54
  "$ref": "#/$defs/ProviderCompat",
49
55
  "description": "Provider and model compatibility overrides."
50
56
  },
51
57
  "authHeader": {
52
- "type": "boolean"
58
+ "type": "boolean",
59
+ "default": false,
60
+ "description": "Whether to send the resolved API key as Authorization: Bearer."
53
61
  },
54
62
  "models": {
55
63
  "type": "array",
@@ -61,25 +69,32 @@
61
69
  "properties": {
62
70
  "id": {
63
71
  "type": "string",
64
- "minLength": 1
72
+ "minLength": 1,
73
+ "description": "Model ID sent to the API."
65
74
  },
66
75
  "name": {
67
76
  "type": "string",
68
- "minLength": 1
77
+ "minLength": 1,
78
+ "description": "Display name, also matched by --model patterns."
69
79
  },
70
80
  "api": {
71
81
  "type": "string",
72
- "minLength": 1
82
+ "minLength": 1,
83
+ "description": "Overrides the provider api."
73
84
  },
74
85
  "baseUrl": {
75
86
  "type": "string",
76
- "minLength": 1
87
+ "minLength": 1,
88
+ "description": "Overrides the provider baseUrl."
77
89
  },
78
90
  "reasoning": {
79
- "type": "boolean"
91
+ "type": "boolean",
92
+ "default": false,
93
+ "description": "Whether the model supports thinking."
80
94
  },
81
95
  "thinkingLevelMap": {
82
- "$ref": "#/$defs/ThinkingLevelMap"
96
+ "$ref": "#/$defs/ThinkingLevelMap",
97
+ "description": "Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported."
83
98
  },
84
99
  "input": {
85
100
  "type": "array",
@@ -89,7 +104,10 @@
89
104
  "image",
90
105
  "pdf"
91
106
  ]
92
- }
107
+ },
108
+ "default": [
109
+ "text"
110
+ ]
93
111
  },
94
112
  "inputLimits": {
95
113
  "$ref": "#/$defs/ModelInputLimits"
@@ -99,21 +117,26 @@
99
117
  },
100
118
  "promptCache": {
101
119
  "$ref": "#/$defs/ModelPromptCache",
102
- "description": "Best-effort prompt cache lifetime in seconds for each retention tier. A missing tier means the lifetime is unknown, so Pi does not warm it."
120
+ "description": "Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime."
103
121
  },
104
122
  "contextWindow": {
105
123
  "type": "number",
106
- "exclusiveMinimum": 0
124
+ "exclusiveMinimum": 0,
125
+ "default": 128000,
126
+ "description": "Context window in tokens."
107
127
  },
108
128
  "maxTokens": {
109
129
  "type": "number",
110
- "exclusiveMinimum": 0
130
+ "exclusiveMinimum": 0,
131
+ "default": 16384,
132
+ "description": "Maximum output tokens."
111
133
  },
112
134
  "samplingParams": {
113
135
  "type": "object",
114
136
  "patternProperties": {
115
137
  "^.*$": {}
116
- }
138
+ },
139
+ "description": "Fields merged into every request body. Applies only to OpenAI-compatible APIs."
117
140
  },
118
141
  "samplingParamsByThinkingLevel": {
119
142
  "type": "object",
@@ -160,7 +183,8 @@
160
183
  "^.*$": {}
161
184
  }
162
185
  }
163
- }
186
+ },
187
+ "description": "samplingParams per thinking level, merged over samplingParams."
164
188
  },
165
189
  "headers": {
166
190
  "type": "object",
@@ -168,7 +192,8 @@
168
192
  "^.*$": {
169
193
  "type": "string"
170
194
  }
171
- }
195
+ },
196
+ "description": "Request headers. Values resolve like apiKey."
172
197
  },
173
198
  "compat": {
174
199
  "$ref": "#/$defs/ProviderCompat",
@@ -185,13 +210,16 @@
185
210
  "properties": {
186
211
  "name": {
187
212
  "type": "string",
188
- "minLength": 1
213
+ "minLength": 1,
214
+ "description": "Display name, also matched by --model patterns."
189
215
  },
190
216
  "reasoning": {
191
- "type": "boolean"
217
+ "type": "boolean",
218
+ "description": "Whether the model supports thinking."
192
219
  },
193
220
  "thinkingLevelMap": {
194
- "$ref": "#/$defs/ThinkingLevelMap"
221
+ "$ref": "#/$defs/ThinkingLevelMap",
222
+ "description": "Provider value sent for each thinking level. null marks a level unsupported. Levels the model does not map use the provider's default value through high; xhigh and max are unsupported."
195
223
  },
196
224
  "input": {
197
225
  "type": "array",
@@ -265,21 +293,24 @@
265
293
  },
266
294
  "promptCache": {
267
295
  "$ref": "#/$defs/ModelPromptCache",
268
- "description": "Best-effort prompt cache lifetime in seconds for each retention tier. A missing tier means the lifetime is unknown, so Pi does not warm it."
296
+ "description": "Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime."
269
297
  },
270
298
  "contextWindow": {
271
299
  "type": "number",
272
- "exclusiveMinimum": 0
300
+ "exclusiveMinimum": 0,
301
+ "description": "Context window in tokens."
273
302
  },
274
303
  "maxTokens": {
275
304
  "type": "number",
276
- "exclusiveMinimum": 0
305
+ "exclusiveMinimum": 0,
306
+ "description": "Maximum output tokens."
277
307
  },
278
308
  "samplingParams": {
279
309
  "type": "object",
280
310
  "patternProperties": {
281
311
  "^.*$": {}
282
- }
312
+ },
313
+ "description": "Fields merged into every request body. Applies only to OpenAI-compatible APIs."
283
314
  },
284
315
  "samplingParamsByThinkingLevel": {
285
316
  "type": "object",
@@ -326,7 +357,8 @@
326
357
  "^.*$": {}
327
358
  }
328
359
  }
329
- }
360
+ },
361
+ "description": "samplingParams per thinking level, merged over samplingParams."
330
362
  },
331
363
  "headers": {
332
364
  "type": "object",
@@ -334,7 +366,8 @@
334
366
  "^.*$": {
335
367
  "type": "string"
336
368
  }
337
- }
369
+ },
370
+ "description": "Request headers. Values resolve like apiKey."
338
371
  },
339
372
  "compat": {
340
373
  "$ref": "#/$defs/ProviderCompat",