@bastani/atomic 0.9.38 → 0.9.39-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 +19 -0
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/index.bundle.mjs +216 -2
- package/dist/builtin/intercom/package.json +1 -1
- 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 +16 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +14 -0
- package/dist/builtin/workflows/package.json +3 -3
- package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +2 -15
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +593 -131
- package/dist/builtin/workflows/src/index.js +301 -27
- package/dist/cli.js +13 -6
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +1 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/config.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +4 -1
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +1 -0
- package/dist/core/agent-session-methods.d.ts.map +1 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session-types.d.ts +1 -0
- package/dist/core/agent-session-types.d.ts.map +1 -1
- package/dist/core/agent-session-types.js.map +1 -1
- package/dist/core/agent-session.d.ts +1 -0
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +2 -0
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/export-html/index.d.ts.map +1 -1
- package/dist/core/export-html/index.js +13 -10
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/extensions/api-types.d.ts +2 -0
- package/dist/core/extensions/api-types.d.ts.map +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/context-types.d.ts +5 -0
- package/dist/core/extensions/context-types.d.ts.map +1 -1
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +4 -0
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +1 -0
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +3 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +1 -0
- package/dist/core/extensions/runtime-types.d.ts.map +1 -1
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/extensions/ui-types.d.ts +6 -0
- package/dist/core/extensions/ui-types.d.ts.map +1 -1
- package/dist/core/extensions/ui-types.js +10 -0
- package/dist/core/extensions/ui-types.js.map +1 -1
- package/dist/core/sdk-types.d.ts +7 -1
- package/dist/core/sdk-types.d.ts.map +1 -1
- package/dist/core/sdk-types.js.map +1 -1
- package/dist/core/sdk.js +1 -0
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +1 -0
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +12 -0
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/storage/provider.d.ts +14 -0
- package/dist/core/storage/provider.d.ts.map +1 -1
- package/dist/core/storage/provider.js.map +1 -1
- package/dist/core/storage/session/legacy-session-store.d.ts +4 -1
- package/dist/core/storage/session/legacy-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/legacy-session-store.js +42 -2
- package/dist/core/storage/session/legacy-session-store.js.map +1 -1
- package/dist/core/storage/session/legacy-session-summary.d.ts +8 -0
- package/dist/core/storage/session/legacy-session-summary.d.ts.map +1 -1
- package/dist/core/storage/session/legacy-session-summary.js +42 -2
- package/dist/core/storage/session/legacy-session-summary.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-base.js +0 -1
- package/dist/modes/interactive/interactive-mode-base.js.map +1 -1
- package/dist/modes/interactive/interactive-tui.d.ts +0 -1
- package/dist/modes/interactive/interactive-tui.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-tui.js +8 -13
- package/dist/modes/interactive/interactive-tui.js.map +1 -1
- package/dist/modes/interactive/program-status-reporter.d.ts +0 -1
- package/dist/modes/interactive/program-status-reporter.d.ts.map +1 -1
- package/dist/modes/interactive/program-status-reporter.js +0 -4
- package/dist/modes/interactive/program-status-reporter.js.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/create-isolated-runtime.js +2 -0
- package/dist/modes/interactive-engine/create-isolated-runtime.js.map +1 -1
- package/dist/modes/interactive-engine/engine-heap.d.ts +24 -0
- package/dist/modes/interactive-engine/engine-heap.d.ts.map +1 -0
- package/dist/modes/interactive-engine/engine-heap.js +88 -0
- package/dist/modes/interactive-engine/engine-heap.js.map +1 -0
- package/dist/modes/rpc/rpc-client-api.d.ts +1 -0
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +3 -0
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +7 -0
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +9 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/dist/utils/heap-relaunch.d.ts +14 -0
- package/dist/utils/heap-relaunch.d.ts.map +1 -0
- package/dist/utils/heap-relaunch.js +59 -0
- package/dist/utils/heap-relaunch.js.map +1 -0
- package/docs/environment-variables.md +2 -1
- package/docs/intercom/reference.md +1 -1
- package/docs/rpc/protocol.md +23 -0
- package/docs/sdk/web-server.md +1 -1
- package/docs/sdk.md +10 -1
- package/docs/session-format.md +1 -0
- package/docs/sessions.md +2 -0
- package/docs/settings.md +1 -1
- package/docs/workflows/api-reference.md +1 -1
- package/docs/workflows/operations.md +5 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +4 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface TerminalState {
|
|
2
|
+
readonly stdinIsTTY: boolean;
|
|
3
|
+
readonly stdoutIsTTY: boolean;
|
|
4
|
+
}
|
|
5
|
+
/** Mirrors `resolveAppMode`: rpc, json and print modes, including print selected by piped input or output. */
|
|
6
|
+
export declare function isHeadlessInvocation(args: readonly string[], terminal: TerminalState): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Heap flags a headless run on Node should be relaunched with, or none. Interactive sessions size their engine
|
|
9
|
+
* child instead, and a process that was already relaunched or started with an explicit heap size keeps its own.
|
|
10
|
+
*/
|
|
11
|
+
export declare function headlessHeapRelaunchArgs(args: readonly string[]): string[];
|
|
12
|
+
/** Runs this CLI again with the heap flags, passing through stdio, termination signals and the exit status. */
|
|
13
|
+
export declare function relaunchWithHeap(heapArgs: readonly string[], args: readonly string[]): void;
|
|
14
|
+
//# sourceMappingURL=heap-relaunch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heap-relaunch.d.ts","sourceRoot":"","sources":["../../src/utils/heap-relaunch.ts"],"names":[],"mappings":"AAUA,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC;CAC9B;AAED,8GAA8G;AAC9G,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,GAAG,OAAO,CAO9F;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAgB1E;AAED,+GAA+G;AAC/G,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI,CAkB3F"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { totalmem } from "node:os";
|
|
3
|
+
import { getHeapStatistics } from "node:v8";
|
|
4
|
+
import { ENV_HEAP_MB, getEnvValue } from "../config.js";
|
|
5
|
+
import { engineHeapRuntimeArgs } from "../modes/interactive-engine/engine-heap.js";
|
|
6
|
+
import { INTERACTIVE_ENGINE_BOOTSTRAP_FLAG } from "./interactive-engine-bootstrap.js";
|
|
7
|
+
const HEAP_RELAUNCHED_ENV = "ATOMIC_INTERNAL_HEAP_RELAUNCHED";
|
|
8
|
+
const HEAP_FLAG = /^--max[-_]old[-_]space[-_]size(?:=|$)/;
|
|
9
|
+
/** Mirrors `resolveAppMode`: rpc, json and print modes, including print selected by piped input or output. */
|
|
10
|
+
export function isHeadlessInvocation(args, terminal) {
|
|
11
|
+
if (args.includes(INTERACTIVE_ENGINE_BOOTSTRAP_FLAG) || args.includes("--help") || args.includes("-h"))
|
|
12
|
+
return false;
|
|
13
|
+
const explicit = args.some((arg, index) => arg === "-p" || arg === "--print" || (arg === "--mode" && ["json", "rpc"].includes(args[index + 1] ?? "")));
|
|
14
|
+
return explicit || !terminal.stdinIsTTY || !terminal.stdoutIsTTY;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Heap flags a headless run on Node should be relaunched with, or none. Interactive sessions size their engine
|
|
18
|
+
* child instead, and a process that was already relaunched or started with an explicit heap size keeps its own.
|
|
19
|
+
*/
|
|
20
|
+
export function headlessHeapRelaunchArgs(args) {
|
|
21
|
+
const terminal = { stdinIsTTY: process.stdin.isTTY === true, stdoutIsTTY: process.stdout.isTTY === true };
|
|
22
|
+
if (process.env[HEAP_RELAUNCHED_ENV] !== undefined) {
|
|
23
|
+
delete process.env[HEAP_RELAUNCHED_ENV];
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
if (!isHeadlessInvocation(args, terminal) || process.execArgv.some((arg) => HEAP_FLAG.test(arg)))
|
|
27
|
+
return [];
|
|
28
|
+
return engineHeapRuntimeArgs({
|
|
29
|
+
runsOnNode: !("bun" in process.versions),
|
|
30
|
+
totalMemoryBytes: totalmem(),
|
|
31
|
+
constrainedMemoryBytes: process.constrainedMemory(),
|
|
32
|
+
currentHeapLimitBytes: getHeapStatistics().heap_size_limit,
|
|
33
|
+
nodeOptions: process.env.NODE_OPTIONS,
|
|
34
|
+
execArgv: [],
|
|
35
|
+
configuredHeapMb: getEnvValue(ENV_HEAP_MB),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/** Runs this CLI again with the heap flags, passing through stdio, termination signals and the exit status. */
|
|
39
|
+
export function relaunchWithHeap(heapArgs, args) {
|
|
40
|
+
const child = spawn(process.execPath, [...heapArgs, ...process.execArgv, process.argv[1], ...args], {
|
|
41
|
+
stdio: "inherit",
|
|
42
|
+
env: { ...process.env, [HEAP_RELAUNCHED_ENV]: "1" },
|
|
43
|
+
});
|
|
44
|
+
for (const signal of ["SIGINT", "SIGTERM", "SIGHUP"])
|
|
45
|
+
process.on(signal, () => child.kill(signal));
|
|
46
|
+
child.on("error", (error) => {
|
|
47
|
+
process.stderr.write(`Failed to start Atomic with a larger heap: ${error.message}\n`);
|
|
48
|
+
process.exit(1);
|
|
49
|
+
});
|
|
50
|
+
child.on("exit", (code, signal) => {
|
|
51
|
+
if (signal) {
|
|
52
|
+
process.removeAllListeners(signal);
|
|
53
|
+
process.kill(process.pid, signal);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
process.exit(code ?? 1);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=heap-relaunch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heap-relaunch.js","sourceRoot":"","sources":["../../src/utils/heap-relaunch.ts"],"names":[],"mappings":"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","sourcesContent":["import { spawn } from \"node:child_process\";\nimport { totalmem } from \"node:os\";\nimport { getHeapStatistics } from \"node:v8\";\nimport { ENV_HEAP_MB, getEnvValue } from \"../config.js\";\nimport { engineHeapRuntimeArgs } from \"../modes/interactive-engine/engine-heap.ts\";\nimport { INTERACTIVE_ENGINE_BOOTSTRAP_FLAG } from \"./interactive-engine-bootstrap.ts\";\n\nconst HEAP_RELAUNCHED_ENV = \"ATOMIC_INTERNAL_HEAP_RELAUNCHED\";\nconst HEAP_FLAG = /^--max[-_]old[-_]space[-_]size(?:=|$)/;\n\nexport interface TerminalState {\n\treadonly stdinIsTTY: boolean;\n\treadonly stdoutIsTTY: boolean;\n}\n\n/** Mirrors `resolveAppMode`: rpc, json and print modes, including print selected by piped input or output. */\nexport function isHeadlessInvocation(args: readonly string[], terminal: TerminalState): boolean {\n\tif (args.includes(INTERACTIVE_ENGINE_BOOTSTRAP_FLAG) || args.includes(\"--help\") || args.includes(\"-h\")) return false;\n\tconst explicit = args.some(\n\t\t(arg, index) =>\n\t\t\targ === \"-p\" || arg === \"--print\" || (arg === \"--mode\" && [\"json\", \"rpc\"].includes(args[index + 1] ?? \"\")),\n\t);\n\treturn explicit || !terminal.stdinIsTTY || !terminal.stdoutIsTTY;\n}\n\n/**\n * Heap flags a headless run on Node should be relaunched with, or none. Interactive sessions size their engine\n * child instead, and a process that was already relaunched or started with an explicit heap size keeps its own.\n */\nexport function headlessHeapRelaunchArgs(args: readonly string[]): string[] {\n\tconst terminal = { stdinIsTTY: process.stdin.isTTY === true, stdoutIsTTY: process.stdout.isTTY === true };\n\tif (process.env[HEAP_RELAUNCHED_ENV] !== undefined) {\n\t\tdelete process.env[HEAP_RELAUNCHED_ENV];\n\t\treturn [];\n\t}\n\tif (!isHeadlessInvocation(args, terminal) || process.execArgv.some((arg) => HEAP_FLAG.test(arg))) return [];\n\treturn engineHeapRuntimeArgs({\n\t\trunsOnNode: !(\"bun\" in process.versions),\n\t\ttotalMemoryBytes: totalmem(),\n\t\tconstrainedMemoryBytes: process.constrainedMemory(),\n\t\tcurrentHeapLimitBytes: getHeapStatistics().heap_size_limit,\n\t\tnodeOptions: process.env.NODE_OPTIONS,\n\t\texecArgv: [],\n\t\tconfiguredHeapMb: getEnvValue(ENV_HEAP_MB),\n\t});\n}\n\n/** Runs this CLI again with the heap flags, passing through stdio, termination signals and the exit status. */\nexport function relaunchWithHeap(heapArgs: readonly string[], args: readonly string[]): void {\n\tconst child = spawn(process.execPath, [...heapArgs, ...process.execArgv, process.argv[1]!, ...args], {\n\t\tstdio: \"inherit\",\n\t\tenv: { ...process.env, [HEAP_RELAUNCHED_ENV]: \"1\" },\n\t});\n\tfor (const signal of [\"SIGINT\", \"SIGTERM\", \"SIGHUP\"] as const) process.on(signal, () => child.kill(signal));\n\tchild.on(\"error\", (error) => {\n\t\tprocess.stderr.write(`Failed to start Atomic with a larger heap: ${error.message}\\n`);\n\t\tprocess.exit(1);\n\t});\n\tchild.on(\"exit\", (code, signal) => {\n\t\tif (signal) {\n\t\t\tprocess.removeAllListeners(signal);\n\t\t\tprocess.kill(process.pid, signal);\n\t\t\treturn;\n\t\t}\n\t\tprocess.exit(code ?? 1);\n\t});\n}\n"]}
|
|
@@ -15,7 +15,8 @@ Atomic accepts environment variables for configuration, provider credentials, an
|
|
|
15
15
|
| `ATOMIC_REDUCED_MOTION` | `PI_REDUCED_MOTION` | Use static reduced-motion presentation |
|
|
16
16
|
| `ATOMIC_EXPERIMENTAL` | `PI_EXPERIMENTAL` | Set to `1` to enable experimental features and preferred strict JSON-schema constrained sampling for additional built-in tools; `read`, `edit`, `write`, `bash`, and PowerShell already prefer strict sampling by default. The footer shows an `xp` badge |
|
|
17
17
|
| `ATOMIC_CLIPBOARD_OSC52` | `PI_CLIPBOARD_OSC52` | Set to `1` to also send copied text to the terminal with OSC 52 after the local clipboard write, as Atomic does over SSH. Use it when a remote client reaches Atomic without SSH variables, such as a multiplexer attached from another machine or a remote IDE daemon |
|
|
18
|
-
| `ATOMIC_WORKFLOW_JOURNAL_PATH` | None | Non-empty value selects the local SQLite workflow journal file; overrides `workflows.journal` settings, but not SDK `RunOpts.journal` |
|
|
18
|
+
| `ATOMIC_WORKFLOW_JOURNAL_PATH` | None | Non-empty value selects the local SQLite workflow journal file; overrides `workflows.journal` settings, but not SDK `RunOpts.journal` or `createAgentSession({ journal })` |
|
|
19
|
+
| `ATOMIC_HEAP_MB` | `PI_HEAP_MB` | Heap size in MiB for the Atomic process that runs agents when Atomic runs on Node (npm installs): the interactive engine, or a headless run (`-p`, `--mode json`, `--mode rpc`), which restarts itself once with the larger heap. By default it gets half of system memory when that is more than Node's default limit, because every in-process subagent and workflow stage shares that heap. `0` keeps Node's default. A `--max-old-space-size` in `NODE_OPTIONS` or on Atomic's own command line takes precedence. The standalone binary does not use this value |
|
|
19
20
|
|
|
20
21
|
`VISUAL` and `EDITOR` select the Ctrl+G external editor when `externalEditor` is unset.
|
|
21
22
|
|
|
@@ -167,6 +167,6 @@ Config validation is strict: every field is checked, and if the file is not vali
|
|
|
167
167
|
|
|
168
168
|
Intercom publishes live session status automatically: sessions register as `idle`, switch to `thinking` while the agent is running, show `tool:<name>` during tool execution, and return to `idle` on completion. A configured `status` is appended as context instead of replacing the lifecycle status.
|
|
169
169
|
|
|
170
|
-
Activity is not reply capability. Session rows include `replyCapability: live` or `terminal` when the host supplies it; terminal noninteractive children cannot answer asks even if activity says `idle`. Closed workflow generations show `closed · reply: post-mortem only` when a late-message router is present, or `closed · reply: unavailable` without one. Post-mortem routing still validates the retained conversation and can return a bounded error if it is unavailable; it never resumes workflow execution. Missing capability metadata is not a guarantee that an ask can succeed. Invocation/subgroup visibility and stale-ID rejection are unchanged.
|
|
170
|
+
Activity is not reply capability. Session rows include `replyCapability: live` or `terminal` when the host supplies it; terminal noninteractive children cannot answer asks even if activity says `idle`. Closed workflow generations show `closed · reply: post-mortem only` when a late-message router is present, or `closed · reply: unavailable` without one. Post-mortem routing still validates the retained conversation and can return a bounded error if it is unavailable; it never resumes workflow execution. Missing capability metadata is not a guarantee that an ask can succeed. A workflow stage released from memory when its run ended keeps a listing with the same status for as long as the session that ran the workflow is open; an ask to it reopens the saved conversation for one turn and returns that turn's final answer, and a plain send reaches the session that ran the workflow. Invocation/subgroup visibility and stale-ID rejection are unchanged.
|
|
171
171
|
|
|
172
172
|
For a retained post-mortem conversation, use its exact Intercom session ID or the previously listed canonical stage path, including its final-stage-name variant. Alternate materialized run-ID paths resolve active stages through the workflow owner; they are not retained aliases after the stage completes. A stage marked `reply: unavailable` rejects an ask with guidance to contact a live stage or start new work with explicit context.
|
package/docs/rpc/protocol.md
CHANGED
|
@@ -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
|
package/docs/sdk/web-server.md
CHANGED
|
@@ -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
|
-
|
|
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
|
|
package/docs/session-format.md
CHANGED
|
@@ -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
|
|
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
|
|
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`
|
|
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
|
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/atomic",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.39-alpha.2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@bastani/atomic",
|
|
9
|
-
"version": "0.9.
|
|
9
|
+
"version": "0.9.39-alpha.2",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@bastani/atomic-natives": "0.9.
|
|
13
|
-
"@bastani/pi-ai": "0.9.
|
|
12
|
+
"@bastani/atomic-natives": "0.9.39-alpha.2",
|
|
13
|
+
"@bastani/pi-ai": "0.9.39-alpha.2",
|
|
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.
|
|
431
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.
|
|
430
|
+
"version": "0.9.39-alpha.2",
|
|
431
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives/-/atomic-natives-0.9.39-alpha.2.tgz",
|
|
432
432
|
"license": "MIT",
|
|
433
433
|
"optionalDependencies": {
|
|
434
|
-
"@bastani/atomic-natives-darwin-arm64": "0.9.
|
|
435
|
-
"@bastani/atomic-natives-darwin-x64": "0.9.
|
|
436
|
-
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.
|
|
437
|
-
"@bastani/atomic-natives-linux-arm64-musl": "0.9.
|
|
438
|
-
"@bastani/atomic-natives-linux-x64-gnu": "0.9.
|
|
439
|
-
"@bastani/atomic-natives-linux-x64-musl": "0.9.
|
|
440
|
-
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.
|
|
441
|
-
"@bastani/atomic-natives-win32-x64-msvc": "0.9.
|
|
434
|
+
"@bastani/atomic-natives-darwin-arm64": "0.9.39-alpha.2",
|
|
435
|
+
"@bastani/atomic-natives-darwin-x64": "0.9.39-alpha.2",
|
|
436
|
+
"@bastani/atomic-natives-linux-arm64-gnu": "0.9.39-alpha.2",
|
|
437
|
+
"@bastani/atomic-natives-linux-arm64-musl": "0.9.39-alpha.2",
|
|
438
|
+
"@bastani/atomic-natives-linux-x64-gnu": "0.9.39-alpha.2",
|
|
439
|
+
"@bastani/atomic-natives-linux-x64-musl": "0.9.39-alpha.2",
|
|
440
|
+
"@bastani/atomic-natives-win32-arm64-msvc": "0.9.39-alpha.2",
|
|
441
|
+
"@bastani/atomic-natives-win32-x64-msvc": "0.9.39-alpha.2"
|
|
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.
|
|
450
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.
|
|
449
|
+
"version": "0.9.39-alpha.2",
|
|
450
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-arm64/-/atomic-natives-darwin-arm64-0.9.39-alpha.2.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.
|
|
462
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.
|
|
461
|
+
"version": "0.9.39-alpha.2",
|
|
462
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-darwin-x64/-/atomic-natives-darwin-x64-0.9.39-alpha.2.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.
|
|
474
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.
|
|
473
|
+
"version": "0.9.39-alpha.2",
|
|
474
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-gnu/-/atomic-natives-linux-arm64-gnu-0.9.39-alpha.2.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.
|
|
489
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.
|
|
488
|
+
"version": "0.9.39-alpha.2",
|
|
489
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-arm64-musl/-/atomic-natives-linux-arm64-musl-0.9.39-alpha.2.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.
|
|
504
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.
|
|
503
|
+
"version": "0.9.39-alpha.2",
|
|
504
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-gnu/-/atomic-natives-linux-x64-gnu-0.9.39-alpha.2.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.
|
|
519
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.
|
|
518
|
+
"version": "0.9.39-alpha.2",
|
|
519
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-linux-x64-musl/-/atomic-natives-linux-x64-musl-0.9.39-alpha.2.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.
|
|
534
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.
|
|
533
|
+
"version": "0.9.39-alpha.2",
|
|
534
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-arm64-msvc/-/atomic-natives-win32-arm64-msvc-0.9.39-alpha.2.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.
|
|
546
|
-
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.
|
|
545
|
+
"version": "0.9.39-alpha.2",
|
|
546
|
+
"resolved": "https://registry.npmjs.org/@bastani/atomic-natives-win32-x64-msvc/-/atomic-natives-win32-x64-msvc-0.9.39-alpha.2.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.
|
|
558
|
-
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.
|
|
557
|
+
"version": "0.9.39-alpha.2",
|
|
558
|
+
"resolved": "https://registry.npmjs.org/@bastani/pi-ai/-/pi-ai-0.9.39-alpha.2.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.
|
|
3
|
+
"version": "0.9.39-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": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"scripts": {
|
|
71
71
|
"clean": "shx rm -rf dist",
|
|
72
72
|
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput",
|
|
73
|
-
"typecheck": "
|
|
73
|
+
"typecheck": "node ../../scripts/bun-typecheck.mjs -p tsconfig.build.json && node ../../scripts/bun-typecheck.mjs -p tsconfig.typetests.json",
|
|
74
74
|
"build": "tsc -p tsconfig.build.json && node scripts/build-codemode-worker.mjs && shx chmod +x dist/cli.js dist/rpc-entry.js && bun run copy-assets",
|
|
75
75
|
"bundle:dev": "bun build src/bun/cli.ts --target=bun --minify --external mupdf --define process.env.ATOMIC_BUNDLED_BUILD=\"'1'\" --outfile dist-dev/cli.js && bun build src/extensions/codemode/worker.ts --target=bun --format=esm --outfile dist-dev/codemode-worker.js && shx cp ../../node_modules/quickjs-wasi/quickjs.wasm dist-dev/",
|
|
76
76
|
"start:fast": "bun run bundle:dev && bun dist-dev/cli.js",
|
|
@@ -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.
|
|
93
|
-
"@bastani/pi-ai": "0.9.
|
|
92
|
+
"@bastani/atomic-natives": "0.9.39-alpha.2",
|
|
93
|
+
"@bastani/pi-ai": "0.9.39-alpha.2",
|
|
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",
|