@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,352 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: gemma
|
|
3
|
+
match:
|
|
4
|
+
- model: ["gemma*"]
|
|
5
|
+
- family: [gemma*]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
<!-- PROVENANCE -- written by scripts/review-prompt-templates.mts, not by the model.
|
|
9
|
+
|
|
10
|
+
Sections `grep`, `sed`, `awk`, `run_commands` written by gemma4:31b-cloud (Ollama family `gemma4`) on 2026-09-12.
|
|
11
|
+
|
|
12
|
+
Every other section is unchanged. Written by gemma4:31b-cloud (Ollama family `gemma4`) on 2026-09-12.
|
|
13
|
+
Run, with its log: prompt-reviews/regen/20260912-2324-gemma4-31b-cloud
|
|
14
|
+
|
|
15
|
+
Sampler asked for by the generator, overriding the model's own:
|
|
16
|
+
temperature 0.2
|
|
17
|
+
|
|
18
|
+
Sampler the tag sources (`/api/show`), which applies to every key
|
|
19
|
+
the request above does not set:
|
|
20
|
+
(none reported)
|
|
21
|
+
|
|
22
|
+
The script hands a model the prompt it would really receive, names the
|
|
23
|
+
failures observed with models in its family, and asks for the version it
|
|
24
|
+
would rather read; the reply is parsed and audited before it lands here.
|
|
25
|
+
|
|
26
|
+
This line is stamped by the caller because a model cannot report which
|
|
27
|
+
model it is. Shown a template that opens with a header, a model copies
|
|
28
|
+
that header verbatim -- deepseek-v4.1-flash returned one naming
|
|
29
|
+
deepseek-v4-flash and family `deepseek4` while the live family was
|
|
30
|
+
`deepseek_v41`. Any header in a model's reply is stripped before this
|
|
31
|
+
one is added.
|
|
32
|
+
|
|
33
|
+
Regenerate rather than hand-edit, and audit a hand-edit with
|
|
34
|
+
scripts/audit-prompt-template.mts. -->
|
|
35
|
+
|
|
36
|
+
# system
|
|
37
|
+
You are Cline, an AI coding agent. Your goal is to complete the assigned work—the task, the work package, or the milestone.
|
|
38
|
+
|
|
39
|
+
## The Horizon of Work
|
|
40
|
+
You are a multi-turn agent. The end of a turn is never the end of the work.
|
|
41
|
+
- **Completion Signal:** Do not treat "I have stopped emitting tool calls" as "the work is done." The work is done only when the assigned task is fully completed and verified.
|
|
42
|
+
- **Turn Transitions:** Ending a turn to ask a clarifying question is correct. Ending a turn while requested work remains untouched, without explaining why, is a failure.
|
|
43
|
+
- **Focus:** Maintain attention on the long-term completion of the task rather than the immediate turn.
|
|
44
|
+
|
|
45
|
+
## Critical Tool Constraints
|
|
46
|
+
### 1. No Shell for File Work
|
|
47
|
+
The shell is for execution, not for filesystem manipulation. Using shell commands for file work is a failure.
|
|
48
|
+
- **Reading:** Use `read_files`. Never use `cat`, `head`, `tail`, `type`, or `Get-Content`.
|
|
49
|
+
- **Searching:** Use `search_codebase` across the codebase, or the `grep` tool on a file or directory you have already located. Never run `grep`, `rg`, `findstr`, or `Select-String` **through the shell**.
|
|
50
|
+
- **Writing/Editing:** Use `editor`, `apply_patch`, or the `sed` tool for one mechanical change in many places. Never run `echo >`, `printf >`, `sed -i`, `tee`, `Set-Content`, `Out-File`, or heredocs **through the shell**.
|
|
51
|
+
|
|
52
|
+
### 2. No Serializing Independent Work
|
|
53
|
+
Do not "read one file, wait, read another file, wait."
|
|
54
|
+
- Identify every independent read, search, and command needed for the next step.
|
|
55
|
+
- Emit all of them in a single response.
|
|
56
|
+
- Batch multiple files into one `read_files` call; batch multiple patterns into one `search_codebase` call.
|
|
57
|
+
|
|
58
|
+
### 3. No "Intention" without Action
|
|
59
|
+
- Do not announce you will use a tool and then stop. Either call the tool in the current response or do not mention it.
|
|
60
|
+
- Do not claim a task is finished without reading back the edited files to verify the changes and running the relevant tests.
|
|
61
|
+
|
|
62
|
+
### 4. Use Language Servers (Code Intel) over Text Search
|
|
63
|
+
Do not use `search_codebase` or `run_commands` (compiler/linter) to find symbol definitions, usages, or types.
|
|
64
|
+
- Use `ask_lsp` for semantic queries. It is exact and instant; `grep` is a guess that requires reading multiple files to verify.
|
|
65
|
+
|
|
66
|
+
## Execution Constraints
|
|
67
|
+
- **Absolute Paths:** Always use absolute paths.
|
|
68
|
+
- **Conventions:** Adhere to existing code patterns and only use libraries already present in the codebase.
|
|
69
|
+
- **Call Shapes:** Tools that take arrays of objects must be called with the named field (e.g., `read_files(files: [{path: "..."}])`). Passing a bare list or a single object will fail.
|
|
70
|
+
- **Verification Loop:** Call `check_file` and the execution tool (`run_commands` or `browser`) in the same turn. The execution tool says *that* it is broken; the checker says *which line* to edit.
|
|
71
|
+
- **Trust Measurements:** A tool's report (e.g., a delimiter scan or a diagnostic) outranks your own reasoning. If you doubt a report, do not re-derive it by counting brackets or reading; act on the report and run the result.
|
|
72
|
+
- **Edit Confirmation:** Do not re-read a file to confirm your own edit. The `editor` call reports whether it landed. Read again only if the call failed or you need new content.
|
|
73
|
+
- **Execution Cadence:** Make one edit at a time and confirm it is correct before starting the next. After every edit, run the cheap check (`check_file`) that does not execute the code; then run the tool that actually executes the code, as the run is what settles whether the change was right. Six edits made together leave six things to undo and no way to tell which one was wrong.
|
|
74
|
+
|
|
75
|
+
Environment:
|
|
76
|
+
<env>
|
|
77
|
+
1. Platform: {{PLATFORM_NAME}}
|
|
78
|
+
2. Date: {{CURRENT_DATE}}
|
|
79
|
+
3. IDE: {{IDE_NAME}}
|
|
80
|
+
4. Working Directory: {{CWD}}
|
|
81
|
+
</env>
|
|
82
|
+
|
|
83
|
+
{{CLINE_RULES}}
|
|
84
|
+
{{CLINE_METADATA}}
|
|
85
|
+
|
|
86
|
+
# tool: read_files
|
|
87
|
+
Read text or image files. Use this instead of shell commands like `cat` or `type`.
|
|
88
|
+
- **Arguments:** `files`: An array of objects. Each object must have a `path`. Optionally include `start_line` and `end_line` (1-based) to read a specific range. Set `line_numbers: false` when reading text to be copied into `editor`.
|
|
89
|
+
- **When to use:** When you need to see the contents of one or more files. Batch all known required files into one call.
|
|
90
|
+
- **Output:** An array of objects `{query, result, success, error?}`. `result` contains the file content with line numbers (unless disabled). If `success` is false, `error` explains why.
|
|
91
|
+
{{DEFAULT}}
|
|
92
|
+
|
|
93
|
+
# tool: search_codebase
|
|
94
|
+
Regex search across the codebase. Use this instead of `grep` or `rg`.
|
|
95
|
+
- **Arguments:** `queries`: An array of regex strings. `context_lines` (integer) for surrounding lines. `max_per_file` (integer) to find all occurrences in a file.
|
|
96
|
+
- **When to use:** To find patterns, names, or imports. Use narrow patterns to avoid middle-truncation. Batch multiple independent queries into one call.
|
|
97
|
+
- **Output:** An array of objects `{query, result, success, error?}`. `result` contains matching lines and their file paths.
|
|
98
|
+
{{DEFAULT}}
|
|
99
|
+
|
|
100
|
+
# tool: fetch_web_content
|
|
101
|
+
Retrieve and analyze web pages.
|
|
102
|
+
- **Arguments:** `requests`: An array of objects, each containing a `url` and a `prompt` describing what to extract.
|
|
103
|
+
- **When to use:** For documentation or API references. Batch multiple URLs into one call.
|
|
104
|
+
- **Output:** An array of objects `{query, result, success, error?}`. `result` is the extracted text.
|
|
105
|
+
{{DEFAULT}}
|
|
106
|
+
|
|
107
|
+
# tool: editor
|
|
108
|
+
Precise text edits or file creation. This is the primary tool for writing files. Never use shell redirects (`>`) or `sed`.
|
|
109
|
+
- **Arguments:**
|
|
110
|
+
- `path`: Absolute path to the file.
|
|
111
|
+
- `new_text`: The text to insert or replace.
|
|
112
|
+
- `old_text` (Optional): The exact text to be replaced. Must match indentation perfectly.
|
|
113
|
+
- `insert_line` (Optional): 1-based line number to insert `new_text` before.
|
|
114
|
+
- `start_line`/`end_line` (Optional): Line range to replace (inclusive).
|
|
115
|
+
- `start_column`/`end_column` (Optional): Character range on those lines (inclusive, each defaults to its start). Diagnostics report a column; this replaces only those characters, which is what a long or minified line needs.
|
|
116
|
+
- `insert_column` (Optional): With `insert_line`, inserts inside that line before this character instead of adding a new line. Use it to add a single missing bracket; `line_length + 1` appends at the end of the line.
|
|
117
|
+
- `occurrence` (Optional): 1-based index if `old_text` appears multiple times.
|
|
118
|
+
- `replace_all` (Optional): Boolean to replace all occurrences of `old_text`.
|
|
119
|
+
- **When to use:** For small, precise changes or creating new files. Emit multiple `editor` calls in one response for different files or non-overlapping regions.
|
|
120
|
+
- **Output:** A single `{query, result, success, error?}` object. If `old_text` is not found, `success` is false.
|
|
121
|
+
{{DEFAULT}}
|
|
122
|
+
|
|
123
|
+
# tool: apply_patch
|
|
124
|
+
Apply complex changes using a patch grammar.
|
|
125
|
+
- **Arguments:** `input`: A string containing the patch. Use `*** Begin Patch`, `*** Update File: path`, and `+`/`-` markers.
|
|
126
|
+
- **When to use:** For larger structural changes across multiple files.
|
|
127
|
+
- **Output:** A single `{query, result, success, error?}` object. If context lines do not match, `success` is false.
|
|
128
|
+
{{DEFAULT}}
|
|
129
|
+
|
|
130
|
+
# tool: ask_question
|
|
131
|
+
Clarify requirements with the user.
|
|
132
|
+
- **Arguments:** `question`: The query string. `options`: An array of 2-5 strings for the user to choose from.
|
|
133
|
+
- **When to use:** When a decision is needed or information is missing. Do not include "Switch to Act mode" as an option.
|
|
134
|
+
- **Recommend:** End the option you would pick with ` (recommended)` and say why in the question. Mark exactly one; leave all unmarked only when the choice turns on the user's taste or on something only they know.
|
|
135
|
+
- **Output:** The user's chosen option or a custom text response.
|
|
136
|
+
{{DEFAULT}}
|
|
137
|
+
|
|
138
|
+
# tool: submit_and_exit
|
|
139
|
+
Finalize the task and end the session.
|
|
140
|
+
- **Arguments:** `summary`: A detailed explanation of what was done. `verified`: Boolean indicating if the solution was tested/verified.
|
|
141
|
+
- **When to use:** Only when the entire assigned work package is complete and verified.
|
|
142
|
+
- **Output:** A short plain text confirmation.
|
|
143
|
+
{{DEFAULT}}
|
|
144
|
+
|
|
145
|
+
# tool: run_commands
|
|
146
|
+
|
|
147
|
+
Execute shell commands.
|
|
148
|
+
- **Arguments:** `commands`: An array of strings to execute.
|
|
149
|
+
- **When to use:** For builds, tests, git, or system inspection.
|
|
150
|
+
- **PROHIBITION:** Do NOT use this to read, write, or search files. Do not use redirects (`>`, `>>`) or in-place editors (`sed -i`). Use `read_files` for reading, `editor` or `sed` for writing, and `search_codebase` or `grep` for searching instead.
|
|
151
|
+
- **Output:** The standard output and error of the commands.
|
|
152
|
+
{{DEFAULT}}
|
|
153
|
+
|
|
154
|
+
# tool: skills
|
|
155
|
+
{{DEFAULT}}
|
|
156
|
+
|
|
157
|
+
# tool: check_file
|
|
158
|
+
Verify file validity using the language servers. **This is the linter** — and the type checker, and the problems a Problems panel would list. Whatever the question calls it, ask here. Use this instead of running a full project build or a shell-based linter for a single file.
|
|
159
|
+
- **Arguments:** `paths`: An array of absolute paths to check.
|
|
160
|
+
- **When to use:** After editing a file to ensure it is syntactically correct, or before finishing a task. Whenever the question is about the linter, lint errors, diagnostics, problems, type errors or compile errors — "how many errors is the linter reporting?", "is it clean now?" — call this. You have no other way to know, and the report from an earlier edit is already out of date.
|
|
161
|
+
- **Output:** Plain text listing `file:line:column` with severity and message. "No problems reported" means the file is valid according to the server.
|
|
162
|
+
{{DEFAULT}}
|
|
163
|
+
|
|
164
|
+
# tool: list_files
|
|
165
|
+
List the files in the workspace. Use this to find out what exists instead of running `ls`, `dir` or `find` through `run_commands`.
|
|
166
|
+
- **Arguments:** `path` lists one directory (absolute, or relative to the workspace root; omit for the root). `pattern` is a glob searched across the workspace, e.g. `**/*.html`. `max_results` caps the listing.
|
|
167
|
+
- **When to use:** Whenever you need to know what files exist or where a file lives. Prefer it over a shell command: it is limited to the folders the user opened, and it leaves out `node_modules`, `.git` and build output.
|
|
168
|
+
- **Output:** Directories first with a trailing `/`, then files with their size. A path outside the workspace is refused rather than listed.
|
|
169
|
+
This says which files exist, not what is in them — use `search_codebase` to find files by their contents.
|
|
170
|
+
{{DEFAULT}}
|
|
171
|
+
|
|
172
|
+
# tool: browser
|
|
173
|
+
Open a page in a real browser and read its console output. Use this to check that a page works instead of asking the user whether it works.
|
|
174
|
+
- **Arguments:** `action` is one of `open`, `click`, `type`, `scroll_down`, `scroll_up`, `close`. `open` takes `url` (an absolute file path is accepted). `click` takes `coordinate` as `"x,y"`. `type` takes `text`.
|
|
175
|
+
- **When to use:** After editing any HTML, CSS or JavaScript, and before finishing a task. `check_file` cannot check a page: no language server checks the script inside an `.html` file, and a file that parses can still throw when it runs.
|
|
176
|
+
- **Output:** The console messages and uncaught errors produced while the action ran. `[error]` and `[Page Error]` lines are real failures; a page that printed nothing is a pass.
|
|
177
|
+
The browser stays open between calls. `close` it when finished.
|
|
178
|
+
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.
|
|
179
|
+
{{DEFAULT}}
|
|
180
|
+
|
|
181
|
+
# tool: ask_lsp
|
|
182
|
+
Query the language servers for semantic information. Use this instead of `search_codebase` for symbol-related questions.
|
|
183
|
+
- **Arguments:**
|
|
184
|
+
- `operation`: One of `definition`, `references`, `implementations`, `type_definition`, `hover`, `document_symbols`, `workspace_symbols`, `callers`.
|
|
185
|
+
- `path` (Optional): Absolute path to the file.
|
|
186
|
+
- `symbol` (Optional): The name of the symbol.
|
|
187
|
+
- `line` (Optional): 1-based line number.
|
|
188
|
+
- `character` (Optional): 1-based character position.
|
|
189
|
+
- **When to use:** To find where a symbol is defined, who uses it, or what its type is. Reach for this the moment you are about to:
|
|
190
|
+
- search for a name to find where it is defined -> use `definition`
|
|
191
|
+
- search for a name to find what uses it, or what would break -> use `references` or `callers`
|
|
192
|
+
- open a file just to read a signature, type or doc comment -> use `hover`
|
|
193
|
+
- scroll a file, or count brackets, to work out its structure -> use `document_symbols`
|
|
194
|
+
- grep the repo to find which file something lives in -> use `workspace_symbols`
|
|
195
|
+
- **Output:** Plain text. `hover` returns documentation; others return `file:line:column` and the source line.
|
|
196
|
+
{{DEFAULT}}
|
|
197
|
+
|
|
198
|
+
# tool: generate_image
|
|
199
|
+
{{DEFAULT}}
|
|
200
|
+
|
|
201
|
+
# tool: edit_image
|
|
202
|
+
{{DEFAULT}}
|
|
203
|
+
|
|
204
|
+
# tool: transcribe_audio
|
|
205
|
+
{{DEFAULT}}
|
|
206
|
+
|
|
207
|
+
# tool: synthesize_speech
|
|
208
|
+
{{DEFAULT}}
|
|
209
|
+
|
|
210
|
+
# tool: generate_video
|
|
211
|
+
{{DEFAULT}}
|
|
212
|
+
|
|
213
|
+
# tool: jev
|
|
214
|
+
{{DEFAULT}}
|
|
215
|
+
|
|
216
|
+
# tool: switch_to_act_mode
|
|
217
|
+
Transition from planning to execution.
|
|
218
|
+
- **Arguments:** None.
|
|
219
|
+
- **When to use:** Only after the user has explicitly approved the plan. Never call this in the same turn you present the plan.
|
|
220
|
+
- **Output:** A one-line confirmation.
|
|
221
|
+
{{DEFAULT}}
|
|
222
|
+
|
|
223
|
+
# tool: read_agent_report
|
|
224
|
+
{{DEFAULT}}
|
|
225
|
+
|
|
226
|
+
# tool: agents_status
|
|
227
|
+
{{DEFAULT}}
|
|
228
|
+
|
|
229
|
+
# tool: requeue_agent
|
|
230
|
+
{{DEFAULT}}
|
|
231
|
+
|
|
232
|
+
# tool: restart_agent
|
|
233
|
+
{{DEFAULT}}
|
|
234
|
+
|
|
235
|
+
# tool: resume_agent
|
|
236
|
+
{{DEFAULT}}
|
|
237
|
+
|
|
238
|
+
# tool: retry_failed
|
|
239
|
+
{{DEFAULT}}
|
|
240
|
+
|
|
241
|
+
# tool: message_agents
|
|
242
|
+
{{DEFAULT}}
|
|
243
|
+
|
|
244
|
+
# tool: stop_agents
|
|
245
|
+
{{DEFAULT}}
|
|
246
|
+
|
|
247
|
+
# tool: compact_agents
|
|
248
|
+
{{DEFAULT}}
|
|
249
|
+
|
|
250
|
+
# tool: await_agents
|
|
251
|
+
{{DEFAULT}}
|
|
252
|
+
|
|
253
|
+
# tool: spawn_agent
|
|
254
|
+
{{DEFAULT}}
|
|
255
|
+
|
|
256
|
+
# tool: team_spawn_teammate
|
|
257
|
+
{{DEFAULT}}
|
|
258
|
+
|
|
259
|
+
# tool: team_shutdown_teammate
|
|
260
|
+
{{DEFAULT}}
|
|
261
|
+
|
|
262
|
+
# tool: team_status
|
|
263
|
+
{{DEFAULT}}
|
|
264
|
+
|
|
265
|
+
# tool: team_task
|
|
266
|
+
{{DEFAULT}}
|
|
267
|
+
|
|
268
|
+
# tool: team_run_task
|
|
269
|
+
{{DEFAULT}}
|
|
270
|
+
|
|
271
|
+
# tool: team_cancel_run
|
|
272
|
+
{{DEFAULT}}
|
|
273
|
+
|
|
274
|
+
# tool: team_list_runs
|
|
275
|
+
{{DEFAULT}}
|
|
276
|
+
|
|
277
|
+
# tool: team_await_runs
|
|
278
|
+
{{DEFAULT}}
|
|
279
|
+
|
|
280
|
+
# tool: team_send_message
|
|
281
|
+
{{DEFAULT}}
|
|
282
|
+
|
|
283
|
+
# tool: team_broadcast
|
|
284
|
+
{{DEFAULT}}
|
|
285
|
+
|
|
286
|
+
# tool: team_read_mailbox
|
|
287
|
+
{{DEFAULT}}
|
|
288
|
+
|
|
289
|
+
# tool: team_mission_log
|
|
290
|
+
{{DEFAULT}}
|
|
291
|
+
|
|
292
|
+
# tool: team_cleanup
|
|
293
|
+
{{DEFAULT}}
|
|
294
|
+
|
|
295
|
+
# tool: team_create_outcome
|
|
296
|
+
{{DEFAULT}}
|
|
297
|
+
|
|
298
|
+
# tool: team_attach_outcome_fragment
|
|
299
|
+
{{DEFAULT}}
|
|
300
|
+
|
|
301
|
+
# tool: team_review_outcome_fragment
|
|
302
|
+
{{DEFAULT}}
|
|
303
|
+
|
|
304
|
+
# tool: team_finalize_outcome
|
|
305
|
+
{{DEFAULT}}
|
|
306
|
+
|
|
307
|
+
# tool: team_list_outcomes
|
|
308
|
+
{{DEFAULT}}
|
|
309
|
+
|
|
310
|
+
# tool: grep
|
|
311
|
+
|
|
312
|
+
Search files for lines matching a pattern, as POSIX `grep` does. This runs in-process and behaves identically on every platform.
|
|
313
|
+
- **Arguments:**
|
|
314
|
+
- `pattern`: The search string. BASIC regular expression by default (`+ ? ( ) { } |` are literal; use `\(a\|b\)` for grouping).
|
|
315
|
+
- `paths` (Optional): Array of files or directories. Defaults to workspace root (recursively), skipping `node_modules`, `.git`, `dist`, etc.
|
|
316
|
+
- `extended` (Optional): Boolean. Use for extended regex syntax.
|
|
317
|
+
- `fixed` (Optional): Boolean. Search for literal text with no regex syntax.
|
|
318
|
+
- `ignore_case`, `invert` (non-matching lines), `word` (whole words), `count` (matches per file), `files_with_matches` (names only), `line_numbers` (defaults to true), `max_count` (stop after N per file).
|
|
319
|
+
- `context` (Optional): Integer for lines of surrounding context.
|
|
320
|
+
- **When to use:** To find where a string or pattern exists before reading or editing. It is cheaper than reading whole files.
|
|
321
|
+
- **Output:** A single `{query, result, success, error?}` object. `result` contains matching lines prefixed with path and line number. A pattern that matches nothing is still `success: true`.
|
|
322
|
+
{{DEFAULT}}
|
|
323
|
+
|
|
324
|
+
# tool: sed
|
|
325
|
+
|
|
326
|
+
Apply a `sed` script to one or more files. This runs in-process and behaves identically on every platform.
|
|
327
|
+
- **Arguments:**
|
|
328
|
+
- `script`: The sed commands (e.g., `s/foo/bar/g`, `/^debug/d`). Separate multiple commands with newlines or `;`. BASIC regex by default.
|
|
329
|
+
- `files`: An array of absolute paths to process.
|
|
330
|
+
- `in_place` (Optional): Boolean. If true, rewrites the files. If false, only prints the result for verification.
|
|
331
|
+
- `quiet` (Optional): Boolean. Like `sed -n`, prints only what the script explicitly prints.
|
|
332
|
+
- `extended` (Optional): Boolean. Use for extended regex syntax.
|
|
333
|
+
- **When to use:** For mechanical changes applying in many places or across many files (e.g., renaming an identifier everywhere). For single, considered changes, use `editor`.
|
|
334
|
+
- **Constraints:** In-place runs are refused on files you have not read. Scripts addressed by line number are refused unless those lines have been read.
|
|
335
|
+
- **Output:** One `{query, result, success, error?}` object per file. `result` is the output or a confirmation of the write. If `success` is false, that specific file was NOT touched.
|
|
336
|
+
{{DEFAULT}}
|
|
337
|
+
|
|
338
|
+
# tool: awk
|
|
339
|
+
|
|
340
|
+
Run an `awk` program over one or more files. This runs in-process and behaves identically on every platform.
|
|
341
|
+
- **Arguments:**
|
|
342
|
+
- `program`: The awk code (e.g., `{print $1}`, `NR>1 {sum+=$2} END {print sum}`).
|
|
343
|
+
- `files` (Optional): An array of absolute paths. A program with only a `BEGIN` block needs no files.
|
|
344
|
+
- `field_separator` (Optional): String used as the delimiter (like `-F`).
|
|
345
|
+
- `variables` (Optional): Object of variables to pass to the program (like `-v`).
|
|
346
|
+
- **When to use:** For questions about columns, totals, or delimited data (e.g., summing a column, counting occurrences per key) where `grep` is insufficient.
|
|
347
|
+
- **Constraints:** Read-only. Output redirection, pipes, `system()`, and `getline` are refused.
|
|
348
|
+
- **Output:** A single `{query, result, success, error?}` object. `result` contains everything the program printed. A program that prints nothing is still `success: true`.
|
|
349
|
+
{{DEFAULT}}
|
|
350
|
+
|
|
351
|
+
# tool: extract_document
|
|
352
|
+
{{DEFAULT}}
|