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,10 @@
|
|
|
1
|
+
import { type FarmRunRecord, type FarmBranchRecord } from './farm-run-record.js';
|
|
2
|
+
export type { FarmRunRecord, FarmBranchRecord };
|
|
3
|
+
export declare function formatFarmDigest(record: FarmRunRecord): string;
|
|
4
|
+
export declare function sendFarmDigest(record: FarmRunRecord, opts?: {
|
|
5
|
+
_push?: typeof import('../../telegram/push.js').pushIfConfigured;
|
|
6
|
+
}): Promise<{
|
|
7
|
+
sent: boolean;
|
|
8
|
+
chatCount?: number;
|
|
9
|
+
reason?: string;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { BranchScore } from './index.js';
|
|
2
|
+
export interface FarmBranchRecord {
|
|
3
|
+
index: number;
|
|
4
|
+
branch: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
ok: boolean;
|
|
7
|
+
commitCount: number;
|
|
8
|
+
error?: string;
|
|
9
|
+
score?: BranchScore | null;
|
|
10
|
+
}
|
|
11
|
+
export interface FarmRunRecord {
|
|
12
|
+
taskName: string;
|
|
13
|
+
taskSlug: string;
|
|
14
|
+
baseSha: string;
|
|
15
|
+
startedAt: string;
|
|
16
|
+
completedAt: string;
|
|
17
|
+
branches: FarmBranchRecord[];
|
|
18
|
+
winner?: number;
|
|
19
|
+
human_decision?: 'approved' | 'rejected' | 'edited_then_merged';
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { spawn } from 'child_process';
|
|
2
|
+
export declare const SCORE_SCHEMA_VERSION: 1;
|
|
3
|
+
export declare const DEFAULT_TIMEOUT_MS = 120000;
|
|
4
|
+
export interface BranchScore {
|
|
5
|
+
schemaVersion: typeof SCORE_SCHEMA_VERSION;
|
|
6
|
+
pass: number;
|
|
7
|
+
fail: number;
|
|
8
|
+
loc_delta: number;
|
|
9
|
+
lint_ok: boolean | null;
|
|
10
|
+
duration_ms: number;
|
|
11
|
+
error?: string;
|
|
12
|
+
testCmd?: string;
|
|
13
|
+
branchPath: string;
|
|
14
|
+
baseSha: string;
|
|
15
|
+
scoredAt: string;
|
|
16
|
+
}
|
|
17
|
+
export interface ScoreBranchOptions {
|
|
18
|
+
branchPath: string;
|
|
19
|
+
baseSha: string;
|
|
20
|
+
testCmd?: string;
|
|
21
|
+
timeoutMs?: number;
|
|
22
|
+
_spawn?: typeof spawn;
|
|
23
|
+
_readPackageJson?: (path: string) => Promise<unknown>;
|
|
24
|
+
_now?: () => number;
|
|
25
|
+
_nowIso?: () => string;
|
|
26
|
+
}
|
|
27
|
+
export interface RankableBranch {
|
|
28
|
+
index: number;
|
|
29
|
+
score: BranchScore | null;
|
|
30
|
+
}
|
|
31
|
+
export declare function scoreBranch(opts: ScoreBranchOptions): Promise<BranchScore>;
|
|
32
|
+
export declare function writeScore(farmDir: string, index: number, score: BranchScore): Promise<string>;
|
|
33
|
+
export declare function rankBranches(branches: RankableBranch[]): number[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type FarmRunRecord, type FarmBranchRecord } from './farm-run-record.js';
|
|
2
|
+
export type { FarmRunRecord, FarmBranchRecord };
|
|
3
|
+
export interface IMemoryStore {
|
|
4
|
+
storeFact(fact: {
|
|
5
|
+
session_id?: string;
|
|
6
|
+
category: 'preference' | 'convention' | 'decision' | 'learning';
|
|
7
|
+
content: string;
|
|
8
|
+
source_surface: string;
|
|
9
|
+
}): number;
|
|
10
|
+
}
|
|
11
|
+
export declare function writeFarmFact(record: FarmRunRecord, opts?: {
|
|
12
|
+
_store?: IMemoryStore;
|
|
13
|
+
}): {
|
|
14
|
+
factId: number;
|
|
15
|
+
} | {
|
|
16
|
+
skipped: true;
|
|
17
|
+
reason: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function writeFarmDecisionFact(args: {
|
|
20
|
+
taskSlug: string;
|
|
21
|
+
decision: NonNullable<FarmRunRecord['human_decision']>;
|
|
22
|
+
decidedAt: string;
|
|
23
|
+
via: 'telegram' | 'cli';
|
|
24
|
+
}, opts?: {
|
|
25
|
+
_store?: IMemoryStore;
|
|
26
|
+
}): {
|
|
27
|
+
factId: number;
|
|
28
|
+
} | {
|
|
29
|
+
skipped: true;
|
|
30
|
+
reason: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { BranchScore } from './index.js';
|
|
2
|
+
import type { CreatedBranch, FarmManifest } from '../../agent/worktree.js';
|
|
3
|
+
export interface WinnerResolution {
|
|
4
|
+
branch: CreatedBranch;
|
|
5
|
+
source: 'winner' | 'top-scored' | 'fallback-first-branch';
|
|
6
|
+
}
|
|
7
|
+
export interface ResolveWinnerDeps {
|
|
8
|
+
loadScore?: (farmDir: string, index: number) => Promise<BranchScore | null>;
|
|
9
|
+
}
|
|
10
|
+
export declare function resolveWinnerBranch(manifest: FarmManifest, deps?: ResolveWinnerDeps): Promise<WinnerResolution>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function validateSkillName(name: string, dirname: string): {
|
|
2
|
+
valid: true;
|
|
3
|
+
} | {
|
|
4
|
+
valid: false;
|
|
5
|
+
reason: string;
|
|
6
|
+
};
|
|
7
|
+
export type SkillScanOrigin = 'user' | 'project' | `imported:${string}`;
|
|
8
|
+
export declare function scanSkillsFromDir(dir: string, origin: SkillScanOrigin): number;
|
|
9
|
+
export declare function scanAndRegisterUserSkills(): number;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Context, MiddlewareFn } from 'telegraf';
|
|
2
|
+
export type LogFn = (...args: unknown[]) => void;
|
|
3
|
+
export declare function parseAllowedChatIds(raw: string | undefined, log?: LogFn): Set<number>;
|
|
4
|
+
export declare function createAllowlistMiddleware(allowedIds: Set<number>, log?: LogFn): MiddlewareFn<Context>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Context } from 'telegraf';
|
|
2
|
+
import { SessionManagerOptions } from './session-manager.js';
|
|
3
|
+
export interface BotOptions extends SessionManagerOptions {
|
|
4
|
+
botToken: string;
|
|
5
|
+
verbose?: boolean;
|
|
6
|
+
allowedChatIds: Set<number>;
|
|
7
|
+
}
|
|
8
|
+
export declare class TelegramBot {
|
|
9
|
+
private bot;
|
|
10
|
+
private sessionManager;
|
|
11
|
+
private options;
|
|
12
|
+
private running;
|
|
13
|
+
private registeredCommandChats;
|
|
14
|
+
private messageHandler;
|
|
15
|
+
private watchManager;
|
|
16
|
+
private autoSubscribeInterval;
|
|
17
|
+
private static readonly AUTO_SUBSCRIBE_INTERVAL_MS;
|
|
18
|
+
constructor(options: BotOptions);
|
|
19
|
+
private setupHandlers;
|
|
20
|
+
start(): Promise<void>;
|
|
21
|
+
stop(): Promise<void>;
|
|
22
|
+
getStats(): {
|
|
23
|
+
running: boolean;
|
|
24
|
+
activeSessions: number;
|
|
25
|
+
totalChats: number;
|
|
26
|
+
};
|
|
27
|
+
getBusySessionCount(): number;
|
|
28
|
+
handleStart(ctx: Context): Promise<void>;
|
|
29
|
+
handleHelp(ctx: Context): Promise<void>;
|
|
30
|
+
handleClear(ctx: Context): Promise<void>;
|
|
31
|
+
handleMessage(ctx: Context): Promise<void>;
|
|
32
|
+
handlePhoto(ctx: Context): Promise<void>;
|
|
33
|
+
handleModelSwitch(ctx: Context): Promise<void>;
|
|
34
|
+
private startAutoSubscribe;
|
|
35
|
+
private stopAutoSubscribe;
|
|
36
|
+
private runAutoSubscribeTick;
|
|
37
|
+
private log;
|
|
38
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AgentSession } from '../agent/session.js';
|
|
2
|
+
import type { AgentConfig } from '../agent/types.js';
|
|
3
|
+
import { type CreatedTraceWriter } from '../agent/trace/factory.js';
|
|
4
|
+
import type { TraceWriter } from '../agent/trace/index.js';
|
|
5
|
+
export interface ConstructTelegramSessionDeps {
|
|
6
|
+
createTraceWriter?: () => CreatedTraceWriter | null;
|
|
7
|
+
traceWriter?: TraceWriter | null;
|
|
8
|
+
newSession?: (config: AgentConfig) => AgentSession;
|
|
9
|
+
}
|
|
10
|
+
export declare function createTelegramTraceWriter(factory?: () => CreatedTraceWriter | null): TraceWriter | null;
|
|
11
|
+
export declare function constructTelegramSession(baseConfig: AgentConfig, deps?: ConstructTelegramSessionDeps): AgentSession;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ELICITATION_CALLBACK_PREFIX = "afk:e:";
|
|
2
|
+
export declare const TELEGRAM_CALLBACK_DATA_MAX_BYTES = 64;
|
|
3
|
+
export interface ParsedElicitationCallback {
|
|
4
|
+
id: string;
|
|
5
|
+
choiceIndex: number;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildElicitationCallback(id: string, choiceIndex: number): string;
|
|
8
|
+
export declare function parseElicitationCallback(data: string | undefined | null): ParsedElicitationCallback | null;
|
|
9
|
+
export declare const ELICITATION_CUSTOM_CALLBACK_PREFIX = "afk:ec:";
|
|
10
|
+
export declare function buildCustomElicitationCallback(id: string): string;
|
|
11
|
+
export declare function parseCustomElicitationCallback(data: string | undefined | null): string | null;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Telegraf } from 'telegraf';
|
|
2
|
+
import type { ElicitationHandler } from '../agent/elicitation-router.js';
|
|
3
|
+
import type { MessageHandler } from './handlers/message.js';
|
|
4
|
+
export declare function makeTelegramElicitationHandler(messageHandler: MessageHandler, bot: Telegraf, chatId: number, opts?: {
|
|
5
|
+
ledgerOriginated?: boolean;
|
|
6
|
+
}): ElicitationHandler;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Telegraf } from 'telegraf';
|
|
2
|
+
import type { ElicitationHandler } from '../agent/elicitation-router.js';
|
|
3
|
+
export declare const ELICITATION_CALLBACK_PREFIX = "afk:pa:";
|
|
4
|
+
export declare function createTelegramElicitationHandler(bot: Telegraf, chatIds: Set<number>, log?: (...args: unknown[]) => void): ElicitationHandler;
|
|
5
|
+
export declare function composeTelegramElicitation(askHandler: ElicitationHandler, formHandler: ElicitationHandler): ElicitationHandler;
|
|
6
|
+
export declare function _resetPendingForTests(): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { classifyUsageLimitError } from '../agent/providers/anthropic-direct/usage-limit.js';
|
|
2
|
+
export type { UsageLimitClassification } from '../agent/providers/anthropic-direct/usage-limit.js';
|
|
3
|
+
export declare function isTelegramTransportError(error: unknown): boolean;
|
|
4
|
+
export { classifyUsageLimitError as classifyUsageLimit };
|
|
5
|
+
export { isRateLimitError, isNetworkError } from '../utils/error-classifiers.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const FARM_CALLBACK_PREFIX = "afk:f:";
|
|
2
|
+
export declare const TELEGRAM_CALLBACK_DATA_MAX_BYTES = 64;
|
|
3
|
+
export type FarmCallbackAction = 'p' | 'd' | 'r' | 'x';
|
|
4
|
+
export interface ParsedFarmCallback {
|
|
5
|
+
action: FarmCallbackAction;
|
|
6
|
+
taskSlug: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function parseFarmCallback(data: string | undefined | null): ParsedFarmCallback | null;
|
|
9
|
+
export declare function buildFarmCallback(action: FarmCallbackAction, taskSlug: string): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare function splitLongMessage(text: string, maxLength?: number): string[];
|
|
2
|
+
export declare function markdownToTelegramHtml(text: string): string;
|
|
3
|
+
export declare function escapeHtml(text: string): string;
|
|
4
|
+
export declare function formatSystemError(code: string, path: string): string;
|
|
5
|
+
export declare function formatQueued(depth: number): string;
|
|
6
|
+
export declare function escapeMarkdown(text: string): string;
|
|
7
|
+
export declare function formatError(error: Error | string): string;
|
|
8
|
+
export declare function formatInternalError(): string;
|
|
9
|
+
export declare function formatHelp(sdkCommands?: string[]): string;
|
|
10
|
+
export declare function formatWelcome(): string;
|
|
11
|
+
export declare function formatModelSwitch(model: string): string;
|
|
12
|
+
export declare function formatClear(): string;
|
|
13
|
+
export declare function formatCwdCurrent(cwd: string | undefined): string;
|
|
14
|
+
export declare function formatCwdSwitch(cwd: string): string;
|
|
15
|
+
export declare function formatNameCurrent(name: string | undefined): string;
|
|
16
|
+
export declare function formatNameInvalid(): string;
|
|
17
|
+
export declare function formatNameSet(name: string, resumeCommand?: string): string;
|
|
18
|
+
export declare function formatReset(): string;
|
|
19
|
+
export declare function formatCompact(opts?: {
|
|
20
|
+
before: number;
|
|
21
|
+
after: number;
|
|
22
|
+
tokensSavedEstimate?: number;
|
|
23
|
+
}): string;
|
|
24
|
+
export declare function formatCompactNoop(reason: string): string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Context } from 'telegraf';
|
|
2
|
+
import { SessionManager } from '../session-manager.js';
|
|
3
|
+
type LogFn = (...args: unknown[]) => void;
|
|
4
|
+
export declare const MODEL_ALIASES_HINT: readonly ["local", "small", "medium", "large", "opus", "opus_1m", "sonnet", "sonnet_1m", "haiku", "fable"];
|
|
5
|
+
export declare function handleClear(ctx: Context, sessionManager: SessionManager, registeredCommandChats: Set<number>, log: LogFn): Promise<void>;
|
|
6
|
+
export declare function handleCompact(ctx: Context, sessionManager: SessionManager, log: LogFn): Promise<void>;
|
|
7
|
+
export declare function handleModelSwitch(ctx: Context, sessionManager: SessionManager, log: LogFn): Promise<void>;
|
|
8
|
+
export declare function resolveCwdInput(input: string, base: string): string;
|
|
9
|
+
export declare function handleCwd(ctx: Context, sessionManager: SessionManager, log: LogFn): Promise<void>;
|
|
10
|
+
export declare function handleName(ctx: Context, sessionManager: SessionManager, log: LogFn): Promise<void>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Context } from 'telegraf';
|
|
2
|
+
import { loadFarm, recordHumanDecision, recordPrCreated, recordRespawn } from '../../agent/worktree.js';
|
|
3
|
+
import { checkGhReady, type CreatePrOpts, type ExecFn, type GhReadiness } from '../../agent/gh.js';
|
|
4
|
+
import { writeFarmDecisionFact } from '../../skills/score/memory-write.js';
|
|
5
|
+
import { resolveWinnerBranch } from '../../skills/score/winner.js';
|
|
6
|
+
type LogFn = (...args: unknown[]) => void;
|
|
7
|
+
export interface FarmCallbackDeps {
|
|
8
|
+
loadFarm?: typeof loadFarm;
|
|
9
|
+
recordHumanDecision?: typeof recordHumanDecision;
|
|
10
|
+
writeFarmDecisionFact?: typeof writeFarmDecisionFact;
|
|
11
|
+
resolveWinnerBranch?: typeof resolveWinnerBranch;
|
|
12
|
+
execGit?: (cwd: string, args: string[]) => Promise<{
|
|
13
|
+
stdout: string;
|
|
14
|
+
stderr: string;
|
|
15
|
+
}>;
|
|
16
|
+
log?: LogFn;
|
|
17
|
+
recordRespawn?: typeof recordRespawn;
|
|
18
|
+
spawnFarm?: (args: string[]) => void;
|
|
19
|
+
_now?: () => Date;
|
|
20
|
+
_randomSuffix?: () => string;
|
|
21
|
+
checkGhReady?: (opts?: Parameters<typeof checkGhReady>[0]) => Promise<GhReadiness>;
|
|
22
|
+
createPr?: (opts: CreatePrOpts, execFn?: ExecFn) => Promise<string>;
|
|
23
|
+
recordPrCreated?: typeof recordPrCreated;
|
|
24
|
+
}
|
|
25
|
+
export declare function handleFarmCallback(ctx: Context, deps?: FarmCallbackDeps): Promise<void>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Context } from 'telegraf';
|
|
2
|
+
import { Telegraf } from 'telegraf';
|
|
3
|
+
import { SessionManager } from '../session-manager.js';
|
|
4
|
+
type LogFn = (...args: unknown[]) => void;
|
|
5
|
+
export declare class MessageHandler {
|
|
6
|
+
private static readonly MAX_QUEUE_DEPTH;
|
|
7
|
+
private sessionManager;
|
|
8
|
+
private messageQueues;
|
|
9
|
+
private registeredCommandChats;
|
|
10
|
+
private log;
|
|
11
|
+
private bot;
|
|
12
|
+
pendingElicitations: Map<number, (text: string) => void>;
|
|
13
|
+
ledgerOriginatedPendingChats: Set<number>;
|
|
14
|
+
constructor(bot: Telegraf, sessionManager: SessionManager, registeredCommandChats: Set<number>, log: LogFn);
|
|
15
|
+
handlePhoto(ctx: Context): Promise<void>;
|
|
16
|
+
handle(ctx: Context): Promise<void>;
|
|
17
|
+
processClearDirect(chatId: number, ctx: Context): Promise<void>;
|
|
18
|
+
private processCompactDirect;
|
|
19
|
+
private enqueueMessage;
|
|
20
|
+
private enqueuePhoto;
|
|
21
|
+
enqueueClear(chatId: number, ctx: Context): void;
|
|
22
|
+
enqueueCompact(chatId: number, ctx: Context): void;
|
|
23
|
+
private processOne;
|
|
24
|
+
drainQueue(chatId: number): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Telegraf } from 'telegraf';
|
|
2
|
+
import type { IAgentSession } from '../../agent/types.js';
|
|
3
|
+
type LogFn = (...args: unknown[]) => void;
|
|
4
|
+
export declare function registerChatCommands(bot: Telegraf, chatId: number, session: IAgentSession, registeredCommandChats: Set<number>, log: LogFn): Promise<void>;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { TelegramBot } from './bot.js';
|
|
2
|
+
export type { BotOptions } from './bot.js';
|
|
3
|
+
export { SessionManager } from './session-manager.js';
|
|
4
|
+
export type { SessionManagerOptions } from './session-manager.js';
|
|
5
|
+
export { splitLongMessage, escapeMarkdown, formatError, formatWelcome, formatModelSwitch, formatClear, formatReset, formatCompact, formatCompactNoop, } from './formatter.js';
|
|
6
|
+
export { isRateLimitError, isNetworkError } from './error-utils.js';
|
|
7
|
+
export { streamResponse } from './streaming.js';
|
|
8
|
+
export { parseAllowedChatIds, createAllowlistMiddleware } from './allowlist.js';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface ManagerPaths {
|
|
2
|
+
pidFile: string;
|
|
3
|
+
logFile: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function getManagerPaths(): ManagerPaths;
|
|
6
|
+
export interface BotStatus {
|
|
7
|
+
running: boolean;
|
|
8
|
+
pid?: number;
|
|
9
|
+
uptimeSec?: number;
|
|
10
|
+
memoryMb?: number;
|
|
11
|
+
logTail?: string[];
|
|
12
|
+
pidFile: string;
|
|
13
|
+
logFile: string;
|
|
14
|
+
}
|
|
15
|
+
export interface StartResult {
|
|
16
|
+
kind: 'started';
|
|
17
|
+
pid: number;
|
|
18
|
+
logFile: string;
|
|
19
|
+
}
|
|
20
|
+
export interface StartFailure {
|
|
21
|
+
kind: 'already-running' | 'exited-immediately' | 'spawn-failed';
|
|
22
|
+
pid?: number;
|
|
23
|
+
logTail?: string[];
|
|
24
|
+
message: string;
|
|
25
|
+
}
|
|
26
|
+
export interface StopResult {
|
|
27
|
+
kind: 'stopped' | 'not-running' | 'force-killed';
|
|
28
|
+
pid?: number;
|
|
29
|
+
}
|
|
30
|
+
export declare function isRunning(pidFile: string): number | null;
|
|
31
|
+
export declare function resolveEntrypoint(searchDir?: string, existsCheck?: (path: string) => boolean): string;
|
|
32
|
+
export declare function start(): Promise<StartResult | StartFailure>;
|
|
33
|
+
export declare function stop(): Promise<StopResult>;
|
|
34
|
+
export declare function status(): BotStatus;
|
|
35
|
+
export declare function parseEtime(etime: string): number | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IAgentSession } from '../agent/types.js';
|
|
2
|
+
import { McpManager } from '../agent/mcp/index.js';
|
|
3
|
+
import type { TraceWriter } from '../agent/trace/index.js';
|
|
4
|
+
export interface LoadTelegramMcpManagerOptions {
|
|
5
|
+
traceWriter?: TraceWriter;
|
|
6
|
+
}
|
|
7
|
+
export declare function loadTelegramMcpManager(cwd: string | undefined, opts?: LoadTelegramMcpManagerOptions): Promise<McpManager | undefined>;
|
|
8
|
+
export declare function attachMcpCleanup<T extends IAgentSession>(session: T, mcpManager: McpManager | undefined): T;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type NotifyMode = 'primary' | 'broadcast' | 'custom';
|
|
2
|
+
export interface TelegramNotifyConfig {
|
|
3
|
+
mode?: NotifyMode;
|
|
4
|
+
primaryChatId?: number;
|
|
5
|
+
targets?: number[];
|
|
6
|
+
}
|
|
7
|
+
export declare function resolvePrimaryChatId(allowed: readonly number[], explicit?: number): number | undefined;
|
|
8
|
+
export declare function resolveNotifyTargets(allowlist: Set<number>, config?: TelegramNotifyConfig): number[];
|
|
9
|
+
export declare function parseChatId(raw: string | undefined): number | undefined;
|
|
10
|
+
export declare function parseMode(raw: string | undefined): NotifyMode | undefined;
|
|
11
|
+
export declare function loadNotifyConfig(): TelegramNotifyConfig;
|
|
12
|
+
export declare function resolveConfiguredNotifyTargets(): number[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { InlineKeyboardMarkup } from 'telegraf/types';
|
|
2
|
+
export interface PushOptions {
|
|
3
|
+
token: string;
|
|
4
|
+
chatId: string | number;
|
|
5
|
+
text: string;
|
|
6
|
+
parseMode?: 'MarkdownV2' | 'HTML' | 'Markdown';
|
|
7
|
+
replyMarkup?: InlineKeyboardMarkup;
|
|
8
|
+
fetchImpl?: typeof fetch;
|
|
9
|
+
apiBase?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface PushResult {
|
|
12
|
+
ok: boolean;
|
|
13
|
+
status: number;
|
|
14
|
+
errorMessage?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function push(options: PushOptions): Promise<PushResult>;
|
|
17
|
+
export declare function pushMarkdown(options: Omit<PushOptions, 'parseMode'>): Promise<PushResult>;
|
|
18
|
+
export declare function pushIfConfigured(text: string, opts?: {
|
|
19
|
+
parseMode?: PushOptions['parseMode'];
|
|
20
|
+
markdown?: boolean;
|
|
21
|
+
replyMarkup?: PushOptions['replyMarkup'];
|
|
22
|
+
fetchImpl?: typeof fetch;
|
|
23
|
+
}): Promise<PushResult[] | null>;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { IAgentSession, AgentConfig, AgentModelInput, ThinkingConfig, EffortLevel, ResponseMetadata } from '../agent/types.js';
|
|
2
|
+
export interface SessionManagerOptions {
|
|
3
|
+
dataDir?: string;
|
|
4
|
+
defaultModel?: AgentModelInput;
|
|
5
|
+
apiKey: string;
|
|
6
|
+
settingSources?: ('user' | 'project')[];
|
|
7
|
+
thinking?: ThinkingConfig;
|
|
8
|
+
effort?: EffortLevel;
|
|
9
|
+
botCwd?: string;
|
|
10
|
+
createSession: (config: AgentConfig) => Promise<IAgentSession>;
|
|
11
|
+
}
|
|
12
|
+
export declare class SessionManager {
|
|
13
|
+
private sessions;
|
|
14
|
+
private pendingSessions;
|
|
15
|
+
private sessionData;
|
|
16
|
+
private sessionStats;
|
|
17
|
+
private autosaveFailureLogged;
|
|
18
|
+
private options;
|
|
19
|
+
constructor(options: SessionManagerOptions);
|
|
20
|
+
getSessionIfExists(chatId: number): IAgentSession | undefined;
|
|
21
|
+
getSession(chatId: number): Promise<IAgentSession>;
|
|
22
|
+
private _touchActivity;
|
|
23
|
+
recordTelegramTurn(chatId: number, userText: string, assistantText: string, metadata?: ResponseMetadata): void;
|
|
24
|
+
private _hydrateStatsFromStore;
|
|
25
|
+
getSessionName(chatId: number): string | undefined;
|
|
26
|
+
setSessionName(chatId: number, slug: string): {
|
|
27
|
+
persisted: boolean;
|
|
28
|
+
};
|
|
29
|
+
private _getOrCreateStats;
|
|
30
|
+
private _resetStats;
|
|
31
|
+
resetSession(chatId: number): Promise<void>;
|
|
32
|
+
switchModel(chatId: number, model: AgentModelInput): Promise<void>;
|
|
33
|
+
getModel(chatId: number): AgentModelInput;
|
|
34
|
+
setCwd(chatId: number, cwd: string): Promise<void>;
|
|
35
|
+
getCwd(chatId: number): string | undefined;
|
|
36
|
+
loadSessions(): Promise<void>;
|
|
37
|
+
saveSessions(): Promise<void>;
|
|
38
|
+
closeAll(): Promise<void>;
|
|
39
|
+
getSessionCount(): number;
|
|
40
|
+
getChatCount(): number;
|
|
41
|
+
getBusySessionCount(): number;
|
|
42
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export declare function readEnvVarFromFile(filePath: string, key: string): string | undefined;
|
|
2
|
+
export interface CheckTokenResult {
|
|
3
|
+
set: boolean;
|
|
4
|
+
valid: boolean;
|
|
5
|
+
username?: string;
|
|
6
|
+
botId?: number;
|
|
7
|
+
reason?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function checkTokenFromFile(filePath: string): Promise<CheckTokenResult>;
|
|
10
|
+
export interface DiscoverChatResult {
|
|
11
|
+
found: boolean;
|
|
12
|
+
chats: DiscoveredChat[];
|
|
13
|
+
reason?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function discoverChatFromFile(filePath: string, opts?: {
|
|
16
|
+
timeoutSec?: number;
|
|
17
|
+
}): Promise<DiscoverChatResult>;
|
|
18
|
+
export interface BotIdentity {
|
|
19
|
+
id: number;
|
|
20
|
+
username?: string;
|
|
21
|
+
firstName: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function validateBotToken(token: string): Promise<BotIdentity | null>;
|
|
24
|
+
interface UpdateEntry {
|
|
25
|
+
message?: {
|
|
26
|
+
chat?: {
|
|
27
|
+
id?: number;
|
|
28
|
+
type?: string;
|
|
29
|
+
username?: string;
|
|
30
|
+
first_name?: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
edited_message?: {
|
|
34
|
+
chat?: {
|
|
35
|
+
id?: number;
|
|
36
|
+
type?: string;
|
|
37
|
+
username?: string;
|
|
38
|
+
first_name?: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
export interface DiscoveredChat {
|
|
43
|
+
chatId: number;
|
|
44
|
+
type: string;
|
|
45
|
+
username?: string;
|
|
46
|
+
firstName?: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function findChatIdInUpdates(updates: UpdateEntry[]): DiscoveredChat[];
|
|
49
|
+
export declare function fetchUpdates(token: string): Promise<UpdateEntry[]>;
|
|
50
|
+
export declare function pollForChats(token: string, opts?: {
|
|
51
|
+
maxAttempts?: number;
|
|
52
|
+
intervalMs?: number;
|
|
53
|
+
}): Promise<DiscoveredChat[]>;
|
|
54
|
+
export declare function runTelegramSetup(): Promise<{
|
|
55
|
+
envPath: string;
|
|
56
|
+
bot: BotIdentity;
|
|
57
|
+
chatId: number;
|
|
58
|
+
}>;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Context } from 'telegraf';
|
|
2
|
+
import { StreamTimeoutError } from './stream-timeout-error.js';
|
|
3
|
+
import type { IAgentSession, ResponseMetadata } from '../agent/types.js';
|
|
4
|
+
import type { ContentBlockParam } from '@anthropic-ai/sdk/resources';
|
|
5
|
+
export { StreamTimeoutError };
|
|
6
|
+
export declare function renderSubagentFooter(steps: number, recent: readonly string[]): string;
|
|
7
|
+
export declare function streamResponse(ctx: Context, session: IAgentSession, content: string | ContentBlockParam[], logger?: (...args: unknown[]) => void, options?: {
|
|
8
|
+
cleanFinal?: boolean;
|
|
9
|
+
onComplete?: (assistantText: string, metadata?: ResponseMetadata) => void | Promise<void>;
|
|
10
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface VersionDriftResult {
|
|
2
|
+
drift: boolean;
|
|
3
|
+
message?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare function checkVersionDrift(spawnedVersion: string, diskVersion: string): VersionDriftResult;
|
|
6
|
+
export declare const MAX_DRIFT_DEFERRALS = 12;
|
|
7
|
+
export type VersionDriftAction = 'none' | 'exit' | 'defer' | 'force-exit';
|
|
8
|
+
export interface VersionDriftDecisionInput {
|
|
9
|
+
drift: VersionDriftResult;
|
|
10
|
+
busyCount: number;
|
|
11
|
+
deferrals: number;
|
|
12
|
+
maxDeferrals?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface VersionDriftDecision {
|
|
15
|
+
action: VersionDriftAction;
|
|
16
|
+
deferrals: number;
|
|
17
|
+
message?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function decideVersionDriftAction(input: VersionDriftDecisionInput): VersionDriftDecision;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type LedgerRecord } from '../agent/session-ledger.js';
|
|
2
|
+
import type { MessageHandler } from './handlers/message.js';
|
|
3
|
+
import type { Telegraf } from 'telegraf';
|
|
4
|
+
type SendFn = (text: string) => Promise<void>;
|
|
5
|
+
type LogFn = (...args: unknown[]) => void;
|
|
6
|
+
export declare function renderLedgerRecord(rec: LedgerRecord): string | null;
|
|
7
|
+
export declare function resolveWatchTarget(input: string): Promise<string | null>;
|
|
8
|
+
export declare function listWatchableSessions(): Promise<string>;
|
|
9
|
+
export declare class SessionWatchManager {
|
|
10
|
+
private readonly watches;
|
|
11
|
+
private readonly log;
|
|
12
|
+
private readonly bot;
|
|
13
|
+
private readonly messageHandler;
|
|
14
|
+
constructor(log?: LogFn, bot?: Telegraf, messageHandler?: MessageHandler);
|
|
15
|
+
watching(chatId: number): string | undefined;
|
|
16
|
+
getWatched(chatId: number): string | undefined;
|
|
17
|
+
start(chatId: number, sessionId: string, send: SendFn): void;
|
|
18
|
+
stop(chatId: number): string | undefined;
|
|
19
|
+
stopAll(): Promise<void>;
|
|
20
|
+
private _run;
|
|
21
|
+
}
|
|
22
|
+
export {};
|