@bastani/atomic 0.10.9 → 0.10.10-alpha.1
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 +57 -0
- package/README.md +211 -155
- 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} +145 -58
- 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 +85 -114
- 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 +37 -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 +71 -138
- 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 +60 -87
- 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 +235 -243
- package/docs/build.md +12 -11
- package/docs/codemode.md +60 -51
- package/docs/compaction/reference.md +61 -24
- package/docs/compaction.md +117 -65
- package/docs/computer-use.md +179 -146
- package/docs/containerization.md +79 -33
- package/docs/custom-provider/api-reference.md +148 -11
- package/docs/custom-provider/oauth.md +44 -27
- package/docs/custom-provider/override.md +14 -7
- package/docs/custom-provider/registration.md +75 -65
- package/docs/custom-provider/streaming.md +42 -19
- package/docs/custom-provider.md +25 -61
- package/docs/development.md +47 -43
- package/docs/docs.json +33 -33
- package/docs/environment-variables.md +83 -57
- package/docs/extensions/api-reference.md +323 -734
- 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 +152 -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 +42 -20
- package/docs/guides/intercom.md +17 -13
- package/docs/guides/non-interactive.md +29 -16
- package/docs/guides/orchestration.md +16 -10
- package/docs/guides/resume-on-any-machine.md +54 -49
- package/docs/guides/subagents.md +22 -14
- package/docs/guides/team-setup.md +37 -26
- package/docs/guides.md +22 -21
- package/docs/herdr.md +21 -16
- package/docs/index.md +16 -17
- package/docs/intercom/operations.md +68 -66
- package/docs/intercom/reference.md +196 -191
- package/docs/intercom.md +103 -92
- package/docs/json.md +71 -71
- package/docs/keybindings.md +63 -50
- package/docs/libraries/agent-core.md +49 -8
- package/docs/libraries/ai.md +21 -12
- package/docs/libraries/codemode.md +28 -6
- package/docs/libraries/schema.md +7 -7
- package/docs/libraries/telemetry.md +7 -7
- package/docs/libraries/tui.md +74 -94
- package/docs/libraries.md +5 -5
- package/docs/llama-cpp.md +38 -33
- package/docs/mcp-servers.md +96 -90
- package/docs/models/reference.md +46 -33
- package/docs/models-configuration.md +12 -6
- package/docs/models.md +93 -88
- package/docs/orchestration/migrating-workflows.md +21 -19
- package/docs/orchestration/patterns.md +35 -20
- package/docs/orchestration.md +22 -21
- package/docs/packages/authoring.md +28 -19
- package/docs/packages/reference.md +75 -16
- package/docs/packages.md +31 -33
- package/docs/programmatic.md +22 -21
- package/docs/prompt-templates.md +63 -41
- package/docs/providers/reference.md +35 -19
- package/docs/providers.md +61 -71
- package/docs/quickstart.md +32 -46
- package/docs/reference/cli.md +249 -252
- package/docs/reference.md +23 -20
- package/docs/rpc/examples.md +74 -17
- package/docs/rpc/extension-ui.md +79 -62
- package/docs/rpc/protocol.md +816 -358
- package/docs/rpc.md +75 -151
- package/docs/sdk/reference.md +175 -45
- package/docs/sdk/structured-decisions.md +92 -62
- package/docs/sdk/web-server.md +79 -46
- package/docs/sdk.md +237 -195
- package/docs/security.md +106 -43
- package/docs/session-format.md +96 -59
- package/docs/sessions.md +149 -113
- package/docs/settings.md +289 -204
- 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 +104 -97
- package/docs/storage.md +140 -242
- package/docs/subagents/authoring.md +147 -16
- package/docs/subagents/reference.md +100 -30
- package/docs/subagents.md +220 -252
- package/docs/terminal-setup.md +97 -69
- package/docs/termux.md +51 -85
- package/docs/themes/reference.md +51 -37
- package/docs/themes.md +49 -54
- package/docs/tmux.md +38 -21
- package/docs/tools.md +198 -147
- package/docs/tui/reference.md +64 -32
- package/docs/tui.md +38 -66
- package/docs/usage.md +76 -78
- package/docs/verification.md +25 -25
- package/docs/web-access.md +72 -55
- package/docs/windows.md +53 -58
- package/docs/worktree-snapshots.md +62 -65
- package/package.json +8 -8
- package/schemas/models.schema.json +51 -0
- 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
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
`@bastani/web-access` is Atomic's bundled extension for web search, webpage and PDF extraction, GitHub repository cloning, DeepWiki code search, and YouTube and local video analysis.
|
|
4
4
|
|
|
5
|
-
See the [web access guide](https://docs.bastani.ai/web-access) for usage examples and fetch
|
|
5
|
+
See the [web access guide](https://docs.bastani.ai/web-access) for usage examples and fetch troubleshooting.
|
|
6
6
|
|
|
7
7
|
## Setup
|
|
8
8
|
|
|
9
9
|
Atomic bundles `@bastani/web-access` with `@bastani/atomic`. No separate installation is required.
|
|
10
10
|
|
|
11
|
-
`web_search` works with no API keys through Exa's keyless MCP endpoint. For direct API access or additional providers,
|
|
11
|
+
`web_search` works with no API keys through Exa's keyless MCP endpoint. For direct API access or additional providers, export environment variables (`EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`) or add keys to `~/.atomic/web-search.json`:
|
|
12
12
|
|
|
13
13
|
```json
|
|
14
14
|
{
|
|
@@ -20,7 +20,7 @@ Atomic bundles `@bastani/web-access` with `@bastani/atomic`. No separate install
|
|
|
20
20
|
|
|
21
21
|
When `~/.atomic/web-search.json` is absent, Atomic checks legacy `~/.pi/web-search.json` without merging the two files.
|
|
22
22
|
|
|
23
|
-
In `auto` mode (the default), `web_search` tries Exa first (direct API if keyed, MCP if not), then Perplexity, then Gemini API, and then Gemini Web when browser cookie access is enabled.
|
|
23
|
+
In `auto` mode (the default), `web_search` tries Exa first (direct API if keyed, keyless MCP if not), then Perplexity, then Gemini API, and then Gemini Web when browser cookie access is enabled.
|
|
24
24
|
|
|
25
25
|
Optional binaries for video frame extraction:
|
|
26
26
|
|
|
@@ -55,11 +55,7 @@ fetch_content({ urls: ["/path/to/recording.mp4"], prompt: "What error appears on
|
|
|
55
55
|
|
|
56
56
|
## Tools
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
Initialization and replay are leased to the active session. Session shutdown retires the lease and cleans up its candidate, so calls spanning shutdown reject and a restarted session creates a fresh provider instance. An abort during the shared wait cancels only that invocation. Host cancellation after provider or curator work rejects with the host abort reason. An explicit user cancellation in the curator returns `{ cancelled: true, cancelReason: "user" }`. Resetting the initialization attempt does not re-evaluate an ESM module whose module evaluation threw.
|
|
61
|
-
|
|
62
|
-
In batch search and fetch calls, partial success stays usable and retains item-level errors. A nonempty batch where every provider request or URL fetch fails reports through Atomic's tool-error channel with aggregate stage metadata while keeping per-item diagnostics in the result.
|
|
58
|
+
All four tools register at startup and initialize on first use. In batch search and fetch calls, partial successes remain usable alongside per-item errors; if every item in a batch fails, the tool returns an error with diagnostics for each item. Cancelling inside the browser curator returns `{ cancelled: true, cancelReason: "user" }`.
|
|
63
59
|
|
|
64
60
|
### `web_search`
|
|
65
61
|
|
|
@@ -77,7 +73,7 @@ web_search({ query: "release notes", includeContent: true })
|
|
|
77
73
|
| Parameter | Description |
|
|
78
74
|
| --- | --- |
|
|
79
75
|
| `query` / `queries` | Single query or array of queries searched in sequence. |
|
|
80
|
-
| `numResults` | Results per query (default 5
|
|
76
|
+
| `numResults` | Results per query (default `5`, max `20`). |
|
|
81
77
|
| `recencyFilter` | `day`, `week`, `month`, or `year`. |
|
|
82
78
|
| `domainFilter` | Limit to domains, or prefix a domain with `-` to exclude it. |
|
|
83
79
|
| `provider` | `auto` (default), `exa`, `perplexity`, or `gemini`. |
|
|
@@ -96,15 +92,15 @@ code_search({ repoName: "expressjs/express", query: "How is middleware error han
|
|
|
96
92
|
| --- | --- |
|
|
97
93
|
| `repoName` | Required single public GitHub repository in `owner/repo` format, not a URL or list. |
|
|
98
94
|
| `query` | Required nonempty question about that repository, sent verbatim to DeepWiki's `ask_question`. |
|
|
99
|
-
| `maxTokens` | Optional best-effort local output bound, roughly four characters per token, with a truncation notice (default 5000
|
|
95
|
+
| `maxTokens` | Optional best-effort local output bound, roughly four characters per token, with a truncation notice (default `5000`, range `1000` to `50000`). |
|
|
100
96
|
|
|
101
97
|
Requests have a 60-second deadline and honor caller cancellation. Errors and empty responses are reported directly without falling back to `web_search`. Use `web_search` for broader discovery or unindexed repositories.
|
|
102
98
|
|
|
103
99
|
### `fetch_content`
|
|
104
100
|
|
|
105
|
-
Fetch URLs or local video paths and return readable
|
|
101
|
+
Fetch URLs or local video paths and return readable Markdown. The tool detects GitHub repositories, YouTube videos, PDFs, local video files, and regular webpages automatically.
|
|
106
102
|
|
|
107
|
-
Always pass the lowercase `urls` field as a nonempty array of strings, even for one target. Legacy `{ url: "..." }` calls, empty arrays, empty strings, object entries, and unrecognized fields are rejected before fetching.
|
|
103
|
+
Always pass the lowercase `urls` field as a nonempty array of strings, even for one target. Legacy `{ url: "..." }` calls, empty arrays, empty strings, object entries, and unrecognized fields are rejected before fetching.
|
|
108
104
|
|
|
109
105
|
```typescript
|
|
110
106
|
fetch_content({ urls: ["https://example.com/article"] })
|
|
@@ -120,9 +116,9 @@ fetch_content({ urls: ["https://youtube.com/watch?v=abc"], timestamp: "23:41-25:
|
|
|
120
116
|
| `urls` | Required nonempty array of URL or local video path strings. |
|
|
121
117
|
| `prompt` | Question for YouTube or local video analysis. Ignored for webpages. |
|
|
122
118
|
| `timestamp` | Video frame extraction time: seconds (`"85"`), a single time (`"23:41"`), or a range (`"23:41-25:00"`). Ignored for non-video inputs. |
|
|
123
|
-
| `frames` | Number of video frames to extract (1 to 12). Alone, samples the whole video; with a range, defaults to 6 unless set; with a single timestamp, uses 5-second intervals. Ignored for non-video inputs. |
|
|
119
|
+
| `frames` | Number of video frames to extract (`1` to `12`). Alone, samples the whole video; with a range, defaults to `6` unless set; with a single timestamp, uses 5-second intervals. Ignored for non-video inputs. |
|
|
124
120
|
| `model` | Gemini model override for YouTube or local video analysis only. Does not change webpage extraction. |
|
|
125
|
-
| `forceClone` | Allow cloning a GitHub repository that exceeds `githubClone.maxRepoSizeMB` (default 350 MB). |
|
|
121
|
+
| `forceClone` | Allow cloning a GitHub repository that exceeds `githubClone.maxRepoSizeMB` (default `350` MB). |
|
|
126
122
|
|
|
127
123
|
### `get_search_content`
|
|
128
124
|
|
|
@@ -132,8 +128,17 @@ Retrieve stored content from earlier `web_search` or `fetch_content` calls. Inli
|
|
|
132
128
|
get_search_content({ responseId: "abc123", urlIndex: 0 })
|
|
133
129
|
get_search_content({ responseId: "abc123", url: "https://example.com/article" })
|
|
134
130
|
get_search_content({ responseId: "abc123", query: "original query" })
|
|
131
|
+
get_search_content({ responseId: "abc123", queryIndex: 0 })
|
|
135
132
|
```
|
|
136
133
|
|
|
134
|
+
| Parameter | Description |
|
|
135
|
+
| --- | --- |
|
|
136
|
+
| `responseId` | Required response ID from a previous `web_search` or `fetch_content` result. |
|
|
137
|
+
| `query` | Retrieve the stored result for a specific `web_search` query string. |
|
|
138
|
+
| `queryIndex` | Retrieve the stored `web_search` query result by zero-based index. |
|
|
139
|
+
| `url` | Retrieve the stored page content for a specific URL. |
|
|
140
|
+
| `urlIndex` | Retrieve the stored page content by zero-based index. |
|
|
141
|
+
|
|
137
142
|
## Capabilities
|
|
138
143
|
|
|
139
144
|
### GitHub repositories
|
|
@@ -146,7 +151,7 @@ By default, clones go to an owner-only `github-repos` directory under `$XDG_RUNT
|
|
|
146
151
|
|
|
147
152
|
### YouTube videos
|
|
148
153
|
|
|
149
|
-
YouTube URLs use Gemini for visual descriptions, timestamped transcripts, and chapter markers. Pass `prompt` to ask a specific question about the video. Results include the video thumbnail when available.
|
|
154
|
+
YouTube URLs use Gemini for visual descriptions, timestamped transcripts, and chapter markers. Pass `prompt` to ask a specific question about the video. Results include the video thumbnail when available. Setting `youtube.enabled: false` disables both YouTube analysis and YouTube frame extraction.
|
|
150
155
|
|
|
151
156
|
Fallback order is Gemini Web (when browser cookies are enabled), then Gemini API, and then Perplexity (text summary only). Supported URL formats include `/watch?v=`, `youtu.be/`, `/shorts/`, `/live/`, `/embed/`, and `/v/`.
|
|
152
157
|
|
|
@@ -172,7 +177,7 @@ Frame extraction requires `ffmpeg`, plus `yt-dlp` for YouTube. Timestamps accept
|
|
|
172
177
|
|
|
173
178
|
### PDFs
|
|
174
179
|
|
|
175
|
-
PDF URLs up to 20 MB are extracted as text (up to 100 pages) and saved to `~/Downloads/` as
|
|
180
|
+
PDF URLs up to 20 MB are extracted as text (up to 100 pages) and saved to `~/Downloads/` as Markdown files with unique names so concurrent fetches do not overwrite existing files. The agent can then inspect sections with `read` without loading the whole file into context. Extraction is text-only and does not perform OCR.
|
|
176
181
|
|
|
177
182
|
### Blocked pages
|
|
178
183
|
|
|
@@ -194,7 +199,7 @@ Only `http` and `https` URLs are fetched. URLs with embedded credentials, local
|
|
|
194
199
|
- Local video paths use Gemini API (Files API), then Gemini Web when browser cookies are enabled.
|
|
195
200
|
- GitHub repository URLs clone locally, or use the GitHub API for large repositories and full commit SHAs.
|
|
196
201
|
- YouTube URLs use Gemini Web when browser cookies are enabled, then Gemini API, and then Perplexity.
|
|
197
|
-
- HTTP and HTTPS URLs branch by content type. PDFs extract text to
|
|
202
|
+
- HTTP and HTTPS URLs branch by content type. PDFs extract text to Markdown in `~/Downloads/`. HTML runs Readability, the RSC parser, Jina Reader, and then Gemini fallback. Plain text, JSON, and Markdown return directly.
|
|
198
203
|
|
|
199
204
|
## Commands
|
|
200
205
|
|
|
@@ -217,10 +222,11 @@ Toggle or configure the curator workflow at runtime:
|
|
|
217
222
|
/curator
|
|
218
223
|
/curator on
|
|
219
224
|
/curator off
|
|
225
|
+
/curator none
|
|
220
226
|
/curator summary-review
|
|
221
227
|
```
|
|
222
228
|
|
|
223
|
-
This command saves `workflow` to `~/.atomic/web-search.json` and takes effect on the next `web_search` call. When disabled (the default), `web_search` returns raw results without opening a browser window. Subagents and non-interactive sessions always skip the curator and return raw results.
|
|
229
|
+
This command saves `workflow` to `~/.atomic/web-search.json` and takes effect on the next `web_search` call. When disabled (`none`, the default), `web_search` returns raw results without opening a browser window. Subagents and non-interactive sessions always skip the curator and return raw results.
|
|
224
230
|
|
|
225
231
|
### `/search`
|
|
226
232
|
|
|
@@ -228,11 +234,14 @@ Browse stored search and fetch results from the current session interactively, i
|
|
|
228
234
|
|
|
229
235
|
### `/google-account`
|
|
230
236
|
|
|
231
|
-
Show the Google account currently authenticated for Gemini Web. This helps verify the active account when multiple Chromium profiles exist or `chromeProfile` is set.
|
|
237
|
+
Show the Google account currently authenticated for Gemini Web locally without triggering a model turn. This helps verify the active account when multiple Chromium profiles exist or `chromeProfile` is set.
|
|
232
238
|
|
|
233
|
-
##
|
|
239
|
+
## Keyboard shortcuts and activity monitor
|
|
234
240
|
|
|
235
|
-
|
|
241
|
+
| Shortcut | Default | Action |
|
|
242
|
+
| --- | --- | --- |
|
|
243
|
+
| `shortcuts.curate` | `Ctrl+Shift+S` | Open the browser search curator while a search is running. |
|
|
244
|
+
| `shortcuts.activity` | `Ctrl+Shift+W` | Toggle the live request and response activity monitor. |
|
|
236
245
|
|
|
237
246
|
```text
|
|
238
247
|
─── Web Search Activity ────────────────────────────────────
|
|
@@ -242,21 +251,23 @@ Press `Ctrl+Shift+W` to toggle live request and response tracking:
|
|
|
242
251
|
────────────────────────────────────────────────────────────
|
|
243
252
|
```
|
|
244
253
|
|
|
254
|
+
Override shortcuts in `~/.atomic/web-search.json` using Atomic keybinding syntax (`ctrl+s`, `ctrl+shift+s`, `alt+r`). Shortcut changes take effect on the next Atomic restart.
|
|
255
|
+
|
|
245
256
|
## Configuration
|
|
246
257
|
|
|
247
|
-
Store settings in `~/.atomic/web-search.json`. Every field is optional.
|
|
258
|
+
Store settings in `~/.atomic/web-search.json`. Every field is optional. Environment variables (`EXA_API_KEY`, `PERPLEXITY_API_KEY`, `GEMINI_API_KEY`) take precedence over keys in the JSON file.
|
|
248
259
|
|
|
249
260
|
```json
|
|
250
261
|
{
|
|
251
262
|
"exaApiKey": "exa-...",
|
|
252
263
|
"perplexityApiKey": "pplx-...",
|
|
253
264
|
"geminiApiKey": "AIza...",
|
|
254
|
-
"provider": "
|
|
265
|
+
"provider": "auto",
|
|
255
266
|
"chromeProfile": "Profile 2",
|
|
256
267
|
"allowBrowserCookies": false,
|
|
257
|
-
"searchModel": "gemini-
|
|
268
|
+
"searchModel": "gemini-3-flash-preview",
|
|
258
269
|
"summaryModel": "anthropic/claude-haiku-4-5",
|
|
259
|
-
"workflow": "
|
|
270
|
+
"workflow": "none",
|
|
260
271
|
"curatorTimeoutSeconds": 20,
|
|
261
272
|
"githubClone": {
|
|
262
273
|
"enabled": true,
|
|
@@ -280,32 +291,28 @@ Store settings in `~/.atomic/web-search.json`. Every field is optional.
|
|
|
280
291
|
}
|
|
281
292
|
```
|
|
282
293
|
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
}
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
Values use Atomic keybinding syntax, such as `ctrl+s`, `ctrl+shift+s`, or `alt+r`. Changes take effect on the next Atomic restart.
|
|
294
|
+
| Setting | Default | Description |
|
|
295
|
+
| --- | --- | --- |
|
|
296
|
+
| `exaApiKey`, `perplexityApiKey`, `geminiApiKey` | unset | Provider API keys. Matching environment variables take precedence. |
|
|
297
|
+
| `provider` | `"auto"` | Default search provider (`"auto"`, `"exa"`, `"perplexity"`, or `"gemini"`). Switching the provider in the curator UI updates the active config immediately. |
|
|
298
|
+
| `workflow` | `"none"` | Curator mode: `"none"` (raw results) or `"summary-review"` (opens the curator with a generated summary draft). |
|
|
299
|
+
| `searchModel` | `"gemini-3-flash-preview"` | Gemini API model used by `web_search` without changing URL, YouTube, or video extraction defaults. |
|
|
300
|
+
| `summaryModel` | built-in preference list | Preferred model for curator summary drafts (must be available in your model registry). |
|
|
301
|
+
| `curatorTimeoutSeconds` | `20` | Initial curator idle timeout in seconds (max `600`). |
|
|
302
|
+
| `allowBrowserCookies` | `false` | Enable Chromium cookie extraction for Gemini Web (also controllable per process with `ATOMIC_ALLOW_BROWSER_COOKIES=1`). |
|
|
303
|
+
| `chromeProfile` | auto-detected | Override Chromium profile directory for Gemini Web cookie lookup. |
|
|
304
|
+
| `githubClone.enabled` | `true` | Enable local GitHub repository cloning in `fetch_content`. |
|
|
305
|
+
| `githubClone.maxRepoSizeMB` | `350` | Size threshold above which `fetch_content` falls back to the GitHub API unless `forceClone: true`. |
|
|
306
|
+
| `githubClone.cloneTimeoutSeconds` | `30` | Timeout in seconds for `git clone`. |
|
|
307
|
+
| `githubClone.clonePath` | system cache dir | Override directory for cloned repositories. |
|
|
308
|
+
| `youtube.enabled` | `true` | Enable YouTube analysis and frame extraction. |
|
|
309
|
+
| `youtube.preferredModel` | `"gemini-3-flash-preview"` | Preferred Gemini model for YouTube analysis. |
|
|
310
|
+
| `video.enabled` | `true` | Enable local video analysis. |
|
|
311
|
+
| `video.preferredModel` | `"gemini-3-flash-preview"` | Preferred Gemini model for local video analysis. |
|
|
312
|
+
| `video.maxSizeMB` | `50` | Maximum local video file size in MB. |
|
|
313
|
+
| `shortcuts.curate` / `shortcuts.activity` | `ctrl+shift+s` / `ctrl+shift+w` | Keyboard shortcuts for curator and activity monitor. |
|
|
314
|
+
|
|
315
|
+
Most config file edits require restarting Atomic to take effect (switching provider or `/curator` in a running session updates active config immediately).
|
|
309
316
|
|
|
310
317
|
### Rate limits and concurrency
|
|
311
318
|
|
|
@@ -320,40 +327,6 @@ Perplexity requests are rate-limited on the client to 10 requests per minute. `f
|
|
|
320
327
|
- GitHub branch names containing slashes may misresolve file paths inside `/tree/` or `/blob/` URLs. The local clone still works and the agent can inspect files directly.
|
|
321
328
|
- Non-code GitHub URLs (issues, pull requests, discussions, releases, and wikis) fall through to regular webpage extraction.
|
|
322
329
|
|
|
323
|
-
|
|
324
|
-
<summary>Package files</summary>
|
|
330
|
+
## License
|
|
325
331
|
|
|
326
|
-
|
|
327
|
-
| --- | --- |
|
|
328
|
-
| `index.ts` | Lazy extension entry point, tool schemas, commands, and shortcut registration. |
|
|
329
|
-
| `index-heavy.ts` | Heavy feature wiring and `/curator`, `/google-account`, and `/search` commands. |
|
|
330
|
-
| `config-paths.ts` | User config file resolution (`~/.atomic/web-search.json` with legacy fallback). |
|
|
331
|
-
| `web-search-tool.ts` | `web_search` tool execution and curator integration. |
|
|
332
|
-
| `web-search-command.ts` | `/websearch` command handler. |
|
|
333
|
-
| `web-search-config.ts` | Search config loading, saving, and provider selection. |
|
|
334
|
-
| `content-tools.ts` | `fetch_content`, `code_search`, and `get_search_content` execution. |
|
|
335
|
-
| `curator-page.ts` | HTML, CSS, and client script assembly for the curator UI. |
|
|
336
|
-
| `curator-server.ts` | Local HTTP server with SSE streaming for the curator UI. |
|
|
337
|
-
| `summary-review.ts` | Summary prompt construction, model draft generation, and deterministic fallback. |
|
|
338
|
-
| `exa.ts` | Exa direct API and keyless MCP client with usage tracking. |
|
|
339
|
-
| `code-search.ts` | Repository question answering through DeepWiki MCP. |
|
|
340
|
-
| `extract.ts` | URL and local path routing, HTTP fetching, and fallback orchestration. |
|
|
341
|
-
| `extract-frames.ts` | Video frame extraction through `ffmpeg` and `yt-dlp`. |
|
|
342
|
-
| `gemini-search.ts` | Search routing across Exa, Perplexity, Gemini API, and Gemini Web. |
|
|
343
|
-
| `gemini-url-context.ts` | Gemini URL Context and Gemini Web extraction fallbacks. |
|
|
344
|
-
| `gemini-web.ts` | Gemini Web client using Chromium cookies. |
|
|
345
|
-
| `gemini-web-config.ts` | Gemini Web profile and browser-cookie opt-in config. |
|
|
346
|
-
| `gemini-api.ts` | Gemini REST API client. |
|
|
347
|
-
| `chrome-cookies.ts` | macOS and Linux Chromium cookie extraction. |
|
|
348
|
-
| `youtube-extract.ts` | YouTube URL detection and extraction fallback chain. |
|
|
349
|
-
| `video-extract.ts` | Local video detection, Files API upload, and Gemini analysis. |
|
|
350
|
-
| `github-config.ts` | GitHub URL validation and clone cache configuration. |
|
|
351
|
-
| `github-extract.ts` | GitHub repository cloning, caching, and tree or file rendering. |
|
|
352
|
-
| `github-api.ts` | GitHub API fallback for large repositories and commit SHAs. |
|
|
353
|
-
| `perplexity.ts` | Perplexity API client with client-side rate limiting. |
|
|
354
|
-
| `pdf-extract.ts` | PDF text extraction and markdown saving to `~/Downloads/`. |
|
|
355
|
-
| `rsc-extract.ts` | Next.js RSC flight data parser. |
|
|
356
|
-
| `storage.ts` | Session-aware stored result cache. |
|
|
357
|
-
| `activity.ts` | Request and response tracking for the activity widget. |
|
|
358
|
-
|
|
359
|
-
</details>
|
|
332
|
+
MIT. See [LICENSE](LICENSE).
|