@bastani/atomic 0.10.19 → 0.10.20-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +72 -0
- package/dist/_shared/adapter-open-DXXV6ATH.js +22 -0
- package/dist/_shared/adapter-open-DXXV6ATH.js.map +1 -0
- package/dist/_shared/dist-KOELCESV.js +2 -2
- package/dist/_shared/fork-row-index-UAUAQRD5.js +2 -2
- package/dist/_shared/lib-4PES5P4V.js +2 -2
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js +484 -229
- package/dist/_shared/mode-interactive-sdk-JXBZ3H27.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +63 -16
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +61 -16
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/p0-cli-BB45ZQY6.js +2 -2
- package/dist/_shared/p1a-prewarm-XIU57JHF.js +3 -3
- package/dist/_shared/p1b-elig-BY2G5BUE.js +6 -3
- package/dist/_shared/p1b-elig-BY2G5BUE.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-BHX35EPK.js → sdk-5ZFNDXUJ.js} +319 -86
- package/dist/_shared/sdk-5ZFNDXUJ.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +15 -7
- package/dist/_shared/session-data-AHTU7IS6.js.map +1 -1
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-HXQLSUWM.js +2 -2
- package/dist/_shared/settings-startup-HXQLSUWM.js.map +1 -1
- package/dist/_shared/{startup-0-0-4EDVBK5P.js → startup-0-0-OWBJIX35.js} +162 -44
- package/dist/_shared/startup-0-0-OWBJIX35.js.map +1 -0
- package/dist/_shared/{startup-0-1-H5IXVRXQ.js → startup-0-1-DZYE4E5Z.js} +462 -37
- package/dist/_shared/startup-0-1-DZYE4E5Z.js.map +1 -0
- package/dist/_shared/{startup-0-2-YZZOC22D.js → startup-0-2-WFLTE4SC.js} +147 -6
- package/dist/_shared/startup-0-2-WFLTE4SC.js.map +1 -0
- package/dist/_shared/startup-0-3-DE2NCS6A.js +59 -50
- package/dist/_shared/startup-0-3-DE2NCS6A.js.map +1 -1
- package/dist/_shared/{startup-0-4-ZMJV547D.js → startup-0-4-6XXL4JMZ.js} +115 -25
- package/dist/_shared/startup-0-4-6XXL4JMZ.js.map +1 -0
- package/dist/_shared/{startup-0-5-HZX3ZPTP.js → startup-0-5-DNS6FYS7.js} +229 -156
- package/dist/_shared/startup-0-5-DNS6FYS7.js.map +1 -0
- package/dist/_shared/{startup-10-0-TDQNBDDL.js → startup-10-0-O6DAT7U4.js} +131 -162
- package/dist/_shared/startup-10-0-O6DAT7U4.js.map +1 -0
- package/dist/_shared/startup-12-0-55AAXBJZ.js +3 -3
- package/dist/_shared/startup-14-0-MLX36RBG.js +9 -6
- package/dist/_shared/startup-14-0-MLX36RBG.js.map +1 -1
- package/dist/_shared/{startup-15-0-YUKGAC63.js → startup-15-0-E7RYG5YF.js} +9 -9
- package/dist/_shared/{startup-15-0-YUKGAC63.js.map → startup-15-0-E7RYG5YF.js.map} +1 -1
- package/dist/_shared/startup-15-1-WQZBOTMZ.js +340 -128
- package/dist/_shared/startup-15-1-WQZBOTMZ.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +279 -151
- package/dist/_shared/startup-8-0-34CBHPZH.js.map +1 -1
- package/dist/_shared/{startup-8-1-QZMXUGHI.js → startup-8-1-VXBL37AI.js} +352 -27
- package/dist/_shared/startup-8-1-VXBL37AI.js.map +1 -0
- package/dist/_shared/storage-command-7MGXLJGZ.js +15 -273
- package/dist/_shared/storage-command-7MGXLJGZ.js.map +1 -1
- package/dist/_shared/{storage-status-K7PX2RXA.js → storage-status-T6FUXRIM.js} +8 -24
- package/dist/_shared/{storage-status-K7PX2RXA.js.map → storage-status-T6FUXRIM.js.map} +1 -1
- package/dist/_shared/task-reference-stream-JWMUZSJX.js +1 -1
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/team-DOQKICG2.js +4 -3
- package/dist/_shared/team-DOQKICG2.js.map +1 -1
- package/dist/_shared/tree-outline-MUEPK5B7.js +9 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js.map +1 -1
- package/dist/binary-self-update.js +3 -3
- package/dist/builtin/intercom/broker/broker.bundle.mjs +46 -8
- package/dist/builtin/intercom/broker/broker.ts +1 -0
- package/dist/builtin/intercom/broker/client.ts +5 -1
- package/dist/builtin/intercom/broker/departed-children.ts +12 -6
- package/dist/builtin/intercom/broker/ended-child-wakes.ts +2 -0
- package/dist/builtin/intercom/index.bundle.mjs +130 -264
- package/dist/builtin/intercom/message-display.ts +42 -0
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/intercom/types.ts +1 -0
- package/dist/builtin/mcp/index.bundle.mjs +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 +99 -20
- package/dist/builtin/web-access/index.bundle.mjs +15 -9
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +6 -6
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +4 -4
- package/dist/cli/blueprint-command.impl.js +3 -3
- package/dist/cli/blueprint-command.js +3 -3
- package/dist/cli/intercom-command.code.js +3 -3
- package/dist/cli/intercom-command.impl.js +3 -3
- package/dist/cli/intercom-command.js +3 -3
- package/dist/cli/list-models.code.js +3 -3
- package/dist/cli/list-models.impl.js +3 -3
- package/dist/cli/list-models.js +3 -3
- package/dist/cli/session-picker.code.js +2 -2
- package/dist/cli/session-picker.impl.js +3 -3
- package/dist/cli/session-picker.js +3 -3
- package/dist/cli/startup-ui.code.js +2 -2
- package/dist/cli/startup-ui.impl.js +3 -3
- package/dist/cli/startup-ui.js +3 -3
- package/dist/cli/storage-command.impl.js +3 -3
- package/dist/cli/storage-command.js +3 -3
- package/dist/cli/storage-search-session.code.js +3 -3
- package/dist/cli/storage-search-session.impl.js +3 -3
- package/dist/cli/storage-search-session.js +3 -3
- package/dist/cli/team-command.code.js +3 -3
- package/dist/cli/team-command.impl.js +3 -3
- package/dist/cli/team-command.js +3 -3
- package/dist/cli.js +2 -2
- package/dist/core/agent-session-runtime.d.ts +16 -4
- package/dist/core/agent-session-types.d.ts +5 -1
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- package/dist/core/export-html/card-projection.code.js +74 -72
- package/dist/core/export-html/card-projection.code.js.map +1 -1
- package/dist/core/export-html/card-projection.impl.js +3 -3
- package/dist/core/export-html/card-projection.js +3 -3
- package/dist/core/export-html/index.code.js +52 -41
- package/dist/core/export-html/index.code.js.map +1 -1
- package/dist/core/export-html/index.impl.js +3 -3
- package/dist/core/export-html/index.js +3 -3
- package/dist/core/export-html/json-spans.impl.js +3 -3
- package/dist/core/export-html/json-spans.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.code.js +1 -1
- package/dist/core/export-html/oversized-render-inputs.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- package/dist/core/export-html/template.js +27 -39
- package/dist/core/export-html/tool-renderer.code.js +1 -1
- package/dist/core/export-html/tool-renderer.impl.js +3 -3
- package/dist/core/export-html/tool-renderer.js +3 -3
- package/dist/core/extensions/context-types.d.ts +3 -0
- package/dist/core/extensions/context-types.js.map +1 -1
- package/dist/core/extensions/jiti-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-loader.js +3 -3
- package/dist/core/extensions/jiti-static-loader.impl.js +3 -3
- package/dist/core/extensions/jiti-static-loader.js +3 -3
- package/dist/core/extensions/loader-host-modules.code.js +1 -1
- package/dist/core/extensions/loader-host-modules.impl.js +3 -3
- package/dist/core/extensions/loader-host-modules.js +3 -3
- package/dist/core/extensions/loader-virtual-modules.js +2 -2
- package/dist/core/extensions/runner-context.d.ts +1 -0
- package/dist/core/extensions/runner-context.js +18 -2
- package/dist/core/extensions/runner-context.js.map +1 -1
- package/dist/core/extensions/runner.d.ts +1 -0
- package/dist/core/extensions/runtime-types.d.ts +1 -0
- package/dist/core/extensions/runtime-types.js.map +1 -1
- package/dist/core/intercom-broker-control-host.code.js +1 -1
- package/dist/core/intercom-broker-control-host.impl.js +3 -3
- package/dist/core/intercom-broker-control-host.js +3 -3
- package/dist/core/intercom-broker-control.code.js +3 -3
- package/dist/core/intercom-broker-control.impl.js +3 -3
- package/dist/core/intercom-broker-control.js +3 -3
- package/dist/core/model-registry.js +2 -2
- package/dist/core/model-runtime-streaming.d.ts +3 -1
- package/dist/core/model-runtime.d.ts +2 -0
- package/dist/core/package-manager-storage-adapters.code.js +1 -1
- package/dist/core/package-manager-storage-adapters.impl.js +3 -3
- package/dist/core/package-manager-storage-adapters.js +3 -3
- package/dist/core/resume/failure.d.ts +1 -1
- package/dist/core/sdk.code.js +4 -4
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-claims.d.ts +13 -2
- package/dist/core/session-load-events.d.ts +42 -0
- package/dist/core/session-manager-core.d.ts +17 -2
- package/dist/core/session-manager-core.js +234 -93
- package/dist/core/session-manager-core.js.map +1 -1
- package/dist/core/session-manager-errors.d.ts +2 -2
- package/dist/core/session-manager-history.d.ts +1 -1
- package/dist/core/session-manager-list.impl.js +3 -3
- package/dist/core/session-manager-list.js +3 -3
- package/dist/core/session-manager.code.js +2 -2
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.code.js +1 -1
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager.js +2 -2
- package/dist/core/storage/adapter-open.js +3 -0
- package/dist/core/storage/adapter-open.js.map +1 -0
- package/dist/core/storage/index.js +2 -2
- package/dist/core/storage/node-sqlite-thread.js +2 -2
- package/dist/core/storage/node-sqlite.js +2 -2
- package/dist/core/storage/offline-snapshot-file.impl.js +3 -3
- package/dist/core/storage/offline-snapshot-file.js +3 -3
- package/dist/core/storage/prefix.js +1 -0
- package/dist/core/storage/prefix.js.map +1 -1
- package/dist/core/storage/provider.js +2 -2
- package/dist/core/storage/schema-catalog.d.ts +2 -1
- package/dist/core/storage/schema-catalog.js +25 -6
- package/dist/core/storage/schema-catalog.js.map +1 -1
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +17 -4
- package/dist/core/storage/session/branch-fork-source.code.js.map +1 -1
- package/dist/core/storage/session/branch-fork-source.impl.js +3 -3
- package/dist/core/storage/session/branch-fork-source.js +3 -3
- package/dist/core/storage/session/card-view.impl.js +3 -3
- package/dist/core/storage/session/card-view.js +3 -3
- package/dist/core/storage/session/child-reader.code.js +7 -7
- package/dist/core/storage/session/child-reader.code.js.map +1 -1
- package/dist/core/storage/session/child-reader.d.ts +1 -0
- package/dist/core/storage/session/child-reader.impl.js +3 -3
- package/dist/core/storage/session/child-reader.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.code.js +1 -1
- package/dist/core/storage/session/chunked-resume-projection.impl.js +3 -3
- package/dist/core/storage/session/chunked-resume-projection.js +3 -3
- package/dist/core/storage/session/expanded-child-details.code.js +3 -3
- package/dist/core/storage/session/expanded-child-details.impl.js +3 -3
- package/dist/core/storage/session/expanded-child-details.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.impl.js +3 -3
- package/dist/core/storage/session/fork-row-bytes.js +3 -3
- package/dist/core/storage/session/fork-row-index.impl.js +3 -3
- package/dist/core/storage/session/fork-row-index.js +3 -3
- package/dist/core/storage/session/fork-staging.code.js +9 -5
- package/dist/core/storage/session/fork-staging.code.js.map +1 -1
- package/dist/core/storage/session/fork-staging.impl.js +3 -3
- package/dist/core/storage/session/fork-staging.js +3 -3
- package/dist/core/storage/session/fork-window.code.js +29 -13
- package/dist/core/storage/session/fork-window.code.js.map +1 -1
- package/dist/core/storage/session/fork-window.impl.js +3 -3
- package/dist/core/storage/session/fork-window.js +3 -3
- package/dist/core/storage/session/history-pages.impl.js +3 -3
- package/dist/core/storage/session/history-pages.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.impl.js +3 -3
- package/dist/core/storage/session/jsonl-entry-projection.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.d.ts +8 -4
- package/dist/core/storage/session/jsonl-session-store.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +3 -3
- package/dist/core/storage/session/memory-session-store.d.ts +3 -3
- package/dist/core/storage/session/memory-session-store.impl.js +3 -3
- package/dist/core/storage/session/memory-session-store.js +3 -3
- package/dist/core/storage/session/parent-links.d.ts +122 -0
- package/dist/core/storage/session/pinned-branch-resume.code.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.impl.js +3 -3
- package/dist/core/storage/session/pinned-branch-resume.js +3 -3
- package/dist/core/storage/session/released-history-files.code.js +3 -3
- package/dist/core/storage/session/released-history-files.impl.js +3 -3
- package/dist/core/storage/session/released-history-files.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.impl.js +3 -3
- package/dist/core/storage/session/resident-fork-rows.js +3 -3
- package/dist/core/storage/session/session-resume.impl.js +3 -3
- package/dist/core/storage/session/session-resume.js +3 -3
- package/dist/core/storage/session/snapshot-cut.impl.js +3 -3
- package/dist/core/storage/session/snapshot-cut.js +3 -3
- package/dist/core/storage/session/snapshot-history.code.js +5 -6
- package/dist/core/storage/session/snapshot-history.code.js.map +1 -1
- package/dist/core/storage/session/snapshot-history.impl.js +3 -3
- package/dist/core/storage/session/snapshot-history.js +3 -3
- package/dist/core/storage/session/sql-session-store.code.js +1 -1
- package/dist/core/storage/session/sql-session-store.d.ts +7 -20
- package/dist/core/storage/session/sql-session-store.impl.js +3 -3
- package/dist/core/storage/session/sql-session-store.js +3 -3
- package/dist/core/storage/session/tree-outline.impl.js +3 -3
- package/dist/core/storage/session/tree-outline.js +3 -3
- package/dist/core/storage/session/tree-presentation.code.js +1 -1
- package/dist/core/storage/session/tree-presentation.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- package/dist/core/storage/session/types.d.ts +11 -3
- package/dist/core/storage/session/usage-observations.d.ts +27 -0
- package/dist/core/storage/session/usage-observations.js +3 -0
- package/dist/core/storage/session/usage-observations.js.map +1 -0
- package/dist/core/storage/storage-status.code.js +1 -1
- package/dist/core/storage/storage-status.impl.js +3 -3
- package/dist/core/storage/storage-status.js +3 -3
- package/dist/core/storage/team.impl.js +3 -3
- package/dist/core/storage/team.js +3 -3
- package/dist/core/structured-output/index.code.js +1 -1
- package/dist/core/structured-output/index.impl.js +3 -3
- package/dist/core/structured-output/index.js +3 -3
- package/dist/core/subscription-usage-identity.d.ts +9 -0
- package/dist/core/subscription-usage-observations.d.ts +15 -0
- package/dist/core/subscription-usage-storage.js +3 -0
- package/dist/core/subscription-usage-storage.js.map +1 -0
- package/dist/core/subscription-usage.d.ts +20 -3
- package/dist/core/tasks/task-completion-entry.code.js +1 -1
- package/dist/core/tasks/task-completion-entry.impl.js +3 -3
- package/dist/core/tasks/task-completion-entry.js +3 -3
- package/dist/core/tasks/task-file-history.code.js +3 -3
- package/dist/core/tasks/task-file-history.impl.js +3 -3
- package/dist/core/tasks/task-file-history.js +3 -3
- package/dist/core/tasks/task-reference-archive.code.js +5 -5
- package/dist/core/tasks/task-reference-archive.js +3 -3
- package/dist/core/tasks/task-reference-identity.code.js +1 -1
- package/dist/core/tasks/task-reference-identity.js +3 -3
- package/dist/core/tasks/task-reference-stream.impl.js +3 -3
- package/dist/core/tasks/task-reference-stream.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.impl.js +3 -3
- package/dist/core/tasks/task-unsaved-answer.js +3 -3
- package/dist/core/tasks/task-view-source.code.js +1 -1
- package/dist/core/tasks/task-view-source.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +3 -3
- package/dist/core/tools/read-url.impl.js +3 -3
- package/dist/core/tools/read-url.js +3 -3
- package/dist/core/worktree-snapshot/blob-store.js +2 -2
- package/dist/core/worktree-snapshot/errors.code.js +3 -3
- package/dist/core/worktree-snapshot/errors.impl.js +3 -3
- package/dist/core/worktree-snapshot/errors.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.impl.js +3 -3
- package/dist/core/worktree-snapshot/session-index-reset.js +3 -3
- package/dist/extensions/codemode/execute.code.js +2 -2
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +12 -7
- package/dist/extensions/codemode/renderer.code.js.map +1 -1
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +3 -3
- package/dist/extensions/mcp/cli.impl.js +3 -3
- package/dist/extensions/mcp/cli.js +3 -3
- package/dist/extensions/mcp/cli.lazy.code.js +2 -2
- package/dist/extensions/mcp/cli.lazy.impl.js +3 -3
- package/dist/extensions/mcp/cli.lazy.js +3 -3
- package/dist/extensions/mcp/runtime.code.js +1 -1
- package/dist/extensions/mcp/runtime.impl.js +3 -3
- package/dist/extensions/mcp/runtime.js +3 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +10 -10
- package/dist/main-first-time-setup.code.js +2 -2
- package/dist/main-first-time-setup.impl.js +3 -3
- package/dist/main-first-time-setup.js +3 -3
- package/dist/main.js +1 -1
- package/dist/modes/index.d.ts +1 -1
- package/dist/modes/interactive/components/intercom-wake-notice.d.ts +4 -0
- package/dist/modes/interactive/components/notice-line.d.ts +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +6 -5
- package/dist/modes/interactive/components/stored-tree-view.code.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.impl.js +3 -3
- package/dist/modes/interactive/components/stored-tree-view.js +3 -3
- package/dist/modes/interactive/components/tool-block.d.ts +5 -1
- package/dist/modes/interactive/components/user-message-selector-archive.code.js +1 -1
- package/dist/modes/interactive/components/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive-engine/isolated-runtime.d.ts +4 -3
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +5 -0
- package/dist/modes/rpc/rpc-client.d.ts +1 -1
- package/dist/modes/rpc/rpc-types.d.ts +26 -3
- package/dist/package-manager-cli.code.js +7 -7
- package/dist/package-manager-cli.impl.js +3 -3
- package/dist/package-manager-cli.js +3 -3
- package/dist/rpc-entry.js +1 -1
- package/dist/startup-files.json +1 -1
- package/dist/startup-stages/10.js +1 -1
- package/dist/startup-stages/12.js +1 -1
- package/dist/startup-stages/13.js +2 -1
- package/dist/startup-stages/14.js +1 -0
- package/dist/startup-stages/4.js +1 -1
- package/dist/startup-stages/6.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -1
- package/dist/startup-stages/stages.json +1 -1
- package/dist/utils/startup-database-spare.code.js +3 -3
- package/dist/utils/startup-database-spare.impl.js +3 -3
- package/dist/utils/startup-database-spare.js +3 -3
- package/dist/utils/tools-manager.code.js +1 -1
- package/dist/utils/tools-manager.impl.js +3 -3
- package/dist/utils/tools-manager.js +3 -3
- package/docs/.agents/context/DESIGN.md +30 -0
- package/docs/changelog.mdx +46 -0
- package/docs/docs.json +1 -1
- package/docs/extensions/api-reference.md +6 -0
- package/docs/guides/subscription-usage.md +28 -82
- package/docs/intercom.md +3 -1
- package/docs/json.md +3 -3
- package/docs/providers.md +2 -0
- package/docs/reference/cli.md +3 -1
- package/docs/rpc/protocol.md +31 -3
- package/docs/sdk/reference.md +26 -1
- package/docs/sdk.md +2 -0
- package/docs/sessions.md +38 -1
- package/docs/slash-commands.md +1 -1
- package/docs/subagents.md +2 -0
- package/docs/usage.md +1 -1
- package/package.json +8 -8
- package/dist/_shared/sdk-BHX35EPK.js.map +0 -1
- package/dist/_shared/startup-0-0-4EDVBK5P.js.map +0 -1
- package/dist/_shared/startup-0-1-H5IXVRXQ.js.map +0 -1
- package/dist/_shared/startup-0-2-YZZOC22D.js.map +0 -1
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +0 -1
- package/dist/_shared/startup-0-5-HZX3ZPTP.js.map +0 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js.map +0 -1
- package/dist/_shared/startup-8-1-QZMXUGHI.js.map +0 -1
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
import { shouldRunFirstTimeSetup } from "../_shared/startup-0-0-
|
|
3
|
-
import { StartupDialogInputGuard, detectStartupTheme, showFirstTimeSetup, showStartupInput, showStartupSelector } from "../_shared/startup-0-2-
|
|
2
|
+
import { shouldRunFirstTimeSetup } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
3
|
+
import { StartupDialogInputGuard, detectStartupTheme, showFirstTimeSetup, showStartupInput, showStartupSelector } from "../_shared/startup-0-2-WFLTE4SC.js";
|
|
4
4
|
export { StartupDialogInputGuard, detectStartupTheme, shouldRunFirstTimeSetup, showFirstTimeSetup, showStartupInput, showStartupSelector };
|
|
5
5
|
//# sourceMappingURL=startup-ui.code.js.map
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/startup-ui.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { resolve } from "node:path";
|
|
3
3
|
import { renderStorageIdentifiers } from "../core/storage/prefix.js";
|
|
4
|
-
import { SESSION_TABLES, SqlSessionStore } from "../_shared/sdk-
|
|
5
|
-
import { createHistoryRouter, createSearchToolDefinition } from "../_shared/startup-8-1-
|
|
4
|
+
import { SESSION_TABLES, SqlSessionStore } from "../_shared/sdk-5ZFNDXUJ.js";
|
|
5
|
+
import { createHistoryRouter, createSearchToolDefinition } from "../_shared/startup-8-1-VXBL37AI.js";
|
|
6
6
|
import { lstat, realpath, stat } from "node:fs/promises";
|
|
7
7
|
import { pathToFileURL } from "node:url";
|
|
8
|
-
import { SqliteSelectorConnection } from "../_shared/startup-0-0-
|
|
8
|
+
import { SqliteSelectorConnection } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
9
9
|
// dist/cli/storage-search-database.js
|
|
10
10
|
async function existingFile(path) {
|
|
11
11
|
try {
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session storage.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -2,10 +2,10 @@ import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
|
2
2
|
import { APP_NAME } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
3
3
|
import { StorageError, TeamProfileConfigError, isTeamProfileConfigError, isTeamProfileError } from "../core/storage/errors.js";
|
|
4
4
|
import { LIBSQL_MIGRATION_DOCS_URL } from "../core/storage/libsql-removed.js";
|
|
5
|
-
import { processStorageEnvironment } from "../_shared/startup-0-2-
|
|
6
|
-
import { collectStorageStatus, describeStorageError as describeStorageError$1 } from "../_shared/storage-status-
|
|
5
|
+
import { processStorageEnvironment } from "../_shared/startup-0-2-WFLTE4SC.js";
|
|
6
|
+
import { collectStorageStatus, describeStorageError as describeStorageError$1 } from "../_shared/storage-status-T6FUXRIM.js";
|
|
7
7
|
import { selectTeamProfile } from "../_shared/team-DOQKICG2.js";
|
|
8
|
-
import { createGitEnvironment } from "../_shared/startup-0-0-
|
|
8
|
+
import { createGitEnvironment } from "../_shared/startup-0-0-OWBJIX35.js";
|
|
9
9
|
import { failed, formatStorageStatus, loadBrokerControl } from "../_shared/storage-command-7MGXLJGZ.js";
|
|
10
10
|
// dist/cli/team-command.js
|
|
11
11
|
/**
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli/team-command.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/cli.js
CHANGED
|
@@ -94,7 +94,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
94
94
|
return (async () => {
|
|
95
95
|
const root = new URL("./", import.meta.url);
|
|
96
96
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
97
|
-
const key = `${root.href}#0.10.
|
|
97
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
98
98
|
let release = releases.get(key);
|
|
99
99
|
if (release === undefined) {
|
|
100
100
|
const current = (async () => {
|
|
@@ -122,7 +122,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
122
122
|
} catch {
|
|
123
123
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
124
124
|
}
|
|
125
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
125
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.20-alpha.2" ? installed : running !== undefined && running.version !== "0.10.20-alpha.2" ? "0.10.20-alpha.2" : undefined;
|
|
126
126
|
if (updatedTo === undefined) throw error;
|
|
127
127
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
128
128
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -4,13 +4,15 @@ import { type Api, type Model } from "@bastani/atomic-ai/compat";
|
|
|
4
4
|
import type { AgentSession } from "./agent-session.js";
|
|
5
5
|
import { type AtomicOAuthLoginCallbacks } from "./agent-session-runtime-auth.ts";
|
|
6
6
|
import type { AgentSessionRuntimeDiagnostic, AgentSessionServices } from "./agent-session-services.ts";
|
|
7
|
+
import type { AgentSessionEventListener } from "./agent-session-types.js";
|
|
7
8
|
import type { ProjectTrustContext, ReplacedSessionContext, SessionStartEvent } from "./extensions/index.js";
|
|
8
9
|
import type { ModelFallbackReason } from "./model-resolver-types.ts";
|
|
9
10
|
import type { SessionTrustDecisions } from "./project-trust-state.ts";
|
|
10
11
|
import type { AuthStatus } from "./provider-composer.ts";
|
|
11
|
-
import { type ResumeNotice } from "./resume/session-resume.ts";
|
|
12
|
+
import { type PrepareSessionResumeOptions, type ResumeNotice } from "./resume/session-resume.ts";
|
|
12
13
|
import type { CreateAgentSessionResult } from "./sdk.ts";
|
|
13
14
|
import { SessionManager } from "./session-manager.ts";
|
|
15
|
+
import type { SessionImportResult } from "./storage/session/parent-links.js";
|
|
14
16
|
/**
|
|
15
17
|
* Result returned by runtime creation.
|
|
16
18
|
*
|
|
@@ -74,6 +76,8 @@ export declare class SessionImportFileNotFoundError extends Error {
|
|
|
74
76
|
export declare const HOST_STARTED_SESSION: unique symbol;
|
|
75
77
|
export declare class AgentSessionRuntime {
|
|
76
78
|
private rebindSession?;
|
|
79
|
+
private readonly listeners;
|
|
80
|
+
private unsubscribeSessionEvents?;
|
|
77
81
|
private beforeSessionInvalidate?;
|
|
78
82
|
private projectTrustContextFactory?;
|
|
79
83
|
private closed;
|
|
@@ -93,9 +97,17 @@ export declare class AgentSessionRuntime {
|
|
|
93
97
|
private readonly sessionFactory;
|
|
94
98
|
private retainRetirementCleanup;
|
|
95
99
|
private finalizeRetained;
|
|
100
|
+
/** The isolated host views sessions already opened by its writer, the engine. */
|
|
101
|
+
protected sessionClaimMirror: boolean;
|
|
102
|
+
private claimSessionTarget;
|
|
96
103
|
private replace;
|
|
104
|
+
private replaceOperation;
|
|
97
105
|
private assertOpen;
|
|
98
106
|
private admit;
|
|
107
|
+
/** Subscribe to the active session's events across replacements. Replays this runtime's initial open. */
|
|
108
|
+
subscribe(listener: AgentSessionEventListener): () => void;
|
|
109
|
+
private bindSessionEvents;
|
|
110
|
+
private emitEvent;
|
|
99
111
|
/** Bind a process-local trust UI; closures never cross the engine RPC boundary. */
|
|
100
112
|
setProjectTrustContextFactory(factory: (cwd: string) => ProjectTrustContext): void;
|
|
101
113
|
/** Return false for ordinary startup; otherwise finish the safe session in place. */
|
|
@@ -214,6 +226,7 @@ export declare class AgentSessionRuntime {
|
|
|
214
226
|
withSession?: (ctx: ReplacedSessionContext) => Promise<void>;
|
|
215
227
|
projectTrustContextFactory?: (cwd: string) => ProjectTrustContext;
|
|
216
228
|
history?: "tail" | "full";
|
|
229
|
+
onProgress?: PrepareSessionResumeOptions["onProgress"];
|
|
217
230
|
/**
|
|
218
231
|
* @internal The session was created just before this switch, as the fork a session whose directory is missing
|
|
219
232
|
* asks for, so it is a new session rather than a resumed one: the manager that created it, which hands its
|
|
@@ -239,9 +252,7 @@ export declare class AgentSessionRuntime {
|
|
|
239
252
|
selectedText?: string;
|
|
240
253
|
}>;
|
|
241
254
|
/** Import a format-4 JSONL export into the active session store. */
|
|
242
|
-
importFromJsonl(inputPath: string, cwdOverride?: string): Promise<
|
|
243
|
-
cancelled: boolean;
|
|
244
|
-
}>;
|
|
255
|
+
importFromJsonl(inputPath: string, cwdOverride?: string): Promise<SessionImportResult>;
|
|
245
256
|
/**
|
|
246
257
|
* Drops the record an import wrote for a session that cannot run in this cwd, so that retrying with a cwd override
|
|
247
258
|
* or forking it finds no copy of the id. A failed removal replaces `failure` with a
|
|
@@ -260,6 +271,7 @@ export declare class AgentSessionRuntime {
|
|
|
260
271
|
rehydrate(sessionId: string, options?: {
|
|
261
272
|
readonly history?: "tail" | "full";
|
|
262
273
|
}): Promise<AgentSession>;
|
|
274
|
+
private rehydrateSession;
|
|
263
275
|
/** Where a rehydrated session continues, decided checkout by checkout; see {@link continueSessionWhereItWorked}. */
|
|
264
276
|
private continueWhereItWorked;
|
|
265
277
|
private rehydrateFromStore;
|
|
@@ -6,12 +6,13 @@ import type { ContextUsage, ExtensionCommandContextActions, ExtensionErrorListen
|
|
|
6
6
|
import type { CustomMessage } from "./messages.ts";
|
|
7
7
|
import type { ModelRuntime } from "./model-runtime.js";
|
|
8
8
|
import type { ResourceLoader } from "./resource-loader.ts";
|
|
9
|
+
import type { SessionLoadEvent } from "./session-load-events.js";
|
|
9
10
|
import type { SessionManager } from "./session-manager.ts";
|
|
10
11
|
import type { SettingsManager } from "./settings-manager.ts";
|
|
11
12
|
import type { SourceInfo } from "./source-info.ts";
|
|
12
13
|
import type { ResourceFailure, TaskId } from "./tasks/contracts.js";
|
|
13
14
|
export type CompactionReason = "manual" | "threshold" | "overflow" | "branchSummary";
|
|
14
|
-
export type AgentSessionEvent = ((Exclude<AgentEvent, {
|
|
15
|
+
export type AgentSessionEvent = SessionLoadEvent | ((Exclude<AgentEvent, {
|
|
15
16
|
type: "agent_start" | "agent_end";
|
|
16
17
|
}> | (Extract<AgentEvent, {
|
|
17
18
|
type: "agent_start";
|
|
@@ -36,6 +37,9 @@ export type AgentSessionEvent = ((Exclude<AgentEvent, {
|
|
|
36
37
|
} | {
|
|
37
38
|
type: "entry_appended";
|
|
38
39
|
entry: import("./session-manager.ts").SessionEntry;
|
|
40
|
+
} | import("./storage/session/parent-links.js").SessionHistoryWarning | {
|
|
41
|
+
type: "session_history_repaired";
|
|
42
|
+
repaired: readonly import("./storage/session/parent-links.js").SessionParentRepair[];
|
|
39
43
|
}
|
|
40
44
|
/** An ordered session write is waiting for PostgreSQL, or was saved after a reported wait. */
|
|
41
45
|
| ({
|
package/dist/core/debug.impl.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/core/debug.js
CHANGED
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { createHash } from "node:crypto";
|
|
3
|
-
import { read, skip, stringValue } from "../../_shared/startup-0-5-
|
|
3
|
+
import { read, skip, stringValue } from "../../_shared/startup-0-5-DNS6FYS7.js";
|
|
4
4
|
// dist/core/export-html/card-projection.js
|
|
5
5
|
const obj = (v) => v !== null && typeof v === "object" && !Array.isArray(v) ? v : {};
|
|
6
6
|
const fields = (shape) => function* (t) {
|
|
@@ -129,87 +129,89 @@ const nested = arr(fields({
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
});
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
messages: arr(fields({
|
|
153
|
-
role: tag,
|
|
154
|
-
stopReason: tag,
|
|
155
|
-
errorMessage: scalar,
|
|
156
|
-
content: childContent
|
|
157
|
-
}), () => {
|
|
158
|
-
let last = null;
|
|
159
|
-
let tools = false;
|
|
160
|
-
return {
|
|
161
|
-
visit(v) {
|
|
162
|
-
const m = obj(v);
|
|
163
|
-
last = v;
|
|
164
|
-
tools ||= m.role === "assistant" && obj(m.content).hasTool === true;
|
|
165
|
-
},
|
|
166
|
-
done() {
|
|
167
|
-
return {
|
|
168
|
-
last,
|
|
169
|
-
tools
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
}),
|
|
174
|
-
toolCalls: arr(fields({
|
|
175
|
-
expandedText: scalar,
|
|
176
|
-
text: scalar
|
|
177
|
-
}), () => {
|
|
178
|
-
let ok = true;
|
|
179
|
-
let count = 0;
|
|
180
|
-
return {
|
|
181
|
-
visit(v) {
|
|
182
|
-
count++;
|
|
183
|
-
const s = obj(v);
|
|
184
|
-
const line = s.expandedText || s.text;
|
|
185
|
-
ok &&= typeof line === "string" && line.length > 0;
|
|
186
|
-
},
|
|
187
|
-
done() {
|
|
188
|
-
return ok && count ? [{ text: "x" }] : [];
|
|
189
|
-
}
|
|
190
|
-
};
|
|
191
|
-
})
|
|
132
|
+
const message = fields({
|
|
133
|
+
role: tag,
|
|
134
|
+
content,
|
|
135
|
+
toolCallId: string,
|
|
136
|
+
toolName: tag,
|
|
137
|
+
isError: scalar,
|
|
138
|
+
details: fields({
|
|
139
|
+
ownerSessionId: string,
|
|
140
|
+
mode: tag,
|
|
141
|
+
results: arr(fields({
|
|
142
|
+
agent: compareString,
|
|
143
|
+
task: compareString,
|
|
144
|
+
status: tag,
|
|
145
|
+
detached: scalar,
|
|
146
|
+
finalOutput: text,
|
|
147
|
+
messages: arr(fields({
|
|
148
|
+
role: tag,
|
|
149
|
+
stopReason: tag,
|
|
150
|
+
errorMessage: scalar,
|
|
151
|
+
content: childContent
|
|
192
152
|
}), () => {
|
|
193
|
-
|
|
153
|
+
let last = null;
|
|
154
|
+
let tools = false;
|
|
194
155
|
return {
|
|
195
156
|
visit(v) {
|
|
196
|
-
|
|
157
|
+
const m = obj(v);
|
|
158
|
+
last = v;
|
|
159
|
+
tools ||= m.role === "assistant" && obj(m.content).hasTool === true;
|
|
197
160
|
},
|
|
198
161
|
done() {
|
|
199
|
-
return
|
|
162
|
+
return {
|
|
163
|
+
last,
|
|
164
|
+
tools
|
|
165
|
+
};
|
|
200
166
|
}
|
|
201
167
|
};
|
|
202
168
|
}),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
169
|
+
toolCalls: arr(fields({
|
|
170
|
+
expandedText: scalar,
|
|
171
|
+
text: scalar
|
|
172
|
+
}), () => {
|
|
173
|
+
let ok = true;
|
|
174
|
+
let count = 0;
|
|
175
|
+
return {
|
|
176
|
+
visit(v) {
|
|
177
|
+
count++;
|
|
178
|
+
const s = obj(v);
|
|
179
|
+
const line = s.expandedText || s.text;
|
|
180
|
+
ok &&= typeof line === "string" && line.length > 0;
|
|
181
|
+
},
|
|
182
|
+
done() {
|
|
183
|
+
return ok && count ? [{ text: "x" }] : [];
|
|
184
|
+
}
|
|
185
|
+
};
|
|
209
186
|
})
|
|
187
|
+
}), () => {
|
|
188
|
+
const r = [];
|
|
189
|
+
return {
|
|
190
|
+
visit(v) {
|
|
191
|
+
if (r.length < 2) r.push(v);
|
|
192
|
+
},
|
|
193
|
+
done() {
|
|
194
|
+
return r;
|
|
195
|
+
}
|
|
196
|
+
};
|
|
210
197
|
}),
|
|
211
|
-
|
|
212
|
-
|
|
198
|
+
taskResponse: fields({
|
|
199
|
+
kind: tag,
|
|
200
|
+
observation: fields({
|
|
201
|
+
kind: tag,
|
|
202
|
+
taskId: str(0)
|
|
203
|
+
})
|
|
204
|
+
})
|
|
205
|
+
}),
|
|
206
|
+
nestedCalls: fields({ calls: nested })
|
|
207
|
+
});
|
|
208
|
+
const entry = fields({
|
|
209
|
+
id: string,
|
|
210
|
+
parentId: string,
|
|
211
|
+
type: tag,
|
|
212
|
+
customType: tag,
|
|
213
|
+
data: fields({ hash: str(65) }),
|
|
214
|
+
message
|
|
213
215
|
});
|
|
214
216
|
async function chunkedCardEntry(chunks) {
|
|
215
217
|
const e = obj(await read(chunks, (function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card-projection.code.js","names":[],"sources":["../../../src/core/export-html/card-projection.ts"],"mappings":";;;;AASA,MAAM,OAAO,MACZ,MAAM,QAAQ,OAAO,MAAM,YAAY,CAAC,MAAM,QAAQ,CAAC,IAAI,IAAI,CAAA;AAChE,MAAM,UAAU,UACf,WAAW,GAAC;CACX,IAAI,EAAE,SAAS,eAAe;EAC7B,OAAO,KAAK,CAAC;EACb,OAAO;CACR;CACA,MAAM,SAAgC,OAAO,OAAO,IAAI;CACxD,MAAM,MAAM,KAAK,IAAI,GAAG,OAAO,KAAK,KAAK,CAAC,CAAC,KAAK,MAAM,EAAE,MAAM,CAAC,IAAI;CACnE,KAAK,IAAI,IAAI,OAAO,EAAE,SAAS,aAAa,IAAI,OAAO;EACtD,MAAM,MAAM,OAAO,YAAY,GAAG;EAClC,MAAM,QAAQ;EACd,IAAI,OAAO,OAAO,OAAO,GAAG,GAAG,OAAO,OAAO,OAAO,MAAM,IAAK,CAAC,KAAK;OAChE,OAAO,KAAK,KAAK;CACvB;CACA,OAAO;AACR;AACD,MAAM,OAAO,QAAkB,WAC9B,WAAW,GAAC;CACX,IAAI,EAAE,SAAS,cAAc;EAC5B,OAAO,KAAK,CAAC;EACb,OAAO;CACR;CACA,MAAM,MAAM,OAAM;CAClB,IAAI,IAAI;CACR,KAAK,IAAI,QAAQ,OAAO,MAAM,SAAS,YAAY,QAAQ,OAAO,IAAI,MAAM,OAAO,OAAO,KAAK,GAAG,GAAG;CACrG,OAAO,IAAI,KAAI;AAChB;AACD,MAAM,OAAO,UACZ,WAAW,GAAC;CACX,IAAI,EAAE,SAAS,eAAe;EAC7B,OAAO,KAAK,CAAC;EACb,OAAO;CACR;CACA,OAAO,OAAO,YAAY,KAAK;AAChC;AACD,MAAM,OAAiB,WAAW,GAAC;CAClC,IAAI,EAAE,SAAS,eAAe;EAC7B,OAAO,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,IAAI,MAAM,QAAQ,EAAE,OAAO,KAAK,EAAE,QAAQ,WAAW,GAAG;GACvD,MAAM,QAAQ,IAAI,EAAE,QAAQ,EAAE;GAC7B,MAAA,UAAU,IAAI,MAAM,QAAQ;GAC5B,MAAA,OAAO,IAAI,QAAQ,IAAI;GACvB,MAAA,OAAO,IAAI,KAAK,OAAO;GACxB,IAAI,MAAM,YAAY,OAAO,MAAM,aAAa,UAAU;IACzD,MAAM,SAAS,OAAO,KAAK,SAAS,YAAY,KAAK,QAAQ;IAC7D,KAAK,UAAU,SAAS,CAAC;KAAE,MAAM;KAAQ,MAAM;IAAG,CAAE,IAAI,CAAA;IACxD,MAAM,WAAW,QAAQ,QACtB,CAAC;KAAE,MAAM;KAAa,SAAS,CAAC;MAAE,MAAM;MAAY,MAAM;KAAM,CAAE;IAAC,GAAI,IAAI,IAC3E,CAAC,IAAI;IACR,IAAI,QAAQ,cAAc,OAAO,KAAK,IAAI;GAC3C;EACD;CACD;CACA,OAAO;EAAE,OAAO;EAA8B;CAAW;AAC1D"}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session export.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -6,7 +6,7 @@ try {
|
|
|
6
6
|
} catch (error) {
|
|
7
7
|
const root = new URL("../../", import.meta.url);
|
|
8
8
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
9
|
-
const key = `${root.href}#0.10.
|
|
9
|
+
const key = `${root.href}#0.10.20-alpha.2`;
|
|
10
10
|
let release = releases.get(key);
|
|
11
11
|
if (release === undefined) {
|
|
12
12
|
const current = (async () => {
|
|
@@ -27,8 +27,8 @@ try {
|
|
|
27
27
|
release = current;
|
|
28
28
|
}
|
|
29
29
|
const running = await release;
|
|
30
|
-
if (running === undefined || running.version === "0.10.
|
|
31
|
-
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.
|
|
30
|
+
if (running === undefined || running.version === "0.10.20-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.20-alpha.2 while this session was running; restart it to keep using session export.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|