agent-afk 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agent/_lib/skill-sink-channel.d.ts +3 -0
- package/dist/agent/_lib/trusted-skill-events.d.ts +7 -0
- package/dist/agent/_lib/trusted-skill-registry.d.ts +3 -0
- package/dist/agent/abort-graph.d.ts +20 -0
- package/dist/agent/afk-channel.d.ts +9 -0
- package/dist/agent/afk-ledger-channel.d.ts +23 -0
- package/dist/agent/afk-mode-gate.d.ts +3 -0
- package/dist/agent/auth/credential-resolver.d.ts +3 -0
- package/dist/agent/auth/keychain.d.ts +4 -0
- package/dist/agent/awareness/index.d.ts +6 -0
- package/dist/agent/awareness/presence.d.ts +25 -0
- package/dist/agent/awareness/runtime-snapshot.d.ts +13 -0
- package/dist/agent/awareness/runtime-source.d.ts +18 -0
- package/dist/agent/awareness/tool.d.ts +7 -0
- package/dist/agent/awareness/types.d.ts +60 -0
- package/dist/agent/awareness/workspace-source.d.ts +2 -0
- package/dist/agent/background-registry.d.ts +57 -0
- package/dist/agent/background-summarizer.d.ts +43 -0
- package/dist/agent/bg-job-log.d.ts +41 -0
- package/dist/agent/daemon/gates.d.ts +20 -0
- package/dist/agent/daemon/http-client.d.ts +6 -0
- package/dist/agent/daemon/idle-detector.d.ts +7 -0
- package/dist/agent/daemon/queue-store.d.ts +13 -0
- package/dist/agent/daemon/schedule-store.d.ts +20 -0
- package/dist/agent/daemon/scheduler.d.ts +64 -0
- package/dist/agent/daemon/triggers.d.ts +10 -0
- package/dist/agent/daemon.d.ts +29 -0
- package/dist/agent/dag-subagent.d.ts +28 -0
- package/dist/agent/dag.d.ts +26 -0
- package/dist/agent/default-hook-registry.d.ts +23 -0
- package/dist/agent/elicitation-router.d.ts +20 -0
- package/dist/agent/facets/derive.d.ts +7 -0
- package/dist/agent/facets/index.d.ts +3 -0
- package/dist/agent/facets/raw-input.d.ts +3 -0
- package/dist/agent/facets/schema.d.ts +139 -0
- package/dist/agent/facets/store.d.ts +9 -0
- package/dist/agent/gh.d.ts +41 -0
- package/dist/agent/hook-registry.d.ts +9 -0
- package/dist/agent/hooks/command-executor.d.ts +12 -0
- package/dist/agent/hooks/config-bridge.d.ts +7 -0
- package/dist/agent/hooks/config-loader.d.ts +44 -0
- package/dist/agent/hooks.d.ts +88 -0
- package/dist/agent/index.d.ts +31 -0
- package/dist/agent/marketplaces/install.d.ts +23 -0
- package/dist/agent/marketplaces/manifest.d.ts +21 -0
- package/dist/agent/marketplaces/remove.d.ts +11 -0
- package/dist/agent/marketplaces/resolve.d.ts +27 -0
- package/dist/agent/marketplaces/update.d.ts +38 -0
- package/dist/agent/mcp/client.d.ts +28 -0
- package/dist/agent/mcp/config-loader.d.ts +22 -0
- package/dist/agent/mcp/env.d.ts +6 -0
- package/dist/agent/mcp/index.d.ts +8 -0
- package/dist/agent/mcp/manager.d.ts +23 -0
- package/dist/agent/mcp/naming.d.ts +20 -0
- package/dist/agent/mcp/oauth.d.ts +33 -0
- package/dist/agent/mcp/transport.d.ts +16 -0
- package/dist/agent/mcp/types.d.ts +22 -0
- package/dist/agent/memory/index.d.ts +5 -0
- package/dist/agent/memory/memory-evidence.d.ts +9 -0
- package/dist/agent/memory/memory-hooks.d.ts +3 -0
- package/dist/agent/memory/memory-loader.d.ts +3 -0
- package/dist/agent/memory/memory-store.d.ts +36 -0
- package/dist/agent/memory/memory-tool-renderers.d.ts +3 -0
- package/dist/agent/memory/memory-tools.d.ts +8 -0
- package/dist/agent/memory/types.d.ts +70 -0
- package/dist/agent/model-capabilities.d.ts +1 -0
- package/dist/agent/model-limits.d.ts +5 -0
- package/dist/agent/output-extractor.d.ts +1 -0
- package/dist/agent/permission-policy.d.ts +2 -0
- package/dist/agent/permissions-store.d.ts +28 -0
- package/dist/agent/permissions.d.ts +28 -0
- package/dist/agent/plan-mode-exit-prompt.d.ts +1 -0
- package/dist/agent/plan-mode-gate.d.ts +3 -0
- package/dist/agent/plugins/git-test-helpers.d.ts +2 -0
- package/dist/agent/plugins/git.d.ts +21 -0
- package/dist/agent/plugins/index-store.d.ts +32 -0
- package/dist/agent/plugins/install.d.ts +23 -0
- package/dist/agent/plugins/inventory.d.ts +16 -0
- package/dist/agent/plugins/load-entrypoints.d.ts +7 -0
- package/dist/agent/plugins/plugin-manifest.d.ts +5 -0
- package/dist/agent/plugins/remove.d.ts +10 -0
- package/dist/agent/plugins/source.d.ts +23 -0
- package/dist/agent/plugins/tool-injector.d.ts +18 -0
- package/dist/agent/plugins/update.d.ts +33 -0
- package/dist/agent/plugins/versions.d.ts +1 -0
- package/dist/agent/plugins-scanner.d.ts +9 -0
- package/dist/agent/provider.d.ts +212 -0
- package/dist/agent/providers/anthropic-direct/afk-mode-addendum.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/auth.d.ts +16 -0
- package/dist/agent/providers/anthropic-direct/cache-policy.d.ts +7 -0
- package/dist/agent/providers/anthropic-direct/compact.d.ts +10 -0
- package/dist/agent/providers/anthropic-direct/index.d.ts +75 -0
- package/dist/agent/providers/anthropic-direct/loop.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/oneshot.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/plan-mode-addendum.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/query/abort-coordinator.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/query/auto-compact.d.ts +15 -0
- package/dist/agent/providers/anthropic-direct/query/compact-handler.d.ts +12 -0
- package/dist/agent/providers/anthropic-direct/query/repair-orphan-tool-uses.d.ts +2 -0
- package/dist/agent/providers/anthropic-direct/query/retry-layer.d.ts +30 -0
- package/dist/agent/providers/anthropic-direct/query/session-state.d.ts +23 -0
- package/dist/agent/providers/anthropic-direct/query.d.ts +73 -0
- package/dist/agent/providers/anthropic-direct/resolve-params.d.ts +8 -0
- package/dist/agent/providers/anthropic-direct/tool-dispatcher.d.ts +7 -0
- package/dist/agent/providers/anthropic-direct/translate.d.ts +3 -0
- package/dist/agent/providers/anthropic-direct/types.d.ts +122 -0
- package/dist/agent/providers/anthropic-direct/usage-limit.d.ts +21 -0
- package/dist/agent/providers/index.d.ts +16 -0
- package/dist/agent/providers/openai-compatible/auth.d.ts +32 -0
- package/dist/agent/providers/openai-compatible/index.d.ts +53 -0
- package/dist/agent/providers/openai-compatible/loop.d.ts +47 -0
- package/dist/agent/providers/openai-compatible/messages.d.ts +33 -0
- package/dist/agent/providers/openai-compatible/oneshot.d.ts +17 -0
- package/dist/agent/providers/openai-compatible/query.d.ts +79 -0
- package/dist/agent/providers/openai-compatible/responses-config.d.ts +14 -0
- package/dist/agent/providers/openai-compatible/responses-messages.d.ts +54 -0
- package/dist/agent/providers/openai-compatible/responses-translate.d.ts +30 -0
- package/dist/agent/providers/openai-compatible/translate.d.ts +53 -0
- package/dist/agent/providers/router/provider-router.d.ts +55 -0
- package/dist/agent/query.d.ts +11 -0
- package/dist/agent/risk-classifier.d.ts +6 -0
- package/dist/agent/routing-directive.d.ts +5 -0
- package/dist/agent/routing-telemetry.d.ts +36 -0
- package/dist/agent/session/agent-session.d.ts +95 -0
- package/dist/agent/session/closure-guidance.d.ts +3 -0
- package/dist/agent/session/closure-reason.d.ts +11 -0
- package/dist/agent/session/hooks-dispatch.d.ts +9 -0
- package/dist/agent/session/input-iterable.d.ts +10 -0
- package/dist/agent/session/model-resolution.d.ts +5 -0
- package/dist/agent/session/model-slots.d.ts +24 -0
- package/dist/agent/session/phase-reducer.d.ts +3 -0
- package/dist/agent/session/prompt-dump.d.ts +33 -0
- package/dist/agent/session/session-identity.d.ts +6 -0
- package/dist/agent/session/session-setup.d.ts +6 -0
- package/dist/agent/session/session-state.d.ts +20 -0
- package/dist/agent/session/slot-credentials.d.ts +8 -0
- package/dist/agent/session/stream-consumer.d.ts +22 -0
- package/dist/agent/session-ledger.d.ts +81 -0
- package/dist/agent/session-ref.d.ts +4 -0
- package/dist/agent/session.d.ts +1 -0
- package/dist/agent/shadow-verify-nudge.d.ts +2 -0
- package/dist/agent/shell-jobs/index.d.ts +2 -0
- package/dist/agent/shell-jobs/registry.d.ts +36 -0
- package/dist/agent/shell-jobs/streamer.d.ts +33 -0
- package/dist/agent/signal-block.d.ts +45 -0
- package/dist/agent/subagent/handle.d.ts +51 -0
- package/dist/agent/subagent/result.d.ts +51 -0
- package/dist/agent/subagent/wave.d.ts +11 -0
- package/dist/agent/subagent-hooks.d.ts +12 -0
- package/dist/agent/subagent.d.ts +66 -0
- package/dist/agent/timeout.d.ts +7 -0
- package/dist/agent/tool-category.d.ts +9 -0
- package/dist/agent/tools/child-credential.d.ts +6 -0
- package/dist/agent/tools/compose-executor.d.ts +29 -0
- package/dist/agent/tools/custom-tool.d.ts +7 -0
- package/dist/agent/tools/dispatcher.d.ts +75 -0
- package/dist/agent/tools/handlers/_cwd-utils.d.ts +9 -0
- package/dist/agent/tools/handlers/ask-question.d.ts +2 -0
- package/dist/agent/tools/handlers/bash.d.ts +3 -0
- package/dist/agent/tools/handlers/browser-act.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-close.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-observe.d.ts +4 -0
- package/dist/agent/tools/handlers/browser-open.d.ts +6 -0
- package/dist/agent/tools/handlers/browser-screenshot.d.ts +4 -0
- package/dist/agent/tools/handlers/config-ops.d.ts +3 -0
- package/dist/agent/tools/handlers/edit-file.d.ts +2 -0
- package/dist/agent/tools/handlers/exit-plan-mode.d.ts +5 -0
- package/dist/agent/tools/handlers/glob.d.ts +3 -0
- package/dist/agent/tools/handlers/grep.d.ts +3 -0
- package/dist/agent/tools/handlers/index.d.ts +21 -0
- package/dist/agent/tools/handlers/list-directory.d.ts +2 -0
- package/dist/agent/tools/handlers/playwright-hints.d.ts +5 -0
- package/dist/agent/tools/handlers/read-file.d.ts +2 -0
- package/dist/agent/tools/handlers/schedules.d.ts +7 -0
- package/dist/agent/tools/handlers/send-telegram.d.ts +6 -0
- package/dist/agent/tools/handlers/terminal-font-size.d.ts +15 -0
- package/dist/agent/tools/handlers/test-runner-detector.d.ts +8 -0
- package/dist/agent/tools/handlers/web-scrape.d.ts +11 -0
- package/dist/agent/tools/handlers/write-denylist.d.ts +4 -0
- package/dist/agent/tools/handlers/write-file.d.ts +2 -0
- package/dist/agent/tools/hooks/bash-restriction-hook.d.ts +8 -0
- package/dist/agent/tools/hooks/path-approval-hook.d.ts +14 -0
- package/dist/agent/tools/index.d.ts +7 -0
- package/dist/agent/tools/nesting.d.ts +29 -0
- package/dist/agent/tools/permissions.d.ts +10 -0
- package/dist/agent/tools/readonly-bash.d.ts +4 -0
- package/dist/agent/tools/render-registry.d.ts +3 -0
- package/dist/agent/tools/renderers/bash-renderer.d.ts +1 -0
- package/dist/agent/tools/schemas.d.ts +29 -0
- package/dist/agent/tools/skill-bridge.d.ts +21 -0
- package/dist/agent/tools/skill-depth-message.d.ts +2 -0
- package/dist/agent/tools/skill-executor.d.ts +45 -0
- package/dist/agent/tools/subagent-executor.d.ts +57 -0
- package/dist/agent/tools/system-prompt.d.ts +6 -0
- package/dist/agent/tools/types.d.ts +17 -0
- package/dist/agent/trace/emit.d.ts +12 -0
- package/dist/agent/trace/events.d.ts +1052 -0
- package/dist/agent/trace/factory.d.ts +10 -0
- package/dist/agent/trace/index.d.ts +4 -0
- package/dist/agent/trace/receipt.d.ts +92 -0
- package/dist/agent/trace/types.d.ts +307 -0
- package/dist/agent/trace/writer.d.ts +42 -0
- package/dist/agent/transcript-search/transcript-index.d.ts +21 -0
- package/dist/agent/trusted-skill-result.d.ts +9 -0
- package/dist/agent/types/config-types.d.ts +86 -0
- package/dist/agent/types/message-types.d.ts +77 -0
- package/dist/agent/types/model-types.d.ts +2 -0
- package/dist/agent/types/permission-types.d.ts +8 -0
- package/dist/agent/types/sdk-types.d.ts +282 -0
- package/dist/agent/types/session-types.d.ts +134 -0
- package/dist/agent/types.d.ts +6 -0
- package/dist/agent/usage.d.ts +2 -0
- package/dist/agent/worktree-sweep.d.ts +52 -0
- package/dist/agent/worktree.d.ts +56 -0
- package/dist/browser/config.d.ts +13 -0
- package/dist/browser/playwright/index.d.ts +21 -0
- package/dist/browser/playwright/launcher.d.ts +32 -0
- package/dist/browser/playwright/observe.d.ts +12 -0
- package/dist/browser/playwright/resolve-target.d.ts +10 -0
- package/dist/browser/provider.d.ts +15 -0
- package/dist/browser/registry.d.ts +7 -0
- package/dist/browser/sanitize.d.ts +22 -0
- package/dist/browser/types.d.ts +139 -0
- package/dist/browser/witness.d.ts +11 -0
- package/dist/changelog.d.ts +13 -0
- package/dist/cli/_lib/capture-mode.d.ts +8 -0
- package/dist/cli/_lib/commit-block.d.ts +4 -0
- package/dist/cli/_lib/commit-coordinator.d.ts +13 -0
- package/dist/cli/_lib/dedup-line-writer.d.ts +5 -0
- package/dist/cli/_lib/overlay-composer.d.ts +18 -0
- package/dist/cli/_lib/sanitize.d.ts +1 -0
- package/dist/cli/_lib/stream-renderer-contexts.d.ts +43 -0
- package/dist/cli/_lib/stream-renderer-lifecycle.d.ts +33 -0
- package/dist/cli/_lib/stream-renderer-orchestrator-emit.d.ts +10 -0
- package/dist/cli/_lib/stream-renderer-orchestrator.d.ts +30 -0
- package/dist/cli/_lib/stream-renderer-source.d.ts +27 -0
- package/dist/cli/_lib/stream-renderer-subagent-helpers.d.ts +6 -0
- package/dist/cli/_lib/stream-renderer-subagent.d.ts +22 -0
- package/dist/cli/_lib/stream-renderer.d.ts +68 -0
- package/dist/cli/_lib/testing/virtual-screen.d.ts +54 -0
- package/dist/cli/afk-mode-toggle.d.ts +2 -0
- package/dist/cli/auth-wizard.d.ts +4 -0
- package/dist/cli/background/types.d.ts +8 -0
- package/dist/cli/background-status-bar.d.ts +37 -0
- package/dist/cli/clipboard.d.ts +7 -0
- package/dist/cli/color-config.d.ts +1 -0
- package/dist/cli/commands/bg.d.ts +2 -0
- package/dist/cli/commands/browser.d.ts +11 -0
- package/dist/cli/commands/chat.d.ts +2 -0
- package/dist/cli/commands/completion.d.ts +2 -0
- package/dist/cli/commands/config-command.d.ts +2 -0
- package/dist/cli/commands/daemon.d.ts +14 -0
- package/dist/cli/commands/doctor-checks.d.ts +19 -0
- package/dist/cli/commands/doctor.d.ts +2 -0
- package/dist/cli/commands/farm.d.ts +40 -0
- package/dist/cli/commands/improve.d.ts +2 -0
- package/dist/cli/commands/interactive/afk-push.d.ts +14 -0
- package/dist/cli/commands/interactive/at-file-inject.d.ts +17 -0
- package/dist/cli/commands/interactive/boot-prune.d.ts +8 -0
- package/dist/cli/commands/interactive/bootstrap.d.ts +30 -0
- package/dist/cli/commands/interactive/context-pane.d.ts +11 -0
- package/dist/cli/commands/interactive/footer-subsystems.d.ts +15 -0
- package/dist/cli/commands/interactive/loop-iteration.d.ts +7 -0
- package/dist/cli/commands/interactive/loop-stage.d.ts +34 -0
- package/dist/cli/commands/interactive/progress-banner.d.ts +5 -0
- package/dist/cli/commands/interactive/provider-factory.d.ts +2 -0
- package/dist/cli/commands/interactive/repl-loop-shared.d.ts +10 -0
- package/dist/cli/commands/interactive/repl-loop.d.ts +6 -0
- package/dist/cli/commands/interactive/repl-renderer.d.ts +16 -0
- package/dist/cli/commands/interactive/resume-swap.d.ts +23 -0
- package/dist/cli/commands/interactive/shared.d.ts +116 -0
- package/dist/cli/commands/interactive/shell-passthrough.d.ts +33 -0
- package/dist/cli/commands/interactive/surface-setup.d.ts +12 -0
- package/dist/cli/commands/interactive/terminal-state.d.ts +18 -0
- package/dist/cli/commands/interactive/thinking-lane.d.ts +18 -0
- package/dist/cli/commands/interactive/thinking-paragraph.d.ts +5 -0
- package/dist/cli/commands/interactive/tool-lane-format-args.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-format-diff.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-format-sanitize.d.ts +2 -0
- package/dist/cli/commands/interactive/tool-lane-format.d.ts +14 -0
- package/dist/cli/commands/interactive/tool-lane-render-agent.d.ts +7 -0
- package/dist/cli/commands/interactive/tool-lane-render-children.d.ts +4 -0
- package/dist/cli/commands/interactive/tool-lane-render-grouping-overflow.d.ts +15 -0
- package/dist/cli/commands/interactive/tool-lane-render-grouping.d.ts +23 -0
- package/dist/cli/commands/interactive/tool-lane-render.d.ts +45 -0
- package/dist/cli/commands/interactive/tool-lane.d.ts +31 -0
- package/dist/cli/commands/interactive/transcript.d.ts +9 -0
- package/dist/cli/commands/interactive/turn-handler.d.ts +16 -0
- package/dist/cli/commands/interactive/verdict-card.d.ts +3 -0
- package/dist/cli/commands/interactive/verdict-ledger.d.ts +19 -0
- package/dist/cli/commands/interactive/worktree-autoname.d.ts +42 -0
- package/dist/cli/commands/interactive/worktree.d.ts +33 -0
- package/dist/cli/commands/interactive.d.ts +11 -0
- package/dist/cli/commands/login-command.d.ts +5 -0
- package/dist/cli/commands/marketplace.d.ts +8 -0
- package/dist/cli/commands/migrate.d.ts +14 -0
- package/dist/cli/commands/plugin.d.ts +7 -0
- package/dist/cli/commands/provider.d.ts +9 -0
- package/dist/cli/commands/queue.d.ts +2 -0
- package/dist/cli/commands/schedule.d.ts +2 -0
- package/dist/cli/commands/service.d.ts +2 -0
- package/dist/cli/commands/shell-init.d.ts +6 -0
- package/dist/cli/commands/skill-router.d.ts +9 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/telegram.d.ts +2 -0
- package/dist/cli/commands/trace.d.ts +25 -0
- package/dist/cli/commands/transcript.d.ts +4 -0
- package/dist/cli/commands/update.d.ts +2 -0
- package/dist/cli/commands/worktree.d.ts +2 -0
- package/dist/cli/commit-mode.d.ts +25 -0
- package/dist/cli/config.d.ts +69 -0
- package/dist/cli/constants.d.ts +4 -0
- package/dist/cli/context-bar.d.ts +8 -0
- package/dist/cli/context-sampler.d.ts +43 -0
- package/dist/cli/context-sparkline.d.ts +1 -0
- package/dist/cli/cup-frame-renderer.d.ts +18 -0
- package/dist/cli/daemon-options.d.ts +11 -0
- package/dist/cli/debug-banner.d.ts +2 -0
- package/dist/cli/display.d.ts +19 -0
- package/dist/cli/elicitation-repl.d.ts +26 -0
- package/dist/cli/errors/classifier.d.ts +9 -0
- package/dist/cli/errors/index.d.ts +4 -0
- package/dist/cli/errors/presenter.d.ts +5 -0
- package/dist/cli/format-cwd.d.ts +5 -0
- package/dist/cli/format-utils.d.ts +4 -0
- package/dist/cli/formatter.d.ts +27 -0
- package/dist/cli/git-status-sampler.d.ts +43 -0
- package/dist/cli/hyperlink.d.ts +6 -0
- package/dist/cli/index.d.ts +4 -0
- package/dist/cli/input/attachments.d.ts +10 -0
- package/dist/cli/input/autocomplete-state.d.ts +11 -0
- package/dist/cli/input/caret-blink.d.ts +21 -0
- package/dist/cli/input/clipboard-image.d.ts +2 -0
- package/dist/cli/input/dropdown.d.ts +4 -0
- package/dist/cli/input/echo.d.ts +12 -0
- package/dist/cli/input/emit-keypress.d.ts +1 -0
- package/dist/cli/input/history.d.ts +15 -0
- package/dist/cli/input/input-surface.d.ts +63 -0
- package/dist/cli/input/non-tty.d.ts +2 -0
- package/dist/cli/input/raw-mode.d.ts +4 -0
- package/dist/cli/input/reader.d.ts +2 -0
- package/dist/cli/input/selectors.d.ts +3 -0
- package/dist/cli/input/spinner.d.ts +19 -0
- package/dist/cli/input/stdin-claim.d.ts +7 -0
- package/dist/cli/input/suggest.d.ts +36 -0
- package/dist/cli/input/trigger.d.ts +5 -0
- package/dist/cli/input/types.d.ts +53 -0
- package/dist/cli/input-box.d.ts +5 -0
- package/dist/cli/input-core.d.ts +37 -0
- package/dist/cli/input-highlight.d.ts +4 -0
- package/dist/cli/keychain.d.ts +1 -0
- package/dist/cli/loading-tips.d.ts +14 -0
- package/dist/cli/markdown-stream-format.d.ts +30 -0
- package/dist/cli/markdown-stream.d.ts +39 -0
- package/dist/cli/mascot.d.ts +6 -0
- package/dist/cli/model-limits.d.ts +1 -0
- package/dist/cli/multi-line-reader.d.ts +16 -0
- package/dist/cli/palette.d.ts +29 -0
- package/dist/cli/permission-mode-cycle.d.ts +3 -0
- package/dist/cli/plan-mode-toggle.d.ts +2 -0
- package/dist/cli/render/box.d.ts +8 -0
- package/dist/cli/render/card.d.ts +8 -0
- package/dist/cli/render/divider.d.ts +1 -0
- package/dist/cli/render/error-box.d.ts +1 -0
- package/dist/cli/render/help-table.d.ts +9 -0
- package/dist/cli/render/index.d.ts +9 -0
- package/dist/cli/render/picker.d.ts +15 -0
- package/dist/cli/render/progress-bar.d.ts +1 -0
- package/dist/cli/render/status-panel.d.ts +7 -0
- package/dist/cli/render/text-input.d.ts +9 -0
- package/dist/cli/render/usage-limit-box.d.ts +7 -0
- package/dist/cli/render/utils.d.ts +2 -0
- package/dist/cli/render/welcome-banner.d.ts +10 -0
- package/dist/cli/render.d.ts +1 -0
- package/dist/cli/resume-command.d.ts +3 -0
- package/dist/cli/resume-session.d.ts +13 -0
- package/dist/cli/session-name.d.ts +1 -0
- package/dist/cli/session-store.d.ts +51 -0
- package/dist/cli/shared-helpers.d.ts +33 -0
- package/dist/cli/slash/_lib/command-tags.d.ts +9 -0
- package/dist/cli/slash/_lib/create-skill-renderer.d.ts +9 -0
- package/dist/cli/slash/_lib/flag-harvest.d.ts +9 -0
- package/dist/cli/slash/_lib/image-blocks.d.ts +3 -0
- package/dist/cli/slash/_lib/review-post.d.ts +30 -0
- package/dist/cli/slash/_lib/run-skill-dispatch-turn.d.ts +11 -0
- package/dist/cli/slash/_lib/skill-message-bridge.d.ts +4 -0
- package/dist/cli/slash/_lib/skill-sink-channel.d.ts +1 -0
- package/dist/cli/slash/_lib/user-payload.d.ts +3 -0
- package/dist/cli/slash/builtin-skills.d.ts +4 -0
- package/dist/cli/slash/commands/afk.d.ts +2 -0
- package/dist/cli/slash/commands/allow-dir.d.ts +14 -0
- package/dist/cli/slash/commands/bgsub.d.ts +11 -0
- package/dist/cli/slash/commands/changelog.d.ts +2 -0
- package/dist/cli/slash/commands/config-doctor.d.ts +2 -0
- package/dist/cli/slash/commands/core.d.ts +2 -0
- package/dist/cli/slash/commands/font-size.d.ts +4 -0
- package/dist/cli/slash/commands/fork.d.ts +4 -0
- package/dist/cli/slash/commands/info.d.ts +2 -0
- package/dist/cli/slash/commands/init.d.ts +2 -0
- package/dist/cli/slash/commands/keys.d.ts +2 -0
- package/dist/cli/slash/commands/name.d.ts +2 -0
- package/dist/cli/slash/commands/plan.d.ts +2 -0
- package/dist/cli/slash/commands/reauth.d.ts +2 -0
- package/dist/cli/slash/commands/resume.d.ts +2 -0
- package/dist/cli/slash/commands/save.d.ts +2 -0
- package/dist/cli/slash/commands/sh.d.ts +4 -0
- package/dist/cli/slash/commands/stats.d.ts +2 -0
- package/dist/cli/slash/commands/todo.d.ts +2 -0
- package/dist/cli/slash/commands/transcript.d.ts +2 -0
- package/dist/cli/slash/commands/worktree.d.ts +2 -0
- package/dist/cli/slash/index.d.ts +3 -0
- package/dist/cli/slash/marketplace-browse.d.ts +1 -0
- package/dist/cli/slash/plugin-agents.d.ts +5 -0
- package/dist/cli/slash/plugin-skills.d.ts +32 -0
- package/dist/cli/slash/preflight/artifact-dir.d.ts +3 -0
- package/dist/cli/slash/preflight/index.d.ts +6 -0
- package/dist/cli/slash/preflight/registry.d.ts +8 -0
- package/dist/cli/slash/preflight/review-pr.d.ts +34 -0
- package/dist/cli/slash/preflight/stitch-forward.d.ts +1 -0
- package/dist/cli/slash/preflight/types.d.ts +18 -0
- package/dist/cli/slash/registry-exports.d.ts +2 -0
- package/dist/cli/slash/registry.d.ts +23 -0
- package/dist/cli/slash/session-stats.d.ts +6 -0
- package/dist/cli/slash/types.d.ts +103 -0
- package/dist/cli/slash/writer.d.ts +6 -0
- package/dist/cli/status-line.d.ts +51 -0
- package/dist/cli/syntax-highlight.d.ts +1 -0
- package/dist/cli/syntax-theme.d.ts +2 -0
- package/dist/cli/terminal-compositor.autocomplete.d.ts +16 -0
- package/dist/cli/terminal-compositor.committed-band-commit.d.ts +24 -0
- package/dist/cli/terminal-compositor.committed-band-repin.d.ts +3 -0
- package/dist/cli/terminal-compositor.committed-band.d.ts +2 -0
- package/dist/cli/terminal-compositor.d.ts +118 -0
- package/dist/cli/terminal-compositor.frame-preserve.d.ts +3 -0
- package/dist/cli/terminal-compositor.frame.d.ts +33 -0
- package/dist/cli/terminal-compositor.input-dispatch.d.ts +42 -0
- package/dist/cli/terminal-compositor.input-mode.d.ts +26 -0
- package/dist/cli/terminal-compositor.lifecycle.d.ts +40 -0
- package/dist/cli/terminal-compositor.paste.d.ts +16 -0
- package/dist/cli/terminal-compositor.render.d.ts +17 -0
- package/dist/cli/terminal-compositor.reset.d.ts +36 -0
- package/dist/cli/terminal-compositor.types.d.ts +80 -0
- package/dist/cli/terminal-size.d.ts +9 -0
- package/dist/cli/terminal-spawn/detect.d.ts +3 -0
- package/dist/cli/terminal-spawn/index.d.ts +29 -0
- package/dist/cli/terminal-spawn/spawners.d.ts +18 -0
- package/dist/cli/todo-panel.d.ts +18 -0
- package/dist/cli/tool-category.d.ts +9 -0
- package/dist/cli/trusted-skill-badge.d.ts +19 -0
- package/dist/cli/trusted-skill-ledger.d.ts +16 -0
- package/dist/cli/trusted-skills-registered.d.ts +1 -0
- package/dist/cli/update-checker.d.ts +10 -0
- package/dist/cli/version.d.ts +1 -0
- package/dist/cli/wrap.d.ts +4 -0
- package/dist/cli.mjs +410 -408
- package/dist/config/env.d.ts +136 -0
- package/dist/config/import-sources.d.ts +46 -0
- package/dist/config/mutate.d.ts +78 -0
- package/dist/config/settable-keys.d.ts +44 -0
- package/dist/improve/eval-gen/replay-fixture.d.ts +19 -0
- package/dist/improve/eval-gen/writer.d.ts +41 -0
- package/dist/improve/eval-run/contracts.d.ts +25 -0
- package/dist/improve/eval-run/replay.d.ts +25 -0
- package/dist/improve/eval-run/runner.d.ts +37 -0
- package/dist/improve/paths.d.ts +19 -0
- package/dist/improve/propose/template-engine.d.ts +7 -0
- package/dist/improve/propose/writer.d.ts +26 -0
- package/dist/improve/scan/card-writer.d.ts +38 -0
- package/dist/improve/scan/detectors/closure-anomaly.d.ts +8 -0
- package/dist/improve/scan/detectors/index.d.ts +20 -0
- package/dist/improve/scan/detectors/repeated-tool-use.d.ts +29 -0
- package/dist/improve/scan/detectors/subagent-block.d.ts +13 -0
- package/dist/improve/scan/detectors/tool-failure-density.d.ts +10 -0
- package/dist/improve/scan/reader.d.ts +38 -0
- package/dist/improve/schemas.d.ts +494 -0
- package/dist/improve/triage.d.ts +22 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +148 -146
- package/dist/paths.d.ts +57 -0
- package/dist/service/launchd/install.d.ts +35 -0
- package/dist/service/launchd/paths.d.ts +8 -0
- package/dist/service/launchd/plist.d.ts +15 -0
- package/dist/service/launchd/status.d.ts +15 -0
- package/dist/service/launchd.d.ts +4 -0
- package/dist/skills/_agents/contract.d.ts +5 -0
- package/dist/skills/_agents/git-investigator.d.ts +8 -0
- package/dist/skills/_agents/index.d.ts +4 -0
- package/dist/skills/_agents/research-agent.d.ts +7 -0
- package/dist/skills/_agents/to-definition.d.ts +7 -0
- package/dist/skills/_lib/confidence-gate.d.ts +10 -0
- package/dist/skills/_lib/emit-card.d.ts +3 -0
- package/dist/skills/_lib/prompt-loader.d.ts +1 -0
- package/dist/skills/all.d.ts +7 -0
- package/dist/skills/audit-fit/discover.d.ts +16 -0
- package/dist/skills/audit-fit/index.d.ts +100 -0
- package/dist/skills/diagnose/_phases/orchestrator.d.ts +4 -0
- package/dist/skills/diagnose/_phases/triage.d.ts +4 -0
- package/dist/skills/diagnose/_phases/types.d.ts +142 -0
- package/dist/skills/diagnose/_phases/verifier.d.ts +16 -0
- package/dist/skills/diagnose/index.d.ts +6 -0
- package/dist/skills/example-template/index.d.ts +1 -0
- package/dist/skills/get-started/index.d.ts +2 -0
- package/dist/skills/index.d.ts +28 -0
- package/dist/skills/mint/_phases/build.d.ts +7 -0
- package/dist/skills/mint/_phases/heal.d.ts +8 -0
- package/dist/skills/mint/_phases/parallelize-dispatch.d.ts +12 -0
- package/dist/skills/mint/_phases/plan.d.ts +2 -0
- package/dist/skills/mint/_phases/research.d.ts +2 -0
- package/dist/skills/mint/_phases/ship.d.ts +3 -0
- package/dist/skills/mint/_phases/spec.d.ts +2 -0
- package/dist/skills/mint/_phases/verify.d.ts +9 -0
- package/dist/skills/mint/index.d.ts +47 -0
- package/dist/skills/mint/state-store.d.ts +4 -0
- package/dist/skills/score/digest-keyboard.d.ts +2 -0
- package/dist/skills/score/digest.d.ts +10 -0
- package/dist/skills/score/farm-run-record.d.ts +20 -0
- package/dist/skills/score/index.d.ts +33 -0
- package/dist/skills/score/memory-write.d.ts +31 -0
- package/dist/skills/score/winner.d.ts +10 -0
- package/dist/skills/service-setup/index.d.ts +2 -0
- package/dist/skills/telegram-setup/index.d.ts +2 -0
- package/dist/skills/user-skills.d.ts +9 -0
- package/dist/telegram/allowlist.d.ts +4 -0
- package/dist/telegram/bot.d.ts +38 -0
- package/dist/telegram/construct-session.d.ts +11 -0
- package/dist/telegram/elicitation-callback-data.d.ts +11 -0
- package/dist/telegram/elicitation-handler.d.ts +6 -0
- package/dist/telegram/elicitation-telegram.d.ts +6 -0
- package/dist/telegram/error-utils.d.ts +5 -0
- package/dist/telegram/example.d.ts +1 -0
- package/dist/telegram/farm-callback-data.d.ts +9 -0
- package/dist/telegram/formatter.d.ts +24 -0
- package/dist/telegram/handlers/commands.d.ts +11 -0
- package/dist/telegram/handlers/farm-callbacks.d.ts +26 -0
- package/dist/telegram/handlers/help.d.ts +3 -0
- package/dist/telegram/handlers/message.d.ts +26 -0
- package/dist/telegram/handlers/registration.d.ts +5 -0
- package/dist/telegram/handlers/start.d.ts +2 -0
- package/dist/telegram/index.d.ts +8 -0
- package/dist/telegram/manager.d.ts +35 -0
- package/dist/telegram/mcp-session.d.ts +8 -0
- package/dist/telegram/notify-routing.d.ts +12 -0
- package/dist/telegram/push.d.ts +23 -0
- package/dist/telegram/session-manager.d.ts +42 -0
- package/dist/telegram/setup-wizard.d.ts +59 -0
- package/dist/telegram/stream-timeout-error.d.ts +3 -0
- package/dist/telegram/streaming.d.ts +10 -0
- package/dist/telegram/version-check.d.ts +19 -0
- package/dist/telegram/watch.d.ts +22 -0
- package/dist/telegram.d.ts +2 -0
- package/dist/telegram.mjs +178 -176
- package/dist/telemetry/schemas.d.ts +10 -0
- package/dist/utils/CircularBuffer.d.ts +13 -0
- package/dist/utils/cd-on-exit.d.ts +5 -0
- package/dist/utils/cleanupRegistry.d.ts +2 -0
- package/dist/utils/debug.d.ts +2 -0
- package/dist/utils/diff.d.ts +17 -0
- package/dist/utils/envFile.d.ts +5 -0
- package/dist/utils/envUtils.d.ts +2 -0
- package/dist/utils/error-classifiers.d.ts +2 -0
- package/dist/utils/errors.d.ts +38 -0
- package/dist/utils/json.d.ts +1 -0
- package/dist/utils/memoize.d.ts +9 -0
- package/dist/utils/prompt-secret.d.ts +1 -0
- package/dist/utils/terminal-sanitize.d.ts +2 -0
- package/dist/web/extract.d.ts +3 -0
- package/dist/web/index.d.ts +6 -0
- package/dist/web/scrape.d.ts +14 -0
- package/dist/web/search.d.ts +14 -0
- package/dist/web/types.d.ts +29 -0
- package/package.json +10 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { TraceEvent } from '../../agent/trace/types.js';
|
|
2
|
+
export interface ReaderEvent {
|
|
3
|
+
sessionId: string;
|
|
4
|
+
tracePath: string;
|
|
5
|
+
relativeTracePath: string;
|
|
6
|
+
lineNumber: number;
|
|
7
|
+
rawLine: string;
|
|
8
|
+
event: TraceEvent;
|
|
9
|
+
}
|
|
10
|
+
export interface SessionRead {
|
|
11
|
+
sessionId: string;
|
|
12
|
+
tracePath: string;
|
|
13
|
+
relativeTracePath: string;
|
|
14
|
+
sessionMtimeMs: number;
|
|
15
|
+
events: ReaderEvent[];
|
|
16
|
+
invalidLineCount: number;
|
|
17
|
+
}
|
|
18
|
+
export interface ScanResult {
|
|
19
|
+
sessionsScanned: number;
|
|
20
|
+
sessionsSkippedOld: number;
|
|
21
|
+
sessionsSkippedEmpty: number;
|
|
22
|
+
invalidLineCount: number;
|
|
23
|
+
sessions: SessionRead[];
|
|
24
|
+
}
|
|
25
|
+
export interface ScanOptions {
|
|
26
|
+
sinceMs?: number;
|
|
27
|
+
witnessRoot?: string;
|
|
28
|
+
afkHome?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function parseDuration(input: string): number | undefined;
|
|
31
|
+
export declare function scanWitness(options?: ScanOptions): ScanResult;
|
|
32
|
+
export declare function parseTraceContent(args: {
|
|
33
|
+
sessionId: string;
|
|
34
|
+
tracePath: string;
|
|
35
|
+
relativeTracePath: string;
|
|
36
|
+
content: string;
|
|
37
|
+
sessionMtimeMs: number;
|
|
38
|
+
}): SessionRead;
|
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const FailurePatternSchema: z.ZodEnum<{
|
|
3
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
4
|
+
"subagent-block": "subagent-block";
|
|
5
|
+
"closure-anomaly": "closure-anomaly";
|
|
6
|
+
"tool-failure-density": "tool-failure-density";
|
|
7
|
+
}>;
|
|
8
|
+
export type FailurePattern = z.infer<typeof FailurePatternSchema>;
|
|
9
|
+
export declare const SeveritySchema: z.ZodEnum<{
|
|
10
|
+
medium: "medium";
|
|
11
|
+
low: "low";
|
|
12
|
+
high: "high";
|
|
13
|
+
}>;
|
|
14
|
+
export type Severity = z.infer<typeof SeveritySchema>;
|
|
15
|
+
export declare const CardStatusSchema: z.ZodEnum<{
|
|
16
|
+
open: "open";
|
|
17
|
+
resolved: "resolved";
|
|
18
|
+
deferred: "deferred";
|
|
19
|
+
}>;
|
|
20
|
+
export type CardStatus = z.infer<typeof CardStatusSchema>;
|
|
21
|
+
export declare const FailureEvidenceSchema: z.ZodObject<{
|
|
22
|
+
sessionId: z.ZodString;
|
|
23
|
+
tracePath: z.ZodString;
|
|
24
|
+
eventIndices: z.ZodArray<z.ZodNumber>;
|
|
25
|
+
excerpt: z.ZodString;
|
|
26
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type FailureEvidence = z.infer<typeof FailureEvidenceSchema>;
|
|
29
|
+
export declare const TriageNoteSchema: z.ZodObject<{
|
|
30
|
+
at: z.ZodString;
|
|
31
|
+
text: z.ZodString;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export type TriageNote = z.infer<typeof TriageNoteSchema>;
|
|
34
|
+
export declare const FailureCardSchema: z.ZodObject<{
|
|
35
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
36
|
+
slug: z.ZodString;
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
pattern: z.ZodEnum<{
|
|
39
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
40
|
+
"subagent-block": "subagent-block";
|
|
41
|
+
"closure-anomaly": "closure-anomaly";
|
|
42
|
+
"tool-failure-density": "tool-failure-density";
|
|
43
|
+
}>;
|
|
44
|
+
severity: z.ZodEnum<{
|
|
45
|
+
medium: "medium";
|
|
46
|
+
low: "low";
|
|
47
|
+
high: "high";
|
|
48
|
+
}>;
|
|
49
|
+
status: z.ZodEnum<{
|
|
50
|
+
open: "open";
|
|
51
|
+
resolved: "resolved";
|
|
52
|
+
deferred: "deferred";
|
|
53
|
+
}>;
|
|
54
|
+
firstSeen: z.ZodString;
|
|
55
|
+
lastSeen: z.ZodString;
|
|
56
|
+
occurrenceCount: z.ZodNumber;
|
|
57
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
58
|
+
sessionId: z.ZodString;
|
|
59
|
+
tracePath: z.ZodString;
|
|
60
|
+
eventIndices: z.ZodArray<z.ZodNumber>;
|
|
61
|
+
excerpt: z.ZodString;
|
|
62
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
66
|
+
at: z.ZodString;
|
|
67
|
+
text: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type FailureCard = z.infer<typeof FailureCardSchema>;
|
|
71
|
+
export declare const DetectorResultSchema: z.ZodObject<{
|
|
72
|
+
slug: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
pattern: z.ZodEnum<{
|
|
75
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
76
|
+
"subagent-block": "subagent-block";
|
|
77
|
+
"closure-anomaly": "closure-anomaly";
|
|
78
|
+
"tool-failure-density": "tool-failure-density";
|
|
79
|
+
}>;
|
|
80
|
+
severity: z.ZodEnum<{
|
|
81
|
+
medium: "medium";
|
|
82
|
+
low: "low";
|
|
83
|
+
high: "high";
|
|
84
|
+
}>;
|
|
85
|
+
observedAt: z.ZodString;
|
|
86
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
87
|
+
sessionId: z.ZodString;
|
|
88
|
+
tracePath: z.ZodString;
|
|
89
|
+
eventIndices: z.ZodArray<z.ZodNumber>;
|
|
90
|
+
excerpt: z.ZodString;
|
|
91
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
92
|
+
}, z.core.$strip>>;
|
|
93
|
+
detail: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
export type DetectorResult = z.infer<typeof DetectorResultSchema>;
|
|
96
|
+
export declare const CardIndexEventSchema: z.ZodObject<{
|
|
97
|
+
timestamp: z.ZodString;
|
|
98
|
+
event: z.ZodEnum<{
|
|
99
|
+
created: "created";
|
|
100
|
+
updated: "updated";
|
|
101
|
+
"merged-noop": "merged-noop";
|
|
102
|
+
}>;
|
|
103
|
+
slug: z.ZodString;
|
|
104
|
+
pattern: z.ZodEnum<{
|
|
105
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
106
|
+
"subagent-block": "subagent-block";
|
|
107
|
+
"closure-anomaly": "closure-anomaly";
|
|
108
|
+
"tool-failure-density": "tool-failure-density";
|
|
109
|
+
}>;
|
|
110
|
+
occurrenceCount: z.ZodNumber;
|
|
111
|
+
evidenceAdded: z.ZodNumber;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
export type CardIndexEvent = z.infer<typeof CardIndexEventSchema>;
|
|
114
|
+
export declare const RootCauseClassSchema: z.ZodEnum<{
|
|
115
|
+
unknown: "unknown";
|
|
116
|
+
"prompt-defect": "prompt-defect";
|
|
117
|
+
"schema-too-strict": "schema-too-strict";
|
|
118
|
+
"schema-too-loose": "schema-too-loose";
|
|
119
|
+
"tool-output-shape": "tool-output-shape";
|
|
120
|
+
"hook-overreach": "hook-overreach";
|
|
121
|
+
"retry-policy": "retry-policy";
|
|
122
|
+
"timeout-too-low": "timeout-too-low";
|
|
123
|
+
"cost-control": "cost-control";
|
|
124
|
+
"dispatcher-bug": "dispatcher-bug";
|
|
125
|
+
"detector-needs-tuning": "detector-needs-tuning";
|
|
126
|
+
}>;
|
|
127
|
+
export type RootCauseClass = z.infer<typeof RootCauseClassSchema>;
|
|
128
|
+
export declare const RiskTierSchema: z.ZodEnum<{
|
|
129
|
+
high: "high";
|
|
130
|
+
safe: "safe";
|
|
131
|
+
forbidden: "forbidden";
|
|
132
|
+
moderate: "moderate";
|
|
133
|
+
}>;
|
|
134
|
+
export type RiskTier = z.infer<typeof RiskTierSchema>;
|
|
135
|
+
export declare const ConfidenceSchema: z.ZodEnum<{
|
|
136
|
+
medium: "medium";
|
|
137
|
+
low: "low";
|
|
138
|
+
high: "high";
|
|
139
|
+
}>;
|
|
140
|
+
export type Confidence = z.infer<typeof ConfidenceSchema>;
|
|
141
|
+
export declare const ProposalEvidenceRefSchema: z.ZodObject<{
|
|
142
|
+
cardSlug: z.ZodString;
|
|
143
|
+
eventIndices: z.ZodArray<z.ZodNumber>;
|
|
144
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type ProposalEvidenceRef = z.infer<typeof ProposalEvidenceRefSchema>;
|
|
147
|
+
export declare const LikelyFileSchema: z.ZodObject<{
|
|
148
|
+
path: z.ZodString;
|
|
149
|
+
rationale: z.ZodString;
|
|
150
|
+
riskTier: z.ZodEnum<{
|
|
151
|
+
high: "high";
|
|
152
|
+
safe: "safe";
|
|
153
|
+
forbidden: "forbidden";
|
|
154
|
+
moderate: "moderate";
|
|
155
|
+
}>;
|
|
156
|
+
confidence: z.ZodEnum<{
|
|
157
|
+
medium: "medium";
|
|
158
|
+
low: "low";
|
|
159
|
+
high: "high";
|
|
160
|
+
}>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export type LikelyFile = z.infer<typeof LikelyFileSchema>;
|
|
163
|
+
export declare const ValidationPlanSchema: z.ZodObject<{
|
|
164
|
+
unitTests: z.ZodArray<z.ZodString>;
|
|
165
|
+
evalCases: z.ZodArray<z.ZodString>;
|
|
166
|
+
smokeChecks: z.ZodArray<z.ZodString>;
|
|
167
|
+
manualChecks: z.ZodArray<z.ZodString>;
|
|
168
|
+
}, z.core.$strip>;
|
|
169
|
+
export type ValidationPlan = z.infer<typeof ValidationPlanSchema>;
|
|
170
|
+
export declare const ScopeFreezeSchema: z.ZodObject<{
|
|
171
|
+
forbiddenPaths: z.ZodArray<z.ZodString>;
|
|
172
|
+
requiresExplicitApproval: z.ZodBoolean;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
export type ScopeFreeze = z.infer<typeof ScopeFreezeSchema>;
|
|
175
|
+
export declare const ProposalStatusSchema: z.ZodEnum<{
|
|
176
|
+
rejected: "rejected";
|
|
177
|
+
approved: "approved";
|
|
178
|
+
draft: "draft";
|
|
179
|
+
superseded: "superseded";
|
|
180
|
+
}>;
|
|
181
|
+
export type ProposalStatus = z.infer<typeof ProposalStatusSchema>;
|
|
182
|
+
export declare const ImprovementProposalSchema: z.ZodObject<{
|
|
183
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
184
|
+
proposalId: z.ZodString;
|
|
185
|
+
cardSlug: z.ZodString;
|
|
186
|
+
title: z.ZodString;
|
|
187
|
+
hypothesis: z.ZodString;
|
|
188
|
+
rootCauseClass: z.ZodEnum<{
|
|
189
|
+
unknown: "unknown";
|
|
190
|
+
"prompt-defect": "prompt-defect";
|
|
191
|
+
"schema-too-strict": "schema-too-strict";
|
|
192
|
+
"schema-too-loose": "schema-too-loose";
|
|
193
|
+
"tool-output-shape": "tool-output-shape";
|
|
194
|
+
"hook-overreach": "hook-overreach";
|
|
195
|
+
"retry-policy": "retry-policy";
|
|
196
|
+
"timeout-too-low": "timeout-too-low";
|
|
197
|
+
"cost-control": "cost-control";
|
|
198
|
+
"dispatcher-bug": "dispatcher-bug";
|
|
199
|
+
"detector-needs-tuning": "detector-needs-tuning";
|
|
200
|
+
}>;
|
|
201
|
+
evidenceRefs: z.ZodArray<z.ZodObject<{
|
|
202
|
+
cardSlug: z.ZodString;
|
|
203
|
+
eventIndices: z.ZodArray<z.ZodNumber>;
|
|
204
|
+
annotation: z.ZodOptional<z.ZodString>;
|
|
205
|
+
}, z.core.$strip>>;
|
|
206
|
+
fixSketch: z.ZodString;
|
|
207
|
+
likelyFiles: z.ZodArray<z.ZodObject<{
|
|
208
|
+
path: z.ZodString;
|
|
209
|
+
rationale: z.ZodString;
|
|
210
|
+
riskTier: z.ZodEnum<{
|
|
211
|
+
high: "high";
|
|
212
|
+
safe: "safe";
|
|
213
|
+
forbidden: "forbidden";
|
|
214
|
+
moderate: "moderate";
|
|
215
|
+
}>;
|
|
216
|
+
confidence: z.ZodEnum<{
|
|
217
|
+
medium: "medium";
|
|
218
|
+
low: "low";
|
|
219
|
+
high: "high";
|
|
220
|
+
}>;
|
|
221
|
+
}, z.core.$strip>>;
|
|
222
|
+
riskLevel: z.ZodEnum<{
|
|
223
|
+
medium: "medium";
|
|
224
|
+
low: "low";
|
|
225
|
+
high: "high";
|
|
226
|
+
}>;
|
|
227
|
+
validationPlan: z.ZodObject<{
|
|
228
|
+
unitTests: z.ZodArray<z.ZodString>;
|
|
229
|
+
evalCases: z.ZodArray<z.ZodString>;
|
|
230
|
+
smokeChecks: z.ZodArray<z.ZodString>;
|
|
231
|
+
manualChecks: z.ZodArray<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>;
|
|
233
|
+
scopeFreeze: z.ZodObject<{
|
|
234
|
+
forbiddenPaths: z.ZodArray<z.ZodString>;
|
|
235
|
+
requiresExplicitApproval: z.ZodBoolean;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
generatedBy: z.ZodEnum<{
|
|
238
|
+
template: "template";
|
|
239
|
+
llm: "llm";
|
|
240
|
+
}>;
|
|
241
|
+
createdAt: z.ZodString;
|
|
242
|
+
status: z.ZodEnum<{
|
|
243
|
+
rejected: "rejected";
|
|
244
|
+
approved: "approved";
|
|
245
|
+
draft: "draft";
|
|
246
|
+
superseded: "superseded";
|
|
247
|
+
}>;
|
|
248
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
249
|
+
at: z.ZodString;
|
|
250
|
+
text: z.ZodString;
|
|
251
|
+
}, z.core.$strip>>>;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export type ImprovementProposal = z.infer<typeof ImprovementProposalSchema>;
|
|
254
|
+
export declare const ProposalIndexEventSchema: z.ZodObject<{
|
|
255
|
+
timestamp: z.ZodString;
|
|
256
|
+
event: z.ZodEnum<{
|
|
257
|
+
created: "created";
|
|
258
|
+
superseded: "superseded";
|
|
259
|
+
triaged: "triaged";
|
|
260
|
+
}>;
|
|
261
|
+
proposalId: z.ZodString;
|
|
262
|
+
cardSlug: z.ZodString;
|
|
263
|
+
generatedBy: z.ZodEnum<{
|
|
264
|
+
template: "template";
|
|
265
|
+
llm: "llm";
|
|
266
|
+
}>;
|
|
267
|
+
riskLevel: z.ZodEnum<{
|
|
268
|
+
medium: "medium";
|
|
269
|
+
low: "low";
|
|
270
|
+
high: "high";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strip>;
|
|
273
|
+
export type ProposalIndexEvent = z.infer<typeof ProposalIndexEventSchema>;
|
|
274
|
+
export declare const EvalReplaySchema: z.ZodObject<{
|
|
275
|
+
sourceSessionId: z.ZodString;
|
|
276
|
+
sourceTracePath: z.ZodString;
|
|
277
|
+
fixturePath: z.ZodString;
|
|
278
|
+
evidenceRowIndex: z.ZodNumber;
|
|
279
|
+
evidenceEventIndices: z.ZodArray<z.ZodNumber>;
|
|
280
|
+
sliceLineRange: z.ZodObject<{
|
|
281
|
+
startLine: z.ZodNumber;
|
|
282
|
+
endLine: z.ZodNumber;
|
|
283
|
+
}, z.core.$strip>;
|
|
284
|
+
sliceLineCount: z.ZodNumber;
|
|
285
|
+
sliceSha256: z.ZodString;
|
|
286
|
+
}, z.core.$strip>;
|
|
287
|
+
export type EvalReplay = z.infer<typeof EvalReplaySchema>;
|
|
288
|
+
export declare const EvalAssertionSchema: z.ZodObject<{
|
|
289
|
+
kind: z.ZodLiteral<"pattern-absent">;
|
|
290
|
+
patternId: z.ZodEnum<{
|
|
291
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
292
|
+
"subagent-block": "subagent-block";
|
|
293
|
+
"closure-anomaly": "closure-anomaly";
|
|
294
|
+
"tool-failure-density": "tool-failure-density";
|
|
295
|
+
}>;
|
|
296
|
+
detectorVersion: z.ZodString;
|
|
297
|
+
rationale: z.ZodString;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
export type EvalAssertion = z.infer<typeof EvalAssertionSchema>;
|
|
300
|
+
export declare const EvalProvenanceSchema: z.ZodObject<{
|
|
301
|
+
detectorAtGeneration: z.ZodString;
|
|
302
|
+
fingerprintAtGeneration: z.ZodNullable<z.ZodString>;
|
|
303
|
+
cardOccurrenceCountAtGeneration: z.ZodNumber;
|
|
304
|
+
cardLastSeenAtGeneration: z.ZodString;
|
|
305
|
+
generatedBy: z.ZodLiteral<"replay-fixture">;
|
|
306
|
+
}, z.core.$strip>;
|
|
307
|
+
export type EvalProvenance = z.infer<typeof EvalProvenanceSchema>;
|
|
308
|
+
export declare const EvalCaseStatusSchema: z.ZodEnum<{
|
|
309
|
+
rejected: "rejected";
|
|
310
|
+
approved: "approved";
|
|
311
|
+
draft: "draft";
|
|
312
|
+
superseded: "superseded";
|
|
313
|
+
}>;
|
|
314
|
+
export type EvalCaseStatus = z.infer<typeof EvalCaseStatusSchema>;
|
|
315
|
+
export declare const EvalCaseSchema: z.ZodObject<{
|
|
316
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
317
|
+
evalCaseId: z.ZodString;
|
|
318
|
+
cardSlug: z.ZodString;
|
|
319
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
320
|
+
title: z.ZodString;
|
|
321
|
+
createdAt: z.ZodString;
|
|
322
|
+
kind: z.ZodLiteral<"replay">;
|
|
323
|
+
replay: z.ZodObject<{
|
|
324
|
+
sourceSessionId: z.ZodString;
|
|
325
|
+
sourceTracePath: z.ZodString;
|
|
326
|
+
fixturePath: z.ZodString;
|
|
327
|
+
evidenceRowIndex: z.ZodNumber;
|
|
328
|
+
evidenceEventIndices: z.ZodArray<z.ZodNumber>;
|
|
329
|
+
sliceLineRange: z.ZodObject<{
|
|
330
|
+
startLine: z.ZodNumber;
|
|
331
|
+
endLine: z.ZodNumber;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
sliceLineCount: z.ZodNumber;
|
|
334
|
+
sliceSha256: z.ZodString;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
assertion: z.ZodObject<{
|
|
337
|
+
kind: z.ZodLiteral<"pattern-absent">;
|
|
338
|
+
patternId: z.ZodEnum<{
|
|
339
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
340
|
+
"subagent-block": "subagent-block";
|
|
341
|
+
"closure-anomaly": "closure-anomaly";
|
|
342
|
+
"tool-failure-density": "tool-failure-density";
|
|
343
|
+
}>;
|
|
344
|
+
detectorVersion: z.ZodString;
|
|
345
|
+
rationale: z.ZodString;
|
|
346
|
+
}, z.core.$strip>;
|
|
347
|
+
provenance: z.ZodObject<{
|
|
348
|
+
detectorAtGeneration: z.ZodString;
|
|
349
|
+
fingerprintAtGeneration: z.ZodNullable<z.ZodString>;
|
|
350
|
+
cardOccurrenceCountAtGeneration: z.ZodNumber;
|
|
351
|
+
cardLastSeenAtGeneration: z.ZodString;
|
|
352
|
+
generatedBy: z.ZodLiteral<"replay-fixture">;
|
|
353
|
+
}, z.core.$strip>;
|
|
354
|
+
status: z.ZodEnum<{
|
|
355
|
+
rejected: "rejected";
|
|
356
|
+
approved: "approved";
|
|
357
|
+
draft: "draft";
|
|
358
|
+
superseded: "superseded";
|
|
359
|
+
}>;
|
|
360
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
361
|
+
at: z.ZodString;
|
|
362
|
+
text: z.ZodString;
|
|
363
|
+
}, z.core.$strip>>>;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
export type EvalCase = z.infer<typeof EvalCaseSchema>;
|
|
366
|
+
export declare const EvalCaseIndexEventSchema: z.ZodObject<{
|
|
367
|
+
timestamp: z.ZodString;
|
|
368
|
+
event: z.ZodEnum<{
|
|
369
|
+
created: "created";
|
|
370
|
+
superseded: "superseded";
|
|
371
|
+
triaged: "triaged";
|
|
372
|
+
}>;
|
|
373
|
+
evalCaseId: z.ZodString;
|
|
374
|
+
cardSlug: z.ZodString;
|
|
375
|
+
proposalId: z.ZodNullable<z.ZodString>;
|
|
376
|
+
kind: z.ZodLiteral<"replay">;
|
|
377
|
+
}, z.core.$strip>;
|
|
378
|
+
export type EvalCaseIndexEvent = z.infer<typeof EvalCaseIndexEventSchema>;
|
|
379
|
+
export declare const EvalCheckStatusSchema: z.ZodEnum<{
|
|
380
|
+
skipped: "skipped";
|
|
381
|
+
pass: "pass";
|
|
382
|
+
fail: "fail";
|
|
383
|
+
}>;
|
|
384
|
+
export type EvalCheckStatus = z.infer<typeof EvalCheckStatusSchema>;
|
|
385
|
+
export declare const EvalCheckSchema: z.ZodObject<{
|
|
386
|
+
name: z.ZodString;
|
|
387
|
+
description: z.ZodString;
|
|
388
|
+
status: z.ZodEnum<{
|
|
389
|
+
skipped: "skipped";
|
|
390
|
+
pass: "pass";
|
|
391
|
+
fail: "fail";
|
|
392
|
+
}>;
|
|
393
|
+
expected: z.ZodString;
|
|
394
|
+
actual: z.ZodString;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
export type EvalCheck = z.infer<typeof EvalCheckSchema>;
|
|
397
|
+
export declare const EvalRunEvidenceKindSchema: z.ZodEnum<{
|
|
398
|
+
"config-value": "config-value";
|
|
399
|
+
"observed-behavior": "observed-behavior";
|
|
400
|
+
"source-symbol": "source-symbol";
|
|
401
|
+
fixture: "fixture";
|
|
402
|
+
}>;
|
|
403
|
+
export type EvalRunEvidenceKind = z.infer<typeof EvalRunEvidenceKindSchema>;
|
|
404
|
+
export declare const EvalRunEvidenceRefSchema: z.ZodObject<{
|
|
405
|
+
kind: z.ZodEnum<{
|
|
406
|
+
"config-value": "config-value";
|
|
407
|
+
"observed-behavior": "observed-behavior";
|
|
408
|
+
"source-symbol": "source-symbol";
|
|
409
|
+
fixture: "fixture";
|
|
410
|
+
}>;
|
|
411
|
+
ref: z.ZodString;
|
|
412
|
+
detail: z.ZodString;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
export type EvalRunEvidenceRef = z.infer<typeof EvalRunEvidenceRefSchema>;
|
|
415
|
+
export declare const EvalRunStatusSchema: z.ZodEnum<{
|
|
416
|
+
error: "error";
|
|
417
|
+
pass: "pass";
|
|
418
|
+
fail: "fail";
|
|
419
|
+
unsupported: "unsupported";
|
|
420
|
+
}>;
|
|
421
|
+
export type EvalRunStatus = z.infer<typeof EvalRunStatusSchema>;
|
|
422
|
+
export declare const EvalRunSchema: z.ZodObject<{
|
|
423
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
424
|
+
evalRunId: z.ZodString;
|
|
425
|
+
evalCaseId: z.ZodString;
|
|
426
|
+
cardSlug: z.ZodString;
|
|
427
|
+
patternId: z.ZodEnum<{
|
|
428
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
429
|
+
"subagent-block": "subagent-block";
|
|
430
|
+
"closure-anomaly": "closure-anomaly";
|
|
431
|
+
"tool-failure-density": "tool-failure-density";
|
|
432
|
+
}>;
|
|
433
|
+
contract: z.ZodNullable<z.ZodString>;
|
|
434
|
+
status: z.ZodEnum<{
|
|
435
|
+
error: "error";
|
|
436
|
+
pass: "pass";
|
|
437
|
+
fail: "fail";
|
|
438
|
+
unsupported: "unsupported";
|
|
439
|
+
}>;
|
|
440
|
+
createdAt: z.ZodString;
|
|
441
|
+
durationMs: z.ZodNumber;
|
|
442
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
description: z.ZodString;
|
|
445
|
+
status: z.ZodEnum<{
|
|
446
|
+
skipped: "skipped";
|
|
447
|
+
pass: "pass";
|
|
448
|
+
fail: "fail";
|
|
449
|
+
}>;
|
|
450
|
+
expected: z.ZodString;
|
|
451
|
+
actual: z.ZodString;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
evidence: z.ZodArray<z.ZodObject<{
|
|
454
|
+
kind: z.ZodEnum<{
|
|
455
|
+
"config-value": "config-value";
|
|
456
|
+
"observed-behavior": "observed-behavior";
|
|
457
|
+
"source-symbol": "source-symbol";
|
|
458
|
+
fixture: "fixture";
|
|
459
|
+
}>;
|
|
460
|
+
ref: z.ZodString;
|
|
461
|
+
detail: z.ZodString;
|
|
462
|
+
}, z.core.$strip>>;
|
|
463
|
+
runner: z.ZodObject<{
|
|
464
|
+
version: z.ZodString;
|
|
465
|
+
mode: z.ZodLiteral<"deterministic">;
|
|
466
|
+
}, z.core.$strip>;
|
|
467
|
+
notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
468
|
+
at: z.ZodString;
|
|
469
|
+
text: z.ZodString;
|
|
470
|
+
}, z.core.$strip>>>;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
export type EvalRun = z.infer<typeof EvalRunSchema>;
|
|
473
|
+
export declare const EvalRunIndexEventSchema: z.ZodObject<{
|
|
474
|
+
timestamp: z.ZodString;
|
|
475
|
+
event: z.ZodLiteral<"created">;
|
|
476
|
+
evalRunId: z.ZodString;
|
|
477
|
+
evalCaseId: z.ZodString;
|
|
478
|
+
cardSlug: z.ZodString;
|
|
479
|
+
patternId: z.ZodEnum<{
|
|
480
|
+
"repeated-tool-use": "repeated-tool-use";
|
|
481
|
+
"subagent-block": "subagent-block";
|
|
482
|
+
"closure-anomaly": "closure-anomaly";
|
|
483
|
+
"tool-failure-density": "tool-failure-density";
|
|
484
|
+
}>;
|
|
485
|
+
contract: z.ZodNullable<z.ZodString>;
|
|
486
|
+
status: z.ZodEnum<{
|
|
487
|
+
error: "error";
|
|
488
|
+
pass: "pass";
|
|
489
|
+
fail: "fail";
|
|
490
|
+
unsupported: "unsupported";
|
|
491
|
+
}>;
|
|
492
|
+
}, z.core.$strip>;
|
|
493
|
+
export type EvalRunIndexEvent = z.infer<typeof EvalRunIndexEventSchema>;
|
|
494
|
+
export declare const DEFAULT_FORBIDDEN_PATH_GLOBS: readonly string[];
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type CardStatus, type FailureCard } from './schemas.js';
|
|
2
|
+
export declare class TriageError extends Error {
|
|
3
|
+
readonly code: 'card-not-found' | 'invalid-note' | 'invalid-status' | 'no-change';
|
|
4
|
+
constructor(code: 'card-not-found' | 'invalid-note' | 'invalid-status' | 'no-change', message: string);
|
|
5
|
+
}
|
|
6
|
+
export interface TriageOptions {
|
|
7
|
+
note?: string;
|
|
8
|
+
status?: CardStatus;
|
|
9
|
+
now?: () => Date;
|
|
10
|
+
}
|
|
11
|
+
export interface TriageOutcome {
|
|
12
|
+
slug: string;
|
|
13
|
+
card: FailureCard;
|
|
14
|
+
noteAdded: boolean;
|
|
15
|
+
statusChanged: {
|
|
16
|
+
from: CardStatus;
|
|
17
|
+
to: CardStatus;
|
|
18
|
+
} | undefined;
|
|
19
|
+
jsonPath: string;
|
|
20
|
+
markdownPath: string;
|
|
21
|
+
}
|
|
22
|
+
export declare function triageCard(slug: string, options: TriageOptions): TriageOutcome;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { AgentSession, query, queryText, queryStructured, SubagentManager, createCanUseToolHook, OpenAICompatibleProvider, openaiCompatibleProvider, providerForModel, resolveProvider, tool, } from './agent/index.js';
|
|
2
|
+
export type { AccountInfo, AgentConfig, AgentModelInput, BundledProviderName, CanUseTool, CanUseToolContext, ClaudeModel, ForkSubagentOptions, IAgentSession, McpServerStatus, Message, MessageChunk, MessageRole, ModelInfo, ModelProvider, OutputEvent, PermissionBubbler, PermissionDecision, PermissionMode, ProviderEvent, ProviderQuery, ProviderUserTurn, QueryOptions, RenderHints, ResponseMetadata, SDKStatus, SendMessageOptions, StructuredMessageOptions, SessionIdentity, SessionMetadata, SessionState, SessionRef, SlashCommand, SubagentHandle, SubagentManagerOptions, SubagentResult, SubagentStatus, ToolConfig, ToolDiffChunk, ToolPermission, ToolPermissionMode, ToolPermissionRules, ToolResultChunk, CustomToolDef, } from './agent/index.js';
|
|
3
|
+
export type { DiffHunk, DiffLine, DiffPayload } from './utils/diff.js';
|
|
4
|
+
export { TelegramBot, SessionManager } from './telegram/index.js';
|
|
5
|
+
export type { BotOptions, SessionManagerOptions } from './telegram/index.js';
|