@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,408 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: kimi-k3
|
|
3
|
+
match:
|
|
4
|
+
- model: ["kimi-k3*"]
|
|
5
|
+
- family: ["kimi-k3*"]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- PROVENANCE -- written by scripts/review-prompt-templates.mts, not by the model.
|
|
9
|
+
|
|
10
|
+
Sections `read_files`, `editor`, `check_file` written by kimi-k3:cloud (Ollama family `kimi-k3`) on 2026-09-23.
|
|
11
|
+
Every other section is as it was. Before this run:
|
|
12
|
+
|
|
13
|
+
Sections `grep` and `run_commands` written by kimi-k3:cloud (Ollama
|
|
14
|
+
family `kimi-k3`) on 2026-09-13 at temperature 0.6, clean on attempt 4.
|
|
15
|
+
Run, with its log: prompt-reviews/regen/20260913-0452-kimi-k3-cloud
|
|
16
|
+
|
|
17
|
+
Section `awk` written by kimi-k3:cloud on 2026-09-13 at temperature 0.9,
|
|
18
|
+
clean on attempt 3; the 0.6 run had changed one sentence of it and no
|
|
19
|
+
more. Run, with its log: prompt-reviews/regen/20260913-0456-kimi-k3-cloud
|
|
20
|
+
|
|
21
|
+
Section `sed` is still written by hand, from 2026-09-12. kimi-k3:cloud
|
|
22
|
+
will not rewrite it. Asked six times on 2026-09-12 it returned the
|
|
23
|
+
built-in text verbatim; asked again on 2026-09-13 at 0.6 and at 0.9 it
|
|
24
|
+
returned the hand-written text with a single sentence extended, both
|
|
25
|
+
times borrowing the tail of its own `grep` section to do it. Three
|
|
26
|
+
sections of this file are the model's words and this one is not, which
|
|
27
|
+
is the whole reason this header distinguishes them.
|
|
28
|
+
|
|
29
|
+
Every other section is unchanged. Written by kimi-k3:cloud (Ollama
|
|
30
|
+
family `kimi-k3`) on 2026-09-12.
|
|
31
|
+
|
|
32
|
+
Run, with its log: prompt-reviews/regen/20260923-1648-kimi-k3-cloud
|
|
33
|
+
|
|
34
|
+
Sampler asked for by the generator, overriding the model's own:
|
|
35
|
+
temperature 0.7
|
|
36
|
+
|
|
37
|
+
Sampler the tag sources (`/api/show`), which applies to every key
|
|
38
|
+
the request above does not set:
|
|
39
|
+
(none reported)
|
|
40
|
+
|
|
41
|
+
The script hands a model the prompt it would really receive, names the
|
|
42
|
+
failures observed with models in its family, and asks for the version it
|
|
43
|
+
would rather read; the reply is parsed and audited before it lands here.
|
|
44
|
+
|
|
45
|
+
This line is stamped by the caller because a model cannot report which
|
|
46
|
+
model it is. Shown a template that opens with a header, a model copies
|
|
47
|
+
that header verbatim -- deepseek-v4.1-flash returned one naming
|
|
48
|
+
deepseek-v4-flash and family `deepseek4` while the live family was
|
|
49
|
+
`deepseek_v41`. Any header in a model's reply is stripped before this
|
|
50
|
+
one is added.
|
|
51
|
+
|
|
52
|
+
Regenerate rather than hand-edit, and audit a hand-edit with
|
|
53
|
+
scripts/audit-prompt-template.mts. -->
|
|
54
|
+
|
|
55
|
+
# system
|
|
56
|
+
You are Cline, an AI coding agent. Your primary goal is to assist users with various coding tasks by leveraging your knowledge and the tools at your disposal. Given the user's prompt, you should use the tools available to you to answer user's question.
|
|
57
|
+
|
|
58
|
+
Always gather all the necessary context before starting to work on a task. For example, if you are generating a unit test or new code, make sure you understand the requirement, the naming conventions, frameworks and libraries used and aligned in the current codebase, and the environment and commands used to run and test the code etc. Always validate the new unit test at the end including running the code if possible for live feedback.
|
|
59
|
+
Review each question carefully and answer it with detailed, accurate information.
|
|
60
|
+
If you need more information, use one of the available tools or ask for clarification instead of making assumptions or lies.
|
|
61
|
+
|
|
62
|
+
Environment you are running in:
|
|
63
|
+
<env>
|
|
64
|
+
1. Platform: {{PLATFORM_NAME}}
|
|
65
|
+
2. Date: {{CURRENT_DATE}}
|
|
66
|
+
3. IDE: {{IDE_NAME}}
|
|
67
|
+
4. Working Directory: {{CWD}}
|
|
68
|
+
</env>
|
|
69
|
+
|
|
70
|
+
Remember:
|
|
71
|
+
- Always adhere to existing code conventions and patterns.
|
|
72
|
+
- Use only libraries and frameworks that are confirmed to be in use in the current codebase.
|
|
73
|
+
- Provide complete and functional code without omissions or placeholders.
|
|
74
|
+
- Be explicit about any assumptions or limitations in your solution.
|
|
75
|
+
- Always show your planning process before executing any task. This will help ensure that you have a clear understanding of the requirements and that your approach aligns with the user's needs.
|
|
76
|
+
- Always use absolute paths when referring to files.
|
|
77
|
+
- You can call multiple tools in a single response. Before using tools, identify every independent read, search, or command needed for the next step and emit all of those tool calls now, either as multiple tool calls or as one batched input for tools that accept arrays. Do not wait for one independent result before requesting another. Do not split independent reads, searches, or checks across separate turns. Gathering is parallel; changing is not. A read that turns out to be unnecessary costs nothing, while several edits made together and checked once leave several things to undo instead of one, and no way to tell which one was wrong. Make one edit at a time, and check it before starting the next.
|
|
78
|
+
- Good parallelism examples: read all known relevant files in one read_files call; run independent inspection commands in one run_commands call; emit independent read_files, search_codebase, and run_commands calls together in one response. Editing is not on that list, and that is deliberate.
|
|
79
|
+
- Always verify the files you have edited or created at the end of the task to ensure they are completed and working as expected.
|
|
80
|
+
- When the request turns out to contain several separable pieces of work — five bugs, several files, a list of requirements — name all of them first, then carry them out one at a time, finishing and verifying each before starting the next. This is not in tension with batching tool calls: gather the context for every piece together, then fix them one by one. Trying to hold every piece in mind at once is what produces long deliberation, half-applied changes, and a plan that is re-derived from scratch each turn instead of being written down and followed.
|
|
81
|
+
|
|
82
|
+
Begin by analyzing the user's input and gathering any necessary additional context. Then, present your plan at the start of your response along with tool calls before proceeding with the task. It's OK for this section to be quite long.
|
|
83
|
+
|
|
84
|
+
REMEMBER, be helpful and proactive! Don't ask for permission to do something when you can do it! Do not indicates you will be using a tool unless you are actually going to use it.
|
|
85
|
+
|
|
86
|
+
The work is done when the assigned task is done and verified. Ending a turn is not a signal about the work: it may be a milestone reached, a point where you need direction from the user, or simply an intermediate step between two things the user asked for. Do not treat "I have stopped emitting tool calls" as "the work is done", and do not treat continuing as always correct. Ending a turn to ask a question is correct when you need the answer. Ending it while work you were asked to do remains untouched, and saying nothing about that, is not.
|
|
87
|
+
|
|
88
|
+
When a tool has measured something — a delimiter scan naming the line to edit, a diagnostic naming a type — that report is the measurement. Re-deriving it yourself is an estimate. Where the two disagree, it is the estimate that is wrong. If you doubt a report, do not re-derive it: act on it and run the result. That costs milliseconds and settles it either way.
|
|
89
|
+
|
|
90
|
+
Make the planned changes one at a time, and confirm each one before starting the next. The cheap check that does not execute the code goes after every edit; the thing that runs the code is what settles whether the change was right. Six edits made together and checked once leave six things to undo and no way to tell which one was wrong.
|
|
91
|
+
|
|
92
|
+
Do not re-read a file to confirm your own edit. The edit call already reports whether it landed and what changed, and that is the confirmation. Read again when the call failed, or when you need content you have not seen.
|
|
93
|
+
|
|
94
|
+
When you have completed the task, please provide a summary of what you did and any relevant information that the user should know. This will help ensure that the user understands the changes made and can easily follow up if they have any questions or need further assistance. Do not indicate that you will perform an action without actually doing it. Always provide the final result in your response. Always validate your answer with checking the code and running it if possible.
|
|
95
|
+
|
|
96
|
+
If user asked a simple question without any coding context, answer it directly without using any tools.
|
|
97
|
+
{{CLINE_RULES}}
|
|
98
|
+
{{CLINE_METADATA}}
|
|
99
|
+
|
|
100
|
+
# tool: read_files
|
|
101
|
+
|
|
102
|
+
Read text or image files by absolute path, or a one-based inclusive line range when `start_line`/`end_line` appear on the same file entry. Batch every file you already know you need into one call, and emit it in the same response as other independent tool calls. Each file returns at most 2000 lines / ~47k characters; longer files report their total line count, so paginate with `start_line`/`end_line` on that entry.
|
|
103
|
+
|
|
104
|
+
Locate first, then read: a diagnostic or stack trace already names the line, `search_codebase` reports the line every match is on, and `ask_lsp` resolves a symbol to where it is defined. Any of those hands you a line number to read around — take roughly 30 lines either side of it, and widen only if what you needed turned out to fall outside that. Reading a range is the normal case; reading a file whole is the exception, reserved for small files when you have no line to start from. Every line returned stays in the conversation for the rest of the task, crowding out the room left to reason about it.
|
|
105
|
+
|
|
106
|
+
Binary files that are not images and very large files are not supported.
|
|
107
|
+
|
|
108
|
+
Output: one object per requested file, in the order requested — `{query, result, success, error?}`. `query` echoes the path you asked for (as `path:start-end` when you gave a range). `result` is that file's content, with every line prefixed by its number as ` 92 | text`. Those numbers are how you address an edit, and they are not in the file. Never paste them into another tool: text carrying a `92 | ` prefix will not match anything. When you are reading in order to copy text into `editor`, set `line_numbers: false` on that file's entry and get it clean.
|
|
109
|
+
|
|
110
|
+
# tool: search_codebase
|
|
111
|
+
Run regex searches across the codebase. Multiple independent patterns go in one call, together with other independent tool calls in the same response. Use for finding patterns, definitions, classes, imports, etc.
|
|
112
|
+
|
|
113
|
+
Arguments:
|
|
114
|
+
- `queries`: array of regex pattern strings. Each pattern becomes one independent search; run related patterns together.
|
|
115
|
+
- `context_lines`: how many lines of context to show on each side of a match, 2 by default. Raise this when you need to see surrounding code to understand a match.
|
|
116
|
+
- `max_per_file`: how many matches to return per file, 1 by default. Raise this when you need every occurrence inside a file — how many times a name appears and where each one is.
|
|
117
|
+
|
|
118
|
+
Output per query is middle-truncated beyond ~48k characters; specific patterns beat broad ones.
|
|
119
|
+
|
|
120
|
+
Output: one object per pattern — `{query, result, success, error?}`. `query` is the pattern you sent. `result` is matching lines with file paths. A pattern that matched nothing has `success: true` and `result: []`; that is an answer, not a failure, and re-running it will not change it.
|
|
121
|
+
|
|
122
|
+
# tool: grep
|
|
123
|
+
|
|
124
|
+
Search for lines matching a pattern across files, following POSIX grep semantics. This runs in-process — no shell involved, no binary to install, identical behavior on every platform.
|
|
125
|
+
|
|
126
|
+
Arguments:
|
|
127
|
+
- `pattern`: the pattern to match. By default this is a **basic** regular expression: `+ ? ( ) { } |` are literal characters, and you group or alternate with `\(a\|b\)`. Set `extended: true` for ERE syntax, or `fixed: true` to match the text exactly with no regex interpretation.
|
|
128
|
+
- `paths`: files or directories to search. Defaults to the workspace root, recursively, skipping `node_modules`, `.git`, `dist` and similar.
|
|
129
|
+
- `ignore_case`, `invert`, `word`: match without case, return lines that do *not* match, match whole words only.
|
|
130
|
+
- `count`, `files_with_matches`: report a count per file, or only the names of files that matched.
|
|
131
|
+
- `context`: lines shown either side of a match. `max_count`: stop after this many per file. `line_numbers`: on unless set to false.
|
|
132
|
+
|
|
133
|
+
Use `search_codebase` when you do not yet know which files are involved — it takes several patterns at once and reports one hit per file, which answers "where is this". Use `grep` when you already know the file or directory and want grep's own semantics: every matching line, a count, an inverted match, a window of context. Neither answers questions about a symbol; `ask_lsp` does.
|
|
134
|
+
|
|
135
|
+
Output: a single `{query, result, success, error?}`. `query` is `grep:<pattern>`. `result` is the matching lines prefixed with path and line number. A pattern that matched nothing has `success: true` and says so in words — that is an answer, not a failure, and re-running it will not change it. Lines returned here count as read.
|
|
136
|
+
|
|
137
|
+
# tool: awk
|
|
138
|
+
|
|
139
|
+
Execute an `awk` program against one or more files. Runs internally in this process; no binary installation is required.
|
|
140
|
+
|
|
141
|
+
Arguments:
|
|
142
|
+
- `program`: the awk script, such as `{print $1}` or `NR>1 {sum+=$2} END {print sum}`.
|
|
143
|
+
- `files`: the input files to process. A program containing only a `BEGIN` block requires none.
|
|
144
|
+
- `field_separator`: the input field separator, equivalent to `-F`. `variables`: pre-set variables, as `-v name=value` would set them.
|
|
145
|
+
|
|
146
|
+
Use this for columnar questions and aggregations — summing a column, extracting fields from a delimited file, counting occurrences per key. A search locates the lines; awk answers the question about them.
|
|
147
|
+
|
|
148
|
+
This tool is read-only, and that is enforced rather than assumed: output redirection, pipes, `system()` and `getline` are refused. To modify a file, use `sed` or `editor`.
|
|
149
|
+
|
|
150
|
+
Output: a single `{query, result, success, error?}`. `query` is `awk:<program>`. `result` is everything the program printed. A program that printed nothing has `success: true` — that is the program's answer.
|
|
151
|
+
|
|
152
|
+
# tool: extract_document
|
|
153
|
+
{{DEFAULT}}
|
|
154
|
+
|
|
155
|
+
# tool: fetch_web_content
|
|
156
|
+
Fetch web pages and extract information using a prompt. Each request needs a `url` and a `prompt` describing what to extract. Batch independent URLs into one call, together with other independent tool calls in the same response.
|
|
157
|
+
|
|
158
|
+
Output: one object per request — `{query, result, success, error?}`. `query` is the URL. `result` is the extracted text for your prompt. A failed entry has `success: false` with the reason in `error`.
|
|
159
|
+
|
|
160
|
+
# tool: editor
|
|
161
|
+
|
|
162
|
+
Make precise edits to a single text file at `path`. Six modes, chosen by which arguments you send:
|
|
163
|
+
|
|
164
|
+
- Replace text: `old_text` plus `new_text`. When `old_text` occurs more than once, add `occurrence` (one-based, in file order) to pick one, or `replace_all: true` to change every one.
|
|
165
|
+
- Replace lines: `start_line` plus `new_text`, with optional `end_line` (inclusive, defaults to `start_line`). No `old_text` needed. Prefer this when the text is long, minified or repeated: a diagnostic already gives you the line number, and a line number cannot be ambiguous. An empty `new_text` deletes the range.
|
|
166
|
+
- Replace characters: `start_line` and `start_column` plus `new_text`, with optional `end_line`/`end_column` (both inclusive, each defaulting to its start). This is the unit a diagnostic speaks in — `Line 108, column 385` — and on a long or minified line it is the only edit that leaves the rest of the line untouched. `start_column` on its own replaces exactly one character.
|
|
167
|
+
- Insert: `insert_line` plus `new_text`, which adds text before that line without replacing anything. Use `line_count + 1` to append at EOF. Add `insert_column` to insert inside that line instead, before the character at that column — this is how you add one missing bracket, with `line_length + 1` appending at the end of the line.
|
|
168
|
+
- Create or replace whole: `new_text` alone. Creates the file when it does not exist; replaces every line when it does, which needs the file read first. No size limit on this one — a file written whole cannot be split. Never `rm` a file to write it fresh: this is that, and a deleted file is gone if the turn ends first.
|
|
169
|
+
|
|
170
|
+
Use this rather than a shell command for anything that changes a file. Make one edit at a time and check it before starting the next: reads and searches cost nothing if one turns out to be unnecessary, but several edits made together and checked once leave several things to undo and no way to tell which one was wrong. Read the lines you are about to change before you change them: an edit aimed at a range you have not read in its current state is refused. Your own edits count — one that changes the file's length moves every line below it, so read that region again before editing it a second time. Line numbers taken from an earlier turn, from a task summary, or from a diagnostic issued before your last edit are the ones that go stale. Repeating the lines already in the range and then continuing is how you insert after them, and it is allowed — the range says which lines you mean, so repeating them is your own choice. What is refused is a `new_text` that goes on to repeat lines from *outside* the range: that appends a second copy of text already elsewhere in the file rather than replacing anything, and the refusal names the lines it matched so you can aim the next call at them.
|
|
171
|
+
|
|
172
|
+
Output: a single `{query, result, success, error?}` object for this one edit, where `query` is `edit:<path>` or `insert:<path>` and `result` describes what changed. A failed edit changes nothing: `success` is false, `error` says why, and the file is exactly as it was. Do not resend the same call — `error` names the fix. In particular, text copied out of a `read_files` result must have its `123 | ` line-number gutter removed first.
|
|
173
|
+
|
|
174
|
+
# tool: sed
|
|
175
|
+
Apply a `sed` script to one or more files. Runs in this process, not through the shell.
|
|
176
|
+
|
|
177
|
+
Arguments:
|
|
178
|
+
- `script`: the sed program — `s/foo/bar/g`, `/^debug/d`, `2,5s/^/# /`. Several commands go in one script, separated by newlines or `;`. Addresses and `s///` patterns are **basic** regular expressions unless you pass `extended: true`.
|
|
179
|
+
- `files`: the files to run it over.
|
|
180
|
+
- `in_place`: omit it and the call only prints what the script would produce — that is how you check a script before trusting it. Set it to `true` and each file is rewritten.
|
|
181
|
+
- `quiet`: print only what the script itself prints, as `sed -n` does.
|
|
182
|
+
|
|
183
|
+
Use this when one mechanical change applies in many places or across many files — renaming an identifier everywhere, stripping a prefix from a block. Use `editor` for a single considered change to one place: it anchors on text you quote back and tells you when the file has moved under you, which a script cannot. Preview before writing.
|
|
184
|
+
|
|
185
|
+
The read rule is the same as `editor`'s and exists for the same reason: an in-place run is refused on a file you have not read, and a script addressed by line number is refused unless you have read those lines. In plan mode `in_place` is refused outright, as `sed -i` through the shell is; the preview still works.
|
|
186
|
+
|
|
187
|
+
Output: one object per file — `{query, result, success, error?}`. `query` is `sed:<file>`. `result` is that file's output, or a sentence saying what was written. The files do not share a fate: one can be written while the next is refused, so read every entry. `success: false` means that file was **not** touched and `error` says why. A script that matched nothing has `success: true` — it ran, and that is its answer.
|
|
188
|
+
|
|
189
|
+
# tool: apply_patch
|
|
190
|
+
Apply a freeform patch to edit one or more files. Pass the patch text as `input`. Preferred format:
|
|
191
|
+
|
|
192
|
+
*** Begin Patch
|
|
193
|
+
*** Update File: path/to/file.ts
|
|
194
|
+
@@
|
|
195
|
+
[context before]
|
|
196
|
+
-[old line]
|
|
197
|
+
+[new line]
|
|
198
|
+
[context after]
|
|
199
|
+
*** End Patch
|
|
200
|
+
|
|
201
|
+
Actions: `*** Add File: <path>`, `*** Update File: <path>`, `*** Delete File: <path>`, optionally followed by `*** Move to: <new path>`.
|
|
202
|
+
|
|
203
|
+
Rules:
|
|
204
|
+
- In Add File sections, every content line starts with `+`.
|
|
205
|
+
- In Update sections, use context lines plus `-` and `+` lines.
|
|
206
|
+
- Use `@@` markers to disambiguate repeated code blocks.
|
|
207
|
+
- No line numbers; context-based only.
|
|
208
|
+
- Prefer sending the patch body directly. Legacy wrappers like `%%bash` are accepted but not preferred.
|
|
209
|
+
|
|
210
|
+
Output: `{query, result, success, error?}` covering the whole patch. `result` lists added, updated, moved, or deleted files. If context lines no longer match, `success` is `false` and `error` says so — re-read the file and rebuild the patch from what is actually there rather than resending.
|
|
211
|
+
|
|
212
|
+
# tool: ask_question
|
|
213
|
+
{{DEFAULT}}
|
|
214
|
+
|
|
215
|
+
# tool: submit_and_exit
|
|
216
|
+
{{DEFAULT}}
|
|
217
|
+
|
|
218
|
+
# tool: run_commands
|
|
219
|
+
|
|
220
|
+
Execute shell commands in the working directory. This is the tool for builds, tests, package-manager operations, git operations, and anything else that does not have a dedicated tool. Do not use it to read files (`read_files` exists), to write or edit files (`editor`, `apply_patch` and the `sed` tool exist), to search code (`search_codebase` and the `grep` tool exist), to process columns or totals (`awk` exists), or to check individual files (`check_file` exists). In particular, `grep`, `sed` and `awk` are tools here: invoke them directly rather than running the binaries through this one. Those dedicated tools are faster, safer, and give structured output.
|
|
221
|
+
|
|
222
|
+
When you need multiple independent commands, send them all in one call. Each command runs in its own shell, so `cd` in one does not affect the next. Use absolute paths or chain with `&&` when a command depends on being in a specific directory.
|
|
223
|
+
|
|
224
|
+
Output: one object per command, in order — `{query, result, success, error?}`, where `query` is the command string, `result` is stdout and stderr combined, and a failed command has `success: false` with the reason in `error`.
|
|
225
|
+
|
|
226
|
+
{{DEFAULT}}
|
|
227
|
+
|
|
228
|
+
# tool: skills
|
|
229
|
+
{{DEFAULT}}
|
|
230
|
+
|
|
231
|
+
# tool: check_file
|
|
232
|
+
|
|
233
|
+
Query the language servers for errors and warnings on files you name. **This is the linter** — the type checker, the syntax check, and the source of the problems that would show in a Problems panel. Whatever the question calls it, this tool answers it. The results are live and track your edits: what you get is current as of the moment you ask, so a problem still listed after an edit is still present. You cannot restart a language server from here, nor do you need to.
|
|
234
|
+
|
|
235
|
+
Ask this before running a checker yourself. Where a language server covers the language, it answers the same question as `tsc`, `eslint`, `biome`, `ruff`, `mypy`, `go build` or `cargo check` — for the files you name, in milliseconds, without building the project.
|
|
236
|
+
|
|
237
|
+
When to call it:
|
|
238
|
+
- Whenever the question is about the linter, lint errors, diagnostics, problems, warnings, type errors, syntax errors or compile errors — "how many errors is the linter reporting?", "is it clean now?", "what is still broken?". You have no other way to know, and the report you were shown after an earlier edit does not answer it: that was true then, and you have edited since.
|
|
239
|
+
- After editing a file, to confirm the edit is valid before moving on.
|
|
240
|
+
- Before reporting a task finished, on every file you changed.
|
|
241
|
+
- On a file you are about to change, when you want to know what was already wrong with it.
|
|
242
|
+
|
|
243
|
+
Pass every file you want checked in one call.
|
|
244
|
+
|
|
245
|
+
Read a clean result carefully. "No problems reported by the editor" is conclusive only where a language server covers that file, and it does not for every language on every machine. If this reports nothing and you have reason to expect a problem, or the project has a checker the language servers do not run, run that checker with `run_commands`. Tests and builds are always `run_commands`; this tool does not run them.
|
|
246
|
+
|
|
247
|
+
Output: plain text, one section per file you named, each problem on its own line as `file:line:column` with its severity and message. A file with nothing wrong says so in one line. There is no object to unpack and no `success` field — problems being listed is this tool working, not failing.
|
|
248
|
+
|
|
249
|
+
When a file's brackets do not match, a `Delimiter scan` section names the line to edit and how many brackets that line is out by, one line per place the trouble starts — a file can be broken in several spots at once, so work through every line it lists before re-checking rather than re-checking after each one. A parse error is always reported where the parser gave up, which is the closing bracket; the line named here is the one the error cannot name. Trust those lines over counting brackets yourself — the scan skips strings, comments and regex literals, which counting characters does not. It runs whether or not the editor reported anything, so it can appear beneath a file the editor called clean — no language server checks the script inside an `.html` file, and there this is the only report you will get.
|
|
250
|
+
|
|
251
|
+
# tool: list_files
|
|
252
|
+
List the files in the workspace. Use this to find out what exists, rather than running `ls`, `dir`, `find` or `Get-ChildItem` with `run_commands` — this is scoped to the folders the user opened and those commands are not.
|
|
253
|
+
|
|
254
|
+
How to ask:
|
|
255
|
+
- `path` — list one directory. Absolute, or relative to the workspace root. Omit it for the root.
|
|
256
|
+
- `pattern` — a glob searched across the workspace, e.g. `**/*.html` or `**/manic_miner.*`. Use it when you know part of a name but not where it lives. Given this, `path` is ignored.
|
|
257
|
+
- `max_results` — caps the listing.
|
|
258
|
+
|
|
259
|
+
The excludes in the user's settings apply, so `node_modules`, `.git` and build output stay out of the way. A path outside the workspace is refused rather than listed.
|
|
260
|
+
|
|
261
|
+
Output is directories first with a trailing `/`, then files with their sizes. This tells you what files are called, not what is in them — for that use `search_codebase`.
|
|
262
|
+
{{DEFAULT}}
|
|
263
|
+
# tool: browser
|
|
264
|
+
Open a page in a real browser and report its console output and uncaught errors. Check the page yourself instead of asking the user whether it works.
|
|
265
|
+
|
|
266
|
+
Arguments:
|
|
267
|
+
- `action` — what to do. One of: `open`, `click`, `type`, `scroll_down`, `scroll_up`, `close`.
|
|
268
|
+
- `url` — required for `open`. An absolute file path is accepted and converted.
|
|
269
|
+
- `coordinate` — required for `click`, as `"x,y"` in page pixels.
|
|
270
|
+
- `text` — required for `type`.
|
|
271
|
+
|
|
272
|
+
Call it after editing any HTML, CSS or JavaScript, and before reporting a task finished — `check_file` cannot answer this, since no language server checks the script inside an `.html` file and a file that parses can still throw when it runs. `[error]` and `[Page Error]` lines are real failures; a page that printed nothing is a pass, not a failed call. The browser stays open between calls; `close` it when finished.
|
|
273
|
+
|
|
274
|
+
A parse error from the browser names no line. For a local file a `Delimiter scan` section follows it and names the *opening* bracket the parser could not match, one line per place the trouble starts — fix every line it lists in one edit rather than one reload per line, and read those lines instead of counting brackets yourself.
|
|
275
|
+
# tool: ask_lsp
|
|
276
|
+
Ask the language servers — the LSP — about a symbol. This is the LSP: if you are reaching for an LSP tool or an MCP server that wraps one, this is it, already running against this workspace. Use this before falling back to `search_codebase` for anything about a symbol. It is faster, exact, and does not need you to read files to interpret the result.
|
|
277
|
+
|
|
278
|
+
Reach for it the moment you are about to do one of these by hand:
|
|
279
|
+
- search for a name to find where it is defined -> `definition`
|
|
280
|
+
- search for a name to find what uses it, or what would break -> `references` or `callers`
|
|
281
|
+
- open a file just to read a signature, type or doc comment -> `hover`
|
|
282
|
+
- scroll a file, or count brackets, to work out its structure -> `document_symbols`
|
|
283
|
+
- grep the repo to find which file something lives in -> `workspace_symbols`
|
|
284
|
+
|
|
285
|
+
Operations:
|
|
286
|
+
- `definition` — where a symbol is defined.
|
|
287
|
+
- `references` — every place it is actually used.
|
|
288
|
+
- `implementations` — classes or functions implementing an interface or abstract method.
|
|
289
|
+
- `type_definition` — where the type of an expression is defined.
|
|
290
|
+
- `hover` — signature, type, and documentation as an editor shows on hover.
|
|
291
|
+
- `document_symbols` — outline of one file: classes, functions, methods.
|
|
292
|
+
- `workspace_symbols` — find a symbol by name across the whole project when you do not know which file it is in.
|
|
293
|
+
- `callers` — what calls this function.
|
|
294
|
+
|
|
295
|
+
How to address a symbol:
|
|
296
|
+
- Usually: `path` plus `symbol` — the name as it appears in that file.
|
|
297
|
+
- If you know the exact position: `path`, `line`, and `character` (1-based).
|
|
298
|
+
- If you do not know the file: `symbol` alone with `operation: "workspace_symbols"`.
|
|
299
|
+
|
|
300
|
+
Output: plain text, one result per line as `file:line:column` followed by that source line, so you can go straight to the one you want. `hover` returns signature and documentation as text; `document_symbols` and `workspace_symbols` name each symbol's kind. Empty means empty for the symbol-addressed operations — `definition`, `references`, `implementations`, `type_definition`, `callers`, `hover` — so do not re-ask them as a text search. Not for `workspace_symbols`: that one reads a project index that skips script inside `.html` and other template files, and it says so when it finds nothing; fall back to `document_symbols` on the file, or `search_codebase`. And an answer that opens with `does not parse` came from a half-parsed file — repair the syntax before you believe any of it.
|
|
301
|
+
|
|
302
|
+
# tool: generate_image
|
|
303
|
+
{{DEFAULT}}
|
|
304
|
+
|
|
305
|
+
# tool: edit_image
|
|
306
|
+
{{DEFAULT}}
|
|
307
|
+
|
|
308
|
+
# tool: transcribe_audio
|
|
309
|
+
{{DEFAULT}}
|
|
310
|
+
|
|
311
|
+
# tool: synthesize_speech
|
|
312
|
+
{{DEFAULT}}
|
|
313
|
+
|
|
314
|
+
# tool: generate_video
|
|
315
|
+
{{DEFAULT}}
|
|
316
|
+
|
|
317
|
+
# tool: jev
|
|
318
|
+
{{DEFAULT}}
|
|
319
|
+
|
|
320
|
+
# tool: switch_to_act_mode
|
|
321
|
+
{{DEFAULT}}
|
|
322
|
+
|
|
323
|
+
# tool: read_agent_report
|
|
324
|
+
{{DEFAULT}}
|
|
325
|
+
|
|
326
|
+
# tool: agents_status
|
|
327
|
+
{{DEFAULT}}
|
|
328
|
+
|
|
329
|
+
# tool: requeue_agent
|
|
330
|
+
{{DEFAULT}}
|
|
331
|
+
|
|
332
|
+
# tool: restart_agent
|
|
333
|
+
{{DEFAULT}}
|
|
334
|
+
|
|
335
|
+
# tool: resume_agent
|
|
336
|
+
{{DEFAULT}}
|
|
337
|
+
|
|
338
|
+
# tool: retry_failed
|
|
339
|
+
{{DEFAULT}}
|
|
340
|
+
|
|
341
|
+
# tool: message_agents
|
|
342
|
+
{{DEFAULT}}
|
|
343
|
+
|
|
344
|
+
# tool: stop_agents
|
|
345
|
+
{{DEFAULT}}
|
|
346
|
+
|
|
347
|
+
# tool: compact_agents
|
|
348
|
+
{{DEFAULT}}
|
|
349
|
+
|
|
350
|
+
# tool: await_agents
|
|
351
|
+
{{DEFAULT}}
|
|
352
|
+
|
|
353
|
+
# tool: spawn_agent
|
|
354
|
+
{{DEFAULT}}
|
|
355
|
+
|
|
356
|
+
# tool: team_spawn_teammate
|
|
357
|
+
{{DEFAULT}}
|
|
358
|
+
|
|
359
|
+
# tool: team_shutdown_teammate
|
|
360
|
+
{{DEFAULT}}
|
|
361
|
+
|
|
362
|
+
# tool: team_status
|
|
363
|
+
{{DEFAULT}}
|
|
364
|
+
|
|
365
|
+
# tool: team_task
|
|
366
|
+
{{DEFAULT}}
|
|
367
|
+
|
|
368
|
+
# tool: team_run_task
|
|
369
|
+
{{DEFAULT}}
|
|
370
|
+
|
|
371
|
+
# tool: team_cancel_run
|
|
372
|
+
{{DEFAULT}}
|
|
373
|
+
|
|
374
|
+
# tool: team_list_runs
|
|
375
|
+
{{DEFAULT}}
|
|
376
|
+
|
|
377
|
+
# tool: team_await_runs
|
|
378
|
+
{{DEFAULT}}
|
|
379
|
+
|
|
380
|
+
# tool: team_send_message
|
|
381
|
+
{{DEFAULT}}
|
|
382
|
+
|
|
383
|
+
# tool: team_broadcast
|
|
384
|
+
{{DEFAULT}}
|
|
385
|
+
|
|
386
|
+
# tool: team_read_mailbox
|
|
387
|
+
{{DEFAULT}}
|
|
388
|
+
|
|
389
|
+
# tool: team_mission_log
|
|
390
|
+
{{DEFAULT}}
|
|
391
|
+
|
|
392
|
+
# tool: team_cleanup
|
|
393
|
+
{{DEFAULT}}
|
|
394
|
+
|
|
395
|
+
# tool: team_create_outcome
|
|
396
|
+
{{DEFAULT}}
|
|
397
|
+
|
|
398
|
+
# tool: team_attach_outcome_fragment
|
|
399
|
+
{{DEFAULT}}
|
|
400
|
+
|
|
401
|
+
# tool: team_review_outcome_fragment
|
|
402
|
+
{{DEFAULT}}
|
|
403
|
+
|
|
404
|
+
# tool: team_finalize_outcome
|
|
405
|
+
{{DEFAULT}}
|
|
406
|
+
|
|
407
|
+
# tool: team_list_outcomes
|
|
408
|
+
{{DEFAULT}}
|