agent-afk 5.1.0 → 5.3.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 +14 -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 +25 -0
- package/dist/agent/elicitation-router.d.ts +22 -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 +1079 -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 +310 -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 +430 -426
- 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 +203 -199
- 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,51 @@
|
|
|
1
|
+
import type { PermissionMode } from '../agent/types/sdk-types.js';
|
|
2
|
+
export interface StatusLineFields {
|
|
3
|
+
model: string;
|
|
4
|
+
cost?: number;
|
|
5
|
+
tokens?: number;
|
|
6
|
+
contextPct?: number;
|
|
7
|
+
contextLimit?: number;
|
|
8
|
+
contextUsedTokens?: number;
|
|
9
|
+
contextSparkline?: string;
|
|
10
|
+
permissionMode?: PermissionMode;
|
|
11
|
+
cwd?: string;
|
|
12
|
+
branch?: string;
|
|
13
|
+
pr?: number;
|
|
14
|
+
}
|
|
15
|
+
interface StatusLineOpts {
|
|
16
|
+
stream?: NodeJS.WriteStream;
|
|
17
|
+
force?: boolean;
|
|
18
|
+
throttleMs?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare class StatusLine {
|
|
21
|
+
private readonly stream;
|
|
22
|
+
private readonly force;
|
|
23
|
+
private readonly throttleMs;
|
|
24
|
+
private started;
|
|
25
|
+
private lastRepaint;
|
|
26
|
+
private lastFields;
|
|
27
|
+
private resizeUnsub;
|
|
28
|
+
private resizeImmediateUnsub;
|
|
29
|
+
private lastPaintedRow;
|
|
30
|
+
private preResizePaintedRow;
|
|
31
|
+
private extraRows;
|
|
32
|
+
private afterScrollRestore;
|
|
33
|
+
constructor(opts?: StatusLineOpts);
|
|
34
|
+
private get enabled();
|
|
35
|
+
start(): void;
|
|
36
|
+
private resetGeometry;
|
|
37
|
+
private onResize;
|
|
38
|
+
repaint(fields: StatusLineFields): void;
|
|
39
|
+
flush(): void;
|
|
40
|
+
setExtraRows(n: number): void;
|
|
41
|
+
getExtraRows(): number;
|
|
42
|
+
setAfterScrollRestore(cb: (() => void) | null): void;
|
|
43
|
+
rearm(): void;
|
|
44
|
+
withFullScrollRegion<T>(fn: () => T): T;
|
|
45
|
+
stop(): void;
|
|
46
|
+
private formatLine;
|
|
47
|
+
private currentRows;
|
|
48
|
+
private paintRow;
|
|
49
|
+
private writeScrollRegion;
|
|
50
|
+
}
|
|
51
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function highlightCode(text: string, lang: string): string;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { SuggestContext, SuggestEngine } from './terminal-compositor.types.js';
|
|
4
|
+
export declare const MAX_DROPDOWN_ROWS = 6;
|
|
5
|
+
export interface AutocompleteHost {
|
|
6
|
+
readonly autocompleteState?: AutocompleteState;
|
|
7
|
+
input: InputCoreState;
|
|
8
|
+
activeGhost: string | null;
|
|
9
|
+
readonly ghostEngine: SuggestEngine | undefined;
|
|
10
|
+
readonly ghostGetContext: (() => SuggestContext) | undefined;
|
|
11
|
+
repaint(): void;
|
|
12
|
+
}
|
|
13
|
+
export declare function updateAutocomplete(self: AutocompleteHost): void;
|
|
14
|
+
export declare function updateGhost(self: AutocompleteHost): void;
|
|
15
|
+
export declare function applyDropdownSelection(self: AutocompleteHost): boolean;
|
|
16
|
+
export declare function applyGhostAccept(self: AutocompleteHost): boolean;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { LogUpdateFn, CompositorScrollRegionGuard } from './terminal-compositor.types.js';
|
|
2
|
+
export interface CommittedBandHost {
|
|
3
|
+
repaint(): void;
|
|
4
|
+
debugLog(stage: string, extra?: Record<string, unknown>): void;
|
|
5
|
+
committedBand: string[];
|
|
6
|
+
committedBandTopRow: number;
|
|
7
|
+
committedBandBottomRow: number;
|
|
8
|
+
committedBandPaintedRows: number;
|
|
9
|
+
committing: boolean;
|
|
10
|
+
commitInFlight: boolean;
|
|
11
|
+
hasCommitted: boolean;
|
|
12
|
+
pendingResizeErase: {
|
|
13
|
+
top: number;
|
|
14
|
+
bottom: number;
|
|
15
|
+
} | null;
|
|
16
|
+
anchorRow: number | undefined;
|
|
17
|
+
armed: boolean;
|
|
18
|
+
logUpdate: LogUpdateFn | null;
|
|
19
|
+
readonly scrollRegion?: CompositorScrollRegionGuard;
|
|
20
|
+
readonly stdout: NodeJS.WriteStream;
|
|
21
|
+
}
|
|
22
|
+
export declare function commitAbove(self: CommittedBandHost, text: string): void;
|
|
23
|
+
export declare function clearCommittedBand(self: CommittedBandHost): void;
|
|
24
|
+
export declare function resetCommittedBand(self: CommittedBandHost): void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { CommittedBandHost } from './terminal-compositor.committed-band-commit.js';
|
|
2
|
+
export declare function flushResizeGhostErase(self: CommittedBandHost): void;
|
|
3
|
+
export declare function repositionCommittedBand(self: CommittedBandHost, desiredTopRow: number, preRenderFrameTop: number, targetBottomRow: number): void;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { IHistoryRing } from './input/types.js';
|
|
4
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
5
|
+
import { SpinnerController } from './input/spinner.js';
|
|
6
|
+
import { CaretBlinkController } from './input/caret-blink.js';
|
|
7
|
+
import type { StdinClaimHandle } from './input/stdin-claim.js';
|
|
8
|
+
import { type CompositorInputMode, type CompositorScrollRegionGuard, type KeyInfo, type LogUpdateFn, type PickerController, type SubmissionPayload, type TerminalCompositorOptions, type SuggestEngine, type SuggestContext } from './terminal-compositor.types.js';
|
|
9
|
+
export type { CompositorInputMode, CompositorScrollRegionGuard, PickerController, SubmissionPayload, SuggestContext, SuggestEngine, TerminalCompositorOptions, };
|
|
10
|
+
export declare class TerminalCompositor {
|
|
11
|
+
readonly stdout: NodeJS.WriteStream;
|
|
12
|
+
readonly stdin: NodeJS.ReadStream;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
onSoftStop?: () => void;
|
|
15
|
+
softStopped: boolean;
|
|
16
|
+
onBackground?: () => void;
|
|
17
|
+
onPauseInterrupt?: () => void;
|
|
18
|
+
onShiftTab?: () => void;
|
|
19
|
+
readonly promptTextFn: () => string;
|
|
20
|
+
readonly history?: IHistoryRing;
|
|
21
|
+
readonly autocompleteState?: AutocompleteState;
|
|
22
|
+
readonly formatInputBuffer?: (segment: string) => string;
|
|
23
|
+
readonly scrollRegion?: CompositorScrollRegionGuard;
|
|
24
|
+
anchorRow: number | undefined;
|
|
25
|
+
declaredAnchorRow: number | undefined;
|
|
26
|
+
onSubmit?: (payload: SubmissionPayload) => void;
|
|
27
|
+
attachments: ImageAttachment[];
|
|
28
|
+
pasting: boolean;
|
|
29
|
+
pasteStartBufferLen: number;
|
|
30
|
+
pasteStartCursor: number;
|
|
31
|
+
pasteRegistry: Map<string, string>;
|
|
32
|
+
clipboardInFlight: boolean;
|
|
33
|
+
clipboardFailureMsg: string | null;
|
|
34
|
+
inputMode: CompositorInputMode;
|
|
35
|
+
pickerController: PickerController | null;
|
|
36
|
+
pickerSavedMode: CompositorInputMode;
|
|
37
|
+
armed: boolean;
|
|
38
|
+
suspended: boolean;
|
|
39
|
+
canceled: boolean;
|
|
40
|
+
backgrounded: boolean;
|
|
41
|
+
paused: boolean;
|
|
42
|
+
wasRaw: boolean;
|
|
43
|
+
stdinClaim: StdinClaimHandle | null;
|
|
44
|
+
logUpdate: LogUpdateFn | null;
|
|
45
|
+
overlay: string;
|
|
46
|
+
input: InputCoreState;
|
|
47
|
+
queued: boolean;
|
|
48
|
+
pendingSubmissions: SubmissionPayload[];
|
|
49
|
+
handleKeypress: ((char: string | undefined, key: KeyInfo) => void) | null;
|
|
50
|
+
resizeUnsub: (() => void) | null;
|
|
51
|
+
resizeImmediateUnsub: (() => void) | null;
|
|
52
|
+
readonly spinnerController: SpinnerController;
|
|
53
|
+
readonly caretBlinkController: CaretBlinkController;
|
|
54
|
+
repaintCount: number;
|
|
55
|
+
committing: boolean;
|
|
56
|
+
hasCommitted: boolean;
|
|
57
|
+
committedBand: string[];
|
|
58
|
+
committedBandTopRow: number;
|
|
59
|
+
committedBandBottomRow: number;
|
|
60
|
+
committedBandPaintedRows: number;
|
|
61
|
+
lastKnownRows: number;
|
|
62
|
+
pendingResizeErase: {
|
|
63
|
+
top: number;
|
|
64
|
+
bottom: number;
|
|
65
|
+
} | null;
|
|
66
|
+
commitInFlight: boolean;
|
|
67
|
+
private readonly debugCompositor;
|
|
68
|
+
readonly ghostEngine: SuggestEngine | undefined;
|
|
69
|
+
readonly ghostGetContext: (() => SuggestContext) | undefined;
|
|
70
|
+
activeGhost: string | null;
|
|
71
|
+
debugLog(stage: string, extra?: Record<string, unknown>): void;
|
|
72
|
+
constructor(opts: TerminalCompositorOptions);
|
|
73
|
+
isArmed(): boolean;
|
|
74
|
+
setAnchorRow(row: number | undefined): void;
|
|
75
|
+
suspendInput(): void;
|
|
76
|
+
resumeInput(): void;
|
|
77
|
+
setOnSubmit(handler: ((payload: SubmissionPayload) => void) | null): void;
|
|
78
|
+
setOnCancel(handler: (() => void) | null): void;
|
|
79
|
+
getOnCancel(): (() => void) | undefined;
|
|
80
|
+
setOnSoftStop(handler: (() => void) | null): void;
|
|
81
|
+
setOnBackground(handler: (() => void) | null): void;
|
|
82
|
+
setOnShiftTab(handler: (() => void) | null): void;
|
|
83
|
+
enterPickerMode(controller: PickerController): void;
|
|
84
|
+
exitPickerMode(): void;
|
|
85
|
+
repaintPicker(): void;
|
|
86
|
+
setInputMode(mode: CompositorInputMode): void;
|
|
87
|
+
getInputMode(): CompositorInputMode;
|
|
88
|
+
arm(): Promise<void>;
|
|
89
|
+
disarm(): void;
|
|
90
|
+
setOverlay(text: string): void;
|
|
91
|
+
setSpinner(config: {
|
|
92
|
+
enabled: boolean;
|
|
93
|
+
rotateVerbEveryMs?: number;
|
|
94
|
+
}): void;
|
|
95
|
+
commitAbove(text: string): void;
|
|
96
|
+
clearCommittedBand(): void;
|
|
97
|
+
flushResizeGhostErase(): void;
|
|
98
|
+
resetCommittedBand(): void;
|
|
99
|
+
repositionCommittedBand(desiredTopRow: number, preRenderFrameTop: number, targetBottomRow: number): void;
|
|
100
|
+
getBuffer(): {
|
|
101
|
+
text: string;
|
|
102
|
+
queued: boolean;
|
|
103
|
+
};
|
|
104
|
+
getPendingCount(): number;
|
|
105
|
+
getAttachments(): ImageAttachment[];
|
|
106
|
+
get caretVisible(): boolean;
|
|
107
|
+
renderInputLine(): string;
|
|
108
|
+
updateAutocomplete(): void;
|
|
109
|
+
updateGhost(): void;
|
|
110
|
+
renderDropdownRows(): string[];
|
|
111
|
+
renderHintRow(): string | null;
|
|
112
|
+
repaint(): void;
|
|
113
|
+
clearScreen(): void;
|
|
114
|
+
resetState(): void;
|
|
115
|
+
applyEdit(next: InputCoreState): boolean;
|
|
116
|
+
applyDropdownSelection(): boolean;
|
|
117
|
+
applyGhostAccept(): boolean;
|
|
118
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ImageAttachment } from './input/attachments.js';
|
|
2
|
+
import type { SpinnerController } from './input/spinner.js';
|
|
3
|
+
import type { CompositorInputMode, CompositorScrollRegionGuard, LogUpdateFn, PickerController } from './terminal-compositor.types.js';
|
|
4
|
+
export interface FrameHost {
|
|
5
|
+
flushResizeGhostErase(): void;
|
|
6
|
+
renderInputLine(): string;
|
|
7
|
+
renderDropdownRows(): string[];
|
|
8
|
+
renderHintRow(): string | null;
|
|
9
|
+
repositionCommittedBand(desiredTopRow: number, preRenderFrameTop: number, targetBottomRow: number): void;
|
|
10
|
+
clearCommittedBand(): void;
|
|
11
|
+
debugLog(stage: string, extra?: Record<string, unknown>): void;
|
|
12
|
+
armed: boolean;
|
|
13
|
+
committing: boolean;
|
|
14
|
+
suspended: boolean;
|
|
15
|
+
logUpdate: LogUpdateFn | null;
|
|
16
|
+
overlay: string;
|
|
17
|
+
inputMode: CompositorInputMode;
|
|
18
|
+
pickerController: PickerController | null;
|
|
19
|
+
readonly spinnerController: SpinnerController;
|
|
20
|
+
attachments: ImageAttachment[];
|
|
21
|
+
clipboardFailureMsg: string | null;
|
|
22
|
+
committedBand: string[];
|
|
23
|
+
committedBandTopRow: number;
|
|
24
|
+
committedBandBottomRow: number;
|
|
25
|
+
committedBandPaintedRows: number;
|
|
26
|
+
hasCommitted: boolean;
|
|
27
|
+
anchorRow: number | undefined;
|
|
28
|
+
lastKnownRows: number;
|
|
29
|
+
commitInFlight: boolean;
|
|
30
|
+
readonly scrollRegion?: CompositorScrollRegionGuard;
|
|
31
|
+
readonly stdout: NodeJS.WriteStream;
|
|
32
|
+
}
|
|
33
|
+
export declare function repaint(self: FrameHost): void;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { IHistoryRing } from './input/types.js';
|
|
4
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
5
|
+
import type { CompositorInputMode, KeyInfo, PickerController, SubmissionPayload } from './terminal-compositor.types.js';
|
|
6
|
+
export interface KeyDispatchHost {
|
|
7
|
+
repaint(): void;
|
|
8
|
+
clearScreen(): void;
|
|
9
|
+
applyEdit(next: InputCoreState): boolean;
|
|
10
|
+
updateAutocomplete(): void;
|
|
11
|
+
updateGhost(): void;
|
|
12
|
+
applyDropdownSelection(): boolean;
|
|
13
|
+
applyGhostAccept(): boolean;
|
|
14
|
+
readonly armed: boolean;
|
|
15
|
+
input: InputCoreState;
|
|
16
|
+
queued: boolean;
|
|
17
|
+
pendingSubmissions: SubmissionPayload[];
|
|
18
|
+
readonly inputMode: CompositorInputMode;
|
|
19
|
+
readonly pickerController: PickerController | null;
|
|
20
|
+
pasting: boolean;
|
|
21
|
+
pasteStartBufferLen: number;
|
|
22
|
+
pasteStartCursor: number;
|
|
23
|
+
readonly pasteRegistry: Map<string, string>;
|
|
24
|
+
clipboardInFlight: boolean;
|
|
25
|
+
clipboardFailureMsg: string | null;
|
|
26
|
+
attachments: ImageAttachment[];
|
|
27
|
+
readonly autocompleteState?: AutocompleteState;
|
|
28
|
+
readonly activeGhost: string | null;
|
|
29
|
+
readonly history?: IHistoryRing;
|
|
30
|
+
softStopped: boolean;
|
|
31
|
+
canceled: boolean;
|
|
32
|
+
backgrounded: boolean;
|
|
33
|
+
paused: boolean;
|
|
34
|
+
readonly onCancel?: () => void;
|
|
35
|
+
readonly onSoftStop?: () => void;
|
|
36
|
+
readonly onBackground?: () => void;
|
|
37
|
+
readonly onPauseInterrupt?: () => void;
|
|
38
|
+
readonly onShiftTab?: () => void;
|
|
39
|
+
readonly onSubmit?: (payload: SubmissionPayload) => void;
|
|
40
|
+
}
|
|
41
|
+
export declare function applyEdit(self: KeyDispatchHost, next: InputCoreState): boolean;
|
|
42
|
+
export declare function dispatchKey(self: KeyDispatchHost, char: string | undefined, key: KeyInfo): void;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
3
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
4
|
+
import type { CompositorInputMode, PickerController, SubmissionPayload } from './terminal-compositor.types.js';
|
|
5
|
+
export interface InputModeHost {
|
|
6
|
+
repaint(): void;
|
|
7
|
+
inputMode: CompositorInputMode;
|
|
8
|
+
pickerSavedMode: CompositorInputMode;
|
|
9
|
+
pickerController: PickerController | null;
|
|
10
|
+
readonly autocompleteState?: AutocompleteState;
|
|
11
|
+
softStopped: boolean;
|
|
12
|
+
canceled: boolean;
|
|
13
|
+
backgrounded: boolean;
|
|
14
|
+
queued: boolean;
|
|
15
|
+
pendingSubmissions: SubmissionPayload[];
|
|
16
|
+
input: InputCoreState;
|
|
17
|
+
attachments: ImageAttachment[];
|
|
18
|
+
readonly pasteRegistry: Map<string, string>;
|
|
19
|
+
readonly pasteStartCursor: number;
|
|
20
|
+
readonly onSubmit?: (payload: SubmissionPayload) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function enterPickerMode(self: InputModeHost, controller: PickerController): void;
|
|
23
|
+
export declare function exitPickerMode(self: InputModeHost): void;
|
|
24
|
+
export declare function repaintPicker(self: InputModeHost): void;
|
|
25
|
+
export declare function setInputMode(self: InputModeHost, mode: CompositorInputMode): void;
|
|
26
|
+
export declare function getInputMode(self: InputModeHost): CompositorInputMode;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type StdinClaimHandle } from './input/stdin-claim.js';
|
|
2
|
+
import type { SpinnerController } from './input/spinner.js';
|
|
3
|
+
import type { CaretBlinkController } from './input/caret-blink.js';
|
|
4
|
+
import type { SuggestEngine } from './terminal-compositor.types.js';
|
|
5
|
+
import type { CompositorScrollRegionGuard, KeyInfo, LogUpdateFn } from './terminal-compositor.types.js';
|
|
6
|
+
import type { KeyDispatchHost } from './terminal-compositor.input-dispatch.js';
|
|
7
|
+
export interface LifecycleHost {
|
|
8
|
+
repaint(): void;
|
|
9
|
+
resetState(): void;
|
|
10
|
+
readonly repaintCount: number;
|
|
11
|
+
readonly stdout: NodeJS.WriteStream;
|
|
12
|
+
readonly stdin: NodeJS.ReadStream;
|
|
13
|
+
armed: boolean;
|
|
14
|
+
suspended: boolean;
|
|
15
|
+
wasRaw: boolean;
|
|
16
|
+
stdinClaim: StdinClaimHandle | null;
|
|
17
|
+
handleKeypress: ((char: string | undefined, key: KeyInfo) => void) | null;
|
|
18
|
+
resizeUnsub: (() => void) | null;
|
|
19
|
+
resizeImmediateUnsub: (() => void) | null;
|
|
20
|
+
logUpdate: LogUpdateFn | null;
|
|
21
|
+
readonly scrollRegion?: CompositorScrollRegionGuard;
|
|
22
|
+
anchorRow: number | undefined;
|
|
23
|
+
declaredAnchorRow: number | undefined;
|
|
24
|
+
canceled: boolean;
|
|
25
|
+
readonly spinnerController: SpinnerController;
|
|
26
|
+
readonly caretBlinkController: CaretBlinkController;
|
|
27
|
+
readonly ghostEngine: SuggestEngine | undefined;
|
|
28
|
+
lastKnownRows: number;
|
|
29
|
+
pendingResizeErase: {
|
|
30
|
+
top: number;
|
|
31
|
+
bottom: number;
|
|
32
|
+
} | null;
|
|
33
|
+
readonly committedBand: string[];
|
|
34
|
+
readonly committedBandTopRow: number;
|
|
35
|
+
readonly committedBandPaintedRows: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function suspendInput(self: LifecycleHost): void;
|
|
38
|
+
export declare function resumeInput(self: LifecycleHost): void;
|
|
39
|
+
export declare function arm(self: LifecycleHost & KeyDispatchHost): Promise<void>;
|
|
40
|
+
export declare function disarm(self: LifecycleHost): void;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
export interface PasteHost {
|
|
3
|
+
readonly pasteRegistry: Map<string, string>;
|
|
4
|
+
readonly pasteStartCursor: number;
|
|
5
|
+
input: InputCoreState;
|
|
6
|
+
}
|
|
7
|
+
export declare function expandPastePlaceholders(self: PasteHost, buffer: string): string;
|
|
8
|
+
export interface BufferSnapshotHost extends PasteHost {
|
|
9
|
+
readonly queued: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function getBuffer(self: BufferSnapshotHost): {
|
|
12
|
+
text: string;
|
|
13
|
+
queued: boolean;
|
|
14
|
+
};
|
|
15
|
+
export declare function maybeTruncatePaste(self: PasteHost): void;
|
|
16
|
+
export declare function maybeAtomicPlaceholderDelete(self: PasteHost, direction: 'backward' | 'forward'): InputCoreState | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { InputCoreState } from './input-core.js';
|
|
2
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { SubmissionPayload } from './terminal-compositor.types.js';
|
|
4
|
+
export interface RenderHost {
|
|
5
|
+
readonly queued: boolean;
|
|
6
|
+
readonly pendingSubmissions: readonly SubmissionPayload[];
|
|
7
|
+
readonly input: InputCoreState;
|
|
8
|
+
readonly caretVisible?: boolean;
|
|
9
|
+
readonly activeGhost: string | null;
|
|
10
|
+
readonly autocompleteState?: AutocompleteState;
|
|
11
|
+
readonly formatInputBuffer?: (segment: string) => string;
|
|
12
|
+
readonly promptTextFn: () => string;
|
|
13
|
+
readonly stdout: NodeJS.WriteStream;
|
|
14
|
+
}
|
|
15
|
+
export declare function renderInputLine(self: RenderHost): string;
|
|
16
|
+
export declare function renderDropdownRows(self: RenderHost): string[];
|
|
17
|
+
export declare function renderHintRow(self: RenderHost): string | null;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type InputCoreState } from './input-core.js';
|
|
2
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
3
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
4
|
+
import type { CompositorInputMode, PickerController, SubmissionPayload } from './terminal-compositor.types.js';
|
|
5
|
+
export interface ResetStateHost {
|
|
6
|
+
clearCommittedBand(): void;
|
|
7
|
+
overlay: string;
|
|
8
|
+
input: InputCoreState;
|
|
9
|
+
queued: boolean;
|
|
10
|
+
pendingSubmissions: SubmissionPayload[];
|
|
11
|
+
canceled: boolean;
|
|
12
|
+
backgrounded: boolean;
|
|
13
|
+
softStopped: boolean;
|
|
14
|
+
paused: boolean;
|
|
15
|
+
activeGhost: string | null;
|
|
16
|
+
anchorRow: number | undefined;
|
|
17
|
+
hasCommitted: boolean;
|
|
18
|
+
commitInFlight: boolean;
|
|
19
|
+
pendingResizeErase: {
|
|
20
|
+
top: number;
|
|
21
|
+
bottom: number;
|
|
22
|
+
} | null;
|
|
23
|
+
lastKnownRows: number;
|
|
24
|
+
pickerController: PickerController | null;
|
|
25
|
+
inputMode: CompositorInputMode;
|
|
26
|
+
attachments: ImageAttachment[];
|
|
27
|
+
pasting: boolean;
|
|
28
|
+
pasteStartBufferLen: number;
|
|
29
|
+
pasteStartCursor: number;
|
|
30
|
+
readonly pasteRegistry: Map<string, string>;
|
|
31
|
+
clipboardFailureMsg: string | null;
|
|
32
|
+
readonly autocompleteState?: AutocompleteState;
|
|
33
|
+
resizeUnsub: (() => void) | null;
|
|
34
|
+
resizeImmediateUnsub: (() => void) | null;
|
|
35
|
+
}
|
|
36
|
+
export declare function resetState(self: ResetStateHost): void;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { LoadingTip } from './loading-tips.js';
|
|
2
|
+
import type { ImageAttachment } from './input/attachments.js';
|
|
3
|
+
import type { AutocompleteState } from './input/autocomplete-state.js';
|
|
4
|
+
import type { IHistoryRing } from './input/types.js';
|
|
5
|
+
import type { SuggestEngine, SuggestContext } from './input/suggest.js';
|
|
6
|
+
export type { SuggestEngine, SuggestContext };
|
|
7
|
+
export interface LogUpdateFn {
|
|
8
|
+
render: (content: string, targetBottomRow: number, anchorFloor?: number) => void;
|
|
9
|
+
clear: (extraRows?: number) => void;
|
|
10
|
+
done: () => void;
|
|
11
|
+
readonly topRow?: number;
|
|
12
|
+
resetGeometry?: () => void;
|
|
13
|
+
measure?: (content: string, targetBottomRow: number) => {
|
|
14
|
+
topRow: number;
|
|
15
|
+
lineCount: number;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface KeyInfo {
|
|
19
|
+
name?: string;
|
|
20
|
+
sequence?: string;
|
|
21
|
+
ctrl?: boolean;
|
|
22
|
+
meta?: boolean;
|
|
23
|
+
shift?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare const SPINNER_FRAMES: readonly ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏"];
|
|
26
|
+
export declare const ELAPSED_GRACE_MS = 2000;
|
|
27
|
+
export declare function formatElapsed(startedAt: number): string;
|
|
28
|
+
export declare function eraseAndPaintRow(row: number, line?: string): string;
|
|
29
|
+
export declare function formatTipRow(text: string, cols: number): string;
|
|
30
|
+
export interface SpinnerState {
|
|
31
|
+
frameIndex: number;
|
|
32
|
+
verb: string;
|
|
33
|
+
nextVerbRotateAt: number;
|
|
34
|
+
startedAt: number;
|
|
35
|
+
tipPool: readonly LoadingTip[];
|
|
36
|
+
currentTip: LoadingTip | null;
|
|
37
|
+
}
|
|
38
|
+
export interface CompositorScrollRegionGuard {
|
|
39
|
+
withFullScrollRegion<T>(fn: () => T): T;
|
|
40
|
+
getExtraRows(): number;
|
|
41
|
+
}
|
|
42
|
+
export type CompositorInputMode = 'idle' | 'streaming' | 'picker';
|
|
43
|
+
export interface PickerController {
|
|
44
|
+
renderRows: () => readonly string[];
|
|
45
|
+
onKey: (char: string | undefined, key: {
|
|
46
|
+
name?: string;
|
|
47
|
+
ctrl?: boolean;
|
|
48
|
+
shift?: boolean;
|
|
49
|
+
meta?: boolean;
|
|
50
|
+
sequence?: string;
|
|
51
|
+
}) => void;
|
|
52
|
+
}
|
|
53
|
+
export interface SubmissionPayload {
|
|
54
|
+
text: string;
|
|
55
|
+
displayText?: string;
|
|
56
|
+
attachments: readonly ImageAttachment[];
|
|
57
|
+
}
|
|
58
|
+
export interface TerminalCompositorOptions {
|
|
59
|
+
stdout: NodeJS.WriteStream;
|
|
60
|
+
stdin: NodeJS.ReadStream;
|
|
61
|
+
onCancel?: () => void;
|
|
62
|
+
onSoftStop?: () => void;
|
|
63
|
+
onBackground?: () => void;
|
|
64
|
+
onPauseInterrupt?: () => void;
|
|
65
|
+
onShiftTab?: () => void;
|
|
66
|
+
onSubmit?: (payload: SubmissionPayload) => void;
|
|
67
|
+
promptText?: string | (() => string);
|
|
68
|
+
history?: IHistoryRing;
|
|
69
|
+
autocompleteState?: AutocompleteState;
|
|
70
|
+
formatInputBuffer?: (segment: string) => string;
|
|
71
|
+
scrollRegion?: CompositorScrollRegionGuard;
|
|
72
|
+
captureMode?: boolean;
|
|
73
|
+
caretBlink?: boolean;
|
|
74
|
+
caretBlinkIntervalMs?: number;
|
|
75
|
+
anchorRow?: number;
|
|
76
|
+
suggest?: {
|
|
77
|
+
engine: SuggestEngine;
|
|
78
|
+
getContext: () => SuggestContext;
|
|
79
|
+
};
|
|
80
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function getTerminalWidth(): number;
|
|
2
|
+
export declare function getTerminalHeight(): number;
|
|
3
|
+
export declare function subscribeResize(fn: () => void): () => void;
|
|
4
|
+
export declare function subscribeResizeImmediate(fn: () => void): () => void;
|
|
5
|
+
export declare function __flushResizeBusForTests(): void;
|
|
6
|
+
export declare const ResizeBus: {
|
|
7
|
+
readonly subscribe: typeof subscribeResize;
|
|
8
|
+
readonly subscribeImmediate: typeof subscribeResizeImmediate;
|
|
9
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type TerminalKind = 'tmux' | 'wezterm' | 'kitty' | 'iterm2' | 'apple-terminal' | 'ghostty' | 'windows-terminal' | 'gnome-terminal' | 'konsole' | 'vscode' | 'alacritty' | 'hyper' | 'unknown';
|
|
2
|
+
export type SpawnCapability = 'tab' | 'window' | 'none';
|
|
3
|
+
export declare function detectTerminal(env?: NodeJS.ProcessEnv): TerminalKind;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SpawnCapability, type TerminalKind } from './detect.js';
|
|
2
|
+
import type { AgentModelInput } from '../../agent/types.js';
|
|
3
|
+
export interface SpawnOutcome {
|
|
4
|
+
spawned: boolean;
|
|
5
|
+
kind: TerminalKind;
|
|
6
|
+
capability: SpawnCapability;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export type RunFn = (cmd: string, args: string[], options: {
|
|
10
|
+
stdio: 'ignore';
|
|
11
|
+
timeout: number;
|
|
12
|
+
}) => {
|
|
13
|
+
status: number | null;
|
|
14
|
+
error?: Error;
|
|
15
|
+
};
|
|
16
|
+
export interface TrySpawnOptions {
|
|
17
|
+
forkId: string;
|
|
18
|
+
model: AgentModelInput;
|
|
19
|
+
cwd: string;
|
|
20
|
+
interactive: boolean;
|
|
21
|
+
env?: NodeJS.ProcessEnv;
|
|
22
|
+
platform?: NodeJS.Platform;
|
|
23
|
+
run?: RunFn;
|
|
24
|
+
}
|
|
25
|
+
export declare function trySpawnTab(opts: TrySpawnOptions): SpawnOutcome;
|
|
26
|
+
export { detectTerminal } from './detect.js';
|
|
27
|
+
export type { TerminalKind, SpawnCapability } from './detect.js';
|
|
28
|
+
export { planSpawn, resolveResumeInvocation } from './spawners.js';
|
|
29
|
+
export type { SpawnPlan, ResumeInvocation } from './spawners.js';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { AgentModelInput } from '../../agent/types.js';
|
|
2
|
+
import type { SpawnCapability, TerminalKind } from './detect.js';
|
|
3
|
+
export interface ResumeInvocation {
|
|
4
|
+
argv: string[];
|
|
5
|
+
shellCommand: string;
|
|
6
|
+
cwd: string;
|
|
7
|
+
spawnable: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface SpawnPlan {
|
|
10
|
+
kind: TerminalKind;
|
|
11
|
+
capability: SpawnCapability;
|
|
12
|
+
exec?: {
|
|
13
|
+
cmd: string;
|
|
14
|
+
args: string[];
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare function resolveResumeInvocation(forkId: string, model: AgentModelInput, cwd: string): ResumeInvocation;
|
|
18
|
+
export declare function planSpawn(kind: TerminalKind, inv: ResumeInvocation, platform?: NodeJS.Platform): SpawnPlan;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface TodoItem {
|
|
2
|
+
id: number;
|
|
3
|
+
text: string;
|
|
4
|
+
done: boolean;
|
|
5
|
+
createdAt: number;
|
|
6
|
+
}
|
|
7
|
+
export interface TodoStore {
|
|
8
|
+
sessionId: string;
|
|
9
|
+
items: TodoItem[];
|
|
10
|
+
}
|
|
11
|
+
export declare function loadTodos(sessionId: string): TodoStore;
|
|
12
|
+
export declare function saveTodos(store: TodoStore): void;
|
|
13
|
+
export declare function addTodo(store: TodoStore, text: string): TodoItem;
|
|
14
|
+
export declare function markDone(store: TodoStore, id: number): TodoItem | undefined;
|
|
15
|
+
export declare function removeTodo(store: TodoStore, id: number): boolean;
|
|
16
|
+
export declare function clearTodos(store: TodoStore): void;
|
|
17
|
+
export declare function renderTodoPanel(store: TodoStore): string[];
|
|
18
|
+
export declare function todoFingerprint(store: TodoStore): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ChalkInstance } from 'chalk';
|
|
2
|
+
import { categorizeTool, dispatchTagForCategory, SUBAGENT_TOOLS, SKILL_TOOLS, DAG_TOOLS, NESTING_TOOLS, type ToolCategory } from '../agent/tool-category.js';
|
|
3
|
+
export { categorizeTool, dispatchTagForCategory, SUBAGENT_TOOLS, SKILL_TOOLS, DAG_TOOLS, NESTING_TOOLS, type ToolCategory, };
|
|
4
|
+
export interface CategoryStyle {
|
|
5
|
+
color: ChalkInstance;
|
|
6
|
+
glyph: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function styleForCategory(cat: ToolCategory): CategoryStyle;
|
|
9
|
+
export declare function styleForToolName(name: string): CategoryStyle;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { TrustedSkillResult } from '../agent/trusted-skill-result.js';
|
|
2
|
+
export interface TrustedSkillRegistryEntry {
|
|
3
|
+
glyph: string;
|
|
4
|
+
color: string;
|
|
5
|
+
inFlightVerb: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function registerTrustedSkill(name: string, entry: TrustedSkillRegistryEntry): void;
|
|
8
|
+
export declare function clearRegistryForTesting(): void;
|
|
9
|
+
export declare function getTrustedSkill(name: string): TrustedSkillRegistryEntry | undefined;
|
|
10
|
+
export interface FormatTrustedSkillCompletionOpts {
|
|
11
|
+
isTTY?: boolean;
|
|
12
|
+
columns?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function formatTrustedSkillCompletion(result: TrustedSkillResult, opts?: FormatTrustedSkillCompletionOpts): string;
|
|
15
|
+
export interface FormatTrustedSkillInFlightOpts {
|
|
16
|
+
isTTY?: boolean;
|
|
17
|
+
columns?: number;
|
|
18
|
+
}
|
|
19
|
+
export declare function formatTrustedSkillInFlight(skillName: string, opts?: FormatTrustedSkillInFlightOpts): string;
|