@bastani/atomic 0.9.38 → 0.9.39-alpha.1

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 (108) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/builtin/intercom/CHANGELOG.md +6 -0
  3. package/dist/builtin/intercom/index.bundle.mjs +216 -2
  4. package/dist/builtin/intercom/package.json +1 -1
  5. package/dist/builtin/mcp/package.json +1 -1
  6. package/dist/builtin/subagents/CHANGELOG.md +6 -0
  7. package/dist/builtin/subagents/package.json +1 -1
  8. package/dist/builtin/subagents/src/extension/index.bundle.mjs +16 -1
  9. package/dist/builtin/web-access/package.json +1 -1
  10. package/dist/builtin/workflows/CHANGELOG.md +14 -0
  11. package/dist/builtin/workflows/package.json +1 -1
  12. package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +2 -15
  13. package/dist/builtin/workflows/src/extension/index.bundle.mjs +527 -64
  14. package/dist/builtin/workflows/src/index.js +301 -27
  15. package/dist/cli.js +13 -6
  16. package/dist/cli.js.map +1 -1
  17. package/dist/config.d.ts +1 -0
  18. package/dist/config.d.ts.map +1 -1
  19. package/dist/config.js +1 -0
  20. package/dist/config.js.map +1 -1
  21. package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
  22. package/dist/core/agent-session-extension-bindings.js +4 -1
  23. package/dist/core/agent-session-extension-bindings.js.map +1 -1
  24. package/dist/core/agent-session-methods.d.ts +1 -0
  25. package/dist/core/agent-session-methods.d.ts.map +1 -1
  26. package/dist/core/agent-session-methods.js.map +1 -1
  27. package/dist/core/agent-session-types.d.ts +1 -0
  28. package/dist/core/agent-session-types.d.ts.map +1 -1
  29. package/dist/core/agent-session-types.js.map +1 -1
  30. package/dist/core/agent-session.d.ts +1 -0
  31. package/dist/core/agent-session.d.ts.map +1 -1
  32. package/dist/core/agent-session.js +2 -0
  33. package/dist/core/agent-session.js.map +1 -1
  34. package/dist/core/export-html/index.d.ts.map +1 -1
  35. package/dist/core/export-html/index.js +13 -10
  36. package/dist/core/export-html/index.js.map +1 -1
  37. package/dist/core/extensions/api-types.d.ts +2 -0
  38. package/dist/core/extensions/api-types.d.ts.map +1 -1
  39. package/dist/core/extensions/api-types.js.map +1 -1
  40. package/dist/core/extensions/context-types.d.ts +5 -0
  41. package/dist/core/extensions/context-types.d.ts.map +1 -1
  42. package/dist/core/extensions/context-types.js.map +1 -1
  43. package/dist/core/extensions/loader-api.d.ts.map +1 -1
  44. package/dist/core/extensions/loader-api.js +4 -0
  45. package/dist/core/extensions/loader-api.js.map +1 -1
  46. package/dist/core/extensions/runner-context.d.ts.map +1 -1
  47. package/dist/core/extensions/runner-context.js +1 -0
  48. package/dist/core/extensions/runner-context.js.map +1 -1
  49. package/dist/core/extensions/runner.d.ts +1 -0
  50. package/dist/core/extensions/runner.d.ts.map +1 -1
  51. package/dist/core/extensions/runner.js +3 -0
  52. package/dist/core/extensions/runner.js.map +1 -1
  53. package/dist/core/extensions/runtime-types.d.ts +1 -0
  54. package/dist/core/extensions/runtime-types.d.ts.map +1 -1
  55. package/dist/core/extensions/runtime-types.js.map +1 -1
  56. package/dist/core/sdk-types.d.ts +7 -1
  57. package/dist/core/sdk-types.d.ts.map +1 -1
  58. package/dist/core/sdk-types.js.map +1 -1
  59. package/dist/core/sdk.js +1 -0
  60. package/dist/core/sdk.js.map +1 -1
  61. package/dist/core/session-manager-core.d.ts +1 -0
  62. package/dist/core/session-manager-core.d.ts.map +1 -1
  63. package/dist/core/session-manager-core.js +12 -0
  64. package/dist/core/session-manager-core.js.map +1 -1
  65. package/dist/core/storage/provider.d.ts +14 -0
  66. package/dist/core/storage/provider.d.ts.map +1 -1
  67. package/dist/core/storage/provider.js.map +1 -1
  68. package/dist/core/storage/session/legacy-session-store.d.ts +4 -1
  69. package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
  70. package/dist/core/storage/session/legacy-session-store.js +42 -2
  71. package/dist/core/storage/session/legacy-session-store.js.map +1 -1
  72. package/dist/core/storage/session/legacy-session-summary.d.ts +8 -0
  73. package/dist/core/storage/session/legacy-session-summary.d.ts.map +1 -1
  74. package/dist/core/storage/session/legacy-session-summary.js +42 -2
  75. package/dist/core/storage/session/legacy-session-summary.js.map +1 -1
  76. package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
  77. package/dist/modes/interactive-engine/create-isolated-runtime.js +2 -0
  78. package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
  79. package/dist/modes/interactive-engine/engine-heap.d.ts +24 -0
  80. package/dist/modes/interactive-engine/engine-heap.d.ts.map +1 -0
  81. package/dist/modes/interactive-engine/engine-heap.js +88 -0
  82. package/dist/modes/interactive-engine/engine-heap.js.map +1 -0
  83. package/dist/modes/rpc/rpc-client-api.d.ts +1 -0
  84. package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
  85. package/dist/modes/rpc/rpc-client-api.js +3 -0
  86. package/dist/modes/rpc/rpc-client-api.js.map +1 -1
  87. package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
  88. package/dist/modes/rpc/rpc-command-handler.js +7 -0
  89. package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
  90. package/dist/modes/rpc/rpc-types.d.ts +9 -0
  91. package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
  92. package/dist/modes/rpc/rpc-types.js.map +1 -1
  93. package/dist/utils/heap-relaunch.d.ts +14 -0
  94. package/dist/utils/heap-relaunch.d.ts.map +1 -0
  95. package/dist/utils/heap-relaunch.js +59 -0
  96. package/dist/utils/heap-relaunch.js.map +1 -0
  97. package/docs/environment-variables.md +2 -1
  98. package/docs/intercom/reference.md +1 -1
  99. package/docs/rpc/protocol.md +23 -0
  100. package/docs/sdk/web-server.md +1 -1
  101. package/docs/sdk.md +10 -1
  102. package/docs/session-format.md +1 -0
  103. package/docs/sessions.md +2 -0
  104. package/docs/settings.md +1 -1
  105. package/docs/workflows/api-reference.md +1 -1
  106. package/docs/workflows/operations.md +5 -1
  107. package/npm-shrinkwrap.json +32 -32
  108. package/package.json +3 -3
