@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.
Files changed (479) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +16 -0
  3. package/assets/office-oxide/LICENSE-APACHE +176 -0
  4. package/assets/office-oxide/LICENSE-MIT +25 -0
  5. package/assets/office-oxide/office_oxide_bg.wasm +0 -0
  6. package/assets/prompt-templates/claude.md +516 -0
  7. package/assets/prompt-templates/deepseek.md +331 -0
  8. package/assets/prompt-templates/default.md +386 -0
  9. package/assets/prompt-templates/gemma.md +352 -0
  10. package/assets/prompt-templates/glm.md +334 -0
  11. package/assets/prompt-templates/kimi-k3.md +408 -0
  12. package/assets/prompt-templates/kimi.md +402 -0
  13. package/assets/prompt-templates/minimax.md +473 -0
  14. package/assets/prompt-templates/nemotron.md +358 -0
  15. package/assets/prompt-templates/qwen.md +612 -0
  16. package/dist/ClineCore.d.ts +365 -0
  17. package/dist/account/cline-account-service.d.ts +41 -0
  18. package/dist/account/index.d.ts +3 -0
  19. package/dist/account/rpc.d.ts +40 -0
  20. package/dist/account/types.d.ts +122 -0
  21. package/dist/auth/bounded-ttl-cache.d.ts +13 -0
  22. package/dist/auth/client.d.ts +30 -0
  23. package/dist/auth/cline.d.ts +71 -0
  24. package/dist/auth/codex.d.ts +40 -0
  25. package/dist/auth/oca.d.ts +21 -0
  26. package/dist/auth/provider-auth-registry.d.ts +52 -0
  27. package/dist/auth/server.d.ts +54 -0
  28. package/dist/auth/types.d.ts +103 -0
  29. package/dist/auth/utils.d.ts +31 -0
  30. package/dist/cline-core/automation.d.ts +34 -0
  31. package/dist/cline-core/runtime-services.d.ts +5 -0
  32. package/dist/cline-core/start-input.d.ts +10 -0
  33. package/dist/cline-core/telemetry.d.ts +10 -0
  34. package/dist/cline-core/types.d.ts +236 -0
  35. package/dist/cron/events/cron-event-ingress.d.ts +37 -0
  36. package/dist/cron/reports/cron-report-writer.d.ts +42 -0
  37. package/dist/cron/runner/cron-materializer.d.ts +35 -0
  38. package/dist/cron/runner/cron-runner.d.ts +60 -0
  39. package/dist/cron/runner/resource-limiter.d.ts +8 -0
  40. package/dist/cron/schedule/scheduler.d.ts +12 -0
  41. package/dist/cron/service/cron-service.d.ts +56 -0
  42. package/dist/cron/service/schedule-command-service.d.ts +14 -0
  43. package/dist/cron/service/schedule-service.d.ts +116 -0
  44. package/dist/cron/service/schedule-tool.d.ts +81 -0
  45. package/dist/cron/specs/cron-reconciler.d.ts +61 -0
  46. package/dist/cron/specs/cron-spec-parser.d.ts +26 -0
  47. package/dist/cron/specs/cron-watcher.d.ts +22 -0
  48. package/dist/cron/store/cron-schema.d.ts +2 -0
  49. package/dist/cron/store/sqlite-cron-store.d.ts +261 -0
  50. package/dist/extensions/agent-plugin/agent-skill.d.ts +21 -0
  51. package/dist/extensions/agent-plugin/index.d.ts +4 -0
  52. package/dist/extensions/agent-plugin/loader.d.ts +10 -0
  53. package/dist/extensions/agent-plugin/types.d.ts +67 -0
  54. package/dist/extensions/complexity/grammars.d.ts +92 -0
  55. package/dist/extensions/complexity/walker.d.ts +115 -0
  56. package/dist/extensions/config/builtin-templates.d.ts +10 -0
  57. package/dist/extensions/config/builtin-templates.generated.d.ts +5 -0
  58. package/dist/extensions/config/index.d.ts +15 -0
  59. package/dist/extensions/config/prompt-template-compaction.d.ts +92 -0
  60. package/dist/extensions/config/prompt-template-delta.d.ts +107 -0
  61. package/dist/extensions/config/prompt-template-hooks.d.ts +47 -0
  62. package/dist/extensions/config/prompt-template-loader.d.ts +79 -0
  63. package/dist/extensions/config/prompt-template-parser.d.ts +56 -0
  64. package/dist/extensions/config/prompt-template-review.d.ts +327 -0
  65. package/dist/extensions/config/prompt-template-session.d.ts +46 -0
  66. package/dist/extensions/config/runtime-commands.d.ts +23 -0
  67. package/dist/extensions/config/shipped-tool-signatures.d.ts +36 -0
  68. package/dist/extensions/config/skill-frontmatter-toggle.d.ts +11 -0
  69. package/dist/extensions/config/unified-config-file-watcher.d.ts +77 -0
  70. package/dist/extensions/config/user-instruction-config-loader.d.ts +77 -0
  71. package/dist/extensions/config/user-instruction-plugin.d.ts +26 -0
  72. package/dist/extensions/config/user-instruction-service.d.ts +31 -0
  73. package/dist/extensions/context/agentic-compaction.d.ts +129 -0
  74. package/dist/extensions/context/basic-compaction.d.ts +19 -0
  75. package/dist/extensions/context/budget-projection/index.d.ts +2 -0
  76. package/dist/extensions/context/budget-projection/project.d.ts +4 -0
  77. package/dist/extensions/context/budget-projection/types.d.ts +58 -0
  78. package/dist/extensions/context/capped-thinking.d.ts +195 -0
  79. package/dist/extensions/context/compaction-cause.d.ts +27 -0
  80. package/dist/extensions/context/compaction-journal.d.ts +65 -0
  81. package/dist/extensions/context/compaction-revisions.d.ts +72 -0
  82. package/dist/extensions/context/compaction-shared.d.ts +608 -0
  83. package/dist/extensions/context/compaction.d.ts +161 -0
  84. package/dist/extensions/context/context-minimum-warning.d.ts +27 -0
  85. package/dist/extensions/context/continuation-compaction.d.ts +260 -0
  86. package/dist/extensions/context/council-compaction.d.ts +262 -0
  87. package/dist/extensions/context/full-compaction.d.ts +44 -0
  88. package/dist/extensions/context/kv-pressure.d.ts +258 -0
  89. package/dist/extensions/context/polykv-session.d.ts +372 -0
  90. package/dist/extensions/context/replay-compaction.d.ts +90 -0
  91. package/dist/extensions/context/tool-ledger.d.ts +198 -0
  92. package/dist/extensions/context/work-digest.d.ts +92 -0
  93. package/dist/extensions/index.d.ts +7 -0
  94. package/dist/extensions/mcp/client.d.ts +28 -0
  95. package/dist/extensions/mcp/config-loader.d.ts +102 -0
  96. package/dist/extensions/mcp/index.d.ts +15 -0
  97. package/dist/extensions/mcp/manager.d.ts +23 -0
  98. package/dist/extensions/mcp/name-transform.d.ts +2 -0
  99. package/dist/extensions/mcp/oauth.d.ts +68 -0
  100. package/dist/extensions/mcp/plugin-server-registration.d.ts +18 -0
  101. package/dist/extensions/mcp/policies.d.ts +14 -0
  102. package/dist/extensions/mcp/remote-proxy.d.ts +9 -0
  103. package/dist/extensions/mcp/timeout.d.ts +2 -0
  104. package/dist/extensions/mcp/tools.d.ts +3 -0
  105. package/dist/extensions/mcp/types.d.ts +133 -0
  106. package/dist/extensions/plugin/plugin-config-loader.d.ts +44 -0
  107. package/dist/extensions/plugin/plugin-load-report.d.ts +18 -0
  108. package/dist/extensions/plugin/plugin-loader.d.ts +23 -0
  109. package/dist/extensions/plugin/plugin-module-import.d.ts +4 -0
  110. package/dist/extensions/plugin/plugin-sandbox.d.ts +82 -0
  111. package/dist/extensions/plugin/plugin-targeting.d.ts +6 -0
  112. package/dist/extensions/plugin-sandbox-bootstrap.js +1 -0
  113. package/dist/extensions/tools/ask-lsp.d.ts +150 -0
  114. package/dist/extensions/tools/audio-tools.d.ts +156 -0
  115. package/dist/extensions/tools/browser.d.ts +137 -0
  116. package/dist/extensions/tools/check-file.d.ts +218 -0
  117. package/dist/extensions/tools/check-on-failure.d.ts +49 -0
  118. package/dist/extensions/tools/code-intel.d.ts +131 -0
  119. package/dist/extensions/tools/command-guard-extension.d.ts +22 -0
  120. package/dist/extensions/tools/command-guard.d.ts +29 -0
  121. package/dist/extensions/tools/constants.d.ts +28 -0
  122. package/dist/extensions/tools/definitions.d.ts +178 -0
  123. package/dist/extensions/tools/delimiter-balance.d.ts +121 -0
  124. package/dist/extensions/tools/edit-verification.d.ts +86 -0
  125. package/dist/extensions/tools/error-locations.d.ts +53 -0
  126. package/dist/extensions/tools/executors/apply-patch-parser.d.ts +68 -0
  127. package/dist/extensions/tools/executors/apply-patch.d.ts +48 -0
  128. package/dist/extensions/tools/executors/awk-parser.d.ts +163 -0
  129. package/dist/extensions/tools/executors/awk.d.ts +41 -0
  130. package/dist/extensions/tools/executors/bash.d.ts +119 -0
  131. package/dist/extensions/tools/executors/document/assets.d.ts +22 -0
  132. package/dist/extensions/tools/executors/document/ebook.d.ts +11 -0
  133. package/dist/extensions/tools/executors/document/formats.d.ts +83 -0
  134. package/dist/extensions/tools/executors/document/images.d.ts +73 -0
  135. package/dist/extensions/tools/executors/document/legacy.d.ts +20 -0
  136. package/dist/extensions/tools/executors/document/ocr.d.ts +67 -0
  137. package/dist/extensions/tools/executors/document/office-oxide.d.ts +19 -0
  138. package/dist/extensions/tools/executors/document/office-oxide.generated.d.ts +82 -0
  139. package/dist/extensions/tools/executors/document/office.d.ts +10 -0
  140. package/dist/extensions/tools/executors/document/pdf.d.ts +6 -0
  141. package/dist/extensions/tools/executors/document/pdfjs.d.ts +30 -0
  142. package/dist/extensions/tools/executors/document/range.d.ts +18 -0
  143. package/dist/extensions/tools/executors/document/recognition.d.ts +67 -0
  144. package/dist/extensions/tools/executors/document-extract.d.ts +55 -0
  145. package/dist/extensions/tools/executors/editor.d.ts +68 -0
  146. package/dist/extensions/tools/executors/file-locks.d.ts +41 -0
  147. package/dist/extensions/tools/executors/file-read.d.ts +136 -0
  148. package/dist/extensions/tools/executors/grep.d.ts +35 -0
  149. package/dist/extensions/tools/executors/index.d.ts +97 -0
  150. package/dist/extensions/tools/executors/line-endings.d.ts +23 -0
  151. package/dist/extensions/tools/executors/output-limits.d.ts +58 -0
  152. package/dist/extensions/tools/executors/overlay-receipts.d.ts +25 -0
  153. package/dist/extensions/tools/executors/posix-regex.d.ts +52 -0
  154. package/dist/extensions/tools/executors/read-receipts.d.ts +93 -0
  155. package/dist/extensions/tools/executors/run-command-execution-controller.d.ts +16 -0
  156. package/dist/extensions/tools/executors/search.d.ts +50 -0
  157. package/dist/extensions/tools/executors/sed.d.ts +92 -0
  158. package/dist/extensions/tools/executors/unchanged-reads.d.ts +55 -0
  159. package/dist/extensions/tools/executors/web-fetch.d.ts +58 -0
  160. package/dist/extensions/tools/helpers.d.ts +59 -0
  161. package/dist/extensions/tools/image-edit.d.ts +76 -0
  162. package/dist/extensions/tools/image-generation.d.ts +183 -0
  163. package/dist/extensions/tools/index.d.ts +68 -0
  164. package/dist/extensions/tools/jev.d.ts +336 -0
  165. package/dist/extensions/tools/list-files.d.ts +128 -0
  166. package/dist/extensions/tools/media-endpoint.d.ts +160 -0
  167. package/dist/extensions/tools/media-tools.d.ts +140 -0
  168. package/dist/extensions/tools/model-tool-routing.d.ts +33 -0
  169. package/dist/extensions/tools/presets.d.ts +154 -0
  170. package/dist/extensions/tools/qa-credentials.d.ts +133 -0
  171. package/dist/extensions/tools/runtime.d.ts +39 -0
  172. package/dist/extensions/tools/schemas.d.ts +845 -0
  173. package/dist/extensions/tools/task-progress.d.ts +217 -0
  174. package/dist/extensions/tools/team/agent-admission.d.ts +127 -0
  175. package/dist/extensions/tools/team/agent-check.d.ts +152 -0
  176. package/dist/extensions/tools/team/agent-controls.d.ts +55 -0
  177. package/dist/extensions/tools/team/agent-file.d.ts +28 -0
  178. package/dist/extensions/tools/team/agent-iteration-cap.d.ts +328 -0
  179. package/dist/extensions/tools/team/agent-names.d.ts +29 -0
  180. package/dist/extensions/tools/team/agent-node-placement.d.ts +160 -0
  181. package/dist/extensions/tools/team/agent-placement-queue.d.ts +199 -0
  182. package/dist/extensions/tools/team/agent-placement.d.ts +118 -0
  183. package/dist/extensions/tools/team/agent-reports.d.ts +53 -0
  184. package/dist/extensions/tools/team/agent-rounds.d.ts +666 -0
  185. package/dist/extensions/tools/team/agent-sandbox-executors.d.ts +79 -0
  186. package/dist/extensions/tools/team/agent-slot-gate.d.ts +186 -0
  187. package/dist/extensions/tools/team/agent-status.d.ts +84 -0
  188. package/dist/extensions/tools/team/agent-trouble.d.ts +91 -0
  189. package/dist/extensions/tools/team/background-delegations.d.ts +106 -0
  190. package/dist/extensions/tools/team/batch-report.d.ts +151 -0
  191. package/dist/extensions/tools/team/configured-agent-config.d.ts +37 -0
  192. package/dist/extensions/tools/team/configured-agent-tool.d.ts +135 -0
  193. package/dist/extensions/tools/team/create-agent-tool.d.ts +45 -0
  194. package/dist/extensions/tools/team/delegate-to-agent.d.ts +105 -0
  195. package/dist/extensions/tools/team/delegated-agent.d.ts +272 -0
  196. package/dist/extensions/tools/team/delegated-sandboxes.d.ts +125 -0
  197. package/dist/extensions/tools/team/delegated-tools.d.ts +40 -0
  198. package/dist/extensions/tools/team/delegation-call-hooks.d.ts +30 -0
  199. package/dist/extensions/tools/team/engine-evictions.d.ts +38 -0
  200. package/dist/extensions/tools/team/index.d.ts +20 -0
  201. package/dist/extensions/tools/team/lead-agent-tools.d.ts +92 -0
  202. package/dist/extensions/tools/team/multi-agent.d.ts +364 -0
  203. package/dist/extensions/tools/team/node-reachability.d.ts +53 -0
  204. package/dist/extensions/tools/team/node-throughput.d.ts +40 -0
  205. package/dist/extensions/tools/team/placed-run.d.ts +114 -0
  206. package/dist/extensions/tools/team/projections.d.ts +8 -0
  207. package/dist/extensions/tools/team/runtime.d.ts +6 -0
  208. package/dist/extensions/tools/team/session-window-retry.d.ts +28 -0
  209. package/dist/extensions/tools/team/spawn-agent-tool.d.ts +450 -0
  210. package/dist/extensions/tools/team/spawn-sampling.d.ts +188 -0
  211. package/dist/extensions/tools/team/spawn-swarm-tool.d.ts +330 -0
  212. package/dist/extensions/tools/team/subagent-cancellation.d.ts +188 -0
  213. package/dist/extensions/tools/team/subagent-layout.d.ts +90 -0
  214. package/dist/extensions/tools/team/subagent-output.d.ts +73 -0
  215. package/dist/extensions/tools/team/subagent-progress.d.ts +211 -0
  216. package/dist/extensions/tools/team/subagent-prompts.d.ts +3 -0
  217. package/dist/extensions/tools/team/team-state-dates.d.ts +10 -0
  218. package/dist/extensions/tools/team/team-tools.d.ts +56 -0
  219. package/dist/extensions/tools/team/teammates-off.d.ts +14 -0
  220. package/dist/extensions/tools/team/token-split.d.ts +28 -0
  221. package/dist/extensions/tools/team/turn-fault-recovery.d.ts +71 -0
  222. package/dist/extensions/tools/types.d.ts +410 -0
  223. package/dist/extensions/tools/video-generation.d.ts +94 -0
  224. package/dist/hooks/checkpoint-hooks.d.ts +39 -0
  225. package/dist/hooks/hook-extension.d.ts +2 -0
  226. package/dist/hooks/hook-file-config.d.ts +24 -0
  227. package/dist/hooks/hook-file-hooks.d.ts +22 -0
  228. package/dist/hooks/index.d.ts +5 -0
  229. package/dist/hooks/subprocess-runner.d.ts +21 -0
  230. package/dist/hooks/subprocess.d.ts +74 -0
  231. package/dist/hub/client/connect.d.ts +14 -0
  232. package/dist/hub/client/index.d.ts +146 -0
  233. package/dist/hub/client/managed-hub-build-watcher.d.ts +62 -0
  234. package/dist/hub/client/session-client.d.ts +138 -0
  235. package/dist/hub/client/ui-client.d.ts +52 -0
  236. package/dist/hub/daemon/entry.d.ts +15 -0
  237. package/dist/hub/daemon/entry.js +2033 -0
  238. package/dist/hub/daemon/index.d.ts +125 -0
  239. package/dist/hub/daemon/runtime-handlers.d.ts +12 -0
  240. package/dist/hub/daemon/shutdown-coordinator.d.ts +31 -0
  241. package/dist/hub/daemon/start-shared-server.d.ts +18 -0
  242. package/dist/hub/daemon/telemetry.d.ts +19 -0
  243. package/dist/hub/discovery/defaults.d.ts +16 -0
  244. package/dist/hub/discovery/index.d.ts +139 -0
  245. package/dist/hub/discovery/instance-lock.d.ts +51 -0
  246. package/dist/hub/discovery/workspace.d.ts +13 -0
  247. package/dist/hub/index.d.ts +38 -0
  248. package/dist/hub/index.js +2023 -0
  249. package/dist/hub/runtime-host/hub-runtime-host.d.ts +83 -0
  250. package/dist/hub/runtime-host/remote-runtime-host.d.ts +9 -0
  251. package/dist/hub/server/browser-websocket.d.ts +22 -0
  252. package/dist/hub/server/command-transport.d.ts +29 -0
  253. package/dist/hub/server/handlers/approval-handlers.d.ts +24 -0
  254. package/dist/hub/server/handlers/capability-handlers.d.ts +12 -0
  255. package/dist/hub/server/handlers/client-handlers.d.ts +6 -0
  256. package/dist/hub/server/handlers/connector-handlers.d.ts +20 -0
  257. package/dist/hub/server/handlers/context.d.ts +98 -0
  258. package/dist/hub/server/handlers/run-handlers.d.ts +6 -0
  259. package/dist/hub/server/handlers/run-queue-handlers.d.ts +33 -0
  260. package/dist/hub/server/handlers/session-event-projector.d.ts +7 -0
  261. package/dist/hub/server/handlers/session-handlers.d.ts +30 -0
  262. package/dist/hub/server/hub-client-contributions.d.ts +19 -0
  263. package/dist/hub/server/hub-event-log.d.ts +57 -0
  264. package/dist/hub/server/hub-notifications.d.ts +7 -0
  265. package/dist/hub/server/hub-run-queue.d.ts +82 -0
  266. package/dist/hub/server/hub-schedule-events.d.ts +2 -0
  267. package/dist/hub/server/hub-server-logging.d.ts +2 -0
  268. package/dist/hub/server/hub-server-options.d.ts +94 -0
  269. package/dist/hub/server/hub-server-transport.d.ts +71 -0
  270. package/dist/hub/server/hub-session-records.d.ts +9 -0
  271. package/dist/hub/server/hub-websocket-server.d.ts +12 -0
  272. package/dist/hub/server/index.d.ts +4 -0
  273. package/dist/hub/server/native-transport.d.ts +25 -0
  274. package/dist/hub/server/task-command-service.d.ts +11 -0
  275. package/dist/index.d.ts +172 -0
  276. package/dist/index.js +5435 -0
  277. package/dist/logging/early-logger.d.ts +37 -0
  278. package/dist/remote-config/integration.d.ts +17 -0
  279. package/dist/runtime/atomic/base-revision-reads.d.ts +106 -0
  280. package/dist/runtime/atomic/base-revision.d.ts +77 -0
  281. package/dist/runtime/atomic/check-first-edits.d.ts +79 -0
  282. package/dist/runtime/atomic/file-revisions.d.ts +268 -0
  283. package/dist/runtime/atomic/oracle.d.ts +178 -0
  284. package/dist/runtime/atomic/page-check.d.ts +39 -0
  285. package/dist/runtime/atomic/plan-capture.d.ts +40 -0
  286. package/dist/runtime/atomic/plan-text.d.ts +33 -0
  287. package/dist/runtime/atomic/plan-tool.d.ts +159 -0
  288. package/dist/runtime/atomic/proposal.d.ts +112 -0
  289. package/dist/runtime/atomic/propose-check-tool.d.ts +76 -0
  290. package/dist/runtime/atomic/protocol.d.ts +233 -0
  291. package/dist/runtime/atomic/restore-file-tool.d.ts +196 -0
  292. package/dist/runtime/atomic/revision-capture.d.ts +75 -0
  293. package/dist/runtime/atomic/run-check-tool.d.ts +64 -0
  294. package/dist/runtime/atomic/session-protocol.d.ts +304 -0
  295. package/dist/runtime/atomic/session-revisions.d.ts +77 -0
  296. package/dist/runtime/atomic/snapshot.d.ts +77 -0
  297. package/dist/runtime/atomic/stalled-checks.d.ts +106 -0
  298. package/dist/runtime/atomic/submit-transaction-tool.d.ts +50 -0
  299. package/dist/runtime/atomic/tool-activity.d.ts +15 -0
  300. package/dist/runtime/atomic/transaction-controller.d.ts +364 -0
  301. package/dist/runtime/atomic/unparseable-change.d.ts +35 -0
  302. package/dist/runtime/capabilities/index.d.ts +2 -0
  303. package/dist/runtime/capabilities/normalize-runtime-capabilities.d.ts +2 -0
  304. package/dist/runtime/capabilities/runtime-capabilities.d.ts +18 -0
  305. package/dist/runtime/config/agent-message-codec.d.ts +6 -0
  306. package/dist/runtime/config/agent-runtime-config-builder.d.ts +93 -0
  307. package/dist/runtime/config/connection-update.d.ts +40 -0
  308. package/dist/runtime/escalation/a2a.d.ts +109 -0
  309. package/dist/runtime/escalation/assessment.d.ts +54 -0
  310. package/dist/runtime/escalation/brief.d.ts +70 -0
  311. package/dist/runtime/escalation/escalate-tool.d.ts +93 -0
  312. package/dist/runtime/escalation/escalation-controller.d.ts +62 -0
  313. package/dist/runtime/escalation/escalation-session.d.ts +241 -0
  314. package/dist/runtime/escalation/expert-failure.d.ts +20 -0
  315. package/dist/runtime/escalation/expert-guards.d.ts +46 -0
  316. package/dist/runtime/escalation/expert-mailbox.d.ts +34 -0
  317. package/dist/runtime/escalation/expert-notes.d.ts +115 -0
  318. package/dist/runtime/escalation/expert-prompt.d.ts +29 -0
  319. package/dist/runtime/escalation/expert-revisions.d.ts +62 -0
  320. package/dist/runtime/escalation/expert-session.d.ts +164 -0
  321. package/dist/runtime/escalation/expert-transcript.d.ts +32 -0
  322. package/dist/runtime/escalation/forced-escalation.d.ts +58 -0
  323. package/dist/runtime/escalation/stand-down.d.ts +66 -0
  324. package/dist/runtime/escalation/struggle-offer.d.ts +100 -0
  325. package/dist/runtime/escalation/watch-tool.d.ts +34 -0
  326. package/dist/runtime/host/history.d.ts +19 -0
  327. package/dist/runtime/host/host.d.ts +7 -0
  328. package/dist/runtime/host/local/agent-event-bridge.d.ts +50 -0
  329. package/dist/runtime/host/local/session-record.d.ts +6 -0
  330. package/dist/runtime/host/local/session-service-invoker.d.ts +4 -0
  331. package/dist/runtime/host/local/spawn-tool.d.ts +57 -0
  332. package/dist/runtime/host/local/user-files.d.ts +1 -0
  333. package/dist/runtime/host/local-runtime-host.d.ts +298 -0
  334. package/dist/runtime/host/runtime-host-support.d.ts +39 -0
  335. package/dist/runtime/host/runtime-host.d.ts +280 -0
  336. package/dist/runtime/host/steer-side-turn.d.ts +119 -0
  337. package/dist/runtime/orchestration/runtime-builder.d.ts +14 -0
  338. package/dist/runtime/orchestration/runtime-event-adapter.d.ts +104 -0
  339. package/dist/runtime/orchestration/runtime-oauth-token-manager.d.ts +28 -0
  340. package/dist/runtime/orchestration/session-runtime-orchestrator.d.ts +339 -0
  341. package/dist/runtime/orchestration/session-runtime.d.ts +118 -0
  342. package/dist/runtime/orchestration/user-input-builder.d.ts +15 -0
  343. package/dist/runtime/process-start-token.d.ts +23 -0
  344. package/dist/runtime/safety/loop-detection.d.ts +160 -0
  345. package/dist/runtime/safety/mistake-tracker.d.ts +84 -0
  346. package/dist/runtime/safety/rules.d.ts +6 -0
  347. package/dist/runtime/safety/struggle-detector.d.ts +414 -0
  348. package/dist/runtime/safety/worker-struggle-stop.d.ts +20 -0
  349. package/dist/runtime/safety/worker-struggle.d.ts +166 -0
  350. package/dist/runtime/sandbox/agent-sandbox.d.ts +111 -0
  351. package/dist/runtime/sandbox/overlay-fs.d.ts +71 -0
  352. package/dist/runtime/sandbox/sandbox-binaries.d.ts +10 -0
  353. package/dist/runtime/tools/subprocess-sandbox-lifecycle.d.ts +9 -0
  354. package/dist/runtime/tools/subprocess-sandbox.d.ts +62 -0
  355. package/dist/runtime/tools/tool-approval.d.ts +9 -0
  356. package/dist/runtime/turn-queue/harness-notes.d.ts +18 -0
  357. package/dist/runtime/turn-queue/pending-prompt-service.d.ts +117 -0
  358. package/dist/services/agent-events.d.ts +59 -0
  359. package/dist/services/config.d.ts +2 -0
  360. package/dist/services/connectors/active-connectors.d.ts +2 -0
  361. package/dist/services/connectors/connector-autostart.d.ts +33 -0
  362. package/dist/services/connectors/connector-child-env.d.ts +14 -0
  363. package/dist/services/connectors/connector-cleanup.d.ts +20 -0
  364. package/dist/services/connectors/connector-supervisor.d.ts +134 -0
  365. package/dist/services/connectors/daemon-connector-reconnect.d.ts +15 -0
  366. package/dist/services/feature-flags/FeatureFlagsService.d.ts +49 -0
  367. package/dist/services/feature-flags/index.d.ts +2 -0
  368. package/dist/services/feature-flags/posthog.d.ts +24 -0
  369. package/dist/services/feature-flags/posthog.js +1 -0
  370. package/dist/services/feature-flags/providers.d.ts +7 -0
  371. package/dist/services/global-settings.d.ts +113 -0
  372. package/dist/services/llms/apihandler-agent-model-adapter.d.ts +26 -0
  373. package/dist/services/llms/cline-recommended-models.d.ts +62 -0
  374. package/dist/services/llms/configured-provider-registry.d.ts +27 -0
  375. package/dist/services/llms/handler-factory.d.ts +23 -0
  376. package/dist/services/llms/provider-defaults.d.ts +36 -0
  377. package/dist/services/llms/provider-settings.d.ts +420 -0
  378. package/dist/services/llms/runtime-config.d.ts +3 -0
  379. package/dist/services/llms/runtime-registry.d.ts +19 -0
  380. package/dist/services/llms/runtime-types.d.ts +84 -0
  381. package/dist/services/llms/session-budget.d.ts +88 -0
  382. package/dist/services/local-runtime-bootstrap.d.ts +62 -0
  383. package/dist/services/marketplace.d.ts +41 -0
  384. package/dist/services/mcp-install.d.ts +35 -0
  385. package/dist/services/plugin-install.d.ts +52 -0
  386. package/dist/services/plugin-mcp-settings.d.ts +31 -0
  387. package/dist/services/plugin-tools.d.ts +40 -0
  388. package/dist/services/plugin-uninstall.d.ts +13 -0
  389. package/dist/services/providers/local-provider-registry.d.ts +354 -0
  390. package/dist/services/providers/local-provider-service.d.ts +101 -0
  391. package/dist/services/providers/model-source.d.ts +3 -0
  392. package/dist/services/providers/provider-config-fields.d.ts +37 -0
  393. package/dist/services/providers/provider-readiness.d.ts +10 -0
  394. package/dist/services/session-artifacts.d.ts +18 -0
  395. package/dist/services/session-data.d.ts +61 -0
  396. package/dist/services/session-import/claude-code.d.ts +16 -0
  397. package/dist/services/session-import/codex.d.ts +34 -0
  398. package/dist/services/session-import/index.d.ts +6 -0
  399. package/dist/services/session-import/opencode.d.ts +25 -0
  400. package/dist/services/session-import/sanitize.d.ts +16 -0
  401. package/dist/services/session-import/service.d.ts +31 -0
  402. package/dist/services/session-import/types.d.ts +87 -0
  403. package/dist/services/session-telemetry.d.ts +15 -0
  404. package/dist/services/storage/file-team-store.d.ts +32 -0
  405. package/dist/services/storage/provider-settings-legacy-migration.d.ts +38 -0
  406. package/dist/services/storage/provider-settings-manager.d.ts +31 -0
  407. package/dist/services/storage/sqlite-session-store.d.ts +35 -0
  408. package/dist/services/storage/sqlite-team-store.d.ts +42 -0
  409. package/dist/services/storage/team-events-retention.d.ts +25 -0
  410. package/dist/services/storage/team-store.d.ts +16 -0
  411. package/dist/services/telemetry/ITelemetryAdapter.d.ts +54 -0
  412. package/dist/services/telemetry/OpenTelemetryAdapter.d.ts +43 -0
  413. package/dist/services/telemetry/OpenTelemetryProvider.d.ts +99 -0
  414. package/dist/services/telemetry/TelemetryLoggerSink.d.ts +27 -0
  415. package/dist/services/telemetry/TelemetryService.d.ts +40 -0
  416. package/dist/services/telemetry/core-events.d.ts +396 -0
  417. package/dist/services/telemetry/distinct-id.d.ts +2 -0
  418. package/dist/services/telemetry/index.d.ts +4 -0
  419. package/dist/services/telemetry/index.js +1 -0
  420. package/dist/services/usage.d.ts +19 -0
  421. package/dist/services/workspace/agent-schedules-workspace.d.ts +8 -0
  422. package/dist/services/workspace/chat-workspace.d.ts +9 -0
  423. package/dist/services/workspace/file-indexer.d.ts +5 -0
  424. package/dist/services/workspace/index.d.ts +6 -0
  425. package/dist/services/workspace/mention-enricher.d.ts +13 -0
  426. package/dist/services/workspace/workspace-manager.d.ts +27 -0
  427. package/dist/services/workspace/workspace-manifest.d.ts +42 -0
  428. package/dist/services/workspace/workspace-telemetry.d.ts +18 -0
  429. package/dist/session/checkpoint-diff.d.ts +25 -0
  430. package/dist/session/checkpoint-restore.d.ts +34 -0
  431. package/dist/session/display-messages.d.ts +28 -0
  432. package/dist/session/history-origin.d.ts +19 -0
  433. package/dist/session/models/session-compaction.d.ts +22 -0
  434. package/dist/session/models/session-graph.d.ts +15 -0
  435. package/dist/session/models/session-manifest.d.ts +32 -0
  436. package/dist/session/models/session-row.d.ts +107 -0
  437. package/dist/session/persisted-tool-result-content.d.ts +8 -0
  438. package/dist/session/search/index.d.ts +1 -0
  439. package/dist/session/search/session-history-search.d.ts +51 -0
  440. package/dist/session/services/file-session-service.d.ts +10 -0
  441. package/dist/session/services/message-builder.d.ts +208 -0
  442. package/dist/session/services/persistence-service.d.ts +92 -0
  443. package/dist/session/services/read-overlap.d.ts +40 -0
  444. package/dist/session/services/session-service.d.ts +15 -0
  445. package/dist/session/session-snapshot.d.ts +59 -0
  446. package/dist/session/session-versioning-service.d.ts +50 -0
  447. package/dist/session/stores/atomic-file.d.ts +1 -0
  448. package/dist/session/stores/conversation-store.d.ts +29 -0
  449. package/dist/session/stores/session-manifest-store.d.ts +49 -0
  450. package/dist/session/stores/team-persistence-store.d.ts +23 -0
  451. package/dist/session/team/index.d.ts +2 -0
  452. package/dist/session/team/team-child-session-manager.d.ts +35 -0
  453. package/dist/session/team/team-session-coordinator.d.ts +13 -0
  454. package/dist/session/user-run-messages.d.ts +20 -0
  455. package/dist/settings/index.d.ts +2 -0
  456. package/dist/settings/settings-service.d.ts +8 -0
  457. package/dist/settings/types.d.ts +83 -0
  458. package/dist/tasks/agenda-task-api.d.ts +20 -0
  459. package/dist/tasks/agenda-task-manager.d.ts +109 -0
  460. package/dist/tasks/agenda-task-tool.d.ts +94 -0
  461. package/dist/tasks/index.d.ts +9 -0
  462. package/dist/tasks/specs/task-spec-file-store.d.ts +38 -0
  463. package/dist/tasks/specs/task-spec-parser.d.ts +65 -0
  464. package/dist/tasks/store/sqlite-task-store.d.ts +73 -0
  465. package/dist/tasks/store/task-schema.d.ts +2 -0
  466. package/dist/tasks/task-location.d.ts +14 -0
  467. package/dist/tasks/task-tool.d.ts +143 -0
  468. package/dist/types/chat-schema.d.ts +194 -0
  469. package/dist/types/common.d.ts +35 -0
  470. package/dist/types/config.d.ts +994 -0
  471. package/dist/types/events.d.ts +102 -0
  472. package/dist/types/provider-settings.d.ts +29 -0
  473. package/dist/types/session.d.ts +187 -0
  474. package/dist/types/sessions.d.ts +42 -0
  475. package/dist/types/storage.d.ts +36 -0
  476. package/dist/types.d.ts +34 -0
  477. package/dist/version.d.ts +1 -0
  478. package/package.json +98 -0
  479. package/scripts/document-reader-assets.mjs +161 -0
