@cortex-agent/server 2026.10.15 → 2026.10.25

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 (469) hide show
  1. package/README.md +81 -51
  2. package/defaults/board/board.css +140 -62
  3. package/defaults/board/scaffold.html +36 -13
  4. package/defaults/config/environments/creative.json +0 -1
  5. package/defaults/config/environments/main.json +1 -2
  6. package/defaults/context/projects/AGENTS.md +1 -1
  7. package/defaults/gitignore +3 -3
  8. package/defaults/hooks/new-session-hook.mjs +1 -1
  9. package/defaults/hooks/status-md-guard.mjs +6 -6
  10. package/defaults/plugins/cortex-board/skills/board/SKILL.md +30 -22
  11. package/defaults/plugins/cortex-system/plugin.json +2 -2
  12. package/defaults/plugins/cortex-system/skills/browser/SKILL.md +56 -0
  13. package/defaults/plugins/cortex-system/skills/client-manage/SKILL.md +16 -9
  14. package/defaults/plugins/cortex-system/skills/project-init/SKILL.md +2 -2
  15. package/defaults/rules/agents-md.md +1 -1
  16. package/defaults/rules/issues-md.md +1 -1
  17. package/defaults/rules/meta-conventions.md +3 -3
  18. package/defaults/rules/mission-md.md +1 -1
  19. package/defaults/rules/status-md.md +1 -1
  20. package/dist/agent-adapter/claude/adapter.d.ts +2 -5
  21. package/dist/agent-adapter/claude/adapter.js +6 -5
  22. package/dist/agent-adapter/claude/assistant-blocks.d.ts +5 -0
  23. package/dist/agent-adapter/claude/assistant-blocks.js +61 -0
  24. package/dist/agent-adapter/claude/bg-task-tracker.d.ts +3 -1
  25. package/dist/agent-adapter/claude/bg-task-tracker.js +6 -2
  26. package/dist/agent-adapter/claude/cache-refresh.d.ts +58 -0
  27. package/dist/agent-adapter/claude/cache-refresh.js +145 -0
  28. package/dist/agent-adapter/claude/cache-touch.d.ts +12 -0
  29. package/dist/agent-adapter/claude/cache-touch.js +75 -0
  30. package/dist/agent-adapter/claude/event-parser.d.ts +8 -3
  31. package/dist/agent-adapter/claude/event-parser.js +33 -17
  32. package/dist/agent-adapter/claude/event-translator.d.ts +2 -0
  33. package/dist/agent-adapter/claude/event-translator.js +2 -0
  34. package/dist/agent-adapter/claude/mcp-config.js +11 -0
  35. package/dist/agent-adapter/claude/session-options.d.ts +6 -13
  36. package/dist/agent-adapter/claude/session-options.js +2 -13
  37. package/dist/agent-adapter/claude/spawn-args.d.ts +4 -21
  38. package/dist/agent-adapter/claude/spawn-args.js +17 -24
  39. package/dist/agent-adapter/claude/transcript-clear.d.ts +42 -0
  40. package/dist/agent-adapter/claude/transcript-clear.js +217 -0
  41. package/dist/agent-adapter/claude/turn-machine.d.ts +5 -3
  42. package/dist/agent-adapter/claude/turn-machine.js +29 -73
  43. package/dist/agent-adapter/claude/window-warmup.d.ts +13 -0
  44. package/dist/agent-adapter/claude/window-warmup.js +38 -0
  45. package/dist/agent-adapter/continuation-phase.d.ts +6 -3
  46. package/dist/agent-adapter/continuation-phase.js +11 -3
  47. package/dist/agent-adapter/normalize/event-types.d.ts +8 -0
  48. package/dist/agent-adapter/pi/adapter.d.ts +0 -1
  49. package/dist/agent-adapter/pi/adapter.js +5 -13
  50. package/dist/agent-adapter/pi/event-parser.d.ts +1 -1
  51. package/dist/agent-adapter/pi/event-parser.js +43 -27
  52. package/dist/agent-adapter/pi/mcp-bridge.d.ts +1 -1
  53. package/dist/agent-adapter/pi/pi-session.d.ts +2 -0
  54. package/dist/agent-adapter/pi/pi-session.js +15 -0
  55. package/dist/agent-adapter/pi/providers-config.d.ts +2 -2
  56. package/dist/agent-adapter/pi/providers-config.js +1 -1
  57. package/dist/agent-adapter/pi/quota-sink.d.ts +3 -3
  58. package/dist/agent-adapter/pi/quota-sink.js +3 -3
  59. package/dist/agent-adapter/pi/runtime.js +6 -1
  60. package/dist/agent-adapter/pi/session-options.d.ts +9 -13
  61. package/dist/agent-adapter/pi/session-options.js +12 -25
  62. package/dist/agent-adapter/run-events.d.ts +15 -10
  63. package/dist/agent-adapter/run-events.js +2 -0
  64. package/dist/agent-adapter/types.d.ts +14 -6
  65. package/dist/build-info.json +1 -0
  66. package/dist/client-bundle/client.mjs +10 -5
  67. package/dist/client-bundle/manifest.json +3 -3
  68. package/dist/core/claude-credentials.d.ts +6 -0
  69. package/dist/core/claude-credentials.js +11 -0
  70. package/dist/core/codex-quota.d.ts +1 -1
  71. package/dist/core/codex-quota.js +1 -1
  72. package/dist/core/gateway-generator.d.ts +26 -11
  73. package/dist/core/gateway-generator.js +73 -62
  74. package/dist/core/hook-bus.d.ts +1 -1
  75. package/dist/core/hook-bus.js +1 -8
  76. package/dist/core/locales/en.d.ts +52 -77
  77. package/dist/core/locales/slices/commands.d.ts +26 -31
  78. package/dist/core/locales/slices/commands.js +54 -64
  79. package/dist/core/locales/slices/init.d.ts +9 -19
  80. package/dist/core/locales/slices/init.js +19 -53
  81. package/dist/core/locales/slices/interactions.d.ts +3 -3
  82. package/dist/core/locales/slices/interactions.js +6 -6
  83. package/dist/core/locales/slices/notices.d.ts +1 -3
  84. package/dist/core/locales/slices/notices.js +2 -6
  85. package/dist/core/locales/slices/scheduling.d.ts +9 -9
  86. package/dist/core/locales/slices/scheduling.js +18 -18
  87. package/dist/core/locales/slices/status.d.ts +0 -4
  88. package/dist/core/locales/slices/status.js +0 -8
  89. package/dist/core/locales/slices/tui.d.ts +0 -1
  90. package/dist/core/locales/slices/tui.js +0 -2
  91. package/dist/core/locales/slices/uimsg.d.ts +4 -7
  92. package/dist/core/locales/slices/uimsg.js +9 -15
  93. package/dist/core/log.d.ts +3 -0
  94. package/dist/core/log.js +18 -1
  95. package/dist/core/models-generator.d.ts +29 -0
  96. package/dist/core/models-generator.js +82 -0
  97. package/dist/core/paths.d.ts +1 -1
  98. package/dist/core/paths.js +1 -1
  99. package/dist/core/settings-spec.d.ts +30 -0
  100. package/dist/core/settings-spec.js +38 -0
  101. package/dist/core/status-format.d.ts +3 -2
  102. package/dist/core/status-format.js +2 -2
  103. package/dist/core/types/agent-types.d.ts +3 -1
  104. package/dist/core/types/environment-types.d.ts +1 -8
  105. package/dist/domain/agents/agent-state.d.ts +11 -56
  106. package/dist/domain/agents/agent-state.js +48 -115
  107. package/dist/domain/agents/agent-switch.d.ts +2 -24
  108. package/dist/domain/agents/agent-switch.js +9 -72
  109. package/dist/domain/agents/config.d.ts +11 -61
  110. package/dist/domain/agents/config.js +47 -154
  111. package/dist/domain/agents/engine-selection.d.ts +21 -0
  112. package/dist/domain/agents/engine-selection.js +37 -0
  113. package/dist/domain/agents/environments/registry.js +4 -2
  114. package/dist/domain/agents/environments/resolve.js +0 -1
  115. package/dist/domain/agents/environments/schema.d.ts +3 -3
  116. package/dist/domain/agents/environments/schema.js +4 -4
  117. package/dist/domain/agents/index.d.ts +2 -1
  118. package/dist/domain/agents/index.js +3 -7
  119. package/dist/domain/agents/model-selection.d.ts +18 -70
  120. package/dist/domain/agents/model-selection.js +100 -150
  121. package/dist/domain/agents/models.d.ts +12 -0
  122. package/dist/domain/agents/models.js +94 -0
  123. package/dist/domain/agents/subagent/registry.d.ts +2 -0
  124. package/dist/domain/agents/subagent/registry.js +8 -0
  125. package/dist/domain/agents/subagent/runner.d.ts +5 -5
  126. package/dist/domain/agents/subagent/runner.js +12 -35
  127. package/dist/domain/auth/auth-status.d.ts +4 -4
  128. package/dist/domain/auth/auth-status.js +17 -28
  129. package/dist/domain/auth/auth-watch.js +48 -18
  130. package/dist/domain/auth/gateway-sync.d.ts +6 -26
  131. package/dist/domain/auth/gateway-sync.js +31 -75
  132. package/dist/domain/benchmark/identity.d.ts +3 -5
  133. package/dist/domain/benchmark/identity.js +0 -1
  134. package/dist/domain/benchmark/production-attempt-identity.d.ts +6 -5
  135. package/dist/domain/benchmark/production-attempt-identity.js +32 -35
  136. package/dist/domain/benchmark/session-evidence.d.ts +2 -1
  137. package/dist/domain/benchmark/session-evidence.js +8 -1
  138. package/dist/domain/browser/broker.d.ts +99 -0
  139. package/dist/domain/browser/broker.js +487 -0
  140. package/dist/domain/costs/claude-account.js +21 -0
  141. package/dist/domain/costs/rate-limit-throttle.js +3 -1
  142. package/dist/domain/costs/reset-account.d.ts +2 -0
  143. package/dist/domain/costs/usage-service.d.ts +1 -1
  144. package/dist/domain/costs/usage-service.js +20 -7
  145. package/dist/domain/mcp/tools/context.d.ts +5 -7
  146. package/dist/domain/mcp/tools/context.js +17 -4
  147. package/dist/domain/mcp/tools/subagent.js +1 -1
  148. package/dist/domain/mcp/tools/ui-file.js +1 -1
  149. package/dist/domain/monitor/event-loop-monitor.d.ts +2 -0
  150. package/dist/domain/monitor/event-loop-monitor.js +5 -1
  151. package/dist/domain/pi-providers/custom-provider-model.d.ts +1 -1
  152. package/dist/domain/pi-providers/custom-provider-model.js +1 -1
  153. package/dist/domain/plugins/authoring.d.ts +8 -1
  154. package/dist/domain/plugins/authoring.js +24 -9
  155. package/dist/domain/plugins/runtime-gc.d.ts +7 -0
  156. package/dist/domain/plugins/runtime-gc.js +52 -19
  157. package/dist/domain/plugins/runtime.js +2 -1
  158. package/dist/domain/remote/client-bootstrap.js +1 -1
  159. package/dist/domain/remote/client-manager.js +6 -1
  160. package/dist/domain/remote/device-browser.js +1 -1
  161. package/dist/domain/remote/device-chrome-commands.js +2 -0
  162. package/dist/domain/remote/device-port.js +2 -2
  163. package/dist/domain/runs/attempt.d.ts +3 -3
  164. package/dist/domain/runs/attempt.js +2 -3
  165. package/dist/domain/runs/builders.d.ts +4 -4
  166. package/dist/domain/runs/builders.js +4 -5
  167. package/dist/domain/runs/compact.d.ts +4 -17
  168. package/dist/domain/runs/compact.js +14 -56
  169. package/dist/domain/runs/config-resolver.d.ts +15 -83
  170. package/dist/domain/runs/config-resolver.js +24 -150
  171. package/dist/domain/runs/engine-spec.d.ts +8 -8
  172. package/dist/domain/runs/engine-spec.js +15 -31
  173. package/dist/domain/runs/events.d.ts +1 -1
  174. package/dist/domain/runs/fallback.d.ts +6 -38
  175. package/dist/domain/runs/fallback.js +10 -72
  176. package/dist/domain/runs/notices.d.ts +1 -11
  177. package/dist/domain/runs/notices.js +3 -30
  178. package/dist/domain/runs/request.d.ts +4 -3
  179. package/dist/domain/runs/retryable-errors.d.ts +0 -13
  180. package/dist/domain/runs/retryable-errors.js +3 -18
  181. package/dist/domain/runs/run.d.ts +12 -42
  182. package/dist/domain/runs/run.js +40 -147
  183. package/dist/domain/runs/service.d.ts +0 -9
  184. package/dist/domain/runs/service.js +33 -14
  185. package/dist/domain/runs/spec-loader.d.ts +1 -1
  186. package/dist/domain/runs/spend.d.ts +1 -1
  187. package/dist/domain/runs/spend.js +1 -1
  188. package/dist/domain/scheduling/builtin-job-controller.d.ts +3 -1
  189. package/dist/domain/scheduling/builtin-job-controller.js +5 -2
  190. package/dist/domain/scheduling/builtin-jobs.js +7 -0
  191. package/dist/domain/scheduling/jobs/scheduled-task.d.ts +3 -2
  192. package/dist/domain/scheduling/jobs/scheduled-task.js +25 -19
  193. package/dist/domain/scheduling/schedule-ops.d.ts +0 -1
  194. package/dist/domain/scheduling/schedule-ops.js +2 -5
  195. package/dist/domain/scheduling/schedule-selection.d.ts +3 -0
  196. package/dist/domain/scheduling/schedule-selection.js +16 -0
  197. package/dist/domain/scheduling/schedule-spec.d.ts +6 -5
  198. package/dist/domain/scheduling/schedule-spec.js +6 -6
  199. package/dist/domain/scheduling/scheduler.d.ts +3 -1
  200. package/dist/domain/scheduling/scheduler.js +36 -26
  201. package/dist/domain/sessions/session-hooks.d.ts +5 -4
  202. package/dist/domain/sessions/session-hooks.js +15 -33
  203. package/dist/domain/sessions/session-lifecycle.d.ts +19 -51
  204. package/dist/domain/sessions/session-lifecycle.js +34 -96
  205. package/dist/domain/system/doctor.d.ts +3 -3
  206. package/dist/domain/system/doctor.js +22 -26
  207. package/dist/domain/system/own-bin-path.d.ts +13 -0
  208. package/dist/domain/system/own-bin-path.js +36 -0
  209. package/dist/domain/system/server-update-check.js +2 -1
  210. package/dist/domain/system/terminal-cli/index.d.ts +58 -0
  211. package/dist/domain/system/terminal-cli/index.js +100 -0
  212. package/dist/domain/system/terminal-cli/posix-profiles.d.ts +23 -0
  213. package/dist/domain/system/terminal-cli/posix-profiles.js +74 -0
  214. package/dist/domain/system/terminal-cli/registrar.d.ts +12 -0
  215. package/dist/domain/system/terminal-cli/registrar.js +1 -0
  216. package/dist/domain/system/terminal-cli/shims.d.ts +27 -0
  217. package/dist/domain/system/terminal-cli/shims.js +108 -0
  218. package/dist/domain/system/terminal-cli/state.d.ts +7 -0
  219. package/dist/domain/system/terminal-cli/state.js +36 -0
  220. package/dist/domain/system/terminal-cli/windows-user-path.d.ts +13 -0
  221. package/dist/domain/system/terminal-cli/windows-user-path.js +67 -0
  222. package/dist/domain/telemetry/bus-collector.d.ts +3 -0
  223. package/dist/domain/telemetry/bus-collector.js +22 -0
  224. package/dist/domain/telemetry/child-exit.d.ts +11 -0
  225. package/dist/domain/telemetry/child-exit.js +36 -0
  226. package/dist/domain/telemetry/client-kind.d.ts +4 -0
  227. package/dist/domain/telemetry/client-kind.js +7 -0
  228. package/dist/domain/telemetry/crash-limits.d.ts +15 -0
  229. package/dist/domain/telemetry/crash-limits.js +50 -0
  230. package/dist/domain/telemetry/crash.d.ts +25 -0
  231. package/dist/domain/telemetry/crash.js +70 -0
  232. package/dist/domain/telemetry/daily-upload.d.ts +5 -0
  233. package/dist/domain/telemetry/daily-upload.js +20 -0
  234. package/dist/domain/telemetry/daily.d.ts +5 -0
  235. package/dist/domain/telemetry/daily.js +104 -0
  236. package/dist/domain/telemetry/endpoint.d.ts +7 -0
  237. package/dist/domain/telemetry/endpoint.js +40 -0
  238. package/dist/domain/telemetry/envelope.d.ts +6 -0
  239. package/dist/domain/telemetry/envelope.js +35 -0
  240. package/dist/domain/telemetry/error-digest.d.ts +7 -0
  241. package/dist/domain/telemetry/error-digest.js +43 -0
  242. package/dist/domain/telemetry/funnel.d.ts +6 -0
  243. package/dist/domain/telemetry/funnel.js +22 -0
  244. package/dist/domain/telemetry/gate.d.ts +19 -0
  245. package/dist/domain/telemetry/gate.js +67 -0
  246. package/dist/domain/telemetry/heartbeat.d.ts +17 -0
  247. package/dist/domain/telemetry/heartbeat.js +49 -0
  248. package/dist/domain/telemetry/info.d.ts +9 -0
  249. package/dist/domain/telemetry/info.js +12 -0
  250. package/dist/domain/telemetry/init-answer.d.ts +12 -0
  251. package/dist/domain/telemetry/init-answer.js +42 -0
  252. package/dist/domain/telemetry/install-id.d.ts +5 -0
  253. package/dist/domain/telemetry/install-id.js +42 -0
  254. package/dist/domain/telemetry/normalize.d.ts +33 -0
  255. package/dist/domain/telemetry/normalize.js +88 -0
  256. package/dist/domain/telemetry/outbox.d.ts +18 -0
  257. package/dist/domain/telemetry/outbox.js +93 -0
  258. package/dist/domain/telemetry/panic-group.d.ts +4 -0
  259. package/dist/domain/telemetry/panic-group.js +51 -0
  260. package/dist/domain/telemetry/paths.d.ts +7 -0
  261. package/dist/domain/telemetry/paths.js +11 -0
  262. package/dist/domain/telemetry/redact.d.ts +18 -0
  263. package/dist/domain/telemetry/redact.js +109 -0
  264. package/dist/domain/telemetry/rollup-types.d.ts +81 -0
  265. package/dist/domain/telemetry/rollup-types.js +31 -0
  266. package/dist/domain/telemetry/rollup.d.ts +16 -0
  267. package/dist/domain/telemetry/rollup.js +102 -0
  268. package/dist/domain/telemetry/schema.d.ts +931 -0
  269. package/dist/domain/telemetry/schema.js +275 -0
  270. package/dist/domain/telemetry/service.d.ts +34 -0
  271. package/dist/domain/telemetry/service.js +146 -0
  272. package/dist/domain/telemetry/state.d.ts +17 -0
  273. package/dist/domain/telemetry/state.js +29 -0
  274. package/dist/domain/telemetry/turns.d.ts +17 -0
  275. package/dist/domain/telemetry/turns.js +176 -0
  276. package/dist/domain/telemetry/upgrade.d.ts +14 -0
  277. package/dist/domain/telemetry/upgrade.js +87 -0
  278. package/dist/domain/telemetry/uploader.d.ts +21 -0
  279. package/dist/domain/telemetry/uploader.js +82 -0
  280. package/dist/domain/telemetry/usage.d.ts +25 -0
  281. package/dist/domain/telemetry/usage.js +153 -0
  282. package/dist/domain/telemetry/web-report.d.ts +8 -0
  283. package/dist/domain/telemetry/web-report.js +15 -0
  284. package/dist/domain/tui-session/tui-session-service.js +1 -1
  285. package/dist/domain/tui-session/types.d.ts +2 -2
  286. package/dist/domain/ui-service/app-router.d.ts +117 -95
  287. package/dist/domain/ui-service/app-router.js +17 -14
  288. package/dist/domain/ui-service/assistant-snapshots.js +2 -0
  289. package/dist/domain/ui-service/contract.parity.d.ts +19 -0
  290. package/dist/domain/ui-service/contract.parity.js +1 -0
  291. package/dist/domain/ui-service/inline-media-types.d.ts +18 -0
  292. package/dist/domain/ui-service/inline-media-types.js +1 -0
  293. package/dist/domain/ui-service/input-schemas.d.ts +120 -119
  294. package/dist/domain/ui-service/input-schemas.js +47 -85
  295. package/dist/domain/ui-service/mutate/approvals.d.ts +3 -2
  296. package/dist/domain/ui-service/mutate/approvals.js +3 -2
  297. package/dist/domain/ui-service/mutate/auth.d.ts +1 -1
  298. package/dist/domain/ui-service/mutate/auth.js +3 -2
  299. package/dist/domain/ui-service/mutate/config.d.ts +0 -8
  300. package/dist/domain/ui-service/mutate/config.js +0 -22
  301. package/dist/domain/ui-service/mutate/models.d.ts +13 -0
  302. package/dist/domain/ui-service/mutate/models.js +137 -0
  303. package/dist/domain/ui-service/mutate/plugin-packages.js +1 -1
  304. package/dist/domain/ui-service/mutate/resolve-media.d.ts +4 -0
  305. package/dist/domain/ui-service/mutate/resolve-media.js +17 -0
  306. package/dist/domain/ui-service/mutate/sessions.d.ts +2 -2
  307. package/dist/domain/ui-service/mutate/sessions.js +29 -126
  308. package/dist/domain/ui-service/mutate/telemetry.d.ts +5 -0
  309. package/dist/domain/ui-service/mutate/telemetry.js +6 -0
  310. package/dist/domain/ui-service/query/approvals.js +4 -3
  311. package/dist/domain/ui-service/query/config.js +22 -42
  312. package/dist/domain/ui-service/query/machine-probe.d.ts +1 -1
  313. package/dist/domain/ui-service/query/machine-probe.js +3 -2
  314. package/dist/domain/ui-service/query/models.d.ts +3 -0
  315. package/dist/domain/ui-service/query/models.js +49 -32
  316. package/dist/domain/ui-service/query/plugin-source.js +4 -3
  317. package/dist/domain/ui-service/query/schedules.js +1 -1
  318. package/dist/domain/ui-service/query/sessions.js +8 -13
  319. package/dist/domain/ui-service/query/telemetry.d.ts +3 -0
  320. package/dist/domain/ui-service/query/telemetry.js +4 -0
  321. package/dist/domain/ui-service/trpc.d.ts +8 -3
  322. package/dist/domain/ui-service/trpc.js +1 -1
  323. package/dist/domain/ui-service/types.d.ts +71 -179
  324. package/dist/domain/ui-service/ui-service.d.ts +56 -53
  325. package/dist/domain/ui-service/ui-service.js +27 -24
  326. package/dist/entry/app.js +62 -21
  327. package/dist/entry/browser-cli.d.ts +39 -0
  328. package/dist/entry/browser-cli.js +317 -0
  329. package/dist/entry/cli-help.d.ts +1 -0
  330. package/dist/entry/cli-help.js +64 -20
  331. package/dist/entry/cli.js +16 -14
  332. package/dist/entry/daemon.d.ts +1 -1
  333. package/dist/entry/daemon.js +88 -72
  334. package/dist/entry/init-auth.js +1 -1
  335. package/dist/entry/init.d.ts +10 -8
  336. package/dist/entry/init.js +138 -276
  337. package/dist/entry/path-cli.d.ts +4 -0
  338. package/dist/entry/path-cli.js +65 -0
  339. package/dist/entry/schedule-cli.js +13 -6
  340. package/dist/entry/shutdown.d.ts +1 -1
  341. package/dist/entry/shutdown.js +11 -1
  342. package/dist/entry/signal-cli.js +8 -11
  343. package/dist/entry/start-ui-http.js +48 -18
  344. package/dist/entry/telemetry-wiring.d.ts +12 -0
  345. package/dist/entry/telemetry-wiring.js +56 -0
  346. package/dist/entry/ui-cli.d.ts +0 -11
  347. package/dist/entry/ui-cli.js +42 -33
  348. package/dist/entry/ui-service-wiring.js +8 -10
  349. package/dist/events/event-types.d.ts +4 -6
  350. package/dist/orchestration/agent-runner.d.ts +2 -2
  351. package/dist/orchestration/agent-runner.js +10 -9
  352. package/dist/orchestration/benchmark-session-webhook.js +13 -1
  353. package/dist/orchestration/browser-webhook.d.ts +11 -0
  354. package/dist/orchestration/browser-webhook.js +28 -0
  355. package/dist/orchestration/cache-keep-warm.d.ts +77 -0
  356. package/dist/orchestration/cache-keep-warm.js +213 -0
  357. package/dist/orchestration/claude-window-warmup.d.ts +40 -0
  358. package/dist/orchestration/claude-window-warmup.js +126 -0
  359. package/dist/orchestration/conversation-request.d.ts +6 -10
  360. package/dist/orchestration/conversation-request.js +5 -23
  361. package/dist/orchestration/delta-coalescer.d.ts +4 -2
  362. package/dist/orchestration/delta-coalescer.js +5 -5
  363. package/dist/orchestration/edit-retry.js +9 -11
  364. package/dist/orchestration/inline-media-eager.d.ts +13 -0
  365. package/dist/orchestration/inline-media-eager.js +58 -0
  366. package/dist/orchestration/inline-media.d.ts +22 -0
  367. package/dist/orchestration/inline-media.js +151 -0
  368. package/dist/orchestration/interactions/ask-user-resume.js +3 -7
  369. package/dist/orchestration/interactions/interaction-handlers.js +6 -6
  370. package/dist/orchestration/mid-turn-inject.d.ts +2 -1
  371. package/dist/orchestration/mid-turn-inject.js +1 -1
  372. package/dist/orchestration/pending-injection-recovery.d.ts +2 -1
  373. package/dist/orchestration/pending-injection-recovery.js +1 -1
  374. package/dist/orchestration/routing/commands/index.js +4 -4
  375. package/dist/orchestration/routing/commands/mode.d.ts +5 -44
  376. package/dist/orchestration/routing/commands/mode.js +98 -272
  377. package/dist/orchestration/routing/commands/schedule.js +29 -18
  378. package/dist/orchestration/routing/commands/session.js +9 -9
  379. package/dist/orchestration/routing/commands/status.js +1 -1
  380. package/dist/orchestration/routing/commands/usage-format.js +3 -0
  381. package/dist/orchestration/routing/message-router.js +2 -0
  382. package/dist/orchestration/routing/webhook.js +6 -0
  383. package/dist/orchestration/session-compact.d.ts +0 -1
  384. package/dist/orchestration/session-compact.js +5 -7
  385. package/dist/orchestration/session-events.d.ts +2 -1
  386. package/dist/orchestration/session-events.js +1 -0
  387. package/dist/orchestration/status-helpers.d.ts +0 -4
  388. package/dist/orchestration/status-helpers.js +0 -18
  389. package/dist/orchestration/subagent-webhook.js +9 -34
  390. package/dist/orchestration/team-webhook.d.ts +8 -9
  391. package/dist/orchestration/team-webhook.js +16 -42
  392. package/dist/orchestration/transcript-sink.d.ts +12 -0
  393. package/dist/orchestration/transcript-sink.js +38 -2
  394. package/dist/orchestration/turn/terminal.js +7 -7
  395. package/dist/orchestration/turn/turn-prep.d.ts +0 -8
  396. package/dist/orchestration/turn/turn-prep.js +0 -51
  397. package/dist/orchestration/turn/turn-tracking.d.ts +2 -2
  398. package/dist/orchestration/turn/turn-tracking.js +8 -5
  399. package/dist/orchestration/turn/turn.d.ts +0 -2
  400. package/dist/orchestration/turn/turn.js +13 -15
  401. package/dist/orchestration/waitpoint-ingress.js +3 -0
  402. package/dist/platform/adapters/tui/ports.d.ts +1 -1
  403. package/dist/platform/adapters/tui/tui-transcript.js +2 -0
  404. package/dist/platform/browser/agent-browser.d.ts +50 -0
  405. package/dist/platform/browser/agent-browser.js +165 -0
  406. package/dist/platform/browser/managed-browser.d.ts +1 -11
  407. package/dist/platform/browser/managed-browser.js +4 -12
  408. package/dist/platform/ui-http/browser-stream.d.ts +110 -0
  409. package/dist/platform/ui-http/browser-stream.js +447 -0
  410. package/dist/platform/ui-http/ui-auth-routes.d.ts +2 -0
  411. package/dist/platform/ui-http/ui-auth-routes.js +9 -2
  412. package/dist/platform/ui-http/ui-device-routes.d.ts +13 -0
  413. package/dist/platform/ui-http/ui-device-routes.js +81 -0
  414. package/dist/platform/ui-http/ui-devices.d.ts +24 -0
  415. package/dist/platform/ui-http/ui-devices.js +107 -0
  416. package/dist/platform/ui-http/ui-http-server.d.ts +22 -3
  417. package/dist/platform/ui-http/ui-http-server.js +33 -12
  418. package/dist/platform/ui-http/ui-pairing.d.ts +25 -0
  419. package/dist/platform/ui-http/ui-pairing.js +98 -0
  420. package/dist/store/conversation-history-reader.js +8 -0
  421. package/dist/store/conversation-history-repo.d.ts +8 -1
  422. package/dist/store/conversation-history-repo.js +5 -0
  423. package/dist/store/conversation-ledger-repo.d.ts +6 -6
  424. package/dist/store/conversation-ledger-repo.js +4 -4
  425. package/dist/store/gitignore-migration.d.ts +2 -0
  426. package/dist/store/gitignore-migration.js +16 -0
  427. package/dist/store/hook-registry.d.ts +1 -1
  428. package/dist/store/hook-registry.js +11 -6
  429. package/dist/store/models-repo.d.ts +18 -0
  430. package/dist/store/models-repo.js +74 -0
  431. package/dist/store/pending-injection-repo.d.ts +2 -1
  432. package/dist/store/pending-injection-repo.js +3 -1
  433. package/dist/store/retire-profiles-migration.d.ts +28 -0
  434. package/dist/store/retire-profiles-migration.js +335 -0
  435. package/dist/store/schedule-repo.d.ts +2 -1
  436. package/dist/store/session-registry-import.js +3 -2
  437. package/dist/store/session-registry-journal.d.ts +10 -13
  438. package/dist/store/session-registry-journal.js +51 -25
  439. package/dist/store/session-registry-repo.d.ts +4 -4
  440. package/dist/store/session-registry-repo.js +4 -5
  441. package/dist/store/version-migrations.d.ts +7 -3
  442. package/dist/store/version-migrations.js +133 -80
  443. package/dist/tui/components/Dashboard.js +4 -3
  444. package/dist/tui/hooks/useDashboardData.js +1 -1
  445. package/dist/tui/slash-commands.js +2 -2
  446. package/dist/tui/turn-status.js +1 -1
  447. package/package.json +6 -4
  448. package/web/dist/assets/board-math-css-spk7yR6n.js +2 -0
  449. package/web/dist/assets/index-BQ69u-92.css +1 -0
  450. package/web/dist/assets/{index-CndZZ1IQ.js → index-CKNLatCd.js} +1 -1
  451. package/web/dist/assets/index-CkzWfC98.js +525 -0
  452. package/web/dist/index.html +3 -2
  453. package/web/dist/theme.css +6 -0
  454. package/dist/agent-adapter/browser-mcp-server.d.ts +0 -13
  455. package/dist/agent-adapter/browser-mcp-server.js +0 -28
  456. package/dist/agent-adapter/claude/browser-mcp.d.ts +0 -9
  457. package/dist/agent-adapter/claude/browser-mcp.js +0 -10
  458. package/dist/core/profile-generator.d.ts +0 -79
  459. package/dist/core/profile-generator.js +0 -215
  460. package/dist/domain/agents/profile-manager.d.ts +0 -103
  461. package/dist/domain/agents/profile-manager.js +0 -286
  462. package/dist/domain/agents/profile-switch.d.ts +0 -49
  463. package/dist/domain/agents/profile-switch.js +0 -62
  464. package/dist/domain/ui-service/mutate/profiles.d.ts +0 -36
  465. package/dist/domain/ui-service/mutate/profiles.js +0 -151
  466. package/dist/store/profile-repo.d.ts +0 -20
  467. package/dist/store/profile-repo.js +0 -97
  468. package/web/dist/assets/index-B76ueW3q.js +0 -494
  469. package/web/dist/assets/index-C8O0yxg8.css +0 -1
