@bastani/atomic 0.10.9 → 0.10.10-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 +83 -0
- package/README.md +226 -163
- 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-7KXUFI2F.js +27 -12
- package/dist/_shared/mode-interactive-sdk-7KXUFI2F.js.map +1 -1
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js +47 -7
- package/dist/_shared/mode-rpc-sdk-IOPGDYR4.js.map +1 -1
- package/dist/_shared/mode-shared-2QJSCUM6.js +48 -19
- package/dist/_shared/mode-shared-2QJSCUM6.js.map +1 -1
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js → p1a-prewarm-XIU57JHF.js} +5 -5
- package/dist/_shared/{p1a-prewarm-UQY3X2UK.js.map → p1a-prewarm-XIU57JHF.js.map} +1 -1
- package/dist/_shared/p2-shell-main-B2WIALFD.js +30 -25
- package/dist/_shared/p2-shell-main-B2WIALFD.js.map +1 -1
- package/dist/_shared/runtime-O4KCSG4C.js +5 -5
- package/dist/_shared/{sdk-OSBEPR3Q.js → sdk-RRLVN7ER.js} +15 -9
- package/dist/_shared/sdk-RRLVN7ER.js.map +1 -0
- package/dist/_shared/session-data-AHTU7IS6.js +2 -2
- package/dist/_shared/session-manager-list-2BLEEZVG.js +1 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js +4 -1
- package/dist/_shared/settings-startup-8-DNZ2RIHM.js.map +1 -1
- package/dist/_shared/{startup-0-0-TYUFUOJZ.js → startup-0-0-4VG2G44V.js} +427 -33
- package/dist/_shared/startup-0-0-4VG2G44V.js.map +1 -0
- package/dist/_shared/{startup-0-1-W2G2UY7R.js → startup-0-1-XTIL65D4.js} +18 -11
- package/dist/_shared/startup-0-1-XTIL65D4.js.map +1 -0
- package/dist/_shared/{startup-0-2-UXBUEOXW.js → startup-0-2-27OWFHV6.js} +150 -62
- package/dist/_shared/startup-0-2-27OWFHV6.js.map +1 -0
- package/dist/_shared/startup-0-3-T4DVFYWX.js +15 -25
- package/dist/_shared/startup-0-3-T4DVFYWX.js.map +1 -1
- package/dist/_shared/{startup-0-4-HN5EB4K7.js → startup-0-4-ZMJV547D.js} +81 -12
- package/dist/_shared/startup-0-4-ZMJV547D.js.map +1 -0
- package/dist/_shared/startup-0-5-FD2P735I.js +90 -50
- package/dist/_shared/startup-0-5-FD2P735I.js.map +1 -1
- package/dist/_shared/startup-10-0-TDQNBDDL.js +5 -5
- package/dist/_shared/startup-12-0-55AAXBJZ.js +13 -7
- package/dist/_shared/startup-12-0-55AAXBJZ.js.map +1 -1
- package/dist/_shared/startup-14-0-MLX36RBG.js +4 -4
- package/dist/_shared/startup-15-0-YUKGAC63.js +4 -4
- package/dist/_shared/startup-15-1-4S7FLMNG.js +88 -28
- package/dist/_shared/startup-15-1-4S7FLMNG.js.map +1 -1
- package/dist/_shared/startup-8-0-34CBHPZH.js +5 -5
- package/dist/_shared/startup-8-1-4KANEHRA.js +61 -17
- package/dist/_shared/startup-8-1-4KANEHRA.js.map +1 -1
- package/dist/_shared/storage-command-7MGXLJGZ.js +4 -4
- package/dist/_shared/task-unsaved-answer-VJ2KTB4V.js +2 -2
- package/dist/_shared/tree-outline-MUEPK5B7.js +2 -2
- package/dist/builtin/intercom/CHANGELOG.md +6 -0
- package/dist/builtin/intercom/README.md +87 -116
- package/dist/builtin/intercom/broker/broker.bundle.mjs +3 -3
- package/dist/builtin/intercom/broker/presence-handler.ts +1 -1
- package/dist/builtin/intercom/group.ts +7 -3
- package/dist/builtin/intercom/index.bundle.mjs +1 -1
- package/dist/builtin/intercom/package.json +1 -1
- package/dist/builtin/mcp/README.md +61 -27
- package/dist/builtin/mcp/index.bundle.mjs +1 -1
- package/dist/builtin/mcp/package.json +1 -1
- package/dist/builtin/subagents/CHANGELOG.md +8 -0
- package/dist/builtin/subagents/README.md +74 -141
- package/dist/builtin/subagents/package.json +1 -1
- package/dist/builtin/subagents/src/extension/index.bundle.mjs +213 -74
- package/dist/builtin/web-access/CHANGELOG.md +9 -0
- package/dist/builtin/web-access/README.md +61 -88
- package/dist/builtin/web-access/index.bundle.mjs +387 -351
- package/dist/builtin/web-access/package.json +1 -1
- package/dist/cli/args.js +2 -2
- package/dist/cli/auth-cli.code.js +4 -4
- package/dist/cli/auth-cli.impl.js +3 -3
- package/dist/cli/auth-cli.js +3 -3
- package/dist/cli/blueprint-command.code.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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-methods.d.ts +4 -1
- package/dist/core/agent-session-methods.js.map +1 -1
- package/dist/core/agent-session.d.ts +3 -0
- package/dist/core/compaction/compactor.d.ts +20 -14
- package/dist/core/compaction/errors.d.ts +120 -0
- package/dist/core/compaction/index.d.ts +1 -0
- package/dist/core/compaction/model-resolver.d.ts +2 -2
- package/dist/core/debug.impl.js +3 -3
- package/dist/core/debug.js +3 -3
- 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 +2 -2
- 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.impl.js +3 -3
- package/dist/core/export-html/oversized-render-inputs.js +3 -3
- 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/api-types.d.ts +1 -1
- package/dist/core/extensions/api-types.js.map +1 -1
- package/dist/core/extensions/index.d.ts +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 +1 -1
- package/dist/core/extensions/provider-types.d.ts +18 -6
- package/dist/core/extensions/provider-types.js.map +1 -1
- package/dist/core/extensions/runner-context.js +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-config.d.ts +40 -0
- package/dist/core/model-registry.js +1 -1
- package/dist/core/model-resolver-scope.d.ts +4 -4
- package/dist/core/model-runtime.d.ts +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/provider-composer-internal.d.ts +11 -2
- package/dist/core/sdk.code.js +3 -3
- package/dist/core/sdk.impl.js +3 -3
- package/dist/core/sdk.js +3 -3
- package/dist/core/session-manager-core.js +5 -5
- 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 +1 -1
- package/dist/core/session-manager.impl.js +3 -3
- package/dist/core/session-manager.js +3 -3
- package/dist/core/session-storage.impl.js +3 -3
- package/dist/core/session-storage.js +3 -3
- package/dist/core/settings-manager-basic-accessors.d.ts +6 -2
- 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/provider.js +2 -2
- package/dist/core/storage/selection.js +2 -2
- package/dist/core/storage/session/branch-fork-source.code.js +2 -2
- 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 +3 -3
- 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.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 +2 -2
- 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 +2 -2
- 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 +3 -3
- 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.impl.js +3 -3
- package/dist/core/storage/session/jsonl-session-store.js +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/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 +3 -3
- 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.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.impl.js +3 -3
- package/dist/core/storage/session/tree-presentation.js +3 -3
- 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/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 +4 -4
- 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.impl.js +3 -3
- package/dist/core/tasks/task-view-source.js +3 -3
- package/dist/core/tools/read-url.code.js +2 -2
- 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 +1 -1
- package/dist/extensions/codemode/execute.impl.js +3 -3
- package/dist/extensions/codemode/execute.js +3 -3
- package/dist/extensions/codemode/renderer.code.js +2 -2
- package/dist/extensions/codemode/renderer.impl.js +3 -3
- package/dist/extensions/codemode/renderer.js +3 -3
- package/dist/extensions/mcp/cli.code.js +2 -2
- 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-extensions.d.ts +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.js +7 -7
- 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/modes/interactive/components/settings-selector-types.d.ts +1 -0
- package/dist/modes/interactive/components/settings-selector-types.js.map +1 -1
- package/dist/modes/interactive/components/stored-tree-view.code.js +2 -2
- 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/user-message-selector-archive.impl.js +3 -3
- package/dist/modes/interactive/components/user-message-selector-archive.js +3 -3
- package/dist/modes/interactive/theme/color-utils.d.ts +5 -5
- package/dist/modes/interactive/theme/theme-loading.d.ts +1 -0
- package/dist/modes/interactive-engine/engine-prewarm.js +1 -1
- package/dist/modes/interactive-engine/remote-model-catalog.d.ts +1 -0
- package/dist/modes/print-mode.js +1 -1
- package/dist/modes/rpc/rpc-client-api.d.ts +6 -0
- package/dist/modes/rpc/rpc-types.d.ts +29 -2
- package/dist/package-manager-cli.code.js +5 -5
- 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/5.js +1 -1
- package/dist/startup-stages/7.js +1 -1
- package/dist/startup-stages/8.js +1 -2
- package/dist/startup-stages/9.js +2 -1
- package/dist/utils/native-module.d.ts +44 -0
- 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/background-tasks.md +238 -243
- package/docs/build.md +21 -15
- package/docs/changelog.mdx +1 -1
- package/docs/codemode.md +68 -51
- package/docs/compaction/reference.md +65 -26
- package/docs/compaction.md +118 -66
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +87 -33
- package/docs/custom-provider/api-reference.md +152 -13
- package/docs/custom-provider/oauth.md +45 -28
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +77 -67
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +26 -62
- package/docs/development.md +81 -42
- package/docs/docs.json +54 -38
- package/docs/environment-variables.md +92 -64
- package/docs/extensions/api-reference.md +326 -735
- package/docs/extensions/authoring.md +186 -269
- package/docs/extensions/events.md +308 -375
- package/docs/extensions/examples.md +122 -74
- package/docs/extensions/ui.md +217 -197
- package/docs/extensions.md +189 -259
- package/docs/getting-started/authentication.md +27 -14
- package/docs/getting-started/first-session.md +25 -26
- package/docs/getting-started/installation.md +62 -84
- package/docs/getting-started/project-instructions.md +39 -14
- package/docs/guides/configuration.md +62 -20
- package/docs/guides/intercom.md +20 -12
- package/docs/guides/non-interactive.md +31 -16
- package/docs/guides/orchestration.md +17 -9
- package/docs/guides/resume-on-any-machine.md +63 -52
- package/docs/guides/subagents.md +26 -14
- package/docs/guides/team-setup.md +49 -27
- package/docs/guides.md +30 -23
- package/docs/herdr.md +22 -17
- package/docs/index.md +24 -17
- package/docs/intercom/operations.md +90 -66
- package/docs/intercom/reference.md +219 -192
- package/docs/intercom.md +111 -92
- package/docs/json.md +73 -71
- package/docs/keybindings.md +74 -48
- package/docs/libraries/agent-core.md +52 -9
- package/docs/libraries/ai.md +90 -63
- package/docs/libraries/codemode.md +31 -8
- package/docs/libraries/schema.md +12 -9
- package/docs/libraries/storage-libsql.md +92 -0
- package/docs/libraries/storage-postgres.md +119 -0
- package/docs/libraries/telemetry.md +42 -9
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +25 -8
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +140 -88
- package/docs/models/reference.md +53 -36
- package/docs/models-configuration.md +19 -13
- package/docs/models.md +102 -87
- package/docs/orchestration/migrating-workflows.md +22 -20
- package/docs/orchestration/patterns.md +36 -21
- package/docs/orchestration.md +24 -21
- package/docs/packages/authoring.md +29 -18
- package/docs/packages/reference.md +77 -16
- package/docs/packages.md +34 -34
- package/docs/programmatic.md +28 -21
- package/docs/prompt-templates.md +65 -41
- package/docs/providers/reference.md +36 -20
- package/docs/providers.md +78 -76
- package/docs/quickstart.md +42 -54
- package/docs/reference/cli.md +256 -254
- package/docs/reference.md +30 -23
- package/docs/rpc/examples.md +121 -17
- package/docs/rpc/extension-ui.md +86 -63
- package/docs/rpc/protocol.md +817 -358
- package/docs/rpc.md +78 -152
- package/docs/sdk/reference.md +309 -73
- package/docs/sdk/storage.md +614 -0
- package/docs/sdk/structured-decisions.md +168 -65
- package/docs/sdk/web-server.md +80 -46
- package/docs/sdk.md +168 -215
- package/docs/security.md +117 -44
- package/docs/session-format.md +127 -76
- package/docs/sessions.md +155 -113
- package/docs/settings.md +293 -205
- package/docs/shell-aliases.md +15 -6
- package/docs/skills/authoring.md +17 -9
- package/docs/skills/reference.md +23 -21
- package/docs/skills.md +148 -97
- package/docs/storage.md +172 -260
- package/docs/subagents/authoring.md +148 -15
- package/docs/subagents/reference.md +105 -29
- package/docs/subagents.md +247 -250
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +52 -55
- package/docs/tmux.md +38 -21
- package/docs/tools.md +209 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +94 -86
- package/docs/verification.md +25 -25
- package/docs/web-access.md +106 -54
- package/docs/windows.md +55 -57
- package/docs/worktree-snapshots.md +82 -74
- package/examples/sdk/11-sessions.ts +4 -4
- package/package.json +8 -8
- package/schemas/models.schema.json +58 -7
- package/dist/_shared/sdk-OSBEPR3Q.js.map +0 -1
- package/dist/_shared/startup-0-0-TYUFUOJZ.js.map +0 -1
- package/dist/_shared/startup-0-1-W2G2UY7R.js.map +0 -1
- package/dist/_shared/startup-0-2-UXBUEOXW.js.map +0 -1
- package/dist/_shared/startup-0-4-HN5EB4K7.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-selector-types.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/settings-selector-types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ThinkingLevel } from \"@bastani/atomic-agent-core\";\nimport type { CompactorModel } from \"@bastani/atomic-ai\";\nimport type { Api, ClassifierApi, ClassifierModel, Model, Transport } from \"@bastani/atomic-ai/compat\";\nimport type { ScrollViewScrollbar, WheelScrollLines } from \"@bastani/atomic-tui\";\nimport type {\n\tCacheWarmingMode,\n\tDefaultProjectTrust,\n\tFullscreenExitOutput,\n\tMermaidRenderingMode,\n\tQuietStartup,\n\tWarningSettings,\n} from \"../../../core/settings-manager.ts\";\nimport type { TerminalTheme } from \"../theme/theme.js\";\n\nexport type QueueDeliveryMode = \"all\" | \"one-at-a-time\";\nexport type DoubleEscapeAction = \"fork\" | \"tree\" | \"none\";\nexport type TreeFilterMode = \"default\" | \"no-tools\" | \"user-only\" | \"labeled-only\" | \"all\";\n\nexport interface SettingsConfig {\n\tautoCompact: boolean;\n\tshowImages: boolean;\n\timageWidthCells: number;\n\tautoResizeImages: boolean;\n\tblockImages: boolean;\n\tenableSkillCommands: boolean;\n\tsteeringMode: QueueDeliveryMode;\n\tfollowUpMode: QueueDeliveryMode;\n\ttransport: Transport;\n\thttpIdleTimeoutMs: number;\n\tcacheWarming: CacheWarmingMode;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\tavailableDefaultModels?: Model<Api>[];\n\tavailableClassifierModels?: ClassifierModel<ClassifierApi>[];\n\tdecisionModel?: string;\n\tdecisionModelScope?: \"global\" | \"project\";\n\tavailableCompactorModels?: CompactorModel[];\n\tcompactionModel?: string;\n\tcompactionModelScope?: \"global\" | \"project\";\n\tmorphAuthenticated?: boolean;\n\tmodelThinkingLevels?: Record<string, ThinkingLevel>;\n\tcurrentTheme: string;\n\tterminalTheme: TerminalTheme;\n\tavailableThemes: string[];\n\thideThinkingBlock: boolean;\n\tmermaidRenderingMode: MermaidRenderingMode;\n\tlatexRenderingEnabled: boolean;\n\tcollapseChangelog: boolean;\n\tdebug: boolean;\n\tenableInstallTelemetry: boolean;\n\tdoubleEscapeAction: DoubleEscapeAction;\n\ttreeFilterMode: TreeFilterMode;\n\tshowHardwareCursor: boolean;\n\tfullscreenScrollbar: ScrollViewScrollbar;\n\tfullscreenExitOutput: FullscreenExitOutput;\n\tfullscreenCopyOnSelect: boolean;\n\tfullscreenWheelScrollLines?: WheelScrollLines;\n\teditorPaddingX: number;\n\toutputPad: 0 | 1;\n\tshowCacheMissNotices: boolean;\n\tautocompleteMaxVisible: number;\n\tquietStartup: QuietStartup;\n\tdefaultProjectTrust: DefaultProjectTrust;\n\tclearOnShrink: boolean;\n\tshowTerminalProgress: boolean;\n\twarnings: WarningSettings;\n}\n\nexport interface SettingsCallbacks {\n\tonAutoCompactChange: (enabled: boolean) => void;\n\tonShowImagesChange: (enabled: boolean) => void;\n\tonImageWidthCellsChange: (width: number) => void;\n\tonAutoResizeImagesChange: (enabled: boolean) => void;\n\tonBlockImagesChange: (blocked: boolean) => void;\n\tonEnableSkillCommandsChange: (enabled: boolean) => void;\n\tonSteeringModeChange: (mode: QueueDeliveryMode) => void;\n\tonFollowUpModeChange: (mode: QueueDeliveryMode) => void;\n\tonTransportChange: (transport: Transport) => void;\n\tonHttpIdleTimeoutChange: (timeoutMs: number) => void;\n\tonCacheWarmingChange: (mode: CacheWarmingMode) => void;\n\tonThinkingLevelChange: (level: ThinkingLevel) => void;\n\tonDecisionModelChange?: (model: string) => void;\n\tonCompactionModelChange?: (model: string) => void;\n\tonModelThinkingLevelChange?: (provider: string, modelId: string, level: ThinkingLevel) => void;\n\tonModelThinkingLevelRemove?: (provider: string, modelId: string) => void;\n\tonThemeChange: (theme: string) => void;\n\tonThemePreview?: (theme: string) => void;\n\tonThemePreviewCancel?: (originalTheme: string) => void;\n\t/** The eligible themes and configured pair when a further picker opens inside the theme form. */\n\treadThemeChoices?: () => { currentTheme: string; availableThemes: string[] } | undefined;\n\tonHideThinkingBlockChange: (hidden: boolean) => void;\n\tonMermaidRenderingModeChange: (mode: MermaidRenderingMode) => void;\n\tonLatexRenderingEnabledChange: (enabled: boolean) => void;\n\tonCollapseChangelogChange: (collapsed: boolean) => void;\n\tonDebugChange: (enabled: boolean) => void;\n\tonEnableInstallTelemetryChange: (enabled: boolean) => void;\n\tonDoubleEscapeActionChange: (action: DoubleEscapeAction) => void;\n\tonTreeFilterModeChange: (mode: TreeFilterMode) => void;\n\tonShowHardwareCursorChange: (enabled: boolean) => void;\n\tonFullscreenScrollbarChange: (mode: ScrollViewScrollbar) => void;\n\tonFullscreenExitOutputChange: (output: FullscreenExitOutput) => void;\n\tonFullscreenCopyOnSelectChange: (enabled: boolean) => void;\n\tonFullscreenWheelScrollLinesChange?: (lines: WheelScrollLines) => void;\n\tonEditorPaddingXChange: (padding: number) => void;\n\tonOutputPadChange: (padding: 0 | 1) => void;\n\tonShowCacheMissNoticesChange: (enabled: boolean) => void;\n\tonAutocompleteMaxVisibleChange: (maxVisible: number) => void;\n\tonQuietStartupChange: (quiet: QuietStartup) => void;\n\tonDefaultProjectTrustChange: (defaultProjectTrust: DefaultProjectTrust) => void;\n\tonClearOnShrinkChange: (enabled: boolean) => void;\n\tonShowTerminalProgressChange: (enabled: boolean) => void;\n\tonWarningsChange: (warnings: WarningSettings) => void;\n\tonCancel: () => void;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"settings-selector-types.js","sourceRoot":"","sources":["../../../../src/modes/interactive/components/settings-selector-types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ThinkingLevel } from \"@bastani/atomic-agent-core\";\nimport type { CompactorModel } from \"@bastani/atomic-ai\";\nimport type { Api, ClassifierApi, ClassifierModel, Model, Transport } from \"@bastani/atomic-ai/compat\";\nimport type { ScrollViewScrollbar, WheelScrollLines } from \"@bastani/atomic-tui\";\nimport type {\n\tCacheWarmingMode,\n\tDefaultProjectTrust,\n\tFullscreenExitOutput,\n\tMermaidRenderingMode,\n\tQuietStartup,\n\tWarningSettings,\n} from \"../../../core/settings-manager.ts\";\nimport type { TerminalTheme } from \"../theme/theme.js\";\n\nexport type QueueDeliveryMode = \"all\" | \"one-at-a-time\";\nexport type DoubleEscapeAction = \"fork\" | \"tree\" | \"none\";\nexport type TreeFilterMode = \"default\" | \"no-tools\" | \"user-only\" | \"labeled-only\" | \"all\";\n\nexport interface SettingsConfig {\n\tautoCompact: boolean;\n\tshowImages: boolean;\n\timageWidthCells: number;\n\tautoResizeImages: boolean;\n\tblockImages: boolean;\n\tenableSkillCommands: boolean;\n\tsteeringMode: QueueDeliveryMode;\n\tfollowUpMode: QueueDeliveryMode;\n\ttransport: Transport;\n\thttpIdleTimeoutMs: number;\n\tcacheWarming: CacheWarmingMode;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\tavailableDefaultModels?: Model<Api>[];\n\tavailableClassifierModels?: ClassifierModel<ClassifierApi>[];\n\tdecisionModel?: string;\n\tdecisionModelScope?: \"global\" | \"project\";\n\tavailableCompactorModels?: CompactorModel[];\n\tcompactionModel?: string;\n\tcompactionModelScope?: \"global\" | \"project\";\n\tmorphAuthenticated?: boolean;\n\tcompactorProviderAuth?: Readonly<Record<string, boolean>>;\n\tmodelThinkingLevels?: Record<string, ThinkingLevel>;\n\tcurrentTheme: string;\n\tterminalTheme: TerminalTheme;\n\tavailableThemes: string[];\n\thideThinkingBlock: boolean;\n\tmermaidRenderingMode: MermaidRenderingMode;\n\tlatexRenderingEnabled: boolean;\n\tcollapseChangelog: boolean;\n\tdebug: boolean;\n\tenableInstallTelemetry: boolean;\n\tdoubleEscapeAction: DoubleEscapeAction;\n\ttreeFilterMode: TreeFilterMode;\n\tshowHardwareCursor: boolean;\n\tfullscreenScrollbar: ScrollViewScrollbar;\n\tfullscreenExitOutput: FullscreenExitOutput;\n\tfullscreenCopyOnSelect: boolean;\n\tfullscreenWheelScrollLines?: WheelScrollLines;\n\teditorPaddingX: number;\n\toutputPad: 0 | 1;\n\tshowCacheMissNotices: boolean;\n\tautocompleteMaxVisible: number;\n\tquietStartup: QuietStartup;\n\tdefaultProjectTrust: DefaultProjectTrust;\n\tclearOnShrink: boolean;\n\tshowTerminalProgress: boolean;\n\twarnings: WarningSettings;\n}\n\nexport interface SettingsCallbacks {\n\tonAutoCompactChange: (enabled: boolean) => void;\n\tonShowImagesChange: (enabled: boolean) => void;\n\tonImageWidthCellsChange: (width: number) => void;\n\tonAutoResizeImagesChange: (enabled: boolean) => void;\n\tonBlockImagesChange: (blocked: boolean) => void;\n\tonEnableSkillCommandsChange: (enabled: boolean) => void;\n\tonSteeringModeChange: (mode: QueueDeliveryMode) => void;\n\tonFollowUpModeChange: (mode: QueueDeliveryMode) => void;\n\tonTransportChange: (transport: Transport) => void;\n\tonHttpIdleTimeoutChange: (timeoutMs: number) => void;\n\tonCacheWarmingChange: (mode: CacheWarmingMode) => void;\n\tonThinkingLevelChange: (level: ThinkingLevel) => void;\n\tonDecisionModelChange?: (model: string) => void;\n\tonCompactionModelChange?: (model: string) => void;\n\tonModelThinkingLevelChange?: (provider: string, modelId: string, level: ThinkingLevel) => void;\n\tonModelThinkingLevelRemove?: (provider: string, modelId: string) => void;\n\tonThemeChange: (theme: string) => void;\n\tonThemePreview?: (theme: string) => void;\n\tonThemePreviewCancel?: (originalTheme: string) => void;\n\t/** The eligible themes and configured pair when a further picker opens inside the theme form. */\n\treadThemeChoices?: () => { currentTheme: string; availableThemes: string[] } | undefined;\n\tonHideThinkingBlockChange: (hidden: boolean) => void;\n\tonMermaidRenderingModeChange: (mode: MermaidRenderingMode) => void;\n\tonLatexRenderingEnabledChange: (enabled: boolean) => void;\n\tonCollapseChangelogChange: (collapsed: boolean) => void;\n\tonDebugChange: (enabled: boolean) => void;\n\tonEnableInstallTelemetryChange: (enabled: boolean) => void;\n\tonDoubleEscapeActionChange: (action: DoubleEscapeAction) => void;\n\tonTreeFilterModeChange: (mode: TreeFilterMode) => void;\n\tonShowHardwareCursorChange: (enabled: boolean) => void;\n\tonFullscreenScrollbarChange: (mode: ScrollViewScrollbar) => void;\n\tonFullscreenExitOutputChange: (output: FullscreenExitOutput) => void;\n\tonFullscreenCopyOnSelectChange: (enabled: boolean) => void;\n\tonFullscreenWheelScrollLinesChange?: (lines: WheelScrollLines) => void;\n\tonEditorPaddingXChange: (padding: number) => void;\n\tonOutputPadChange: (padding: 0 | 1) => void;\n\tonShowCacheMissNoticesChange: (enabled: boolean) => void;\n\tonAutocompleteMaxVisibleChange: (maxVisible: number) => void;\n\tonQuietStartupChange: (quiet: QuietStartup) => void;\n\tonDefaultProjectTrustChange: (defaultProjectTrust: DefaultProjectTrust) => void;\n\tonClearOnShrinkChange: (enabled: boolean) => void;\n\tonShowTerminalProgressChange: (enabled: boolean) => void;\n\tonWarningsChange: (warnings: WarningSettings) => void;\n\tonCancel: () => void;\n}\n"]}
|
|
@@ -297,7 +297,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
297
297
|
return (async () => {
|
|
298
298
|
const root = new URL("../../../", import.meta.url);
|
|
299
299
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
300
|
-
const key = `${root.href}#0.10.
|
|
300
|
+
const key = `${root.href}#0.10.10-alpha.2`;
|
|
301
301
|
let release = releases.get(key);
|
|
302
302
|
if (release === undefined) {
|
|
303
303
|
const current = (async () => {
|
|
@@ -325,7 +325,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
325
325
|
} catch {
|
|
326
326
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
327
327
|
}
|
|
328
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
328
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
|
|
329
329
|
if (updatedTo === undefined) throw error;
|
|
330
330
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
331
331
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using /tree.", {
|
|
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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using /tree.", {
|
|
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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using /fork.", {
|
|
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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using /fork.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -21,14 +21,14 @@ export declare function colorEnvironment(): ColorEnvironment;
|
|
|
21
21
|
/** Keep `listener` (held weakly) on the color environment in use from now on. */
|
|
22
22
|
export declare function onColorEnvironmentChange(listener: ColorEnvironmentListener): void;
|
|
23
23
|
/** Read NO_COLOR and FORCE_COLOR again and apply them to every theme; tests that change them call it too. */
|
|
24
|
-
export declare function refreshColorEnvironment(env?: NodeJS.ProcessEnv): ColorEnvironment;
|
|
24
|
+
export declare function refreshColorEnvironment(env?: NodeJS.ProcessEnv, mode?: ColorMode): ColorEnvironment;
|
|
25
25
|
export declare function themeStyleLevel(mode: ColorMode, environment: ColorEnvironment): ThemeStyleLevel;
|
|
26
|
-
export declare function detectColorMode(): ColorMode;
|
|
26
|
+
export declare function detectColorMode(env?: NodeJS.ProcessEnv): ColorMode;
|
|
27
27
|
/**
|
|
28
28
|
* Resolve the color mode for a theme from an explicit `terminal.trueColor` setting, then
|
|
29
29
|
* `ATOMIC_TRUE_COLOR=1|0` (legacy `PI_TRUE_COLOR`), then terminal detection.
|
|
30
30
|
*/
|
|
31
|
-
export declare function resolveColorMode(trueColorSetting: boolean | undefined): ColorMode;
|
|
31
|
+
export declare function resolveColorMode(trueColorSetting: boolean | undefined, env?: NodeJS.ProcessEnv): ColorMode;
|
|
32
32
|
export declare function hexToRgb(hex: string): {
|
|
33
33
|
r: number;
|
|
34
34
|
g: number;
|
|
@@ -43,8 +43,8 @@ export declare function fgAnsi(color: string | number, mode: ColorMode): string;
|
|
|
43
43
|
/**
|
|
44
44
|
* The escape sequence that sets the `#rrggbb` color `hex` as the foreground or background, in the color environment
|
|
45
45
|
* themes paint with: none when NO_COLOR or FORCE_COLOR=0 turns color off, the nearest 256-color entry under
|
|
46
|
-
* FORCE_COLOR=1 or 2, and true color otherwise. Code that builds its own colors uses it to follow
|
|
47
|
-
* FORCE_COLOR like the theme does; it never reads the environment itself.
|
|
46
|
+
* FORCE_COLOR=1 or 2 or a 256-color mode, and true color otherwise. Code that builds its own colors uses it to follow
|
|
47
|
+
* NO_COLOR, FORCE_COLOR, and the active color mode like the theme does; it never reads the environment itself.
|
|
48
48
|
*/
|
|
49
49
|
export declare function hexColorAnsi(hex: string, layer: "fg" | "bg"): string;
|
|
50
50
|
export declare function bgAnsi(color: string | number, mode: ColorMode, quantization?: Quantization): string;
|
|
@@ -9,6 +9,7 @@ export declare function getBuiltinThemes(): Record<string, ThemeJson>;
|
|
|
9
9
|
export declare function readThemeFiles(): void;
|
|
10
10
|
export declare function refreshCustomThemes(): Promise<void>;
|
|
11
11
|
export declare function hasCustomThemeFile(name: string): boolean;
|
|
12
|
+
export declare function getThemeWatchPath(name: string): string | undefined;
|
|
12
13
|
export declare function getAvailableThemes(): string[];
|
|
13
14
|
export declare function getAvailableThemesWithPaths(): ThemeInfo[];
|
|
14
15
|
export declare function loadThemeJson(name: string): ThemeJson;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHandoffNonce, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv, waitForPrewarmedEngineReady } from "../../_shared/p1a-prewarm-
|
|
2
|
+
export { INTERACTIVE_ENGINE_PREWARM_DEFAULT_MODEL_API_FLAG, INTERACTIVE_ENGINE_PREWARM_HANDOFF_FLAG, INTERACTIVE_ENGINE_PREWARM_WRITE_CACHE_FLAG, PREWARM_HOST_ARGUMENTS_MAX_LENGTH, adoptPrewarmedEngine, discardPrewarmedEngine, engineLaunch, interactiveEngineClientOptions, interactiveEngineEnvOverrides, prewarmHandoffNonce, prewarmHostArguments, prewarmInteractiveEngine, prewarmInteractiveEngineForArgs, readPrewarmedEngineArgs, sameEngineLaunch, shouldPrewarmInteractiveEngine, startupBenchmarkEngineEnv, waitForPrewarmedEngineReady } from "../../_shared/p1a-prewarm-XIU57JHF.js";
|
|
3
3
|
//# sourceMappingURL=engine-prewarm.js.map
|
|
@@ -11,6 +11,7 @@ export declare class RemoteModelCatalog {
|
|
|
11
11
|
private readonly client;
|
|
12
12
|
private models;
|
|
13
13
|
private scopedModels;
|
|
14
|
+
private compactorModels;
|
|
14
15
|
private oauthProviders;
|
|
15
16
|
/** Extension providers live only in the engine; the host learns their API-key login and auth status from it. */
|
|
16
17
|
private apiKeyLoginProviders;
|
package/dist/modes/print-mode.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-
|
|
2
|
+
export { announceBlueprintBuildWaits, runPrintMode, writeBlueprintBuildEvent } from "../_shared/sdk-RRLVN7ER.js";
|
|
3
3
|
//# sourceMappingURL=print-mode.js.map
|
|
@@ -88,6 +88,12 @@ export declare abstract class RpcClientApi {
|
|
|
88
88
|
/** Compact the session; `instructions` say what to recover first and focus a compactor model. */
|
|
89
89
|
compact(instructions?: string): Promise<VerbatimCompactionResult>;
|
|
90
90
|
setAutoCompaction(enabled: boolean): Promise<void>;
|
|
91
|
+
setCompactionModel(model: string, scope?: "global" | "project", options?: {
|
|
92
|
+
persist?: boolean;
|
|
93
|
+
}): Promise<void>;
|
|
94
|
+
setDecisionModel(model: string, scope?: "global" | "project", options?: {
|
|
95
|
+
persist?: boolean;
|
|
96
|
+
}): Promise<void>;
|
|
91
97
|
/**
|
|
92
98
|
* Say what extension UI this client can show. With `questionnaire`, `ask_user_question` arrives as one
|
|
93
99
|
* `extension_ui_request` with method `questionnaire` instead of failing for lack of a terminal.
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* Responses and events are emitted as JSON lines on stdout.
|
|
6
6
|
*/
|
|
7
7
|
import type { AgentMessage, ThinkingLevel } from "@bastani/atomic-agent-core";
|
|
8
|
-
import type { AuthInfoLink, Credential, OAuthAuthInfo, OAuthDeviceCodeInfo, OAuthPrompt, OAuthSelectPrompt } from "@bastani/atomic-ai";
|
|
8
|
+
import type { AuthInfoLink, CompactorModel, Credential, OAuthAuthInfo, OAuthDeviceCodeInfo, OAuthPrompt, OAuthSelectPrompt } from "@bastani/atomic-ai";
|
|
9
9
|
import type { Api, ImageContent, Model } from "@bastani/atomic-ai/compat";
|
|
10
10
|
import type { ClearedQueue, CompactionReason, PromptDisposition, QueuedInputDisposition, SessionRecoveryReport, SessionStats } from "../../core/agent-session.js";
|
|
11
11
|
import type { BashResult } from "../../core/bash-executor.ts";
|
|
12
|
-
import type { VerbatimCompactionResult } from "../../core/compaction/index.ts";
|
|
12
|
+
import type { SerializedCompactionError, VerbatimCompactionResult } from "../../core/compaction/index.ts";
|
|
13
13
|
import type { SerializedDebugError } from "../../core/debug-errors.ts";
|
|
14
14
|
import type { ResourceOverlap } from "../../core/diagnostics.ts";
|
|
15
15
|
import type { SessionRecoveryReason } from "../../core/extensions/index.js";
|
|
@@ -38,6 +38,8 @@ export interface RpcModelCatalog {
|
|
|
38
38
|
model: Model<Api>;
|
|
39
39
|
thinkingLevel?: ThinkingLevel;
|
|
40
40
|
}>;
|
|
41
|
+
/** Dedicated compactor models registered in the engine (built-in, `models.json`, and extensions). */
|
|
42
|
+
compactorModels?: CompactorModel[];
|
|
41
43
|
/** Extension-registered providers that offer API-key login (`login_provider`). */
|
|
42
44
|
customAuthProviders: Array<{
|
|
43
45
|
id: string;
|
|
@@ -248,6 +250,18 @@ export type RpcCommand = {
|
|
|
248
250
|
id?: string;
|
|
249
251
|
type: "set_auto_compaction";
|
|
250
252
|
enabled: boolean;
|
|
253
|
+
} | {
|
|
254
|
+
id?: string;
|
|
255
|
+
type: "set_compaction_model";
|
|
256
|
+
model: string;
|
|
257
|
+
scope?: "global" | "project";
|
|
258
|
+
persist?: boolean;
|
|
259
|
+
} | {
|
|
260
|
+
id?: string;
|
|
261
|
+
type: "set_decision_model";
|
|
262
|
+
model: string;
|
|
263
|
+
scope?: "global" | "project";
|
|
264
|
+
persist?: boolean;
|
|
251
265
|
} | {
|
|
252
266
|
id?: string;
|
|
253
267
|
type: "abort_compaction";
|
|
@@ -704,6 +718,16 @@ export type RpcResponse = {
|
|
|
704
718
|
type: "response";
|
|
705
719
|
command: "set_auto_compaction";
|
|
706
720
|
success: true;
|
|
721
|
+
} | {
|
|
722
|
+
id?: string;
|
|
723
|
+
type: "response";
|
|
724
|
+
command: "set_compaction_model";
|
|
725
|
+
success: true;
|
|
726
|
+
} | {
|
|
727
|
+
id?: string;
|
|
728
|
+
type: "response";
|
|
729
|
+
command: "set_decision_model";
|
|
730
|
+
success: true;
|
|
707
731
|
} | {
|
|
708
732
|
id?: string;
|
|
709
733
|
type: "response";
|
|
@@ -987,6 +1011,9 @@ export type RpcErrorDetails = {
|
|
|
987
1011
|
providerId: string;
|
|
988
1012
|
operation: CredentialSynchronizationOperation;
|
|
989
1013
|
};
|
|
1014
|
+
} | {
|
|
1015
|
+
errorCode: "compaction_error";
|
|
1016
|
+
errorDetails: SerializedCompactionError;
|
|
990
1017
|
} | {
|
|
991
1018
|
errorCode: "debug_error";
|
|
992
1019
|
errorDetails: SerializedDebugError;
|
|
@@ -6,12 +6,12 @@ import chalk from "chalk";
|
|
|
6
6
|
import { Container, Input, Markdown, ProcessTerminal, Spacer, TuiMainScreen, getKeybindings, matchesKey, setCapabilityOverrides, setKeybindings, truncateToWidth, visibleWidth } from "@bastani/atomic-tui";
|
|
7
7
|
import { KeybindingsManager as KeybindingsManager$1, getMarkdownTheme, initTheme, navActionText, renderNavHintLine, stopThemeWatcher, theme } from "./_shared/p2-shell-main-B2WIALFD.js";
|
|
8
8
|
import { APP_NAME, CONFIG_DIR_NAME, ENV_PACKAGE_DIR, ENV_SELF_UPDATE_COMMAND, PACKAGE_NAME, VERSION, detectInstallChange, detectInstallMethod, getAgentConfigPaths, getAgentDir, getConfiguredSelfUpdateArgv, getEnvNames, getPackageDir, getSelfUpdateCommand, getSelfUpdateUnavailableInstruction, isLocalPath, makeConfiguredSelfUpdateCommand, processLaunch, processLaunchAsync, resolvePath, shortenHomePath, spawnLaunchedProcess, spawnLaunchedProcessSync } from "./_shared/p0-cli-BB45ZQY6.js";
|
|
9
|
-
import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-
|
|
9
|
+
import { DynamicBorder, cleanupWindowsSelfUpdateQuarantine, handlePackageCommandParseOutcome, isWindowsInstallDirectoryLockError, parsePackageCommand, quarantineWindowsNativeDependencies } from "./_shared/startup-0-0-4VG2G44V.js";
|
|
10
10
|
import { createProjectTrustContext } from "./_shared/startup-0-3-T4DVFYWX.js";
|
|
11
11
|
import { parseConfigCommand } from "./_shared/config-command-parser-XRBNVMBV.js";
|
|
12
|
-
import { AuthStorage } from "./_shared/startup-0-4-
|
|
12
|
+
import { AuthStorage } from "./_shared/startup-0-4-ZMJV547D.js";
|
|
13
13
|
import { DefaultPackageManager, ModelRuntime } from "./_shared/startup-0-5-FD2P735I.js";
|
|
14
|
-
import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-
|
|
14
|
+
import { formatPackageInstallWarning, isOfflineModeEnabled } from "./_shared/startup-0-1-XTIL65D4.js";
|
|
15
15
|
import { DefaultResourceLoader, resolveProjectTrusted } from "./_shared/startup-14-0-MLX36RBG.js";
|
|
16
16
|
import { SettingsManager } from "./_shared/startup-8-1-4KANEHRA.js";
|
|
17
17
|
import { ProjectTrustStore, hasProjectTrustInputs } from "./_shared/p1b-elig-ENCUPKKJ.js";
|
|
@@ -1099,7 +1099,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1099
1099
|
return (async () => {
|
|
1100
1100
|
const root = new URL("./", import.meta.url);
|
|
1101
1101
|
const releases = (globalThis[Symbol.for("atomic.in-place-update-release.v1")] ??= new Map());
|
|
1102
|
-
const key = `${root.href}#0.10.
|
|
1102
|
+
const key = `${root.href}#0.10.10-alpha.2`;
|
|
1103
1103
|
let release = releases.get(key);
|
|
1104
1104
|
if (release === undefined) {
|
|
1105
1105
|
const current = (async () => {
|
|
@@ -1127,7 +1127,7 @@ function __atomicOnDemandFailed(error, feature) {
|
|
|
1127
1127
|
} catch {
|
|
1128
1128
|
// No installation to read, as in a bundle of the package: the release the process runs decides.
|
|
1129
1129
|
}
|
|
1130
|
-
const updatedTo = typeof installed === "string" && installed !== "0.10.
|
|
1130
|
+
const updatedTo = typeof installed === "string" && installed !== "0.10.10-alpha.2" ? installed : running !== undefined && running.version !== "0.10.10-alpha.2" ? "0.10.10-alpha.2" : undefined;
|
|
1131
1131
|
if (updatedTo === undefined) throw error;
|
|
1132
1132
|
const application = typeof running?.name === "string" ? running.name : "atomic";
|
|
1133
1133
|
const restart = new Error(`${application} was updated to ${updatedTo} while this session was running; restart it to keep using ${feature}.`, {
|
|
@@ -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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
package/dist/rpc-entry.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import "./_shared/rolldown-runtime-BGM3D5V3.js";
|
|
3
|
-
import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-
|
|
3
|
+
import { insertForcedOptionsBeforeTerminator } from "./_shared/startup-0-1-XTIL65D4.js";
|
|
4
4
|
import { exitOnDecisionConfigError } from "./_shared/settings-startup-8-DNZ2RIHM.js";
|
|
5
5
|
import { APP_NAME, ATOMIC_AI_AGENT } from "./_shared/p0-cli-BB45ZQY6.js";
|
|
6
6
|
import { configureHttpDispatcher } from "./_shared/http-YFAPTIZD.js";
|
package/dist/startup-files.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-
|
|
1
|
+
{"version":2,"self":"@bastani/atomic","packages":[["@bastani/atomic",-1],["@bastani/atomic-tui",0],["@bastani/atomic-codemode",0],["proper-lockfile",0],["graceful-fs",3],["retry",3],["signal-exit",3],["chalk",0],["get-east-asian-width",1],["marked",1],["marked-cjk-friendly",1],["@bastani/atomic-ai",0],["@bastani/atomic-agent-core",0],["glob",0],["@bastani/atomic-schema",11]],"files":[[0,"dist/modes/interactive-engine/engine-prewarm.js"],[0,"dist/_shared/rolldown-runtime-BGM3D5V3.js"],[0,"dist/_shared/p1a-prewarm-XIU57JHF.js"],[0,"dist/_shared/p0-cli-BB45ZQY6.js"],[0,"dist/_shared/p1-shared-RG5I5LJ6.js"],[1,"dist/helper-programs/index.js"],[0,"dist/utils/canonical-path.js"],[0,"dist/utils/path-exists.js"],[0,"dist/utils/worker-threads.js"],[2,"dist/node-options.js"],[1,"dist/_main-ea49a2e6.js"],[1,"dist/_lazy-eb232bf4.js"],[1,"dist/_rolldown-runtime-e937a250.js"],[0,"dist/core/storage/node-sqlite-thread.js"],[0,"dist/core/storage/dialect.js"],[0,"dist/modes/interactive/startup-shell-eligibility.js"],[0,"dist/_shared/p1b-elig-ENCUPKKJ.js"],[3,"index.js"],[0,"dist/_shared/p1-elig-shell-WWRO3L2R.js"],[3,"lib/lockfile.js"],[4,"graceful-fs.js"],[4,"polyfills.js"],[4,"legacy-streams.js"],[4,"clone.js"],[5,"index.js"],[5,"lib/retry.js"],[5,"lib/retry_operation.js"],[6,"index.js"],[6,"signals.js"],[3,"lib/mtime-precision.js"],[3,"lib/adapter.js"],[0,"dist/modes/interactive/startup-shell.js"],[0,"dist/_shared/p2-shell-TJBYQMCJ.js"],[1,"dist/index.js"],[0,"dist/_shared/p2-shell-main-B2WIALFD.js"],[0,"dist/_shared/p2-common-YLSYXMDQ.js"],[1,"dist/_main-eb08764b.js"],[1,"dist/_main-e8b70ad5.js"],[1,"dist/_main-ee570765.js"],[1,"dist/_main-e3d2c0ee.js"],[1,"dist/_main-e6811217.js"],[1,"dist/_main-eb967ea2.js"],[1,"dist/_main-eadbd863.js"],[1,"dist/_main-ec392c93.js"],[1,"dist/_main-e6ce3ee9.js"],[1,"dist/_main-ee2a1713.js"],[7,"source/index.js"],[0,"dist/utils/memoize-async.js"],[8,"index.js"],[9,"lib/marked.esm.js"],[10,"dist/index.js"],[1,"dist/native-modifiers.js"],[1,"dist/native-platform.js"],[7,"source/utilities.js"],[7,"source/vendor/ansi-styles/index.js"],[7,"source/vendor/supports-color/index.js"],[8,"lookup.js"],[1,"dist/native-module-path.js"],[8,"lookup-data.js"],[8,"utilities.js"],[0,"dist/utils/startup-stages.js"],[0,"dist/_shared/p3a-stages-66VAGJL3.js"],[0,"dist/core/http-dispatcher.js"],[0,"dist/_shared/http-undici-FVPTZA4G.js"],[0,"dist/_shared/http-YFAPTIZD.js"],[11,"dist/utils/node-http-proxy.js"],[11,"dist/utils/tls-certificate.js"],[11,"dist/utils/request-admission.js"],[11,"dist/_main-edaad0eb.js"],[11,"dist/_rolldown-runtime-ee51c298.js"],[0,"dist/main.js"],[0,"dist/_shared/startup-8-1-4KANEHRA.js"],[0,"dist/_shared/startup-15-1-4S7FLMNG.js"],[0,"dist/_shared/startup-0-0-4VG2G44V.js"],[0,"dist/_shared/startup-0-1-XTIL65D4.js"],[0,"dist/_shared/startup-0-2-27OWFHV6.js"],[0,"dist/_shared/startup-0-3-T4DVFYWX.js"],[0,"dist/_shared/settings-startup-4QCVCI53.js"],[0,"dist/_shared/startup-8-0-34CBHPZH.js"],[0,"dist/_shared/startup-0-5-FD2P735I.js"],[0,"dist/_shared/startup-0-4-ZMJV547D.js"],[11,"dist/index.js"],[0,"dist/core/storage/errors.js"],[11,"dist/compat.js"],[0,"dist/core/worktree-snapshot/blob-store.js"],[0,"dist/core/storage/provider.js"],[0,"dist/core/storage/file-identity.js"],[11,"dist/utils/typebox/index.js"],[11,"dist/providers/all.js"],[11,"dist/utils/typebox/value.js"],[0,"dist/core/storage/selection.js"],[0,"dist/_shared/startup-15-0-YUKGAC63.js"],[0,"dist/_shared/startup-10-0-TDQNBDDL.js"],[0,"dist/_shared/startup-12-0-55AAXBJZ.js"],[0,"dist/_shared/startup-14-0-MLX36RBG.js"],[12,"dist/index.js"],[0,"dist/core/session-manager-core.js"],[0,"dist/core/extensions/runner-context.js"],[0,"dist/core/model-registry.js"],[11,"dist/api/anthropic-serialized-body.js"],[11,"dist/utils/provider-env.js"],[1,"dist/builtin-command-names.js"],[0,"dist/core/storage/prefix.js"],[11,"dist/providers/github-copilot.js"],[0,"dist/core/storage/migrations.js"],[0,"dist/core/storage/statement-sequence.js"],[11,"dist/providers/model-schema.js"],[11,"dist/api/transform-messages.js"],[11,"dist/api/llama-cpp-classify.lazy.js"],[11,"dist/api/typesafe-system-one.lazy.js"],[11,"dist/providers/compat-schema.js"],[11,"dist/utils/typebox/compile.js"],[11,"dist/utils/models-dev-catalog.js"],[11,"dist/utils/retry-hints.js"],[11,"dist/api/anthropic-assistant-content.js"],[2,"dist/declarations.js"],[2,"dist/source.js"],[11,"dist/utils/provider-retry.js"],[11,"dist/utils/retry-sleep.js"],[0,"dist/core/storage/session/errors.js"],[0,"dist/core/storage/node-sqlite.js"],[0,"dist/core/storage/write-ahead-log.js"],[13,"dist/esm/index.min.js"],[11,"dist/providers/openrouter.js"],[11,"dist/api/openai-codex-responses.js"],[11,"dist/providers/github-copilot-env.js"],[11,"dist/_main-e2ef4720.js"],[11,"dist/_main-e1febd93.js"],[11,"dist/_main-e19a4fd4.js"],[11,"dist/_main-e86630a4.js"],[11,"dist/_main-e9f56bba.js"],[11,"dist/_main-eb50a044.js"],[11,"dist/_main-efb566d7.js"],[11,"dist/_main-ee9d05d2.js"],[11,"dist/_main-eba93bef.js"],[11,"dist/_main-e66c63b1.js"],[11,"dist/_main-ec6a4bc9.js"],[11,"dist/_main-ed807bff.js"],[11,"dist/_main-e4a075c4.js"],[0,"dist/core/storage/statement-batches.js"],[11,"dist/_lazy-e41faaec.js"],[11,"dist/_main-eb91f765.js"],[12,"dist/_main-e87dd55a.js"],[12,"dist/_main-ebff8f0f.js"],[11,"dist/api/strict-tool-limits.js"],[0,"dist/_shared/session-manager-list-2BLEEZVG.js"],[11,"dist/_lazy-e8d1c37a.js"],[11,"dist/_main-ebcdada8.js"],[2,"dist/identifier.js"],[0,"dist/core/storage/node-sqlite-file-gate.js"],[11,"dist/_main-e68ac8e6.js"],[11,"dist/_lazy-e80a27de.js"],[11,"dist/_main-efb2d8b1.js"],[14,"dist/index.js"],[14,"dist/formats/index.js"],[11,"dist/_main-e35ad503.js"],[12,"dist/_rolldown-runtime-e937a250.js"],[11,"dist/_lazy-ea3b042f.js"],[14,"dist/_main-ed41ae74.js"],[0,"dist/cli/settings-startup.js"],[0,"dist/_shared/settings-startup-8-DNZ2RIHM.js"],[0,"dist/modes/interactive/interactive-mode.js"],[0,"dist/_shared/mode-shared-2QJSCUM6.js"],[0,"dist/_shared/mode-interactive-sdk-7KXUFI2F.js"],[1,"dist/layout-node.js"],[0,"dist/modes/rpc/rpc-mode.js"],[0,"dist/_shared/mode-rpc-sdk-IOPGDYR4.js"],[0,"dist/index.js"],[0,"dist/_shared/sdk-RRLVN7ER.js"],[0,"dist/core/storage/index.js"],[0,"dist/core/storage/schema.js"],[11,"dist/api/cloudflare-gateway-binding.js"],[0,"dist/core/storage/sqlite-facade.js"],[11,"dist/utils/oauth-page.js"],[0,"dist/core/storage/fenced-paths.js"],[0,"dist/core/extensions/loader-virtual-modules.js"],[0,"dist/builtin/intercom/index.bundle.mjs"],[0,"dist/builtin/subagents/src/extension/index.bundle.mjs"],[0,"dist/builtin/mcp/index.bundle.mjs"],[0,"dist/builtin/web-access/index.bundle.mjs"]]}
|
package/dist/startup-stages/5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "../_shared/startup-0-0-
|
|
1
|
+
import "../_shared/startup-0-0-4VG2G44V.js";
|
package/dist/startup-stages/7.js
CHANGED
package/dist/startup-stages/8.js
CHANGED
package/dist/startup-stages/9.js
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Atomic cannot run a session without its native module (`@bastani/atomic-natives`): its subagents, for one, are built
|
|
3
|
+
* on it. The message says why the module did not load, as its loader words it: for a platform package an install left
|
|
4
|
+
* out, which package and how to reinstall Atomic with it. A native module of another release is refused too: when an
|
|
5
|
+
* update replaced the installation under this process, with how to restart, and otherwise, the installation being
|
|
6
|
+
* broken, with how to reinstall it.
|
|
7
|
+
*/
|
|
8
|
+
export declare class NativeModuleUnavailableError extends Error {
|
|
9
|
+
readonly code = "NativeModuleUnavailable";
|
|
10
|
+
constructor(message: string, options?: {
|
|
11
|
+
cause?: unknown;
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
/** Why this process cannot run its native module, before the message says whether the installation changed. */
|
|
15
|
+
export interface NativeModuleProblem {
|
|
16
|
+
/** The loader's own message, or why the native module it loaded cannot run this release. */
|
|
17
|
+
readonly message: string;
|
|
18
|
+
/** Whether it could not load at all; the restart advice then comes before the loader's message. */
|
|
19
|
+
readonly loadFailed: boolean;
|
|
20
|
+
readonly cause?: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* For a native module of another release: the file this process loaded it from and the release it needs. When that
|
|
23
|
+
* file changed on disk after an earlier refusal in this process and its package is of that release by now, it was
|
|
24
|
+
* reinstalled while this process ran: a restart loads it. The process keeps the one it loaded until then, as other
|
|
25
|
+
* parts of it already use that one.
|
|
26
|
+
*/
|
|
27
|
+
readonly refused?: {
|
|
28
|
+
readonly file: string;
|
|
29
|
+
readonly release: string;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Load Atomic's native module, and say why this process cannot run it: it did not load, or it is of another release.
|
|
34
|
+
* Undefined when it can. Only a load that passed is kept: a later call tries again, so a module that could not load at
|
|
35
|
+
* all can be used once it is installed. One of another release stays loaded, and refused, until the process restarts.
|
|
36
|
+
*/
|
|
37
|
+
export declare function nativeModuleProblem(): NativeModuleProblem | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* The {@link NativeModuleUnavailableError} of `problem`: when an update replaced or removed the installation since this
|
|
40
|
+
* process started, or the native module this process refused before was reinstalled in the right release since, it says
|
|
41
|
+
* to restart (before the loader's message, for a module that could not load); otherwise it is the problem's own message.
|
|
42
|
+
*/
|
|
43
|
+
export declare function nativeModuleUnavailable(problem: NativeModuleProblem): Promise<never>;
|
|
44
|
+
//# sourceMappingURL=native-module.d.ts.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import { parseArgs } from "../_shared/startup-0-1-
|
|
4
|
+
import { parseArgs } from "../_shared/startup-0-1-XTIL65D4.js";
|
|
5
5
|
import { CONFIG_DIR_NAME, ENV_AGENT_DIR, INTERACTIVE_ENGINE_PREWARM_NO_DATABASE, getEnvNames, isPlainInteractiveSessionInvocation, normalizePath, stripBom } from "../_shared/p0-cli-BB45ZQY6.js";
|
|
6
6
|
import { parseConfigCommand } from "../_shared/config-command-parser-XRBNVMBV.js";
|
|
7
|
-
import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-
|
|
8
|
-
import { parsePackageCommand } from "../_shared/startup-0-0-
|
|
7
|
+
import { previewProcessStorageSelection, previewSessionSettingSelection } from "../_shared/startup-0-2-27OWFHV6.js";
|
|
8
|
+
import { parsePackageCommand } from "../_shared/startup-0-0-4VG2G44V.js";
|
|
9
9
|
// dist/utils/startup-database-spare.js
|
|
10
10
|
const DIRECT_SUBCOMMANDS = /* @__PURE__ */ new Set([
|
|
11
11
|
"auth",
|
|
@@ -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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../_shared/rolldown-runtime-BGM3D5V3.js";
|
|
2
|
-
export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-
|
|
2
|
+
export { GIT_RELEASE, detectLinuxLibc, ensureTool, getGitDistributionTarget, getGitInstallDir, getGitReleaseMarker, getGitShellEnvironment, getGitShellEnvironmentAsync, getGitStatus, getGitStatusAsync, getLatestVersion, getToolEnv, getToolPath, parseGitVersion, plainStatMtimeMs, resetGitProvisionStateForTest, resolveGit, resolveGitSync, resolveInstalledGit, withGitProvisionSettingsForTest } from "../_shared/startup-0-1-XTIL65D4.js";
|
|
3
3
|
//# sourceMappingURL=tools-manager.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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-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.10-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.10-alpha.2") throw error;
|
|
31
|
+
throw new Error((typeof running.name === "string" ? running.name : "atomic") + " was updated to 0.10.10-alpha.2 while this session was running; restart it to keep using this feature.", {
|
|
32
32
|
cause: error,
|
|
33
33
|
});
|
|
34
34
|
}
|