@bastani/atomic 0.9.68 → 0.9.69
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 +68 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +20 -0
- package/dist/builtin/workflows/builtin/{chunk-95r61ve5.js → chunk-3gk3k003.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-qbthhjjk.js → chunk-6bgw5p0e.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-rv4xxwd6.js → chunk-k8930apc.js} +101 -37
- package/dist/builtin/workflows/builtin/goal.js +2 -2
- package/dist/builtin/workflows/builtin/index.js +3 -3
- package/dist/builtin/workflows/builtin/ralph.js +2 -2
- package/dist/builtin/workflows/package.json +1 -1
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +740 -453
- package/dist/builtin/workflows/src/extension/local-worker-entry.mjs +563 -280
- package/dist/builtin/workflows/src/index.js +549 -266
- package/dist/builtin/workflows/src/local-worker-entry.mjs +563 -280
- package/dist/core/agent-session-boundaries.d.ts.map +1 -1
- package/dist/core/agent-session-boundaries.js +14 -1
- package/dist/core/agent-session-boundaries.js.map +1 -1
- package/dist/core/agent-session-events.d.ts +6 -0
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +99 -20
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-held-input.d.ts +44 -0
- package/dist/core/agent-session-held-input.d.ts.map +1 -0
- package/dist/core/agent-session-held-input.js +76 -0
- package/dist/core/agent-session-held-input.js.map +1 -0
- package/dist/core/agent-session-message-queue.d.ts +6 -2
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +29 -7
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +4 -2
- 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-persistence-failures.d.ts +19 -0
- package/dist/core/agent-session-persistence-failures.d.ts.map +1 -0
- package/dist/core/agent-session-persistence-failures.js +39 -0
- package/dist/core/agent-session-persistence-failures.js.map +1 -0
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +3 -0
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-post-tool-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-post-tool-compaction.js +5 -1
- package/dist/core/agent-session-post-tool-compaction.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +156 -16
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-tool-hooks.d.ts.map +1 -1
- package/dist/core/agent-session-tool-hooks.js +14 -3
- package/dist/core/agent-session-tool-hooks.js.map +1 -1
- package/dist/core/agent-session.d.ts +5 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -1
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts +3 -0
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +10 -2
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +1 -0
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/workflow-run-control.d.ts +6 -0
- package/dist/core/extensions/workflow-run-control.d.ts.map +1 -1
- package/dist/core/extensions/workflow-run-control.js.map +1 -1
- package/dist/core/queued-input-admission.d.ts +2 -0
- package/dist/core/queued-input-admission.d.ts.map +1 -1
- package/dist/core/queued-input-admission.js +4 -0
- package/dist/core/queued-input-admission.js.map +1 -1
- package/dist/core/storage/errors.d.ts +2 -0
- package/dist/core/storage/errors.d.ts.map +1 -1
- package/dist/core/storage/errors.js +9 -0
- package/dist/core/storage/errors.js.map +1 -1
- package/dist/core/storage/storage-status.d.ts +2 -2
- package/dist/core/storage/storage-status.d.ts.map +1 -1
- package/dist/core/storage/storage-status.js +2 -10
- package/dist/core/storage/storage-status.js.map +1 -1
- package/dist/core/system-prompt.d.ts.map +1 -1
- package/dist/core/system-prompt.js +16 -3
- package/dist/core/system-prompt.js.map +1 -1
- package/dist/core/tools/conflict-registry.d.ts +17 -0
- package/dist/core/tools/conflict-registry.d.ts.map +1 -1
- package/dist/core/tools/conflict-registry.js +80 -0
- package/dist/core/tools/conflict-registry.js.map +1 -1
- package/dist/core/tools/find.d.ts.map +1 -1
- package/dist/core/tools/find.js +23 -4
- package/dist/core/tools/find.js.map +1 -1
- package/dist/core/tools/history-protocol.d.ts +29 -0
- package/dist/core/tools/history-protocol.d.ts.map +1 -0
- package/dist/core/tools/history-protocol.js +438 -0
- package/dist/core/tools/history-protocol.js.map +1 -0
- package/dist/core/tools/read.d.ts.map +1 -1
- package/dist/core/tools/read.js +4 -4
- package/dist/core/tools/read.js.map +1 -1
- package/dist/core/tools/resource-selectors.d.ts +28 -0
- package/dist/core/tools/resource-selectors.d.ts.map +1 -1
- package/dist/core/tools/resource-selectors.js +73 -13
- package/dist/core/tools/resource-selectors.js.map +1 -1
- package/dist/core/tools/search-line-ranges.d.ts +5 -0
- package/dist/core/tools/search-line-ranges.d.ts.map +1 -1
- package/dist/core/tools/search-line-ranges.js +7 -3
- package/dist/core/tools/search-line-ranges.js.map +1 -1
- package/dist/core/tools/search.d.ts.map +1 -1
- package/dist/core/tools/search.js +5 -5
- package/dist/core/tools/search.js.map +1 -1
- package/dist/core/tools/shell-plain-words.d.ts +8 -0
- package/dist/core/tools/shell-plain-words.d.ts.map +1 -0
- package/dist/core/tools/shell-plain-words.js +139 -0
- package/dist/core/tools/shell-plain-words.js.map +1 -0
- package/dist/core/tools/write.d.ts.map +1 -1
- package/dist/core/tools/write.js +8 -45
- package/dist/core/tools/write.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +4 -0
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-process-lifecycle.js +4 -0
- package/dist/modes/interactive/interactive-process-lifecycle.js.map +1 -1
- package/dist/modes/interactive/interactive-queueing.d.ts +9 -1
- package/dist/modes/interactive/interactive-queueing.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-queueing.js +82 -9
- package/dist/modes/interactive/interactive-queueing.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +15 -0
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +5 -1
- package/dist/modes/print-mode.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts +6 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +16 -1
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-mode.js +1 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -1
- package/docs/compaction.md +1 -1
- package/docs/extensions/api-reference.md +3 -1
- package/docs/rpc/protocol.md +1 -1
- package/docs/sdk.md +3 -1
- package/docs/sessions.md +17 -0
- package/docs/storage.md +2 -0
- package/docs/tools.md +8 -4
- package/docs/usage.md +1 -1
- package/npm-shrinkwrap.json +75 -53
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,74 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [0.9.69] - 2026-11-03
|
|
6
|
+
|
|
7
|
+
A fresh session can now look up your earlier sessions and workflow runs through `history://`. UI commands such as `/workflow connect` and `/settings` no longer wait for compaction, and a message that cannot be saved now stops the run with an error instead of failing silently.
|
|
8
|
+
|
|
9
|
+
- **Recall past work:** `read` and `search` accept `history://sessions` and `history://workflows` for the current project, and the default system prompt tells the agent to use them. They work with every session and workflow store, custom stores included ([#4256](https://github.com/bastani-inc/atomic/pull/4256))
|
|
10
|
+
- **Commands during compaction:** slash commands that do not send a prompt run immediately while a session compacts. Prompts, templates, skills and messages that commands send still wait, and go out in the order you typed them ([#4253](https://github.com/bastani-inc/atomic/pull/4253))
|
|
11
|
+
- **Unsaved messages stop the run:** when a message cannot be written to the session file, for example after another process wrote to it, the run reports the cause once and sends no further model request, and `-p` exits 1 ([#4247](https://github.com/bastani-inc/atomic/pull/4247), [#4255](https://github.com/bastani-inc/atomic/pull/4255))
|
|
12
|
+
- **Internal URLs:** `bash` no longer rejects commands whose quoted text mentions a scheme such as `local://`, and the unimplemented schemes are gone ([#4256](https://github.com/bastani-inc/atomic/pull/4256))
|
|
13
|
+
- **Long-running hosts:** child completions and Intercom delivery no longer scan every run a workflow host has kept ([#4250](https://github.com/bastani-inc/atomic/pull/4250))
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- `read` and `search` accept `history://` URLs for the current project's past sessions and workflow runs, so the agent can recall earlier work in a fresh session. `history://sessions` and `history://workflows` list recent records, `history://sessions/<id>` and `history://workflows/<runId>` open one (with `:N-M` line ranges), and `search` over `history://` finds text across them, including the transcripts of each run's stages, one page of records at a time, with the URL that continues it. `?limit=N` (up to 200) and `?offset=N` reach every record, and transcripts are never shortened: a long line is split so every part can be read. They read through the configured session store and workflow journal, so they work with the default SQLite store, JSONL directories, memory and custom SDK stores alike. Other projects' sessions appear only with `?project=all` or `?project=<dir>`. The default system prompt now tells the agent to recall earlier work this way when you refer to it, instead of searching storage files on disk ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
18
|
+
- `WorkflowRunControl` has an optional `listProjectRuns()` that lists every top-level run recorded for the current project directory, including runs the user started with `/workflow` that `listRuns({ includeDurable: true })` leaves out because no model session owns them, and finished or cancelled runs that recorded no checkpoints. The bundled workflows extension implements it, and `history://workflows` uses it ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
19
|
+
- `read` and `search` accept `conflict://*`, `conflict://<id>` and `conflict://<id>/ours|theirs|base` to show merge conflict regions with the same ids `write` resolves ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- `read`, `search`, `write`, `find` and `bash` now share one list of internal URL schemes: `skill://`, `local://`, `artifact://`, `conflict://` and `history://`. The other schemes the old lists named (`omp://`, `agent://`, `issue://`, `memory://`, `pr://`, `rule://`, `mcp://`, `vault://`) were never implemented; `read`, `search` and `write` now report them as unsupported, and `bash` leaves them as text ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
24
|
+
- Writing to a `skill://`, `artifact://` or `history://` URL now fails with a read-only error instead of an unsupported-resource error (for `skill://`, it used to overwrite an existing skill's `SKILL.md`) ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- `bash` no longer rejects a whole command when quoted text merely mentions an internal scheme, such as a `gh issue comment --body "…`local://`…"`. Internal URLs expand only in plain shell words; URLs inside quotes, heredocs, comments, escapes and command substitutions run unchanged ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
29
|
+
- `find` with a glob under a bare `skill://<name>` now searches the skill's directory instead of failing with "Search path must be a directory" ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
30
|
+
- Completing or failing a pooled child, routing, queueing or draining an Intercom message for a stage or a pattern, and the route announcement and undeliverable-message check that follow a change to one run, no longer scan every run in the workflow store. Each finds the runs it needs by id or through the run's parent and child links, so a long-lived host with thousands of finished runs no longer spends main-thread time proportional to its history on each child completion or message. A pattern broadcast still matches against every live stage of its own invocation, and a change that adds, removes or relinks a run, or is not tied to one run, still announces every route ([#4190](https://github.com/bastani-inc/atomic/issues/4190))
|
|
31
|
+
- A message that cannot be saved to the session now stops the run and says why: `could not persist the assistant message: <cause>`, where the cause is, for example, `Session conflict: …` after another process wrote to the same session file, or the file system error behind a failed write. Before, the failure was dropped silently. The only sign was `turn_end could not resolve the persisted assistant entry ID`, repeated for every later reply; the run kept sending the model a context without its unsaved messages, and then ended as `Model <model> failed: <storage error>` or a prompt never returned. Now the run sends no further model request, and nothing is retried or continued on top of the unsaved message. `atomic -p` and `--mode json` exit 1, and `-p` still prints the answer it received. An interactive session shows the error and stays open; before, interactive mode dropped every extension error raised in its engine process, this one included. Messages that could not be saved are still missing from the session file ([#4226](https://github.com/bastani-inc/atomic/issues/4226))
|
|
32
|
+
- A custom message that cannot be saved now stops the run in the same way, with one `could not persist the custom message: <cause>` error. Two kinds of custom message skipped that stop. The first is a notice sent with `persistWhenStreaming`, as workflow and background-task notices are, that arrives while the agent is answering. When the hidden copy the model reads could not be saved, the error was dropped and the run sent another model request. The error that surfaced later blamed the assistant reply. The second is a message an extension sends with `triggerTurn: false` while the agent is answering. A failed save reported nothing, and the end of the run tried the same save again and rejected `prompt()` with the storage error. A `turn_end` handler that asked to continue got another model request first. Now neither sends a further model request, `prompt()` resolves, and `atomic -p` and `--mode json` exit 1. A failed write of a notice's hidden copy now stops the run instead of being retried within it. The notice's saved card stays marked for replay when the session is resumed. The next prompt tries the write again, as does closing the session. If that last write fails too, closing fails with its cause and the session stays recoverable. A `triggerTurn: false` message that could not be saved waits for the next prompt ([#4254](https://github.com/bastani-inc/atomic/issues/4254))
|
|
33
|
+
- Slash commands that do not send a prompt no longer wait for compaction. During automatic compaction or `/compact`, extension commands such as `/workflow connect` and `/workflow status` were queued like messages until compaction finished. During `/compact`, `/tasks`, model changes and session commands such as `/new` waited as well, and `/tasks` could close Atomic with a timeout error after 30 seconds. These commands now run at once, and a session command such as `/new` cancels the compaction. Only input that becomes a model message waits: plain messages, steering and follow-up messages, prompt templates and skills. They are still sent after compaction, in the order you typed them. A message that a command sends while compaction runs, for example through `pi.sendUserMessage()`, also waits instead of starting a model turn against the transcript being compacted. It shows as queued, goes out once compaction ends after the messages typed before the command, and Alt+Up returns it to the editor ([#4251](https://github.com/bastani-inc/atomic/issues/4251))
|
|
34
|
+
|
|
35
|
+
### Removed
|
|
36
|
+
|
|
37
|
+
- The unimplemented `omp://`, `agent://`, `issue://`, `memory://`, `pr://`, `rule://`, `mcp://` and `vault://` internal URL schemes ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
38
|
+
|
|
39
|
+
## [0.9.69-alpha.1] - 2026-11-03
|
|
40
|
+
|
|
41
|
+
A fresh session can now look up your earlier sessions and workflow runs through `history://`. UI commands such as `/workflow connect` and `/settings` no longer wait for compaction, and a message that cannot be saved now stops the run with an error instead of failing silently.
|
|
42
|
+
|
|
43
|
+
- **Recall past work:** `read` and `search` accept `history://sessions` and `history://workflows` for the current project, and the default system prompt tells the agent to use them. They work with every session and workflow store, custom stores included ([#4256](https://github.com/bastani-inc/atomic/pull/4256))
|
|
44
|
+
- **Commands during compaction:** slash commands that do not send a prompt run immediately while a session compacts. Prompts, templates, skills and messages that commands send still wait, and go out in the order you typed them ([#4253](https://github.com/bastani-inc/atomic/pull/4253))
|
|
45
|
+
- **Unsaved messages stop the run:** when a message cannot be written to the session file, for example after another process wrote to it, the run reports the cause once and sends no further model request, and `-p` exits 1 ([#4247](https://github.com/bastani-inc/atomic/pull/4247), [#4255](https://github.com/bastani-inc/atomic/pull/4255))
|
|
46
|
+
- **Internal URLs:** `bash` no longer rejects commands whose quoted text mentions a scheme such as `local://`, and the unimplemented schemes are gone ([#4256](https://github.com/bastani-inc/atomic/pull/4256))
|
|
47
|
+
- **Long-running hosts:** child completions and Intercom delivery no longer scan every run a workflow host has kept ([#4250](https://github.com/bastani-inc/atomic/pull/4250))
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
|
|
51
|
+
- `read` and `search` accept `history://` URLs for the current project's past sessions and workflow runs, so the agent can recall earlier work in a fresh session. `history://sessions` and `history://workflows` list recent records, `history://sessions/<id>` and `history://workflows/<runId>` open one (with `:N-M` line ranges), and `search` over `history://` finds text across them, including the transcripts of each run's stages, one page of records at a time, with the URL that continues it. `?limit=N` (up to 200) and `?offset=N` reach every record, and transcripts are never shortened: a long line is split so every part can be read. They read through the configured session store and workflow journal, so they work with the default SQLite store, JSONL directories, memory and custom SDK stores alike. Other projects' sessions appear only with `?project=all` or `?project=<dir>`. The default system prompt now tells the agent to recall earlier work this way when you refer to it, instead of searching storage files on disk ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
52
|
+
- `WorkflowRunControl` has an optional `listProjectRuns()` that lists every top-level run recorded for the current project directory, including runs the user started with `/workflow` that `listRuns({ includeDurable: true })` leaves out because no model session owns them, and finished or cancelled runs that recorded no checkpoints. The bundled workflows extension implements it, and `history://workflows` uses it ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
53
|
+
- `read` and `search` accept `conflict://*`, `conflict://<id>` and `conflict://<id>/ours|theirs|base` to show merge conflict regions with the same ids `write` resolves ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
54
|
+
|
|
55
|
+
### Changed
|
|
56
|
+
|
|
57
|
+
- `read`, `search`, `write`, `find` and `bash` now share one list of internal URL schemes: `skill://`, `local://`, `artifact://`, `conflict://` and `history://`. The other schemes the old lists named (`omp://`, `agent://`, `issue://`, `memory://`, `pr://`, `rule://`, `mcp://`, `vault://`) were never implemented; `read`, `search` and `write` now report them as unsupported, and `bash` leaves them as text ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
58
|
+
- Writing to a `skill://`, `artifact://` or `history://` URL now fails with a read-only error instead of an unsupported-resource error (for `skill://`, it used to overwrite an existing skill's `SKILL.md`) ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
59
|
+
|
|
60
|
+
### Fixed
|
|
61
|
+
|
|
62
|
+
- `bash` no longer rejects a whole command when quoted text merely mentions an internal scheme, such as a `gh issue comment --body "…`local://`…"`. Internal URLs expand only in plain shell words; URLs inside quotes, heredocs, comments, escapes and command substitutions run unchanged ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
63
|
+
- `find` with a glob under a bare `skill://<name>` now searches the skill's directory instead of failing with "Search path must be a directory" ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
64
|
+
- Completing or failing a pooled child, routing, queueing or draining an Intercom message for a stage or a pattern, and the route announcement and undeliverable-message check that follow a change to one run, no longer scan every run in the workflow store. Each finds the runs it needs by id or through the run's parent and child links, so a long-lived host with thousands of finished runs no longer spends main-thread time proportional to its history on each child completion or message. A pattern broadcast still matches against every live stage of its own invocation, and a change that adds, removes or relinks a run, or is not tied to one run, still announces every route ([#4190](https://github.com/bastani-inc/atomic/issues/4190))
|
|
65
|
+
- A message that cannot be saved to the session now stops the run and says why: `could not persist the assistant message: <cause>`, where the cause is, for example, `Session conflict: …` after another process wrote to the same session file, or the file system error behind a failed write. Before, the failure was dropped silently. The only sign was `turn_end could not resolve the persisted assistant entry ID`, repeated for every later reply; the run kept sending the model a context without its unsaved messages, and then ended as `Model <model> failed: <storage error>` or a prompt never returned. Now the run sends no further model request, and nothing is retried or continued on top of the unsaved message. `atomic -p` and `--mode json` exit 1, and `-p` still prints the answer it received. An interactive session shows the error and stays open; before, interactive mode dropped every extension error raised in its engine process, this one included. Messages that could not be saved are still missing from the session file ([#4226](https://github.com/bastani-inc/atomic/issues/4226))
|
|
66
|
+
- A custom message that cannot be saved now stops the run in the same way, with one `could not persist the custom message: <cause>` error. Two kinds of custom message skipped that stop. The first is a notice sent with `persistWhenStreaming`, as workflow and background-task notices are, that arrives while the agent is answering. When the hidden copy the model reads could not be saved, the error was dropped and the run sent another model request. The error that surfaced later blamed the assistant reply. The second is a message an extension sends with `triggerTurn: false` while the agent is answering. A failed save reported nothing, and the end of the run tried the same save again and rejected `prompt()` with the storage error. A `turn_end` handler that asked to continue got another model request first. Now neither sends a further model request, `prompt()` resolves, and `atomic -p` and `--mode json` exit 1. A failed write of a notice's hidden copy now stops the run instead of being retried within it. The notice's saved card stays marked for replay when the session is resumed. The next prompt tries the write again, as does closing the session. If that last write fails too, closing fails with its cause and the session stays recoverable. A `triggerTurn: false` message that could not be saved waits for the next prompt ([#4254](https://github.com/bastani-inc/atomic/issues/4254))
|
|
67
|
+
- Slash commands that do not send a prompt no longer wait for compaction. During automatic compaction or `/compact`, extension commands such as `/workflow connect` and `/workflow status` were queued like messages until compaction finished. During `/compact`, `/tasks`, model changes and session commands such as `/new` waited as well, and `/tasks` could close Atomic with a timeout error after 30 seconds. These commands now run at once, and a session command such as `/new` cancels the compaction. Only input that becomes a model message waits: plain messages, steering and follow-up messages, prompt templates and skills. They are still sent after compaction, in the order you typed them. A message that a command sends while compaction runs, for example through `pi.sendUserMessage()`, also waits instead of starting a model turn against the transcript being compacted. It shows as queued, goes out once compaction ends after the messages typed before the command, and Alt+Up returns it to the editor ([#4251](https://github.com/bastani-inc/atomic/issues/4251))
|
|
68
|
+
|
|
69
|
+
### Removed
|
|
70
|
+
|
|
71
|
+
- The unimplemented `omp://`, `agent://`, `issue://`, `memory://`, `pr://`, `rule://`, `mcp://` and `vault://` internal URL schemes ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
72
|
+
|
|
5
73
|
## [0.9.68] - 2026-11-03
|
|
6
74
|
|
|
7
75
|
An explicit `--model` now runs as named instead of silently switching to another model family, and `atomic -p` no longer hangs when stdin is an open pipe that never sends anything.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/intercom",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.69",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension providing a private coordination channel between parent and child agent sessions. Fork of: https://github.com/nicobailon/pi-intercom",
|
|
6
6
|
"contributors": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.69",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for web search, URL fetching, GitHub repo cloning, PDF/video extraction. Fork of: https://github.com/nicobailon/pi-web-access",
|
|
6
6
|
"contributors": [
|
|
@@ -6,6 +6,26 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.9.69] - 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- The session run control implements the optional `listProjectRuns()`, which lists every top-level run recorded for the current project directory, including runs started with `/workflow` that `listRuns({ includeDurable: true })` leaves out because no model session owns them, and finished or cancelled runs that recorded no checkpoints. The durable catalog's `completedAll` now lists every finished root run for this. `history://workflows` in the coding agent uses it ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- Under Bun, a retired run's late unhandled rejection no longer fails a replacement run that has the same durable run ID and workflow source, including when it fires more than 30 seconds after the retired run ended. A run that starts within 30 seconds of another execution of its workflow source ending treats an unscoped rejection from that source as ambiguous for its whole lifetime, and the runtime reports it instead of attributing it to the replacement ([#4192](https://github.com/bastani-inc/atomic/issues/4192))
|
|
18
|
+
|
|
19
|
+
## [0.9.69-alpha.1] - 2026-11-03
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
|
|
23
|
+
- The session run control implements the optional `listProjectRuns()`, which lists every top-level run recorded for the current project directory, including runs started with `/workflow` that `listRuns({ includeDurable: true })` leaves out because no model session owns them, and finished or cancelled runs that recorded no checkpoints. The durable catalog's `completedAll` now lists every finished root run for this. `history://workflows` in the coding agent uses it ([#4252](https://github.com/bastani-inc/atomic/issues/4252))
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
|
|
27
|
+
- Under Bun, a retired run's late unhandled rejection no longer fails a replacement run that has the same durable run ID and workflow source, including when it fires more than 30 seconds after the retired run ended. A run that starts within 30 seconds of another execution of its workflow source ending treats an unscoped rejection from that source as ambiguous for its whole lifetime, and the runtime reports it instead of attributing it to the replacement ([#4192](https://github.com/bastani-inc/atomic/issues/4192))
|
|
28
|
+
|
|
9
29
|
## [0.9.67] - 2026-11-02
|
|
10
30
|
|
|
11
31
|
### Added
|
|
@@ -88,6 +88,18 @@ function reciprocalWorkflowRootRunId(runById, runId) {
|
|
|
88
88
|
}
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
|
+
function isRunLookup(source) {
|
|
92
|
+
return "run" in source;
|
|
93
|
+
}
|
|
94
|
+
function runsInSource(source) {
|
|
95
|
+
return isRunLookup(source) ? source.runs() : source;
|
|
96
|
+
}
|
|
97
|
+
function findRunInSource(source, runId) {
|
|
98
|
+
return isRunLookup(source) ? source.run(runId) : source.find((run) => run.id === runId);
|
|
99
|
+
}
|
|
100
|
+
function runsByIdOf(source) {
|
|
101
|
+
return isRunLookup(source) ? { get: (runId) => source.run(runId) } : new Map(source.map((run) => [run.id, run]));
|
|
102
|
+
}
|
|
91
103
|
var runIndexes = new WeakMap;
|
|
92
104
|
var stageIndexes = new WeakMap;
|
|
93
105
|
function index(items, cache) {
|
|
@@ -328,19 +340,20 @@ function stripOnePrefix(value, prefix) {
|
|
|
328
340
|
// dist/builtin/workflows/src/durable/run-owner-backend.ts
|
|
329
341
|
var workflowRunBackend = Symbol.for("atomic-workflows/run-journal-backend@1");
|
|
330
342
|
function availableRunDurableBackend(runs, runId) {
|
|
331
|
-
const target = resolveRunIdTarget(runId, runs.map((run) => run.id));
|
|
343
|
+
const target = resolveRunIdTarget(runId, isRunIdPrefix(runId) ? runsInSource(runs).map((run) => run.id) : []);
|
|
332
344
|
const id = target.kind === "exact" || target.kind === "unique_prefix" ? target.runId : runId;
|
|
333
345
|
const rootRunId = durableRootRunIdForRun(runs, id);
|
|
334
|
-
|
|
346
|
+
const rootRun = rootRunId === undefined ? undefined : findRunInSource(runs, rootRunId);
|
|
347
|
+
return rootRun?.[workflowRunBackend];
|
|
335
348
|
}
|
|
336
349
|
function durableRootRunIdForRun(runs, runId) {
|
|
337
|
-
return reciprocalWorkflowRootRunId(
|
|
350
|
+
return reciprocalWorkflowRootRunId(runsByIdOf(runs), runId);
|
|
338
351
|
}
|
|
339
352
|
function durableBackendForRun(backend, runs, runId) {
|
|
340
353
|
const rootRunId = durableRootRunIdForRun(runs, runId);
|
|
341
354
|
if (rootRunId === undefined)
|
|
342
355
|
return;
|
|
343
|
-
const runById =
|
|
356
|
+
const runById = runsByIdOf(runs);
|
|
344
357
|
const rootBackend = availableRunDurableBackend(runs, rootRunId) ?? backend;
|
|
345
358
|
if (rootRunId === runId)
|
|
346
359
|
return rootBackend;
|
|
@@ -380,7 +393,7 @@ class DurableBackendNotInitializedError extends JournalError {
|
|
|
380
393
|
}
|
|
381
394
|
}
|
|
382
395
|
function availableStoreDurableBackend(store, runId) {
|
|
383
|
-
return (store !== undefined && runId !== undefined ? availableRunDurableBackend(store
|
|
396
|
+
return (store !== undefined && runId !== undefined ? availableRunDurableBackend(store, runId) : undefined) ?? store?.[workflowStoreBackend];
|
|
384
397
|
}
|
|
385
398
|
function requireStoreDurableBackend(store, runId) {
|
|
386
399
|
const backend = availableStoreDurableBackend(store, runId);
|
|
@@ -547,13 +560,13 @@ function recordPendingStageMessageDeliveries(messages, runId, messageId, records
|
|
|
547
560
|
result[index] = next;
|
|
548
561
|
return result;
|
|
549
562
|
}
|
|
550
|
-
function compactStickyStageMessageDeliveries(messages,
|
|
551
|
-
const finished =
|
|
563
|
+
function compactStickyStageMessageDeliveries(messages, findRun) {
|
|
564
|
+
const finished = (runId, stageId) => findRun(runId)?.stages.some((stage) => stage.id === stageId && (stage.status === "completed" || stage.status === "skipped")) === true;
|
|
552
565
|
let changed = false;
|
|
553
566
|
const next = messages.map((entry) => {
|
|
554
567
|
if (entry.sticky !== true || entry.deliveries === undefined)
|
|
555
568
|
return entry;
|
|
556
|
-
const deliveries = entry.deliveries.filter((delivery) => !finished
|
|
569
|
+
const deliveries = entry.deliveries.filter((delivery) => !finished(delivery.runId, delivery.stageId));
|
|
557
570
|
if (deliveries.length === entry.deliveries.length)
|
|
558
571
|
return entry;
|
|
559
572
|
changed = true;
|
|
@@ -1597,6 +1610,8 @@ function createStoreState() {
|
|
|
1597
1610
|
return {
|
|
1598
1611
|
runs: [],
|
|
1599
1612
|
runPositions: new Map,
|
|
1613
|
+
childRunIds: new Map,
|
|
1614
|
+
childRunLinks: new Map,
|
|
1600
1615
|
notices: [],
|
|
1601
1616
|
listeners: new Set,
|
|
1602
1617
|
invalidationListeners: new Set,
|
|
@@ -1608,11 +1623,41 @@ function createStoreState() {
|
|
|
1608
1623
|
}
|
|
1609
1624
|
function reindexRuns(state) {
|
|
1610
1625
|
state.runPositions.clear();
|
|
1626
|
+
state.childRunIds.clear();
|
|
1627
|
+
state.childRunLinks.clear();
|
|
1611
1628
|
state.runs.forEach((run, position) => {
|
|
1612
|
-
if (
|
|
1613
|
-
|
|
1629
|
+
if (state.runPositions.has(run.id))
|
|
1630
|
+
return;
|
|
1631
|
+
state.runPositions.set(run.id, position);
|
|
1632
|
+
indexChildRun(state, run);
|
|
1614
1633
|
});
|
|
1615
1634
|
}
|
|
1635
|
+
function indexChildRun(state, run) {
|
|
1636
|
+
unindexChildRun(state, run.id);
|
|
1637
|
+
if (run.parentRunId === undefined)
|
|
1638
|
+
return;
|
|
1639
|
+
const byStage = state.childRunIds.get(run.parentRunId) ?? new Map;
|
|
1640
|
+
state.childRunIds.set(run.parentRunId, byStage);
|
|
1641
|
+
const ids = byStage.get(run.parentStageId) ?? new Set;
|
|
1642
|
+
byStage.set(run.parentStageId, ids);
|
|
1643
|
+
ids.add(run.id);
|
|
1644
|
+
state.childRunLinks.set(run.id, { parentRunId: run.parentRunId, parentStageId: run.parentStageId });
|
|
1645
|
+
}
|
|
1646
|
+
function unindexChildRun(state, runId) {
|
|
1647
|
+
const link = state.childRunLinks.get(runId);
|
|
1648
|
+
if (link === undefined)
|
|
1649
|
+
return;
|
|
1650
|
+
state.childRunLinks.delete(runId);
|
|
1651
|
+
const byStage = state.childRunIds.get(link.parentRunId);
|
|
1652
|
+
const ids = byStage?.get(link.parentStageId);
|
|
1653
|
+
if (byStage === undefined || ids === undefined)
|
|
1654
|
+
return;
|
|
1655
|
+
ids.delete(runId);
|
|
1656
|
+
if (ids.size === 0)
|
|
1657
|
+
byStage.delete(link.parentStageId);
|
|
1658
|
+
if (byStage.size === 0)
|
|
1659
|
+
state.childRunIds.delete(link.parentRunId);
|
|
1660
|
+
}
|
|
1616
1661
|
function runPosition(state, runId) {
|
|
1617
1662
|
const position = state.runPositions.get(runId);
|
|
1618
1663
|
if (position !== undefined && state.runs[position]?.id === runId)
|
|
@@ -1656,13 +1701,14 @@ function createStoreContext(state = createStoreState()) {
|
|
|
1656
1701
|
batchedChanges?.push(change);
|
|
1657
1702
|
return;
|
|
1658
1703
|
}
|
|
1659
|
-
|
|
1660
|
-
|
|
1704
|
+
const changes = change === undefined ? undefined : [change];
|
|
1705
|
+
observation.capture(changes);
|
|
1706
|
+
publish(changes);
|
|
1661
1707
|
}
|
|
1662
|
-
function publish() {
|
|
1708
|
+
function publish(changes) {
|
|
1663
1709
|
for (const fn of state.invalidationListeners) {
|
|
1664
1710
|
try {
|
|
1665
|
-
fn();
|
|
1711
|
+
fn(changes);
|
|
1666
1712
|
} catch {}
|
|
1667
1713
|
}
|
|
1668
1714
|
if (state.listeners.size > 0) {
|
|
@@ -1689,7 +1735,7 @@ function createStoreContext(state = createStoreState()) {
|
|
|
1689
1735
|
batchedNotification = false;
|
|
1690
1736
|
batchedChanges = [];
|
|
1691
1737
|
observation.capture(changes);
|
|
1692
|
-
publish();
|
|
1738
|
+
publish(changes);
|
|
1693
1739
|
}
|
|
1694
1740
|
}
|
|
1695
1741
|
}
|
|
@@ -1701,22 +1747,40 @@ function createStoreContext(state = createStoreState()) {
|
|
|
1701
1747
|
const position = runPosition(state, run.id);
|
|
1702
1748
|
if (position !== undefined) {
|
|
1703
1749
|
state.runs[position] = run;
|
|
1750
|
+
indexChildRun(state, run);
|
|
1704
1751
|
return;
|
|
1705
1752
|
}
|
|
1706
1753
|
state.runPositions.set(run.id, state.runs.length);
|
|
1707
1754
|
state.runs.push(run);
|
|
1755
|
+
indexChildRun(state, run);
|
|
1708
1756
|
}
|
|
1709
1757
|
function removeRunAt(position) {
|
|
1710
1758
|
const [removed] = state.runs.splice(position, 1);
|
|
1711
1759
|
if (removed === undefined)
|
|
1712
1760
|
return;
|
|
1713
1761
|
state.runPositions.delete(removed.id);
|
|
1762
|
+
unindexChildRun(state, removed.id);
|
|
1714
1763
|
for (let index = position;index < state.runs.length; index++)
|
|
1715
1764
|
state.runPositions.set(state.runs[index].id, index);
|
|
1716
1765
|
}
|
|
1717
1766
|
function clearRuns() {
|
|
1718
1767
|
state.runs.length = 0;
|
|
1719
1768
|
state.runPositions.clear();
|
|
1769
|
+
state.childRunIds.clear();
|
|
1770
|
+
state.childRunLinks.clear();
|
|
1771
|
+
}
|
|
1772
|
+
function childRuns(parentRunId, parentStageId) {
|
|
1773
|
+
if (state.runPositions.size !== state.runs.length)
|
|
1774
|
+
reindexRuns(state);
|
|
1775
|
+
const byStage = state.childRunIds.get(parentRunId);
|
|
1776
|
+
if (byStage === undefined)
|
|
1777
|
+
return [];
|
|
1778
|
+
const ids = parentStageId === undefined ? [...byStage.values()].flatMap((set) => [...set]) : [...byStage.get(parentStageId) ?? []];
|
|
1779
|
+
return ids.map((id) => findRun(id)).filter((run) => run !== undefined && run.parentRunId === parentRunId && (parentStageId === undefined || run.parentStageId === parentStageId)).sort((left, right) => runPosition(state, left.id) - runPosition(state, right.id));
|
|
1780
|
+
}
|
|
1781
|
+
function reparentRun(run, parentStageId) {
|
|
1782
|
+
run.parentStageId = parentStageId;
|
|
1783
|
+
indexChildRun(state, run);
|
|
1720
1784
|
}
|
|
1721
1785
|
function findStage(run, stageId) {
|
|
1722
1786
|
return run.stages.find((s) => s.id === stageId);
|
|
@@ -1773,6 +1837,8 @@ function createStoreContext(state = createStoreState()) {
|
|
|
1773
1837
|
bumpAndNotify,
|
|
1774
1838
|
findRun,
|
|
1775
1839
|
runPosition: (runId) => runPosition(state, runId),
|
|
1840
|
+
childRuns,
|
|
1841
|
+
reparentRun,
|
|
1776
1842
|
placeRun,
|
|
1777
1843
|
removeRunAt,
|
|
1778
1844
|
clearRuns,
|
|
@@ -1828,8 +1894,8 @@ class PendingStageTransitionLedger {
|
|
|
1828
1894
|
this.reconciledVersion = version;
|
|
1829
1895
|
return result;
|
|
1830
1896
|
}
|
|
1831
|
-
async compact(backend, runId, messages,
|
|
1832
|
-
const stageStatus = createStageStatusLookup(
|
|
1897
|
+
async compact(backend, runId, messages, findRun, archiveSettled) {
|
|
1898
|
+
const stageStatus = createStageStatusLookup(findRun);
|
|
1833
1899
|
const endedStages = [];
|
|
1834
1900
|
const dirty = new Set;
|
|
1835
1901
|
for (const [deliveryRunId, byStage] of this.stages) {
|
|
@@ -1927,17 +1993,8 @@ class PendingStageTransitionLedger {
|
|
|
1927
1993
|
function isCompactingBackend(backend) {
|
|
1928
1994
|
return backend.archivePendingStageDeliveryReceipt !== undefined && backend.hasPendingStageDeliveryReceipt !== undefined;
|
|
1929
1995
|
}
|
|
1930
|
-
function createStageStatusLookup(
|
|
1931
|
-
|
|
1932
|
-
return (runId, stageId) => {
|
|
1933
|
-
if (runById === undefined) {
|
|
1934
|
-
runById = new Map;
|
|
1935
|
-
for (const run of runs)
|
|
1936
|
-
if (!runById.has(run.id))
|
|
1937
|
-
runById.set(run.id, run);
|
|
1938
|
-
}
|
|
1939
|
-
return runById.get(runId)?.stages.find((stage) => stage.id === stageId)?.status;
|
|
1940
|
-
};
|
|
1996
|
+
function createStageStatusLookup(findRun) {
|
|
1997
|
+
return (runId, stageId) => findRun(runId)?.stages.find((stage) => stage.id === stageId)?.status;
|
|
1941
1998
|
}
|
|
1942
1999
|
function isEndedStageStatus(status) {
|
|
1943
2000
|
return status === "completed" || status === "skipped" || status === "failed";
|
|
@@ -1976,6 +2033,7 @@ function deliverySlot(delivery) {
|
|
|
1976
2033
|
|
|
1977
2034
|
// dist/builtin/workflows/src/shared/store-pending-stage-delivery-methods.ts
|
|
1978
2035
|
function createPendingStageDeliveryStoreMethods(context) {
|
|
2036
|
+
const runs = { run: context.findRun, runs: () => context.state.runs };
|
|
1979
2037
|
const ledgers = new PendingStageLedgers;
|
|
1980
2038
|
const batches = new PendingStageTransitionBatches(context, ledgers);
|
|
1981
2039
|
return {
|
|
@@ -1998,8 +2056,8 @@ function createPendingStageDeliveryStoreMethods(context) {
|
|
|
1998
2056
|
const run = context.findRun(input.runId);
|
|
1999
2057
|
if (run === undefined)
|
|
2000
2058
|
return;
|
|
2001
|
-
const availableBackend = availableRunDurableBackend(
|
|
2002
|
-
const backend = availableBackend === undefined ? undefined : durableBackendForRun(availableBackend,
|
|
2059
|
+
const availableBackend = availableRunDurableBackend(runs, input.runId) ?? context.backend;
|
|
2060
|
+
const backend = availableBackend === undefined ? undefined : durableBackendForRun(availableBackend, runs, input.runId);
|
|
2003
2061
|
const receipt = await backend?.readSettledPendingStageMessage?.(input.runId, input.message.id);
|
|
2004
2062
|
const result = queueStageMessage(receipt === undefined ? batch.messages(run) : [...batch.messages(run), receipt], input, undefined, undefined, resolvePendingStageIdentity(run, input.stageKey));
|
|
2005
2063
|
if (!result.ok) {
|
|
@@ -2223,7 +2281,7 @@ class PendingStageTransitionBatch {
|
|
|
2223
2281
|
}
|
|
2224
2282
|
if (messages !== run.pendingStageMessages) {
|
|
2225
2283
|
run.pendingStageMessages = [...messages];
|
|
2226
|
-
this.context.bumpAndNotify();
|
|
2284
|
+
this.context.bumpAndNotify({ runId: run.id });
|
|
2227
2285
|
}
|
|
2228
2286
|
}
|
|
2229
2287
|
async apply(backend, runId, messages) {
|
|
@@ -2259,7 +2317,7 @@ class PendingStageTransitionBatch {
|
|
|
2259
2317
|
const live = this.context.findRun(this.runId) ?? run;
|
|
2260
2318
|
if (live !== undefined)
|
|
2261
2319
|
live.pendingStageMessages = [...published];
|
|
2262
|
-
this.context.bumpAndNotify();
|
|
2320
|
+
this.context.bumpAndNotify({ runId: this.runId });
|
|
2263
2321
|
}
|
|
2264
2322
|
}
|
|
2265
2323
|
async function compactTransition(backend, runId, messages, context, ledgers, run) {
|
|
@@ -2267,9 +2325,9 @@ async function compactTransition(backend, runId, messages, context, ledgers, run
|
|
|
2267
2325
|
const reconciled = ledger.reconcile(backend, runId, messages);
|
|
2268
2326
|
const archiveSettled = backend.archivePendingStageMessage !== undefined && backend.readSettledPendingStageMessage !== undefined ? (entry) => backend.archivePendingStageMessage(runId, entry) : undefined;
|
|
2269
2327
|
if (isCompactingBackend(backend)) {
|
|
2270
|
-
return await ledger.compact(backend, runId, reconciled, context.
|
|
2328
|
+
return await ledger.compact(backend, runId, reconciled, context.findRun, archiveSettled);
|
|
2271
2329
|
}
|
|
2272
|
-
let retained = compactStickyStageMessageDeliveries(reconciled, context.
|
|
2330
|
+
let retained = compactStickyStageMessageDeliveries(reconciled, context.findRun);
|
|
2273
2331
|
if (archiveSettled !== undefined)
|
|
2274
2332
|
retained = await retainPendingStageMessages(retained, archiveSettled);
|
|
2275
2333
|
if (run !== undefined)
|
|
@@ -2284,7 +2342,7 @@ function reconcileLive(backend, runId, context, ledgers) {
|
|
|
2284
2342
|
const recovered = ledgers.for(current).reconcile(backend, runId, messages);
|
|
2285
2343
|
if (recovered !== messages) {
|
|
2286
2344
|
current.pendingStageMessages = [...recovered];
|
|
2287
|
-
context.bumpAndNotify();
|
|
2345
|
+
context.bumpAndNotify({ runId });
|
|
2288
2346
|
}
|
|
2289
2347
|
}
|
|
2290
2348
|
|
|
@@ -2539,6 +2597,12 @@ function createRunStoreMethods(context) {
|
|
|
2539
2597
|
run(runId) {
|
|
2540
2598
|
return context.findRun(runId);
|
|
2541
2599
|
},
|
|
2600
|
+
runPosition(runId) {
|
|
2601
|
+
return context.runPosition(runId);
|
|
2602
|
+
},
|
|
2603
|
+
childRuns(parentRunId, parentStageId) {
|
|
2604
|
+
return context.childRuns(parentRunId, parentStageId);
|
|
2605
|
+
},
|
|
2542
2606
|
notices() {
|
|
2543
2607
|
return state.notices;
|
|
2544
2608
|
},
|
|
@@ -2581,7 +2645,7 @@ function createRunStoreMethods(context) {
|
|
|
2581
2645
|
const run = context.findRun(runId);
|
|
2582
2646
|
if (run?.parentStageId !== expectedParentStageId || parentStageId === expectedParentStageId)
|
|
2583
2647
|
return false;
|
|
2584
|
-
run
|
|
2648
|
+
context.reparentRun(run, parentStageId);
|
|
2585
2649
|
context.bumpAndNotify();
|
|
2586
2650
|
return true;
|
|
2587
2651
|
},
|
|
@@ -3342,7 +3406,7 @@ function createWorkflowArtifactRunStateResolver() {
|
|
|
3342
3406
|
let durable;
|
|
3343
3407
|
if (backend !== undefined) {
|
|
3344
3408
|
try {
|
|
3345
|
-
durable = durableRunState(availableRunDurableBackend(store
|
|
3409
|
+
durable = durableRunState(availableRunDurableBackend(store, runId) ?? backend, runId);
|
|
3346
3410
|
} catch {
|
|
3347
3411
|
backendReady = false;
|
|
3348
3412
|
return localState === "protected" ? "protected" : undefined;
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
} from "./chunk-8d40nyz9.js";
|
|
17
17
|
import {
|
|
18
18
|
goal_default
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import"./chunk-
|
|
19
|
+
} from "./chunk-3gk3k003.js";
|
|
20
|
+
import"./chunk-k8930apc.js";
|
|
21
21
|
import"./chunk-z0d03ktm.js";
|
|
22
22
|
import {
|
|
23
23
|
open_claude_design_default
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk-37gm3bzk.js";
|
|
28
28
|
import {
|
|
29
29
|
ralph_default
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-6bgw5p0e.js";
|
|
31
31
|
import {
|
|
32
32
|
tournament_default
|
|
33
33
|
} from "./chunk-2f1shjah.js";
|