@@ -170,6 +170,29 @@ If an extension cancelled:
170
170
  {"type": "response", "command": "new_session", "success": true, "data": {"cancelled": true}}
171
171
  ```
172
172
 
173
+ #### delete_session
174
+
175
+ Delete a stored session and its entries from the active session store (SQLite or JSONL). Use `list_sessions` to find IDs.
176
+
177
+ ```json
178
+ {"id": "req-2", "type": "delete_session", "sessionId": "019fdf86-cf98-7327-8a73-21365028f6ae"}
179
+ ```
180
+
181
+ `sessionId` names the session to delete. `id` is the request ID that every command carries and is echoed in the response. When `sessionId` is omitted, `id` is also used as the session ID, so `{"type": "delete_session", "id": "019fdf86-cf98-7327-8a73-21365028f6ae"}` deletes that session and the response echoes the same `id`. When both are present, `sessionId` wins. Omitting both returns an error response (`delete_session requires sessionId`) and changes nothing.
182
+
183
+ Response:
184
+ ```json
185
+ {"id": "req-2", "type": "response", "command": "delete_session", "success": true}
186
+ ```
187
+
188
+ The session currently open in this process cannot be deleted. The command returns an error response and the session stays intact; start or switch to another session first. Deleting an ID that is not in the store succeeds without changing anything.
189
+
190
+ ```json
191
+ {"id": "req-2", "type": "response", "command": "delete_session", "success": false, "error": "Cannot delete the session that is currently open: 019fdf86-cf98-7327-8a73-21365028f6ae"}
192
+ ```
193
+
194
+ TypeScript `RpcClient` method: `deleteSession(sessionId)`, which rejects on an error response.
195
+
173
196
  ### State
174
197
 
175
198
  #### get_state
@@ -304,7 +304,7 @@ By default, `run()` persists workflow state in the local SQLite journal at `~/.a
304
304
 
