@bastani/atomic 0.9.89-alpha.1 → 0.9.89-alpha.2
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.
- package/CHANGELOG.md +45 -0
- package/dist/builtin/intercom/CHANGELOG.md +8 -0
- package/dist/builtin/intercom/broker/broker-instance.ts +15 -1
- package/dist/builtin/intercom/broker/broker.ts +25 -8
- package/dist/builtin/intercom/broker/client.ts +29 -14
- package/dist/builtin/intercom/broker/multinode-router.ts +193 -52
- package/dist/builtin/intercom/broker/multinode-state-store.ts +6 -2
- package/dist/builtin/intercom/broker/restoring-recipients.ts +5 -0
- package/dist/builtin/intercom/broker/sql-outbox-store.ts +3 -2
- package/dist/builtin/intercom/index.bundle.mjs +19 -12
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/types.ts +6 -2
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +6 -0
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +17 -6
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +12 -0
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +310 -344
- package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +99 -17
- package/dist/builtin/workflows/src/index.js +99 -17
- package/dist/builtin/workflows/src/local-worker-entry.mjs +99 -17
- package/dist/cli/storage-command.js +8 -0
- package/dist/cli/storage-command.js.map +1 -1
- package/dist/core/auth-storage-backends.d.ts.map +1 -1
- package/dist/core/auth-storage-backends.js +1 -0
- package/dist/core/auth-storage-backends.js.map +1 -1
- package/dist/core/keybindings.d.ts +8 -0
- package/dist/core/keybindings.d.ts.map +1 -1
- package/dist/core/keybindings.js +4 -0
- package/dist/core/keybindings.js.map +1 -1
- package/dist/core/process-start-token.d.ts.map +1 -1
- package/dist/core/process-start-token.js +8 -1
- package/dist/core/process-start-token.js.map +1 -1
- package/dist/core/resume/blueprint/build-lock.d.ts.map +1 -1
- package/dist/core/resume/blueprint/build-lock.js +2 -1
- package/dist/core/resume/blueprint/build-lock.js.map +1 -1
- package/dist/core/storage/errors.d.ts +4 -2
- package/dist/core/storage/errors.d.ts.map +1 -1
- package/dist/core/storage/errors.js +6 -1
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/tasks/completion.d.ts +5 -0
- package/dist/core/tasks/completion.d.ts.map +1 -1
- package/dist/core/tasks/completion.js +13 -0
- package/dist/core/tasks/completion.js.map +1 -1
- package/dist/core/tools/shell-task-render.d.ts +1 -2
- package/dist/core/tools/shell-task-render.d.ts.map +1 -1
- package/dist/core/tools/shell-task-render.js +3 -7
- package/dist/core/tools/shell-task-render.js.map +1 -1
- package/dist/core/tools/windows-directory-security.d.ts.map +1 -1
- package/dist/core/tools/windows-directory-security.js +3 -11
- package/dist/core/tools/windows-directory-security.js.map +1 -1
- package/dist/core/worktree-snapshot/capture.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/capture.js +25 -1
- package/dist/core/worktree-snapshot/capture.js.map +1 -1
- package/dist/core/worktree-snapshot/restore.d.ts.map +1 -1
- package/dist/core/worktree-snapshot/restore.js +38 -9
- package/dist/core/worktree-snapshot/restore.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/modes/interactive/components/agent-panel.d.ts +5 -0
- package/dist/modes/interactive/components/agent-panel.d.ts.map +1 -1
- package/dist/modes/interactive/components/agent-panel.js +13 -0
- package/dist/modes/interactive/components/agent-panel.js.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-transcript.js +5 -2
- package/dist/modes/interactive/components/chat-transcript.js.map +1 -1
- package/dist/modes/interactive/components/custom-message.js +1 -1
- package/dist/modes/interactive/components/custom-message.js.map +1 -1
- package/dist/modes/interactive/components/heartbeat-block.d.ts +34 -0
- package/dist/modes/interactive/components/heartbeat-block.d.ts.map +1 -0
- package/dist/modes/interactive/components/heartbeat-block.js +50 -0
- package/dist/modes/interactive/components/heartbeat-block.js.map +1 -0
- package/dist/modes/interactive/components/input-label.d.ts.map +1 -1
- package/dist/modes/interactive/components/input-label.js +8 -3
- package/dist/modes/interactive/components/input-label.js.map +1 -1
- package/dist/modes/interactive/components/main-composer-keys.d.ts.map +1 -1
- package/dist/modes/interactive/components/main-composer-keys.js +3 -7
- package/dist/modes/interactive/components/main-composer-keys.js.map +1 -1
- package/dist/modes/interactive/components/mermaid.d.ts.map +1 -1
- package/dist/modes/interactive/components/mermaid.js +13 -7
- package/dist/modes/interactive/components/mermaid.js.map +1 -1
- package/dist/modes/interactive/components/notice-line.d.ts +10 -2
- package/dist/modes/interactive/components/notice-line.d.ts.map +1 -1
- package/dist/modes/interactive/components/notice-line.js +13 -3
- package/dist/modes/interactive/components/notice-line.js.map +1 -1
- package/dist/modes/interactive/components/provider-brand.d.ts.map +1 -1
- package/dist/modes/interactive/components/provider-brand.js +3 -0
- package/dist/modes/interactive/components/provider-brand.js.map +1 -1
- package/dist/modes/interactive/components/task-heartbeat-message.d.ts +9 -4
- package/dist/modes/interactive/components/task-heartbeat-message.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-heartbeat-message.js +33 -27
- package/dist/modes/interactive/components/task-heartbeat-message.js.map +1 -1
- package/dist/modes/interactive/components/task-inspector.d.ts +16 -0
- package/dist/modes/interactive/components/task-inspector.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-inspector.js +95 -4
- package/dist/modes/interactive/components/task-inspector.js.map +1 -1
- package/dist/modes/interactive/components/task-list.d.ts +5 -1
- package/dist/modes/interactive/components/task-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-list.js +20 -3
- package/dist/modes/interactive/components/task-list.js.map +1 -1
- package/dist/modes/interactive/components/task-transcript-page.d.ts +1 -1
- package/dist/modes/interactive/components/task-transcript-page.d.ts.map +1 -1
- package/dist/modes/interactive/components/task-transcript-page.js +10 -7
- package/dist/modes/interactive/components/task-transcript-page.js.map +1 -1
- package/dist/modes/interactive/interactive-startup.js +1 -2
- package/dist/modes/interactive/interactive-startup.js.map +1 -1
- package/dist/modes/interactive/theme/color-utils.d.ts +29 -1
- package/dist/modes/interactive/theme/color-utils.d.ts.map +1 -1
- package/dist/modes/interactive/theme/color-utils.js +81 -7
- package/dist/modes/interactive/theme/color-utils.js.map +1 -1
- package/dist/modes/interactive/theme/global-theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/global-theme.js +3 -0
- package/dist/modes/interactive/theme/global-theme.js.map +1 -1
- package/dist/modes/interactive/theme/theme-class.d.ts +22 -2
- package/dist/modes/interactive/theme/theme-class.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme-class.js +64 -18
- package/dist/modes/interactive/theme/theme-class.js.map +1 -1
- package/dist/modes/interactive/theme/theme.d.ts +1 -0
- package/dist/modes/interactive/theme/theme.d.ts.map +1 -1
- package/dist/modes/interactive/theme/theme.js +1 -0
- package/dist/modes/interactive/theme/theme.js.map +1 -1
- package/dist/utils/clipboard-image.d.ts.map +1 -1
- package/dist/utils/clipboard-image.js +2 -0
- package/dist/utils/clipboard-image.js.map +1 -1
- package/dist/utils/clipboard.d.ts.map +1 -1
- package/dist/utils/clipboard.js +2 -1
- package/dist/utils/clipboard.js.map +1 -1
- package/dist/utils/tools-manager.d.ts +6 -0
- package/dist/utils/tools-manager.d.ts.map +1 -1
- package/dist/utils/tools-manager.js +170 -15
- package/dist/utils/tools-manager.js.map +1 -1
- package/dist/utils/windows-powershell.d.ts +9 -0
- package/dist/utils/windows-powershell.d.ts.map +1 -0
- package/dist/utils/windows-powershell.js +16 -0
- package/dist/utils/windows-powershell.js.map +1 -0
- package/docs/background-tasks.md +6 -6
- package/docs/getting-started/installation.md +4 -2
- package/docs/keybindings.md +3 -0
- package/docs/storage.md +24 -5
- package/docs/subagents.md +1 -1
- package/docs/themes/reference.md +7 -0
- package/docs/tui/reference.md +1 -1
- package/docs/windows.md +1 -1
- package/docs/workflows/api-reference.md +9 -1
- package/docs/workflows/operations.md +1 -1
- package/npm-shrinkwrap.json +49 -49
- package/package.json +6 -6
- package/schemas/keybindings.schema.json +4 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The environment for a Windows PowerShell (`powershell.exe`, 5.1) process Atomic starts for its own work. A PowerShell
|
|
3
|
+
* 7 parent, such as a `pwsh` terminal Atomic was started from, puts its own module directories in `PSModulePath`.
|
|
4
|
+
* Windows PowerShell then finds PowerShell 7's copies of its built-in modules first and fails to load them, so any
|
|
5
|
+
* cmdlet whose module loads on demand (`Get-Process`, `Get-Acl`, `Get-CimInstance`, `Expand-Archive`, ...) fails with
|
|
6
|
+
* "the module could not be loaded". Without the variable each host uses its own default module path.
|
|
7
|
+
*/
|
|
8
|
+
export declare function windowsPowerShellEnvironment(env?: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
9
|
+
//# sourceMappingURL=windows-powershell.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows-powershell.d.ts","sourceRoot":"","sources":["../../src/utils/windows-powershell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,4BAA4B,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,CAAC,UAAU,CAMpG"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The environment for a Windows PowerShell (`powershell.exe`, 5.1) process Atomic starts for its own work. A PowerShell
|
|
3
|
+
* 7 parent, such as a `pwsh` terminal Atomic was started from, puts its own module directories in `PSModulePath`.
|
|
4
|
+
* Windows PowerShell then finds PowerShell 7's copies of its built-in modules first and fails to load them, so any
|
|
5
|
+
* cmdlet whose module loads on demand (`Get-Process`, `Get-Acl`, `Get-CimInstance`, `Expand-Archive`, ...) fails with
|
|
6
|
+
* "the module could not be loaded". Without the variable each host uses its own default module path.
|
|
7
|
+
*/
|
|
8
|
+
export function windowsPowerShellEnvironment(env = process.env) {
|
|
9
|
+
const result = {};
|
|
10
|
+
for (const [key, value] of Object.entries(env)) {
|
|
11
|
+
if (key.toLowerCase() !== "psmodulepath")
|
|
12
|
+
result[key] = value;
|
|
13
|
+
}
|
|
14
|
+
return result;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=windows-powershell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"windows-powershell.js","sourceRoot":"","sources":["../../src/utils/windows-powershell.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,4BAA4B,CAAC,GAAG,GAAsB,OAAO,CAAC,GAAG;IAChF,MAAM,MAAM,GAAsB,EAAE,CAAC;IACrC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;QAChD,IAAI,GAAG,CAAC,WAAW,EAAE,KAAK,cAAc;YAAE,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IAC/D,CAAC;IACD,OAAO,MAAM,CAAC;AACf,CAAC","sourcesContent":["/**\n * The environment for a Windows PowerShell (`powershell.exe`, 5.1) process Atomic starts for its own work. A PowerShell\n * 7 parent, such as a `pwsh` terminal Atomic was started from, puts its own module directories in `PSModulePath`.\n * Windows PowerShell then finds PowerShell 7's copies of its built-in modules first and fails to load them, so any\n * cmdlet whose module loads on demand (`Get-Process`, `Get-Acl`, `Get-CimInstance`, `Expand-Archive`, ...) fails with\n * \"the module could not be loaded\". Without the variable each host uses its own default module path.\n */\nexport function windowsPowerShellEnvironment(env: NodeJS.ProcessEnv = process.env): NodeJS.ProcessEnv {\n\tconst result: NodeJS.ProcessEnv = {};\n\tfor (const [key, value] of Object.entries(env)) {\n\t\tif (key.toLowerCase() !== \"psmodulepath\") result[key] = value;\n\t}\n\treturn result;\n}\n"]}
|
package/docs/background-tasks.md
CHANGED
|
@@ -48,7 +48,7 @@ In fullscreen mode you can also click a row, focused or not, to open it as Enter
|
|
|
48
48
|
|
|
49
49
|
Going back from what you opened returns to the main chat with the panel focused on the same row. The subagent chat's hint reads `← main chat`; press **←** on its empty prompt. A workflow graph uses **Esc** to return.
|
|
50
50
|
|
|
51
|
-
A workflow stage chat or a subagent's chat lists its own active
|
|
51
|
+
A workflow stage chat or a subagent's chat lists its own active subagents below its prompt in the same row format, and counts its running shells on the line under them, for example `2 shells`, adding `/tasks to manage` when it has no subagent rows. Attached subagent chats identify the sender with `› from main` and echo the initial prompt. Their heavy composer rules name the recipient, task and state. Stage chats use `stage · <name>` labels. **?** on an empty prompt shows the chat's live keys. **Esc** interrupts without navigating away.
|
|
52
52
|
|
|
53
53
|
If the panel warns that an extension source failed, its invalid rows are hidden while the other rows and chat remain usable. A source that cannot list its rows is hidden entirely. The warning appears once per source, including during startup. Fix or update the extension, then use `/reload` to register it again; new rows continue updating without reopening the panel. If a reload closes the focused panel, press ↓ on the empty prompt to open it again. A failed stop or answer reports the source's error without closing the chat.
|
|
54
54
|
|
|
@@ -206,13 +206,13 @@ A shell or subagent that keeps running sends its chat a **task heartbeat** every
|
|
|
206
206
|
- If it looks runaway, stale or stuck, the model inspects it (`/tasks`, or a shell or subagent `wait` on its task ID), steers it (an Intercom message to a subagent, or pausing it and resuming it with a message), or stops it (`kill({ id })` for a shell, `subagent({ action: "quit", id })` for a subagent).
|
|
207
207
|
- It does not relaunch a task that is still running.
|
|
208
208
|
|
|
209
|
-
A heartbeat never stops, restarts or relaunches a task by itself.
|
|
209
|
+
A heartbeat never stops, restarts or relaunches a task by itself. In chat it is a notice that lists each task, up to five, and counts the rest; expand it (Ctrl+O) for each task's status line and output:
|
|
210
210
|
|
|
211
211
|
```text
|
|
212
212
|
♥ Task heartbeat · 2 tasks still running
|
|
213
|
-
shell task-1-0-3 npm run e2e · 45m
|
|
214
|
-
subagent task-1-0-4 Trace the authentication flow · 30m
|
|
215
|
-
|
|
213
|
+
⎿ shell task-1-0-3 npm run e2e · 45m
|
|
214
|
+
⎿ subagent task-1-0-4 Trace the authentication flow · 30m
|
|
215
|
+
/tasks to inspect · ctrl+o to expand
|
|
216
216
|
```
|
|
217
217
|
|
|
218
218
|
The model receives one entry per task, followed by the guidance above:
|
|
@@ -271,7 +271,7 @@ The cadence is fixed when the task starts, and a running task's `/tasks` detail
|
|
|
271
271
|
| Transcript | Scrolls like a workflow stage chat: it opens at the latest message and follows new output; PageUp/PageDown move one viewport; Ctrl+Home/Ctrl+End jump to the top and to the latest message; Ctrl+Up/Ctrl+Down jump between prompts; the mouse wheel scrolls (Alt+wheel five times faster). Earlier retained history loads as you scroll toward the top. |
|
|
272
272
|
| Transcript display | A transcript opens with the chat's thinking and tool-output settings. Ctrl+T toggles thinking blocks, as in the chat, and Ctrl+O toggles the transcript's tool output. |
|
|
273
273
|
| Message the agent | Type in the transcript's prompt and press Enter to send the text to the agent through Intercom. A finished subagent resumes in its own session with the message; one stopped for good shows a read-only chat with a one-line note. Up/Down, Home/End and Left/Right edit the prompt. |
|
|
274
|
-
| Subagent chat | A subagent's chat has the chat box of a workflow stage chat with an **attached composer**: heavy accent rules above and below the prompt, the top one naming the subagent, its task and its state, for example `debugger · #5220 spawn lock · 18m` (`needs input` while it waits on a question). The empty prompt reads `Message debugger…` (`Answer debugger…` while it waits), and what you type goes to the subagent. Terminals narrower than 40 columns show the rules without the label. Opened from the agent panel, the chat has no title row and Left returns to the main chat. When the subagent has tasks of its own, Down on an empty prompt opens that task list without leaving its chat. A subagent you stopped with `x x` or Ctrl+X Ctrl+K reads `Stopped · send to resume`; sending a message resumes it. While the subagent runs in this session, its usage meter appears above the prompt, along with the working line and any queued messages; below the prompt, the model line shows once the subagent is idle; while it works there is no status line. Below the footer, the subagent's own running agents
|
|
274
|
+
| Subagent chat | A subagent's chat has the chat box of a workflow stage chat with an **attached composer**: heavy accent rules above and below the prompt, the top one naming the subagent, its task and its state, for example `debugger · #5220 spawn lock · 18m` (`needs input` while it waits on a question). The empty prompt reads `Message debugger…` (`Answer debugger…` while it waits), and what you type goes to the subagent. Terminals narrower than 40 columns show the rules without the label. Opened from the agent panel, the chat has no title row and Left returns to the main chat. When the subagent has tasks of its own, Down on an empty prompt opens that task list without leaving its chat. A subagent you stopped with `x x` or Ctrl+X Ctrl+K reads `Stopped · send to resume`; sending a message resumes it. While the subagent runs in this session, its usage meter appears above the prompt, along with the working line and any queued messages; below the prompt, the model line shows once the subagent is idle; while it works there is no status line. Below the footer, the subagent's own running agents are listed in the agent panel's row format, and its running shells are counted under them. |
|
|
275
275
|
| Subagent's tasks | Type `/tasks` in a subagent's transcript to list that subagent's own tasks: the shells it ran and the subagents it launched, not the parent's. In a nested subagent's transcript, `/tasks` lists that subagent's tasks. Escape or Left on that list returns to the subagent's chat. |
|
|
276
276
|
| Go back | Left on an empty prompt, or at the start of a typed one, goes back one level, to the list or detail page you opened the chat from; the hint line names it, and a typed draft comes back when you return. Escape or Left returns from detail to the list. In a subagent's transcript, Escape only interrupts the subagent's current turn: the subagent keeps running, waits for your next message or its own background work to wake it in the same session, and the footer shows `esc interrupt` only while it works. While a subagent's own task list is open, Escape and Left go back within that list first. |
|
|
277
277
|
| Stop | In the list or on a task's detail page, `x` asks for a second press; pressing `x` again within 3 seconds stops the task, and any other key keeps it running. A stopped subagent stays resumable: its chat reads `Stopped · send to resume`, and sending a message resumes it in its own session. Ctrl+X Ctrl+K stops every background subagent, shell and workflow run at once, after the same second press. Remap the key with `app.list.stop`. |
|
|
@@ -84,10 +84,12 @@ Pins use Atomic's `MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION` rele
|
|
|
84
84
|
|
|
85
85
|
#### Rerunning the installer
|
|
86
86
|
|
|
87
|
-
If the release you ask for (or the latest release, when you pin nothing) is already installed and healthy, the installer prints `atomic <tag> is already installed; skipping download (use --force to reinstall)` and stops there. It
|
|
87
|
+
If the release you ask for (or the latest release, when you pin nothing) is already installed and healthy, the installer prints `atomic <tag> is already installed; skipping download (use --force to reinstall)` and stops there. It prints `Installed to <path>` and any PATH guidance, but it downloads nothing and leaves the installed files alone. With a pinned version it makes no network request at all, so a rerun also works while GitHub is unavailable; with no pin it still looks up the latest release tag. Healthy means the launcher and payload are in place and the launcher still matches the hash the installer recorded when it installed it: an empty or changed launcher is reinstalled. On Windows it also adds the bin directory to your User PATH if it went missing.
|
|
88
88
|
|
|
89
89
|
An install counts as healthy when `current` points at that release's version directory inside the install root (a `current` that points at a versions directory somewhere else is repaired) and the launcher resolves to it. On macOS/Linux that means the launcher link resolves to an executable `current/atomic`; the installer never runs the installed binary to decide. On Windows it means `current\atomic.exe --version` reports the release and the `atomic.cmd` shim and `atomic-current` junction match what the installer creates. On both platforms the version directory must still hold the files Atomic needs to start: `package.json`, `app.js`, `native-modifiers.js`, `native-module-path.js`, `native-platform.js`, and the `builtin` and `node_modules` directories. A different version, or a missing or broken launcher or payload, installs exactly as before and repairs the install.
|
|
90
90
|
|
|
91
|
+
Only one installer works on an install directory at a time. A second one started meanwhile prints `Waiting for another atomic installer ... to finish...` and continues once the first exits; after 30 minutes it gives up (set `ATOMIC_INSTALL_LOCK_TIMEOUT` to another number of seconds). An installer that was killed releases its claim, and the next run removes the partial files it left. While a new version is put in place, `atomic` keeps starting the previous one until the switch, and an interrupted install leaves the previous version usable.
|
|
92
|
+
|
|
91
93
|
To reinstall a healthy install anyway, pass `--force` on macOS/Linux or `-Force` on Windows, or set `ATOMIC_FORCE_INSTALL=1`. The environment variable works with `curl ... | sh` and `irm ... | iex`, where you cannot pass a flag:
|
|
92
94
|
|
|
93
95
|
```bash
|
|
@@ -110,7 +112,7 @@ Override the launcher directory (default `~/.local/bin` on macOS/Linux, `%LOCALA
|
|
|
110
112
|
|
|
111
113
|
#### GITHUB_TOKEN / GH_TOKEN
|
|
112
114
|
|
|
113
|
-
Optional
|
|
115
|
+
Optional. The installer finds the latest release and confirms a pinned `ATOMIC_VERSION` through github.com, so most installs make no GitHub API request. It asks the API only when github.com gives no clear answer, and without a token the API allows 60 requests an hour per network address. If the installer reports that GitHub's API rate limit was reached, set a token (for example `GITHUB_TOKEN=$(gh auth token)`) or try again later. Curl and GNU Wget keep the token in a protected temporary file instead of process arguments. BusyBox Wget remains supported without a token, and with a token when the latest-release redirect avoids the API; if an authenticated API fallback is needed, install curl or GNU Wget rather than exposing the token.
|
|
114
116
|
|
|
115
117
|
### Which runtime runs your workflows
|
|
116
118
|
|
package/docs/keybindings.md
CHANGED
|
@@ -240,6 +240,9 @@ The same keys move between the main chat, subagent chats, workflow graphs, stage
|
|
|
240
240
|
| `app.agents.stopAll` | `ctrl+k` | After the chord key: stop all background subagents and workflow runs (press twice to confirm) |
|
|
241
241
|
| `app.tasks.open` | Unbound | Command-only `/tasks` route |
|
|
242
242
|
| `app.tasks.input` | Unbound | Focus stdin only when the selected task has writable input |
|
|
243
|
+
| `app.tasks.openWaited` | `alt+w` | Open the output of the shell a waiting subagent waits on, from its chat or its `/tasks` row |
|
|
244
|
+
|
|
245
|
+
On macOS, Alt+W reaches Atomic only when the terminal sends Option as Meta: turn on **Use Option as Meta key** (Terminal.app), set **Left/Right Option key** to **Esc+** (iTerm2), or set `macos-option-as-alt` (Ghostty) or `macos_option_as_alt both` (kitty, then restart it). Otherwise Option+W types `œ`; remap `app.tasks.openWaited` to another key instead. If you bound Alt+W to another action yourself, such as moving the cursor a word forward, the two collide: in a waiting subagent's chat and on its `/tasks` row, Alt+W opens the shell instead. Give one of them a different key.
|
|
243
246
|
|
|
244
247
|
**Migrating from earlier versions:** `app.tasks.inspect` is now `app.list.open` and `app.tasks.cancel` is now `app.list.stop`; existing `keybindings.json` entries are migrated on startup. Ctrl+X used to return from a stage chat to its graph and from a graph to the main chat: use ← on an empty prompt in a stage chat and Esc in the graph instead. Esc used to close an idle stage chat and a subagent's transcript: there it now only interrupts, so use ← on an empty prompt. Stopping a task asked for `y`; press `x` a second time instead. `app.workflows.scrollUp` and `app.workflows.scrollDown` (Alt+K/J, and their Alt+PageUp/Alt+PageDown aliases) are gone with the workflow list they scrolled: workflow runs are rows of the agent panel.
|
|
245
248
|
|
package/docs/storage.md
CHANGED
|
@@ -78,7 +78,7 @@ To move existing runs and sessions to another store, see [Exporting and importin
|
|
|
78
78
|
|
|
79
79
|
## PostgreSQL
|
|
80
80
|
|
|
81
|
-
`@bastani/atomic-storage-postgres` keeps Atomic's shared state in a PostgreSQL database. It needs PostgreSQL 16 or later, self-hosted or managed: Azure Database for PostgreSQL Flexible Server, Amazon RDS or Aurora PostgreSQL, Google Cloud SQL or AlloyDB, Neon, Supabase, and others.
|
|
81
|
+
`@bastani/atomic-storage-postgres` keeps Atomic's shared state in a PostgreSQL database. It needs PostgreSQL 16 or later, self-hosted or managed: Azure Database for PostgreSQL Flexible Server, Azure HorizonDB, Amazon RDS or Aurora PostgreSQL, Google Cloud SQL or AlloyDB, Neon, Supabase, and others.
|
|
82
82
|
|
|
83
83
|
### What works on PostgreSQL
|
|
84
84
|
|
|
@@ -197,7 +197,7 @@ Atomic connects with TLS to every host except the local machine, and checks the
|
|
|
197
197
|
|
|
198
198
|
By provider:
|
|
199
199
|
|
|
200
|
-
- Azure Database for PostgreSQL and Neon use certificates that Node.js trusts: no option is needed.
|
|
200
|
+
- Azure Database for PostgreSQL, Azure HorizonDB and Neon use certificates that Node.js trusts: no option is needed.
|
|
201
201
|
- Supabase: download the project's CA certificate (**Project Settings → Database → SSL Configuration**) and add `?sslrootcert=/path/to/supabase-ca.pem`. Its certificates chain to Supabase's own CA.
|
|
202
202
|
- Amazon RDS and Aurora: download your region's certificate bundle from `https://truststore.pki.rds.amazonaws.com/<region>/<region>-bundle.pem` and add `?sslrootcert=/path/to/bundle.pem`.
|
|
203
203
|
- Google Cloud SQL: save the instance's server CA certificate (`gcloud sql instances describe <instance> --format='value(serverCaCert.cert)'`) and add `?sslmode=verify-ca&sslrootcert=/path/to/server-ca.pem` when you connect by private IP address, which is not among the certificate's names.
|
|
@@ -220,6 +220,24 @@ Wake-ups make Atomic faster and lighter on the database. An idle worker does not
|
|
|
220
220
|
- `wake-ups: polling only, notifications do not pass the URL's transaction pooler`: set `listenUrl` to a direct endpoint, as in [Connection poolers](#connection-poolers).
|
|
221
221
|
- `wake-ups: polling only, the listen connection failed`: the listen endpoint is unreachable or refused the login. Check `listenUrl`, or the server's connection limit.
|
|
222
222
|
|
|
223
|
+
### Azure
|
|
224
|
+
|
|
225
|
+
**Azure Database for PostgreSQL (flexible server).**
|
|
226
|
+
|
|
227
|
+
- Connect to `<server>.postgres.database.azure.com`. Port 5432 reaches the server directly.
|
|
228
|
+
- Port 6432 is the server's built-in PgBouncer, a transaction pooler. It is available on General Purpose and Memory Optimized servers once you turn on the server parameter `pgbouncer.enabled`; Burstable servers have none. When you connect through 6432, set `listenUrl` to the same URL on port 5432 so [wake-ups](#wake-ups) still arrive.
|
|
229
|
+
- Add `PG_TRGM` to the server parameter `azure.extensions` before you run `atomic storage migrate`, so the search index of session history can be built. Without it, searches read each session a page at a time, and `atomic storage migrate` tells you so; run it again after you allow the extension.
|
|
230
|
+
- Mind the connection limit. A Burstable B1ms server allows 50 connections and reserves 15 of them for administrators, and each Atomic process opens up to `maxConnections` (8) plus one for wake-ups. For more than a few processes, lower `maxConnections`, connect through PgBouncer, or choose a larger server.
|
|
231
|
+
- Allow each machine's address in the server's firewall rules, or use private access.
|
|
232
|
+
|
|
233
|
+
**Azure HorizonDB** (preview), PostgreSQL 17.
|
|
234
|
+
|
|
235
|
+
- Connect to the cluster's read/write endpoint, `<cluster>.rw.<id>.<region>.horizondb.azure.com`, on port 5432. Don't use the pool's read-only endpoint: Atomic writes on every connection. Wake-ups arrive on the read/write endpoint.
|
|
236
|
+
- Add `pg_trgm` to `azure.extensions` in the parameter group assigned to the compute pool, then run `atomic storage migrate`.
|
|
237
|
+
- Allow each machine's address in the pool's firewall rules, or connect through a private endpoint.
|
|
238
|
+
|
|
239
|
+
On both services the URL needs no TLS parameter: their certificates chain to CAs Node.js trusts, and HorizonDB, which requires TLS, gets it by default. The administrator is a member of `azure_pg_admin`, not a superuser, and the owner and runtime roles in [Set up the database](#set-up-the-database) work as written. Both take Microsoft Entra sign-in with `--auth azure`; see [Cloud identities](#cloud-identities).
|
|
240
|
+
|
|
223
241
|
### Cloud identities
|
|
224
242
|
|
|
225
243
|
With `--auth`, or `options.auth` in settings, Atomic gets a short-lived token from the machine's cloud identity for each new connection and sends it as the password. No password is stored anywhere, and tokens stay in memory. Each cloud signs in through its own SDK, which you install beside the adapter:
|
|
@@ -234,7 +252,7 @@ When the SDK is missing or gives no token, the store fails to open with `Storage
|
|
|
234
252
|
|
|
235
253
|
On each service, map the identity to a database user that may connect:
|
|
236
254
|
|
|
237
|
-
- **Azure
|
|
255
|
+
- **Azure** (flexible server or HorizonDB cluster): enable Microsoft Entra authentication and add a Microsoft Entra administrator. As that administrator, connected to the `postgres` database, create a role named exactly as the identity with `SELECT * FROM pgaadauth_create_principal('<identity name>', false, false);` and grant it `CONNECT` on the database. The URL's user name is that role.
|
|
238
256
|
- **AWS:** enable IAM database authentication, run `CREATE USER atomic; GRANT rds_iam TO atomic;`, and allow the identity only `rds-db:connect` on `arn:aws:rds-db:<region>:<account>:dbuser:<DbiResourceId>/atomic`.
|
|
239
257
|
- **Google Cloud:** set the instance flag `cloudsql.iam_authentication=on`, add the service account as an IAM database user, and grant it `roles/cloudsql.instanceUser`. The URL's user name is the service account's email without `.gserviceaccount.com`. A Compute Engine VM needs the `cloud-platform` access scope.
|
|
240
258
|
|
|
@@ -255,7 +273,8 @@ A cloud identity is a role like any other: make it the runtime role with the gra
|
|
|
255
273
|
- **The server refused a token**: `28P01` ("password authentication failed") is a token for the wrong user or one that expired. Azure answers `28000` ("The access token has invalid format") for a malformed one, such as a token for another resource or an empty or truncated token file: get it for `https://ossrdbms-aad.database.windows.net` (`az account get-access-token --resource-type oss-rdbms`), or use `--auth azure`.
|
|
256
274
|
- **`StorageUnavailableError`** when the store opens: the server refused the password (`28P01`, or `28000` for an Azure token, as above), the database does not exist (`3D000`), or the server is older than PostgreSQL 14. Atomic's tables need PostgreSQL 16: on 14 and 15 the adapter connects, but sessions and workflow runs fail to open.
|
|
257
275
|
- **A certificate error** (`self-signed certificate in certificate chain`, `unable to get local issuer certificate`): the server's CA is not one Node.js trusts. Add `sslrootcert`, as in [TLS](#tls).
|
|
258
|
-
- **`
|
|
276
|
+
- **`StorageTransientError` with code `read-only-server`** (`25006`): the server accepts reads only. Either the URL names a read replica, a standby or a read-only endpoint, such as an Azure HorizonDB pool's: use the primary server, or the cluster's read/write endpoint. Or the server is read-only for now, during a failover or while Azure keeps a server whose storage is nearly full read-only: Atomic retries, and a call still refused after its retries fails with this code.
|
|
277
|
+
- **`too many connections`** or **`remaining connection slots are reserved`** (`53300`): lower `maxConnections`, raise the server's `max_connections`, or put a [pooler](#connection-poolers) in front.
|
|
259
278
|
- **`StorageTransientError` with code `lock-conflict` or `transaction-timeout`**: the server cancelled a statement or transaction that waited too long for a lock or ran past `statementTimeoutMs`, and nothing it wrote was kept. Persistent ones point to an overloaded server.
|
|
260
279
|
- **`wake-ups: polling only`** in `atomic storage status`: see [Wake-ups](#wake-ups). Work still runs, found by the regular checks.
|
|
261
280
|
- **Connections dropped during a failover or a pooler restart** are reported as `StorageTransientError` with code `connection-lost`, as for [libSQL](#turso-and-libsql).
|
|
@@ -987,7 +1006,7 @@ These storage errors carry a stable `code` and a `hint` with the remedy:
|
|
|
987
1006
|
| `StorageUnsupportedOperationError` | `unsupported-operation` | `getWriterQueueStats` or `getWriterQueueDegradation` received a handle that `openNodeSqliteDatabase` or `wrapNodeSqliteDatabase` did not return. | `operation` (`"getWriterQueueStats"` or `"getWriterQueueDegradation"`), `adapter`, `location` | Pass a node-sqlite handle. |
|
|
988
1007
|
| `StorageWriterQueueDegradedError` | `writer-queue-degraded` | Not thrown: recorded once per reason on the connection (read with `getWriterQueueDegradation`) and emitted once as a process warning. A waiting writer could not watch its release notice (`watch-unavailable`), a writer letting go of the lock could not read the queue or notify the next writer (`wake-failed`), an entry or notice could not be removed on leaving or after abandonment (`stale-ticket-kept`), or the connection could not keep its record of holding the write lock in `<file>-holders`, so a writer that gives up waiting may not name the holder (`holder-record-unavailable`). | `reason` (`"watch-unavailable"`, `"wake-failed"`, `"stale-ticket-kept"`, or `"holder-record-unavailable"`), `adapter`, `location`, `cause`, and a `hint` for the reason | Raise the file-watch limits; make the `<file>-writers`, `<file>-wakes` and `<file>-holders` directories readable and writable; or remove abandoned entries by hand. A live entry left behind can delay the queue until it becomes stale. |
|
|
989
1008
|
| `StorageWriterQueueUnusableError` (a `StorageUnavailableError`) | `writer-queue-unusable` | A node-sqlite transaction could not read the `<file>-writers` directory, or add, refresh, or read an entry or its release notice. Nothing of the transaction ran. | `adapter`, `location`, `errno` (such as `"EACCES"`) when the cause has one, `cause` | Make the `<file>-writers` and `<file>-wakes` directories readable and writable for every process that writes the database. |
|
|
990
|
-
| `StorageTransientError` (a `StorageUnavailableError`) | `stream-expired`, `transaction-timeout`, `connection-refused`, `connection-lost` | A call to a database server failed for a reason that passes: the server expired an idle stream, for example of a process stopped mid-transaction (`stream-expired`); it rolled back a transaction that kept the write lock while another writer waited (`transaction-timeout`); no connection could be made (`connection-refused`); or the connection broke during the request, or something in front of a libSQL server answered HTTP 5xx (`connection-lost`). Thrown after the call ran up to five times when it wrote nothing, or at once when its outcome is unknown. | `adapter`, `location`, `outcome` (`"not-applied"`, nothing was written; or `"unknown"`, the write may have been applied), `attempts` (the run that failed), `retryable: true`, `cause` (the driver failure, credentials redacted) | Check that the server is reachable and the process is not stopped or starved of CPU, then retry. With `outcome: "unknown"`, read the write back before retrying one that is not idempotent. |
|
|
1009
|
+
| `StorageTransientError` (a `StorageUnavailableError`) | `stream-expired`, `transaction-timeout`, `connection-refused`, `connection-lost`, `read-only-server` | A call to a database server failed for a reason that passes: the server expired an idle stream, for example of a process stopped mid-transaction (`stream-expired`); it rolled back a transaction that kept the write lock while another writer waited (`transaction-timeout`); no connection could be made (`connection-refused`); or the connection broke during the request, or something in front of a libSQL server answered HTTP 5xx (`connection-lost`); or a PostgreSQL server that accepts reads only refused a write (`read-only-server`): a read replica or read-only endpoint, or a server read-only for now, during a failover or while its storage is nearly full. Thrown after the call ran up to five times when it wrote nothing, or at once when its outcome is unknown. | `adapter`, `location`, `outcome` (`"not-applied"`, nothing was written; or `"unknown"`, the write may have been applied), `attempts` (the run that failed), `retryable: true`, `cause` (the driver failure, credentials redacted) | Check that the server is reachable and the process is not stopped or starved of CPU, then retry. With `outcome: "unknown"`, read the write back before retrying one that is not idempotent. |
|
|
991
1010
|
| `SessionBlobError` | `blobs-unsupported` | The session store has no `putBlob` and `getBlob` (a session directory, or a custom store without them), and an import, fork, branch or `tool-output://` read needs them. Nothing was written. | `sessionId`, `adapter` | Keep the session in a SQLite or libSQL session store, or give the custom store `putBlob` and `getBlob`. |
|
|
992
1011
|
| `SessionBlobError` | `blob-missing` | A `tool-output://<sha256>` URL names a blob the current session does not hold. A copy, fork or export that finds blobs missing from its source carries on without them and reports this once as a process warning (an `onMissingBlob` function passed to `copySessionBlobs` or `inlineToolOutput` receives it instead). | `sessionId`, `hash` (the first missing one), `missing` (how many, when a copy or export reports it) | The output is gone, for example because the export it came from left it out; run the tool again. |
|
|
993
1012
|
| `SessionBlobError` | `blob-incomplete` | The store holds a blob's record but lost part of its content. | `sessionId`, `hash`, `bytes` | The store lost part of this output; run the tool again. |
|
package/docs/subagents.md
CHANGED
|
@@ -289,7 +289,7 @@ An SDK session without a task host runs its subagents directly and records them
|
|
|
289
289
|
|
|
290
290
|
#### Released subagents
|
|
291
291
|
|
|
292
|
-
A background subagent that waits more than a minute on a tool call marked `detachable` (extension tools opt in with `detachable: true`) is **released**: the call keeps running, but the child gives up its session, task and Intercom connection and holds nothing else while it waits. Nothing paused it, and it needs no `resume`: it wakes by itself when the call finishes. Its parent gets a notice that reads `Subagent <name> released while waiting on <tool> (<call id>)` and says it wakes by itself. The notice appears in the parent's chat without starting a turn, and the parent's model reads it with its next turn. `/tasks`, the agent panel and a chat's task footer list the child under **Waiting** with a still `◌` mark and `waiting on <tool>`, naming the tools it waits on; its detail in `/tasks` reads `Waiting on <tool>` and adds the call ids. Opening the child shows its saved conversation without waking it, with a note that says what it waits on, that it wakes by itself, and which of its shells still run,
|
|
292
|
+
A background subagent that waits more than a minute on a tool call marked `detachable` (extension tools opt in with `detachable: true`) is **released**: the call keeps running, but the child gives up its session, task and Intercom connection and holds nothing else while it waits. Nothing paused it, and it needs no `resume`: it wakes by itself when the call finishes. Its parent gets a notice that reads `Subagent <name> released while waiting on <tool> (<call id>)` and says it wakes by itself. The notice appears in the parent's chat without starting a turn, and the parent's model reads it with its next turn. `/tasks`, the agent panel and a chat's task footer list the child under **Waiting** with a still `◌` mark and `waiting on <tool>`, naming the tools it waits on; its detail in `/tasks` reads `Waiting on <tool>` and adds the call ids. Opening the child shows its saved conversation without waking it, with a note that says what it waits on, that it wakes by itself, and which of its shells still run. Alt+W (`app.tasks.openWaited`) opens the output of its newest running shell, from that chat or from its row in `/tasks`, and ← goes back. The launch card in the parent's chat shows it with the same `◌` mark and `Waiting on <tool>`, and shows it running or finished again once it wakes or ends. A message you send from that chat wakes it, as an Intercom message does. Pressing `x` twice on its row stops it as `quit` does, so it no longer wakes by itself and waits for a resume. When it wakes, its later run replaces it in these lists. `subagent({ action: "status" })` lists it as `released · waiting on <tool> (<call id>)` and says it is not paused. A child you pause or quit is reported as `paused · awaiting resume`.
|
|
293
293
|
|
|
294
294
|
- Only background subagents are released. A foreground subagent stays a live session for as long as it waits, because your turn is waiting for its result.
|
|
295
295
|
- When the call finishes, the child wakes from its saved session and continues the turn with the call's result.
|
package/docs/themes/reference.md
CHANGED
|
@@ -180,3 +180,10 @@ Check truecolor support:
|
|
|
180
180
|
```bash
|
|
181
181
|
echo $COLORTERM # Should output "truecolor" or "24bit"
|
|
182
182
|
```
|
|
183
|
+
|
|
184
|
+
Turning colors off:
|
|
185
|
+
|
|
186
|
+
- `NO_COLOR` (any value) turns off every theme color, foreground and background, and text styles such as bold, italic and dim. Layout and text stay the same.
|
|
187
|
+
- `FORCE_COLOR=0` does the same. `FORCE_COLOR=1` or `2` limits colors to the 256-color palette, and `FORCE_COLOR=3` keeps the terminal's own color mode. `NO_COLOR` wins when both are set.
|
|
188
|
+
- The workflow graph, stage chats and run details follow the same settings for their colors.
|
|
189
|
+
- An extension that paints its own `#rrggbb` colors can call `hexColorAnsi(hex, "fg")` or `hexColorAnsi(hex, "bg")` from `@bastani/atomic` to get the escape sequence for the current settings, which is empty when colors are off.
|
package/docs/tui/reference.md
CHANGED
|
@@ -8,7 +8,7 @@ description: Component and focusable interfaces, keyboard input, line width, inv
|
|
|
8
8
|
|
|
9
9
|
## Tool blocks
|
|
10
10
|
|
|
11
|
-
Use `ToolBlock` from `@bastani/atomic` for a transcript item with a state glyph, one header row and connected result rows. It accepts `status`, `title`, optional `args`, `meta`, `details`, `body` and `outputPad` (default `1`). Supported states are `running`, `success`, `failure`, `stopped`, `warning`, `paused` and `info`.
|
|
11
|
+
Use `ToolBlock` from `@bastani/atomic` for a transcript item with a state glyph, one header row and connected result rows. It accepts `status`, `title`, optional `args`, `meta`, `details`, `body` and `outputPad` (default `1`). Supported states are `running`, `success`, `failure`, `stopped`, `warning`, `paused`, `waiting` (a still, dim `◌`: not working, and wakes by itself when what it waits on finishes) and `info`. Code that switches over `ToolBlockStatus` or `NoticeStatus` should handle `waiting`.
|
|
12
12
|
|
|
13
13
|
```typescript
|
|
14
14
|
import { ToolBlock, ToolBlockRecords } from "@bastani/atomic";
|
package/docs/windows.md
CHANGED
|
@@ -16,7 +16,7 @@ This path does not require Node.js or a package manager. To pin an exact release
|
|
|
16
16
|
|
|
17
17
|
The installer verifies `SHA256SUMS` before changing an existing install. By default, it stores versioned payloads under `%LOCALAPPDATA%\atomic` and places an ASCII-only `atomic.cmd` plus an `atomic-current` junction in `%LOCALAPPDATA%\atomic\bin`. The relative shim supports Unicode install paths and a bin directory elsewhere.
|
|
18
18
|
|
|
19
|
-
Set `ATOMIC_INSTALL_DIR`, `ATOMIC_BIN_DIR`, or `ATOMIC_VERSION` to override those values. Rerunning the installer when that release is already installed and healthy skips the download and only restores a missing User PATH entry; pass `-Force` or set `ATOMIC_FORCE_INSTALL=1` to reinstall anyway. A missing or mismatched `atomic.cmd` shim or `atomic-current` junction, a `current` junction that points outside the install root, or an installed payload that lost `app.js` or another startup file counts as unhealthy and is repaired by a normal rerun. `GITHUB_TOKEN` or `GH_TOKEN` is optional
|
|
19
|
+
Set `ATOMIC_INSTALL_DIR`, `ATOMIC_BIN_DIR`, or `ATOMIC_VERSION` to override those values. Rerunning the installer when that release is already installed and healthy skips the download and only restores a missing User PATH entry; pass `-Force` or set `ATOMIC_FORCE_INSTALL=1` to reinstall anyway. A missing or mismatched `atomic.cmd` shim or `atomic-current` junction, a `current` junction that points outside the install root, or an installed payload that lost `app.js` or another startup file counts as unhealthy and is repaired by a normal rerun. `GITHUB_TOKEN` or `GH_TOKEN` is optional: a pinned or latest release is confirmed through github.com, and the token only raises GitHub API limits when the installer has to fall back to the API. Exact pins use Atomic's `MAJOR.MINOR.PATCH` or `MAJOR.MINOR.PATCH-alpha.REVISION` release tag form.
|
|
20
20
|
|
|
21
21
|
The installer removes its `atomic-install-*` staging directory before finishing. If cleanup fails, it reports the path and Windows error. An installation failure remains the primary error; incomplete cleanup appears as a warning.
|
|
22
22
|
|
|
@@ -81,7 +81,15 @@ That example heartbeats every 30 minutes: a run started at 09:00 raises boundari
|
|
|
81
81
|
|
|
82
82
|
#### Delivery and unread cards
|
|
83
83
|
|
|
84
|
-
Each heartbeat arrives in main chat as a `workflows:workflow-heartbeat`
|
|
84
|
+
Each heartbeat arrives in main chat as a `workflows:workflow-heartbeat` notice, in the same form as a task heartbeat. It names the workflow, how long the run has been going, the run id and cadence, with `/workflows <runId>` as the inspection hint. Expanding it (Ctrl+O) puts each of these on a row of its own, which keeps them visible in a narrow terminal:
|
|
85
|
+
|
|
86
|
+
```text
|
|
87
|
+
♥ Workflow heartbeat · release-check still running · 45m
|
|
88
|
+
⎿ run 3f2a… · 15-minute cadence
|
|
89
|
+
/workflows 3f2a…
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
Its queued steer waits for the parent's next protocol-safe boundary and never interrupts streaming text. When main chat is idle, including right after you interrupt it, the heartbeat starts a turn at once; [`tasks.heartbeatWakesIdleSession`](/settings#tasks) turns that off.
|
|
85
93
|
|
|
86
94
|
Only one heartbeat per run can be outstanding. Its slot stays occupied until the card is consumed into the conversation, even if the parent's turn ends or its queue is paused. Boundaries reached while that slot is occupied are skipped, not stacked. Delivery resumes at the first future boundary.
|
|
87
95
|
|
|
@@ -479,7 +479,7 @@ When you steer a stage that asked you a question — you type an answer into **C
|
|
|
479
479
|
|
|
480
480
|
Advancing cannot be undone, so it has the higher bar. The thresholds are exported from `@bastani/atomic/workflows` as `READINESS_DECISION_THRESHOLDS`. The decision needs probabilities, which only a classifier gives, so with a chat model as the decision model, or none configured, Atomic always asks and records no decision. The decision is bounded by [`httpIdleTimeoutMs`](/settings#http).
|
|
481
481
|
|
|
482
|
-
Each decision is recorded on the stage while the run is live in this session: a `ready` line under the stage in the workflow tool's run detail, `readinessDecision` in `workflow({ action: "stages" })` and `stage` output, with the outcome, the model and the probabilities, and a
|
|
482
|
+
Each decision is recorded on the stage while the run is live in this session: a `ready` line under the stage in the workflow tool's run detail, `readinessDecision` in `workflow({ action: "stages" })` and `stage` output, with the outcome, the model and the probabilities, and a readiness notice in the stage's chat, for example `● Decision model advanced the stage (p=0.93, addressed p=0.91) · <decision model>`. When the question was asked because the decision failed, the record names the typed error's class and code, such as `DecisionTimeoutError` and `timeout`. A pause during the decision keeps your message and decides again after resume.
|
|
483
483
|
|
|
484
484
|
Turn it off with `workflows.autoAdvanceAfterSteer: false` in `settings.json`, or `/settings` → **Auto-advance after steer**. Stages that run on [local workers](/settings#local-worker-pools) always ask.
|
|
485
485
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.89-alpha.
|
|
3
|
+
"version": "0.9.89-alpha.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.89-alpha.
|
|
9
|
+
"version": "0.9.89-alpha.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.89-alpha.
|
|
13
|
-
"@bastani/atomic-ai": "0.9.89-alpha.
|
|
14
|
-
"@bastani/atomic-agent-core": "0.9.89-alpha.
|
|
15
|
-
"@bastani/atomic-codemode": "0.9.89-alpha.
|
|
16
|
-
"@bastani/atomic-tui": "0.9.89-alpha.
|
|
12
|
+
"@bastani/atomic-natives": "0.9.89-alpha.2",
|
|
13
|
+
"@bastani/atomic-ai": "0.9.89-alpha.2",
|
|
14
|
+
"@bastani/atomic-agent-core": "0.9.89-alpha.2",
|
|
15
|
+
"@bastani/atomic-codemode": "0.9.89-alpha.2",
|
|
16
|
+
"@bastani/atomic-tui": "0.9.89-alpha.2",
|
|
17
17
|
"@modelcontextprotocol/ext-apps": "^2.0.4",
|
|
18
18
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
19
19
|
"@mozilla/readability": "^0.6.0",
|
|
@@ -429,26 +429,26 @@
|
|
|
429
429
|
}
|
|
430
430
|
},
|
|
431
431
|
"node_modules/@bastani/atomic-agent-core": {
|
|
432
|
-
"version": "0.9.89-alpha.
|
|
433
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-agent-core/-/atomic-agent-core-0.9.89-alpha.
|
|
432
|
+
"version": "0.9.89-alpha.2",
|
|
433
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-agent-core/-/atomic-agent-core-0.9.89-alpha.2.tgz",
|
|
434
434
|
"license": "MIT",
|
|
435
435
|
"dependencies": {
|
|
436
|
-
"@bastani/atomic-ai": "0.9.89-alpha.
|
|
437
|
-
"@bastani/atomic-schema": "0.9.89-alpha.
|
|
436
|
+
"@bastani/atomic-ai": "0.9.89-alpha.2",
|
|
437
|
+
"@bastani/atomic-schema": "0.9.89-alpha.2"
|
|
438
438
|
},
|
|
439
439
|
"engines": {
|
|
440
440
|
"node": ">=22.19.0"
|
|
441
441
|
}
|
|
442
442
|
},
|
|
443
443
|
"node_modules/@bastani/atomic-ai": {
|
|
444
|
-
"version": "0.9.89-alpha.
|
|
445
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-ai/-/atomic-ai-0.9.89-alpha.
|
|
444
|
+
"version": "0.9.89-alpha.2",
|
|
445
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-ai/-/atomic-ai-0.9.89-alpha.2.tgz",
|
|
446
446
|
"license": "MIT",
|
|
447
447
|
"dependencies": {
|
|
448
448
|
"@anthropic-ai/sdk": "0.129.0",
|
|
449
449
|
"@aws-sdk/client-bedrock-runtime": "3.1127.0",
|
|
450
|
-
"@bastani/atomic-schema": "0.9.89-alpha.
|
|
451
|
-
"@bastani/atomic-telemetry": "0.9.89-alpha.
|
|
450
|
+
"@bastani/atomic-schema": "0.9.89-alpha.2",
|
|
451
|
+
"@bastani/atomic-telemetry": "0.9.89-alpha.2",
|
|
452
452
|
"@google/genai": "2.32.0",
|
|
453
453
|
"@smithy/node-http-handler": "4.13.0",
|
|
454
454
|
"http-proxy-agent": "9.1.0",
|
|
@@ -526,8 +526,8 @@
|
|
|
526
526
|
}
|
|
527
527
|
},
|
|
528
528
|
"node_modules/@bastani/atomic-codemode": {
|
|
529
|
-
"version": "0.9.89-alpha.
|
|
530
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-codemode/-/atomic-codemode-0.9.89-alpha.
|
|
529
|
+
"version": "0.9.89-alpha.2",
|
|
530
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-codemode/-/atomic-codemode-0.9.89-alpha.2.tgz",
|
|
531
531
|
"license": "MIT",
|
|
532
532
|
"dependencies": {
|
|
533
533
|
"quickjs-wasi": "3.6.3"
|
|
@@ -537,18 +537,18 @@
|
|
|
537
537
|
}
|
|
538
538
|
},
|
|
539
539
|
"node_modules/@bastani/atomic-natives": {
|
|
540
|
-
"version": "0.9.89-alpha.
|
|
541
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.89-alpha.
|
|
540
|
+
"version": "0.9.89-alpha.2",
|
|
541
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.89-alpha.2.tgz",
|
|
542
542
|
"license": "MIT",
|
|
543
543
|
"optionalDependencies": {
|
|
544
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.89-alpha.
|
|
545
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.89-alpha.
|
|
546
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.89-alpha.
|
|
547
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.89-alpha.
|
|
548
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.89-alpha.
|
|
549
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.89-alpha.
|
|
550
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.89-alpha.
|
|
551
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.89-alpha.
|
|
544
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.89-alpha.2",
|
|
545
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.89-alpha.2",
|
|
546
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.89-alpha.2",
|
|
547
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.89-alpha.2",
|
|
548
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.89-alpha.2",
|
|
549
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.89-alpha.2",
|
|
550
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.89-alpha.2",
|
|
551
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.89-alpha.2"
|
|
552
552
|
},
|
|
553
553
|
"engines": {
|
|
554
554
|
"bun": ">=1.4.2",
|
|
@@ -556,8 +556,8 @@
|
|
|
556
556
|
}
|
|
557
557
|
},
|
|
558
558
|
"node_modules/@bastani/atomic-natives-darwin-arm64": {
|
|
559
|
-
"version": "0.9.89-alpha.
|
|
560
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.89-alpha.
|
|
559
|
+
"version": "0.9.89-alpha.2",
|
|
560
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.89-alpha.2.tgz",
|
|
561
561
|
"license": "MIT",
|
|
562
562
|
"os": [
|
|
563
563
|
"darwin"
|
|
@@ -568,8 +568,8 @@
|
|
|
568
568
|
"optional": true
|
|
569
569
|
},
|
|
570
570
|
"node_modules/@bastani/atomic-natives-darwin-x64": {
|
|
571
|
-
"version": "0.9.89-alpha.
|
|
572
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.89-alpha.
|
|
571
|
+
"version": "0.9.89-alpha.2",
|
|
572
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.89-alpha.2.tgz",
|
|
573
573
|
"license": "MIT",
|
|
574
574
|
"os": [
|
|
575
575
|
"darwin"
|
|
@@ -580,8 +580,8 @@
|
|
|
580
580
|
"optional": true
|
|
581
581
|
},
|
|
582
582
|
"node_modules/@bastani/atomic-natives-linux-arm64-gnu": {
|
|
583
|
-
"version": "0.9.89-alpha.
|
|
584
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.89-alpha.
|
|
583
|
+
"version": "0.9.89-alpha.2",
|
|
584
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.89-alpha.2.tgz",
|
|
585
585
|
"license": "MIT",
|
|
586
586
|
"os": [
|
|
587
587
|
"linux"
|
|
@@ -595,8 +595,8 @@
|
|
|
595
595
|
"optional": true
|
|
596
596
|
},
|
|
597
597
|
"node_modules/@bastani/atomic-natives-linux-arm64-musl": {
|
|
598
|
-
"version": "0.9.89-alpha.
|
|
599
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.89-alpha.
|
|
598
|
+
"version": "0.9.89-alpha.2",
|
|
599
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.89-alpha.2.tgz",
|
|
600
600
|
"license": "MIT",
|
|
601
601
|
"os": [
|
|
602
602
|
"linux"
|
|
@@ -610,8 +610,8 @@
|
|
|
610
610
|
"optional": true
|
|
611
611
|
},
|
|
612
612
|
"node_modules/@bastani/atomic-natives-linux-x64-gnu": {
|
|
613
|
-
"version": "0.9.89-alpha.
|
|
614
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.89-alpha.
|
|
613
|
+
"version": "0.9.89-alpha.2",
|
|
614
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.89-alpha.2.tgz",
|
|
615
615
|
"license": "MIT",
|
|
616
616
|
"os": [
|
|
617
617
|
"linux"
|
|
@@ -625,8 +625,8 @@
|
|
|
625
625
|
"optional": true
|
|
626
626
|
},
|
|
627
627
|
"node_modules/@bastani/atomic-natives-linux-x64-musl": {
|
|
628
|
-
"version": "0.9.89-alpha.
|
|
629
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.89-alpha.
|
|
628
|
+
"version": "0.9.89-alpha.2",
|
|
629
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.89-alpha.2.tgz",
|
|
630
630
|
"license": "MIT",
|
|
631
631
|
"os": [
|
|
632
632
|
"linux"
|
|
@@ -640,8 +640,8 @@
|
|
|
640
640
|
"optional": true
|
|
641
641
|
},
|
|
642
642
|
"node_modules/@bastani/atomic-natives-win32-arm64-msvc": {
|
|
643
|
-
"version": "0.9.89-alpha.
|
|
644
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.89-alpha.
|
|
643
|
+
"version": "0.9.89-alpha.2",
|
|
644
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.89-alpha.2.tgz",
|
|
645
645
|
"license": "MIT",
|
|
646
646
|
"os": [
|
|
647
647
|
"win32"
|
|
@@ -652,8 +652,8 @@
|
|
|
652
652
|
"optional": true
|
|
653
653
|
},
|
|
654
654
|
"node_modules/@bastani/atomic-natives-win32-x64-msvc": {
|
|
655
|
-
"version": "0.9.89-alpha.
|
|
656
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.89-alpha.
|
|
655
|
+
"version": "0.9.89-alpha.2",
|
|
656
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.89-alpha.2.tgz",
|
|
657
657
|
"license": "MIT",
|
|
658
658
|
"os": [
|
|
659
659
|
"win32"
|
|
@@ -664,24 +664,24 @@
|
|
|
664
664
|
"optional": true
|
|
665
665
|
},
|
|
666
666
|
"node_modules/@bastani/atomic-schema": {
|
|
667
|
-
"version": "0.9.89-alpha.
|
|
668
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-schema/-/atomic-schema-0.9.89-alpha.
|
|
667
|
+
"version": "0.9.89-alpha.2",
|
|
668
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-schema/-/atomic-schema-0.9.89-alpha.2.tgz",
|
|
669
669
|
"license": "MIT",
|
|
670
670
|
"engines": {
|
|
671
671
|
"node": ">=22.19.0"
|
|
672
672
|
}
|
|
673
673
|
},
|
|
674
674
|
"node_modules/@bastani/atomic-telemetry": {
|
|
675
|
-
"version": "0.9.89-alpha.
|
|
676
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-telemetry/-/atomic-telemetry-0.9.89-alpha.
|
|
675
|
+
"version": "0.9.89-alpha.2",
|
|
676
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-telemetry/-/atomic-telemetry-0.9.89-alpha.2.tgz",
|
|
677
677
|
"license": "MIT",
|
|
678
678
|
"engines": {
|
|
679
679
|
"node": ">=22.19.0"
|
|
680
680
|
}
|
|
681
681
|
},
|
|
682
682
|
"node_modules/@bastani/atomic-tui": {
|
|
683
|
-
"version": "0.9.89-alpha.
|
|
684
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-tui/-/atomic-tui-0.9.89-alpha.
|
|
683
|
+
"version": "0.9.89-alpha.2",
|
|
684
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-tui/-/atomic-tui-0.9.89-alpha.2.tgz",
|
|
685
685
|
"license": "MIT",
|
|
686
686
|
"dependencies": {
|
|
687
687
|
"get-east-asian-width": "1.7.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.89-alpha.
|
|
3
|
+
"version": "0.9.89-alpha.2",
|
|
4
4
|
"description": "Atomic coding agent CLI with read, bash, edit, write tools and session management",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"atomicConfig": {
|
|
@@ -91,11 +91,11 @@
|
|
|
91
91
|
"prepublishOnly": "bun run clean && bun run build && bun run shrinkwrap"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@bastani/atomic-natives": "0.9.89-alpha.
|
|
95
|
-
"@bastani/atomic-ai": "0.9.89-alpha.
|
|
96
|
-
"@bastani/atomic-agent-core": "0.9.89-alpha.
|
|
97
|
-
"@bastani/atomic-codemode": "0.9.89-alpha.
|
|
98
|
-
"@bastani/atomic-tui": "0.9.89-alpha.
|
|
94
|
+
"@bastani/atomic-natives": "0.9.89-alpha.2",
|
|
95
|
+
"@bastani/atomic-ai": "0.9.89-alpha.2",
|
|
96
|
+
"@bastani/atomic-agent-core": "0.9.89-alpha.2",
|
|
97
|
+
"@bastani/atomic-codemode": "0.9.89-alpha.2",
|
|
98
|
+
"@bastani/atomic-tui": "0.9.89-alpha.2",
|
|
99
99
|
"@modelcontextprotocol/ext-apps": "^2.0.4",
|
|
100
100
|
"@modelcontextprotocol/sdk": "1.32.2",
|
|
101
101
|
"@mozilla/readability": "^0.6.0",
|
|
@@ -243,6 +243,10 @@
|
|
|
243
243
|
"$ref": "#/$defs/KeybindingValue",
|
|
244
244
|
"description": "Input to selected task"
|
|
245
245
|
},
|
|
246
|
+
"app.tasks.openWaited": {
|
|
247
|
+
"$ref": "#/$defs/KeybindingValue",
|
|
248
|
+
"description": "Open the output of the shell a waiting subagent waits on"
|
|
249
|
+
},
|
|
246
250
|
"app.nav.back": {
|
|
247
251
|
"$ref": "#/$defs/KeybindingValue",
|
|
248
252
|
"description": "Go back one level from an empty prompt"
|