@cerebriline/core 4.100.240
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/LICENSE +201 -0
- package/README.md +16 -0
- package/assets/office-oxide/LICENSE-APACHE +176 -0
- package/assets/office-oxide/LICENSE-MIT +25 -0
- package/assets/office-oxide/office_oxide_bg.wasm +0 -0
- package/assets/prompt-templates/claude.md +516 -0
- package/assets/prompt-templates/deepseek.md +331 -0
- package/assets/prompt-templates/default.md +386 -0
- package/assets/prompt-templates/gemma.md +352 -0
- package/assets/prompt-templates/glm.md +334 -0
- package/assets/prompt-templates/kimi-k3.md +408 -0
- package/assets/prompt-templates/kimi.md +402 -0
- package/assets/prompt-templates/minimax.md +473 -0
- package/assets/prompt-templates/nemotron.md +358 -0
- package/assets/prompt-templates/qwen.md +612 -0
- package/dist/ClineCore.d.ts +365 -0
- package/dist/account/cline-account-service.d.ts +41 -0
- package/dist/account/index.d.ts +3 -0
- package/dist/account/rpc.d.ts +40 -0
- package/dist/account/types.d.ts +122 -0
- package/dist/auth/bounded-ttl-cache.d.ts +13 -0
- package/dist/auth/client.d.ts +30 -0
- package/dist/auth/cline.d.ts +71 -0
- package/dist/auth/codex.d.ts +40 -0
- package/dist/auth/oca.d.ts +21 -0
- package/dist/auth/provider-auth-registry.d.ts +52 -0
- package/dist/auth/server.d.ts +54 -0
- package/dist/auth/types.d.ts +103 -0
- package/dist/auth/utils.d.ts +31 -0
- package/dist/cline-core/automation.d.ts +34 -0
- package/dist/cline-core/runtime-services.d.ts +5 -0
- package/dist/cline-core/start-input.d.ts +10 -0
- package/dist/cline-core/telemetry.d.ts +10 -0
- package/dist/cline-core/types.d.ts +236 -0
- package/dist/cron/events/cron-event-ingress.d.ts +37 -0
- package/dist/cron/reports/cron-report-writer.d.ts +42 -0
- package/dist/cron/runner/cron-materializer.d.ts +35 -0
- package/dist/cron/runner/cron-runner.d.ts +60 -0
- package/dist/cron/runner/resource-limiter.d.ts +8 -0
- package/dist/cron/schedule/scheduler.d.ts +12 -0
- package/dist/cron/service/cron-service.d.ts +56 -0
- package/dist/cron/service/schedule-command-service.d.ts +14 -0
- package/dist/cron/service/schedule-service.d.ts +116 -0
- package/dist/cron/service/schedule-tool.d.ts +81 -0
- package/dist/cron/specs/cron-reconciler.d.ts +61 -0
- package/dist/cron/specs/cron-spec-parser.d.ts +26 -0
- package/dist/cron/specs/cron-watcher.d.ts +22 -0
- package/dist/cron/store/cron-schema.d.ts +2 -0
- package/dist/cron/store/sqlite-cron-store.d.ts +261 -0
- package/dist/extensions/agent-plugin/agent-skill.d.ts +21 -0
- package/dist/extensions/agent-plugin/index.d.ts +4 -0
- package/dist/extensions/agent-plugin/loader.d.ts +10 -0
- package/dist/extensions/agent-plugin/types.d.ts +67 -0
- package/dist/extensions/complexity/grammars.d.ts +92 -0
- package/dist/extensions/complexity/walker.d.ts +115 -0
- package/dist/extensions/config/builtin-templates.d.ts +10 -0
- package/dist/extensions/config/builtin-templates.generated.d.ts +5 -0
- package/dist/extensions/config/index.d.ts +15 -0
- package/dist/extensions/config/prompt-template-compaction.d.ts +92 -0
- package/dist/extensions/config/prompt-template-delta.d.ts +107 -0
- package/dist/extensions/config/prompt-template-hooks.d.ts +47 -0
- package/dist/extensions/config/prompt-template-loader.d.ts +79 -0
- package/dist/extensions/config/prompt-template-parser.d.ts +56 -0
- package/dist/extensions/config/prompt-template-review.d.ts +327 -0
- package/dist/extensions/config/prompt-template-session.d.ts +46 -0
- package/dist/extensions/config/runtime-commands.d.ts +23 -0
- package/dist/extensions/config/shipped-tool-signatures.d.ts +36 -0
- package/dist/extensions/config/skill-frontmatter-toggle.d.ts +11 -0
- package/dist/extensions/config/unified-config-file-watcher.d.ts +77 -0
- package/dist/extensions/config/user-instruction-config-loader.d.ts +77 -0
- package/dist/extensions/config/user-instruction-plugin.d.ts +26 -0
- package/dist/extensions/config/user-instruction-service.d.ts +31 -0
- package/dist/extensions/context/agentic-compaction.d.ts +129 -0
- package/dist/extensions/context/basic-compaction.d.ts +19 -0
- package/dist/extensions/context/budget-projection/index.d.ts +2 -0
- package/dist/extensions/context/budget-projection/project.d.ts +4 -0
- package/dist/extensions/context/budget-projection/types.d.ts +58 -0
- package/dist/extensions/context/capped-thinking.d.ts +195 -0
- package/dist/extensions/context/compaction-cause.d.ts +27 -0
- package/dist/extensions/context/compaction-journal.d.ts +65 -0
- package/dist/extensions/context/compaction-revisions.d.ts +72 -0
- package/dist/extensions/context/compaction-shared.d.ts +608 -0
- package/dist/extensions/context/compaction.d.ts +161 -0
- package/dist/extensions/context/context-minimum-warning.d.ts +27 -0
- package/dist/extensions/context/continuation-compaction.d.ts +260 -0
- package/dist/extensions/context/council-compaction.d.ts +262 -0
- package/dist/extensions/context/full-compaction.d.ts +44 -0
- package/dist/extensions/context/kv-pressure.d.ts +258 -0
- package/dist/extensions/context/polykv-session.d.ts +372 -0
- package/dist/extensions/context/replay-compaction.d.ts +90 -0
- package/dist/extensions/context/tool-ledger.d.ts +198 -0
- package/dist/extensions/context/work-digest.d.ts +92 -0
- package/dist/extensions/index.d.ts +7 -0
- package/dist/extensions/mcp/client.d.ts +28 -0
- package/dist/extensions/mcp/config-loader.d.ts +102 -0
- package/dist/extensions/mcp/index.d.ts +15 -0
- package/dist/extensions/mcp/manager.d.ts +23 -0
- package/dist/extensions/mcp/name-transform.d.ts +2 -0
- package/dist/extensions/mcp/oauth.d.ts +68 -0
- package/dist/extensions/mcp/plugin-server-registration.d.ts +18 -0
- package/dist/extensions/mcp/policies.d.ts +14 -0
- package/dist/extensions/mcp/remote-proxy.d.ts +9 -0
- package/dist/extensions/mcp/timeout.d.ts +2 -0
- package/dist/extensions/mcp/tools.d.ts +3 -0
- package/dist/extensions/mcp/types.d.ts +133 -0
- package/dist/extensions/plugin/plugin-config-loader.d.ts +44 -0
- package/dist/extensions/plugin/plugin-load-report.d.ts +18 -0
- package/dist/extensions/plugin/plugin-loader.d.ts +23 -0
- package/dist/extensions/plugin/plugin-module-import.d.ts +4 -0
- package/dist/extensions/plugin/plugin-sandbox.d.ts +82 -0
- package/dist/extensions/plugin/plugin-targeting.d.ts +6 -0
- package/dist/extensions/plugin-sandbox-bootstrap.js +1 -0
- package/dist/extensions/tools/ask-lsp.d.ts +150 -0
- package/dist/extensions/tools/audio-tools.d.ts +156 -0
- package/dist/extensions/tools/browser.d.ts +137 -0
- package/dist/extensions/tools/check-file.d.ts +218 -0
- package/dist/extensions/tools/check-on-failure.d.ts +49 -0
- package/dist/extensions/tools/code-intel.d.ts +131 -0
- package/dist/extensions/tools/command-guard-extension.d.ts +22 -0
- package/dist/extensions/tools/command-guard.d.ts +29 -0
- package/dist/extensions/tools/constants.d.ts +28 -0
- package/dist/extensions/tools/definitions.d.ts +178 -0
- package/dist/extensions/tools/delimiter-balance.d.ts +121 -0
- package/dist/extensions/tools/edit-verification.d.ts +86 -0
- package/dist/extensions/tools/error-locations.d.ts +53 -0
- package/dist/extensions/tools/executors/apply-patch-parser.d.ts +68 -0
- package/dist/extensions/tools/executors/apply-patch.d.ts +48 -0
- package/dist/extensions/tools/executors/awk-parser.d.ts +163 -0
- package/dist/extensions/tools/executors/awk.d.ts +41 -0
- package/dist/extensions/tools/executors/bash.d.ts +119 -0
- package/dist/extensions/tools/executors/document/assets.d.ts +22 -0
- package/dist/extensions/tools/executors/document/ebook.d.ts +11 -0
- package/dist/extensions/tools/executors/document/formats.d.ts +83 -0
- package/dist/extensions/tools/executors/document/images.d.ts +73 -0
- package/dist/extensions/tools/executors/document/legacy.d.ts +20 -0
- package/dist/extensions/tools/executors/document/ocr.d.ts +67 -0
- package/dist/extensions/tools/executors/document/office-oxide.d.ts +19 -0
- package/dist/extensions/tools/executors/document/office-oxide.generated.d.ts +82 -0
- package/dist/extensions/tools/executors/document/office.d.ts +10 -0
- package/dist/extensions/tools/executors/document/pdf.d.ts +6 -0
- package/dist/extensions/tools/executors/document/pdfjs.d.ts +30 -0
- package/dist/extensions/tools/executors/document/range.d.ts +18 -0
- package/dist/extensions/tools/executors/document/recognition.d.ts +67 -0
- package/dist/extensions/tools/executors/document-extract.d.ts +55 -0
- package/dist/extensions/tools/executors/editor.d.ts +68 -0
- package/dist/extensions/tools/executors/file-locks.d.ts +41 -0
- package/dist/extensions/tools/executors/file-read.d.ts +136 -0
- package/dist/extensions/tools/executors/grep.d.ts +35 -0
- package/dist/extensions/tools/executors/index.d.ts +97 -0
- package/dist/extensions/tools/executors/line-endings.d.ts +23 -0
- package/dist/extensions/tools/executors/output-limits.d.ts +58 -0
- package/dist/extensions/tools/executors/overlay-receipts.d.ts +25 -0
- package/dist/extensions/tools/executors/posix-regex.d.ts +52 -0
- package/dist/extensions/tools/executors/read-receipts.d.ts +93 -0
- package/dist/extensions/tools/executors/run-command-execution-controller.d.ts +16 -0
- package/dist/extensions/tools/executors/search.d.ts +50 -0
- package/dist/extensions/tools/executors/sed.d.ts +92 -0
- package/dist/extensions/tools/executors/unchanged-reads.d.ts +55 -0
- package/dist/extensions/tools/executors/web-fetch.d.ts +58 -0
- package/dist/extensions/tools/helpers.d.ts +59 -0
- package/dist/extensions/tools/image-edit.d.ts +76 -0
- package/dist/extensions/tools/image-generation.d.ts +183 -0
- package/dist/extensions/tools/index.d.ts +68 -0
- package/dist/extensions/tools/jev.d.ts +336 -0
- package/dist/extensions/tools/list-files.d.ts +128 -0
- package/dist/extensions/tools/media-endpoint.d.ts +160 -0
- package/dist/extensions/tools/media-tools.d.ts +140 -0
- package/dist/extensions/tools/model-tool-routing.d.ts +33 -0
- package/dist/extensions/tools/presets.d.ts +154 -0
- package/dist/extensions/tools/qa-credentials.d.ts +133 -0
- package/dist/extensions/tools/runtime.d.ts +39 -0
- package/dist/extensions/tools/schemas.d.ts +845 -0
- package/dist/extensions/tools/task-progress.d.ts +217 -0
- package/dist/extensions/tools/team/agent-admission.d.ts +127 -0
- package/dist/extensions/tools/team/agent-check.d.ts +152 -0
- package/dist/extensions/tools/team/agent-controls.d.ts +55 -0
- package/dist/extensions/tools/team/agent-file.d.ts +28 -0
- package/dist/extensions/tools/team/agent-iteration-cap.d.ts +328 -0
- package/dist/extensions/tools/team/agent-names.d.ts +29 -0
- package/dist/extensions/tools/team/agent-node-placement.d.ts +160 -0
- package/dist/extensions/tools/team/agent-placement-queue.d.ts +199 -0
- package/dist/extensions/tools/team/agent-placement.d.ts +118 -0
- package/dist/extensions/tools/team/agent-reports.d.ts +53 -0
- package/dist/extensions/tools/team/agent-rounds.d.ts +666 -0
- package/dist/extensions/tools/team/agent-sandbox-executors.d.ts +79 -0
- package/dist/extensions/tools/team/agent-slot-gate.d.ts +186 -0
- package/dist/extensions/tools/team/agent-status.d.ts +84 -0
- package/dist/extensions/tools/team/agent-trouble.d.ts +91 -0
- package/dist/extensions/tools/team/background-delegations.d.ts +106 -0
- package/dist/extensions/tools/team/batch-report.d.ts +151 -0
- package/dist/extensions/tools/team/configured-agent-config.d.ts +37 -0
- package/dist/extensions/tools/team/configured-agent-tool.d.ts +135 -0
- package/dist/extensions/tools/team/create-agent-tool.d.ts +45 -0
- package/dist/extensions/tools/team/delegate-to-agent.d.ts +105 -0
- package/dist/extensions/tools/team/delegated-agent.d.ts +272 -0
- package/dist/extensions/tools/team/delegated-sandboxes.d.ts +125 -0
- package/dist/extensions/tools/team/delegated-tools.d.ts +40 -0
- package/dist/extensions/tools/team/delegation-call-hooks.d.ts +30 -0
- package/dist/extensions/tools/team/engine-evictions.d.ts +38 -0
- package/dist/extensions/tools/team/index.d.ts +20 -0
- package/dist/extensions/tools/team/lead-agent-tools.d.ts +92 -0
- package/dist/extensions/tools/team/multi-agent.d.ts +364 -0
- package/dist/extensions/tools/team/node-reachability.d.ts +53 -0
- package/dist/extensions/tools/team/node-throughput.d.ts +40 -0
- package/dist/extensions/tools/team/placed-run.d.ts +114 -0
- package/dist/extensions/tools/team/projections.d.ts +8 -0
- package/dist/extensions/tools/team/runtime.d.ts +6 -0
- package/dist/extensions/tools/team/session-window-retry.d.ts +28 -0
- package/dist/extensions/tools/team/spawn-agent-tool.d.ts +450 -0
- package/dist/extensions/tools/team/spawn-sampling.d.ts +188 -0
- package/dist/extensions/tools/team/spawn-swarm-tool.d.ts +330 -0
- package/dist/extensions/tools/team/subagent-cancellation.d.ts +188 -0
- package/dist/extensions/tools/team/subagent-layout.d.ts +90 -0
- package/dist/extensions/tools/team/subagent-output.d.ts +73 -0
- package/dist/extensions/tools/team/subagent-progress.d.ts +211 -0
- package/dist/extensions/tools/team/subagent-prompts.d.ts +3 -0
- package/dist/extensions/tools/team/team-state-dates.d.ts +10 -0
- package/dist/extensions/tools/team/team-tools.d.ts +56 -0
- package/dist/extensions/tools/team/teammates-off.d.ts +14 -0
- package/dist/extensions/tools/team/token-split.d.ts +28 -0
- package/dist/extensions/tools/team/turn-fault-recovery.d.ts +71 -0
- package/dist/extensions/tools/types.d.ts +410 -0
- package/dist/extensions/tools/video-generation.d.ts +94 -0
- package/dist/hooks/checkpoint-hooks.d.ts +39 -0
- package/dist/hooks/hook-extension.d.ts +2 -0
- package/dist/hooks/hook-file-config.d.ts +24 -0
- package/dist/hooks/hook-file-hooks.d.ts +22 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/subprocess-runner.d.ts +21 -0
- package/dist/hooks/subprocess.d.ts +74 -0
- package/dist/hub/client/connect.d.ts +14 -0
- package/dist/hub/client/index.d.ts +146 -0
- package/dist/hub/client/managed-hub-build-watcher.d.ts +62 -0
- package/dist/hub/client/session-client.d.ts +138 -0
- package/dist/hub/client/ui-client.d.ts +52 -0
- package/dist/hub/daemon/entry.d.ts +15 -0
- package/dist/hub/daemon/entry.js +2033 -0
- package/dist/hub/daemon/index.d.ts +125 -0
- package/dist/hub/daemon/runtime-handlers.d.ts +12 -0
- package/dist/hub/daemon/shutdown-coordinator.d.ts +31 -0
- package/dist/hub/daemon/start-shared-server.d.ts +18 -0
- package/dist/hub/daemon/telemetry.d.ts +19 -0
- package/dist/hub/discovery/defaults.d.ts +16 -0
- package/dist/hub/discovery/index.d.ts +139 -0
- package/dist/hub/discovery/instance-lock.d.ts +51 -0
- package/dist/hub/discovery/workspace.d.ts +13 -0
- package/dist/hub/index.d.ts +38 -0
- package/dist/hub/index.js +2023 -0
- package/dist/hub/runtime-host/hub-runtime-host.d.ts +83 -0
- package/dist/hub/runtime-host/remote-runtime-host.d.ts +9 -0
- package/dist/hub/server/browser-websocket.d.ts +22 -0
- package/dist/hub/server/command-transport.d.ts +29 -0
- package/dist/hub/server/handlers/approval-handlers.d.ts +24 -0
- package/dist/hub/server/handlers/capability-handlers.d.ts +12 -0
- package/dist/hub/server/handlers/client-handlers.d.ts +6 -0
- package/dist/hub/server/handlers/connector-handlers.d.ts +20 -0
- package/dist/hub/server/handlers/context.d.ts +98 -0
- package/dist/hub/server/handlers/run-handlers.d.ts +6 -0
- package/dist/hub/server/handlers/run-queue-handlers.d.ts +33 -0
- package/dist/hub/server/handlers/session-event-projector.d.ts +7 -0
- package/dist/hub/server/handlers/session-handlers.d.ts +30 -0
- package/dist/hub/server/hub-client-contributions.d.ts +19 -0
- package/dist/hub/server/hub-event-log.d.ts +57 -0
- package/dist/hub/server/hub-notifications.d.ts +7 -0
- package/dist/hub/server/hub-run-queue.d.ts +82 -0
- package/dist/hub/server/hub-schedule-events.d.ts +2 -0
- package/dist/hub/server/hub-server-logging.d.ts +2 -0
- package/dist/hub/server/hub-server-options.d.ts +94 -0
- package/dist/hub/server/hub-server-transport.d.ts +71 -0
- package/dist/hub/server/hub-session-records.d.ts +9 -0
- package/dist/hub/server/hub-websocket-server.d.ts +12 -0
- package/dist/hub/server/index.d.ts +4 -0
- package/dist/hub/server/native-transport.d.ts +25 -0
- package/dist/hub/server/task-command-service.d.ts +11 -0
- package/dist/index.d.ts +172 -0
- package/dist/index.js +5435 -0
- package/dist/logging/early-logger.d.ts +37 -0
- package/dist/remote-config/integration.d.ts +17 -0
- package/dist/runtime/atomic/base-revision-reads.d.ts +106 -0
- package/dist/runtime/atomic/base-revision.d.ts +77 -0
- package/dist/runtime/atomic/check-first-edits.d.ts +79 -0
- package/dist/runtime/atomic/file-revisions.d.ts +268 -0
- package/dist/runtime/atomic/oracle.d.ts +178 -0
- package/dist/runtime/atomic/page-check.d.ts +39 -0
- package/dist/runtime/atomic/plan-capture.d.ts +40 -0
- package/dist/runtime/atomic/plan-text.d.ts +33 -0
- package/dist/runtime/atomic/plan-tool.d.ts +159 -0
- package/dist/runtime/atomic/proposal.d.ts +112 -0
- package/dist/runtime/atomic/propose-check-tool.d.ts +76 -0
- package/dist/runtime/atomic/protocol.d.ts +233 -0
- package/dist/runtime/atomic/restore-file-tool.d.ts +196 -0
- package/dist/runtime/atomic/revision-capture.d.ts +75 -0
- package/dist/runtime/atomic/run-check-tool.d.ts +64 -0
- package/dist/runtime/atomic/session-protocol.d.ts +304 -0
- package/dist/runtime/atomic/session-revisions.d.ts +77 -0
- package/dist/runtime/atomic/snapshot.d.ts +77 -0
- package/dist/runtime/atomic/stalled-checks.d.ts +106 -0
- package/dist/runtime/atomic/submit-transaction-tool.d.ts +50 -0
- package/dist/runtime/atomic/tool-activity.d.ts +15 -0
- package/dist/runtime/atomic/transaction-controller.d.ts +364 -0
- package/dist/runtime/atomic/unparseable-change.d.ts +35 -0
- package/dist/runtime/capabilities/index.d.ts +2 -0
- package/dist/runtime/capabilities/normalize-runtime-capabilities.d.ts +2 -0
- package/dist/runtime/capabilities/runtime-capabilities.d.ts +18 -0
- package/dist/runtime/config/agent-message-codec.d.ts +6 -0
- package/dist/runtime/config/agent-runtime-config-builder.d.ts +93 -0
- package/dist/runtime/config/connection-update.d.ts +40 -0
- package/dist/runtime/escalation/a2a.d.ts +109 -0
- package/dist/runtime/escalation/assessment.d.ts +54 -0
- package/dist/runtime/escalation/brief.d.ts +70 -0
- package/dist/runtime/escalation/escalate-tool.d.ts +93 -0
- package/dist/runtime/escalation/escalation-controller.d.ts +62 -0
- package/dist/runtime/escalation/escalation-session.d.ts +241 -0
- package/dist/runtime/escalation/expert-failure.d.ts +20 -0
- package/dist/runtime/escalation/expert-guards.d.ts +46 -0
- package/dist/runtime/escalation/expert-mailbox.d.ts +34 -0
- package/dist/runtime/escalation/expert-notes.d.ts +115 -0
- package/dist/runtime/escalation/expert-prompt.d.ts +29 -0
- package/dist/runtime/escalation/expert-revisions.d.ts +62 -0
- package/dist/runtime/escalation/expert-session.d.ts +164 -0
- package/dist/runtime/escalation/expert-transcript.d.ts +32 -0
- package/dist/runtime/escalation/forced-escalation.d.ts +58 -0
- package/dist/runtime/escalation/stand-down.d.ts +66 -0
- package/dist/runtime/escalation/struggle-offer.d.ts +100 -0
- package/dist/runtime/escalation/watch-tool.d.ts +34 -0
- package/dist/runtime/host/history.d.ts +19 -0
- package/dist/runtime/host/host.d.ts +7 -0
- package/dist/runtime/host/local/agent-event-bridge.d.ts +50 -0
- package/dist/runtime/host/local/session-record.d.ts +6 -0
- package/dist/runtime/host/local/session-service-invoker.d.ts +4 -0
- package/dist/runtime/host/local/spawn-tool.d.ts +57 -0
- package/dist/runtime/host/local/user-files.d.ts +1 -0
- package/dist/runtime/host/local-runtime-host.d.ts +298 -0
- package/dist/runtime/host/runtime-host-support.d.ts +39 -0
- package/dist/runtime/host/runtime-host.d.ts +280 -0
- package/dist/runtime/host/steer-side-turn.d.ts +119 -0
- package/dist/runtime/orchestration/runtime-builder.d.ts +14 -0
- package/dist/runtime/orchestration/runtime-event-adapter.d.ts +104 -0
- package/dist/runtime/orchestration/runtime-oauth-token-manager.d.ts +28 -0
- package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +339 -0
- package/dist/runtime/orchestration/session-runtime.d.ts +118 -0
- package/dist/runtime/orchestration/user-input-builder.d.ts +15 -0
- package/dist/runtime/process-start-token.d.ts +23 -0
- package/dist/runtime/safety/loop-detection.d.ts +160 -0
- package/dist/runtime/safety/mistake-tracker.d.ts +84 -0
- package/dist/runtime/safety/rules.d.ts +6 -0
- package/dist/runtime/safety/struggle-detector.d.ts +414 -0
- package/dist/runtime/safety/worker-struggle-stop.d.ts +20 -0
- package/dist/runtime/safety/worker-struggle.d.ts +166 -0
- package/dist/runtime/sandbox/agent-sandbox.d.ts +111 -0
- package/dist/runtime/sandbox/overlay-fs.d.ts +71 -0
- package/dist/runtime/sandbox/sandbox-binaries.d.ts +10 -0
- package/dist/runtime/tools/subprocess-sandbox-lifecycle.d.ts +9 -0
- package/dist/runtime/tools/subprocess-sandbox.d.ts +62 -0
- package/dist/runtime/tools/tool-approval.d.ts +9 -0
- package/dist/runtime/turn-queue/harness-notes.d.ts +18 -0
- package/dist/runtime/turn-queue/pending-prompt-service.d.ts +117 -0
- package/dist/services/agent-events.d.ts +59 -0
- package/dist/services/config.d.ts +2 -0
- package/dist/services/connectors/active-connectors.d.ts +2 -0
- package/dist/services/connectors/connector-autostart.d.ts +33 -0
- package/dist/services/connectors/connector-child-env.d.ts +14 -0
- package/dist/services/connectors/connector-cleanup.d.ts +20 -0
- package/dist/services/connectors/connector-supervisor.d.ts +134 -0
- package/dist/services/connectors/daemon-connector-reconnect.d.ts +15 -0
- package/dist/services/feature-flags/FeatureFlagsService.d.ts +49 -0
- package/dist/services/feature-flags/index.d.ts +2 -0
- package/dist/services/feature-flags/posthog.d.ts +24 -0
- package/dist/services/feature-flags/posthog.js +1 -0
- package/dist/services/feature-flags/providers.d.ts +7 -0
- package/dist/services/global-settings.d.ts +113 -0
- package/dist/services/llms/apihandler-agent-model-adapter.d.ts +26 -0
- package/dist/services/llms/cline-recommended-models.d.ts +62 -0
- package/dist/services/llms/configured-provider-registry.d.ts +27 -0
- package/dist/services/llms/handler-factory.d.ts +23 -0
- package/dist/services/llms/provider-defaults.d.ts +36 -0
- package/dist/services/llms/provider-settings.d.ts +420 -0
- package/dist/services/llms/runtime-config.d.ts +3 -0
- package/dist/services/llms/runtime-registry.d.ts +19 -0
- package/dist/services/llms/runtime-types.d.ts +84 -0
- package/dist/services/llms/session-budget.d.ts +88 -0
- package/dist/services/local-runtime-bootstrap.d.ts +62 -0
- package/dist/services/marketplace.d.ts +41 -0
- package/dist/services/mcp-install.d.ts +35 -0
- package/dist/services/plugin-install.d.ts +52 -0
- package/dist/services/plugin-mcp-settings.d.ts +31 -0
- package/dist/services/plugin-tools.d.ts +40 -0
- package/dist/services/plugin-uninstall.d.ts +13 -0
- package/dist/services/providers/local-provider-registry.d.ts +354 -0
- package/dist/services/providers/local-provider-service.d.ts +101 -0
- package/dist/services/providers/model-source.d.ts +3 -0
- package/dist/services/providers/provider-config-fields.d.ts +37 -0
- package/dist/services/providers/provider-readiness.d.ts +10 -0
- package/dist/services/session-artifacts.d.ts +18 -0
- package/dist/services/session-data.d.ts +61 -0
- package/dist/services/session-import/claude-code.d.ts +16 -0
- package/dist/services/session-import/codex.d.ts +34 -0
- package/dist/services/session-import/index.d.ts +6 -0
- package/dist/services/session-import/opencode.d.ts +25 -0
- package/dist/services/session-import/sanitize.d.ts +16 -0
- package/dist/services/session-import/service.d.ts +31 -0
- package/dist/services/session-import/types.d.ts +87 -0
- package/dist/services/session-telemetry.d.ts +15 -0
- package/dist/services/storage/file-team-store.d.ts +32 -0
- package/dist/services/storage/provider-settings-legacy-migration.d.ts +38 -0
- package/dist/services/storage/provider-settings-manager.d.ts +31 -0
- package/dist/services/storage/sqlite-session-store.d.ts +35 -0
- package/dist/services/storage/sqlite-team-store.d.ts +42 -0
- package/dist/services/storage/team-events-retention.d.ts +25 -0
- package/dist/services/storage/team-store.d.ts +16 -0
- package/dist/services/telemetry/ITelemetryAdapter.d.ts +54 -0
- package/dist/services/telemetry/OpenTelemetryAdapter.d.ts +43 -0
- package/dist/services/telemetry/OpenTelemetryProvider.d.ts +99 -0
- package/dist/services/telemetry/TelemetryLoggerSink.d.ts +27 -0
- package/dist/services/telemetry/TelemetryService.d.ts +40 -0
- package/dist/services/telemetry/core-events.d.ts +396 -0
- package/dist/services/telemetry/distinct-id.d.ts +2 -0
- package/dist/services/telemetry/index.d.ts +4 -0
- package/dist/services/telemetry/index.js +1 -0
- package/dist/services/usage.d.ts +19 -0
- package/dist/services/workspace/agent-schedules-workspace.d.ts +8 -0
- package/dist/services/workspace/chat-workspace.d.ts +9 -0
- package/dist/services/workspace/file-indexer.d.ts +5 -0
- package/dist/services/workspace/index.d.ts +6 -0
- package/dist/services/workspace/mention-enricher.d.ts +13 -0
- package/dist/services/workspace/workspace-manager.d.ts +27 -0
- package/dist/services/workspace/workspace-manifest.d.ts +42 -0
- package/dist/services/workspace/workspace-telemetry.d.ts +18 -0
- package/dist/session/checkpoint-diff.d.ts +25 -0
- package/dist/session/checkpoint-restore.d.ts +34 -0
- package/dist/session/display-messages.d.ts +28 -0
- package/dist/session/history-origin.d.ts +19 -0
- package/dist/session/models/session-compaction.d.ts +22 -0
- package/dist/session/models/session-graph.d.ts +15 -0
- package/dist/session/models/session-manifest.d.ts +32 -0
- package/dist/session/models/session-row.d.ts +107 -0
- package/dist/session/persisted-tool-result-content.d.ts +8 -0
- package/dist/session/search/index.d.ts +1 -0
- package/dist/session/search/session-history-search.d.ts +51 -0
- package/dist/session/services/file-session-service.d.ts +10 -0
- package/dist/session/services/message-builder.d.ts +208 -0
- package/dist/session/services/persistence-service.d.ts +92 -0
- package/dist/session/services/read-overlap.d.ts +40 -0
- package/dist/session/services/session-service.d.ts +15 -0
- package/dist/session/session-snapshot.d.ts +59 -0
- package/dist/session/session-versioning-service.d.ts +50 -0
- package/dist/session/stores/atomic-file.d.ts +1 -0
- package/dist/session/stores/conversation-store.d.ts +29 -0
- package/dist/session/stores/session-manifest-store.d.ts +49 -0
- package/dist/session/stores/team-persistence-store.d.ts +23 -0
- package/dist/session/team/index.d.ts +2 -0
- package/dist/session/team/team-child-session-manager.d.ts +35 -0
- package/dist/session/team/team-session-coordinator.d.ts +13 -0
- package/dist/session/user-run-messages.d.ts +20 -0
- package/dist/settings/index.d.ts +2 -0
- package/dist/settings/settings-service.d.ts +8 -0
- package/dist/settings/types.d.ts +83 -0
- package/dist/tasks/agenda-task-api.d.ts +20 -0
- package/dist/tasks/agenda-task-manager.d.ts +109 -0
- package/dist/tasks/agenda-task-tool.d.ts +94 -0
- package/dist/tasks/index.d.ts +9 -0
- package/dist/tasks/specs/task-spec-file-store.d.ts +38 -0
- package/dist/tasks/specs/task-spec-parser.d.ts +65 -0
- package/dist/tasks/store/sqlite-task-store.d.ts +73 -0
- package/dist/tasks/store/task-schema.d.ts +2 -0
- package/dist/tasks/task-location.d.ts +14 -0
- package/dist/tasks/task-tool.d.ts +143 -0
- package/dist/types/chat-schema.d.ts +194 -0
- package/dist/types/common.d.ts +35 -0
- package/dist/types/config.d.ts +994 -0
- package/dist/types/events.d.ts +102 -0
- package/dist/types/provider-settings.d.ts +29 -0
- package/dist/types/session.d.ts +187 -0
- package/dist/types/sessions.d.ts +42 -0
- package/dist/types/storage.d.ts +36 -0
- package/dist/types.d.ts +34 -0
- package/dist/version.d.ts +1 -0
- package/package.json +98 -0
- package/scripts/document-reader-assets.mjs +161 -0
|
@@ -0,0 +1,845 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod Schemas for Default Tool Inputs
|
|
3
|
+
*
|
|
4
|
+
* These schemas define the input structure for each default tool
|
|
5
|
+
* and are used for both validation and JSON Schema generation.
|
|
6
|
+
*/
|
|
7
|
+
import { z } from "zod";
|
|
8
|
+
export declare const INPUT_ARG_CHAR_LIMIT = 6000;
|
|
9
|
+
/**
|
|
10
|
+
* Character ceiling for a single `editor` payload.
|
|
11
|
+
*
|
|
12
|
+
* Higher than the shared limit because an edit is not a shell command: the
|
|
13
|
+
* text is a region of a file, and its size is set by the file rather than by
|
|
14
|
+
* how concise the model is being. Measured on a 156-message session — a
|
|
15
|
+
* class-body replacement came to 6,407 characters and was refused for being
|
|
16
|
+
* 407 over, which cost a re-read and several follow-up edits to say the same
|
|
17
|
+
* thing. The guard is still here to catch a runaway payload; it should not be
|
|
18
|
+
* catching ordinary work.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_EDITOR_ARG_CHAR_LIMIT = 32000;
|
|
21
|
+
export declare const EDITOR_ARG_CHAR_LIMIT: number;
|
|
22
|
+
export declare const ReadFileLineRangeSchema: z.ZodObject<{
|
|
23
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
24
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export declare const ReadFileRequestSchema: z.ZodObject<{
|
|
27
|
+
path: z.ZodString;
|
|
28
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
29
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
30
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
/**
|
|
33
|
+
* Schema for read_files tool input
|
|
34
|
+
*/
|
|
35
|
+
export declare const ReadFilesInputSchema: z.ZodObject<{
|
|
36
|
+
files: z.ZodArray<z.ZodObject<{
|
|
37
|
+
path: z.ZodString;
|
|
38
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
39
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
40
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
41
|
+
}, z.core.$strip>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
/**
|
|
44
|
+
* Union schema for read_files tool input, allowing either a single string, an array of strings, or the full object schema
|
|
45
|
+
*/
|
|
46
|
+
export declare const ReadFilesInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
47
|
+
files: z.ZodArray<z.ZodObject<{
|
|
48
|
+
path: z.ZodString;
|
|
49
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
50
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
51
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
54
|
+
path: z.ZodString;
|
|
55
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
56
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
57
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
58
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
59
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
60
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
61
|
+
file_path: z.ZodString;
|
|
62
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
63
|
+
start_line?: number | null | undefined;
|
|
64
|
+
end_line?: number | null | undefined;
|
|
65
|
+
path: string;
|
|
66
|
+
}, {
|
|
67
|
+
file_path: string;
|
|
68
|
+
start_line?: number | null | undefined;
|
|
69
|
+
end_line?: number | null | undefined;
|
|
70
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
71
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
72
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
73
|
+
filePath: z.ZodString;
|
|
74
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
75
|
+
start_line?: number | null | undefined;
|
|
76
|
+
end_line?: number | null | undefined;
|
|
77
|
+
path: string;
|
|
78
|
+
}, {
|
|
79
|
+
filePath: string;
|
|
80
|
+
start_line?: number | null | undefined;
|
|
81
|
+
end_line?: number | null | undefined;
|
|
82
|
+
}>>]>, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
83
|
+
path: z.ZodString;
|
|
84
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
85
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
86
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
87
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
88
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
89
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
90
|
+
file_path: z.ZodString;
|
|
91
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
92
|
+
start_line?: number | null | undefined;
|
|
93
|
+
end_line?: number | null | undefined;
|
|
94
|
+
path: string;
|
|
95
|
+
}, {
|
|
96
|
+
file_path: string;
|
|
97
|
+
start_line?: number | null | undefined;
|
|
98
|
+
end_line?: number | null | undefined;
|
|
99
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
100
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
101
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
102
|
+
filePath: z.ZodString;
|
|
103
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
104
|
+
start_line?: number | null | undefined;
|
|
105
|
+
end_line?: number | null | undefined;
|
|
106
|
+
path: string;
|
|
107
|
+
}, {
|
|
108
|
+
filePath: string;
|
|
109
|
+
start_line?: number | null | undefined;
|
|
110
|
+
end_line?: number | null | undefined;
|
|
111
|
+
}>>]>>, z.ZodArray<z.ZodString>, z.ZodString, z.ZodObject<{
|
|
112
|
+
files: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
113
|
+
path: z.ZodString;
|
|
114
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
115
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
116
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
117
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
118
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
119
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
120
|
+
file_path: z.ZodString;
|
|
121
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
122
|
+
start_line?: number | null | undefined;
|
|
123
|
+
end_line?: number | null | undefined;
|
|
124
|
+
path: string;
|
|
125
|
+
}, {
|
|
126
|
+
file_path: string;
|
|
127
|
+
start_line?: number | null | undefined;
|
|
128
|
+
end_line?: number | null | undefined;
|
|
129
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
130
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
131
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
132
|
+
filePath: z.ZodString;
|
|
133
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
134
|
+
start_line?: number | null | undefined;
|
|
135
|
+
end_line?: number | null | undefined;
|
|
136
|
+
path: string;
|
|
137
|
+
}, {
|
|
138
|
+
filePath: string;
|
|
139
|
+
start_line?: number | null | undefined;
|
|
140
|
+
end_line?: number | null | undefined;
|
|
141
|
+
}>>]>]>>;
|
|
142
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
143
|
+
files: z.ZodUnion<readonly [z.ZodObject<{
|
|
144
|
+
path: z.ZodString;
|
|
145
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
146
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
147
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
148
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
149
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
150
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
151
|
+
file_path: z.ZodString;
|
|
152
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
153
|
+
start_line?: number | null | undefined;
|
|
154
|
+
end_line?: number | null | undefined;
|
|
155
|
+
path: string;
|
|
156
|
+
}, {
|
|
157
|
+
file_path: string;
|
|
158
|
+
start_line?: number | null | undefined;
|
|
159
|
+
end_line?: number | null | undefined;
|
|
160
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
161
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
162
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
163
|
+
filePath: z.ZodString;
|
|
164
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
165
|
+
start_line?: number | null | undefined;
|
|
166
|
+
end_line?: number | null | undefined;
|
|
167
|
+
path: string;
|
|
168
|
+
}, {
|
|
169
|
+
filePath: string;
|
|
170
|
+
start_line?: number | null | undefined;
|
|
171
|
+
end_line?: number | null | undefined;
|
|
172
|
+
}>>]>;
|
|
173
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
174
|
+
files: z.ZodString;
|
|
175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
+
file_paths: z.ZodArray<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
file_paths: z.ZodString;
|
|
179
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
180
|
+
paths: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
181
|
+
path: z.ZodString;
|
|
182
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
183
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
184
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
185
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
186
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
187
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
188
|
+
file_path: z.ZodString;
|
|
189
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
190
|
+
start_line?: number | null | undefined;
|
|
191
|
+
end_line?: number | null | undefined;
|
|
192
|
+
path: string;
|
|
193
|
+
}, {
|
|
194
|
+
file_path: string;
|
|
195
|
+
start_line?: number | null | undefined;
|
|
196
|
+
end_line?: number | null | undefined;
|
|
197
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
198
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
199
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
200
|
+
filePath: z.ZodString;
|
|
201
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
202
|
+
start_line?: number | null | undefined;
|
|
203
|
+
end_line?: number | null | undefined;
|
|
204
|
+
path: string;
|
|
205
|
+
}, {
|
|
206
|
+
filePath: string;
|
|
207
|
+
start_line?: number | null | undefined;
|
|
208
|
+
end_line?: number | null | undefined;
|
|
209
|
+
}>>]>]>>;
|
|
210
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
211
|
+
paths: z.ZodUnion<readonly [z.ZodObject<{
|
|
212
|
+
path: z.ZodString;
|
|
213
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
214
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
215
|
+
line_numbers: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
216
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
217
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
218
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
219
|
+
file_path: z.ZodString;
|
|
220
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
221
|
+
start_line?: number | null | undefined;
|
|
222
|
+
end_line?: number | null | undefined;
|
|
223
|
+
path: string;
|
|
224
|
+
}, {
|
|
225
|
+
file_path: string;
|
|
226
|
+
start_line?: number | null | undefined;
|
|
227
|
+
end_line?: number | null | undefined;
|
|
228
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
229
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
230
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
231
|
+
filePath: z.ZodString;
|
|
232
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
233
|
+
start_line?: number | null | undefined;
|
|
234
|
+
end_line?: number | null | undefined;
|
|
235
|
+
path: string;
|
|
236
|
+
}, {
|
|
237
|
+
filePath: string;
|
|
238
|
+
start_line?: number | null | undefined;
|
|
239
|
+
end_line?: number | null | undefined;
|
|
240
|
+
}>>]>;
|
|
241
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
242
|
+
paths: z.ZodString;
|
|
243
|
+
}, z.core.$strip>]>;
|
|
244
|
+
/**
|
|
245
|
+
* A string the model meant as a list.
|
|
246
|
+
*
|
|
247
|
+
* Measured on a live 9B session: `search_codebase` was called six times with
|
|
248
|
+
* `queries` holding the *text* `["Math.random()<", "Math.random()>", ...` --
|
|
249
|
+
* a JSON array, serialised, and truncated mid-way. Every string branch below
|
|
250
|
+
* already accepts a lone string as one query, so that whole literal became one
|
|
251
|
+
* regex, and `[` opens a character class: the tool answered
|
|
252
|
+
* `Invalid regex pattern: Unterminated character class`. The model read that as
|
|
253
|
+
* an escaping problem, spent a thousand tokens on backslashes, and then gave up
|
|
254
|
+
* on the tool and shelled out to PowerShell -- which took the same argument the
|
|
255
|
+
* same way and failed identically.
|
|
256
|
+
*
|
|
257
|
+
* So a string that opens with `[` is treated as what it plainly is. Parsed, it
|
|
258
|
+
* becomes the list it was meant to be. Unparseable, it is refused by name
|
|
259
|
+
* rather than run: a truncated array is a marshalling fault, and searching for
|
|
260
|
+
* its text finds nothing while looking like a search that ran.
|
|
261
|
+
*
|
|
262
|
+
* The test is deliberately narrow: an opening bracket followed by a quote. A
|
|
263
|
+
* regex character class (`[a-z]+`) and a shell test (`[ -f package.json ]`)
|
|
264
|
+
* both open with a bracket and neither is a list, so a looser check would
|
|
265
|
+
* refuse two things that work today -- which the tests below caught it doing.
|
|
266
|
+
*/
|
|
267
|
+
export declare function parseArrayString(value: string): {
|
|
268
|
+
list: string[];
|
|
269
|
+
} | {
|
|
270
|
+
refused: string;
|
|
271
|
+
} | undefined;
|
|
272
|
+
/** What the model is told about a list it sent as text that will not parse. */
|
|
273
|
+
export declare const MALFORMED_ARRAY_MESSAGE = "This looks like a JSON array that was sent as a string and did not survive the trip -- it starts with `[` but does not parse. Send the field as an actual array of strings, one entry per item, rather than as text.";
|
|
274
|
+
/**
|
|
275
|
+
* Turn one string into the list it was meant to be, or keep it as one entry.
|
|
276
|
+
*
|
|
277
|
+
* Shared by `search_codebase` and `run_commands`, which took the same malformed
|
|
278
|
+
* argument in the same session and failed in two different ways.
|
|
279
|
+
*
|
|
280
|
+
* A truncated list throws rather than adding a zod issue, and the difference
|
|
281
|
+
* matters inside a union: an issue only makes that one branch lose, and the
|
|
282
|
+
* next branch along accepts any string — so the malformed literal would be run
|
|
283
|
+
* anyway, which is the behaviour being fixed. A thrown error leaves the union
|
|
284
|
+
* entirely and reaches the model as the message.
|
|
285
|
+
*/
|
|
286
|
+
export declare function stringToList(value: string): string[];
|
|
287
|
+
/**
|
|
288
|
+
* A list field that also accepts the single value it was given instead.
|
|
289
|
+
*
|
|
290
|
+
* Every list-taking tool advertises `array`, and models routinely send the one
|
|
291
|
+
* element bare -- `paths: "src/game.js"` for a single file. Measured across 240
|
|
292
|
+
* pandorum sessions and 365 harness runs: `expected array, received string` is
|
|
293
|
+
* the whole of `grep`'s format failures and a third of `awk`'s, and in every
|
|
294
|
+
* case the value itself was correct.
|
|
295
|
+
*
|
|
296
|
+
* Built on {@link stringToList} so the three list fields agree on the hard case
|
|
297
|
+
* as well as the easy one: a string that opens `["` is the model's own array
|
|
298
|
+
* serialised, and a truncated one is refused by name rather than searched for
|
|
299
|
+
* as literal text.
|
|
300
|
+
*/
|
|
301
|
+
export declare function listOrSingle(describe: string): z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>;
|
|
302
|
+
/**
|
|
303
|
+
* Schema for search_codebase tool input
|
|
304
|
+
*/
|
|
305
|
+
export declare const SearchCodebaseInputSchema: z.ZodObject<{
|
|
306
|
+
queries: z.ZodArray<z.ZodString>;
|
|
307
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
308
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
309
|
+
}, z.core.$strip>;
|
|
310
|
+
/**
|
|
311
|
+
* Union schema for search_codebase tool input, allowing either a single string,
|
|
312
|
+
* an array of strings, or the full object schema.
|
|
313
|
+
*
|
|
314
|
+
* `query` is accepted alongside `queries` because the tool teaches the singular
|
|
315
|
+
* itself: every result comes back as `{ query, result, success }`, and the tool
|
|
316
|
+
* description says so in as many words. Measured on a live session, a model that
|
|
317
|
+
* had read its own search results then sent `{"query":"SpectatorSelectionCard"}`
|
|
318
|
+
* and got `✖ Invalid input` — a union that matches no branch names no field, so
|
|
319
|
+
* it retried the same shape twice more before giving up on the tool. `read_files`
|
|
320
|
+
* already takes `path`, `file_path`, `filePath`, `files`, `file_paths` and
|
|
321
|
+
* `paths`; this one had four branches and none of them singular.
|
|
322
|
+
*
|
|
323
|
+
* Every branch normalises to the canonical `{ queries: string[] }`, and the two
|
|
324
|
+
* option fields ride along on the object branches. They did not before: a
|
|
325
|
+
* `{queries: "x", max_per_file: 10}` matched the bare `{queries: string}` branch,
|
|
326
|
+
* which stripped the unknown key, so the search silently ran at the default of
|
|
327
|
+
* one match per file.
|
|
328
|
+
*/
|
|
329
|
+
export declare const SearchCodebaseUnionInputSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
330
|
+
queries: z.ZodArray<z.ZodString>;
|
|
331
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
332
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
333
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
334
|
+
queries: string[];
|
|
335
|
+
}, string[]>>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
336
|
+
queries: string[];
|
|
337
|
+
}, string>>, z.ZodPipe<z.ZodObject<{
|
|
338
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
339
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
340
|
+
queries: z.ZodString;
|
|
341
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
342
|
+
context_lines?: number | null | undefined;
|
|
343
|
+
max_per_file?: number | null | undefined;
|
|
344
|
+
queries: string[];
|
|
345
|
+
}, {
|
|
346
|
+
queries: string;
|
|
347
|
+
context_lines?: number | null | undefined;
|
|
348
|
+
max_per_file?: number | null | undefined;
|
|
349
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
350
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
351
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
352
|
+
query: z.ZodArray<z.ZodString>;
|
|
353
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
354
|
+
context_lines?: number | null | undefined;
|
|
355
|
+
max_per_file?: number | null | undefined;
|
|
356
|
+
queries: string[];
|
|
357
|
+
}, {
|
|
358
|
+
query: string[];
|
|
359
|
+
context_lines?: number | null | undefined;
|
|
360
|
+
max_per_file?: number | null | undefined;
|
|
361
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
362
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
363
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
364
|
+
query: z.ZodString;
|
|
365
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
366
|
+
context_lines?: number | null | undefined;
|
|
367
|
+
max_per_file?: number | null | undefined;
|
|
368
|
+
queries: string[];
|
|
369
|
+
}, {
|
|
370
|
+
query: string;
|
|
371
|
+
context_lines?: number | null | undefined;
|
|
372
|
+
max_per_file?: number | null | undefined;
|
|
373
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
374
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
375
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
376
|
+
queries: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodObject<{
|
|
377
|
+
query: z.ZodOptional<z.ZodString>;
|
|
378
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
379
|
+
text: z.ZodOptional<z.ZodString>;
|
|
380
|
+
}, z.core.$strip>, z.ZodTransform<string | undefined, {
|
|
381
|
+
query?: string | undefined;
|
|
382
|
+
pattern?: string | undefined;
|
|
383
|
+
text?: string | undefined;
|
|
384
|
+
}>> & z.ZodType<string, {
|
|
385
|
+
query?: string | undefined;
|
|
386
|
+
pattern?: string | undefined;
|
|
387
|
+
text?: string | undefined;
|
|
388
|
+
}, z.core.$ZodTypeInternals<string, {
|
|
389
|
+
query?: string | undefined;
|
|
390
|
+
pattern?: string | undefined;
|
|
391
|
+
text?: string | undefined;
|
|
392
|
+
}>>]>>;
|
|
393
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
394
|
+
context_lines?: number | null | undefined;
|
|
395
|
+
max_per_file?: number | null | undefined;
|
|
396
|
+
queries: string[];
|
|
397
|
+
}, {
|
|
398
|
+
queries: string[];
|
|
399
|
+
context_lines?: number | null | undefined;
|
|
400
|
+
max_per_file?: number | null | undefined;
|
|
401
|
+
}>>]>, z.ZodObject<{
|
|
402
|
+
queries: z.ZodArray<z.ZodString>;
|
|
403
|
+
context_lines: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
404
|
+
max_per_file: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
405
|
+
}, z.core.$strip>>;
|
|
406
|
+
export declare const StructuredCommandInputSchema: z.ZodObject<{
|
|
407
|
+
command: z.ZodString;
|
|
408
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
409
|
+
}, z.core.$strip>;
|
|
410
|
+
export declare const StructuredCommandEntrySchema: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
411
|
+
command: z.ZodString;
|
|
412
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
413
|
+
}, z.core.$strip>]>;
|
|
414
|
+
export declare const RunCommandsInputSchema: z.ZodObject<{
|
|
415
|
+
commands: z.ZodArray<z.ZodString>;
|
|
416
|
+
credentials: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
417
|
+
}, z.core.$strip>;
|
|
418
|
+
/**
|
|
419
|
+
* Union schema for run_commands tool input. More flexible.
|
|
420
|
+
*/
|
|
421
|
+
export declare const RunCommandsInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
422
|
+
commands: z.ZodArray<z.ZodString>;
|
|
423
|
+
credentials: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
424
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
425
|
+
commands: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
426
|
+
command: z.ZodString;
|
|
427
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
428
|
+
}, z.core.$strip>]>>;
|
|
429
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
430
|
+
commands: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
431
|
+
command: z.ZodString;
|
|
432
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
433
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
434
|
+
command: z.ZodString;
|
|
435
|
+
args: z.ZodString;
|
|
436
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
437
|
+
command: string;
|
|
438
|
+
args: string[];
|
|
439
|
+
}, {
|
|
440
|
+
command: string;
|
|
441
|
+
args: string;
|
|
442
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
443
|
+
cmd: z.ZodString;
|
|
444
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
445
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
446
|
+
args?: string[] | undefined;
|
|
447
|
+
command: string;
|
|
448
|
+
}, {
|
|
449
|
+
cmd: string;
|
|
450
|
+
args?: string | string[] | undefined;
|
|
451
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
452
|
+
shell_command: z.ZodString;
|
|
453
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
454
|
+
shell_command: string;
|
|
455
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
456
|
+
script: z.ZodString;
|
|
457
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
458
|
+
script: string;
|
|
459
|
+
}>>, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
460
|
+
command: string;
|
|
461
|
+
args: string[];
|
|
462
|
+
}, string[]>>]>>;
|
|
463
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
464
|
+
commands: z.ZodString;
|
|
465
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
466
|
+
commands: string[];
|
|
467
|
+
}, {
|
|
468
|
+
commands: string;
|
|
469
|
+
}>>, z.ZodObject<{
|
|
470
|
+
commands: z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
471
|
+
command: z.ZodString;
|
|
472
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
473
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
474
|
+
command: z.ZodString;
|
|
475
|
+
args: z.ZodString;
|
|
476
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
477
|
+
command: string;
|
|
478
|
+
args: string[];
|
|
479
|
+
}, {
|
|
480
|
+
command: string;
|
|
481
|
+
args: string;
|
|
482
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
483
|
+
cmd: z.ZodString;
|
|
484
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
485
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
486
|
+
args?: string[] | undefined;
|
|
487
|
+
command: string;
|
|
488
|
+
}, {
|
|
489
|
+
cmd: string;
|
|
490
|
+
args?: string | string[] | undefined;
|
|
491
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
492
|
+
shell_command: z.ZodString;
|
|
493
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
494
|
+
shell_command: string;
|
|
495
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
496
|
+
script: z.ZodString;
|
|
497
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
498
|
+
script: string;
|
|
499
|
+
}>>, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
500
|
+
command: string;
|
|
501
|
+
args: string[];
|
|
502
|
+
}, string[]>>]>;
|
|
503
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
504
|
+
command: z.ZodString;
|
|
505
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
506
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
507
|
+
command: z.ZodString;
|
|
508
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
509
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
510
|
+
command: z.ZodString;
|
|
511
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
512
|
+
cmd: z.ZodString;
|
|
513
|
+
}, z.core.$strip>, z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<{
|
|
514
|
+
commands: string[];
|
|
515
|
+
}, string>>, z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
516
|
+
command: z.ZodString;
|
|
517
|
+
args: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
518
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
519
|
+
command: z.ZodString;
|
|
520
|
+
args: z.ZodString;
|
|
521
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
522
|
+
command: string;
|
|
523
|
+
args: string[];
|
|
524
|
+
}, {
|
|
525
|
+
command: string;
|
|
526
|
+
args: string;
|
|
527
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
528
|
+
cmd: z.ZodString;
|
|
529
|
+
args: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodString]>>;
|
|
530
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
531
|
+
args?: string[] | undefined;
|
|
532
|
+
command: string;
|
|
533
|
+
}, {
|
|
534
|
+
cmd: string;
|
|
535
|
+
args?: string | string[] | undefined;
|
|
536
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
537
|
+
shell_command: z.ZodString;
|
|
538
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
539
|
+
shell_command: string;
|
|
540
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
541
|
+
script: z.ZodString;
|
|
542
|
+
}, z.core.$strip>, z.ZodTransform<string, {
|
|
543
|
+
script: string;
|
|
544
|
+
}>>, z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodTransform<{
|
|
545
|
+
command: string;
|
|
546
|
+
args: string[];
|
|
547
|
+
}, string[]>>]>, z.ZodString]>;
|
|
548
|
+
/**
|
|
549
|
+
* Schema for a single web fetch request
|
|
550
|
+
*/
|
|
551
|
+
export declare const WebFetchRequestSchema: z.ZodObject<{
|
|
552
|
+
url: z.ZodString;
|
|
553
|
+
prompt: z.ZodString;
|
|
554
|
+
}, z.core.$strip>;
|
|
555
|
+
/**
|
|
556
|
+
* Schema for fetch_web_content tool input
|
|
557
|
+
*/
|
|
558
|
+
export declare const FetchWebContentInputSchema: z.ZodObject<{
|
|
559
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
560
|
+
url: z.ZodString;
|
|
561
|
+
prompt: z.ZodString;
|
|
562
|
+
}, z.core.$strip>>;
|
|
563
|
+
}, z.core.$strip>;
|
|
564
|
+
/**
|
|
565
|
+
* What the tool will actually accept, as opposed to what it advertises.
|
|
566
|
+
*
|
|
567
|
+
* The advertised shape stays `{requests: [{url, prompt}]}` — one shape to
|
|
568
|
+
* document, and the batching it exists for is the point. But the wrapper is
|
|
569
|
+
* the single most-missed detail in this whole tool set: measured on a live
|
|
570
|
+
* session, a model sent `{url, prompt}` three times, got
|
|
571
|
+
* `Invalid input: expected array, received undefined → at requests` three
|
|
572
|
+
* times, and never worked out what to change. `read_files` has long tolerated
|
|
573
|
+
* the same slip in its own shape; this brings `fetch_web_content` in line.
|
|
574
|
+
*
|
|
575
|
+
* Only the unambiguous flattenings are accepted. Nothing here guesses at a
|
|
576
|
+
* missing `prompt`.
|
|
577
|
+
*/
|
|
578
|
+
export declare const LooseFetchWebContentInputSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
579
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
580
|
+
url: z.ZodString;
|
|
581
|
+
prompt: z.ZodString;
|
|
582
|
+
}, z.core.$strip>>;
|
|
583
|
+
}, z.core.$strip>, z.ZodPipe<z.ZodObject<{
|
|
584
|
+
url: z.ZodString;
|
|
585
|
+
prompt: z.ZodString;
|
|
586
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
587
|
+
requests: {
|
|
588
|
+
url: string;
|
|
589
|
+
prompt: string;
|
|
590
|
+
}[];
|
|
591
|
+
}, {
|
|
592
|
+
url: string;
|
|
593
|
+
prompt: string;
|
|
594
|
+
}>>, z.ZodPipe<z.ZodObject<{
|
|
595
|
+
requests: z.ZodObject<{
|
|
596
|
+
url: z.ZodString;
|
|
597
|
+
prompt: z.ZodString;
|
|
598
|
+
}, z.core.$strip>;
|
|
599
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
600
|
+
requests: {
|
|
601
|
+
url: string;
|
|
602
|
+
prompt: string;
|
|
603
|
+
}[];
|
|
604
|
+
}, {
|
|
605
|
+
requests: {
|
|
606
|
+
url: string;
|
|
607
|
+
prompt: string;
|
|
608
|
+
};
|
|
609
|
+
}>>, z.ZodPipe<z.ZodArray<z.ZodObject<{
|
|
610
|
+
url: z.ZodString;
|
|
611
|
+
prompt: z.ZodString;
|
|
612
|
+
}, z.core.$strip>>, z.ZodTransform<{
|
|
613
|
+
requests: {
|
|
614
|
+
url: string;
|
|
615
|
+
prompt: string;
|
|
616
|
+
}[];
|
|
617
|
+
}, {
|
|
618
|
+
url: string;
|
|
619
|
+
prompt: string;
|
|
620
|
+
}[]>>]>;
|
|
621
|
+
export declare function withNewTextAlias(value: unknown): unknown;
|
|
622
|
+
/**
|
|
623
|
+
* Say what an incomplete `editor` call was trying to be.
|
|
624
|
+
*
|
|
625
|
+
* "Missing required argument `new_text`" is accurate and, on the calls that
|
|
626
|
+
* earn it, not enough. Measured across eleven runs, six `editor` calls were
|
|
627
|
+
* refused for a missing argument and five of them had addressed a region and
|
|
628
|
+
* sent no body: the model was deleting a range and had no reason to think a
|
|
629
|
+
* deletion needed a replacement to be spelled out. The sixth carried
|
|
630
|
+
* `line_numbers` — a `read_files` argument — and was a read wearing the wrong
|
|
631
|
+
* envelope, which the refusal, complaining only about `new_text`, hid.
|
|
632
|
+
*
|
|
633
|
+
* Every line here is read off the arguments that arrived. Nothing is guessed,
|
|
634
|
+
* and in particular no path is ever proposed: the tool that fills in the file
|
|
635
|
+
* a model forgot to name is the tool that edits the wrong one.
|
|
636
|
+
*/
|
|
637
|
+
export declare function describeEditorArgumentGap(value: unknown): string | null;
|
|
638
|
+
/**
|
|
639
|
+
* Schema for editor tool input
|
|
640
|
+
*/
|
|
641
|
+
export declare const EditFileInputSchema: z.ZodObject<{
|
|
642
|
+
path: z.ZodString;
|
|
643
|
+
old_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
644
|
+
new_text: z.ZodString;
|
|
645
|
+
insert_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
646
|
+
start_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
647
|
+
end_line: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
648
|
+
start_column: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
649
|
+
end_column: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
650
|
+
insert_column: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
651
|
+
occurrence: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
652
|
+
replace_all: z.ZodOptional<z.ZodNullable<z.ZodPreprocess<z.ZodBoolean>>>;
|
|
653
|
+
}, z.core.$strip>;
|
|
654
|
+
/**
|
|
655
|
+
* Schema for apply_patch tool input
|
|
656
|
+
*/
|
|
657
|
+
export declare const ApplyPatchInputSchema: z.ZodObject<{
|
|
658
|
+
input: z.ZodString;
|
|
659
|
+
}, z.core.$strip>;
|
|
660
|
+
export declare const ApplyPatchInputUnionSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
661
|
+
input: z.ZodString;
|
|
662
|
+
}, z.core.$strip>, z.ZodString]>;
|
|
663
|
+
/**
|
|
664
|
+
* Schema for skills tool input
|
|
665
|
+
*/
|
|
666
|
+
export declare const SkillsInputSchema: z.ZodObject<{
|
|
667
|
+
skill: z.ZodString;
|
|
668
|
+
args: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
669
|
+
}, z.core.$strip>;
|
|
670
|
+
/**
|
|
671
|
+
* Schema for ask_followup_question tool input
|
|
672
|
+
*/
|
|
673
|
+
export declare const AskQuestionInputSchema: z.ZodObject<{
|
|
674
|
+
question: z.ZodString;
|
|
675
|
+
options: z.ZodArray<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>;
|
|
677
|
+
export declare const SubmitInputSchema: z.ZodObject<{
|
|
678
|
+
summary: z.ZodString;
|
|
679
|
+
verified: z.ZodBoolean;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
/**
|
|
682
|
+
* Schema for the grep tool input.
|
|
683
|
+
*
|
|
684
|
+
* The flag names are spelled out rather than carried as `-i`/`-v`/`-E`, because
|
|
685
|
+
* a model reading the schema has to guess what a single letter means and a
|
|
686
|
+
* wrong guess here silently changes which lines come back.
|
|
687
|
+
*/
|
|
688
|
+
export declare const GrepInputSchema: z.ZodObject<{
|
|
689
|
+
pattern: z.ZodString;
|
|
690
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
691
|
+
ignore_case: z.ZodOptional<z.ZodBoolean>;
|
|
692
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
693
|
+
fixed: z.ZodOptional<z.ZodBoolean>;
|
|
694
|
+
word: z.ZodOptional<z.ZodBoolean>;
|
|
695
|
+
extended: z.ZodOptional<z.ZodBoolean>;
|
|
696
|
+
count: z.ZodOptional<z.ZodBoolean>;
|
|
697
|
+
files_with_matches: z.ZodOptional<z.ZodBoolean>;
|
|
698
|
+
line_numbers: z.ZodOptional<z.ZodBoolean>;
|
|
699
|
+
context: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
700
|
+
max_count: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
701
|
+
}, z.core.$strip>;
|
|
702
|
+
/**
|
|
703
|
+
* Schema for the sed tool input.
|
|
704
|
+
*/
|
|
705
|
+
export declare const SedInputSchema: z.ZodObject<{
|
|
706
|
+
script: z.ZodString;
|
|
707
|
+
files: z.ZodArray<z.ZodString>;
|
|
708
|
+
in_place: z.ZodOptional<z.ZodBoolean>;
|
|
709
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
710
|
+
extended: z.ZodOptional<z.ZodBoolean>;
|
|
711
|
+
}, z.core.$strip>;
|
|
712
|
+
/**
|
|
713
|
+
* Schema for the awk tool input.
|
|
714
|
+
*/
|
|
715
|
+
export declare const AwkInputSchema: z.ZodObject<{
|
|
716
|
+
program: z.ZodString;
|
|
717
|
+
files: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
718
|
+
field_separator: z.ZodOptional<z.ZodString>;
|
|
719
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
720
|
+
}, z.core.$strip>;
|
|
721
|
+
/**
|
|
722
|
+
* Input for the grep tool
|
|
723
|
+
*/
|
|
724
|
+
export type GrepToolInput = z.infer<typeof GrepInputSchema>;
|
|
725
|
+
/**
|
|
726
|
+
* Input for the sed tool
|
|
727
|
+
*/
|
|
728
|
+
export type SedToolInput = z.infer<typeof SedInputSchema>;
|
|
729
|
+
/**
|
|
730
|
+
* Input for the awk tool
|
|
731
|
+
*/
|
|
732
|
+
export type AwkToolInput = z.infer<typeof AwkInputSchema>;
|
|
733
|
+
/**
|
|
734
|
+
* Input for a single file read request
|
|
735
|
+
*/
|
|
736
|
+
export type ReadFileRequest = z.infer<typeof ReadFileRequestSchema>;
|
|
737
|
+
/**
|
|
738
|
+
* Input for the read_files tool
|
|
739
|
+
*/
|
|
740
|
+
export type ReadFilesInput = z.infer<typeof ReadFilesInputSchema>;
|
|
741
|
+
/**
|
|
742
|
+
* Input for the search_codebase tool
|
|
743
|
+
*/
|
|
744
|
+
export type SearchCodebaseInput = z.infer<typeof SearchCodebaseInputSchema>;
|
|
745
|
+
/**
|
|
746
|
+
* Input for the run_commands tool
|
|
747
|
+
*/
|
|
748
|
+
export type RunCommandsInput = z.infer<typeof RunCommandsInputSchema>;
|
|
749
|
+
export type StructuredCommandInput = z.infer<typeof StructuredCommandInputSchema>;
|
|
750
|
+
/**
|
|
751
|
+
* Web fetch request parameters
|
|
752
|
+
*/
|
|
753
|
+
export type WebFetchRequest = z.infer<typeof WebFetchRequestSchema>;
|
|
754
|
+
/**
|
|
755
|
+
* Input for the fetch_web_content tool
|
|
756
|
+
*/
|
|
757
|
+
export type FetchWebContentInput = z.infer<typeof FetchWebContentInputSchema>;
|
|
758
|
+
/**
|
|
759
|
+
* Input for the editor tool
|
|
760
|
+
*/
|
|
761
|
+
export type EditFileInput = z.infer<typeof EditFileInputSchema>;
|
|
762
|
+
/**
|
|
763
|
+
* Input for the apply_patch tool
|
|
764
|
+
*/
|
|
765
|
+
export type ApplyPatchInput = z.infer<typeof ApplyPatchInputSchema>;
|
|
766
|
+
/**
|
|
767
|
+
* Input for the skills tool
|
|
768
|
+
*/
|
|
769
|
+
export type SkillsInput = z.infer<typeof SkillsInputSchema>;
|
|
770
|
+
/**
|
|
771
|
+
* Input for the ask_followup_question tool
|
|
772
|
+
*/
|
|
773
|
+
export type AskQuestionInput = z.infer<typeof AskQuestionInputSchema>;
|
|
774
|
+
/**
|
|
775
|
+
* Input for the submit and exit tool
|
|
776
|
+
*/
|
|
777
|
+
export type SubmitInput = z.infer<typeof SubmitInputSchema>;
|
|
778
|
+
/**
|
|
779
|
+
* What `grep`, `sed` and `awk` accept, as against what they advertise.
|
|
780
|
+
*
|
|
781
|
+
* The advertised shape keeps `array`, because that is the shape that batches.
|
|
782
|
+
* These wrappers only widen the door: the one field each of them gets wrong is
|
|
783
|
+
* the file list, and it is always wrong the same way. Every other field is the
|
|
784
|
+
* canonical schema's own, so the parsed output is the canonical type already --
|
|
785
|
+
* no pipe back through it, which `z.coerce` fields make ill-typed anyway.
|
|
786
|
+
*/
|
|
787
|
+
export declare const GrepInputUnionSchema: z.ZodObject<{
|
|
788
|
+
pattern: z.ZodString;
|
|
789
|
+
ignore_case: z.ZodOptional<z.ZodBoolean>;
|
|
790
|
+
invert: z.ZodOptional<z.ZodBoolean>;
|
|
791
|
+
fixed: z.ZodOptional<z.ZodBoolean>;
|
|
792
|
+
word: z.ZodOptional<z.ZodBoolean>;
|
|
793
|
+
extended: z.ZodOptional<z.ZodBoolean>;
|
|
794
|
+
count: z.ZodOptional<z.ZodBoolean>;
|
|
795
|
+
files_with_matches: z.ZodOptional<z.ZodBoolean>;
|
|
796
|
+
line_numbers: z.ZodOptional<z.ZodBoolean>;
|
|
797
|
+
context: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
798
|
+
max_count: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
799
|
+
paths: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>>;
|
|
800
|
+
}, z.core.$strip>;
|
|
801
|
+
export declare const SedInputUnionSchema: z.ZodObject<{
|
|
802
|
+
script: z.ZodString;
|
|
803
|
+
in_place: z.ZodOptional<z.ZodBoolean>;
|
|
804
|
+
quiet: z.ZodOptional<z.ZodBoolean>;
|
|
805
|
+
extended: z.ZodOptional<z.ZodBoolean>;
|
|
806
|
+
files: z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>;
|
|
807
|
+
}, z.core.$strip>;
|
|
808
|
+
export declare const AwkInputUnionSchema: z.ZodObject<{
|
|
809
|
+
program: z.ZodString;
|
|
810
|
+
field_separator: z.ZodOptional<z.ZodString>;
|
|
811
|
+
variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
812
|
+
files: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodString>, z.ZodPipe<z.ZodString, z.ZodTransform<string[], string>>]>>;
|
|
813
|
+
}, z.core.$strip>;
|
|
814
|
+
/**
|
|
815
|
+
* Schema for the extract_document tool input.
|
|
816
|
+
*
|
|
817
|
+
* Every optional field takes `null` as well as absence: models send
|
|
818
|
+
* `"range": null` for "no range", and a strict optional would fail the whole
|
|
819
|
+
* call on it.
|
|
820
|
+
*/
|
|
821
|
+
export declare const ExtractDocumentInputSchema: z.ZodObject<{
|
|
822
|
+
path: z.ZodString;
|
|
823
|
+
format: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
824
|
+
text: "text";
|
|
825
|
+
markdown: "markdown";
|
|
826
|
+
}>>>;
|
|
827
|
+
range: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
828
|
+
images: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
829
|
+
none: "none";
|
|
830
|
+
files: "files";
|
|
831
|
+
inline: "inline";
|
|
832
|
+
}>>>;
|
|
833
|
+
output_dir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
834
|
+
password: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
835
|
+
ocr: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
836
|
+
tesseract: "tesseract";
|
|
837
|
+
vision: "vision";
|
|
838
|
+
none: "none";
|
|
839
|
+
auto: "auto";
|
|
840
|
+
}>>>;
|
|
841
|
+
ocr_languages: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
842
|
+
describe_images: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
843
|
+
max_chars: z.ZodOptional<z.ZodNullable<z.ZodCoercedNumber<unknown>>>;
|
|
844
|
+
}, z.core.$strip>;
|
|
845
|
+
export type ExtractDocumentInput = z.infer<typeof ExtractDocumentInputSchema>;
|