305
305
  Use `journal: { path: "/var/lib/my-service/workflows.sqlite" }` to select a file for a run, or `journal: { memory: true }` for process-local state that cannot survive a restart. Supply a caller-owned async SQLite facade as `{ database, prefix? }`; Atomic does not close it. You can also supply a `RunJournal` instance or `{ adapter, options?, secrets?, prefix? }` for a user-installed driver module.
306
306
 
307
- `RunOpts.journal` overrides a non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, then `workflows.journal`, then shared top-level `storage`, then the default file. Nearer settings replace whole selections. Relative settings paths resolve against Atomic home. Configuration or storage failures stop the run instead of switching to memory. See [Choosing the durable backend](/workflows/api-reference#choosing-the-durable-backend).
307
+ `RunOpts.journal` (or `createAgentSession({ journal })` for sessions) overrides a non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, then `workflows.journal`, then shared top-level `storage`, then the default file. Nearer settings replace whole selections. Relative settings paths resolve against Atomic home. Configuration or storage failures stop the run instead of switching to memory. See [Choosing the durable backend](/workflows/api-reference#choosing-the-durable-backend).
308
308
 
309
309
  ## Secure the endpoint
310
310
 
package/docs/sdk.md CHANGED
@@ -284,7 +284,16 @@ Use `{ database, prefix? }` for an async `SqliteDatabase` facade; Atomic never c
284
284
 
285
285
  Custom journals implement the full `RunJournal` interface, including `deleteOwnedRun(lease, expectSeq?)` for atomic lease-fenced deletion with an optional sequence check. A stale lease rejects with `StaleLeaseError` without deleting the successor's data. Open a facade-backed journal with `await SqlRunJournal.open(database, { prefix })`, or use `await openSqlRunJournal(pathOrDatabase?)` for the node adapter. Validate custom journals with `registerRunJournalConformance`; see [Choosing the durable backend](/workflows/api-reference#choosing-the-durable-backend).
286
286
 
287
- Without a per-run option, a non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH` overrides `workflows.journal`, which overrides shared top-level `storage`. Nearer-scope settings replace whole selections. Relative settings paths resolve against Atomic home. The default journal is `~/.atomic/workflows/journal.sqlite`; an empty shared selection uses `~/.atomic/storage.sqlite`. Keep the original journal and working directory to resume saved runs. Invalid configuration and storage failures reject rather than switching to memory. See [Workflow storage settings](/settings#workflow-storage).
287
+ To choose the journal for the model-facing `workflow` tool of one SDK session, pass the same selection to `createAgentSession`. Each session in a process can use its own journal without setting `ATOMIC_WORKFLOW_JOURNAL_PATH`:
288
+
289
+ ```typescript
290
+ const first = await createAgentSession({ journal: { path: "./first-runs.sqlite" } });
291
+ const second = await createAgentSession({ journal: { memory: true } });
292
+ ```
293
+
294
+ Without a `journal` option, the session's own `workflows.journal` setting applies, including settings passed through `SettingsManager.inMemory({ workflows: { journal: { path: "./runs.sqlite" } } })`. A `memory: true` journal selected this way belongs to that session alone. Disposing a session closes the journals Atomic opened for it once no other session is using them, so runs kept in a memory journal end with the session. Atomic never closes a database or journal you supply.
295
+
296
+ Without a per-run or per-session option, a non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH` overrides `workflows.journal`, which overrides shared top-level `storage`. Nearer-scope settings replace whole selections. Relative settings paths resolve against Atomic home. The default journal is `~/.atomic/workflows/journal.sqlite`; an empty shared selection uses `~/.atomic/storage.sqlite`. Keep the original journal and working directory to resume saved runs. Invalid configuration and storage failures reject rather than switching to memory. See [Workflow storage settings](/settings#workflow-storage).
288
297
 
289
298
  ### Workflow run control
290
299
 
@@ -459,6 +459,7 @@ for (const stage of stages.filter((session) => session.internal)) {
459
459
  - `setSessionFile(path)` - Switch to a JSONL file directly. For ID-based loading, use `SessionManager.open(store, sessionId)` to obtain a new manager.
460
460
  - `createBranchedSession(leafId)` - Extract a branch into a new session in the same store
461
461
  - `forkTo(cwd, targetStoreOrDir?, options?)` - Copy the conversation into a new session at the destination
462
+ - `deleteSession(sessionId)` - Delete another session and its entries from the active store. Rejects for the session this manager has open; deleting an ID that is not in the store does nothing. `SessionStore.delete(sessionId)` is the unguarded store-level operation behind it.
462
463
 
463
464
  ### Instance Methods - Appending (all return a promise of the entry ID)
464
465
  - `appendMessage(message)` - Add message
package/docs/sessions.md CHANGED
@@ -89,6 +89,8 @@ For the JSONL file format and SessionManager API, see [Session Format](/session-
89
89
 
90
90
  Sessions written in formats 1, 2, and 3, and early 0.9.38 alpha sessions whose header uses `timestamp`, appear in the picker and upgrade automatically to format 4. In the default store this happens when you first open one. In an explicit JSONL store it happens when you open them, including with `--continue`, `--session`, or `--fork`; browsing the picker does not change session files, and opening an older session rewrites only that file. No flag or confirmation is needed.
91
91
 
92
+ If the default store's earlier sessions folder holds several copies of one session, such as conflict copies left by a file-sync tool, the picker lists the copy with the newest message and opening the session imports that copy. Other copies stay on disk unchanged.
93
+
92
94
  Resuming restores saved verbatim compaction without another planning request. Older sessions with retired logical-deletion compaction can bring previously hidden content back into context.
93
95
 
94
96
  When you resume at startup with the default tool selection, Atomic restores the tools recorded in the session, including tools activated during the conversation. `--tools +name,-name` modifies that restored selection. Explicit `--tools name,...`, `--no-tools`, and `--no-builtin-tools` keep their requested tool restrictions, and excluded tools stay excluded. Sessions with no recorded tool selection use the current defaults.
package/docs/settings.md CHANGED
@@ -573,7 +573,7 @@ Workflow runs use a SQLite journal, by default the local file `~/.atomic/workflo
573
573
  }
574
574
  ```
575
575
 
576
- Relative settings paths resolve against the Atomic home directory, normally `~/.atomic`, not the project directory. Precedence is SDK `RunOpts.journal`, non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, `workflows.journal`, shared top-level `storage`, then the default journal file. An empty environment variable is ignored. A present empty journal block selects the journal default rather than inheriting shared storage.
576
+ Relative settings paths resolve against the Atomic home directory, normally `~/.atomic`, not the project directory. Precedence is SDK `RunOpts.journal` (or `createAgentSession({ journal })` for a session's `workflow` tool), non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, `workflows.journal`, shared top-level `storage`, then the default journal file. An empty environment variable is ignored. SDK sessions read `workflows.journal` from the settings they were given, so `SettingsManager.inMemory(...)` selects a journal per session. A present empty journal block selects the journal default rather than inheriting shared storage.
577
577
 
578
578
  To keep workflow records only in memory, set `"journal": { "memory": true }`. Do not combine `memory: true` with a non-empty `path`. Memory must be selected explicitly and cannot recover runs after the process exits; an environment path still takes precedence over this setting.
579
579
 
@@ -1427,7 +1427,7 @@ interface RunJournal {
1427
1427
 
1428
1428
  Custom journals need only the async contract; no synchronous journal methods are required. Use `registerRunJournalConformance(runner, name, open, observeRead)` to check a fresh journal per case. Supply a read observer that reports actual page sizes and entries loaded or copied, with `restore()` and `reset()` methods, so the suite can verify lazy reads without consuming the whole history.
1429
1429
 
1430
- Precedence is `RunOpts.journal`, non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, `workflows.journal`, shared top-level `storage`, then the default `~/.atomic/workflows/journal.sqlite`. Nearer settings selections replace whole objects, never merge options or secrets. Relative settings paths resolve against Atomic home. Invalid selected values raise `StorageConfigError`; storage failures reject the call without selecting memory. Keep the same journal and working directory when resuming stored runs.
1430
+ Precedence is `RunOpts.journal` (`createAgentSession({ journal })` for a session's `workflow` tool), non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, `workflows.journal`, shared top-level `storage`, then the default `~/.atomic/workflows/journal.sqlite`. Nearer settings selections replace whole objects, never merge options or secrets. Relative settings paths resolve against Atomic home. Invalid selected values raise `StorageConfigError`; storage failures reject the call without selecting memory. Keep the same journal and working directory when resuming stored runs.
1431
1431
 
1432
1432
  ```ts
1433
1433
  import { run } from "@bastani/atomic/workflows";
@@ -254,6 +254,7 @@ workflow({ action: "status", statusFilter: "running" }) // filter the ru
254
254
  workflow({ action: "status", statusFilter: "awaiting_input" }) // runs with a pending human prompt
255
255
  workflow({ action: "status", format: "json" }) // structured listing for programmatic use
256
256
  workflow({ action: "status", runId: "<full-run-uuid>" }) // full detail for one run
257
+ workflow({ action: "status", runId: "<full-run-uuid>", summary: true }) // status, outputs and blockers only
257
258
 
258
259
  workflow({ action: "stages", runId: "<full-run-uuid>", statusFilter: "all" })
259
260
  workflow({ action: "stage", runId: "<full-run-uuid>", stageId: "review" })
@@ -290,6 +291,7 @@ Control behavior:
290
291
  - `runId` accepts the full UUID or a unique 8-character hexadecimal prefix for lifecycle and inspection actions, including `status`. Status lists and run pickers show top-level user-launched workflows; nested child runs remain part of the expanded parent graph.
291
292
  - `status`, `stages`, `stage`, and `transcript` with a full `runId` use the session store, then read the journal if the run is absent locally. Inspection never claims ownership or executes workflow code. A running root with an expired lease appears as `crashed`; a live foreign lease remains protected.
292
293
  - `status` without `runId` lists every top-level run in the session with a concise per-run summary: the full run id, workflow name, run status, started/ended timing with pause-adjusted elapsed time, currently active stages, and awaiting-input details (count plus the stage, prompt id, kind, and message for each pending human prompt). In-flight runs are listed first. The summaries carry the exact identifiers that `answer`, `pause`, `resume`, and `quit` accept, so an orchestrating agent can list runs and act on them directly.
294
+ - `status` with a `runId` includes the run's final outputs as `detail.result`, also when another session started the run and Atomic reads it back from the journal. The detail lists every stage and can be large for a run with many stages. Add `summary: true` for a compact `summary` object instead of `detail`: `runId`, `name`, `status`, timing, `result`, `error`, `resumable`, `resumeGuidance`, and `blockers`. Each blocker names a failed or blocked stage or `ctx.tool` node, or a stage awaiting input (with its `promptId` and prompt text), and is empty for a run that completed, was cancelled, or was killed. The summary omits the stage and tool history; `summary` has no effect on the `status` listing without a `runId`.
293
295
  - `statusFilter` narrows the `status` run listing: run statuses (`pending`, `running`, `paused`, `blocked`, `completed`, `failed`, `skipped`, `cancelled`, `killed`) match runs directly, `awaiting_input` selects runs with at least one stage awaiting input or pending human prompt, and `all` (the default) includes everything.
294
296
  - `format: "json"` on data-bearing inspection actions (`status`, `stages`, `stage`, `transcript`) returns the full structured result; the default text output for `status` is the concise per-run summary list.
295
297
  - `status` / `status <runId>` show terminal `ctx.exit(...)` statuses (`completed`, `skipped`, `cancelled`, or `blocked`) and the optional exit reason when one was supplied.
@@ -356,6 +358,8 @@ These are distinct operations. *Resuming workflow execution* (`/workflow resume`
356
358
 
357
359
  Any eligible terminal agent stage with a valid retained session opens as an interactive post-mortem chat through the explicit user-driven TUI path: completed-workflow inspection, `/workflow attach`, or `/workflow connect` followed by stage selection, including restored/replayed durable snapshots after a restart. Explicit `/workflow attach <root-run> <nested-stage>` targets are resolved through the expanded graph and routed to the child run that owns the stage while the overlay remains rooted on the requested graph; the resolved owner is preserved when sibling child workflows reuse the same local stage ID.
358
360
 
361
+ When a run ends, whether it completed, failed, or was cancelled, Atomic disposes the live session of each completed stage whose conversation is saved, so a long-lived session does not hold every finished stage in memory. Resuming a failed run replays its completed stages from the saved run and does not need their live sessions. A paused or still-running run keeps its sessions. Attaching to such a stage or messaging it reopens the saved conversation first, which takes a moment, without rerunning the workflow. While the session that ran the workflow is open, the released stage also stays in the Intercom session list under its previous name as `closed · reply: post-mortem only`: an ask to it reopens the saved conversation, runs one turn with the question, and returns that turn's final answer (or a failure if the conversation cannot be reopened), and a plain send is delivered to the session that ran the workflow. Once that session ends or is replaced, the Intercom entry is gone; reopen the stage with `/workflow attach`. A stage with a mounted chat (visible or hidden), queued or in-flight messages, an active turn, compaction or retry, or no saved transcript keeps its live session, and it is not released again when that need ends; it stays until the session that ran the workflow is replaced or shut down. A stage you reopen by attaching, messaging, or an Intercom ask also stays in memory until then, so memory grows by one session for each released stage you actually reopen. The saved transcript, result, and run record are never removed.
362
+
359
363
  Intercom and explicit `/workflow attach` own stage communication. The workflow tool has no free-form message action; start a new workflow if tracked work remains after a terminal root.
360
364
 
361
365
  When a nested stage is reopened after a restart or from another checkout through the explicit TUI path, its session cwd comes from the durable root workflow (resolved workflow cwd first, then original invocation cwd) while stage-control ownership remains with the actual child run. Follow-up turns are appended in place to the stage's retained session (no separate fork), so the agent may still invoke its ordinary tools and cause side effects; only the workflow DAG, run/stage status, results, timings, checkpoints, and topology are immutable. Post-mortem chat does not resume or modify workflow execution state.
@@ -653,7 +657,7 @@ That history does not authorize any live release action.
653
657
 
654
658
  ### Configuring journal storage
655
659
 
656
- Set `workflows.journal.path` in `settings.json` or set `ATOMIC_WORKFLOW_JOURNAL_PATH` before starting Atomic to select a local SQLite file. The non-empty environment value overrides settings; SDK `RunOpts.journal` overrides both. Relative settings paths resolve against the Atomic home directory, normally `~/.atomic`. With no override, Atomic uses `~/.atomic/workflows/journal.sqlite`. To use a remote database, select an [adapter module](/storage#selecting-an-adapter) in `workflows.journal` or shared `storage`.
660
+ Set `workflows.journal.path` in `settings.json` or set `ATOMIC_WORKFLOW_JOURNAL_PATH` before starting Atomic to select a local SQLite file. The non-empty environment value overrides settings; SDK `RunOpts.journal` and `createAgentSession({ journal })` override both. Relative settings paths resolve against the Atomic home directory, normally `~/.atomic`. With no override, Atomic uses `~/.atomic/workflows/journal.sqlite`. To use a remote database, select an [adapter module](/storage#selecting-an-adapter) in `workflows.journal` or shared `storage`.
657
661
 
658
662
  For process-local storage, use `workflows.journal.memory: true` without a non-empty settings path, or pass `journal: { memory: true }` to SDK `run()`. Memory is never selected after a storage failure. Preserve a SQLite journal and its sidecar files; use the same journal and working directory to resume an existing run. See [Workflow storage settings](/settings#workflow-storage).
659
663
 
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38",
3
+ "version": "0.9.39-alpha.1",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@bastani/atomic",
9
- "version": "0.9.38",
9
+ "version": "0.9.39-alpha.1",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@bastani/atomic-natives": "0.9.38",
13
- "@bastani/pi-ai": "0.9.38",
12
+ "@bastani/atomic-natives": "0.9.39-alpha.1",
13
+ "@bastani/pi-ai": "0.9.39-alpha.1",
14
14
  "@earendil-works/pi-agent-core": "1.3.0",
15
15
  "@earendil-works/pi-codemode": "1.3.0",
16
16
  "@earendil-works/pi-tui": "1.3.0",
@@ -427,18 +427,18 @@
427
427
  }
428
428
  },
429
429
  "node_modules/@bastani/atomic-natives": {
430
- "version": "0.9.38",
431
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.38.tgz",
430
+ "version": "0.9.39-alpha.1",
431
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.39-alpha.1.tgz",
432
432
  "license": "MIT",
433
433
  "optionalDependencies": {
434
- "@bastani/atomic-natives-darwin-arm64": "0.9.38",
435
- "@bastani/atomic-natives-darwin-x64": "0.9.38",
436
- "@bastani/atomic-natives-linux-arm64-gnu": "0.9.38",
437
- "@bastani/atomic-natives-linux-arm64-musl": "0.9.38",
438
- "@bastani/atomic-natives-linux-x64-gnu": "0.9.38",
439
- "@bastani/atomic-natives-linux-x64-musl": "0.9.38",
440
- "@bastani/atomic-natives-win32-arm64-msvc": "0.9.38",
441
- "@bastani/atomic-natives-win32-x64-msvc": "0.9.38"
434
+ "@bastani/atomic-natives-darwin-arm64": "0.9.39-alpha.1",
435
+ "@bastani/atomic-natives-darwin-x64": "0.9.39-alpha.1",
436
+ "@bastani/atomic-natives-linux-arm64-gnu": "0.9.39-alpha.1",
437
+ "@bastani/atomic-natives-linux-arm64-musl": "0.9.39-alpha.1",
438
+ "@bastani/atomic-natives-linux-x64-gnu": "0.9.39-alpha.1",
439
+ "@bastani/atomic-natives-linux-x64-musl": "0.9.39-alpha.1",
440
+ "@bastani/atomic-natives-win32-arm64-msvc": "0.9.39-alpha.1",
441
+ "@bastani/atomic-natives-win32-x64-msvc": "0.9.39-alpha.1"
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",
450
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.38.tgz",
449
+ "version": "0.9.39-alpha.1",
450
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.39-alpha.1.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",
462
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.38.tgz",
461
+ "version": "0.9.39-alpha.1",
462
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.39-alpha.1.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",
474
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.38.tgz",
473
+ "version": "0.9.39-alpha.1",
474
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.39-alpha.1.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",
489
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.38.tgz",
488
+ "version": "0.9.39-alpha.1",
489
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.39-alpha.1.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",
504
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.38.tgz",
503
+ "version": "0.9.39-alpha.1",
504
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.39-alpha.1.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",
519
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.38.tgz",
518
+ "version": "0.9.39-alpha.1",
519
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.39-alpha.1.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",
534
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.38.tgz",
533
+ "version": "0.9.39-alpha.1",
534
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.39-alpha.1.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",
546
- "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.38.tgz",
545
+ "version": "0.9.39-alpha.1",
546
+ "resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.39-alpha.1.tgz",
547
547
  "license": "MIT",
548
548
  "os": [
549
549
  "win32"
@@ -554,8 +554,8 @@
554
554
  "optional": true
555
555
  },
556
556
  "node_modules/@bastani/pi-ai": {
557
- "version": "0.9.38",
558
- "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.38.tgz",
557
+ "version": "0.9.39-alpha.1",
558
+ "resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.39-alpha.1.tgz",
559
559
  "license": "MIT",
560
560
  "dependencies": {
561
561
  "@anthropic-ai/sdk": "0.129.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bastani/atomic",
3
- "version": "0.9.38",
3
+ "version": "0.9.39-alpha.1",
4
4
  "description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "atomicConfig": {
@@ -89,8 +89,8 @@
89
89
  "prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
90
90
  },
91
91
  "dependencies": {
92
- "@bastani/atomic-natives": "0.9.38",
93
- "@bastani/pi-ai": "0.9.38",
92
+ "@bastani/atomic-natives": "0.9.39-alpha.1",
93
+ "@bastani/pi-ai": "0.9.39-alpha.1",
94
94
  "@earendil-works/pi-agent-core": "1.3.0",
95
95
  "@earendil-works/pi-codemode": "1.3.0",
96
96
  "@earendil-works/pi-tui": "1.3.0",