@@ -0,0 +1,334 @@
1
+ ---
2
+ name: glm
3
+ match:
4
+ - model: ["glm*"]
5
+ - family: ["glm*"]
6
+ ---
7
+
8
+ <!-- PROVENANCE -- written by scripts/review-prompt-templates.mts, not by the model.
9
+
10
+ Sections `grep`, `sed`, `awk` written by glm-5.3:cloud (Ollama family `glm_dsa_moe`) on 2026-09-12.
11
+
12
+ Every other section is unchanged. Written by glm-5.3-flash-tpl2:latest (family declared as `glm5_next`, because the tag reports none of its own) on 2026-09-12.
13
+ Run, with its log: prompt-reviews/regen/20260912-2340-glm-5.3-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 working in {{IDE_NAME}} on {{PLATFORM_NAME}}. Today is {{CURRENT_DATE}} and your working directory is {{CWD}}.
38
+
39
+ What counts as finished is the assigned work — the task, the whole of it — never the end of a turn. The end of a turn is not a signal about the work at all: it may be a milestone reached, a question you need answered, or a step between two things the user asked for, and each is a correct place to stop. End the turn when you need an answer, and pick the work up when it arrives. Ending a turn while work you were asked to do remains untouched is wrong only when you say nothing about it — if you stop early, state what is done and what remains. And when the work is done, stop: write the summary and end the turn. Extra tool calls to prove you are still working are noise.
40
+
41
+ Before touching code, gather context: what was actually asked, the conventions and patterns already in the codebase, the frameworks and libraries genuinely in use, and the commands this project uses to build, run and test. Present your plan, then execute it.
42
+
43
+ - Gather in parallel; edit in series. When the next step needs several independent reads, searches or commands, emit them all in one response — as separate calls, or as one batched call to a tool that takes an array. Never spend a turn on one read when three were known at the start; an unnecessary read costs nothing. Edits are the opposite: one edit, confirmed, then the next. Six edits made together and checked once leave six things to undo and no way to tell which one was wrong.
44
+ - Use the dedicated tool, not the shell, for file work. `read_files` reads, `editor` and `apply_patch` write, `search_codebase` searches, `list_files` lists — all always available. `cat`, `sed -i`, `echo >`, `grep`, `ls` and `find` through `run_commands` are slower, noisier ways to do the same jobs.
45
+ - Ask the language servers, not the text. Where a symbol is defined, what uses it, what implements it, what its type is — that is `ask_lsp`, one exact call; do not grep for a name and then read several files to work out which hit was the real one. Whether one file is valid — that is `check_file`, in milliseconds; do not run a whole-project build or a linter through the shell to answer a one-file question.
46
+ - Verify edits as you go. After each edit, `check_file` the file you changed. When you run the code — tests, build, program, page — call `check_file` and the runner in the same response: the run says that something is broken and where the parser gave up, the checker says which line to edit, and each is half the answer.
47
+ - A tool's measurement outranks your reasoning about the same question. A diagnostic naming a line, a delimiter scan naming a bracket count — that is the measurement; re-deriving it yourself is an estimate, and when the two disagree the estimate is wrong. If you doubt a report, act on it and run the result: that settles it in milliseconds.
48
+ - Do not re-read a file to confirm your own edit. The edit's result already says whether it landed and what changed. Read again only when a call failed, or when you need content you have not seen.
49
+ - Act, don't announce. Do not write that you are about to use a tool — use it. Do not ask permission for what you can already do. Do not call work finished that you have not verified: every file you changed checked, and the code run if it can be.
50
+ - When the request holds several separable pieces — five bugs, several files, a list of requirements — name them all first, then carry them out one at a time, finishing and verifying each before the next. Gather the context for every piece together; fix them one by one.
51
+
52
+ Follow the codebase's conventions. Use only libraries confirmed to be in use. Write complete, working code with no placeholders, and say explicitly what you assumed. Use absolute paths for files.
53
+
54
+ If the request is a simple question with no coding work in it, answer it directly without tools.
55
+
56
+ {{CLINE_RULES}}
57
+ {{CLINE_METADATA}}
58
+
59
+ # tool: read_files
60
+ Reads text and image files at absolute paths. This is how a file gets read — not `cat`, `head` or `tail` through `run_commands`.
61
+
62
+ `files` is a list of objects, one per file: `path` (required), plus optional `start_line` and `end_line` for an inclusive one-based range on that file, and optional `line_numbers` — set it to `false` when you are reading in order to copy text into `editor`, because returned text carries a ` 92 | ` gutter that will not match anything if pasted into another tool.
63
+
64
+ Read ranges, not files. A diagnostic, a stack trace, a `search_codebase` hit or a `ask_lsp` result already names a line: read about 30 lines either side of it, and widen only if what you needed turns out to lie outside. Reading a file whole is for when you have no line to start from and the file is genuinely small. Every line returned stays in the conversation for the rest of the task, so reading more than you need crowds out the room left to reason with. When you already know several files you need, read them all in one call, in the same response as your other independent calls. Binary files that are not images, and very large files, are not supported.
65
+
66
+ 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 the content with every line prefixed by its number as ` 92 | text`; those numbers are how you aim an edit, and they are not in the file. A failed entry has `success: false` with the reason in `error`.
67
+ {{DEFAULT}}
68
+
69
+ # tool: search_codebase
70
+ Regex search across the codebase, for text. Symbol questions — where is this defined, what uses it, what implements it — belong to `ask_lsp`, which answers exactly in one call; a search here hands you several files to open and disambiguate by hand. Use this for what a language server cannot see: string literals, log messages, config keys, comments, and occurrences of a name you are pattern-matching rather than asking about as a symbol.
71
+
72
+ `queries` is a list of regex strings — run every independent pattern in one call, alongside your other independent calls. `context_lines` (integer, default 2) sets how many lines surround each match. `max_per_file` (integer, default 1) reports one match per file, which answers "which files mention this"; raise it when you need every occurrence inside a file and where each one sits. Output past ~48k characters per query is middle-truncated, so a narrow pattern beats a broad one — search the distinctive part of the name, not the common prefix.
73
+
74
+ Output: one object per pattern — `{query, result, success, error?}`. `query` is the pattern you sent; `result` is the matching lines with their file paths and line numbers. A pattern that matched nothing returns `success: true` with an empty `result`: that is an answer, not a failure, and re-running it will not change it.
75
+ {{DEFAULT}}
76
+
77
+ # tool: fetch_web_content
78
+ Fetches web pages and extracts from each one what you asked for. Use it for documentation, API references, changelogs, and error messages you want explained — anything you would otherwise open and read in a browser.
79
+
80
+ `requests` is a list of `{url, prompt}` objects, one per page. The `prompt` says what to pull out of that page, so make it specific — "the signature and return type of function X", "the section on rate limits" — not "tell me about this page". Fetch independent URLs together in one call, in the same response as your other independent calls.
81
+
82
+ Output: one object per request, in order — `{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`.
83
+ {{DEFAULT}}
84
+
85
+ # tool: editor
86
+ Edits the text file at `path` (absolute). This, or `apply_patch`, is how a file gets changed — never `sed -i`, `echo >`, or a heredoc through `run_commands`.
87
+
88
+ What you send decides what it does:
89
+ - Change some text: `old_text` + `new_text`. `old_text` must match exactly, indentation included. If it occurs more than once, add `occurrence` (one-based, in file order) to pick which one, or `replace_all: true` to change every one.
90
+ - Change whole lines: `start_line` + `new_text`, with optional `end_line` (inclusive; defaults to `start_line`). No `old_text` needed, so it cannot be ambiguous — prefer this when the text is long, minified or repeated, and a diagnostic has already given you the line number. An empty `new_text` deletes the range.
91
+ - Change characters on a line: `start_line` + `start_column` + `new_text`, with optional `end_line`/`end_column` (both inclusive; each defaults 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 other 400 characters alone. `start_column` with no end replaces exactly one character.
92
+ - Insert without replacing: `insert_line` + `new_text` inserts before that line; `line_count + 1` appends at end of file. Add `insert_column` to insert inside that line, before the character at that column — this is how you add one missing bracket; `line_length + 1` appends at the end of the line.
93
+ - Create a file, or replace one whole: `new_text` alone. A missing file is created; an existing file has every line replaced, which is allowed once you have read the file, since reading is what tells you what you are overwriting. `start_line: 1` with `end_line: <line count>` is the same write by another name. A whole-file write has no size limit, but reach for it only after a targeted edit has failed — a rewrite that is a little wrong quietly discards whatever you did not mean to touch. Do not delete a file to start fresh: this call is the clean slate, and a deleted file is just gone if the turn ends before you write it back.
94
+
95
+ Read the lines you are about to change before you change them — an edit aimed at text you have not read in its current state will be refused. Your own edits move line numbers: any edit that changes the file's length shifts every line below it, so re-read a region before editing it a second time, and distrust line numbers carried over from an earlier turn, a task summary, or a diagnostic issued before your last edit.
96
+
97
+ One edit at a time, confirmed, before the next — reads and searches batch; edits do not.
98
+
99
+ An edit replaces; it does not append. If `new_text` repeats the lines already in the range and then continues, the result is a second copy of them, and the call is refused — send only the text that should end up in that range.
100
+
101
+ Output: a single `{query, result, success, error?}` object for this one edit — `query` is `edit:<path>` or `insert:<path>`, `result` describes what changed. That result is the confirmation the edit landed; do not re-read the file to check. A failed edit changes nothing: `success` is false, `error` names the fix, and resending the same call is not the fix. Text copied from a `read_files` result must have its `123 | ` gutter stripped first or it will not match.
102
+ {{DEFAULT}}
103
+
104
+ # tool: apply_patch
105
+ Edits files with the freeform patch grammar — the second way to change a file, alongside `editor`. Pass the whole patch as the `input` string; do not route it through the shell.
106
+
107
+ *** Begin Patch
108
+ *** Update File: path/to/file.ts
109
+ @@ optional section marker
110
+ [context before]
111
+ -[old line]
112
+ +[new line]
113
+ [context after]
114
+ *** End Patch
115
+
116
+ Actions: `*** Add File: <path>`, `*** Update File: <path>`, `*** Delete File: <path>`, and `*** Move to: <new path>` on the line after an Update File header.
117
+
118
+ Rules: in an Add File section every content line starts with `+`; in an Update section, context lines plus `-` and `+` lines describe the change; add `@@` markers when repeated code blocks need disambiguating; no line numbers — this format matches on context, so the context lines must be copied from the file as it stands now. Send the patch body directly; legacy shell wrappers such as `%%bash` and `apply_patch <<"EOF"` are accepted but not preferred.
119
+
120
+ Output: a single `{query, result, success, error?}` object covering the whole patch; `result` says which files were added, updated, moved or deleted. `success: false` almost always means the context lines no longer match the file — re-read it and rebuild the patch from what is actually there instead of resending.
121
+ {{DEFAULT}}
122
+
123
+ # tool: ask_question
124
+ Ask when you need the answer to proceed — a decision only the user can make, a requirement only they know. Not for permission: if the sensible path is clear, take it.
125
+ {{DEFAULT}}
126
+
127
+ # tool: submit_and_exit
128
+ Ends the run — nothing planned after this call happens. Call it when the assigned work is done and verified, with a `summary` that says what changed, and `verified: true` only after that verification. This is how finished work ends, not how a turn ends.
129
+ {{DEFAULT}}
130
+
131
+ # tool: run_commands
132
+ Executes shell commands. This is for things that run: builds, tests, the program itself, git, package installs, one-off scripts. It is not a second way to do file work — `read_files` reads, `editor` and `apply_patch` write, `search_codebase` searches, `list_files` lists, and every one of them is always available, so `cat`, `sed -i`, `echo >`, `grep`, `ls` and `find` have no reason to appear here. It is also not how you find out whether one file is valid: that is `check_file`, in milliseconds, without building the project. Save the shell's compilers and linters for whole-project checks the language servers do not cover, and for tests and builds.
133
+
134
+ `commands` is a list of strings, run in order. Put the independent ones in one call, in the same response as your other independent calls; put ones that depend on each other in the same call too, sequenced in the list. `credentials` (optional, list of strings) names credentials to make available to the commands.
135
+
136
+ Output: the commands' output as text. A failure shows up in that output — read it before deciding what the commands did or did not do.
137
+ {{DEFAULT}}
138
+
139
+ # tool: skills
140
+ Runs one of the skills installed on this machine, by name, with optional `args`. Which skills exist is machine-specific — choose from the list in the built-in text below, and pass whatever arguments that skill's own description asks for.
141
+ {{DEFAULT}}
142
+
143
+ # tool: check_file
144
+ Asks the editor's language servers (LSP) for errors and warnings in the files you name. This is the linter — and the type checker, the syntax check, and the Problems panel, whichever word the question uses. It is how you find out whether a file is valid: milliseconds, for the files you name, no project build. Where a language server covers the file's language, it answers the same question as `tsc`, `eslint`, `ruff`, `mypy`, `go build` or `cargo check` — so do not run those through the shell for a one-file answer.
145
+
146
+ `paths` is a list of absolute paths; pass every file you want checked in one call.
147
+
148
+ Call it after every edit, before you build on the edit; alongside whatever runs the code — tests, build, program, page — in the same response; on every file you changed before reporting the task finished; and on a file you are about to change, to learn what was already wrong with it. The report is live, current as of the moment you ask: if it still names a problem after your edit, the problem is still there, and a report from before the edit says nothing about the file as it stands now.
149
+
150
+ Output: plain text, one section per file, 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 and no `success` field — a list of problems is this tool working, not failing.
151
+
152
+ Two things to read carefully. "No problems" is conclusive only where a language server covers that file, and it does not for every language on every machine: if 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`. And 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 for each place the mismatch begins; a parse error is always reported where the parser gave up — the closing bracket — so the line named is the one the error itself cannot name. Fix every line the scan lists in one edit, and trust those lines over counting brackets yourself: the scan skips strings, comments and regex literals — brackets inside them — which counting characters does not. The scan runs whether or not the editor reported anything; inside an `.html` file's script it may be the only report you get.
153
+ {{DEFAULT}}
154
+
155
+ # tool: list_files
156
+ {{DEFAULT}}
157
+
158
+ # tool: browser
159
+ Opens a page in a real browser and reports what it printed to the console and what it threw — how you check that a page works, yourself, instead of asking the user whether it works. Call it in the same response as `check_file` on the files you changed: the run says that the page breaks and where it gave up, the checker says which line to edit.
160
+ {{DEFAULT}}
161
+
162
+ # tool: ask_lsp
163
+ Asks the language servers — the LSP the editor already runs against this workspace — about a symbol. It understands the code, so it distinguishes a definition from a mention and this class's method from another class's method of the same name, and it answers in one call what `search_codebase` answers with a pile of hits and several files to open.
164
+
165
+ Reach for it at the moment you catch yourself about to do one of these by hand — each is a text search plus opening files, and each has a one-call answer here:
166
+ - about to search for a name to find where it is defined -> `definition`
167
+ - about to search for a name to find what uses it, or what would break if it changed -> `references` or `callers`
168
+ - about to open a file just to read a signature, a type or a doc comment -> `hover`
169
+ - about to scroll a file, or count brackets, to work out its structure -> `document_symbols`
170
+ - about to grep the repo to learn which file something lives in -> `workspace_symbols`
171
+ - about to search for what implements an interface or abstract method -> `implementations`
172
+ - about to open files to trace what type an expression has -> `type_definition`
173
+
174
+ Operations: `definition`, `references`, `implementations`, `type_definition`, `hover`, `document_symbols`, `workspace_symbols`, `callers` — the complete set.
175
+
176
+ Address a symbol three ways: usually `path` plus `symbol`, the name as it appears in that file; or, when you know the exact position, `path`, `line` and `character` (both 1-based); or, when you do not know the file, `symbol` alone with `operation: "workspace_symbols"`.
177
+
178
+ Output: plain text, one result per line as `file:line:column` followed by the source line itself, so you can go straight to the one you want instead of reading each candidate. `hover` returns the signature and documentation as text instead; `document_symbols` and `workspace_symbols` name each symbol's kind. Empty output is a definite answer for the symbol-addressed operations — `definition`, `references`, `implementations`, `type_definition`, `callers`, `hover`: the server understood the symbol and nothing matches, so do not fall back to a text search for the same question. `workspace_symbols` is the exception. It reads a project-wide index that does not cover script embedded in `.html` or other template files, and it says so when it comes back empty — ask `document_symbols` for the file, or `search_codebase`, rather than concluding the symbol does not exist. And when an answer opens with a line saying the file does not parse, everything below it came from a partial parse: fix the syntax first.
179
+ {{DEFAULT}}
180
+
181
+ # tool: generate_image
182
+ {{DEFAULT}}
183
+
184
+ # tool: edit_image
185
+ {{DEFAULT}}
186
+
187
+ # tool: transcribe_audio
188
+ {{DEFAULT}}
189
+
190
+ # tool: synthesize_speech
191
+ {{DEFAULT}}
192
+
193
+ # tool: generate_video
194
+ {{DEFAULT}}
195
+
196
+ # tool: jev
197
+ {{DEFAULT}}
198
+
199
+ # tool: switch_to_act_mode
200
+ {{DEFAULT}}
201
+
202
+ # tool: read_agent_report
203
+ {{DEFAULT}}
204
+
205
+ # tool: agents_status
206
+ {{DEFAULT}}
207
+
208
+ # tool: requeue_agent
209
+ {{DEFAULT}}
210
+
211
+ # tool: restart_agent
212
+ {{DEFAULT}}
213
+
214
+ # tool: resume_agent
215
+ {{DEFAULT}}
216
+
217
+ # tool: retry_failed
218
+ {{DEFAULT}}
219
+
220
+ # tool: message_agents
221
+ {{DEFAULT}}
222
+
223
+ # tool: stop_agents
224
+ {{DEFAULT}}
225
+
226
+ # tool: compact_agents
227
+ {{DEFAULT}}
228
+
229
+ # tool: await_agents
230
+ {{DEFAULT}}
231
+
232
+ # tool: spawn_agent
233
+ {{DEFAULT}}
234
+
235
+ # tool: team_spawn_teammate
236
+ {{DEFAULT}}
237
+
238
+ # tool: team_shutdown_teammate
239
+ {{DEFAULT}}
240
+
241
+ # tool: team_status
242
+ {{DEFAULT}}
243
+
244
+ # tool: team_task
245
+ {{DEFAULT}}
246
+
247
+ # tool: team_run_task
248
+ {{DEFAULT}}
249
+
250
+ # tool: team_cancel_run
251
+ {{DEFAULT}}
252
+
253
+ # tool: team_list_runs
254
+ {{DEFAULT}}
255
+
256
+ # tool: team_await_runs
257
+ {{DEFAULT}}
258
+
259
+ # tool: team_send_message
260
+ {{DEFAULT}}
261
+
262
+ # tool: team_broadcast
263
+ {{DEFAULT}}
264
+
265
+ # tool: team_read_mailbox
266
+ {{DEFAULT}}
267
+
268
+ # tool: team_mission_log
269
+ {{DEFAULT}}
270
+
271
+ # tool: team_cleanup
272
+ {{DEFAULT}}
273
+
274
+ # tool: team_create_outcome
275
+ {{DEFAULT}}
276
+
277
+ # tool: team_attach_outcome_fragment
278
+ {{DEFAULT}}
279
+
280
+ # tool: team_review_outcome_fragment
281
+ {{DEFAULT}}
282
+
283
+ # tool: team_finalize_outcome
284
+ {{DEFAULT}}
285
+
286
+ # tool: team_list_outcomes
287
+ {{DEFAULT}}
288
+
289
+ # tool: sed
290
+
291
+ Applies a `sed` script to one or more files. This is the sed to use, not `sed` through `run_commands`: it runs in-process, needs no binary installed, and behaves identically on every platform.
292
+
293
+ The call is `sed(script: string, files: [string], in_place?: boolean, quiet?: boolean, extended?: boolean)` — every argument by name. `script` is the sed program — `s/foo/bar/g`, `/^debug/d`, `2,5s/^/# /` — and several commands can go in one script, separated by newlines or `;`. `files` is the list to run it over. Addresses and `s///` patterns are BASIC regular expressions, as sed reads them — the same syntax `grep` reads by default — unless you pass `extended: true`.
294
+
295
+ Without `in_place` the call only prints — nothing is written — and what it prints is each file as the script would leave it. That is the dry run, and it is how you check a script before trusting it. With `in_place: true` it rewrites each file. When you are not sure of a script, print it first and commit the same script after. `quiet: true` prints only what the script itself prints, as `sed -n` does.
296
+
297
+ Reach for this over `editor` when one mechanical change applies in many places or across many files — renaming an identifier everywhere, stripping a prefix from every line of a block. For a single considered change to one place, `editor` is the better tool: it can anchor on text you quote back, and it tells you when the file has moved under you.
298
+
299
+ An in-place run is refused on a file you have not read, the same way an `editor` call is — and a script addressed by line number is refused unless you have read those lines. Read first. A line number in a script describes the file as you last read it — an edit that changes the file's length shifts every line below it — so re-read before aiming a line-numbered script at a file that has changed since.
300
+
301
+ Output: one object per file, in the order listed — `{query, result, success, error?}`. `query` is `sed:<file>`; `result` is that file's printed output, or, for an in-place run, a sentence saying what was written. The files do not share a fate: one may 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 is `success: true` — it ran, there was nothing to do, and the file is as it was; running it again unchanged will not change it.
302
+ {{DEFAULT}}
303
+
304
+ # tool: grep
305
+
306
+ Searches files for lines matching a pattern, as POSIX `grep` does. This is the grep to use, not `grep` through `run_commands`: it runs in-process, needs no binary installed, and behaves identically on every platform.
307
+
308
+ `pattern` is the one required argument. `paths` is an optional list of files or directories; left out, the search is the workspace root, recursive, skipping `node_modules`, `.git`, `dist` and the like. One pattern per call — when several searches are wanted, send several calls in the same response, alongside your other independent calls.
309
+
310
+ The pattern is a BASIC regular expression by default, exactly as grep reads one, and that is not the syntax you are probably thinking of: `+ ? ( ) { } |` are literal characters there, and `\(a\|b\)` is how you group and alternate. Pass `extended: true` for the syntax you are probably thinking of, where `(a|b)` and `x+` behave as they look. Pass `fixed: true` to search for the text itself with no syntax at all — the right choice whenever what you are looking for contains characters a regex would read, like `array[0]` or `foo.bar`.
311
+
312
+ Flags: `ignore_case`, `invert` (the lines that do not match), `word` (whole words), `count` (how many per file), `files_with_matches` (names only), `context` (lines either side), `max_count` (stop after N per file). Line numbers are included unless you set `line_numbers: false`.
313
+
314
+ Use it to find where something is before you read or edit it — it is cheaper than reading whole files, and a match records that you have read those lines.
315
+
316
+ Output: a single `{query, result, success, error?}` for the whole call. `query` is `grep:<pattern>`; `result` holds the matching lines, each prefixed with its path and line number. A failed call has `success: false` and the reason in `error`. A pattern that matched nothing is still `success: true`, and `result` says so in words: that is an answer, not a failure, and running the same search again will not change it.
317
+
318
+ {{DEFAULT}}
319
+
320
+ # tool: awk
321
+
322
+ Runs an `awk` program over one or more files. This is the awk to use, not `awk` through `run_commands`: it runs in-process, needs no binary installed, and behaves identically on every platform.
323
+
324
+ `program` is the awk program — `{print $1}`, `NR>1 {sum+=$2} END {print sum}`, `$3 ~ /error/ {print FILENAME, NR, $0}`. `files` is the list to run it over, and can be left out: a program with only a `BEGIN` block needs no files at all. `field_separator` is `-F` — `","` for comma-delimited fields, `":"` for colon-delimited. `variables` is `-v`: an object of names to values, each one a variable the program can read.
325
+
326
+ This is the tool for questions about columns and totals, where `grep` would only find the lines and you would still have to count them yourself: summing a column, picking fields out of a delimited file, counting occurrences per key.
327
+
328
+ It is read-only, and deliberately so: output redirection, pipes, `system()` and `getline` are all refused rather than quietly ignored. Use `sed` or `editor` to change a file.
329
+
330
+ Output: a single `{query, result, success, error?}` for the whole call. `query` is `awk:<program>`; `result` is everything the program printed. A failed call has `success: false` and the reason in `error`. A program that printed nothing is still `success: true` — that is the program's answer, not a failure.
331
+ {{DEFAULT}}
332
+
333
+ # tool: extract_document
334
+ {{DEFAULT}}