agent-afk 5.1.0 → 5.2.0
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/dist/agent/_lib/skill-sink-channel.d.ts +3 -0
- package/dist/agent/_lib/trusted-skill-events.d.ts +7 -0
- package/dist/agent/_lib/trusted-skill-registry.d.ts +3 -0
- package/dist/agent/abort-graph.d.ts +20 -0
- package/dist/agent/afk-channel.d.ts +9 -0
- package/dist/agent/afk-ledger-channel.d.ts +23 -0
- package/dist/agent/afk-mode-gate.d.ts +3 -0
- package/dist/agent/auth/credential-resolver.d.ts +3 -0
- package/dist/agent/auth/keychain.d.ts +4 -0
- package/dist/agent/awareness/index.d.ts +6 -0
- package/dist/agent/awareness/presence.d.ts +25 -0
- package/dist/agent/awareness/runtime-snapshot.d.ts +13 -0
- package/dist/agent/awareness/runtime-source.d.ts +18 -0
- package/dist/agent/awareness/tool.d.ts +7 -0
- package/dist/agent/awareness/types.d.ts +60 -0
- package/dist/agent/awareness/workspace-source.d.ts +2 -0
- package/dist/agent/background-registry.d.ts +57 -0
- package/dist/agent/background-summarizer.d.ts +43 -0
- package/dist/agent/bg-job-log.d.ts +41 -0
- package/dist/agent/daemon/gates.d.ts +20 -0
- package/dist/agent/daemon/http-client.d.ts +6 -0
- package/dist/agent/daemon/idle-detector.d.ts +7 -0
- package/dist/agent/daemon/queue-store.d.ts +13 -0
- package/dist/agent/daemon/schedule-store.d.ts +20 -0
- package/dist/agent/daemon/scheduler.d.ts +64 -0
- package/dist/agent/daemon/triggers.d.ts +10 -0
- package/dist/agent/daemon.d.ts +29 -0
- package/dist/agent/dag-subagent.d.ts +28 -0
- package/dist/agent/dag.d.ts +26 -0
- package/dist/agent/default-hook-registry.d.ts +23 -0
- package/dist/agent/elicitation-router.d.ts +20 -0
- package/dist/agent/facets/derive.d.ts +7 -0
- package/dist/agent/facets/index.d.ts +3 -0
- package/dist/agent/facets/raw-input.d.ts +3 -0
- package/dist/agent/facets/schema.d.ts +139 -0
- package/dist/agent/facets/store.d.ts +9 -0
- package/dist/agent/gh.d.ts +41 -0
- package/dist/agent/hook-registry.d.ts +9 -0
- package/dist/agent/hooks/command-executor.d.ts +12 -0
- package/dist/agent/hooks/config-bridge.d.ts +7 -0
- package/dist/agent/hooks/config-loader.d.ts +44 -0
- package/dist/agent/hooks.d.ts +88 -0
- package/dist/agent/index.d.ts +31 -0
- package/dist/agent/marketplaces/install.d.ts +23 -0
- package/dist/agent/marketplaces/manifest.d.ts +21 -0
- package/dist/agent/marketplaces/remove.d.ts +11 -0
- package/dist/agent/marketplaces/resolve.d.ts +27 -0
- package/dist/agent/marketplaces/update.d.ts +38 -0
- package/dist/agent/mcp/client.d.ts +28 -0
- package/dist/agent/mcp/config-loader.d.ts +22 -0
- package/dist/agent/mcp/env.d.ts +6 -0
- package/dist/agent/mcp/index.d.ts +8 -0
- package/dist/agent/mcp/manager.d.ts +23 -0
- package/dist/agent/mcp/naming.d.ts +20 -0
- package/dist/agent/mcp/oauth.d.ts +33 -0
- package/dist/agent/mcp/transport.d.ts +16 -0
- package/dist/agent/mcp/types.d.ts +22 -0
- package/dist/agent/memory/index.d.ts +5 -0
- package/dist/agent/memory/memory-evidence.d.ts +9 -0
- package/dist/agent/memory/memory-hooks.d.ts +3 -0
- package/dist/agent/memory/memory-loader.d.ts +3 -0
- package/dist/agent/memory/memory-store.d.ts +36 -0
- package/dist/agent/memory/memory-tool-renderers.d.ts +3 -0
- package/dist/agent/memory/memory-tools.d.ts +8 -0
- package/dist/agent/memory/types.d.ts +70 -0
- package/dist/agent/model-capabilities.d.ts +1 -0
- package/dist/agent/model-limits.d.ts +5 -0
- package/dist/agent/output-extractor.d.ts +1 -0
- package/dist/agent/permission-policy.d.ts +2 -0
- package/dist/agent/permissions-store.d.ts +28 -0
- package/dist/agent/permissions.d.ts +28 -0
- package/dist/agent/plan-mode-exit-prompt.d.ts +1 -0
- package/dist/agent/plan-mode-gate.d.ts +3 -0
- package/dist/agent/plugins/git-test-helpers.d.ts +2 -0
- package/dist/agent/plugins/git.d.ts +21 -0
- package/dist/agent/plugins/index-store.d.ts +32 -0
- package/dist/agent/plugins/install.d.ts +23 -0
- package/dist/agent/plugins/inventory.d.ts +16 -0
- package/dist/agent/plugins/load-entrypoints.d.ts +7 -0
- package/dist/agent/plugins/plugin-manifest.d.ts +5 -0
- package/dist/agent/plugins/remove.d.ts +10 -0
- package/dist/agent/plugins/source.d.ts +23 -0
- package/dist/agent/plugins/tool-injector.d.ts +18 -0
- package/dist/agent/plugins/update.d.ts +33 -0
- package/dist/agent/plugins/versions.d.ts +1 -0
- package/dist/agent/plugins-scanner.d.ts +9 -0
- package/dist/agent/provider.d.ts +212 -0
- package/dist/agent/providers/anthropic-direct/afk-mode-addendum.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/auth.d.ts +16 -0
- package/dist/agent/providers/anthropic-direct/cache-policy.d.ts +7 -0
- package/dist/agent/providers/anthropic-direct/compact.d.ts +10 -0
- package/dist/agent/providers/anthropic-direct/index.d.ts +75 -0
- package/dist/agent/providers/anthropic-direct/loop.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/oneshot.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/plan-mode-addendum.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/query/abort-coordinator.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/query/auto-compact.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/query/compact-handler.d.ts +12 -0
- package/dist/agent/providers/anthropic-direct/query/repair-orphan-tool-uses.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/query/retry-layer.d.ts +30 -0
- package/dist/agent/providers/anthropic-direct/query/session-state.d.ts +23 -0
- package/dist/agent/providers/anthropic-direct/query.d.ts +73 -0
- package/dist/agent/providers/anthropic-direct/resolve-params.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/tool-dispatcher.d.ts +7 -0
- package/dist/agent/providers/anthropic-direct/translate.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/types.d.ts +122 -0
- package/dist/agent/providers/anthropic-direct/usage-limit.d.ts +21 -0
- package/dist/agent/providers/index.d.ts +16 -0
- package/dist/agent/providers/openai-compatible/auth.d.ts +32 -0
- package/dist/agent/providers/openai-compatible/index.d.ts +53 -0
- package/dist/agent/providers/openai-compatible/loop.d.ts +47 -0
- package/dist/agent/providers/openai-compatible/messages.d.ts +33 -0
- package/dist/agent/providers/openai-compatible/oneshot.d.ts +17 -0
- package/dist/agent/providers/openai-compatible/query.d.ts +79 -0
- package/dist/agent/providers/openai-compatible/responses-config.d.ts +14 -0
- package/dist/agent/providers/openai-compatible/responses-messages.d.ts +54 -0
- package/dist/agent/providers/openai-compatible/responses-translate.d.ts +30 -0
- package/dist/agent/providers/openai-compatible/translate.d.ts +53 -0
- package/dist/agent/providers/router/provider-router.d.ts +55 -0
- package/dist/agent/query.d.ts +11 -0
- package/dist/agent/risk-classifier.d.ts +6 -0
- package/dist/agent/routing-directive.d.ts +5 -0
- package/dist/agent/routing-telemetry.d.ts +36 -0
- package/dist/agent/session/agent-session.d.ts +95 -0
- package/dist/agent/session/closure-guidance.d.ts +3 -0
- package/dist/agent/session/closure-reason.d.ts +11 -0
- package/dist/agent/session/hooks-dispatch.d.ts +9 -0
- package/dist/agent/session/input-iterable.d.ts +10 -0
- package/dist/agent/session/model-resolution.d.ts +5 -0
- package/dist/agent/session/model-slots.d.ts +24 -0
- package/dist/agent/session/phase-reducer.d.ts +3 -0
- package/dist/agent/session/prompt-dump.d.ts +33 -0
- package/dist/agent/session/session-identity.d.ts +6 -0
- package/dist/agent/session/session-setup.d.ts +6 -0
- package/dist/agent/session/session-state.d.ts +20 -0
- package/dist/agent/session/slot-credentials.d.ts +8 -0
- package/dist/agent/session/stream-consumer.d.ts +22 -0
- package/dist/agent/session-ledger.d.ts +81 -0
- package/dist/agent/session-ref.d.ts +4 -0
- package/dist/agent/session.d.ts +1 -0
- package/dist/agent/shadow-verify-nudge.d.ts +2 -0
- package/dist/agent/shell-jobs/index.d.ts +2 -0
- package/dist/agent/shell-jobs/registry.d.ts +36 -0
- package/dist/agent/shell-jobs/streamer.d.ts +33 -0
- package/dist/agent/signal-block.d.ts +45 -0
- package/dist/agent/subagent/handle.d.ts +51 -0
- package/dist/agent/subagent/result.d.ts +51 -0
- package/dist/agent/subagent/wave.d.ts +11 -0
- package/dist/agent/subagent-hooks.d.ts +12 -0
- package/dist/agent/subagent.d.ts +66 -0
- package/dist/agent/timeout.d.ts +7 -0
- package/dist/agent/tool-category.d.ts +9 -0
- package/dist/agent/tools/child-credential.d.ts +6 -0
- package/dist/agent/tools/compose-executor.d.ts +29 -0
- package/dist/agent/tools/custom-tool.d.ts +7 -0
- package/dist/agent/tools/dispatcher.d.ts +75 -0
- package/dist/agent/tools/handlers/_cwd-utils.d.ts +9 -0
- package/dist/agent/tools/handlers/ask-question.d.ts +2 -0
- package/dist/agent/tools/handlers/bash.d.ts +3 -0
- package/dist/agent/tools/handlers/browser-act.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-close.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-observe.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-open.d.ts +6 -0
- package/dist/agent/tools/handlers/browser-screenshot.d.ts +4 -0
- package/dist/agent/tools/handlers/config-ops.d.ts +3 -0
- package/dist/agent/tools/handlers/edit-file.d.ts +2 -0
- package/dist/agent/tools/handlers/exit-plan-mode.d.ts +5 -0
- package/dist/agent/tools/handlers/glob.d.ts +3 -0
- package/dist/agent/tools/handlers/grep.d.ts +3 -0
- package/dist/agent/tools/handlers/index.d.ts +21 -0
- package/dist/agent/tools/handlers/list-directory.d.ts +2 -0
- package/dist/agent/tools/handlers/playwright-hints.d.ts +5 -0
- package/dist/agent/tools/handlers/read-file.d.ts +2 -0
- package/dist/agent/tools/handlers/schedules.d.ts +7 -0
- package/dist/agent/tools/handlers/send-telegram.d.ts +6 -0
- package/dist/agent/tools/handlers/terminal-font-size.d.ts +15 -0
- package/dist/agent/tools/handlers/test-runner-detector.d.ts +8 -0
- package/dist/agent/tools/handlers/web-scrape.d.ts +11 -0
- package/dist/agent/tools/handlers/write-denylist.d.ts +4 -0
- package/dist/agent/tools/handlers/write-file.d.ts +2 -0
- package/dist/agent/tools/hooks/bash-restriction-hook.d.ts +8 -0
- package/dist/agent/tools/hooks/path-approval-hook.d.ts +14 -0
- package/dist/agent/tools/index.d.ts +7 -0
- package/dist/agent/tools/nesting.d.ts +29 -0
- package/dist/agent/tools/permissions.d.ts +10 -0
- package/dist/agent/tools/readonly-bash.d.ts +4 -0
- package/dist/agent/tools/render-registry.d.ts +3 -0
- package/dist/agent/tools/renderers/bash-renderer.d.ts +1 -0
- package/dist/agent/tools/schemas.d.ts +29 -0
- package/dist/agent/tools/skill-bridge.d.ts +21 -0
- package/dist/agent/tools/skill-depth-message.d.ts +2 -0
- package/dist/agent/tools/skill-executor.d.ts +45 -0
- package/dist/agent/tools/subagent-executor.d.ts +57 -0
- package/dist/agent/tools/system-prompt.d.ts +6 -0
- package/dist/agent/tools/types.d.ts +17 -0
- package/dist/agent/trace/emit.d.ts +12 -0
- package/dist/agent/trace/events.d.ts +1052 -0
- package/dist/agent/trace/factory.d.ts +10 -0
- package/dist/agent/trace/index.d.ts +4 -0
- package/dist/agent/trace/receipt.d.ts +92 -0
- package/dist/agent/trace/types.d.ts +307 -0
- package/dist/agent/trace/writer.d.ts +42 -0
- package/dist/agent/transcript-search/transcript-index.d.ts +21 -0
- package/dist/agent/trusted-skill-result.d.ts +9 -0
- package/dist/agent/types/config-types.d.ts +86 -0
- package/dist/agent/types/message-types.d.ts +77 -0
- package/dist/agent/types/model-types.d.ts +2 -0
- package/dist/agent/types/permission-types.d.ts +8 -0
- package/dist/agent/types/sdk-types.d.ts +282 -0
- package/dist/agent/types/session-types.d.ts +134 -0
- package/dist/agent/types.d.ts +6 -0
- package/dist/agent/usage.d.ts +2 -0
- package/dist/agent/worktree-sweep.d.ts +52 -0
- package/dist/agent/worktree.d.ts +56 -0
- package/dist/browser/config.d.ts +13 -0
- package/dist/browser/playwright/index.d.ts +21 -0
- package/dist/browser/playwright/launcher.d.ts +32 -0
- package/dist/browser/playwright/observe.d.ts +12 -0
- package/dist/browser/playwright/resolve-target.d.ts +10 -0
- package/dist/browser/provider.d.ts +15 -0
- package/dist/browser/registry.d.ts +7 -0
- package/dist/browser/sanitize.d.ts +22 -0
- package/dist/browser/types.d.ts +139 -0
- package/dist/browser/witness.d.ts +11 -0
- package/dist/changelog.d.ts +13 -0
- package/dist/cli/_lib/capture-mode.d.ts +8 -0
- package/dist/cli/_lib/commit-block.d.ts +4 -0
- package/dist/cli/_lib/commit-coordinator.d.ts +13 -0
- package/dist/cli/_lib/dedup-line-writer.d.ts +5 -0
- package/dist/cli/_lib/overlay-composer.d.ts +18 -0
- package/dist/cli/_lib/sanitize.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-contexts.d.ts +43 -0
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +33 -0
- package/dist/cli/_lib/stream-renderer-orchestrator-emit.d.ts +10 -0
- package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +30 -0
- package/dist/cli/_lib/stream-renderer-source.d.ts +27 -0
- package/dist/cli/_lib/stream-renderer-subagent-helpers.d.ts +6 -0
- package/dist/cli/_lib/stream-renderer-subagent.d.ts +22 -0
- package/dist/cli/_lib/stream-renderer.d.ts +68 -0
- package/dist/cli/_lib/testing/virtual-screen.d.ts +54 -0
- package/dist/cli/afk-mode-toggle.d.ts +2 -0
- package/dist/cli/auth-wizard.d.ts +4 -0
- package/dist/cli/background/types.d.ts +8 -0
- package/dist/cli/background-status-bar.d.ts +37 -0
- package/dist/cli/clipboard.d.ts +7 -0
- package/dist/cli/color-config.d.ts +1 -0
- package/dist/cli/commands/bg.d.ts +2 -0
- package/dist/cli/commands/browser.d.ts +11 -0
- package/dist/cli/commands/chat.d.ts +2 -0
- package/dist/cli/commands/completion.d.ts +2 -0
- package/dist/cli/commands/config-command.d.ts +2 -0
- package/dist/cli/commands/daemon.d.ts +14 -0
- package/dist/cli/commands/doctor-checks.d.ts +19 -0
- package/dist/cli/commands/doctor.d.ts +2 -0
- package/dist/cli/commands/farm.d.ts +40 -0
- package/dist/cli/commands/improve.d.ts +2 -0
- package/dist/cli/commands/interactive/afk-push.d.ts +14 -0
- package/dist/cli/commands/interactive/at-file-inject.d.ts +17 -0
- package/dist/cli/commands/interactive/boot-prune.d.ts +8 -0
- package/dist/cli/commands/interactive/bootstrap.d.ts +30 -0
- package/dist/cli/commands/interactive/context-pane.d.ts +11 -0
- package/dist/cli/commands/interactive/footer-subsystems.d.ts +15 -0
- package/dist/cli/commands/interactive/loop-iteration.d.ts +7 -0
- package/dist/cli/commands/interactive/loop-stage.d.ts +34 -0
- package/dist/cli/commands/interactive/progress-banner.d.ts +5 -0
- package/dist/cli/commands/interactive/provider-factory.d.ts +2 -0
- package/dist/cli/commands/interactive/repl-loop-shared.d.ts +10 -0
- package/dist/cli/commands/interactive/repl-loop.d.ts +6 -0
- package/dist/cli/commands/interactive/repl-renderer.d.ts +16 -0
- package/dist/cli/commands/interactive/resume-swap.d.ts +23 -0
- package/dist/cli/commands/interactive/shared.d.ts +116 -0
- package/dist/cli/commands/interactive/shell-passthrough.d.ts +33 -0
- package/dist/cli/commands/interactive/surface-setup.d.ts +12 -0
- package/dist/cli/commands/interactive/terminal-state.d.ts +18 -0
- package/dist/cli/commands/interactive/thinking-lane.d.ts +18 -0
- package/dist/cli/commands/interactive/thinking-paragraph.d.ts +5 -0
- package/dist/cli/commands/interactive/tool-lane-format-args.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-format-diff.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-format-sanitize.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane-format.d.ts +14 -0
- package/dist/cli/commands/interactive/tool-lane-render-agent.d.ts +7 -0
- package/dist/cli/commands/interactive/tool-lane-render-children.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-render-grouping-overflow.d.ts +15 -0
- package/dist/cli/commands/interactive/tool-lane-render-grouping.d.ts +23 -0
- package/dist/cli/commands/interactive/tool-lane-render.d.ts +45 -0
- package/dist/cli/commands/interactive/tool-lane.d.ts +31 -0
- package/dist/cli/commands/interactive/transcript.d.ts +9 -0
- package/dist/cli/commands/interactive/turn-handler.d.ts +16 -0
- package/dist/cli/commands/interactive/verdict-card.d.ts +3 -0
- package/dist/cli/commands/interactive/verdict-ledger.d.ts +19 -0
- package/dist/cli/commands/interactive/worktree-autoname.d.ts +42 -0
- package/dist/cli/commands/interactive/worktree.d.ts +33 -0
- package/dist/cli/commands/interactive.d.ts +11 -0
- package/dist/cli/commands/login-command.d.ts +5 -0
- package/dist/cli/commands/marketplace.d.ts +8 -0
- package/dist/cli/commands/migrate.d.ts +14 -0
- package/dist/cli/commands/plugin.d.ts +7 -0
- package/dist/cli/commands/provider.d.ts +9 -0
- package/dist/cli/commands/queue.d.ts +2 -0
- package/dist/cli/commands/schedule.d.ts +2 -0
- package/dist/cli/commands/service.d.ts +2 -0
- package/dist/cli/commands/shell-init.d.ts +6 -0
- package/dist/cli/commands/skill-router.d.ts +9 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/telegram.d.ts +2 -0
- package/dist/cli/commands/trace.d.ts +25 -0
- package/dist/cli/commands/transcript.d.ts +4 -0
- package/dist/cli/commands/update.d.ts +2 -0
- package/dist/cli/commands/worktree.d.ts +2 -0
- package/dist/cli/commit-mode.d.ts +25 -0
- package/dist/cli/config.d.ts +69 -0
- package/dist/cli/constants.d.ts +4 -0
- package/dist/cli/context-bar.d.ts +8 -0
- package/dist/cli/context-sampler.d.ts +43 -0
- package/dist/cli/context-sparkline.d.ts +1 -0
- package/dist/cli/cup-frame-renderer.d.ts +18 -0
- package/dist/cli/daemon-options.d.ts +11 -0
- package/dist/cli/debug-banner.d.ts +2 -0
- package/dist/cli/display.d.ts +19 -0
- package/dist/cli/elicitation-repl.d.ts +26 -0
- package/dist/cli/errors/classifier.d.ts +9 -0
- package/dist/cli/errors/index.d.ts +4 -0
- package/dist/cli/errors/presenter.d.ts +5 -0
- package/dist/cli/format-cwd.d.ts +5 -0
- package/dist/cli/format-utils.d.ts +4 -0
- package/dist/cli/formatter.d.ts +27 -0
- package/dist/cli/git-status-sampler.d.ts +43 -0
- package/dist/cli/hyperlink.d.ts +6 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/input/attachments.d.ts +10 -0
- package/dist/cli/input/autocomplete-state.d.ts +11 -0
- package/dist/cli/input/caret-blink.d.ts +21 -0
- package/dist/cli/input/clipboard-image.d.ts +2 -0
- package/dist/cli/input/dropdown.d.ts +4 -0
- package/dist/cli/input/echo.d.ts +12 -0
- package/dist/cli/input/emit-keypress.d.ts +1 -0
- package/dist/cli/input/history.d.ts +15 -0
- package/dist/cli/input/input-surface.d.ts +63 -0
- package/dist/cli/input/non-tty.d.ts +2 -0
- package/dist/cli/input/raw-mode.d.ts +4 -0
- package/dist/cli/input/reader.d.ts +2 -0
- package/dist/cli/input/selectors.d.ts +3 -0
- package/dist/cli/input/spinner.d.ts +19 -0
- package/dist/cli/input/stdin-claim.d.ts +7 -0
- package/dist/cli/input/suggest.d.ts +36 -0
- package/dist/cli/input/trigger.d.ts +5 -0
- package/dist/cli/input/types.d.ts +53 -0
- package/dist/cli/input-box.d.ts +5 -0
- package/dist/cli/input-core.d.ts +37 -0
- package/dist/cli/input-highlight.d.ts +4 -0
- package/dist/cli/keychain.d.ts +1 -0
- package/dist/cli/loading-tips.d.ts +14 -0
- package/dist/cli/markdown-stream-format.d.ts +30 -0
- package/dist/cli/markdown-stream.d.ts +39 -0
- package/dist/cli/mascot.d.ts +6 -0
- package/dist/cli/model-limits.d.ts +1 -0
- package/dist/cli/multi-line-reader.d.ts +16 -0
- package/dist/cli/palette.d.ts +29 -0
- package/dist/cli/permission-mode-cycle.d.ts +3 -0
- package/dist/cli/plan-mode-toggle.d.ts +2 -0
- package/dist/cli/render/box.d.ts +8 -0
- package/dist/cli/render/card.d.ts +8 -0
- package/dist/cli/render/divider.d.ts +1 -0
- package/dist/cli/render/error-box.d.ts +1 -0
- package/dist/cli/render/help-table.d.ts +9 -0
- package/dist/cli/render/index.d.ts +9 -0
- package/dist/cli/render/picker.d.ts +15 -0
- package/dist/cli/render/progress-bar.d.ts +1 -0
- package/dist/cli/render/status-panel.d.ts +7 -0
- package/dist/cli/render/text-input.d.ts +9 -0
- package/dist/cli/render/usage-limit-box.d.ts +7 -0
- package/dist/cli/render/utils.d.ts +2 -0
- package/dist/cli/render/welcome-banner.d.ts +10 -0
- package/dist/cli/render.d.ts +1 -0
- package/dist/cli/resume-command.d.ts +3 -0
- package/dist/cli/resume-session.d.ts +13 -0
- package/dist/cli/session-name.d.ts +1 -0
- package/dist/cli/session-store.d.ts +51 -0
- package/dist/cli/shared-helpers.d.ts +33 -0
- package/dist/cli/slash/_lib/command-tags.d.ts +9 -0
- package/dist/cli/slash/_lib/create-skill-renderer.d.ts +9 -0
- package/dist/cli/slash/_lib/flag-harvest.d.ts +9 -0
- package/dist/cli/slash/_lib/image-blocks.d.ts +3 -0
- package/dist/cli/slash/_lib/review-post.d.ts +30 -0
- package/dist/cli/slash/_lib/run-skill-dispatch-turn.d.ts +11 -0
- package/dist/cli/slash/_lib/skill-message-bridge.d.ts +4 -0
- package/dist/cli/slash/_lib/skill-sink-channel.d.ts +1 -0
- package/dist/cli/slash/_lib/user-payload.d.ts +3 -0
- package/dist/cli/slash/builtin-skills.d.ts +4 -0
- package/dist/cli/slash/commands/afk.d.ts +2 -0
- package/dist/cli/slash/commands/allow-dir.d.ts +14 -0
- package/dist/cli/slash/commands/bgsub.d.ts +11 -0
- package/dist/cli/slash/commands/changelog.d.ts +2 -0
- package/dist/cli/slash/commands/config-doctor.d.ts +2 -0
- package/dist/cli/slash/commands/core.d.ts +2 -0
- package/dist/cli/slash/commands/font-size.d.ts +4 -0
- package/dist/cli/slash/commands/fork.d.ts +4 -0
- package/dist/cli/slash/commands/info.d.ts +2 -0
- package/dist/cli/slash/commands/init.d.ts +2 -0
- package/dist/cli/slash/commands/keys.d.ts +2 -0
- package/dist/cli/slash/commands/name.d.ts +2 -0
- package/dist/cli/slash/commands/plan.d.ts +2 -0
- package/dist/cli/slash/commands/reauth.d.ts +2 -0
- package/dist/cli/slash/commands/resume.d.ts +2 -0
- package/dist/cli/slash/commands/save.d.ts +2 -0
- package/dist/cli/slash/commands/sh.d.ts +4 -0
- package/dist/cli/slash/commands/stats.d.ts +2 -0
- package/dist/cli/slash/commands/todo.d.ts +2 -0
- package/dist/cli/slash/commands/transcript.d.ts +2 -0
- package/dist/cli/slash/commands/worktree.d.ts +2 -0
- package/dist/cli/slash/index.d.ts +3 -0
- package/dist/cli/slash/marketplace-browse.d.ts +1 -0
- package/dist/cli/slash/plugin-agents.d.ts +5 -0
- package/dist/cli/slash/plugin-skills.d.ts +32 -0
- package/dist/cli/slash/preflight/artifact-dir.d.ts +3 -0
- package/dist/cli/slash/preflight/index.d.ts +6 -0
- package/dist/cli/slash/preflight/registry.d.ts +8 -0
- package/dist/cli/slash/preflight/review-pr.d.ts +34 -0
- package/dist/cli/slash/preflight/stitch-forward.d.ts +1 -0
- package/dist/cli/slash/preflight/types.d.ts +18 -0
- package/dist/cli/slash/registry-exports.d.ts +2 -0
- package/dist/cli/slash/registry.d.ts +23 -0
- package/dist/cli/slash/session-stats.d.ts +6 -0
- package/dist/cli/slash/types.d.ts +103 -0
- package/dist/cli/slash/writer.d.ts +6 -0
- package/dist/cli/status-line.d.ts +51 -0
- package/dist/cli/syntax-highlight.d.ts +1 -0
- package/dist/cli/syntax-theme.d.ts +2 -0
- package/dist/cli/terminal-compositor.autocomplete.d.ts +16 -0
- package/dist/cli/terminal-compositor.committed-band-commit.d.ts +24 -0
- package/dist/cli/terminal-compositor.committed-band-repin.d.ts +3 -0
- package/dist/cli/terminal-compositor.committed-band.d.ts +2 -0
- package/dist/cli/terminal-compositor.d.ts +118 -0
- package/dist/cli/terminal-compositor.frame-preserve.d.ts +3 -0
- package/dist/cli/terminal-compositor.frame.d.ts +33 -0
- package/dist/cli/terminal-compositor.input-dispatch.d.ts +42 -0
- package/dist/cli/terminal-compositor.input-mode.d.ts +26 -0
- package/dist/cli/terminal-compositor.lifecycle.d.ts +40 -0
- package/dist/cli/terminal-compositor.paste.d.ts +16 -0
- package/dist/cli/terminal-compositor.render.d.ts +17 -0
- package/dist/cli/terminal-compositor.reset.d.ts +36 -0
- package/dist/cli/terminal-compositor.types.d.ts +80 -0
- package/dist/cli/terminal-size.d.ts +9 -0
- package/dist/cli/terminal-spawn/detect.d.ts +3 -0
- package/dist/cli/terminal-spawn/index.d.ts +29 -0
- package/dist/cli/terminal-spawn/spawners.d.ts +18 -0
- package/dist/cli/todo-panel.d.ts +18 -0
- package/dist/cli/tool-category.d.ts +9 -0
- package/dist/cli/trusted-skill-badge.d.ts +19 -0
- package/dist/cli/trusted-skill-ledger.d.ts +16 -0
- package/dist/cli/trusted-skills-registered.d.ts +1 -0
- package/dist/cli/update-checker.d.ts +10 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/cli/wrap.d.ts +4 -0
- package/dist/cli.mjs +410 -408
- package/dist/config/env.d.ts +136 -0
- package/dist/config/import-sources.d.ts +46 -0
- package/dist/config/mutate.d.ts +78 -0
- package/dist/config/settable-keys.d.ts +44 -0
- package/dist/improve/eval-gen/replay-fixture.d.ts +19 -0
- package/dist/improve/eval-gen/writer.d.ts +41 -0
- package/dist/improve/eval-run/contracts.d.ts +25 -0
- package/dist/improve/eval-run/replay.d.ts +25 -0
- package/dist/improve/eval-run/runner.d.ts +37 -0
- package/dist/improve/paths.d.ts +19 -0
- package/dist/improve/propose/template-engine.d.ts +7 -0
- package/dist/improve/propose/writer.d.ts +26 -0
- package/dist/improve/scan/card-writer.d.ts +38 -0
- package/dist/improve/scan/detectors/closure-anomaly.d.ts +8 -0
- package/dist/improve/scan/detectors/index.d.ts +20 -0
- package/dist/improve/scan/detectors/repeated-tool-use.d.ts +29 -0
- package/dist/improve/scan/detectors/subagent-block.d.ts +13 -0
- package/dist/improve/scan/detectors/tool-failure-density.d.ts +10 -0
- package/dist/improve/scan/reader.d.ts +38 -0
- package/dist/improve/schemas.d.ts +494 -0
- package/dist/improve/triage.d.ts +22 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +148 -146
- package/dist/paths.d.ts +57 -0
- package/dist/service/launchd/install.d.ts +35 -0
- package/dist/service/launchd/paths.d.ts +8 -0
- package/dist/service/launchd/plist.d.ts +15 -0
- package/dist/service/launchd/status.d.ts +15 -0
- package/dist/service/launchd.d.ts +4 -0
- package/dist/skills/_agents/contract.d.ts +5 -0
- package/dist/skills/_agents/git-investigator.d.ts +8 -0
- package/dist/skills/_agents/index.d.ts +4 -0
- package/dist/skills/_agents/research-agent.d.ts +7 -0
- package/dist/skills/_agents/to-definition.d.ts +7 -0
- package/dist/skills/_lib/confidence-gate.d.ts +10 -0
- package/dist/skills/_lib/emit-card.d.ts +3 -0
- package/dist/skills/_lib/prompt-loader.d.ts +1 -0
- package/dist/skills/all.d.ts +7 -0
- package/dist/skills/audit-fit/discover.d.ts +16 -0
- package/dist/skills/audit-fit/index.d.ts +100 -0
- package/dist/skills/diagnose/_phases/orchestrator.d.ts +4 -0
- package/dist/skills/diagnose/_phases/triage.d.ts +4 -0
- package/dist/skills/diagnose/_phases/types.d.ts +142 -0
- package/dist/skills/diagnose/_phases/verifier.d.ts +16 -0
- package/dist/skills/diagnose/index.d.ts +6 -0
- package/dist/skills/example-template/index.d.ts +1 -0
- package/dist/skills/get-started/index.d.ts +2 -0
- package/dist/skills/index.d.ts +28 -0
- package/dist/skills/mint/_phases/build.d.ts +7 -0
- package/dist/skills/mint/_phases/heal.d.ts +8 -0
- package/dist/skills/mint/_phases/parallelize-dispatch.d.ts +12 -0
- package/dist/skills/mint/_phases/plan.d.ts +2 -0
- package/dist/skills/mint/_phases/research.d.ts +2 -0
- package/dist/skills/mint/_phases/ship.d.ts +3 -0
- package/dist/skills/mint/_phases/spec.d.ts +2 -0
- package/dist/skills/mint/_phases/verify.d.ts +9 -0
- package/dist/skills/mint/index.d.ts +47 -0
- package/dist/skills/mint/state-store.d.ts +4 -0
- package/dist/skills/score/digest-keyboard.d.ts +2 -0
- package/dist/skills/score/digest.d.ts +10 -0
- package/dist/skills/score/farm-run-record.d.ts +20 -0
- package/dist/skills/score/index.d.ts +33 -0
- package/dist/skills/score/memory-write.d.ts +31 -0
- package/dist/skills/score/winner.d.ts +10 -0
- package/dist/skills/service-setup/index.d.ts +2 -0
- package/dist/skills/telegram-setup/index.d.ts +2 -0
- package/dist/skills/user-skills.d.ts +9 -0
- package/dist/telegram/allowlist.d.ts +4 -0
- package/dist/telegram/bot.d.ts +38 -0
- package/dist/telegram/construct-session.d.ts +11 -0
- package/dist/telegram/elicitation-callback-data.d.ts +11 -0
- package/dist/telegram/elicitation-handler.d.ts +6 -0
- package/dist/telegram/elicitation-telegram.d.ts +6 -0
- package/dist/telegram/error-utils.d.ts +5 -0
- package/dist/telegram/example.d.ts +1 -0
- package/dist/telegram/farm-callback-data.d.ts +9 -0
- package/dist/telegram/formatter.d.ts +24 -0
- package/dist/telegram/handlers/commands.d.ts +11 -0
- package/dist/telegram/handlers/farm-callbacks.d.ts +26 -0
- package/dist/telegram/handlers/help.d.ts +3 -0
- package/dist/telegram/handlers/message.d.ts +26 -0
- package/dist/telegram/handlers/registration.d.ts +5 -0
- package/dist/telegram/handlers/start.d.ts +2 -0
- package/dist/telegram/index.d.ts +8 -0
- package/dist/telegram/manager.d.ts +35 -0
- package/dist/telegram/mcp-session.d.ts +8 -0
- package/dist/telegram/notify-routing.d.ts +12 -0
- package/dist/telegram/push.d.ts +23 -0
- package/dist/telegram/session-manager.d.ts +42 -0
- package/dist/telegram/setup-wizard.d.ts +59 -0
- package/dist/telegram/stream-timeout-error.d.ts +3 -0
- package/dist/telegram/streaming.d.ts +10 -0
- package/dist/telegram/version-check.d.ts +19 -0
- package/dist/telegram/watch.d.ts +22 -0
- package/dist/telegram.d.ts +2 -0
- package/dist/telegram.mjs +178 -176
- package/dist/telemetry/schemas.d.ts +10 -0
- package/dist/utils/CircularBuffer.d.ts +13 -0
- package/dist/utils/cd-on-exit.d.ts +5 -0
- package/dist/utils/cleanupRegistry.d.ts +2 -0
- package/dist/utils/debug.d.ts +2 -0
- package/dist/utils/diff.d.ts +17 -0
- package/dist/utils/envFile.d.ts +5 -0
- package/dist/utils/envUtils.d.ts +2 -0
- package/dist/utils/error-classifiers.d.ts +2 -0
- package/dist/utils/errors.d.ts +38 -0
- package/dist/utils/json.d.ts +1 -0
- package/dist/utils/memoize.d.ts +9 -0
- package/dist/utils/prompt-secret.d.ts +1 -0
- package/dist/utils/terminal-sanitize.d.ts +2 -0
- package/dist/web/extract.d.ts +3 -0
- package/dist/web/index.d.ts +6 -0
- package/dist/web/scrape.d.ts +14 -0
- package/dist/web/search.d.ts +14 -0
- package/dist/web/types.d.ts +29 -0
- package/package.json +10 -1
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
export interface BrowserObservation {
|
|
2
|
+
observationId: string;
|
|
3
|
+
url: string;
|
|
4
|
+
title: string;
|
|
5
|
+
textSummary: string;
|
|
6
|
+
interactive: InteractiveElement[];
|
|
7
|
+
status: BrowserPageStatus;
|
|
8
|
+
warnings: string[];
|
|
9
|
+
screenshotPath: string | null;
|
|
10
|
+
capturedAt: string;
|
|
11
|
+
}
|
|
12
|
+
export interface BrowserPageStatus {
|
|
13
|
+
httpStatus: number | null;
|
|
14
|
+
loadingState: 'idle' | 'loading' | 'navigating';
|
|
15
|
+
hasDialog: boolean;
|
|
16
|
+
consoleErrors: number;
|
|
17
|
+
}
|
|
18
|
+
export interface InteractiveElement {
|
|
19
|
+
id: string;
|
|
20
|
+
role: string;
|
|
21
|
+
label: string;
|
|
22
|
+
kind: string | null;
|
|
23
|
+
value: string | null;
|
|
24
|
+
state: InteractiveElementState;
|
|
25
|
+
bbox: BoundingBox;
|
|
26
|
+
selector?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface InteractiveElementState {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
checked?: boolean;
|
|
31
|
+
selected?: boolean;
|
|
32
|
+
expanded?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface BoundingBox {
|
|
35
|
+
x: number;
|
|
36
|
+
y: number;
|
|
37
|
+
w: number;
|
|
38
|
+
h: number;
|
|
39
|
+
}
|
|
40
|
+
export type Target = {
|
|
41
|
+
kind: 'semantic';
|
|
42
|
+
text: string;
|
|
43
|
+
role?: string;
|
|
44
|
+
} | {
|
|
45
|
+
kind: 'element_id';
|
|
46
|
+
elementId: string;
|
|
47
|
+
} | {
|
|
48
|
+
kind: 'selector';
|
|
49
|
+
selector: string;
|
|
50
|
+
};
|
|
51
|
+
export type WaitForOption = 'load' | 'domcontentloaded' | 'networkidle';
|
|
52
|
+
export type ActAction = 'click' | 'fill' | 'press' | 'select' | 'hover' | 'scroll_to' | 'wait_for';
|
|
53
|
+
export interface OpenInput {
|
|
54
|
+
sessionId: string;
|
|
55
|
+
url: string;
|
|
56
|
+
waitFor?: WaitForOption;
|
|
57
|
+
screenshot?: boolean;
|
|
58
|
+
timeoutMs?: number;
|
|
59
|
+
}
|
|
60
|
+
export interface ObserveInput {
|
|
61
|
+
sessionId: string;
|
|
62
|
+
screenshot?: boolean;
|
|
63
|
+
includeHidden?: boolean;
|
|
64
|
+
maxElements?: number;
|
|
65
|
+
}
|
|
66
|
+
export interface ActInput {
|
|
67
|
+
sessionId: string;
|
|
68
|
+
action: ActAction;
|
|
69
|
+
target: Target;
|
|
70
|
+
value?: string;
|
|
71
|
+
timeoutMs?: number;
|
|
72
|
+
screenshot?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface ScreenshotInput {
|
|
75
|
+
sessionId: string;
|
|
76
|
+
target?: Target;
|
|
77
|
+
fullPage?: boolean;
|
|
78
|
+
}
|
|
79
|
+
export interface ExtractInput {
|
|
80
|
+
sessionId: string;
|
|
81
|
+
schema: Record<string, unknown>;
|
|
82
|
+
instruction?: string;
|
|
83
|
+
scopeSelector?: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CloseInput {
|
|
86
|
+
sessionId: string;
|
|
87
|
+
}
|
|
88
|
+
export interface RenderInput {
|
|
89
|
+
url: string;
|
|
90
|
+
timeoutMs?: number;
|
|
91
|
+
waitFor?: WaitForOption;
|
|
92
|
+
signal?: AbortSignal;
|
|
93
|
+
}
|
|
94
|
+
export interface RenderResult {
|
|
95
|
+
html: string;
|
|
96
|
+
finalUrl: string;
|
|
97
|
+
httpStatus: number | null;
|
|
98
|
+
}
|
|
99
|
+
export interface ScreenshotResult {
|
|
100
|
+
path: string;
|
|
101
|
+
bytes: number;
|
|
102
|
+
width: number;
|
|
103
|
+
height: number;
|
|
104
|
+
dataBase64: string;
|
|
105
|
+
mediaType: 'image/png';
|
|
106
|
+
}
|
|
107
|
+
export interface ExtractResult {
|
|
108
|
+
data: unknown;
|
|
109
|
+
warnings?: string[];
|
|
110
|
+
}
|
|
111
|
+
export interface AmbiguousTarget {
|
|
112
|
+
outcome: 'ambiguous_target';
|
|
113
|
+
query: {
|
|
114
|
+
text: string;
|
|
115
|
+
role?: string;
|
|
116
|
+
};
|
|
117
|
+
candidates: InteractiveElement[];
|
|
118
|
+
}
|
|
119
|
+
export interface BlockedByPolicy {
|
|
120
|
+
outcome: 'blocked_by_policy';
|
|
121
|
+
url: string;
|
|
122
|
+
reason: string;
|
|
123
|
+
}
|
|
124
|
+
export interface BrowserProviderState {
|
|
125
|
+
active: boolean;
|
|
126
|
+
url: string | null;
|
|
127
|
+
title: string | null;
|
|
128
|
+
lastAction: string | null;
|
|
129
|
+
lastActionAt: string | null;
|
|
130
|
+
openTabs: number;
|
|
131
|
+
}
|
|
132
|
+
export interface BrowserConfig {
|
|
133
|
+
headless: boolean;
|
|
134
|
+
allowedDomains: readonly string[];
|
|
135
|
+
blockedDomains: readonly string[];
|
|
136
|
+
domSnapshots: boolean;
|
|
137
|
+
backend: 'playwright';
|
|
138
|
+
configPath: string | null;
|
|
139
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function browserSidecarDir(sessionId: string): string;
|
|
2
|
+
export declare function screenshotsDir(sessionId: string): string;
|
|
3
|
+
export declare function domSnapshotsDir(sessionId: string): string;
|
|
4
|
+
export declare function writeScreenshotSidecar(sessionId: string, buffer: Buffer, tool: 'browser_open' | 'browser_observe' | 'browser_act' | 'browser_screenshot' | 'browser_extract'): Promise<{
|
|
5
|
+
path: string;
|
|
6
|
+
bytes: number;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function writeDomSnapshotSidecar(sessionId: string, html: string): Promise<{
|
|
9
|
+
path: string;
|
|
10
|
+
bytes: number;
|
|
11
|
+
}>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface CommitEntry {
|
|
2
|
+
hash: string;
|
|
3
|
+
subject: string;
|
|
4
|
+
category: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function parseCommits(repoRoot: string): CommitEntry[];
|
|
7
|
+
export declare function formatEntries(commits: CommitEntry[], options?: {
|
|
8
|
+
includeHash?: boolean;
|
|
9
|
+
}): string;
|
|
10
|
+
export declare function getExistingUnreleased(changelog: string): string;
|
|
11
|
+
export declare function updateAndStampChangelog(repoRoot: string, newEntries: string, version: string, date: string): void;
|
|
12
|
+
export declare function updateChangelog(repoRoot: string, newEntries: string): void;
|
|
13
|
+
export declare function stampRelease(repoRoot: string, version: string, date: string): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function detectCaptureMode(env?: NodeJS.ProcessEnv): boolean;
|
|
2
|
+
export declare function detectBell(env?: NodeJS.ProcessEnv): boolean;
|
|
3
|
+
export declare function detectReducedMotion(env?: NodeJS.ProcessEnv): boolean;
|
|
4
|
+
export declare function detectCaretBlink(env?: NodeJS.ProcessEnv): boolean;
|
|
5
|
+
export declare function ringBellIfEnabled(stream: {
|
|
6
|
+
write(s: string): unknown;
|
|
7
|
+
isTTY?: boolean;
|
|
8
|
+
}, env?: NodeJS.ProcessEnv): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CommitAnchor = 'before-content' | 'after-content' | `after-subagent:${string}`;
|
|
2
|
+
export interface CommitBatch {
|
|
3
|
+
anchor: CommitAnchor;
|
|
4
|
+
commits: Array<() => void>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CommitCoordinator {
|
|
7
|
+
private readonly beforeContent;
|
|
8
|
+
private readonly afterSubagent;
|
|
9
|
+
private readonly afterContent;
|
|
10
|
+
schedule(batch: CommitBatch): void;
|
|
11
|
+
drainSubagent(id: string): void;
|
|
12
|
+
flushAll(streamingMarkdownFlush?: () => Promise<void>): Promise<void>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface OverlaySlot {
|
|
2
|
+
readonly key: string;
|
|
3
|
+
render(): string;
|
|
4
|
+
}
|
|
5
|
+
export interface OverlaySink {
|
|
6
|
+
setOverlay(text: string): void;
|
|
7
|
+
}
|
|
8
|
+
export declare class OverlayComposer {
|
|
9
|
+
private readonly sink;
|
|
10
|
+
private readonly order;
|
|
11
|
+
private readonly slots;
|
|
12
|
+
private dirty;
|
|
13
|
+
constructor(sink: OverlaySink, order: readonly string[]);
|
|
14
|
+
register(slot: OverlaySlot): void;
|
|
15
|
+
markDirty(key: string): void;
|
|
16
|
+
flush(): void;
|
|
17
|
+
invalidate(): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sanitizeSchemaString(s: string, maxLen?: number): string;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
|
|
2
|
+
import type { SubagentCtx } from './stream-renderer-subagent.js';
|
|
3
|
+
import type { ProgressEvent } from '../../agent/types.js';
|
|
4
|
+
import type { TerminalCompositor } from '../terminal-compositor.js';
|
|
5
|
+
import type { OverlayComposer } from './overlay-composer.js';
|
|
6
|
+
import type { ToolLane } from '../commands/interactive/tool-lane.js';
|
|
7
|
+
import type { ThinkingLane } from '../commands/interactive/thinking-lane.js';
|
|
8
|
+
import type { StreamingMarkdownRenderer } from '../markdown-stream.js';
|
|
9
|
+
import type { Writer } from '../slash/types.js';
|
|
10
|
+
import type { StageTrackerState } from '../commands/interactive/loop-stage.js';
|
|
11
|
+
import type { CommitCoordinator } from './commit-coordinator.js';
|
|
12
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
13
|
+
export declare function makeOrchestratorCtx(args: {
|
|
14
|
+
out: Writer;
|
|
15
|
+
isTTY: boolean;
|
|
16
|
+
compositor: TerminalCompositor | null;
|
|
17
|
+
overlayComposer: OverlayComposer | null;
|
|
18
|
+
toolLane: ToolLane;
|
|
19
|
+
thinkingLane: ThinkingLane;
|
|
20
|
+
thinkingMode: 'off' | 'summary' | 'live';
|
|
21
|
+
streamingMarkdown: {
|
|
22
|
+
current: StreamingMarkdownRenderer | null;
|
|
23
|
+
};
|
|
24
|
+
coordinator: CommitCoordinator;
|
|
25
|
+
stageTracker?: StageTrackerState;
|
|
26
|
+
activeSkillName?: string;
|
|
27
|
+
lastProgressByTask: Map<string, ProgressEvent>;
|
|
28
|
+
}): OrchestratorCtx;
|
|
29
|
+
export declare function makeSubagentCtx(args: {
|
|
30
|
+
isTTY: boolean;
|
|
31
|
+
compositor: TerminalCompositor | null;
|
|
32
|
+
toolLane: ToolLane;
|
|
33
|
+
out: Writer;
|
|
34
|
+
streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
|
|
35
|
+
thinkingMode: 'off' | 'summary' | 'live';
|
|
36
|
+
orchestratorCtx: OrchestratorCtx;
|
|
37
|
+
}): SubagentCtx;
|
|
38
|
+
export declare function resolveParentSyntheticId(args: {
|
|
39
|
+
parentId: string | undefined;
|
|
40
|
+
sources: Map<string, SourceState>;
|
|
41
|
+
toolLane: ToolLane;
|
|
42
|
+
sourceId: string;
|
|
43
|
+
}): string | undefined;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { TerminalCompositor } from '../terminal-compositor.js';
|
|
2
|
+
import { OverlayComposer } from './overlay-composer.js';
|
|
3
|
+
import { createStageTracker } from '../commands/interactive/loop-stage.js';
|
|
4
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
5
|
+
import type { ToolLane } from '../commands/interactive/tool-lane.js';
|
|
6
|
+
import type { ThinkingLane } from '../commands/interactive/thinking-lane.js';
|
|
7
|
+
import type { StreamingMarkdownRenderer } from '../markdown-stream.js';
|
|
8
|
+
import type { Writer } from '../slash/types.js';
|
|
9
|
+
import type { ProgressEvent } from '../../agent/types.js';
|
|
10
|
+
export interface LifecycleContext {
|
|
11
|
+
compositor: TerminalCompositor | null;
|
|
12
|
+
overlayComposer: OverlayComposer | null;
|
|
13
|
+
stageTracker: ReturnType<typeof createStageTracker>;
|
|
14
|
+
thinkingLane: ThinkingLane;
|
|
15
|
+
toolLane: ToolLane;
|
|
16
|
+
streamingMarkdownRef: {
|
|
17
|
+
current: StreamingMarkdownRenderer | null;
|
|
18
|
+
};
|
|
19
|
+
lastProgressByTask: Map<string, ProgressEvent>;
|
|
20
|
+
thinkingMode: 'off' | 'summary' | 'live';
|
|
21
|
+
out: Writer;
|
|
22
|
+
isTTY: boolean;
|
|
23
|
+
sources: Map<string, SourceState>;
|
|
24
|
+
disposed: boolean;
|
|
25
|
+
pauseTickInterval: ReturnType<typeof setInterval> | null;
|
|
26
|
+
resizeUnsub: (() => void) | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function registerOverlaySlots(overlayComposer: OverlayComposer, ctx: Readonly<Pick<LifecycleContext, 'stageTracker' | 'thinkingMode' | 'thinkingLane' | 'streamingMarkdownRef' | 'toolLane' | 'lastProgressByTask'>> & {
|
|
29
|
+
getInterrupting: () => boolean;
|
|
30
|
+
}): void;
|
|
31
|
+
export declare function formatInterruptAffordance(interrupting: boolean): string;
|
|
32
|
+
export declare function subscribeToResize(overlayComposer: OverlayComposer, disposed: boolean): () => void;
|
|
33
|
+
export declare function checkPauseAnnotations(ctx: LifecycleContext): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
2
|
+
import type { Writer } from '../slash/types.js';
|
|
3
|
+
import type { CardSpec } from '../render.js';
|
|
4
|
+
import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
|
|
5
|
+
export declare function emitPanel(spec: CardSpec, source: SourceState, ctx: OrchestratorCtx): void;
|
|
6
|
+
export declare function commitThinkingPhase(source: SourceState, ctx: OrchestratorCtx): void;
|
|
7
|
+
export declare function finalizeOrchestrator(source: SourceState, ctx: OrchestratorCtx): void;
|
|
8
|
+
export declare function emitMarkdown(text: string, out: Writer): void;
|
|
9
|
+
export declare function emitErrorBox(err: Error, out: Writer): void;
|
|
10
|
+
export declare function flushToolLaneToScrollback(ctx: OrchestratorCtx): void;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { OutputEvent, ProgressEvent } from '../../agent/types.js';
|
|
2
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
3
|
+
import type { Writer } from '../slash/types.js';
|
|
4
|
+
import type { TerminalCompositor } from '../terminal-compositor.js';
|
|
5
|
+
import type { ToolLane } from '../commands/interactive/tool-lane.js';
|
|
6
|
+
import type { ThinkingLane } from '../commands/interactive/thinking-lane.js';
|
|
7
|
+
import { StreamingMarkdownRenderer } from '../markdown-stream.js';
|
|
8
|
+
import type { CommitCoordinator } from './commit-coordinator.js';
|
|
9
|
+
import type { OverlayComposer } from './overlay-composer.js';
|
|
10
|
+
import { type StageTrackerState } from '../commands/interactive/loop-stage.js';
|
|
11
|
+
export { emitPanel, finalizeOrchestrator, emitMarkdown, emitErrorBox, flushToolLaneToScrollback, } from './stream-renderer-orchestrator-emit.js';
|
|
12
|
+
export interface OrchestratorCtx {
|
|
13
|
+
out: Writer;
|
|
14
|
+
isTTY: boolean;
|
|
15
|
+
compositor: TerminalCompositor | null;
|
|
16
|
+
overlayComposer?: OverlayComposer | null;
|
|
17
|
+
toolLane: ToolLane;
|
|
18
|
+
thinkingLane: ThinkingLane;
|
|
19
|
+
thinkingMode?: 'off' | 'summary' | 'live';
|
|
20
|
+
streamingMarkdown: {
|
|
21
|
+
current: StreamingMarkdownRenderer | null;
|
|
22
|
+
};
|
|
23
|
+
stageTracker?: StageTrackerState;
|
|
24
|
+
activeSkillName?: string;
|
|
25
|
+
skillBadgeEmitted?: boolean;
|
|
26
|
+
coordinator?: CommitCoordinator;
|
|
27
|
+
lastProgressByTask: Map<string, ProgressEvent>;
|
|
28
|
+
}
|
|
29
|
+
export declare function handleOrchestratorEvent(event: OutputEvent, source: SourceState, ctx: OrchestratorCtx): void;
|
|
30
|
+
export declare function setComposedOverlay(ctx: OrchestratorCtx): void;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ResponseMetadata, ToolResultChunk } from '../../agent/types/message-types.js';
|
|
2
|
+
import { ThinkingLane } from '../commands/interactive/thinking-lane.js';
|
|
3
|
+
declare const ORCHESTRATOR_SOURCE_KEY = "__main__";
|
|
4
|
+
interface SourceState {
|
|
5
|
+
agentType?: string;
|
|
6
|
+
syntheticAgentToolUseId?: string;
|
|
7
|
+
startedAt: number;
|
|
8
|
+
stats: {
|
|
9
|
+
tokens: number;
|
|
10
|
+
toolUses: number;
|
|
11
|
+
progressReportedToolUses?: number;
|
|
12
|
+
};
|
|
13
|
+
contentBuffer: string;
|
|
14
|
+
currentTextEntryId?: string;
|
|
15
|
+
done: boolean;
|
|
16
|
+
responseMetadata?: ResponseMetadata;
|
|
17
|
+
errored: boolean;
|
|
18
|
+
lastEventAt: number;
|
|
19
|
+
pauseAnnotation?: string;
|
|
20
|
+
stalledTicks: number;
|
|
21
|
+
thinkingLane?: ThinkingLane;
|
|
22
|
+
thinkingPhaseStartedAt?: number;
|
|
23
|
+
}
|
|
24
|
+
declare function freshSourceState(agentType: string | undefined): SourceState;
|
|
25
|
+
declare function syntheticResult(content: string, isError: boolean): ToolResultChunk;
|
|
26
|
+
declare function formatDoneSummary(source: SourceState): string;
|
|
27
|
+
export { ORCHESTRATOR_SOURCE_KEY, type SourceState, freshSourceState, syntheticResult, formatDoneSummary, };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
2
|
+
import type { SubagentCtx } from './stream-renderer-subagent.js';
|
|
3
|
+
export declare function extractLatestThinkingClause(buffer: string, maxChars: number): string;
|
|
4
|
+
export declare function emitSubagentTextLines(text: string, ctx: SubagentCtx): void;
|
|
5
|
+
export declare function formatSubagentTextLines(text: string): string[];
|
|
6
|
+
export declare function synthesizeAgentEntry(sourceId: string, source: SourceState, ctx: SubagentCtx, agentContext?: string): void;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { OutputEvent } from '../../agent/types.js';
|
|
2
|
+
import type { SourceState } from './stream-renderer-source.js';
|
|
3
|
+
import type { TerminalCompositor } from '../terminal-compositor.js';
|
|
4
|
+
import type { ToolLane } from '../commands/interactive/tool-lane.js';
|
|
5
|
+
import type { Writer } from '../slash/types.js';
|
|
6
|
+
import type { CardSpec } from '../render.js';
|
|
7
|
+
import { StreamingMarkdownRenderer } from '../markdown-stream.js';
|
|
8
|
+
import type { OrchestratorCtx } from './stream-renderer-orchestrator.js';
|
|
9
|
+
import { extractLatestThinkingClause, synthesizeAgentEntry } from './stream-renderer-subagent-helpers.js';
|
|
10
|
+
export interface SubagentCtx {
|
|
11
|
+
isTTY: boolean;
|
|
12
|
+
compositor: TerminalCompositor | null;
|
|
13
|
+
toolLane: ToolLane;
|
|
14
|
+
out: Writer;
|
|
15
|
+
streamingMarkdown: Map<string, StreamingMarkdownRenderer>;
|
|
16
|
+
thinkingMode: 'off' | 'summary' | 'live';
|
|
17
|
+
orchestratorCtx?: OrchestratorCtx;
|
|
18
|
+
}
|
|
19
|
+
export declare function handleSubagentEvent(event: OutputEvent, sourceId: string, source: SourceState, ctx: SubagentCtx): void;
|
|
20
|
+
export declare function emitSubagentPanel(spec: CardSpec, _sourceId: string, source: SourceState, ctx: SubagentCtx): void;
|
|
21
|
+
export declare function finalizeSubagent(_sourceId: string, source: SourceState, ctx: SubagentCtx): void;
|
|
22
|
+
export { extractLatestThinkingClause, synthesizeAgentEntry };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import type { OutputEvent, SubagentProgressMeta } from '../../agent/types.js';
|
|
2
|
+
import type { Message } from '../../agent/types/message-types.js';
|
|
3
|
+
import type { Writer } from '../slash/types.js';
|
|
4
|
+
import { TerminalCompositor } from '../terminal-compositor.js';
|
|
5
|
+
import type { IHistoryRing } from '../input/types.js';
|
|
6
|
+
import type { AutocompleteState } from '../input/autocomplete-state.js';
|
|
7
|
+
export interface StreamRendererOptions {
|
|
8
|
+
out: Writer;
|
|
9
|
+
thinkingMode?: 'off' | 'summary' | 'live';
|
|
10
|
+
verbose?: boolean;
|
|
11
|
+
onCancel?: () => void;
|
|
12
|
+
onBackground?: () => void;
|
|
13
|
+
forceNonTty?: boolean;
|
|
14
|
+
activeSkillName?: string;
|
|
15
|
+
history?: IHistoryRing;
|
|
16
|
+
autocompleteState?: AutocompleteState;
|
|
17
|
+
promptText?: string;
|
|
18
|
+
scrollRegion?: {
|
|
19
|
+
withFullScrollRegion<T>(fn: () => T): T;
|
|
20
|
+
getExtraRows(): number;
|
|
21
|
+
};
|
|
22
|
+
captureMode?: boolean;
|
|
23
|
+
reducedMotion?: boolean;
|
|
24
|
+
compositor?: TerminalCompositor;
|
|
25
|
+
onStageChange?: (stage: import('../commands/interactive/loop-stage.js').LoopStage) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare class StreamRenderer {
|
|
28
|
+
private readonly out;
|
|
29
|
+
private readonly thinkingMode;
|
|
30
|
+
private readonly isTTY;
|
|
31
|
+
private readonly captureMode;
|
|
32
|
+
private readonly reducedMotion;
|
|
33
|
+
private readonly onCancel;
|
|
34
|
+
private readonly onBackground;
|
|
35
|
+
private readonly activeSkillName;
|
|
36
|
+
private readonly history;
|
|
37
|
+
private readonly autocompleteState;
|
|
38
|
+
private readonly promptText;
|
|
39
|
+
private readonly scrollRegion;
|
|
40
|
+
private readonly onStageChange;
|
|
41
|
+
private ownsCompositor;
|
|
42
|
+
private borrowedCompositor;
|
|
43
|
+
private priorOnCancel;
|
|
44
|
+
private interrupting;
|
|
45
|
+
private readonly coordinator;
|
|
46
|
+
private compositor;
|
|
47
|
+
private overlayComposer;
|
|
48
|
+
private streamingMarkdownRef;
|
|
49
|
+
private toolLane;
|
|
50
|
+
private thinkingLane;
|
|
51
|
+
private stageTracker;
|
|
52
|
+
private sources;
|
|
53
|
+
private subagentMarkdown;
|
|
54
|
+
private lastProgressByTask;
|
|
55
|
+
private disposed;
|
|
56
|
+
private pauseTickInterval;
|
|
57
|
+
private resizeUnsub;
|
|
58
|
+
readonly sink: (event: OutputEvent, meta?: SubagentProgressMeta) => void;
|
|
59
|
+
constructor(opts: StreamRendererOptions);
|
|
60
|
+
arm(): Promise<void>;
|
|
61
|
+
getCompositor(): TerminalCompositor | null;
|
|
62
|
+
setInterrupting(active: boolean): void;
|
|
63
|
+
private buildOrchestratorCtx;
|
|
64
|
+
process(event: OutputEvent, meta?: SubagentProgressMeta): void;
|
|
65
|
+
dispose(): Promise<void>;
|
|
66
|
+
private checkPauseAnnotations;
|
|
67
|
+
}
|
|
68
|
+
export type { Message };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export declare class VirtualScreen {
|
|
2
|
+
readonly cols: number;
|
|
3
|
+
readonly rows: number;
|
|
4
|
+
private grid;
|
|
5
|
+
private cursorRow;
|
|
6
|
+
private cursorCol;
|
|
7
|
+
private pendingWrap;
|
|
8
|
+
private scrollTop;
|
|
9
|
+
private scrollBottom;
|
|
10
|
+
private cursorHidden;
|
|
11
|
+
private bellCount;
|
|
12
|
+
private oscSequences;
|
|
13
|
+
private scrollback;
|
|
14
|
+
private parserState;
|
|
15
|
+
private csiParams;
|
|
16
|
+
private csiPrivatePrefix;
|
|
17
|
+
private oscBuffer;
|
|
18
|
+
private utf8Accum;
|
|
19
|
+
constructor(cols?: number, rows?: number);
|
|
20
|
+
private makeGrid;
|
|
21
|
+
private clampRow;
|
|
22
|
+
private clampCol;
|
|
23
|
+
write(data: string | Uint8Array): void;
|
|
24
|
+
private processByte;
|
|
25
|
+
private processGroundByte;
|
|
26
|
+
private processEscByte;
|
|
27
|
+
private processCsiByte;
|
|
28
|
+
private dispatchCsi;
|
|
29
|
+
private normalizeCsiParams;
|
|
30
|
+
private processOscByte;
|
|
31
|
+
private processUtf8Byte;
|
|
32
|
+
private putChar;
|
|
33
|
+
private lineFeed;
|
|
34
|
+
private scrollRegionUp;
|
|
35
|
+
private eraseCursorToEndOfLine;
|
|
36
|
+
private eraseStartOfLineToCursor;
|
|
37
|
+
private eraseEntireLine;
|
|
38
|
+
private eraseCursorToEndOfScreen;
|
|
39
|
+
private eraseStartOfScreenToCursor;
|
|
40
|
+
private eraseEntireScreen;
|
|
41
|
+
visibleLines(): string[];
|
|
42
|
+
lineAt(row: number): string;
|
|
43
|
+
scrollbackLines(): string[];
|
|
44
|
+
screenText(): string;
|
|
45
|
+
get cursor(): {
|
|
46
|
+
row: number;
|
|
47
|
+
col: number;
|
|
48
|
+
};
|
|
49
|
+
isCursorHidden(): boolean;
|
|
50
|
+
getBellCount(): number;
|
|
51
|
+
getOscSequences(): string[];
|
|
52
|
+
getPendingWrap(): boolean;
|
|
53
|
+
reset(): void;
|
|
54
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { BackgroundJob } from '../../agent/background-registry.js';
|
|
2
|
+
export type BackgroundItem = {
|
|
3
|
+
kind: 'subagent';
|
|
4
|
+
job: BackgroundJob;
|
|
5
|
+
};
|
|
6
|
+
export declare function itemId(item: BackgroundItem): string;
|
|
7
|
+
export declare function itemStartedAt(item: BackgroundItem): number;
|
|
8
|
+
export declare function itemIsRunning(item: BackgroundItem): boolean;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BackgroundAgentRegistry, BackgroundJob } from '../agent/background-registry.js';
|
|
2
|
+
export interface BackgroundStatusBarOptions {
|
|
3
|
+
stream?: NodeJS.WriteStream;
|
|
4
|
+
throttleMs?: number;
|
|
5
|
+
getAdjacentRows?: () => number;
|
|
6
|
+
}
|
|
7
|
+
export declare class BackgroundStatusBar {
|
|
8
|
+
private readonly stream;
|
|
9
|
+
private readonly registry;
|
|
10
|
+
private readonly throttleMs;
|
|
11
|
+
private started;
|
|
12
|
+
private lastRepaint;
|
|
13
|
+
private spinnerIndex;
|
|
14
|
+
private spinnerInterval;
|
|
15
|
+
private resizeUnsub;
|
|
16
|
+
private resizeImmediateUnsub;
|
|
17
|
+
private registryStartedHandler;
|
|
18
|
+
private registrySettledHandler;
|
|
19
|
+
private rowCount;
|
|
20
|
+
private lastPaintStartRow;
|
|
21
|
+
private preResizeStartRow;
|
|
22
|
+
private preResizeRowCount;
|
|
23
|
+
private onRowCountChange?;
|
|
24
|
+
private readonly getAdjacentRows;
|
|
25
|
+
constructor(registry?: BackgroundAgentRegistry, opts?: BackgroundStatusBarOptions);
|
|
26
|
+
setRowCountChangeHandler(handler: (rows: number) => void): void;
|
|
27
|
+
start(): void;
|
|
28
|
+
stop(): void;
|
|
29
|
+
private resetGeometry;
|
|
30
|
+
private scheduleRepaint;
|
|
31
|
+
redraw(): void;
|
|
32
|
+
private repaint;
|
|
33
|
+
private clearRows;
|
|
34
|
+
private clearPreResizeRows;
|
|
35
|
+
private formatItemLine;
|
|
36
|
+
formatJobLine(job: BackgroundJob): string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function configureColor(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import { type McpConfigFile } from '../../agent/mcp/config-loader.js';
|
|
3
|
+
import type { McpServerConfig } from '../../agent/mcp/types.js';
|
|
4
|
+
export declare const CHROME_DEVTOOLS_SERVER_NAME = "chrome-devtools";
|
|
5
|
+
declare const VALID_CHANNELS: readonly ["stable", "beta", "canary", "dev"];
|
|
6
|
+
type ChromeChannel = (typeof VALID_CHANNELS)[number];
|
|
7
|
+
export declare function buildChromeDevtoolsEntry(channel?: ChromeChannel): McpServerConfig;
|
|
8
|
+
export declare function readMcpConfigFile(path: string): McpConfigFile;
|
|
9
|
+
export declare function writeMcpConfigFileAtomic(path: string, cfg: McpConfigFile): void;
|
|
10
|
+
export declare function registerBrowserCommand(program: Command): void;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import type { TaskCompletionDetails, TelemetryRecord } from '../../agent/daemon/scheduler.js';
|
|
3
|
+
import type { AgentConfig, AgentModelInput } from '../../agent/types.js';
|
|
4
|
+
import { AgentSession } from '../../agent/session.js';
|
|
5
|
+
export interface BuildDaemonSessionFactoryOpts {
|
|
6
|
+
model: AgentModelInput;
|
|
7
|
+
apiKey?: string;
|
|
8
|
+
baseUrl?: string;
|
|
9
|
+
openaiBaseUrl?: string;
|
|
10
|
+
cwd?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function buildDaemonSessionFactory(opts: BuildDaemonSessionFactoryOpts): (config: AgentConfig) => AgentSession;
|
|
13
|
+
export declare function formatTaskCompletion(record: TelemetryRecord, details?: TaskCompletionDetails): string;
|
|
14
|
+
export declare function registerDaemonCommand(program: Command): void;
|