@bastani/atomic 0.9.38-alpha.4 → 0.9.38-alpha.6
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 +39 -0
- package/README.md +8 -6
- package/dist/builtin/intercom/CHANGELOG.md +15 -0
- package/dist/builtin/intercom/broker/broker.ts +6 -4
- package/dist/builtin/intercom/broker/delivered-message-cache.ts +50 -4
- package/dist/builtin/intercom/broker/send-handler.ts +6 -4
- package/dist/builtin/intercom/index.bundle.mjs +89 -40
- 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/subagents/src/extension/index.bundle.mjs +29 -33
- package/dist/builtin/web-access/CHANGELOG.md +7 -0
- package/dist/builtin/web-access/index.bundle.mjs +53 -15
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/builtin/workflows/CHANGELOG.md +36 -0
- package/dist/builtin/workflows/builtin/{chunk-qrrkfg9v.js → chunk-2qgfyvzs.js} +1 -1
- package/dist/builtin/workflows/builtin/{chunk-na3wpwzh.js → chunk-g1a4hw0s.js} +390 -345
- package/dist/builtin/workflows/builtin/{chunk-xg7kkgf8.js → chunk-neszcj53.js} +1 -1
- 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/authoring.d.ts +3 -8
- package/dist/builtin/workflows/src/durable/journal/conformance.d.ts +9 -1
- package/dist/builtin/workflows/src/durable/journal/internal.d.ts +20 -0
- package/dist/builtin/workflows/src/durable/journal/lease-expiry.d.ts +2 -0
- package/dist/builtin/workflows/src/durable/journal/memory-run-journal.d.ts +17 -1
- package/dist/builtin/workflows/src/durable/journal/resolution.d.ts +6 -1
- package/dist/builtin/workflows/src/durable/journal/sql-run-journal.d.ts +45 -0
- package/dist/builtin/workflows/src/durable/journal/sqlite-run-journal.d.ts +5 -47
- package/dist/builtin/workflows/src/durable/journal/types.d.ts +15 -30
- package/dist/builtin/workflows/src/durable/journal/values.d.ts +2 -0
- package/dist/builtin/workflows/src/extension/index.bundle.mjs +23390 -22820
- package/dist/builtin/workflows/src/index.js +7614 -7060
- package/dist/builtin/workflows/src/shared/authoring-contract-stage.d.ts +7 -7
- package/dist/builtin/workflows/src/shared/authoring-contract-ui.d.ts +0 -14
- package/dist/cli/args.d.ts +1 -0
- package/dist/cli/args.d.ts.map +1 -1
- package/dist/cli/args.js +6 -2
- package/dist/cli/args.js.map +1 -1
- package/dist/cli/session-picker.d.ts +2 -2
- package/dist/cli/session-picker.d.ts.map +1 -1
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/session-picker.js.map +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts +1 -1
- package/dist/core/agent-session-auto-compaction.d.ts.map +1 -1
- package/dist/core/agent-session-auto-compaction.js +2 -2
- package/dist/core/agent-session-auto-compaction.js.map +1 -1
- package/dist/core/agent-session-bash.d.ts +2 -3
- package/dist/core/agent-session-bash.d.ts.map +1 -1
- package/dist/core/agent-session-bash.js +18 -10
- package/dist/core/agent-session-bash.js.map +1 -1
- package/dist/core/agent-session-boundaries.d.ts +6 -6
- package/dist/core/agent-session-boundaries.d.ts.map +1 -1
- package/dist/core/agent-session-boundaries.js +22 -22
- package/dist/core/agent-session-boundaries.js.map +1 -1
- package/dist/core/agent-session-compaction.js +2 -2
- package/dist/core/agent-session-compaction.js.map +1 -1
- package/dist/core/agent-session-custom-message-commit.d.ts.map +1 -1
- package/dist/core/agent-session-custom-message-commit.js +10 -12
- package/dist/core/agent-session-custom-message-commit.js.map +1 -1
- package/dist/core/agent-session-events.d.ts.map +1 -1
- package/dist/core/agent-session-events.js +20 -13
- package/dist/core/agent-session-events.js.map +1 -1
- package/dist/core/agent-session-export.js +1 -1
- package/dist/core/agent-session-export.js.map +1 -1
- package/dist/core/agent-session-extension-bindings.d.ts +2 -2
- package/dist/core/agent-session-extension-bindings.d.ts.map +1 -1
- package/dist/core/agent-session-extension-bindings.js +75 -59
- package/dist/core/agent-session-extension-bindings.js.map +1 -1
- package/dist/core/agent-session-message-queue.d.ts +2 -2
- package/dist/core/agent-session-message-queue.d.ts.map +1 -1
- package/dist/core/agent-session-message-queue.js +17 -8
- package/dist/core/agent-session-message-queue.js.map +1 -1
- package/dist/core/agent-session-methods.d.ts +15 -15
- 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-models.d.ts +2 -2
- package/dist/core/agent-session-models.d.ts.map +1 -1
- package/dist/core/agent-session-models.js +59 -42
- package/dist/core/agent-session-models.js.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.d.ts +4 -4
- package/dist/core/agent-session-persistent-custom-messages.d.ts.map +1 -1
- package/dist/core/agent-session-persistent-custom-messages.js +16 -17
- package/dist/core/agent-session-persistent-custom-messages.js.map +1 -1
- package/dist/core/agent-session-prompt.d.ts.map +1 -1
- package/dist/core/agent-session-prompt.js +6 -8
- package/dist/core/agent-session-prompt.js.map +1 -1
- package/dist/core/agent-session-retry.d.ts.map +1 -1
- package/dist/core/agent-session-retry.js +17 -15
- package/dist/core/agent-session-retry.js.map +1 -1
- package/dist/core/agent-session-runtime.d.ts +3 -8
- package/dist/core/agent-session-runtime.d.ts.map +1 -1
- package/dist/core/agent-session-runtime.js +44 -96
- package/dist/core/agent-session-runtime.js.map +1 -1
- package/dist/core/agent-session-summary.js +1 -1
- package/dist/core/agent-session-summary.js.map +1 -1
- package/dist/core/agent-session-tree.d.ts +1 -1
- package/dist/core/agent-session-tree.d.ts.map +1 -1
- package/dist/core/agent-session-tree.js +7 -7
- package/dist/core/agent-session-tree.js.map +1 -1
- package/dist/core/cache-warmer.js +1 -1
- package/dist/core/cache-warmer.js.map +1 -1
- package/dist/core/export-html/index.js +1 -1
- package/dist/core/export-html/index.js.map +1 -1
- package/dist/core/export-html/template-js/entries-navigation.js +1 -1
- package/dist/core/export-html/template.js +1 -1
- package/dist/core/extensions/api-types.d.ts +12 -12
- 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 +4 -2
- 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/extension-work.d.ts +1 -0
- package/dist/core/extensions/extension-work.d.ts.map +1 -1
- package/dist/core/extensions/extension-work.js +5 -1
- package/dist/core/extensions/extension-work.js.map +1 -1
- package/dist/core/extensions/loader-api.d.ts.map +1 -1
- package/dist/core/extensions/loader-api.js +40 -42
- package/dist/core/extensions/loader-api.js.map +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts +1 -1
- package/dist/core/extensions/loader-host-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-host-modules.js +6 -2
- package/dist/core/extensions/loader-host-modules.js.map +1 -1
- package/dist/core/extensions/loader-rollback.d.ts.map +1 -1
- package/dist/core/extensions/loader-rollback.js +1 -0
- package/dist/core/extensions/loader-rollback.js.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.d.ts.map +1 -1
- package/dist/core/extensions/loader-virtual-modules.js +1 -0
- package/dist/core/extensions/loader-virtual-modules.js.map +1 -1
- package/dist/core/extensions/runner-context.d.ts +1 -0
- package/dist/core/extensions/runner-context.d.ts.map +1 -1
- package/dist/core/extensions/runner-context.js +3 -2
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner-handlers.d.ts +1 -1
- package/dist/core/extensions/runner-handlers.d.ts.map +1 -1
- package/dist/core/extensions/runner-handlers.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +3 -2
- package/dist/core/extensions/runner.d.ts.map +1 -1
- package/dist/core/extensions/runner.js +20 -12
- package/dist/core/extensions/runner.js.map +1 -1
- package/dist/core/extensions/runtime-types.d.ts +7 -7
- 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/session-events.d.ts +5 -5
- package/dist/core/extensions/session-events.d.ts.map +1 -1
- package/dist/core/extensions/session-events.js.map +1 -1
- package/dist/core/fast-model-routing.d.ts.map +1 -1
- package/dist/core/fast-model-routing.js +1 -0
- package/dist/core/fast-model-routing.js.map +1 -1
- package/dist/core/intercom-runtime-group.js +1 -1
- package/dist/core/intercom-runtime-group.js.map +1 -1
- package/dist/core/provider-attribution.js +1 -1
- package/dist/core/provider-attribution.js.map +1 -1
- package/dist/core/sdk.d.ts.map +1 -1
- package/dist/core/sdk.js +7 -6
- package/dist/core/sdk.js.map +1 -1
- package/dist/core/session-manager-archive.d.ts +2 -16
- package/dist/core/session-manager-archive.d.ts.map +1 -1
- package/dist/core/session-manager-archive.js +8 -104
- package/dist/core/session-manager-archive.js.map +1 -1
- package/dist/core/session-manager-core.d.ts +48 -49
- package/dist/core/session-manager-core.d.ts.map +1 -1
- package/dist/core/session-manager-core.js +438 -306
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-entries.d.ts.map +1 -1
- package/dist/core/session-manager-entries.js +5 -10
- package/dist/core/session-manager-entries.js.map +1 -1
- package/dist/core/session-manager-errors.d.ts +10 -0
- package/dist/core/session-manager-errors.d.ts.map +1 -0
- package/dist/core/session-manager-errors.js +27 -0
- package/dist/core/session-manager-errors.js.map +1 -0
- package/dist/core/session-manager-list.d.ts +1 -0
- package/dist/core/session-manager-list.d.ts.map +1 -1
- package/dist/core/session-manager-list.js +14 -7
- package/dist/core/session-manager-list.js.map +1 -1
- package/dist/core/session-manager-storage.d.ts +0 -11
- package/dist/core/session-manager-storage.d.ts.map +1 -1
- package/dist/core/session-manager-storage.js +4 -61
- package/dist/core/session-manager-storage.js.map +1 -1
- package/dist/core/session-manager-types.d.ts +2 -10
- package/dist/core/session-manager-types.d.ts.map +1 -1
- package/dist/core/session-manager-types.js.map +1 -1
- package/dist/core/session-manager-validation.d.ts.map +1 -1
- package/dist/core/session-manager-validation.js +3 -2
- package/dist/core/session-manager-validation.js.map +1 -1
- package/dist/core/session-manager.d.ts +1 -0
- package/dist/core/session-manager.d.ts.map +1 -1
- package/dist/core/session-manager.js +1 -0
- package/dist/core/session-manager.js.map +1 -1
- package/dist/core/session-mutation-queue.d.ts +3 -0
- package/dist/core/session-mutation-queue.d.ts.map +1 -0
- package/dist/core/session-mutation-queue.js +14 -0
- package/dist/core/session-mutation-queue.js.map +1 -0
- package/dist/core/settings-merge.d.ts.map +1 -1
- package/dist/core/settings-merge.js +3 -2
- package/dist/core/settings-merge.js.map +1 -1
- package/dist/core/settings-schema.d.ts +0 -5
- package/dist/core/settings-schema.d.ts.map +1 -1
- package/dist/core/settings-schema.js +1 -15
- package/dist/core/settings-schema.js.map +1 -1
- package/dist/core/storage/index.d.ts +1 -1
- package/dist/core/storage/index.d.ts.map +1 -1
- package/dist/core/storage/index.js +1 -1
- package/dist/core/storage/index.js.map +1 -1
- package/dist/core/storage/node-sqlite.d.ts +2 -0
- package/dist/core/storage/node-sqlite.d.ts.map +1 -1
- package/dist/core/storage/node-sqlite.js +47 -6
- package/dist/core/storage/node-sqlite.js.map +1 -1
- package/dist/core/storage/session/jsonl-session-store.d.ts +9 -2
- package/dist/core/storage/session/jsonl-session-store.d.ts.map +1 -1
- package/dist/core/storage/session/jsonl-session-store.js +71 -27
- package/dist/core/storage/session/jsonl-session-store.js.map +1 -1
- package/dist/core/storage/session/validation.js +1 -1
- package/dist/core/storage/session/validation.js.map +1 -1
- package/dist/core/storage/testing.d.ts +2 -0
- package/dist/core/storage/testing.d.ts.map +1 -1
- package/dist/core/storage/testing.js +45 -0
- package/dist/core/storage/testing.js.map +1 -1
- package/dist/core/tasks/completion.d.ts.map +1 -1
- package/dist/core/tasks/completion.js +2 -4
- package/dist/core/tasks/completion.js.map +1 -1
- package/dist/core/tools/bash-session-environment.d.ts.map +1 -1
- package/dist/core/tools/bash-session-environment.js +0 -2
- package/dist/core/tools/bash-session-environment.js.map +1 -1
- package/dist/core/tools/todos-model.js +3 -3
- package/dist/core/tools/todos-model.js.map +1 -1
- package/dist/core/tools/todos-mutations.js +2 -2
- package/dist/core/tools/todos-mutations.js.map +1 -1
- package/dist/core/tools/todos-render.js +1 -1
- package/dist/core/tools/todos-render.js.map +1 -1
- package/dist/core/tools/todos-storage.js +2 -2
- package/dist/core/tools/todos-storage.js.map +1 -1
- package/dist/extensions/codemode/execute.js +1 -1
- package/dist/extensions/codemode/execute.js.map +1 -1
- package/dist/extensions/codemode/tool.d.ts +1 -1
- package/dist/extensions/codemode/tool.d.ts.map +1 -1
- package/dist/extensions/codemode/tool.js.map +1 -1
- package/dist/extensions/herdr/index.d.ts.map +1 -1
- package/dist/extensions/herdr/index.js +1 -5
- package/dist/extensions/herdr/index.js.map +1 -1
- package/dist/extensions/mcp/index.js +1 -1
- package/dist/extensions/mcp/index.js.map +1 -1
- package/dist/extensions/mcp/tools.d.ts.map +1 -1
- package/dist/extensions/mcp/tools.js +6 -1
- package/dist/extensions/mcp/tools.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main-session.d.ts +7 -1
- package/dist/main-session.d.ts.map +1 -1
- package/dist/main-session.js +86 -52
- package/dist/main-session.js.map +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +51 -30
- package/dist/main.js.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.d.ts.map +1 -1
- package/dist/modes/interactive/components/chat-session-host.js +1 -0
- package/dist/modes/interactive/components/chat-session-host.js.map +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts +1 -1
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -1
- package/dist/modes/interactive/components/extension-input.js +2 -2
- package/dist/modes/interactive/components/extension-input.js.map +1 -1
- package/dist/modes/interactive/components/host-session-picker.js +1 -1
- package/dist/modes/interactive/components/host-session-picker.js.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/scoped-models-selector.js +4 -1
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.d.ts +9 -6
- package/dist/modes/interactive/components/session-selector-list.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector-list.js +15 -14
- package/dist/modes/interactive/components/session-selector-list.js.map +1 -1
- package/dist/modes/interactive/components/session-selector.d.ts +7 -4
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
- package/dist/modes/interactive/components/session-selector.js +12 -14
- package/dist/modes/interactive/components/session-selector.js.map +1 -1
- package/dist/modes/interactive/components/tree-selector-component.d.ts +5 -1
- package/dist/modes/interactive/components/tree-selector-component.d.ts.map +1 -1
- package/dist/modes/interactive/components/tree-selector-component.js +20 -3
- package/dist/modes/interactive/components/tree-selector-component.js.map +1 -1
- package/dist/modes/interactive/interactive-bash-compact.js +1 -1
- package/dist/modes/interactive/interactive-bash-compact.js.map +1 -1
- package/dist/modes/interactive/interactive-deferred-startup.js +2 -2
- package/dist/modes/interactive/interactive-deferred-startup.js.map +1 -1
- package/dist/modes/interactive/interactive-editor-actions.js +2 -2
- package/dist/modes/interactive/interactive-editor-actions.js.map +1 -1
- package/dist/modes/interactive/interactive-extension-runtime.js +2 -0
- package/dist/modes/interactive/interactive-extension-runtime.js.map +1 -1
- package/dist/modes/interactive/interactive-input-handling.js +6 -4
- package/dist/modes/interactive/interactive-input-handling.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js +1 -1
- package/dist/modes/interactive/interactive-mode-helpers.js.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.d.ts +5 -5
- package/dist/modes/interactive/interactive-mode-surface.d.ts.map +1 -1
- package/dist/modes/interactive/interactive-mode-surface.js.map +1 -1
- package/dist/modes/interactive/interactive-model-routing.js +12 -7
- package/dist/modes/interactive/interactive-model-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-selectors.js +2 -2
- package/dist/modes/interactive/interactive-selectors.js.map +1 -1
- package/dist/modes/interactive/interactive-session-routing.js +24 -12
- package/dist/modes/interactive/interactive-session-routing.js.map +1 -1
- package/dist/modes/interactive/interactive-slash-commands.js +2 -2
- package/dist/modes/interactive/interactive-slash-commands.js.map +1 -1
- package/dist/modes/interactive-engine/engine-args.d.ts.map +1 -1
- package/dist/modes/interactive-engine/engine-args.js +7 -4
- package/dist/modes/interactive-engine/engine-args.js.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.d.ts.map +1 -1
- package/dist/modes/interactive-engine/isolated-runtime.js +90 -71
- package/dist/modes/interactive-engine/isolated-runtime.js.map +1 -1
- package/dist/modes/rpc/rpc-bash-request-owners.js +1 -1
- package/dist/modes/rpc/rpc-bash-request-owners.js.map +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-api.js +2 -2
- package/dist/modes/rpc/rpc-client-api.js.map +1 -1
- package/dist/modes/rpc/rpc-client-process.d.ts +2 -2
- package/dist/modes/rpc/rpc-client-process.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client-process.js +18 -7
- package/dist/modes/rpc/rpc-client-process.js.map +1 -1
- package/dist/modes/rpc/rpc-client.d.ts +4 -1
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-client.js +6 -2
- package/dist/modes/rpc/rpc-client.js.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-command-handler.js +11 -8
- package/dist/modes/rpc/rpc-command-handler.js.map +1 -1
- package/dist/modes/rpc/rpc-provider-auth.js +2 -2
- package/dist/modes/rpc/rpc-provider-auth.js.map +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +6 -2
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -1
- package/dist/modes/rpc/rpc-types.js.map +1 -1
- package/docs/custom-provider/oauth.md +2 -2
- package/docs/custom-provider/override.md +3 -3
- package/docs/custom-provider/registration.md +7 -7
- package/docs/custom-provider/streaming.md +1 -1
- package/docs/custom-provider.md +5 -5
- package/docs/environment-variables.md +5 -1
- package/docs/extensions/api-reference.md +40 -19
- package/docs/extensions/authoring.md +1 -1
- package/docs/extensions/events.md +8 -8
- package/docs/extensions.md +2 -2
- package/docs/getting-started/installation.md +1 -2
- package/docs/providers.md +2 -2
- package/docs/quickstart.md +2 -1
- package/docs/reference/cli.md +3 -3
- package/docs/rpc/protocol.md +10 -4
- package/docs/sdk/reference.md +15 -13
- package/docs/sdk/web-server.md +5 -6
- package/docs/sdk.md +18 -1
- package/docs/session-format.md +7 -5
- package/docs/sessions.md +11 -2
- package/docs/settings.md +17 -2
- package/docs/storage.md +262 -1
- package/docs/usage.md +3 -2
- package/docs/workflows/api-reference.md +67 -11
- package/docs/workflows/operations.md +4 -2
- package/examples/extensions/bookmark.ts +2 -2
- package/examples/extensions/handoff.ts +2 -2
- package/examples/extensions/plan-mode/index.ts +15 -13
- package/examples/extensions/preset.ts +8 -8
- package/examples/extensions/session-name.ts +1 -1
- package/examples/extensions/snake.ts +3 -1
- package/examples/extensions/space-invaders.ts +3 -1
- package/examples/extensions/tic-tac-toe.ts +80 -80
- package/examples/sdk/11-sessions.ts +5 -5
- package/examples/sdk/13-session-runtime.ts +7 -7
- package/examples/sdk/README.md +1 -1
- package/npm-shrinkwrap.json +32 -32
- package/package.json +3 -3
- package/schemas/settings.schema.json +1 -22
- package/dist/builtin/workflows/builtin/chunk-h5fn47y5.js +0 -8
- package/dist/builtin/workflows/src/durable/journal/node-sqlite.d.ts +0 -20
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/subagents",
|
|
3
|
-
"version": "0.9.38-alpha.
|
|
3
|
+
"version": "0.9.38-alpha.6",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Atomic extension for delegating tasks to subagents with parallel execution. Fork of: https://github.com/nicobailon/pi-subagents",
|
|
6
6
|
"contributors": [
|
|
@@ -10594,21 +10594,12 @@ function createTestSession(sessionManager, spec) {
|
|
|
10594
10594
|
let aborted = false;
|
|
10595
10595
|
let settlePromptAbort;
|
|
10596
10596
|
const messages = [];
|
|
10597
|
-
const promptAbort = new Promise((resolve, reject) => {
|
|
10598
|
-
settlePromptAbort = () => {
|
|
10599
|
-
if (testOptions.abortResolvesPrompt)
|
|
10600
|
-
resolve("aborted");
|
|
10601
|
-
else
|
|
10602
|
-
reject(new Error("aborted"));
|
|
10603
|
-
};
|
|
10604
|
-
});
|
|
10605
10597
|
let userMessages = 0;
|
|
10606
10598
|
let assistantMessages = 0;
|
|
10607
10599
|
const zeroTokens = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 };
|
|
10608
10600
|
const zeroCost = { input: 0, output: 0, cacheRead: 0, cacheWrite: 0, total: 0 };
|
|
10609
|
-
const appendAssistant = (content, stopReason) => {
|
|
10610
|
-
|
|
10611
|
-
sessionManager.appendMessage({
|
|
10601
|
+
const appendAssistant = async (content, stopReason) => {
|
|
10602
|
+
await sessionManager.appendMessage({
|
|
10612
10603
|
role: "assistant",
|
|
10613
10604
|
content,
|
|
10614
10605
|
api: "openai-responses",
|
|
@@ -10625,6 +10616,7 @@ function createTestSession(sessionManager, spec) {
|
|
|
10625
10616
|
stopReason,
|
|
10626
10617
|
timestamp: Date.now()
|
|
10627
10618
|
});
|
|
10619
|
+
messages.push({ role: "assistant", content, stopReason });
|
|
10628
10620
|
assistantMessages += 1;
|
|
10629
10621
|
};
|
|
10630
10622
|
return {
|
|
@@ -10674,11 +10666,11 @@ function createTestSession(sessionManager, spec) {
|
|
|
10674
10666
|
appendFileSync2(testOptions.promptLogPath, `${text}
|
|
10675
10667
|
---PROMPT---
|
|
10676
10668
|
`, "utf8");
|
|
10677
|
-
sessionManager.appendMessage({ role: "user", content: text, timestamp: Date.now() });
|
|
10669
|
+
await sessionManager.appendMessage({ role: "user", content: text, timestamp: Date.now() });
|
|
10678
10670
|
userMessages += 1;
|
|
10679
10671
|
if (testOptions.seededAssistantText) {
|
|
10680
10672
|
lastAssistantText = testOptions.seededAssistantText;
|
|
10681
|
-
appendAssistant([{ type: "text", text: lastAssistantText }], "stop");
|
|
10673
|
+
await appendAssistant([{ type: "text", text: lastAssistantText }], "stop");
|
|
10682
10674
|
}
|
|
10683
10675
|
if (testOptions.fallbackBeforeGate)
|
|
10684
10676
|
emitFallback();
|
|
@@ -10688,12 +10680,21 @@ function createTestSession(sessionManager, spec) {
|
|
|
10688
10680
|
if (testOptions.promptGate) {
|
|
10689
10681
|
const gateResult = await Promise.race([
|
|
10690
10682
|
testOptions.promptGate.then(() => "released"),
|
|
10691
|
-
|
|
10683
|
+
new Promise((resolve, reject) => {
|
|
10684
|
+
settlePromptAbort = () => {
|
|
10685
|
+
if (testOptions.abortResolvesPrompt)
|
|
10686
|
+
resolve("aborted");
|
|
10687
|
+
else
|
|
10688
|
+
reject(new DOMException("aborted", "AbortError"));
|
|
10689
|
+
};
|
|
10690
|
+
if (aborted)
|
|
10691
|
+
settlePromptAbort();
|
|
10692
|
+
})
|
|
10692
10693
|
]);
|
|
10693
10694
|
if (gateResult === "aborted") {
|
|
10694
10695
|
if (testOptions.thinkingOnlyOnAbort) {
|
|
10695
10696
|
lastAssistantText = "";
|
|
10696
|
-
appendAssistant([{ type: "thinking", thinking: "aborted mid-thought" }], "aborted");
|
|
10697
|
+
await appendAssistant([{ type: "thinking", thinking: "aborted mid-thought" }], "aborted");
|
|
10697
10698
|
}
|
|
10698
10699
|
for (const event of testOptions.events ?? [])
|
|
10699
10700
|
for (const listener of listeners)
|
|
@@ -10708,7 +10709,7 @@ function createTestSession(sessionManager, spec) {
|
|
|
10708
10709
|
if (!testOptions.fallbackBeforeGate)
|
|
10709
10710
|
emitFallback();
|
|
10710
10711
|
lastAssistantText = testOptions.output ?? "done";
|
|
10711
|
-
appendAssistant([{ type: "text", text: lastAssistantText }], "stop");
|
|
10712
|
+
await appendAssistant([{ type: "text", text: lastAssistantText }], "stop");
|
|
10712
10713
|
return lastAssistantText;
|
|
10713
10714
|
},
|
|
10714
10715
|
getLastAssistantText: () => {
|
|
@@ -11026,7 +11027,6 @@ class SubagentControlRuntime {
|
|
|
11026
11027
|
this.attemptTokens.set(admitted.identity.path, token);
|
|
11027
11028
|
let session;
|
|
11028
11029
|
const executionEnded = new AbortController;
|
|
11029
|
-
let activeSessionManager;
|
|
11030
11030
|
let termination;
|
|
11031
11031
|
let terminating;
|
|
11032
11032
|
let terminationWasKill = false;
|
|
@@ -11044,7 +11044,6 @@ class SubagentControlRuntime {
|
|
|
11044
11044
|
termination = cause;
|
|
11045
11045
|
terminating = (async () => {
|
|
11046
11046
|
try {
|
|
11047
|
-
activeSessionManager?.flush();
|
|
11048
11047
|
await session?.abort();
|
|
11049
11048
|
} finally {
|
|
11050
11049
|
try {
|
|
@@ -11065,11 +11064,10 @@ class SubagentControlRuntime {
|
|
|
11065
11064
|
const workflow = workflowMetadataFromContext(admitted.spec.parent?.orchestrationContext);
|
|
11066
11065
|
if (admitted.sessionFile)
|
|
11067
11066
|
mkdirSync4(dirname7(admitted.sessionFile), { recursive: true });
|
|
11068
|
-
const sessionManager = admitted.sessionFile ? SessionManager.open(admitted.sessionFile, admitted.sessionDir, admitted.policy.cwd) : SessionManager.create(admitted.policy.cwd, admitted.sessionDir, workflow ? { internal: true, workflow } : { internal: true });
|
|
11069
|
-
activeSessionManager = sessionManager;
|
|
11067
|
+
const sessionManager = admitted.sessionFile ? await SessionManager.open(admitted.sessionFile, admitted.sessionDir, admitted.policy.cwd) : await SessionManager.create(admitted.policy.cwd, admitted.sessionDir, workflow ? { internal: true, workflow } : { internal: true });
|
|
11070
11068
|
taskHooks?.bindTranscript?.(sessionManager);
|
|
11071
11069
|
if (workflow)
|
|
11072
|
-
sessionManager.markSessionInternal(workflow);
|
|
11070
|
+
await sessionManager.markSessionInternal(workflow);
|
|
11073
11071
|
let created;
|
|
11074
11072
|
if (admitted.spec.testSession) {
|
|
11075
11073
|
created = { session: createTestSession(sessionManager, admitted.spec) };
|
|
@@ -11249,7 +11247,8 @@ class SubagentControlRuntime {
|
|
|
11249
11247
|
await terminate("abort");
|
|
11250
11248
|
if (signals.interrupt.aborted)
|
|
11251
11249
|
await terminate("interrupt");
|
|
11252
|
-
|
|
11250
|
+
if (!termination)
|
|
11251
|
+
await session.prompt(admitted.spec.task);
|
|
11253
11252
|
await terminating;
|
|
11254
11253
|
const stats = statsFor(session, admitted.identity.path);
|
|
11255
11254
|
const sessionFile = session.sessionFile;
|
|
@@ -11336,9 +11335,6 @@ class SubagentControlRuntime {
|
|
|
11336
11335
|
try {
|
|
11337
11336
|
unsubscribe?.();
|
|
11338
11337
|
} catch {}
|
|
11339
|
-
try {
|
|
11340
|
-
activeSessionManager?.flush();
|
|
11341
|
-
} catch {}
|
|
11342
11338
|
if (onCleanup) {
|
|
11343
11339
|
onCleanup((async () => {
|
|
11344
11340
|
try {
|
|
@@ -12545,7 +12541,7 @@ function resolveSubagentContext(value) {
|
|
|
12545
12541
|
function createForkContextResolver(sessionManager, requestedContext, options = {}) {
|
|
12546
12542
|
if (resolveSubagentContext(requestedContext) !== "fork") {
|
|
12547
12543
|
return {
|
|
12548
|
-
sessionFileForIndex: () => {
|
|
12544
|
+
sessionFileForIndex: async () => {
|
|
12549
12545
|
return;
|
|
12550
12546
|
}
|
|
12551
12547
|
};
|
|
@@ -12562,7 +12558,7 @@ function createForkContextResolver(sessionManager, requestedContext, options = {
|
|
|
12562
12558
|
const sessionDir = sessionManager.getSessionDir?.();
|
|
12563
12559
|
const cachedSessionFiles = new Map;
|
|
12564
12560
|
return {
|
|
12565
|
-
sessionFileForIndex(index = 0) {
|
|
12561
|
+
async sessionFileForIndex(index = 0) {
|
|
12566
12562
|
const cached = cachedSessionFiles.get(index);
|
|
12567
12563
|
if (cached)
|
|
12568
12564
|
return cached;
|
|
@@ -12570,8 +12566,8 @@ function createForkContextResolver(sessionManager, requestedContext, options = {
|
|
|
12570
12566
|
if (!fs11.existsSync(parentSessionFile)) {
|
|
12571
12567
|
throw new Error(`Parent session file does not exist: ${parentSessionFile}. Pi has not persisted enough history to fork yet.`);
|
|
12572
12568
|
}
|
|
12573
|
-
const sourceManager = openSession(parentSessionFile, sessionDir);
|
|
12574
|
-
const sessionFile = sourceManager.createBranchedSession(leafId);
|
|
12569
|
+
const sourceManager = await openSession(parentSessionFile, sessionDir);
|
|
12570
|
+
const sessionFile = await sourceManager.createBranchedSession(leafId);
|
|
12575
12571
|
if (!sessionFile) {
|
|
12576
12572
|
throw new Error("Session manager did not return a forked session file.");
|
|
12577
12573
|
}
|
|
@@ -12754,7 +12750,7 @@ function prepareExecutionContext(input) {
|
|
|
12754
12750
|
|
|
12755
12751
|
${effectiveParams.task ?? ""}` };
|
|
12756
12752
|
}
|
|
12757
|
-
let sessionFileForIndex = () => {
|
|
12753
|
+
let sessionFileForIndex = async () => {
|
|
12758
12754
|
return;
|
|
12759
12755
|
};
|
|
12760
12756
|
try {
|
|
@@ -12784,7 +12780,7 @@ ${effectiveParams.task ?? ""}` };
|
|
|
12784
12780
|
};
|
|
12785
12781
|
}
|
|
12786
12782
|
const sessionDirForIndex = (idx) => path13.join(sessionRoot, `run-${idx ?? 0}`);
|
|
12787
|
-
const childSessionFileForIndex = (idx) => sessionFileForIndex(idx) ?? path13.join(sessionDirForIndex(idx), "session.jsonl");
|
|
12783
|
+
const childSessionFileForIndex = async (idx) => await sessionFileForIndex(idx) ?? path13.join(sessionDirForIndex(idx), "session.jsonl");
|
|
12788
12784
|
const onUpdateWithContext = onUpdate ? (r) => onUpdate(withForkContext(r, effectiveParams.context)) : undefined;
|
|
12789
12785
|
const execData = {
|
|
12790
12786
|
params: effectiveParams,
|
|
@@ -13940,7 +13936,7 @@ async function runForegroundParallelTasks(input) {
|
|
|
13940
13936
|
runId: input.runId,
|
|
13941
13937
|
index,
|
|
13942
13938
|
sessionDir: input.sessionDirForIndex(index),
|
|
13943
|
-
sessionFile: input.sessionFileForIndex(index),
|
|
13939
|
+
sessionFile: await input.sessionFileForIndex(index),
|
|
13944
13940
|
share: input.shareEnabled,
|
|
13945
13941
|
artifactsDir: input.artifactConfig.enabled ? input.artifactsDir : undefined,
|
|
13946
13942
|
artifactConfig: input.artifactConfig,
|
|
@@ -15551,7 +15547,7 @@ async function runSinglePath(data, deps) {
|
|
|
15551
15547
|
intercomEvents: deps.pi.events,
|
|
15552
15548
|
runId,
|
|
15553
15549
|
sessionDir: sessionDirForIndex(0),
|
|
15554
|
-
sessionFile: sessionFileForIndex(0),
|
|
15550
|
+
sessionFile: await sessionFileForIndex(0),
|
|
15555
15551
|
share: shareEnabled,
|
|
15556
15552
|
artifactsDir: artifactConfig.enabled ? artifactsDir : undefined,
|
|
15557
15553
|
artifactConfig,
|
|
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
## [0.9.38-alpha.6] - 2026-10-16
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- Search and fetched-content results now wait for their session commits before becoming available or notifying the agent. Failed commits reach the existing error handling instead of reporting uncommitted results.
|
|
12
|
+
- An open `/websearch` curator now closes when reload or shutdown begins, without blocking teardown or abandoning an already-started session save.
|
|
13
|
+
|
|
7
14
|
## [0.9.20] - 2026-09-24
|
|
8
15
|
|
|
9
16
|
### Fixed
|
|
@@ -91198,8 +91198,8 @@ function registerContentTools(pi, deps) {
|
|
|
91198
91198
|
timestamp: Date.now(),
|
|
91199
91199
|
urls: deps.stripThumbnails(fetchResults)
|
|
91200
91200
|
};
|
|
91201
|
+
await pi.appendEntry("web-search-results", data);
|
|
91201
91202
|
storeResult(responseId, data);
|
|
91202
|
-
pi.appendEntry("web-search-results", data);
|
|
91203
91203
|
if (urlList.length === 1) {
|
|
91204
91204
|
const result = fetchResults[0];
|
|
91205
91205
|
if (result.error) {
|
|
@@ -96555,7 +96555,7 @@ var init_web_search_curator = __esm(() => {
|
|
|
96555
96555
|
});
|
|
96556
96556
|
|
|
96557
96557
|
// dist/builtin/web-access/web-search-return.ts
|
|
96558
|
-
function storeAndPublishSearch(pi, results, storage) {
|
|
96558
|
+
async function storeAndPublishSearch(pi, results, storage) {
|
|
96559
96559
|
const id = generateId();
|
|
96560
96560
|
const data = {
|
|
96561
96561
|
id,
|
|
@@ -96563,11 +96563,11 @@ function storeAndPublishSearch(pi, results, storage) {
|
|
|
96563
96563
|
timestamp: Date.now(),
|
|
96564
96564
|
queries: results
|
|
96565
96565
|
};
|
|
96566
|
+
await pi.appendEntry("web-search-results", data);
|
|
96566
96567
|
storage.storeResult(id, data);
|
|
96567
|
-
pi.appendEntry("web-search-results", data);
|
|
96568
96568
|
return id;
|
|
96569
96569
|
}
|
|
96570
|
-
function buildSearchReturn(opts, deps) {
|
|
96570
|
+
async function buildSearchReturn(opts, deps) {
|
|
96571
96571
|
const storage = deps.storage ?? createResultStorage();
|
|
96572
96572
|
const sc = opts.results.filter((r) => !r.error).length;
|
|
96573
96573
|
const tr = opts.results.reduce((sum, r) => sum + r.results.length, 0);
|
|
@@ -96613,8 +96613,8 @@ function buildSearchReturn(opts, deps) {
|
|
|
96613
96613
|
timestamp: Date.now(),
|
|
96614
96614
|
urls: opts.inlineContent
|
|
96615
96615
|
};
|
|
96616
|
+
await deps.pi.appendEntry("web-search-results", data);
|
|
96616
96617
|
storage.storeResult(fetchId, data);
|
|
96617
|
-
deps.pi.appendEntry("web-search-results", data);
|
|
96618
96618
|
if (!hasApprovedSummary) {
|
|
96619
96619
|
output += `---
|
|
96620
96620
|
Full content for ${opts.inlineContent.length} sources available [${fetchId}].`;
|
|
@@ -96626,7 +96626,7 @@ Full content for ${opts.inlineContent.length} sources available [${fetchId}].`;
|
|
|
96626
96626
|
Content fetching in background [${fetchId}]. Will notify when ready.`;
|
|
96627
96627
|
}
|
|
96628
96628
|
}
|
|
96629
|
-
const searchId = storeAndPublishSearch(deps.pi, opts.results, storage);
|
|
96629
|
+
const searchId = await storeAndPublishSearch(deps.pi, opts.results, storage);
|
|
96630
96630
|
const isBackgroundFetch = fetchId !== null && !hasInlineReady;
|
|
96631
96631
|
return {
|
|
96632
96632
|
content: [{ type: "text", text: output.trim() }],
|
|
@@ -96686,6 +96686,9 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96686
96686
|
pi.registerCommand("websearch", {
|
|
96687
96687
|
description: "Open web search curator",
|
|
96688
96688
|
handler: async (args, ctx) => {
|
|
96689
|
+
const sessionSignal = ctx.sessionSignal;
|
|
96690
|
+
if (sessionSignal.aborted)
|
|
96691
|
+
return;
|
|
96689
96692
|
deps.closeCurator();
|
|
96690
96693
|
const sessionToken = randomUUID3();
|
|
96691
96694
|
const raw = args.trim();
|
|
@@ -96707,13 +96710,30 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96707
96710
|
modelRegistry: ctx.modelRegistry
|
|
96708
96711
|
};
|
|
96709
96712
|
const summaryModelChoices = await loadSummaryModelChoices(summaryContext);
|
|
96713
|
+
if (sessionSignal.aborted)
|
|
96714
|
+
return;
|
|
96710
96715
|
ctx.ui.notify("Opening web search curator...", "info");
|
|
96711
96716
|
const collected = new Map;
|
|
96712
96717
|
const searchAbort = new AbortController;
|
|
96713
96718
|
let aborted = false;
|
|
96714
96719
|
let commandHandle = null;
|
|
96715
|
-
|
|
96716
|
-
|
|
96720
|
+
let finishCommand = () => {};
|
|
96721
|
+
const commandCompletion = new Promise((resolve) => {
|
|
96722
|
+
finishCommand = resolve;
|
|
96723
|
+
});
|
|
96724
|
+
const endSession = () => {
|
|
96725
|
+
aborted = true;
|
|
96726
|
+
searchAbort.abort();
|
|
96727
|
+
finishCommand();
|
|
96728
|
+
if (commandHandle && deps.state.activeCurator === commandHandle)
|
|
96729
|
+
deps.closeCurator();
|
|
96730
|
+
};
|
|
96731
|
+
sessionSignal.addEventListener("abort", endSession, { once: true });
|
|
96732
|
+
async function sendFollowUpFromReturn(options) {
|
|
96733
|
+
const payload = await deps.buildSearchReturn(options);
|
|
96734
|
+
if (sessionSignal.aborted)
|
|
96735
|
+
return;
|
|
96736
|
+
await pi.sendMessage({
|
|
96717
96737
|
customType: "web-search-results",
|
|
96718
96738
|
content: payload.content,
|
|
96719
96739
|
display: "tool",
|
|
@@ -96756,18 +96776,20 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96756
96776
|
base.approvedSummary = resolvedSummary.approvedSummary;
|
|
96757
96777
|
base.summaryMeta = resolvedSummary.summaryMeta;
|
|
96758
96778
|
}
|
|
96759
|
-
|
|
96779
|
+
finishCommand(base);
|
|
96760
96780
|
deps.closeCurator();
|
|
96761
96781
|
},
|
|
96762
96782
|
onCancel(reason) {
|
|
96763
|
-
if (commandHandle && deps.state.activeCurator !== commandHandle)
|
|
96783
|
+
if (commandHandle && deps.state.activeCurator !== commandHandle) {
|
|
96784
|
+
finishCommand();
|
|
96764
96785
|
return;
|
|
96786
|
+
}
|
|
96765
96787
|
aborted = true;
|
|
96766
96788
|
searchAbort.abort();
|
|
96767
96789
|
if (reason === "timeout") {
|
|
96768
96790
|
const all = collectAllResultsAndUrls(collected);
|
|
96769
96791
|
const resolvedSummary = resolveSummaryForSubmit({ selectedQueryIndices: [], summary: undefined, summaryMeta: undefined }, collected);
|
|
96770
|
-
|
|
96792
|
+
finishCommand({
|
|
96771
96793
|
queryList: all.results.map((r) => r.query),
|
|
96772
96794
|
results: all.results,
|
|
96773
96795
|
urls: all.urls,
|
|
@@ -96777,7 +96799,9 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96777
96799
|
workflow: "summary-review",
|
|
96778
96800
|
approvedSummary: resolvedSummary.approvedSummary,
|
|
96779
96801
|
summaryMeta: resolvedSummary.summaryMeta
|
|
96780
|
-
})
|
|
96802
|
+
});
|
|
96803
|
+
} else {
|
|
96804
|
+
finishCommand();
|
|
96781
96805
|
}
|
|
96782
96806
|
deps.closeCurator();
|
|
96783
96807
|
},
|
|
@@ -96832,9 +96856,16 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96832
96856
|
}
|
|
96833
96857
|
});
|
|
96834
96858
|
commandHandle = handle;
|
|
96859
|
+
if (sessionSignal.aborted) {
|
|
96860
|
+
handle.close();
|
|
96861
|
+
return;
|
|
96862
|
+
}
|
|
96835
96863
|
deps.state.activeCurator = handle;
|
|
96836
96864
|
await openCuratorWindow(pi, handle.url, "Search Curator", (win) => {
|
|
96837
|
-
|
|
96865
|
+
if (sessionSignal.aborted)
|
|
96866
|
+
win?.close();
|
|
96867
|
+
else
|
|
96868
|
+
deps.state.glimpseWin = win;
|
|
96838
96869
|
}, (win) => {
|
|
96839
96870
|
if (deps.state.glimpseWin === win) {
|
|
96840
96871
|
deps.state.glimpseWin = null;
|
|
@@ -96875,10 +96906,15 @@ function registerWebSearchCommand(pi, deps) {
|
|
|
96875
96906
|
if (deps.state.activeCurator === handle)
|
|
96876
96907
|
handle.searchesDone();
|
|
96877
96908
|
}
|
|
96909
|
+
const options = await commandCompletion;
|
|
96910
|
+
if (options)
|
|
96911
|
+
await sendFollowUpFromReturn(options);
|
|
96878
96912
|
} catch (err) {
|
|
96879
96913
|
deps.closeCurator();
|
|
96880
96914
|
const message = err instanceof Error ? err.message : String(err);
|
|
96881
96915
|
ctx.ui.notify(`Failed to open curator: ${message}`, "error");
|
|
96916
|
+
} finally {
|
|
96917
|
+
sessionSignal.removeEventListener("abort", endSession);
|
|
96882
96918
|
}
|
|
96883
96919
|
}
|
|
96884
96920
|
});
|
|
@@ -97187,9 +97223,11 @@ function registerWebSearchFeatures(pi, initConfig, storage = createResultStorage
|
|
|
97187
97223
|
timestamp: Date.now(),
|
|
97188
97224
|
urls: stripThumbnails(fetched)
|
|
97189
97225
|
};
|
|
97190
|
-
storeResult(fetchId, data);
|
|
97191
97226
|
try {
|
|
97192
|
-
pi.appendEntry("web-search-results", data);
|
|
97227
|
+
await pi.appendEntry("web-search-results", data);
|
|
97228
|
+
if (!runtimeState.sessionActive || !pendingFetches.has(fetchId))
|
|
97229
|
+
return;
|
|
97230
|
+
storeResult(fetchId, data);
|
|
97193
97231
|
const ok = fetched.filter((f) => !f.error).length;
|
|
97194
97232
|
await pi.sendMessage({
|
|
97195
97233
|
customType: "web-search-content-ready",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bastani/web-access",
|
|
3
|
-
"version": "0.9.38-alpha.
|
|
3
|
+
"version": "0.9.38-alpha.6",
|
|
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,42 @@ 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.38-alpha.6] - 2026-10-16
|
|
10
|
+
|
|
11
|
+
### Breaking Changes
|
|
12
|
+
|
|
13
|
+
- Removed the SDK `durability` option, `WorkflowDurability`, and `WorkflowDurabilityRequiredError`. Use `RunOpts.journal` to select storage or isolate runs, and handle typed journal errors when storage is unavailable.
|
|
14
|
+
- Removed `InMemoryDurableBackend` and `createInMemoryTestBackend`. Use `JournalDurableBackend` over `MemoryRunJournal` for an explicitly in-memory backend. Removed the `legacyRecovery` workflow-tool argument and remaining `workflows.durability` settings.
|
|
15
|
+
- Removed the `@bastani/workflows` import alias; use `@bastani/atomic/workflows`.
|
|
16
|
+
- Custom `RunJournal` implementations must provide `getRun`, `takeoverExpired`, `leaseState`, lazy paged `read`, and `deleteOwnedRun(lease)` for atomic lease-fenced deletion. Synchronous fast paths are internal.
|
|
17
|
+
- Invocation records require `invocationFingerprint`.
|
|
18
|
+
- SDK workflow stages now use persistent session storage by default, including stages without `sessionDir`. Ephemeral stages must explicitly supply an in-memory session manager through an adapter. Storage failures do not fall back to memory.
|
|
19
|
+
- Replaced `SqliteRunJournal` with async `SqlRunJournal.open(database, { prefix })` and `openSqlRunJournal(pathOrDatabase?)`; await `resolveRunJournal`. Journal tables now use the `wf_` namespace with no migration of earlier unreleased tables. Journal storage errors use the shared `StorageUnavailableError` fields `adapter`, `location`, and `cause` instead of `path`.
|
|
20
|
+
- Custom journals must return `LeaseState.ageMs`, a non-negative safe-integer renewal age measured by the journal clock in the same read as the lease state. Ownership probes use this age rather than the process clock.
|
|
21
|
+
|
|
22
|
+
### Added
|
|
23
|
+
|
|
24
|
+
- Added `RunOpts.journal` and `resolveRunJournal` for explicit journals, caller-owned SQLite connections, memory journals, and configurable files. TUI, CLI, background, and SDK runs use the selected journal. Resolution prioritizes the explicit option, a non-empty `ATOMIC_WORKFLOW_JOURNAL_PATH`, then journal settings and the default path. Relative settings paths resolve against the Atomic home directory.
|
|
25
|
+
- Extended shared journal conformance checks to cover detached values, closed-journal rejection, failure atomicity, and deletion tombstones.
|
|
26
|
+
- Added stale-only async journal takeover and read-only ownership inspection. Keyed append retries return the original entry before checking sequence expectations. Shared journal conformance covers stale-only takeover and early read termination.
|
|
27
|
+
- Added facade-backed SQL journals for user-supplied SQLite-compatible drivers, optional table prefixes, shared session/journal databases, database-clock lease expiry, and sequence-checked `deleteOwnedRun(lease, expectSeq?)`.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- Fixed workflow recovery reporting a foreign run as available at the exact lease-expiry boundary before takeover is permitted ([#3681](https://github.com/bastani-inc/atomic/pull/3681)).
|
|
32
|
+
- SQL journals snapshot append payloads at invocation, including keyed retries, preserving status/event consistency during queued writes. User-supplied facades may return readonly rows. Header and append serialization failures now retain typed storage errors and their original causes without changing fencing, replay, or sequence-check precedence.
|
|
33
|
+
- Journal run summaries and status validation now use the serialized `StatusChanged` payload, including transformations by `toJSON`, so recorded events and summaries agree. Ownership inspection now honors the journal clock even when the process clock is skewed.
|
|
34
|
+
- Fixed workflow error cards hiding text-only failures as `no result`. Errors without structured details now show their text and an error indication in collapsed and expanded cards ([#3669](https://github.com/bastani-inc/atomic/issues/3669)).
|
|
35
|
+
- Fixed failed workflow resumes reporting partial progress solely because a sibling was already running. Requests with no acknowledged effect now report no change and retain their failure code ([#3670](https://github.com/bastani-inc/atomic/issues/3670)).
|
|
36
|
+
- Fixed workflow pause reporting `noop` after a stage pause took effect but durable capture failed, including whole-run and bulk requests. The result now reports `partial`, explains that the pause remains in effect, and preserves the failure code and message ([#3671](https://github.com/bastani-inc/atomic/issues/3671)).
|
|
37
|
+
|
|
38
|
+
## [0.9.38-alpha.5] - 2026-10-16
|
|
39
|
+
|
|
40
|
+
### Fixed
|
|
41
|
+
|
|
42
|
+
- Fixed standalone SDK `run()` resolving string stage models, including thinking suffixes and fallback models, instead of crashing during session creation ([#3629](https://github.com/bastani-inc/atomic/issues/3629)).
|
|
43
|
+
- Fixed queued Intercom instructions preventing stage model fallback. Delivery failures now block resumably and preserve sticky instructions for resumed runs and later stages ([#3628](https://github.com/bastani-inc/atomic/issues/3628)).
|
|
44
|
+
|
|
9
45
|
## [0.9.38-alpha.4] - 2026-10-16
|
|
10
46
|
|
|
11
47
|
### Breaking Changes
|