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,1079 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ToolCallStartedPayloadSchema: z.ZodObject<{
|
|
3
|
+
phase: z.ZodLiteral<"started">;
|
|
4
|
+
toolUseId: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
inputBytes: z.ZodNumber;
|
|
7
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
export declare const ToolFailureClassSchema: z.ZodEnum<{
|
|
10
|
+
abort: "abort";
|
|
11
|
+
"policy-refusal": "policy-refusal";
|
|
12
|
+
timeout: "timeout";
|
|
13
|
+
"permission-denied": "permission-denied";
|
|
14
|
+
"hook-block": "hook-block";
|
|
15
|
+
"elicitation-declined": "elicitation-declined";
|
|
16
|
+
}>;
|
|
17
|
+
export declare const ToolCallCompletedPayloadSchema: z.ZodObject<{
|
|
18
|
+
phase: z.ZodLiteral<"completed">;
|
|
19
|
+
toolUseId: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
resultBytes: z.ZodNumber;
|
|
22
|
+
isError: z.ZodBoolean;
|
|
23
|
+
truncated: z.ZodBoolean;
|
|
24
|
+
durationMs: z.ZodNumber;
|
|
25
|
+
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
27
|
+
abort: "abort";
|
|
28
|
+
"policy-refusal": "policy-refusal";
|
|
29
|
+
timeout: "timeout";
|
|
30
|
+
"permission-denied": "permission-denied";
|
|
31
|
+
"hook-block": "hook-block";
|
|
32
|
+
"elicitation-declined": "elicitation-declined";
|
|
33
|
+
}>>;
|
|
34
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const ToolCallPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
37
|
+
phase: z.ZodLiteral<"started">;
|
|
38
|
+
toolUseId: z.ZodString;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
inputBytes: z.ZodNumber;
|
|
41
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
43
|
+
phase: z.ZodLiteral<"completed">;
|
|
44
|
+
toolUseId: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
resultBytes: z.ZodNumber;
|
|
47
|
+
isError: z.ZodBoolean;
|
|
48
|
+
truncated: z.ZodBoolean;
|
|
49
|
+
durationMs: z.ZodNumber;
|
|
50
|
+
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
abort: "abort";
|
|
53
|
+
"policy-refusal": "policy-refusal";
|
|
54
|
+
timeout: "timeout";
|
|
55
|
+
"permission-denied": "permission-denied";
|
|
56
|
+
"hook-block": "hook-block";
|
|
57
|
+
"elicitation-declined": "elicitation-declined";
|
|
58
|
+
}>>;
|
|
59
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>], "phase">;
|
|
61
|
+
export declare const HookEventNameSchema: z.ZodEnum<{
|
|
62
|
+
PreToolUse: "PreToolUse";
|
|
63
|
+
PostToolUse: "PostToolUse";
|
|
64
|
+
PostToolUseFailure: "PostToolUseFailure";
|
|
65
|
+
SessionStart: "SessionStart";
|
|
66
|
+
SessionEnd: "SessionEnd";
|
|
67
|
+
SubagentStart: "SubagentStart";
|
|
68
|
+
SubagentStop: "SubagentStop";
|
|
69
|
+
}>;
|
|
70
|
+
export declare const HookDecisionPayloadSchema: z.ZodObject<{
|
|
71
|
+
hookEvent: z.ZodEnum<{
|
|
72
|
+
PreToolUse: "PreToolUse";
|
|
73
|
+
PostToolUse: "PostToolUse";
|
|
74
|
+
PostToolUseFailure: "PostToolUseFailure";
|
|
75
|
+
SessionStart: "SessionStart";
|
|
76
|
+
SessionEnd: "SessionEnd";
|
|
77
|
+
SubagentStart: "SubagentStart";
|
|
78
|
+
SubagentStop: "SubagentStop";
|
|
79
|
+
}>;
|
|
80
|
+
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
81
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
82
|
+
blockedTool: z.ZodOptional<z.ZodString>;
|
|
83
|
+
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
timeout: "timeout";
|
|
87
|
+
approved: "approved";
|
|
88
|
+
denied: "denied";
|
|
89
|
+
unrecognised: "unrecognised";
|
|
90
|
+
decline: "decline";
|
|
91
|
+
cancel: "cancel";
|
|
92
|
+
}>>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
export declare const SubagentStartedPayloadSchema: z.ZodObject<{
|
|
95
|
+
transition: z.ZodLiteral<"started">;
|
|
96
|
+
subagentId: z.ZodString;
|
|
97
|
+
parentId: z.ZodString;
|
|
98
|
+
model: z.ZodString;
|
|
99
|
+
allowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
100
|
+
systemPromptHash: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export declare const SubagentSucceededPayloadSchema: z.ZodObject<{
|
|
103
|
+
transition: z.ZodLiteral<"succeeded">;
|
|
104
|
+
subagentId: z.ZodString;
|
|
105
|
+
durationMs: z.ZodNumber;
|
|
106
|
+
turnCount: z.ZodNumber;
|
|
107
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
outputBytes: z.ZodNumber;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export declare const SubagentFailedPayloadSchema: z.ZodObject<{
|
|
111
|
+
transition: z.ZodLiteral<"failed">;
|
|
112
|
+
subagentId: z.ZodString;
|
|
113
|
+
errorClass: z.ZodString;
|
|
114
|
+
errorMessage: z.ZodString;
|
|
115
|
+
partialOutputBytes: z.ZodNumber;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export declare const SubagentCancelledPayloadSchema: z.ZodObject<{
|
|
118
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
119
|
+
subagentId: z.ZodString;
|
|
120
|
+
source: z.ZodEnum<{
|
|
121
|
+
cascade: "cascade";
|
|
122
|
+
explicit: "explicit";
|
|
123
|
+
}>;
|
|
124
|
+
}, z.core.$strip>;
|
|
125
|
+
export declare const SubagentLifecyclePayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
transition: z.ZodLiteral<"started">;
|
|
127
|
+
subagentId: z.ZodString;
|
|
128
|
+
parentId: z.ZodString;
|
|
129
|
+
model: z.ZodString;
|
|
130
|
+
allowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
131
|
+
systemPromptHash: z.ZodOptional<z.ZodString>;
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
transition: z.ZodLiteral<"succeeded">;
|
|
134
|
+
subagentId: z.ZodString;
|
|
135
|
+
durationMs: z.ZodNumber;
|
|
136
|
+
turnCount: z.ZodNumber;
|
|
137
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
outputBytes: z.ZodNumber;
|
|
139
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
140
|
+
transition: z.ZodLiteral<"failed">;
|
|
141
|
+
subagentId: z.ZodString;
|
|
142
|
+
errorClass: z.ZodString;
|
|
143
|
+
errorMessage: z.ZodString;
|
|
144
|
+
partialOutputBytes: z.ZodNumber;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
147
|
+
subagentId: z.ZodString;
|
|
148
|
+
source: z.ZodEnum<{
|
|
149
|
+
cascade: "cascade";
|
|
150
|
+
explicit: "explicit";
|
|
151
|
+
}>;
|
|
152
|
+
}, z.core.$strip>], "transition">;
|
|
153
|
+
export declare const BackgroundAgentStartedPayloadSchema: z.ZodObject<{
|
|
154
|
+
transition: z.ZodLiteral<"started">;
|
|
155
|
+
jobId: z.ZodString;
|
|
156
|
+
subagentId: z.ZodString;
|
|
157
|
+
label: z.ZodString;
|
|
158
|
+
model: z.ZodString;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export declare const BackgroundAgentCompletedPayloadSchema: z.ZodObject<{
|
|
161
|
+
transition: z.ZodLiteral<"completed">;
|
|
162
|
+
jobId: z.ZodString;
|
|
163
|
+
subagentId: z.ZodString;
|
|
164
|
+
durationMs: z.ZodNumber;
|
|
165
|
+
outputBytes: z.ZodNumber;
|
|
166
|
+
}, z.core.$strip>;
|
|
167
|
+
export declare const BackgroundAgentFailedPayloadSchema: z.ZodObject<{
|
|
168
|
+
transition: z.ZodLiteral<"failed">;
|
|
169
|
+
jobId: z.ZodString;
|
|
170
|
+
subagentId: z.ZodString;
|
|
171
|
+
durationMs: z.ZodNumber;
|
|
172
|
+
errorClass: z.ZodString;
|
|
173
|
+
errorMessage: z.ZodString;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
export declare const BackgroundAgentCancelledPayloadSchema: z.ZodObject<{
|
|
176
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
177
|
+
jobId: z.ZodString;
|
|
178
|
+
subagentId: z.ZodString;
|
|
179
|
+
source: z.ZodEnum<{
|
|
180
|
+
cascade: "cascade";
|
|
181
|
+
explicit: "explicit";
|
|
182
|
+
}>;
|
|
183
|
+
}, z.core.$strip>;
|
|
184
|
+
export declare const BackgroundAgentJoinedPayloadSchema: z.ZodObject<{
|
|
185
|
+
transition: z.ZodLiteral<"joined">;
|
|
186
|
+
jobId: z.ZodString;
|
|
187
|
+
subagentId: z.ZodString;
|
|
188
|
+
jobStatus: z.ZodEnum<{
|
|
189
|
+
completed: "completed";
|
|
190
|
+
failed: "failed";
|
|
191
|
+
cancelled: "cancelled";
|
|
192
|
+
}>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
export declare const BackgroundAgentPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
195
|
+
transition: z.ZodLiteral<"started">;
|
|
196
|
+
jobId: z.ZodString;
|
|
197
|
+
subagentId: z.ZodString;
|
|
198
|
+
label: z.ZodString;
|
|
199
|
+
model: z.ZodString;
|
|
200
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
201
|
+
transition: z.ZodLiteral<"completed">;
|
|
202
|
+
jobId: z.ZodString;
|
|
203
|
+
subagentId: z.ZodString;
|
|
204
|
+
durationMs: z.ZodNumber;
|
|
205
|
+
outputBytes: z.ZodNumber;
|
|
206
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
207
|
+
transition: z.ZodLiteral<"failed">;
|
|
208
|
+
jobId: z.ZodString;
|
|
209
|
+
subagentId: z.ZodString;
|
|
210
|
+
durationMs: z.ZodNumber;
|
|
211
|
+
errorClass: z.ZodString;
|
|
212
|
+
errorMessage: z.ZodString;
|
|
213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
214
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
215
|
+
jobId: z.ZodString;
|
|
216
|
+
subagentId: z.ZodString;
|
|
217
|
+
source: z.ZodEnum<{
|
|
218
|
+
cascade: "cascade";
|
|
219
|
+
explicit: "explicit";
|
|
220
|
+
}>;
|
|
221
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
222
|
+
transition: z.ZodLiteral<"joined">;
|
|
223
|
+
jobId: z.ZodString;
|
|
224
|
+
subagentId: z.ZodString;
|
|
225
|
+
jobStatus: z.ZodEnum<{
|
|
226
|
+
completed: "completed";
|
|
227
|
+
failed: "failed";
|
|
228
|
+
cancelled: "cancelled";
|
|
229
|
+
}>;
|
|
230
|
+
}, z.core.$strip>], "transition">;
|
|
231
|
+
export declare const BudgetPayloadSchema: z.ZodObject<{
|
|
232
|
+
kind: z.ZodLiteral<"monetary">;
|
|
233
|
+
runningCostUsd: z.ZodNumber;
|
|
234
|
+
maxBudgetUsd: z.ZodNumber;
|
|
235
|
+
lastTurnCostUsd: z.ZodNumber;
|
|
236
|
+
}, z.core.$strip>;
|
|
237
|
+
export declare const AbortOriginSchema: z.ZodEnum<{
|
|
238
|
+
budget: "budget";
|
|
239
|
+
timeout: "timeout";
|
|
240
|
+
cascade: "cascade";
|
|
241
|
+
user_signal: "user_signal";
|
|
242
|
+
hook_block: "hook_block";
|
|
243
|
+
}>;
|
|
244
|
+
export declare const AbortPayloadSchema: z.ZodObject<{
|
|
245
|
+
origin: z.ZodEnum<{
|
|
246
|
+
budget: "budget";
|
|
247
|
+
timeout: "timeout";
|
|
248
|
+
cascade: "cascade";
|
|
249
|
+
user_signal: "user_signal";
|
|
250
|
+
hook_block: "hook_block";
|
|
251
|
+
}>;
|
|
252
|
+
cascadedTo: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
253
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export declare const CompactionTriggerSchema: z.ZodEnum<{
|
|
256
|
+
manual: "manual";
|
|
257
|
+
token_threshold: "token_threshold";
|
|
258
|
+
turn_count: "turn_count";
|
|
259
|
+
}>;
|
|
260
|
+
export declare const CompactionSidecarRefSchema: z.ZodObject<{
|
|
261
|
+
path: z.ZodString;
|
|
262
|
+
sizeBytes: z.ZodNumber;
|
|
263
|
+
sha256: z.ZodString;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
export declare const CompactionPayloadInputSchema: z.ZodObject<{
|
|
266
|
+
trigger: z.ZodEnum<{
|
|
267
|
+
manual: "manual";
|
|
268
|
+
token_threshold: "token_threshold";
|
|
269
|
+
turn_count: "turn_count";
|
|
270
|
+
}>;
|
|
271
|
+
preCompactionMessages: z.ZodArray<z.ZodUnknown>;
|
|
272
|
+
summary: z.ZodString;
|
|
273
|
+
keptTailCount: z.ZodNumber;
|
|
274
|
+
keepLastNConfig: z.ZodNumber;
|
|
275
|
+
messagesBefore: z.ZodNumber;
|
|
276
|
+
messagesAfter: z.ZodNumber;
|
|
277
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
278
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
279
|
+
input: z.ZodNumber;
|
|
280
|
+
output: z.ZodNumber;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
}, z.core.$strip>;
|
|
283
|
+
export declare const CompactionPayloadPersistedSchema: z.ZodObject<{
|
|
284
|
+
trigger: z.ZodEnum<{
|
|
285
|
+
manual: "manual";
|
|
286
|
+
token_threshold: "token_threshold";
|
|
287
|
+
turn_count: "turn_count";
|
|
288
|
+
}>;
|
|
289
|
+
preCompactionMessagesRef: z.ZodObject<{
|
|
290
|
+
path: z.ZodString;
|
|
291
|
+
sizeBytes: z.ZodNumber;
|
|
292
|
+
sha256: z.ZodString;
|
|
293
|
+
}, z.core.$strip>;
|
|
294
|
+
summary: z.ZodString;
|
|
295
|
+
keptTailCount: z.ZodNumber;
|
|
296
|
+
keepLastNConfig: z.ZodNumber;
|
|
297
|
+
messagesBefore: z.ZodNumber;
|
|
298
|
+
messagesAfter: z.ZodNumber;
|
|
299
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
300
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
301
|
+
input: z.ZodNumber;
|
|
302
|
+
output: z.ZodNumber;
|
|
303
|
+
}, z.core.$strip>>;
|
|
304
|
+
}, z.core.$strip>;
|
|
305
|
+
export declare const ClosureReasonSchema: z.ZodEnum<{
|
|
306
|
+
abort: "abort";
|
|
307
|
+
timeout: "timeout";
|
|
308
|
+
model_end_turn: "model_end_turn";
|
|
309
|
+
truncated: "truncated";
|
|
310
|
+
iteration_cap: "iteration_cap";
|
|
311
|
+
budget_exceeded: "budget_exceeded";
|
|
312
|
+
hook_blocked: "hook_blocked";
|
|
313
|
+
max_turns_exceeded: "max_turns_exceeded";
|
|
314
|
+
}>;
|
|
315
|
+
export declare const ClosurePayloadSchema: z.ZodObject<{
|
|
316
|
+
reason: z.ZodEnum<{
|
|
317
|
+
abort: "abort";
|
|
318
|
+
timeout: "timeout";
|
|
319
|
+
model_end_turn: "model_end_turn";
|
|
320
|
+
truncated: "truncated";
|
|
321
|
+
iteration_cap: "iteration_cap";
|
|
322
|
+
budget_exceeded: "budget_exceeded";
|
|
323
|
+
hook_blocked: "hook_blocked";
|
|
324
|
+
max_turns_exceeded: "max_turns_exceeded";
|
|
325
|
+
}>;
|
|
326
|
+
finalTurnCount: z.ZodNumber;
|
|
327
|
+
finalCostUsd: z.ZodNumber;
|
|
328
|
+
finalTokens: z.ZodObject<{
|
|
329
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
330
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
331
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
332
|
+
cacheCreation: z.ZodOptional<z.ZodNumber>;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
335
|
+
guidance: z.ZodOptional<z.ZodString>;
|
|
336
|
+
}, z.core.$strip>;
|
|
337
|
+
export declare const ClaimPayloadSchema: z.ZodObject<{
|
|
338
|
+
source: z.ZodString;
|
|
339
|
+
assertion: z.ZodString;
|
|
340
|
+
evidence: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
341
|
+
confidence: z.ZodNumber;
|
|
342
|
+
dissent: z.ZodOptional<z.ZodString>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
export declare const BrowserEventToolSchema: z.ZodEnum<{
|
|
345
|
+
browser_open: "browser_open";
|
|
346
|
+
browser_observe: "browser_observe";
|
|
347
|
+
browser_act: "browser_act";
|
|
348
|
+
browser_screenshot: "browser_screenshot";
|
|
349
|
+
browser_extract: "browser_extract";
|
|
350
|
+
browser_close: "browser_close";
|
|
351
|
+
}>;
|
|
352
|
+
export declare const BrowserActActionSchema: z.ZodEnum<{
|
|
353
|
+
fill: "fill";
|
|
354
|
+
click: "click";
|
|
355
|
+
press: "press";
|
|
356
|
+
select: "select";
|
|
357
|
+
hover: "hover";
|
|
358
|
+
scroll_to: "scroll_to";
|
|
359
|
+
wait_for: "wait_for";
|
|
360
|
+
}>;
|
|
361
|
+
export declare const BrowserEventTargetSchema: z.ZodObject<{
|
|
362
|
+
kind: z.ZodEnum<{
|
|
363
|
+
semantic: "semantic";
|
|
364
|
+
element_id: "element_id";
|
|
365
|
+
selector: "selector";
|
|
366
|
+
}>;
|
|
367
|
+
text: z.ZodOptional<z.ZodString>;
|
|
368
|
+
role: z.ZodOptional<z.ZodString>;
|
|
369
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
370
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
371
|
+
}, z.core.$strip>;
|
|
372
|
+
export declare const BrowserEventPayloadSchema: z.ZodObject<{
|
|
373
|
+
tool: z.ZodEnum<{
|
|
374
|
+
browser_open: "browser_open";
|
|
375
|
+
browser_observe: "browser_observe";
|
|
376
|
+
browser_act: "browser_act";
|
|
377
|
+
browser_screenshot: "browser_screenshot";
|
|
378
|
+
browser_extract: "browser_extract";
|
|
379
|
+
browser_close: "browser_close";
|
|
380
|
+
}>;
|
|
381
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
382
|
+
fill: "fill";
|
|
383
|
+
click: "click";
|
|
384
|
+
press: "press";
|
|
385
|
+
select: "select";
|
|
386
|
+
hover: "hover";
|
|
387
|
+
scroll_to: "scroll_to";
|
|
388
|
+
wait_for: "wait_for";
|
|
389
|
+
}>>;
|
|
390
|
+
toolUseId: z.ZodString;
|
|
391
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
392
|
+
kind: z.ZodEnum<{
|
|
393
|
+
semantic: "semantic";
|
|
394
|
+
element_id: "element_id";
|
|
395
|
+
selector: "selector";
|
|
396
|
+
}>;
|
|
397
|
+
text: z.ZodOptional<z.ZodString>;
|
|
398
|
+
role: z.ZodOptional<z.ZodString>;
|
|
399
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
400
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
401
|
+
}, z.core.$strip>>;
|
|
402
|
+
urlBefore: z.ZodNullable<z.ZodString>;
|
|
403
|
+
urlAfter: z.ZodNullable<z.ZodString>;
|
|
404
|
+
status: z.ZodEnum<{
|
|
405
|
+
ok: "ok";
|
|
406
|
+
error: "error";
|
|
407
|
+
ambiguous_target: "ambiguous_target";
|
|
408
|
+
blocked_by_policy: "blocked_by_policy";
|
|
409
|
+
}>;
|
|
410
|
+
screenshotPath: z.ZodOptional<z.ZodString>;
|
|
411
|
+
observationSummary: z.ZodOptional<z.ZodString>;
|
|
412
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
413
|
+
reason: z.ZodString;
|
|
414
|
+
recoverable: z.ZodBoolean;
|
|
415
|
+
}, z.core.$strip>>;
|
|
416
|
+
durationMs: z.ZodNumber;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
export declare const SessionPhaseNameSchema: z.ZodEnum<{
|
|
419
|
+
bootstrap_start: "bootstrap_start";
|
|
420
|
+
bootstrap_done: "bootstrap_done";
|
|
421
|
+
session_init_start: "session_init_start";
|
|
422
|
+
session_init_done: "session_init_done";
|
|
423
|
+
mcp_connect_start: "mcp_connect_start";
|
|
424
|
+
mcp_connect_done: "mcp_connect_done";
|
|
425
|
+
mcp_server_start: "mcp_server_start";
|
|
426
|
+
mcp_server_done: "mcp_server_done";
|
|
427
|
+
loop_start: "loop_start";
|
|
428
|
+
loop_end: "loop_end";
|
|
429
|
+
model_ttfb: "model_ttfb";
|
|
430
|
+
}>;
|
|
431
|
+
export declare const SessionPhasePayloadSchema: z.ZodObject<{
|
|
432
|
+
phase: z.ZodEnum<{
|
|
433
|
+
bootstrap_start: "bootstrap_start";
|
|
434
|
+
bootstrap_done: "bootstrap_done";
|
|
435
|
+
session_init_start: "session_init_start";
|
|
436
|
+
session_init_done: "session_init_done";
|
|
437
|
+
mcp_connect_start: "mcp_connect_start";
|
|
438
|
+
mcp_connect_done: "mcp_connect_done";
|
|
439
|
+
mcp_server_start: "mcp_server_start";
|
|
440
|
+
mcp_server_done: "mcp_server_done";
|
|
441
|
+
loop_start: "loop_start";
|
|
442
|
+
loop_end: "loop_end";
|
|
443
|
+
model_ttfb: "model_ttfb";
|
|
444
|
+
}>;
|
|
445
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
446
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
447
|
+
model: z.ZodOptional<z.ZodString>;
|
|
448
|
+
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
449
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
450
|
+
telegram: "telegram";
|
|
451
|
+
daemon: "daemon";
|
|
452
|
+
cli: "cli";
|
|
453
|
+
unknown: "unknown";
|
|
454
|
+
}>>;
|
|
455
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
456
|
+
main: "main";
|
|
457
|
+
subagent: "subagent";
|
|
458
|
+
}>>;
|
|
459
|
+
}, z.core.$strip>;
|
|
460
|
+
export declare const SessionSealedPayloadSchema: z.ZodObject<{
|
|
461
|
+
status: z.ZodEnum<{
|
|
462
|
+
succeeded: "succeeded";
|
|
463
|
+
failed: "failed";
|
|
464
|
+
cancelled: "cancelled";
|
|
465
|
+
}>;
|
|
466
|
+
finalCostUsd: z.ZodNumber;
|
|
467
|
+
finalTurnCount: z.ZodNumber;
|
|
468
|
+
closedAt: z.ZodString;
|
|
469
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
470
|
+
subagentCount: z.ZodOptional<z.ZodNumber>;
|
|
471
|
+
subagentTokens: z.ZodOptional<z.ZodObject<{
|
|
472
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
473
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
474
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
475
|
+
cacheCreation: z.ZodOptional<z.ZodNumber>;
|
|
476
|
+
}, z.core.$strip>>;
|
|
477
|
+
subagentCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
478
|
+
}, z.core.$strip>;
|
|
479
|
+
export declare const TraceEventInputSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
480
|
+
kind: z.ZodLiteral<"tool_call">;
|
|
481
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
482
|
+
phase: z.ZodLiteral<"started">;
|
|
483
|
+
toolUseId: z.ZodString;
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
inputBytes: z.ZodNumber;
|
|
486
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
488
|
+
phase: z.ZodLiteral<"completed">;
|
|
489
|
+
toolUseId: z.ZodString;
|
|
490
|
+
name: z.ZodString;
|
|
491
|
+
resultBytes: z.ZodNumber;
|
|
492
|
+
isError: z.ZodBoolean;
|
|
493
|
+
truncated: z.ZodBoolean;
|
|
494
|
+
durationMs: z.ZodNumber;
|
|
495
|
+
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
496
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
497
|
+
abort: "abort";
|
|
498
|
+
"policy-refusal": "policy-refusal";
|
|
499
|
+
timeout: "timeout";
|
|
500
|
+
"permission-denied": "permission-denied";
|
|
501
|
+
"hook-block": "hook-block";
|
|
502
|
+
"elicitation-declined": "elicitation-declined";
|
|
503
|
+
}>>;
|
|
504
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
505
|
+
}, z.core.$strip>], "phase">;
|
|
506
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
507
|
+
kind: z.ZodLiteral<"hook_decision">;
|
|
508
|
+
payload: z.ZodObject<{
|
|
509
|
+
hookEvent: z.ZodEnum<{
|
|
510
|
+
PreToolUse: "PreToolUse";
|
|
511
|
+
PostToolUse: "PostToolUse";
|
|
512
|
+
PostToolUseFailure: "PostToolUseFailure";
|
|
513
|
+
SessionStart: "SessionStart";
|
|
514
|
+
SessionEnd: "SessionEnd";
|
|
515
|
+
SubagentStart: "SubagentStart";
|
|
516
|
+
SubagentStop: "SubagentStop";
|
|
517
|
+
}>;
|
|
518
|
+
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
519
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
520
|
+
blockedTool: z.ZodOptional<z.ZodString>;
|
|
521
|
+
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
522
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
523
|
+
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
524
|
+
timeout: "timeout";
|
|
525
|
+
approved: "approved";
|
|
526
|
+
denied: "denied";
|
|
527
|
+
unrecognised: "unrecognised";
|
|
528
|
+
decline: "decline";
|
|
529
|
+
cancel: "cancel";
|
|
530
|
+
}>>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
533
|
+
kind: z.ZodLiteral<"subagent_lifecycle">;
|
|
534
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
535
|
+
transition: z.ZodLiteral<"started">;
|
|
536
|
+
subagentId: z.ZodString;
|
|
537
|
+
parentId: z.ZodString;
|
|
538
|
+
model: z.ZodString;
|
|
539
|
+
allowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
540
|
+
systemPromptHash: z.ZodOptional<z.ZodString>;
|
|
541
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
542
|
+
transition: z.ZodLiteral<"succeeded">;
|
|
543
|
+
subagentId: z.ZodString;
|
|
544
|
+
durationMs: z.ZodNumber;
|
|
545
|
+
turnCount: z.ZodNumber;
|
|
546
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
547
|
+
outputBytes: z.ZodNumber;
|
|
548
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
549
|
+
transition: z.ZodLiteral<"failed">;
|
|
550
|
+
subagentId: z.ZodString;
|
|
551
|
+
errorClass: z.ZodString;
|
|
552
|
+
errorMessage: z.ZodString;
|
|
553
|
+
partialOutputBytes: z.ZodNumber;
|
|
554
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
555
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
556
|
+
subagentId: z.ZodString;
|
|
557
|
+
source: z.ZodEnum<{
|
|
558
|
+
cascade: "cascade";
|
|
559
|
+
explicit: "explicit";
|
|
560
|
+
}>;
|
|
561
|
+
}, z.core.$strip>], "transition">;
|
|
562
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
563
|
+
kind: z.ZodLiteral<"background_agent">;
|
|
564
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
565
|
+
transition: z.ZodLiteral<"started">;
|
|
566
|
+
jobId: z.ZodString;
|
|
567
|
+
subagentId: z.ZodString;
|
|
568
|
+
label: z.ZodString;
|
|
569
|
+
model: z.ZodString;
|
|
570
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
571
|
+
transition: z.ZodLiteral<"completed">;
|
|
572
|
+
jobId: z.ZodString;
|
|
573
|
+
subagentId: z.ZodString;
|
|
574
|
+
durationMs: z.ZodNumber;
|
|
575
|
+
outputBytes: z.ZodNumber;
|
|
576
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
577
|
+
transition: z.ZodLiteral<"failed">;
|
|
578
|
+
jobId: z.ZodString;
|
|
579
|
+
subagentId: z.ZodString;
|
|
580
|
+
durationMs: z.ZodNumber;
|
|
581
|
+
errorClass: z.ZodString;
|
|
582
|
+
errorMessage: z.ZodString;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
585
|
+
jobId: z.ZodString;
|
|
586
|
+
subagentId: z.ZodString;
|
|
587
|
+
source: z.ZodEnum<{
|
|
588
|
+
cascade: "cascade";
|
|
589
|
+
explicit: "explicit";
|
|
590
|
+
}>;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
transition: z.ZodLiteral<"joined">;
|
|
593
|
+
jobId: z.ZodString;
|
|
594
|
+
subagentId: z.ZodString;
|
|
595
|
+
jobStatus: z.ZodEnum<{
|
|
596
|
+
completed: "completed";
|
|
597
|
+
failed: "failed";
|
|
598
|
+
cancelled: "cancelled";
|
|
599
|
+
}>;
|
|
600
|
+
}, z.core.$strip>], "transition">;
|
|
601
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
602
|
+
kind: z.ZodLiteral<"budget">;
|
|
603
|
+
payload: z.ZodObject<{
|
|
604
|
+
kind: z.ZodLiteral<"monetary">;
|
|
605
|
+
runningCostUsd: z.ZodNumber;
|
|
606
|
+
maxBudgetUsd: z.ZodNumber;
|
|
607
|
+
lastTurnCostUsd: z.ZodNumber;
|
|
608
|
+
}, z.core.$strip>;
|
|
609
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
610
|
+
kind: z.ZodLiteral<"abort">;
|
|
611
|
+
payload: z.ZodObject<{
|
|
612
|
+
origin: z.ZodEnum<{
|
|
613
|
+
budget: "budget";
|
|
614
|
+
timeout: "timeout";
|
|
615
|
+
cascade: "cascade";
|
|
616
|
+
user_signal: "user_signal";
|
|
617
|
+
hook_block: "hook_block";
|
|
618
|
+
}>;
|
|
619
|
+
cascadedTo: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
620
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
621
|
+
}, z.core.$strip>;
|
|
622
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
623
|
+
kind: z.ZodLiteral<"compaction">;
|
|
624
|
+
payload: z.ZodObject<{
|
|
625
|
+
trigger: z.ZodEnum<{
|
|
626
|
+
manual: "manual";
|
|
627
|
+
token_threshold: "token_threshold";
|
|
628
|
+
turn_count: "turn_count";
|
|
629
|
+
}>;
|
|
630
|
+
preCompactionMessages: z.ZodArray<z.ZodUnknown>;
|
|
631
|
+
summary: z.ZodString;
|
|
632
|
+
keptTailCount: z.ZodNumber;
|
|
633
|
+
keepLastNConfig: z.ZodNumber;
|
|
634
|
+
messagesBefore: z.ZodNumber;
|
|
635
|
+
messagesAfter: z.ZodNumber;
|
|
636
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
637
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
638
|
+
input: z.ZodNumber;
|
|
639
|
+
output: z.ZodNumber;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
}, z.core.$strip>;
|
|
642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
643
|
+
kind: z.ZodLiteral<"closure">;
|
|
644
|
+
payload: z.ZodObject<{
|
|
645
|
+
reason: z.ZodEnum<{
|
|
646
|
+
abort: "abort";
|
|
647
|
+
timeout: "timeout";
|
|
648
|
+
model_end_turn: "model_end_turn";
|
|
649
|
+
truncated: "truncated";
|
|
650
|
+
iteration_cap: "iteration_cap";
|
|
651
|
+
budget_exceeded: "budget_exceeded";
|
|
652
|
+
hook_blocked: "hook_blocked";
|
|
653
|
+
max_turns_exceeded: "max_turns_exceeded";
|
|
654
|
+
}>;
|
|
655
|
+
finalTurnCount: z.ZodNumber;
|
|
656
|
+
finalCostUsd: z.ZodNumber;
|
|
657
|
+
finalTokens: z.ZodObject<{
|
|
658
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
659
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
660
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
661
|
+
cacheCreation: z.ZodOptional<z.ZodNumber>;
|
|
662
|
+
}, z.core.$strip>;
|
|
663
|
+
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
664
|
+
guidance: z.ZodOptional<z.ZodString>;
|
|
665
|
+
}, z.core.$strip>;
|
|
666
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
667
|
+
kind: z.ZodLiteral<"claim">;
|
|
668
|
+
payload: z.ZodObject<{
|
|
669
|
+
source: z.ZodString;
|
|
670
|
+
assertion: z.ZodString;
|
|
671
|
+
evidence: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
672
|
+
confidence: z.ZodNumber;
|
|
673
|
+
dissent: z.ZodOptional<z.ZodString>;
|
|
674
|
+
}, z.core.$strip>;
|
|
675
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
676
|
+
kind: z.ZodLiteral<"browser_event">;
|
|
677
|
+
payload: z.ZodObject<{
|
|
678
|
+
tool: z.ZodEnum<{
|
|
679
|
+
browser_open: "browser_open";
|
|
680
|
+
browser_observe: "browser_observe";
|
|
681
|
+
browser_act: "browser_act";
|
|
682
|
+
browser_screenshot: "browser_screenshot";
|
|
683
|
+
browser_extract: "browser_extract";
|
|
684
|
+
browser_close: "browser_close";
|
|
685
|
+
}>;
|
|
686
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
687
|
+
fill: "fill";
|
|
688
|
+
click: "click";
|
|
689
|
+
press: "press";
|
|
690
|
+
select: "select";
|
|
691
|
+
hover: "hover";
|
|
692
|
+
scroll_to: "scroll_to";
|
|
693
|
+
wait_for: "wait_for";
|
|
694
|
+
}>>;
|
|
695
|
+
toolUseId: z.ZodString;
|
|
696
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
697
|
+
kind: z.ZodEnum<{
|
|
698
|
+
semantic: "semantic";
|
|
699
|
+
element_id: "element_id";
|
|
700
|
+
selector: "selector";
|
|
701
|
+
}>;
|
|
702
|
+
text: z.ZodOptional<z.ZodString>;
|
|
703
|
+
role: z.ZodOptional<z.ZodString>;
|
|
704
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
705
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
706
|
+
}, z.core.$strip>>;
|
|
707
|
+
urlBefore: z.ZodNullable<z.ZodString>;
|
|
708
|
+
urlAfter: z.ZodNullable<z.ZodString>;
|
|
709
|
+
status: z.ZodEnum<{
|
|
710
|
+
ok: "ok";
|
|
711
|
+
error: "error";
|
|
712
|
+
ambiguous_target: "ambiguous_target";
|
|
713
|
+
blocked_by_policy: "blocked_by_policy";
|
|
714
|
+
}>;
|
|
715
|
+
screenshotPath: z.ZodOptional<z.ZodString>;
|
|
716
|
+
observationSummary: z.ZodOptional<z.ZodString>;
|
|
717
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
718
|
+
reason: z.ZodString;
|
|
719
|
+
recoverable: z.ZodBoolean;
|
|
720
|
+
}, z.core.$strip>>;
|
|
721
|
+
durationMs: z.ZodNumber;
|
|
722
|
+
}, z.core.$strip>;
|
|
723
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
724
|
+
kind: z.ZodLiteral<"session_phase">;
|
|
725
|
+
payload: z.ZodObject<{
|
|
726
|
+
phase: z.ZodEnum<{
|
|
727
|
+
bootstrap_start: "bootstrap_start";
|
|
728
|
+
bootstrap_done: "bootstrap_done";
|
|
729
|
+
session_init_start: "session_init_start";
|
|
730
|
+
session_init_done: "session_init_done";
|
|
731
|
+
mcp_connect_start: "mcp_connect_start";
|
|
732
|
+
mcp_connect_done: "mcp_connect_done";
|
|
733
|
+
mcp_server_start: "mcp_server_start";
|
|
734
|
+
mcp_server_done: "mcp_server_done";
|
|
735
|
+
loop_start: "loop_start";
|
|
736
|
+
loop_end: "loop_end";
|
|
737
|
+
model_ttfb: "model_ttfb";
|
|
738
|
+
}>;
|
|
739
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
740
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
741
|
+
model: z.ZodOptional<z.ZodString>;
|
|
742
|
+
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
743
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
744
|
+
telegram: "telegram";
|
|
745
|
+
daemon: "daemon";
|
|
746
|
+
cli: "cli";
|
|
747
|
+
unknown: "unknown";
|
|
748
|
+
}>>;
|
|
749
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
750
|
+
main: "main";
|
|
751
|
+
subagent: "subagent";
|
|
752
|
+
}>>;
|
|
753
|
+
}, z.core.$strip>;
|
|
754
|
+
}, z.core.$strip>], "kind">;
|
|
755
|
+
export declare const TraceEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
756
|
+
ts: z.ZodString;
|
|
757
|
+
seq: z.ZodNumber;
|
|
758
|
+
kind: z.ZodLiteral<"tool_call">;
|
|
759
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
760
|
+
phase: z.ZodLiteral<"started">;
|
|
761
|
+
toolUseId: z.ZodString;
|
|
762
|
+
name: z.ZodString;
|
|
763
|
+
inputBytes: z.ZodNumber;
|
|
764
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
765
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
766
|
+
phase: z.ZodLiteral<"completed">;
|
|
767
|
+
toolUseId: z.ZodString;
|
|
768
|
+
name: z.ZodString;
|
|
769
|
+
resultBytes: z.ZodNumber;
|
|
770
|
+
isError: z.ZodBoolean;
|
|
771
|
+
truncated: z.ZodBoolean;
|
|
772
|
+
durationMs: z.ZodNumber;
|
|
773
|
+
circuitBreaker: z.ZodOptional<z.ZodBoolean>;
|
|
774
|
+
failureClass: z.ZodOptional<z.ZodEnum<{
|
|
775
|
+
abort: "abort";
|
|
776
|
+
"policy-refusal": "policy-refusal";
|
|
777
|
+
timeout: "timeout";
|
|
778
|
+
"permission-denied": "permission-denied";
|
|
779
|
+
"hook-block": "hook-block";
|
|
780
|
+
"elicitation-declined": "elicitation-declined";
|
|
781
|
+
}>>;
|
|
782
|
+
subagentId: z.ZodOptional<z.ZodString>;
|
|
783
|
+
}, z.core.$strip>], "phase">;
|
|
784
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
785
|
+
ts: z.ZodString;
|
|
786
|
+
seq: z.ZodNumber;
|
|
787
|
+
kind: z.ZodLiteral<"hook_decision">;
|
|
788
|
+
payload: z.ZodObject<{
|
|
789
|
+
hookEvent: z.ZodEnum<{
|
|
790
|
+
PreToolUse: "PreToolUse";
|
|
791
|
+
PostToolUse: "PostToolUse";
|
|
792
|
+
PostToolUseFailure: "PostToolUseFailure";
|
|
793
|
+
SessionStart: "SessionStart";
|
|
794
|
+
SessionEnd: "SessionEnd";
|
|
795
|
+
SubagentStart: "SubagentStart";
|
|
796
|
+
SubagentStop: "SubagentStop";
|
|
797
|
+
}>;
|
|
798
|
+
decision: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<"block">, z.ZodLiteral<"approve">]>>;
|
|
799
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
800
|
+
blockedTool: z.ZodOptional<z.ZodString>;
|
|
801
|
+
injectedContextBytes: z.ZodOptional<z.ZodNumber>;
|
|
802
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
803
|
+
approvalOutcome: z.ZodOptional<z.ZodEnum<{
|
|
804
|
+
timeout: "timeout";
|
|
805
|
+
approved: "approved";
|
|
806
|
+
denied: "denied";
|
|
807
|
+
unrecognised: "unrecognised";
|
|
808
|
+
decline: "decline";
|
|
809
|
+
cancel: "cancel";
|
|
810
|
+
}>>;
|
|
811
|
+
}, z.core.$strip>;
|
|
812
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
813
|
+
ts: z.ZodString;
|
|
814
|
+
seq: z.ZodNumber;
|
|
815
|
+
kind: z.ZodLiteral<"subagent_lifecycle">;
|
|
816
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
817
|
+
transition: z.ZodLiteral<"started">;
|
|
818
|
+
subagentId: z.ZodString;
|
|
819
|
+
parentId: z.ZodString;
|
|
820
|
+
model: z.ZodString;
|
|
821
|
+
allowedTools: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
822
|
+
systemPromptHash: z.ZodOptional<z.ZodString>;
|
|
823
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
824
|
+
transition: z.ZodLiteral<"succeeded">;
|
|
825
|
+
subagentId: z.ZodString;
|
|
826
|
+
durationMs: z.ZodNumber;
|
|
827
|
+
turnCount: z.ZodNumber;
|
|
828
|
+
totalCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
829
|
+
outputBytes: z.ZodNumber;
|
|
830
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
831
|
+
transition: z.ZodLiteral<"failed">;
|
|
832
|
+
subagentId: z.ZodString;
|
|
833
|
+
errorClass: z.ZodString;
|
|
834
|
+
errorMessage: z.ZodString;
|
|
835
|
+
partialOutputBytes: z.ZodNumber;
|
|
836
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
837
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
838
|
+
subagentId: z.ZodString;
|
|
839
|
+
source: z.ZodEnum<{
|
|
840
|
+
cascade: "cascade";
|
|
841
|
+
explicit: "explicit";
|
|
842
|
+
}>;
|
|
843
|
+
}, z.core.$strip>], "transition">;
|
|
844
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
845
|
+
ts: z.ZodString;
|
|
846
|
+
seq: z.ZodNumber;
|
|
847
|
+
kind: z.ZodLiteral<"background_agent">;
|
|
848
|
+
payload: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
849
|
+
transition: z.ZodLiteral<"started">;
|
|
850
|
+
jobId: z.ZodString;
|
|
851
|
+
subagentId: z.ZodString;
|
|
852
|
+
label: z.ZodString;
|
|
853
|
+
model: z.ZodString;
|
|
854
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
855
|
+
transition: z.ZodLiteral<"completed">;
|
|
856
|
+
jobId: z.ZodString;
|
|
857
|
+
subagentId: z.ZodString;
|
|
858
|
+
durationMs: z.ZodNumber;
|
|
859
|
+
outputBytes: z.ZodNumber;
|
|
860
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
861
|
+
transition: z.ZodLiteral<"failed">;
|
|
862
|
+
jobId: z.ZodString;
|
|
863
|
+
subagentId: z.ZodString;
|
|
864
|
+
durationMs: z.ZodNumber;
|
|
865
|
+
errorClass: z.ZodString;
|
|
866
|
+
errorMessage: z.ZodString;
|
|
867
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
868
|
+
transition: z.ZodLiteral<"cancelled">;
|
|
869
|
+
jobId: z.ZodString;
|
|
870
|
+
subagentId: z.ZodString;
|
|
871
|
+
source: z.ZodEnum<{
|
|
872
|
+
cascade: "cascade";
|
|
873
|
+
explicit: "explicit";
|
|
874
|
+
}>;
|
|
875
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
876
|
+
transition: z.ZodLiteral<"joined">;
|
|
877
|
+
jobId: z.ZodString;
|
|
878
|
+
subagentId: z.ZodString;
|
|
879
|
+
jobStatus: z.ZodEnum<{
|
|
880
|
+
completed: "completed";
|
|
881
|
+
failed: "failed";
|
|
882
|
+
cancelled: "cancelled";
|
|
883
|
+
}>;
|
|
884
|
+
}, z.core.$strip>], "transition">;
|
|
885
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
886
|
+
ts: z.ZodString;
|
|
887
|
+
seq: z.ZodNumber;
|
|
888
|
+
kind: z.ZodLiteral<"budget">;
|
|
889
|
+
payload: z.ZodObject<{
|
|
890
|
+
kind: z.ZodLiteral<"monetary">;
|
|
891
|
+
runningCostUsd: z.ZodNumber;
|
|
892
|
+
maxBudgetUsd: z.ZodNumber;
|
|
893
|
+
lastTurnCostUsd: z.ZodNumber;
|
|
894
|
+
}, z.core.$strip>;
|
|
895
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
896
|
+
ts: z.ZodString;
|
|
897
|
+
seq: z.ZodNumber;
|
|
898
|
+
kind: z.ZodLiteral<"abort">;
|
|
899
|
+
payload: z.ZodObject<{
|
|
900
|
+
origin: z.ZodEnum<{
|
|
901
|
+
budget: "budget";
|
|
902
|
+
timeout: "timeout";
|
|
903
|
+
cascade: "cascade";
|
|
904
|
+
user_signal: "user_signal";
|
|
905
|
+
hook_block: "hook_block";
|
|
906
|
+
}>;
|
|
907
|
+
cascadedTo: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
908
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
909
|
+
}, z.core.$strip>;
|
|
910
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
911
|
+
ts: z.ZodString;
|
|
912
|
+
seq: z.ZodNumber;
|
|
913
|
+
kind: z.ZodLiteral<"compaction">;
|
|
914
|
+
payload: z.ZodObject<{
|
|
915
|
+
trigger: z.ZodEnum<{
|
|
916
|
+
manual: "manual";
|
|
917
|
+
token_threshold: "token_threshold";
|
|
918
|
+
turn_count: "turn_count";
|
|
919
|
+
}>;
|
|
920
|
+
preCompactionMessagesRef: z.ZodObject<{
|
|
921
|
+
path: z.ZodString;
|
|
922
|
+
sizeBytes: z.ZodNumber;
|
|
923
|
+
sha256: z.ZodString;
|
|
924
|
+
}, z.core.$strip>;
|
|
925
|
+
summary: z.ZodString;
|
|
926
|
+
keptTailCount: z.ZodNumber;
|
|
927
|
+
keepLastNConfig: z.ZodNumber;
|
|
928
|
+
messagesBefore: z.ZodNumber;
|
|
929
|
+
messagesAfter: z.ZodNumber;
|
|
930
|
+
tokensSavedEstimate: z.ZodOptional<z.ZodNumber>;
|
|
931
|
+
summarizationTokens: z.ZodOptional<z.ZodObject<{
|
|
932
|
+
input: z.ZodNumber;
|
|
933
|
+
output: z.ZodNumber;
|
|
934
|
+
}, z.core.$strip>>;
|
|
935
|
+
}, z.core.$strip>;
|
|
936
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
937
|
+
ts: z.ZodString;
|
|
938
|
+
seq: z.ZodNumber;
|
|
939
|
+
kind: z.ZodLiteral<"closure">;
|
|
940
|
+
payload: z.ZodObject<{
|
|
941
|
+
reason: z.ZodEnum<{
|
|
942
|
+
abort: "abort";
|
|
943
|
+
timeout: "timeout";
|
|
944
|
+
model_end_turn: "model_end_turn";
|
|
945
|
+
truncated: "truncated";
|
|
946
|
+
iteration_cap: "iteration_cap";
|
|
947
|
+
budget_exceeded: "budget_exceeded";
|
|
948
|
+
hook_blocked: "hook_blocked";
|
|
949
|
+
max_turns_exceeded: "max_turns_exceeded";
|
|
950
|
+
}>;
|
|
951
|
+
finalTurnCount: z.ZodNumber;
|
|
952
|
+
finalCostUsd: z.ZodNumber;
|
|
953
|
+
finalTokens: z.ZodObject<{
|
|
954
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
955
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
956
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
957
|
+
cacheCreation: z.ZodOptional<z.ZodNumber>;
|
|
958
|
+
}, z.core.$strip>;
|
|
959
|
+
lastStopReason: z.ZodOptional<z.ZodString>;
|
|
960
|
+
guidance: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
963
|
+
ts: z.ZodString;
|
|
964
|
+
seq: z.ZodNumber;
|
|
965
|
+
kind: z.ZodLiteral<"claim">;
|
|
966
|
+
payload: z.ZodObject<{
|
|
967
|
+
source: z.ZodString;
|
|
968
|
+
assertion: z.ZodString;
|
|
969
|
+
evidence: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
970
|
+
confidence: z.ZodNumber;
|
|
971
|
+
dissent: z.ZodOptional<z.ZodString>;
|
|
972
|
+
}, z.core.$strip>;
|
|
973
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
974
|
+
ts: z.ZodString;
|
|
975
|
+
seq: z.ZodNumber;
|
|
976
|
+
kind: z.ZodLiteral<"browser_event">;
|
|
977
|
+
payload: z.ZodObject<{
|
|
978
|
+
tool: z.ZodEnum<{
|
|
979
|
+
browser_open: "browser_open";
|
|
980
|
+
browser_observe: "browser_observe";
|
|
981
|
+
browser_act: "browser_act";
|
|
982
|
+
browser_screenshot: "browser_screenshot";
|
|
983
|
+
browser_extract: "browser_extract";
|
|
984
|
+
browser_close: "browser_close";
|
|
985
|
+
}>;
|
|
986
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
987
|
+
fill: "fill";
|
|
988
|
+
click: "click";
|
|
989
|
+
press: "press";
|
|
990
|
+
select: "select";
|
|
991
|
+
hover: "hover";
|
|
992
|
+
scroll_to: "scroll_to";
|
|
993
|
+
wait_for: "wait_for";
|
|
994
|
+
}>>;
|
|
995
|
+
toolUseId: z.ZodString;
|
|
996
|
+
target: z.ZodOptional<z.ZodObject<{
|
|
997
|
+
kind: z.ZodEnum<{
|
|
998
|
+
semantic: "semantic";
|
|
999
|
+
element_id: "element_id";
|
|
1000
|
+
selector: "selector";
|
|
1001
|
+
}>;
|
|
1002
|
+
text: z.ZodOptional<z.ZodString>;
|
|
1003
|
+
role: z.ZodOptional<z.ZodString>;
|
|
1004
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
selectorHash: z.ZodOptional<z.ZodString>;
|
|
1006
|
+
}, z.core.$strip>>;
|
|
1007
|
+
urlBefore: z.ZodNullable<z.ZodString>;
|
|
1008
|
+
urlAfter: z.ZodNullable<z.ZodString>;
|
|
1009
|
+
status: z.ZodEnum<{
|
|
1010
|
+
ok: "ok";
|
|
1011
|
+
error: "error";
|
|
1012
|
+
ambiguous_target: "ambiguous_target";
|
|
1013
|
+
blocked_by_policy: "blocked_by_policy";
|
|
1014
|
+
}>;
|
|
1015
|
+
screenshotPath: z.ZodOptional<z.ZodString>;
|
|
1016
|
+
observationSummary: z.ZodOptional<z.ZodString>;
|
|
1017
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
1018
|
+
reason: z.ZodString;
|
|
1019
|
+
recoverable: z.ZodBoolean;
|
|
1020
|
+
}, z.core.$strip>>;
|
|
1021
|
+
durationMs: z.ZodNumber;
|
|
1022
|
+
}, z.core.$strip>;
|
|
1023
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1024
|
+
ts: z.ZodString;
|
|
1025
|
+
seq: z.ZodNumber;
|
|
1026
|
+
kind: z.ZodLiteral<"session_phase">;
|
|
1027
|
+
payload: z.ZodObject<{
|
|
1028
|
+
phase: z.ZodEnum<{
|
|
1029
|
+
bootstrap_start: "bootstrap_start";
|
|
1030
|
+
bootstrap_done: "bootstrap_done";
|
|
1031
|
+
session_init_start: "session_init_start";
|
|
1032
|
+
session_init_done: "session_init_done";
|
|
1033
|
+
mcp_connect_start: "mcp_connect_start";
|
|
1034
|
+
mcp_connect_done: "mcp_connect_done";
|
|
1035
|
+
mcp_server_start: "mcp_server_start";
|
|
1036
|
+
mcp_server_done: "mcp_server_done";
|
|
1037
|
+
loop_start: "loop_start";
|
|
1038
|
+
loop_end: "loop_end";
|
|
1039
|
+
model_ttfb: "model_ttfb";
|
|
1040
|
+
}>;
|
|
1041
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
1042
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
|
|
1043
|
+
model: z.ZodOptional<z.ZodString>;
|
|
1044
|
+
resolvedModel: z.ZodOptional<z.ZodString>;
|
|
1045
|
+
origin: z.ZodOptional<z.ZodEnum<{
|
|
1046
|
+
telegram: "telegram";
|
|
1047
|
+
daemon: "daemon";
|
|
1048
|
+
cli: "cli";
|
|
1049
|
+
unknown: "unknown";
|
|
1050
|
+
}>>;
|
|
1051
|
+
actor: z.ZodOptional<z.ZodEnum<{
|
|
1052
|
+
main: "main";
|
|
1053
|
+
subagent: "subagent";
|
|
1054
|
+
}>>;
|
|
1055
|
+
}, z.core.$strip>;
|
|
1056
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1057
|
+
ts: z.ZodString;
|
|
1058
|
+
seq: z.ZodNumber;
|
|
1059
|
+
kind: z.ZodLiteral<"session_sealed">;
|
|
1060
|
+
payload: z.ZodObject<{
|
|
1061
|
+
status: z.ZodEnum<{
|
|
1062
|
+
succeeded: "succeeded";
|
|
1063
|
+
failed: "failed";
|
|
1064
|
+
cancelled: "cancelled";
|
|
1065
|
+
}>;
|
|
1066
|
+
finalCostUsd: z.ZodNumber;
|
|
1067
|
+
finalTurnCount: z.ZodNumber;
|
|
1068
|
+
closedAt: z.ZodString;
|
|
1069
|
+
incomplete: z.ZodOptional<z.ZodBoolean>;
|
|
1070
|
+
subagentCount: z.ZodOptional<z.ZodNumber>;
|
|
1071
|
+
subagentTokens: z.ZodOptional<z.ZodObject<{
|
|
1072
|
+
input: z.ZodOptional<z.ZodNumber>;
|
|
1073
|
+
output: z.ZodOptional<z.ZodNumber>;
|
|
1074
|
+
cacheRead: z.ZodOptional<z.ZodNumber>;
|
|
1075
|
+
cacheCreation: z.ZodOptional<z.ZodNumber>;
|
|
1076
|
+
}, z.core.$strip>>;
|
|
1077
|
+
subagentCostUsd: z.ZodOptional<z.ZodNumber>;
|
|
1078
|
+
}, z.core.$strip>;
|
|
1079
|
+
}, z.core.$strip>], "kind">;
|