@@ -15,45 +15,40 @@ export const commandsEn = {
15
15
  'cmd.compact.running': 'Session is running — stop it before compacting context.',
16
16
  'cmd.compact.unsupported': 'This session backend does not support manual context compaction.',
17
17
  'cmd.compact.noSession': 'No active session to compact.',
18
- // --- mode / backend / model / profile / skills / agent ---
19
- 'cmd.mode.fromProfile': 'This channel runs in *${mode}* mode, from profile *${profile}*. Mode is part of the profile — change it with `!profile <name>` or in profiles.json.',
18
+ // --- mode / backend / model / skills / agent ---
19
+ 'cmd.mode.current': 'Gateway route for this channel: *${mode}*. Use `!mode <route>` to change it.',
20
+ 'cmd.mode.set': 'Gateway route set to *${mode}*.',
21
+ 'cmd.mode.invalid': 'Unknown route *${mode}*. Available: ${routes}.',
20
22
  'cmd.mode.apiLabel': 'API',
21
23
  'cmd.mode.planLabel': 'Plan',
22
24
  'cmd.backend.claudeLabel': 'Claude Code',
23
25
  'cmd.backend.piLabel': 'PI',
24
- 'cmd.model.current': 'Model for this channel: *${model}* (profile *${profile}*)',
25
- 'cmd.model.overridden': 'Model for this channel: *${model}* — overriding profile *${profile}* (*${profileModel}*). `!model reset` restores it.',
26
- 'cmd.model.usage': 'Usage: `!model <model-name>` · `!model reset`',
27
- 'cmd.model.set': 'Model for this channel set to *${model}* (overrides profile *${profile}*). Takes effect on the next message.',
28
- 'cmd.model.cleared': 'Model override cleared — this channel is back on profile *${profile}* (*${model}*).',
29
- 'cmd.model.noOverride': 'This channel had no model override; it is on profile *${profile}* (*${model}*).',
26
+ 'cmd.model.current': 'Model for this channel: *${model}*',
27
+ 'cmd.model.usage': 'Usage: `!model [provider/]model` · `!model reset`',
28
+ 'cmd.model.set': 'Model for this channel set to *${model}*. Takes effect on the next message.',
29
+ 'cmd.model.cleared': 'Default model restored: *${model}*.',
30
+ 'cmd.model.favorites': '*Favorite models*',
31
+ 'cmd.model.noFavorites': 'No favorite models yet. Add one in Settings → Models.',
30
32
  'cmd.thinking.none': 'the backend default',
31
- 'cmd.thinking.current': 'Thinking level for this channel: *${thinking}* (profile *${profile}*)',
32
- 'cmd.thinking.overridden': 'Thinking level for this channel: *${thinking}* — overriding profile *${profile}* (*${profileThinking}*). `!thinking reset` restores it.',
33
- 'cmd.thinking.set': 'Thinking level for this channel set to *${thinking}* (overrides profile *${profile}*). Takes effect on the next message.',
34
- 'cmd.thinking.cleared': 'Thinking override cleared — this channel is back on profile *${profile}* (*${thinking}*).',
35
- 'cmd.thinking.noOverride': 'This channel had no thinking override; it is on profile *${profile}* (*${thinking}*).',
33
+ 'cmd.thinking.current': 'Thinking level for this channel: *${thinking}*',
34
+ 'cmd.thinking.set': 'Thinking level set to *${thinking}*. Takes effect on the next message.',
35
+ 'cmd.thinking.cleared': 'Thinking level reset to the backend default.',
36
36
  'cmd.thinking.invalid': '*${thinking}* is not a ${backend} thinking level. Available: ${levels}.',
37
37
  'cmd.backend.usage': 'Usage: `!backend claude` · `!backend pi`',
38
- 'cmd.backend.noProfile': 'No profile in profiles.json uses the *${backend}* backend — add one, or set `defaultProfileByBackend`.',
39
- 'cmd.backend.already': 'This channel is already on *${backend}* (profile *${profile}*).',
40
- 'cmd.profile.channelSet': 'Channel profile set to *${name}*',
41
- 'cmd.profile.crossBackendBlocked': 'Can\'t switch to *${name}* — it runs on the `${target}` backend but this conversation is on `${current}`. Backends can\'t be swapped mid-conversation. Start a new session (`!new`) to switch backend.',
42
- 'cmd.profile.channelHeader': 'Channel profile: *${effective}* (global: ${global})',
43
- 'cmd.profile.activeHeader': 'Active profile: *${effective}*',
44
- 'cmd.profile.markerDefault': 'default',
45
- 'cmd.profile.markerGlobal': 'global',
46
- 'cmd.profile.markerChannel': 'channel',
47
- 'cmd.profile.cleared': 'Channel profile cleared, using global: *${name}*',
48
- 'cmd.profile.globalUsage': 'Usage: `!profile global <name>`',
49
- 'cmd.profile.globalSet': 'Global profile set to *${name}*',
38
+ 'cmd.backend.noFavorite': 'No default or favorite model uses *${backend}* — favorite a model for this backend first.',
39
+ 'cmd.backend.already': 'This channel is already on *${backend}* (*${model}*).',
40
+ 'cmd.selection.channelSet': 'Channel selection set to *${name}*',
41
+ 'cmd.selection.crossBackendBlocked': 'Can\'t switch to *${name}* — it runs on `${target}` but this conversation is on `${current}`. Start a new session (`!new`) to switch backend.',
42
+ 'cmd.selection.channelHeader': 'Channel selection: *${effective}* (default: ${global})',
43
+ 'cmd.selection.activeHeader': 'Current selection: *${effective}*',
44
+ 'cmd.selection.markerDefault': 'default',
45
+ 'cmd.selection.markerChannel': 'channel',
50
46
  'cmd.skills.none': 'No skills found.',
51
47
  'cmd.skills.header': '*Available skills*',
52
48
  'cmd.agent.defaultSet': 'Default agent set to *${name}* (${detail})',
53
49
  'cmd.agent.disabled': 'Default agent disabled.',
54
50
  'cmd.agent.unknown': 'Unknown agent: `${name}`\nAvailable: ${available}',
55
51
  'cmd.agent.channelSet': 'Agent for this conversation set to *${name}* (${detail}). Takes effect on the next message.',
56
- 'cmd.agent.crossBackendBlocked': 'Can\'t switch to *${name}* — it pins a profile on the `${target}` backend but this conversation is on `${current}`. Backends can\'t be swapped mid-conversation. Start a new session (`!new`) to switch backend.',
57
52
  'cmd.agent.channelHeader': 'Agent for this conversation: *${name}* (${detail})',
58
53
  'cmd.agent.followingGlobal': 'This conversation follows the global default: *${name}*',
59
54
  'cmd.agent.followingGlobalNone': 'This conversation follows the global default, which is unset (running `main`).',
@@ -112,12 +107,12 @@ export const commandsEn = {
112
107
  'cmd.sendfile.usage': 'Usage: `!sendFile <machine> <path>`\nPath can be absolute, relative to Cortex root, or start with `~`',
113
108
  'cmd.sendfile.unknownMachine': 'Unknown machine: `${machine}`. Known: ${known}',
114
109
  // --- session (new / resume) ---
115
- 'cmd.session.newConversation': '--- new conversation --- (profile: ${profile})',
110
+ 'cmd.session.newConversation': '--- new conversation --- (${selection})',
116
111
  'cmd.session.notFound': 'Session `${name}` not found.',
117
- 'cmd.session.switched': 'Switched to session `${name}`${profileNote}',
112
+ 'cmd.session.switched': 'Switched to session `${name}`${selectionNote}',
118
113
  'cmd.session.notFoundList': 'Session `${name}` not found. Use a full ID or a unique prefix of at least 6 characters; run `!resume` to list sessions.',
119
114
  'cmd.session.ambiguous': 'Session prefix `${name}` matches multiple sessions: ${matches}. Use a longer prefix or the full ID.',
120
- 'cmd.session.profileNote': ' (profile: ${profile})',
115
+ 'cmd.session.selectionNote': ' (${selection})',
121
116
  'cmd.session.noSessions': 'No sessions recorded yet.',
122
117
  'cmd.session.recentHeader': '*Recent sessions*',
123
118
  'cmd.session.activeTag': ' *(active)*',
@@ -213,11 +208,10 @@ export const commandsEn = {
213
208
  'cmd.help.session.cancel': '`!cancel [executionId|--all]` — stop the current run, one run by id, or every run here',
214
209
  'cmd.help.session.compact': '`!compact` — compact the active session context while idle',
215
210
  'cmd.help.session.resume': '`!resume [cortex-XXXX]` — list recent sessions, or switch to one',
216
- 'cmd.help.config.mode': '`!mode` — show this channel\'s API / Plan routing (set by its profile)',
217
- 'cmd.help.config.backend': '`!backend [claude|pi]` — move this channel to that backend\'s default profile',
211
+ 'cmd.help.config.mode': '`!mode [route]` — show or set this channel\'s gateway route',
212
+ 'cmd.help.config.backend': '`!backend [claude|pi]` — select that backend\'s default model',
218
213
  'cmd.help.config.model': '`!model [name|reset]` — show, override or restore this channel\'s model',
219
214
  'cmd.help.config.thinking': '`!thinking [level|reset]` — show, override or restore this channel\'s thinking level',
220
- 'cmd.help.config.profile': '`!profile [name]` — show active profile or switch to one',
221
215
  'cmd.help.config.skills': '`!skills` — list available skills',
222
216
  'cmd.help.monitoring.cost': '`!cost [project]` — show cost summary (global or per-project)',
223
217
  'cmd.help.monitoring.usage': '`!usage [provider]` — show provider quota and spend',
@@ -253,6 +247,7 @@ export const commandsEn = {
253
247
  'cmd.usage.window.sevenDay': '7 day',
254
248
  'cmd.usage.window.sevenDayOpus': '7 day Opus',
255
249
  'cmd.usage.window.sevenDayOverage': '7 day (incl. overage)',
250
+ 'cmd.usage.window.sevenDayModel': '7 day (${model})',
256
251
  'cmd.usage.window.codexPrimary': 'Primary',
257
252
  'cmd.usage.window.codexSecondary': 'Secondary',
258
253
  'cmd.usage.windowLine': '• ${label}: ${utilization}${reset}',
@@ -337,45 +332,40 @@ export const commandsZh = {
337
332
  'cmd.compact.running': '会话正在运行,请先停止当前 turn 再压缩上下文。',
338
333
  'cmd.compact.unsupported': '此会话后端不支持手动压缩上下文。',
339
334
  'cmd.compact.noSession': '当前没有可压缩的活动会话。',
340
- // --- mode / backend / model / profile / skills / agent ---
341
- 'cmd.mode.fromProfile': '本频道运行在 *${mode}* 模式,来自配置 *${profile}*。模式是配置的一部分 —— 用 `!profile <name>` 切换,或直接改 profiles.json。',
335
+ // --- mode / backend / model / skills / agent ---
336
+ 'cmd.mode.current': '本频道网关路由:*${mode}*。用 `!mode <route>` 修改。',
337
+ 'cmd.mode.set': '网关路由已设为 *${mode}*。',
338
+ 'cmd.mode.invalid': '未知路由 *${mode}*。可用:${routes}。',
342
339
  'cmd.mode.apiLabel': 'API',
343
340
  'cmd.mode.planLabel': 'Plan',
344
341
  'cmd.backend.claudeLabel': 'Claude Code',
345
342
  'cmd.backend.piLabel': 'PI',
346
- 'cmd.model.current': '本频道模型:*${model}*(配置 *${profile}*)',
347
- 'cmd.model.overridden': '本频道模型:*${model}* —— 覆盖了配置 *${profile}*(*${profileModel}*)。`!model reset` 可恢复。',
348
- 'cmd.model.usage': '用法:`!model <model-name>` · `!model reset`',
349
- 'cmd.model.set': '本频道模型已设为 *${model}*(覆盖配置 *${profile}*),下一条消息生效。',
350
- 'cmd.model.cleared': '已清除模型覆盖 —— 本频道回到配置 *${profile}*(*${model}*)。',
351
- 'cmd.model.noOverride': '本频道没有模型覆盖,当前使用配置 *${profile}*(*${model}*)。',
343
+ 'cmd.model.current': '本频道模型:*${model}*',
344
+ 'cmd.model.usage': '用法:`!model [provider/]model` · `!model reset`',
345
+ 'cmd.model.set': '本频道模型已设为 *${model}*,下一条消息生效。',
346
+ 'cmd.model.cleared': '已恢复默认模型:*${model}*。',
347
+ 'cmd.model.favorites': '*收藏模型*',
348
+ 'cmd.model.noFavorites': '尚无收藏模型。请在设置 → 模型中添加。',
352
349
  'cmd.thinking.none': '后端默认值',
353
- 'cmd.thinking.current': '本频道思考档位:*${thinking}*(配置 *${profile}*)',
354
- 'cmd.thinking.overridden': '本频道思考档位:*${thinking}* —— 覆盖了配置 *${profile}*(*${profileThinking}*)。`!thinking reset` 可恢复。',
355
- 'cmd.thinking.set': '本频道思考档位已设为 *${thinking}*(覆盖配置 *${profile}*),下一条消息生效。',
356
- 'cmd.thinking.cleared': '思考档位覆盖已清除 —— 本频道回到配置 *${profile}*(*${thinking}*)。',
357
- 'cmd.thinking.noOverride': '本频道没有思考档位覆盖,当前使用配置 *${profile}*(*${thinking}*)。',
350
+ 'cmd.thinking.current': '本频道思考档位:*${thinking}*',
351
+ 'cmd.thinking.set': '思考档位已设为 *${thinking}*,下一条消息生效。',
352
+ 'cmd.thinking.cleared': '思考档位已恢复为后端默认值。',
358
353
  'cmd.thinking.invalid': '*${thinking}* 不是 ${backend} 的思考档位。可用:${levels}。',
359
354
  'cmd.backend.usage': '用法:`!backend claude` · `!backend pi`',
360
- 'cmd.backend.noProfile': 'profiles.json 里没有使用 *${backend}* 后端的配置 —— 请添加一个,或设置 `defaultProfileByBackend`。',
361
- 'cmd.backend.already': '本频道已经在 *${backend}* 上(配置 *${profile}*)。',
362
- 'cmd.profile.channelSet': '频道配置已设为 *${name}*',
363
- 'cmd.profile.crossBackendBlocked': '无法切换到 *${name}* —— 它使用 `${target}` backend,而当前对话在 `${current}` 上。对话进行中不能切换 backend。请开启新会话(`!new`)后再切换。',
364
- 'cmd.profile.channelHeader': '频道配置:*${effective}*(全局:${global})',
365
- 'cmd.profile.activeHeader': '当前配置:*${effective}*',
366
- 'cmd.profile.markerDefault': '默认',
367
- 'cmd.profile.markerGlobal': '全局',
368
- 'cmd.profile.markerChannel': '频道',
369
- 'cmd.profile.cleared': '频道配置已清除,使用全局:*${name}*',
370
- 'cmd.profile.globalUsage': '用法:`!profile global <name>`',
371
- 'cmd.profile.globalSet': '全局配置已设为 *${name}*',
355
+ 'cmd.backend.noFavorite': '默认模型和收藏中均无 *${backend}* 模型,请先收藏该后端的模型。',
356
+ 'cmd.backend.already': '本频道已经在 *${backend}* 上(*${model}*)。',
357
+ 'cmd.selection.channelSet': '频道引擎已设为 *${name}*',
358
+ 'cmd.selection.crossBackendBlocked': '无法切换到 *${name}*:它使用 `${target}`,当前对话在 `${current}` 上。请开启新会话(`!new`)后切换后端。',
359
+ 'cmd.selection.channelHeader': '频道引擎:*${effective}*(默认:${global})',
360
+ 'cmd.selection.activeHeader': '当前引擎:*${effective}*',
361
+ 'cmd.selection.markerDefault': '默认',
362
+ 'cmd.selection.markerChannel': '频道',
372
363
  'cmd.skills.none': '未找到技能。',
373
364
  'cmd.skills.header': '*可用技能*',
374
365
  'cmd.agent.defaultSet': '默认 agent 已设为 *${name}*(${detail})',
375
366
  'cmd.agent.disabled': '默认 agent 已禁用。',
376
367
  'cmd.agent.unknown': '未知 agent:`${name}`\n可用:${available}',
377
368
  'cmd.agent.channelSet': '本对话的 agent 已设为 *${name}*(${detail}),下一条消息生效。',
378
- 'cmd.agent.crossBackendBlocked': '无法切换到 *${name}* —— 它钉死的配置使用 `${target}` backend,而当前对话在 `${current}` 上。对话进行中不能切换 backend。请开启新会话(`!new`)后再切换。',
379
369
  'cmd.agent.channelHeader': '本对话的 agent:*${name}*(${detail})',
380
370
  'cmd.agent.followingGlobal': '本对话跟随全局默认:*${name}*',
381
371
  'cmd.agent.followingGlobalNone': '本对话跟随全局默认,而全局未设置(使用 `main`)。',
@@ -434,12 +424,12 @@ export const commandsZh = {
434
424
  'cmd.sendfile.usage': '用法:`!sendFile <machine> <path>`\n路径可为绝对路径、相对于 Cortex 根目录的路径,或以 `~` 开头',
435
425
  'cmd.sendfile.unknownMachine': '未知机器:`${machine}`。已知:${known}',
436
426
  // --- session ---
437
- 'cmd.session.newConversation': '--- 新对话 ---(配置:${profile})',
427
+ 'cmd.session.newConversation': '--- 新对话 ---(${selection})',
438
428
  'cmd.session.notFound': '未找到会话 `${name}`。',
439
- 'cmd.session.switched': '已切换到会话 `${name}`${profileNote}',
429
+ 'cmd.session.switched': '已切换到会话 `${name}`${selectionNote}',
440
430
  'cmd.session.notFoundList': '未找到会话 `${name}`。请使用完整 ID 或至少 6 位的唯一前缀;运行 `!resume` 列出会话。',
441
431
  'cmd.session.ambiguous': '会话前缀 `${name}` 匹配多个会话:${matches}。请使用更长的前缀或完整 ID。',
442
- 'cmd.session.profileNote': '(配置:${profile})',
432
+ 'cmd.session.selectionNote': '(${selection})',
443
433
  'cmd.session.noSessions': '尚无记录的会话。',
444
434
  'cmd.session.recentHeader': '*最近会话*',
445
435
  'cmd.session.activeTag': ' *(活动)*',
@@ -535,11 +525,10 @@ export const commandsZh = {
535
525
  'cmd.help.session.cancel': '`!cancel [executionId|--all]` — 停止当前运行、按 id 停止某次运行,或停止此处全部运行',
536
526
  'cmd.help.session.compact': '`!compact` — 在会话空闲时压缩活动上下文',
537
527
  'cmd.help.session.resume': '`!resume [cortex-XXXX]` — 列出最近会话,或切换到某个会话',
538
- 'cmd.help.config.mode': '`!mode` — 显示本频道的 API / Plan 路由(由其配置决定)',
539
- 'cmd.help.config.backend': '`!backend [claude|pi]` — 把本频道切到该后端的默认配置',
528
+ 'cmd.help.config.mode': '`!mode [route]` — 查看或设置本频道网关路由',
529
+ 'cmd.help.config.backend': '`!backend [claude|pi]` — 选择该后端的默认模型',
540
530
  'cmd.help.config.model': '`!model [name|reset]` — 显示、覆盖或恢复本频道的模型',
541
531
  'cmd.help.config.thinking': '`!thinking [档位|reset]` — 显示、覆盖或恢复本频道的思考档位',
542
- 'cmd.help.config.profile': '`!profile [name]` — 显示当前配置或切换到某个配置',
543
532
  'cmd.help.config.skills': '`!skills` — 列出可用技能',
544
533
  'cmd.help.monitoring.cost': '`!cost [project]` — 显示成本汇总(全局或按项目)',
545
534
  'cmd.help.monitoring.usage': '`!usage [provider]` — 显示供应商配额和消费额',
@@ -575,6 +564,7 @@ export const commandsZh = {
575
564
  'cmd.usage.window.sevenDay': '7 天',
576
565
  'cmd.usage.window.sevenDayOpus': '7 天 Opus',
577
566
  'cmd.usage.window.sevenDayOverage': '7 天(含超额)',
567
+ 'cmd.usage.window.sevenDayModel': '7 天(${model})',
578
568
  'cmd.usage.window.codexPrimary': '主要窗口',
579
569
  'cmd.usage.window.codexSecondary': '次要窗口',
580
570
  'cmd.usage.windowLine': '• ${label}:${utilization}${reset}',
@@ -34,7 +34,7 @@ export declare const initEn: {
34
34
  readonly 'init.auth.login': 'Login / install and login Claude Code';
35
35
  readonly 'init.auth.rescan': 'Rescan credentials';
36
36
  readonly 'init.auth.skip': 'Configure later (Agent may be unavailable)';
37
- readonly 'init.auth.saved': 'Credentials saved. Gateway/profile setup follows; no inference request was made.';
37
+ readonly 'init.auth.saved': 'Credentials saved. Gateway/model setup follows; no inference request was made.';
38
38
  readonly 'init.auth.piFirst': 'PI is bundled. Add providers or install Claude Code in the login step.';
39
39
  readonly 'init.clipboard.prompt': '\nPress "c" to copy manifest to clipboard (any other key to skip)...';
40
40
  readonly 'init.clipboard.copied': 'Manifest copied to clipboard!';
@@ -119,31 +119,21 @@ export declare const initEn: {
119
119
  readonly 'usageSharing.issue.name-required': 'A name is required to join the leaderboard.';
120
120
  readonly 'usageSharing.issue.email-invalid': 'A valid email is required to join the leaderboard.';
121
121
  readonly 'init.serviceRegister.prompt': 'Register Cortex as a system service (auto-start on boot)?';
122
- readonly 'init.gatewaySetup.overwritePrompt': 'Existing `plan` or `execute` profile detected. Overwrite with a new selection?';
123
- readonly 'init.gatewaySetup.planPrompt': 'Pick model for the `plan` profile (used by executor agents — planner, doc-writer, coder, etc.):';
124
- readonly 'init.gatewaySetup.executePrompt': 'Pick model for the `execute` profile (used by reviewer agents — reviewer, doc-reviewer, coder-reviewer, etc.):';
125
- readonly 'init.gatewaySetup.planFallbackPrompt': 'Pick fallback models for `plan` (in order, space to toggle, enter to confirm, leave empty for no fallback):';
126
- readonly 'init.gatewaySetup.executeFallbackPrompt': 'Pick fallback models for `execute` (in order, space to toggle, enter to confirm, leave empty for no fallback):';
127
- readonly 'init.gatewaySetup.extraProfilesPrompt': 'Pick additional models to register as standalone profiles (profile name = model name, space to toggle, enter to confirm, leave empty to skip):';
122
+ readonly 'init.telemetry.prompt': 'Send anonymous usage and crash statistics to help improve Cortex? (never your prompts, files or names; can be turned off in Settings)';
123
+ readonly 'init.gatewaySetup.overwritePrompt': 'An existing default model was found. Replace it with a new selection?';
124
+ readonly 'init.gatewaySetup.defaultPrompt': 'Pick the default model:';
125
+ readonly 'init.gatewaySetup.favoritesPrompt': 'Pick favorite models (space to toggle; the default model is always included):';
128
126
  readonly 'init.gatewaySetup.noBackends': 'No backends discovered. Make sure you have logged into Claude Code and/or PI first.';
129
127
  readonly 'init.gatewaySetup.rerunHint': 'You can re-run detection later with: cortex setup-gateway';
130
128
  readonly 'init.gatewaySetup.discovered': 'Discovered ${count} endpoint modes:\n${summary}';
131
129
  readonly 'init.gatewaySetup.gatewayWritten': 'Gateway config written to ${path}';
132
130
  readonly 'init.gatewaySetup.preservedModes': 'Preserved ${count} existing gateway mode(s) that discovery did not report: ${list}';
133
131
  readonly 'init.gatewaySetup.preservedModesHint': 'If these should have been auto-detected, check `cortex auth status`, log the provider in, and re-run.';
134
- readonly 'init.gatewaySetup.profilesWritten': 'Profiles written to ${path}';
135
- readonly 'init.gatewaySetup.generatedProfiles': 'Generated profiles: ${names} (default: ${default})';
136
- readonly 'init.gatewaySetup.profileIssues': '${count} profile(s) reference a gateway mode that is not configured:\n${lines}';
137
- readonly 'init.gatewaySetup.profileIssuesHint': 'These would fail at runtime with "Unknown mode". Add the mode to gateway.yaml or fix the profile.';
132
+ readonly 'init.gatewaySetup.modelsWritten': 'Models written to ${path}';
133
+ readonly 'init.gatewaySetup.generatedModels': 'Favorite models: ${names} (default: ${default})';
134
+ readonly 'init.gatewaySetup.modelIssues': '${count} model selection(s) lack a configured gateway route:\n${lines}';
135
+ readonly 'init.gatewaySetup.modelIssuesHint': 'Add the route to gateway.yaml or update the model selection.';
138
136
  readonly 'init.localUi.enabled': 'Local Web UI endpoint enabled at ${url}';
139
- readonly 'init.gatewayProfile.note': string;
140
- readonly 'init.gatewayProfile.noteTitle': 'Gateway & Profile Setup';
141
- readonly 'init.gatewayProfile.readyPrompt': 'Have you logged in and are ready to auto-detect?';
142
- readonly 'init.gatewayProfile.loginNow': 'Please log in now. Once done, come back and select "Yes".\n${loginHints}';
143
- readonly 'init.gatewayProfile.actionPrompt': 'What would you like to do?';
144
- readonly 'init.gatewayProfile.retryLabel': "I've logged in, retry detection";
145
- readonly 'init.gatewayProfile.skipLabel': 'Skip for now (run `cortex setup-gateway` later)';
146
- readonly 'init.gatewayProfile.skipped': 'Skipped. Run `cortex setup-gateway` later to auto-configure.';
147
137
  readonly 'init.outro': 'Cortex initialized at ${dataDir}. Run `cortex daemon` to launch.';
148
138
  readonly 'init.git.optional': 'Git is unavailable; continuing without version history. Install Git separately if you need it.';
149
139
  readonly 'init.git.required': 'Git is required but was not found on your system.';
@@ -36,7 +36,7 @@ export const initEn = {
36
36
  'init.auth.login': 'Login / install and login Claude Code',
37
37
  'init.auth.rescan': 'Rescan credentials',
38
38
  'init.auth.skip': 'Configure later (Agent may be unavailable)',
39
- 'init.auth.saved': 'Credentials saved. Gateway/profile setup follows; no inference request was made.',
39
+ 'init.auth.saved': 'Credentials saved. Gateway/model setup follows; no inference request was made.',
40
40
  'init.auth.piFirst': 'PI is bundled. Add providers or install Claude Code in the login step.',
41
41
  // ── Clipboard / manifest copy prompt ──
42
42
  'init.clipboard.prompt': '\nPress "c" to copy manifest to clipboard (any other key to skip)...',
@@ -178,40 +178,23 @@ export const initEn = {
178
178
  'usageSharing.issue.email-invalid': 'A valid email is required to join the leaderboard.',
179
179
  // ── Service registration prompt ──
180
180
  'init.serviceRegister.prompt': 'Register Cortex as a system service (auto-start on boot)?',
181
- // ── Gateway & profile auto-setup ──
182
- 'init.gatewaySetup.overwritePrompt': 'Existing `plan` or `execute` profile detected. Overwrite with a new selection?',
183
- 'init.gatewaySetup.planPrompt': 'Pick model for the `plan` profile (used by executor agents — planner, doc-writer, coder, etc.):',
184
- 'init.gatewaySetup.executePrompt': 'Pick model for the `execute` profile (used by reviewer agents — reviewer, doc-reviewer, coder-reviewer, etc.):',
185
- 'init.gatewaySetup.planFallbackPrompt': 'Pick fallback models for `plan` (in order, space to toggle, enter to confirm, leave empty for no fallback):',
186
- 'init.gatewaySetup.executeFallbackPrompt': 'Pick fallback models for `execute` (in order, space to toggle, enter to confirm, leave empty for no fallback):',
187
- 'init.gatewaySetup.extraProfilesPrompt': 'Pick additional models to register as standalone profiles (profile name = model name, space to toggle, enter to confirm, leave empty to skip):',
181
+ 'init.telemetry.prompt': 'Send anonymous usage and crash statistics to help improve Cortex? (never your prompts, files or names; can be turned off in Settings)',
182
+ // ── Gateway & model auto-setup ──
183
+ 'init.gatewaySetup.overwritePrompt': 'An existing default model was found. Replace it with a new selection?',
184
+ 'init.gatewaySetup.defaultPrompt': 'Pick the default model:',
185
+ 'init.gatewaySetup.favoritesPrompt': 'Pick favorite models (space to toggle; the default model is always included):',
188
186
  'init.gatewaySetup.noBackends': 'No backends discovered. Make sure you have logged into Claude Code and/or PI first.',
189
187
  'init.gatewaySetup.rerunHint': 'You can re-run detection later with: cortex setup-gateway',
190
188
  'init.gatewaySetup.discovered': 'Discovered ${count} endpoint modes:\n${summary}',
191
189
  'init.gatewaySetup.gatewayWritten': 'Gateway config written to ${path}',
192
190
  'init.gatewaySetup.preservedModes': 'Preserved ${count} existing gateway mode(s) that discovery did not report: ${list}',
193
191
  'init.gatewaySetup.preservedModesHint': 'If these should have been auto-detected, check `cortex auth status`, log the provider in, and re-run.',
194
- 'init.gatewaySetup.profilesWritten': 'Profiles written to ${path}',
195
- 'init.gatewaySetup.generatedProfiles': 'Generated profiles: ${names} (default: ${default})',
196
- 'init.gatewaySetup.profileIssues': '${count} profile(s) reference a gateway mode that is not configured:\n${lines}',
197
- 'init.gatewaySetup.profileIssuesHint': 'These would fail at runtime with "Unknown mode". Add the mode to gateway.yaml or fix the profile.',
192
+ 'init.gatewaySetup.modelsWritten': 'Models written to ${path}',
193
+ 'init.gatewaySetup.generatedModels': 'Favorite models: ${names} (default: ${default})',
194
+ 'init.gatewaySetup.modelIssues': '${count} model selection(s) lack a configured gateway route:\n${lines}',
195
+ 'init.gatewaySetup.modelIssuesHint': 'Add the route to gateway.yaml or update the model selection.',
198
196
  // ── Local Web UI endpoint (desktop app setup) ──
199
197
  'init.localUi.enabled': 'Local Web UI endpoint enabled at ${url}',
200
- // ── Gateway & profile setup note + readiness loop ──
201
- 'init.gatewayProfile.note': [
202
- 'Cortex can auto-detect your Claude Code and PI configurations',
203
- 'to generate gateway.yaml and profiles.json automatically.',
204
- '',
205
- 'Make sure you have logged into:',
206
- '${loginHints}',
207
- ].join('\n'),
208
- 'init.gatewayProfile.noteTitle': 'Gateway & Profile Setup',
209
- 'init.gatewayProfile.readyPrompt': 'Have you logged in and are ready to auto-detect?',
210
- 'init.gatewayProfile.loginNow': 'Please log in now. Once done, come back and select "Yes".\n${loginHints}',
211
- 'init.gatewayProfile.actionPrompt': 'What would you like to do?',
212
- 'init.gatewayProfile.retryLabel': "I've logged in, retry detection",
213
- 'init.gatewayProfile.skipLabel': 'Skip for now (run `cortex setup-gateway` later)',
214
- 'init.gatewayProfile.skipped': 'Skipped. Run `cortex setup-gateway` later to auto-configure.',
215
198
  // ── Outro ──
216
199
  'init.outro': 'Cortex initialized at ${dataDir}. Run `cortex daemon` to launch.',
217
200
  // ── Git ──
@@ -410,40 +393,23 @@ export const initZh = {
410
393
  'usageSharing.issue.email-invalid': '加入排行榜需要填写有效的邮箱。',
411
394
  // ── Service registration prompt ──
412
395
  'init.serviceRegister.prompt': '将 Cortex 注册为系统服务(开机自启)?',
413
- // ── Gateway & profile auto-setup ──
414
- 'init.gatewaySetup.overwritePrompt': '检测到已有的 `plan` 或 `execute` 配置。是否用新的选择覆盖?',
415
- 'init.gatewaySetup.planPrompt': '为 `plan` 配置选择模型(由执行类代理使用 —— planner、doc-writer、coder 等):',
416
- 'init.gatewaySetup.executePrompt': '为 `execute` 配置选择模型(由审查类代理使用 —— reviewer、doc-reviewer、coder-reviewer 等):',
417
- 'init.gatewaySetup.planFallbackPrompt': '为 `plan` 选择回退模型(按顺序,空格切换,回车确认,留空表示无回退):',
418
- 'init.gatewaySetup.executeFallbackPrompt': '为 `execute` 选择回退模型(按顺序,空格切换,回车确认,留空表示无回退):',
419
- 'init.gatewaySetup.extraProfilesPrompt': '选择要注册为独立配置的其他模型(配置名 = 模型名,空格切换,回车确认,留空跳过):',
396
+ 'init.telemetry.prompt': '发送匿名使用与崩溃统计,帮助改进 Cortex?(不含对话、文件或名称;可随时在设置中关闭)',
397
+ // ── Gateway & model auto-setup ──
398
+ 'init.gatewaySetup.overwritePrompt': '检测到已有默认模型,是否用新的选择替换?',
399
+ 'init.gatewaySetup.defaultPrompt': '选择默认模型:',
400
+ 'init.gatewaySetup.favoritesPrompt': '选择收藏模型(空格切换;默认模型始终包含在内):',
420
401
  'init.gatewaySetup.noBackends': '未发现任何后端。请确保你已先登录 Claude Code 和/或 PI。',
421
402
  'init.gatewaySetup.rerunHint': '你可以稍后用以下命令重新检测:cortex setup-gateway',
422
403
  'init.gatewaySetup.discovered': '发现 ${count} 个端点模式:\n${summary}',
423
404
  'init.gatewaySetup.gatewayWritten': '网关配置已写入 ${path}',
424
405
  'init.gatewaySetup.preservedModes': '保留了 ${count} 个发现过程未报告的现有网关模式:${list}',
425
406
  'init.gatewaySetup.preservedModesHint': '如果这些本应被自动检测到,请检查 `cortex auth status`、登录对应 provider 后重新运行。',
426
- 'init.gatewaySetup.profilesWritten': '配置已写入 ${path}',
427
- 'init.gatewaySetup.generatedProfiles': '已生成配置:${names}(默认:${default})',
428
- 'init.gatewaySetup.profileIssues': '${count} 个配置引用了未配置的网关模式:\n${lines}',
429
- 'init.gatewaySetup.profileIssuesHint': '这些在运行时会因 "Unknown mode" 而失败。请将该模式添加到 gateway.yaml,或修正该配置。',
407
+ 'init.gatewaySetup.modelsWritten': '模型配置已写入 ${path}',
408
+ 'init.gatewaySetup.generatedModels': '收藏模型:${names}(默认:${default})',
409
+ 'init.gatewaySetup.modelIssues': '${count} 个模型选择缺少已配置的网关路由:\n${lines}',
410
+ 'init.gatewaySetup.modelIssuesHint': '请将路由添加到 gateway.yaml,或更新模型选择。',
430
411
  // ── Local Web UI endpoint (desktop app setup) ──
431
412
  'init.localUi.enabled': '本机 Web UI 端点已启用:${url}',
432
- // ── Gateway & profile setup note + readiness loop ──
433
- 'init.gatewayProfile.note': [
434
- 'Cortex 可以自动检测你的 Claude Code 和 PI 配置,',
435
- '以自动生成 gateway.yaml 和 profiles.json。',
436
- '',
437
- '请确保你已登录:',
438
- '${loginHints}',
439
- ].join('\n'),
440
- 'init.gatewayProfile.noteTitle': 'Gateway 与 Profile 设置',
441
- 'init.gatewayProfile.readyPrompt': '你是否已登录并准备好自动检测?',
442
- 'init.gatewayProfile.loginNow': '请现在登录。完成后回来选择 "Yes"。\n${loginHints}',
443
- 'init.gatewayProfile.actionPrompt': '你想做什么?',
444
- 'init.gatewayProfile.retryLabel': '我已登录,重试检测',
445
- 'init.gatewayProfile.skipLabel': '暂时跳过(稍后运行 `cortex setup-gateway`)',
446
- 'init.gatewayProfile.skipped': '已跳过。稍后运行 `cortex setup-gateway` 自动配置。',
447
413
  // ── Outro ──
448
414
  'init.outro': 'Cortex 已在 ${dataDir} 初始化。运行 `cortex daemon` 启动。',
449
415
  // ── Git ──
@@ -8,9 +8,9 @@ export declare const interactionsEn: {
8
8
  readonly 'interaction.planFeedbackSent': 'Plan feedback sent — Cortex will revise.\n> ${feedback}';
9
9
  readonly 'interaction.noSpecificFeedback': 'No specific feedback';
10
10
  readonly 'interaction.cancelledPreserved': 'Cancelled. Session preserved — next message will resume.';
11
- readonly 'interaction.sessionActive': 'Session `${sessionId}` active — send your message below.${profileNote}';
12
- readonly 'interaction.sessionProfileNote': ' (profile: ${profileName})';
13
- readonly 'interaction.newConversation': '--- new conversation --- (profile: ${profileName})';
11
+ readonly 'interaction.sessionActive': 'Session `${sessionId}` active — send your message below.${selectionNote}';
12
+ readonly 'interaction.sessionSelectionNote': ' (${selection})';
13
+ readonly 'interaction.newConversation': '--- new conversation --- (${selection})';
14
14
  readonly 'update.installing': 'Installing @cortex-agent/server@${version}... daemon will restart shortly.';
15
15
  readonly 'update.skipped': 'Skipped version ${version}.';
16
16
  readonly 'update.cancelled': 'Update cancelled. Will check again at next interval.';
@@ -10,9 +10,9 @@ export const interactionsEn = {
10
10
  'interaction.planFeedbackSent': 'Plan feedback sent — Cortex will revise.\n> ${feedback}',
11
11
  'interaction.noSpecificFeedback': 'No specific feedback',
12
12
  'interaction.cancelledPreserved': 'Cancelled. Session preserved — next message will resume.',
13
- 'interaction.sessionActive': 'Session `${sessionId}` active — send your message below.${profileNote}',
14
- 'interaction.sessionProfileNote': ' (profile: ${profileName})',
15
- 'interaction.newConversation': '--- new conversation --- (profile: ${profileName})',
13
+ 'interaction.sessionActive': 'Session `${sessionId}` active — send your message below.${selectionNote}',
14
+ 'interaction.sessionSelectionNote': ' (${selection})',
15
+ 'interaction.newConversation': '--- new conversation --- (${selection})',
16
16
  // --- update-prompt.ts ---
17
17
  'update.installing': 'Installing @cortex-agent/server@${version}... daemon will restart shortly.',
18
18
  'update.skipped': 'Skipped version ${version}.',
@@ -59,9 +59,9 @@ export const interactionsZh = {
59
59
  'interaction.planFeedbackSent': '计划反馈已发送 — Cortex 将进行修订。\n> ${feedback}',
60
60
  'interaction.noSpecificFeedback': '没有具体反馈',
61
61
  'interaction.cancelledPreserved': '已取消。会话已保留 — 下一条消息将继续。',
62
- 'interaction.sessionActive': '会话 `${sessionId}` 已激活 — 请在下方发送你的消息。${profileNote}',
63
- 'interaction.sessionProfileNote': '(配置:${profileName})',
64
- 'interaction.newConversation': '--- 新会话 ---(配置:${profileName})',
62
+ 'interaction.sessionActive': '会话 `${sessionId}` 已激活 — 请在下方发送你的消息。${selectionNote}',
63
+ 'interaction.sessionSelectionNote': '(${selection})',
64
+ 'interaction.newConversation': '--- 新会话 ---(${selection})',
65
65
  // --- update-prompt.ts ---
66
66
  'update.installing': '正在安装 @cortex-agent/server@${version}……守护进程稍后将重启。',
67
67
  'update.skipped': '已跳过版本 ${version}。',
@@ -1,7 +1,7 @@
1
1
  export declare const noticesEn: {
2
2
  readonly 'notice.admin.autoRegistered': 'This DM has been auto-registered as the Cortex admin channel. `${setting}=${channel}` has been written to `settings.json`. System notifications (startup, rate-limit, disk alerts) will be sent here.';
3
3
  readonly 'notice.cancel.nothingRunning': 'Nothing running to cancel.';
4
- readonly 'notice.profile.unknown': 'Unknown profile: ${name}';
4
+ readonly 'notice.selection.unknown': 'Unknown model selection: ${name}';
5
5
  readonly 'notice.cost.title': 'Cost Report';
6
6
  readonly 'notice.cost.titleProject': 'Cost Report (project: ${project})';
7
7
  readonly 'notice.cost.scopeProject': 'per-project limits';
@@ -29,8 +29,6 @@ export declare const noticesEn: {
29
29
  readonly 'notice.plan.approvalCard': 'Plan approval';
30
30
  readonly 'notice.plan.noContent': 'Plan generated but no content found.';
31
31
  readonly 'notice.plan.generated': 'Generated plan — use the buttons below to approve or provide feedback:';
32
- readonly 'notice.fallback.rateLimited': '${from} rate limited, falling back to ${to}...';
33
- readonly 'notice.fallback.transportError': 'Could not reach ${from}, falling back to ${to}...';
34
32
  readonly 'notice.unknownError': 'Unknown error';
35
33
  readonly 'notice.schedule.error': 'Scheduled task error: ${error}';
36
34
  readonly 'notice.schedule.overdue': 'Schedule ${id} skipped (${seconds}s overdue): ${message}';
@@ -3,7 +3,7 @@
3
3
  export const noticesEn = {
4
4
  'notice.admin.autoRegistered': 'This DM has been auto-registered as the Cortex admin channel. `${setting}=${channel}` has been written to `settings.json`. System notifications (startup, rate-limit, disk alerts) will be sent here.',
5
5
  'notice.cancel.nothingRunning': 'Nothing running to cancel.',
6
- 'notice.profile.unknown': 'Unknown profile: ${name}',
6
+ 'notice.selection.unknown': 'Unknown model selection: ${name}',
7
7
  'notice.cost.title': 'Cost Report',
8
8
  'notice.cost.titleProject': 'Cost Report (project: ${project})',
9
9
  'notice.cost.scopeProject': 'per-project limits',
@@ -31,8 +31,6 @@ export const noticesEn = {
31
31
  'notice.plan.approvalCard': 'Plan approval',
32
32
  'notice.plan.noContent': 'Plan generated but no content found.',
33
33
  'notice.plan.generated': 'Generated plan — use the buttons below to approve or provide feedback:',
34
- 'notice.fallback.rateLimited': '${from} rate limited, falling back to ${to}...',
35
- 'notice.fallback.transportError': 'Could not reach ${from}, falling back to ${to}...',
36
34
  'notice.unknownError': 'Unknown error',
37
35
  'notice.schedule.error': 'Scheduled task error: ${error}',
38
36
  'notice.schedule.overdue': 'Schedule ${id} skipped (${seconds}s overdue): ${message}',
@@ -82,7 +80,7 @@ export const noticesEn = {
82
80
  export const noticesZh = {
83
81
  'notice.admin.autoRegistered': '此私聊已自动注册为 Cortex 管理频道,`${setting}=${channel}` 已写入 `settings.json`。系统通知(启动、限流、磁盘告警)将发送到这里。',
84
82
  'notice.cancel.nothingRunning': '当前没有正在运行的任务可取消。',
85
- 'notice.profile.unknown': '未知的配置:${name}',
83
+ 'notice.selection.unknown': '未知的模型选择:${name}',
86
84
  'notice.cost.title': '费用报告',
87
85
  'notice.cost.titleProject': '费用报告(项目:${project})',
88
86
  'notice.cost.scopeProject': '项目独立限额',
@@ -110,8 +108,6 @@ export const noticesZh = {
110
108
  'notice.plan.approvalCard': '计划审批',
111
109
  'notice.plan.noContent': '计划已生成,但未找到内容。',
112
110
  'notice.plan.generated': '计划已生成,请使用下方按钮批准或提供反馈:',
113
- 'notice.fallback.rateLimited': '${from} 触发限流,正在切换到 ${to}……',
114
- 'notice.fallback.transportError': '无法连接 ${from},正在切换到 ${to}……',
115
111
  'notice.unknownError': '未知错误',
116
112
  'notice.schedule.error': '定时任务出错:${error}',
117
113
  'notice.schedule.overdue': '定时任务 ${id} 已跳过(逾期 ${seconds} 秒):${message}',
@@ -1,14 +1,14 @@
1
1
  export declare const schedulingEn: {
2
2
  readonly 'schedule.help.title': '*Schedule commands:*';
3
- readonly 'schedule.help.addInterval': '`!schedule add interval <duration> [--profile <name>] <message>` — repeat every duration (e.g. `30m`, `2h`, `1d`)';
4
- readonly 'schedule.help.addDaily': '`!schedule add daily <HH:MM> [--profile <name>] <message>` — run every day at a fixed time (24-hour)';
5
- readonly 'schedule.help.addWeekly': '`!schedule add weekly <day> <HH:MM> [--profile <name>] <message>` — run every week (day: mon,tue,wed,thu,fri,sat,sun)';
6
- readonly 'schedule.help.addOnce': '`!schedule add once <duration> [--profile <name>] <message>` — run once after a delay';
3
+ readonly 'schedule.help.addInterval': '`!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>` — repeat every duration (e.g. `30m`, `2h`, `1d`)';
4
+ readonly 'schedule.help.addDaily': '`!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>` — run every day at a fixed time (24-hour)';
5
+ readonly 'schedule.help.addWeekly': '`!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>` — run every week (day: mon,tue,wed,thu,fri,sat,sun)';
6
+ readonly 'schedule.help.addOnce': '`!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>` — run once after a delay';
7
7
  readonly 'schedule.help.list': '`!schedule list` — show all scheduled tasks';
8
8
  readonly 'schedule.help.pause': '`!schedule pause <id>` — pause a recurring task';
9
9
  readonly 'schedule.help.resume': '`!schedule resume <id>` — resume a paused recurring task';
10
10
  readonly 'schedule.help.remove': '`!schedule remove <id>` — remove a task by id';
11
- readonly 'schedule.help.availableProfiles': 'Available profiles: ${profileNames}';
11
+ readonly 'schedule.help.availableModels': 'Favorite models: ${modelNames}';
12
12
  readonly 'schedule.remove.usage': 'Usage: `!schedule remove <id>`';
13
13
  readonly 'schedule.remove.ok': 'Removed task `${id}`.';
14
14
  readonly 'schedule.taskNotFound': 'Task not found: `${id}`';
@@ -20,10 +20,10 @@ export declare const schedulingEn: {
20
20
  readonly 'schedule.invalidDuration': 'Invalid duration: `${duration}`. Use e.g. `30s`, `5m`, `2h`, `1d`';
21
21
  readonly 'schedule.invalidTime': 'Invalid time: `${time}`. Use 24-hour HH:MM, e.g. `${example}`';
22
22
  readonly 'schedule.invalidDay': 'Invalid day: `${day}`. Use: mon, tue, wed, thu, fri, sat, sun';
23
- readonly 'schedule.add.intervalUsage': 'Usage: `!schedule add interval <duration> [--profile <name>] <message>`';
24
- readonly 'schedule.add.dailyUsage': 'Usage: `!schedule add daily <HH:MM> [--profile <name>] <message>`';
25
- readonly 'schedule.add.weeklyUsage': 'Usage: `!schedule add weekly <day> <HH:MM> [--profile <name>] <message>`';
26
- readonly 'schedule.add.onceUsage': 'Usage: `!schedule add once <duration> [--profile <name>] <message>`';
23
+ readonly 'schedule.add.intervalUsage': 'Usage: `!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>`';
24
+ readonly 'schedule.add.dailyUsage': 'Usage: `!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>`';
25
+ readonly 'schedule.add.weeklyUsage': 'Usage: `!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>`';
26
+ readonly 'schedule.add.onceUsage': 'Usage: `!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>`';
27
27
  readonly 'schedule.add.scheduledInterval': 'Scheduled every *${duration}*: "${message}"';
28
28
  readonly 'schedule.add.scheduledDaily': 'Scheduled daily at *${time}*: "${message}"';
29
29
  readonly 'schedule.add.scheduledWeekly': 'Scheduled weekly *${day} ${time}*: "${message}"';