@cortex-agent/server 2026.5.25 → 2026.6.15

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 (395) hide show
  1. package/defaults/config/thread-templates.json +28 -1
  2. package/defaults/hooks/cortex-md-injector.mjs +47 -31
  3. package/defaults/hooks/post-task-hook.mjs +6 -0
  4. package/defaults/hooks/task-status-check.mjs +8 -0
  5. package/defaults/mcp-config-slack.json +11 -0
  6. package/defaults/plugins/cortex-stage-gate/skills/task/SKILL.md +18 -0
  7. package/defaults/plugins/cortex-system/skills/schedule/SKILL.md +5 -6
  8. package/defaults/prompts/directives/manager.md +67 -0
  9. package/dist/agent-adapter/claude/adapter-tui.d.ts +35 -3
  10. package/dist/agent-adapter/claude/adapter-tui.js +91 -12
  11. package/dist/agent-adapter/claude/adapter.js +11 -0
  12. package/dist/agent-adapter/claude/defaults.d.ts +30 -0
  13. package/dist/agent-adapter/claude/defaults.js +30 -0
  14. package/dist/agent-adapter/claude/jsonl-tail.d.ts +2 -2
  15. package/dist/agent-adapter/claude/jsonl-tail.js +25 -20
  16. package/dist/agent-adapter/claude/spawn-args.d.ts +11 -0
  17. package/dist/agent-adapter/claude/spawn-args.js +49 -7
  18. package/dist/agent-adapter/claude/tmux-control.d.ts +20 -0
  19. package/dist/agent-adapter/claude/tmux-control.js +54 -8
  20. package/dist/agent-adapter/codex/adapter.js +1 -1
  21. package/dist/agent-adapter/normalize/event-types.d.ts +1 -0
  22. package/dist/agent-adapter/pi/adapter.js +46 -19
  23. package/dist/agent-adapter/pi/agent-dir.d.ts +21 -0
  24. package/dist/agent-adapter/pi/agent-dir.js +53 -2
  25. package/dist/agent-adapter/pi/event-parser.js +13 -1
  26. package/dist/agent-adapter/pi/mcp-bridge.d.ts +12 -0
  27. package/dist/agent-adapter/pi/mcp-bridge.js +47 -9
  28. package/dist/agent-adapter/pi/tool-shims.d.ts +14 -0
  29. package/dist/agent-adapter/pi/tool-shims.js +167 -140
  30. package/dist/agent-adapter/types.d.ts +7 -2
  31. package/dist/core/atomic-write.js +21 -0
  32. package/dist/core/config-generator.d.ts +10 -0
  33. package/dist/core/config-generator.js +28 -0
  34. package/dist/core/gateway-generator.d.ts +77 -7
  35. package/dist/core/gateway-generator.js +323 -30
  36. package/dist/core/i18n.d.ts +19 -0
  37. package/dist/core/i18n.js +46 -0
  38. package/dist/core/icons.d.ts +68 -0
  39. package/dist/core/icons.js +67 -0
  40. package/dist/core/locales/en.d.ts +438 -0
  41. package/dist/core/locales/en.js +24 -0
  42. package/dist/core/locales/slices/commands.d.ts +214 -0
  43. package/dist/core/locales/slices/commands.js +462 -0
  44. package/dist/core/locales/slices/init.d.ts +121 -0
  45. package/dist/core/locales/slices/init.js +380 -0
  46. package/dist/core/locales/slices/interactions.d.ts +47 -0
  47. package/dist/core/locales/slices/interactions.js +102 -0
  48. package/dist/core/locales/slices/lang.d.ts +8 -0
  49. package/dist/core/locales/slices/lang.js +18 -0
  50. package/dist/core/locales/slices/scheduling.d.ts +36 -0
  51. package/dist/core/locales/slices/scheduling.js +74 -0
  52. package/dist/core/locales/slices/startup.d.ts +6 -0
  53. package/dist/core/locales/slices/startup.js +14 -0
  54. package/dist/core/locales/slices/status.d.ts +20 -0
  55. package/dist/core/locales/slices/status.js +48 -0
  56. package/dist/core/locales/zh.d.ts +5 -0
  57. package/dist/core/locales/zh.js +23 -0
  58. package/dist/core/profile-generator.d.ts +6 -0
  59. package/dist/core/profile-generator.js +35 -7
  60. package/dist/core/running-executions.d.ts +51 -41
  61. package/dist/core/running-executions.js +120 -73
  62. package/dist/core/singleton-lock.d.ts +23 -0
  63. package/dist/core/singleton-lock.js +53 -0
  64. package/dist/core/status-format.js +4 -2
  65. package/dist/core/task-parser.d.ts +3 -0
  66. package/dist/core/task-parser.js +3 -1
  67. package/dist/core/types/thread-types.d.ts +54 -8
  68. package/dist/core/utils.d.ts +9 -1
  69. package/dist/core/utils.js +9 -1
  70. package/dist/domain/agents/config.d.ts +2 -1
  71. package/dist/domain/agents/config.js +25 -6
  72. package/dist/domain/agents/facade.d.ts +18 -0
  73. package/dist/domain/agents/facade.js +26 -3
  74. package/dist/domain/agents/profile-manager.d.ts +11 -0
  75. package/dist/domain/agents/profile-manager.js +21 -2
  76. package/dist/domain/costs/codex-usage-monitor.js +2 -1
  77. package/dist/domain/costs/rate-limit-throttle.js +14 -2
  78. package/dist/domain/executions/registry.d.ts +24 -0
  79. package/dist/domain/executions/registry.js +38 -0
  80. package/dist/domain/mcp/core-server.js +15 -3
  81. package/dist/domain/mcp/feishu/bitable.d.ts +3 -0
  82. package/dist/domain/mcp/feishu/bitable.js +168 -0
  83. package/dist/domain/mcp/feishu/block-types.d.ts +44 -0
  84. package/dist/domain/mcp/feishu/block-types.js +127 -0
  85. package/dist/domain/mcp/feishu/blocks-to-text.d.ts +19 -0
  86. package/dist/domain/mcp/feishu/blocks-to-text.js +43 -0
  87. package/dist/domain/mcp/feishu/client.d.ts +46 -0
  88. package/dist/domain/mcp/feishu/client.js +87 -0
  89. package/dist/domain/mcp/feishu/docx.d.ts +3 -0
  90. package/dist/domain/mcp/feishu/docx.js +163 -0
  91. package/dist/domain/mcp/feishu/drive.d.ts +23 -0
  92. package/dist/domain/mcp/feishu/drive.js +66 -0
  93. package/dist/domain/mcp/feishu/file.d.ts +14 -0
  94. package/dist/domain/mcp/feishu/file.js +107 -0
  95. package/dist/domain/mcp/feishu/index.d.ts +6 -0
  96. package/dist/domain/mcp/feishu/index.js +61 -0
  97. package/dist/domain/mcp/feishu/markdown-to-blocks.d.ts +40 -0
  98. package/dist/domain/mcp/feishu/markdown-to-blocks.js +191 -0
  99. package/dist/domain/mcp/feishu/sheets.d.ts +3 -0
  100. package/dist/domain/mcp/feishu/sheets.js +119 -0
  101. package/dist/domain/mcp/feishu/types.d.ts +26 -0
  102. package/dist/domain/mcp/feishu/types.js +38 -0
  103. package/dist/domain/mcp/feishu/user-auth.d.ts +140 -0
  104. package/dist/domain/mcp/feishu/user-auth.js +286 -0
  105. package/dist/domain/mcp/feishu/wiki.d.ts +3 -0
  106. package/dist/domain/mcp/feishu/wiki.js +77 -0
  107. package/dist/domain/mcp/feishu-server.d.ts +2 -0
  108. package/dist/domain/mcp/feishu-server.js +33 -0
  109. package/dist/domain/mcp/server.d.ts +0 -1
  110. package/dist/domain/mcp/server.js +6 -25
  111. package/dist/domain/mcp/slack-server.d.ts +3 -0
  112. package/dist/domain/mcp/slack-server.js +46 -0
  113. package/dist/domain/mcp/tools/context.js +1 -1
  114. package/dist/domain/mcp/tools/schedule.d.ts +1 -1
  115. package/dist/domain/mcp/tools/schedule.js +6 -20
  116. package/dist/domain/mcp/tools/slack.js +20 -7
  117. package/dist/domain/mcp/tools/thread-ops.d.ts +2 -0
  118. package/dist/domain/mcp/tools/thread-ops.js +121 -0
  119. package/dist/domain/mcp/tools/time.d.ts +2 -0
  120. package/dist/domain/mcp/tools/time.js +66 -0
  121. package/dist/domain/mcp/tools/tui-ask.js +1 -1
  122. package/dist/domain/mcp/tools/tui-plan.js +2 -2
  123. package/dist/domain/mcp/tui-server.js +1 -0
  124. package/dist/domain/monitor/disk-monitor.js +2 -1
  125. package/dist/domain/monitor/gpu-monitor.js +2 -1
  126. package/dist/domain/remote/client-hot-reload.js +3 -2
  127. package/dist/domain/remote/client-manager.js +8 -6
  128. package/dist/domain/scheduling/job-registry.d.ts +4 -0
  129. package/dist/domain/scheduling/job-registry.js +1 -0
  130. package/dist/domain/scheduling/jobs/_shared.js +2 -1
  131. package/dist/domain/scheduling/jobs/memory-index-regen.js +3 -2
  132. package/dist/domain/scheduling/jobs/scheduled-task.js +9 -23
  133. package/dist/domain/scheduling/jobs/sync-public.js +4 -3
  134. package/dist/domain/scheduling/jobs/target-dispatch.d.ts +1 -8
  135. package/dist/domain/scheduling/jobs/target-dispatch.js +0 -7
  136. package/dist/domain/scheduling/jobs/task-archive.js +3 -2
  137. package/dist/domain/scheduling/jobs/task-dispatch.js +126 -20
  138. package/dist/domain/scheduling/schedule-command.js +45 -43
  139. package/dist/domain/scheduling/scheduler.d.ts +1 -1
  140. package/dist/domain/scheduling/scheduler.js +2 -1
  141. package/dist/domain/sessions/session-hooks.d.ts +2 -2
  142. package/dist/domain/sessions/session-hooks.js +19 -18
  143. package/dist/domain/sessions/session-lifecycle.d.ts +38 -0
  144. package/dist/domain/sessions/session-lifecycle.js +44 -0
  145. package/dist/domain/system/github-release.d.ts +18 -0
  146. package/dist/domain/system/github-release.js +106 -0
  147. package/dist/domain/system/install-cli.d.ts +7 -0
  148. package/dist/domain/system/install-cli.js +106 -0
  149. package/dist/domain/system/preferences.d.ts +12 -0
  150. package/dist/domain/system/preferences.js +36 -0
  151. package/dist/domain/system/server-update-check.js +2 -2
  152. package/dist/domain/tasks/dispatch-utils.d.ts +58 -1
  153. package/dist/domain/tasks/dispatch-utils.js +53 -4
  154. package/dist/domain/tasks/dispatcher.d.ts +11 -2
  155. package/dist/domain/tasks/dispatcher.js +63 -7
  156. package/dist/domain/tasks/lint.js +28 -0
  157. package/dist/domain/tasks/mutator.d.ts +16 -3
  158. package/dist/domain/tasks/mutator.js +41 -12
  159. package/dist/domain/tasks/pending-tracker.js +6 -5
  160. package/dist/domain/tasks/system/task-cli.d.ts +2 -0
  161. package/dist/domain/tasks/system/task-cli.js +37 -6
  162. package/dist/domain/tasks/system/task-lifecycle-edit.js +6 -1
  163. package/dist/domain/tasks/system/task-mutations.d.ts +41 -3
  164. package/dist/domain/tasks/system/task-mutations.js +166 -8
  165. package/dist/domain/threads/contract.d.ts +17 -0
  166. package/dist/domain/threads/contract.js +59 -0
  167. package/dist/domain/threads/hook-runner.js +7 -6
  168. package/dist/domain/threads/index.d.ts +2 -0
  169. package/dist/domain/threads/index.js +3 -1
  170. package/dist/domain/threads/prompt-builder.d.ts +21 -1
  171. package/dist/domain/threads/prompt-builder.js +60 -4
  172. package/dist/domain/threads/runner.d.ts +6 -5
  173. package/dist/domain/threads/runner.js +128 -79
  174. package/dist/domain/threads/state-machine.d.ts +23 -21
  175. package/dist/domain/threads/state-machine.js +113 -54
  176. package/dist/domain/threads/template-loader.js +3 -2
  177. package/dist/domain/threads/tree.d.ts +45 -0
  178. package/dist/domain/threads/tree.js +171 -0
  179. package/dist/domain/tui-session/index.d.ts +2 -0
  180. package/dist/domain/tui-session/index.js +3 -0
  181. package/dist/domain/tui-session/tui-session-service.d.ts +2 -0
  182. package/dist/domain/tui-session/tui-session-service.js +103 -0
  183. package/dist/domain/tui-session/types.d.ts +67 -0
  184. package/dist/domain/tui-session/types.js +4 -0
  185. package/dist/domain/ui-service/index.d.ts +5 -0
  186. package/dist/domain/ui-service/index.js +3 -0
  187. package/dist/domain/ui-service/mutate/executions.d.ts +4 -0
  188. package/dist/domain/ui-service/mutate/executions.js +15 -0
  189. package/dist/domain/ui-service/mutate/schedules.d.ts +10 -0
  190. package/dist/domain/ui-service/mutate/schedules.js +39 -0
  191. package/dist/domain/ui-service/mutate/tasks.d.ts +23 -0
  192. package/dist/domain/ui-service/mutate/tasks.js +59 -0
  193. package/dist/domain/ui-service/mutate/threads.d.ts +4 -0
  194. package/dist/domain/ui-service/mutate/threads.js +21 -0
  195. package/dist/domain/ui-service/query/cost.d.ts +3 -0
  196. package/dist/domain/ui-service/query/cost.js +6 -0
  197. package/dist/domain/ui-service/query/executions.d.ts +2 -0
  198. package/dist/domain/ui-service/query/executions.js +35 -0
  199. package/dist/domain/ui-service/query/projects.d.ts +2 -0
  200. package/dist/domain/ui-service/query/projects.js +30 -0
  201. package/dist/domain/ui-service/query/schedules.d.ts +2 -0
  202. package/dist/domain/ui-service/query/schedules.js +23 -0
  203. package/dist/domain/ui-service/query/sessions.d.ts +2 -0
  204. package/dist/domain/ui-service/query/sessions.js +35 -0
  205. package/dist/domain/ui-service/query/tasks.d.ts +2 -0
  206. package/dist/domain/ui-service/query/tasks.js +30 -0
  207. package/dist/domain/ui-service/query/threads.d.ts +2 -0
  208. package/dist/domain/ui-service/query/threads.js +27 -0
  209. package/dist/domain/ui-service/subscribe.d.ts +5 -0
  210. package/dist/domain/ui-service/subscribe.js +118 -0
  211. package/dist/domain/ui-service/types.d.ts +237 -0
  212. package/dist/domain/ui-service/types.js +5 -0
  213. package/dist/domain/ui-service/ui-service.d.ts +2 -0
  214. package/dist/domain/ui-service/ui-service.js +83 -0
  215. package/dist/entry/app.js +130 -8
  216. package/dist/entry/cli.d.ts +12 -0
  217. package/dist/entry/cli.js +122 -12
  218. package/dist/entry/daemon.js +12 -30
  219. package/dist/entry/feishu-login.d.ts +28 -0
  220. package/dist/entry/feishu-login.js +218 -0
  221. package/dist/entry/init.d.ts +29 -5
  222. package/dist/entry/init.js +323 -233
  223. package/dist/entry/startup-notify.js +6 -3
  224. package/dist/events/event-types.d.ts +14 -0
  225. package/dist/hooks/cortex-md-injector.mjs +47 -31
  226. package/dist/hooks/post-task-hook.mjs +6 -0
  227. package/dist/hooks/task-status-check.mjs +8 -0
  228. package/dist/orchestration/agent-runner.d.ts +2 -1
  229. package/dist/orchestration/agent-runner.js +55 -55
  230. package/dist/orchestration/conduit-queue.d.ts +18 -0
  231. package/dist/orchestration/conduit-queue.js +32 -0
  232. package/dist/orchestration/conversation-runner.d.ts +48 -0
  233. package/dist/orchestration/conversation-runner.js +109 -0
  234. package/dist/orchestration/dispatch-reconciler.js +8 -1
  235. package/dist/orchestration/interactions/ask-user-question.d.ts +1 -1
  236. package/dist/orchestration/interactions/ask-user-question.js +3 -3
  237. package/dist/orchestration/interactions/interaction-handlers.js +55 -23
  238. package/dist/orchestration/interactions/plan-handler.d.ts +2 -2
  239. package/dist/orchestration/interactions/plan-handler.js +4 -3
  240. package/dist/orchestration/interactions/update-prompt-slack.js +11 -10
  241. package/dist/orchestration/interactions/update-prompt.d.ts +6 -0
  242. package/dist/orchestration/interactions/update-prompt.js +155 -0
  243. package/dist/orchestration/lifecycle.d.ts +4 -4
  244. package/dist/orchestration/lifecycle.js +25 -22
  245. package/dist/orchestration/orchestrator.d.ts +1 -1
  246. package/dist/orchestration/routing/commands/cancel.js +45 -52
  247. package/dist/orchestration/routing/commands/channel.js +41 -27
  248. package/dist/orchestration/routing/commands/cost.js +11 -2
  249. package/dist/orchestration/routing/commands/device.js +12 -9
  250. package/dist/orchestration/routing/commands/dispatch.js +11 -10
  251. package/dist/orchestration/routing/commands/index.d.ts +1 -1
  252. package/dist/orchestration/routing/commands/index.js +15 -10
  253. package/dist/orchestration/routing/commands/lang.d.ts +3 -0
  254. package/dist/orchestration/routing/commands/lang.js +31 -0
  255. package/dist/orchestration/routing/commands/mode.js +32 -30
  256. package/dist/orchestration/routing/commands/nvtop.js +15 -13
  257. package/dist/orchestration/routing/commands/orient.js +2 -1
  258. package/dist/orchestration/routing/commands/schedule.js +23 -22
  259. package/dist/orchestration/routing/commands/sendfile.js +9 -7
  260. package/dist/orchestration/routing/commands/session.d.ts +1 -1
  261. package/dist/orchestration/routing/commands/session.js +24 -39
  262. package/dist/orchestration/routing/commands/status.js +78 -71
  263. package/dist/orchestration/routing/commands/tail.js +7 -5
  264. package/dist/orchestration/routing/commands/task.js +25 -23
  265. package/dist/orchestration/routing/commands/thread-handlers.js +55 -44
  266. package/dist/orchestration/routing/edit-handler.js +8 -7
  267. package/dist/orchestration/routing/hook-bridge-subscribers.js +17 -1
  268. package/dist/orchestration/routing/message-router.d.ts +1 -1
  269. package/dist/orchestration/routing/message-router.js +9 -9
  270. package/dist/orchestration/routing/webhook.js +233 -2
  271. package/dist/orchestration/status-helpers.d.ts +5 -1
  272. package/dist/orchestration/status-helpers.js +13 -11
  273. package/dist/orchestration/thread-callback.d.ts +67 -0
  274. package/dist/orchestration/thread-callback.js +465 -0
  275. package/dist/orchestration/thread-executor.d.ts +22 -1
  276. package/dist/orchestration/thread-executor.js +85 -36
  277. package/dist/platform/adapter.d.ts +6 -2
  278. package/dist/platform/adapters/composite-adapter.d.ts +89 -0
  279. package/dist/platform/adapters/composite-adapter.js +318 -0
  280. package/dist/platform/adapters/feishu-output-stream.d.ts +26 -4
  281. package/dist/platform/adapters/feishu-output-stream.js +274 -36
  282. package/dist/platform/adapters/feishu.d.ts +50 -5
  283. package/dist/platform/adapters/feishu.js +370 -116
  284. package/dist/platform/adapters/index.d.ts +24 -3
  285. package/dist/platform/adapters/index.js +89 -11
  286. package/dist/platform/adapters/project-conduits.d.ts +9 -0
  287. package/dist/platform/adapters/project-conduits.js +42 -0
  288. package/dist/platform/adapters/slack-project-conduits.d.ts +1 -9
  289. package/dist/platform/adapters/slack-project-conduits.js +6 -40
  290. package/dist/platform/adapters/slack.d.ts +9 -2
  291. package/dist/platform/adapters/slack.js +83 -39
  292. package/dist/platform/adapters/tui/index.d.ts +9 -0
  293. package/dist/platform/adapters/tui/index.js +10 -0
  294. package/dist/platform/adapters/tui/ports.d.ts +20 -0
  295. package/dist/platform/adapters/tui/ports.js +4 -0
  296. package/dist/platform/adapters/tui/tui-conduit-state.d.ts +10 -0
  297. package/dist/platform/adapters/tui/tui-conduit-state.js +17 -0
  298. package/dist/platform/adapters/tui/tui-connection.d.ts +30 -0
  299. package/dist/platform/adapters/tui/tui-connection.js +53 -0
  300. package/dist/platform/adapters/tui/tui-gateway.d.ts +120 -0
  301. package/dist/platform/adapters/tui/tui-gateway.js +919 -0
  302. package/dist/platform/adapters/tui/tui-notifications.d.ts +12 -0
  303. package/dist/platform/adapters/tui/tui-notifications.js +60 -0
  304. package/dist/platform/adapters/tui/tui-output-stream.d.ts +36 -0
  305. package/dist/platform/adapters/tui/tui-output-stream.js +99 -0
  306. package/dist/platform/adapters/tui/tui-transcript.d.ts +8 -0
  307. package/dist/platform/adapters/tui/tui-transcript.js +56 -0
  308. package/dist/platform/index.d.ts +1 -0
  309. package/dist/platform/index.js +2 -1
  310. package/dist/platform/interactive-builder.js +21 -19
  311. package/dist/platform/output-stream.d.ts +5 -0
  312. package/dist/platform/testing.d.ts +7 -11
  313. package/dist/platform/testing.js +18 -15
  314. package/dist/platform/tool-trace.js +15 -5
  315. package/dist/platform/tui/protocol.d.ts +355 -0
  316. package/dist/platform/tui/protocol.js +199 -0
  317. package/dist/platform/types.d.ts +12 -3
  318. package/dist/store/execution-repo.d.ts +6 -1
  319. package/dist/store/execution-repo.js +13 -3
  320. package/dist/store/hook-sync.d.ts +18 -0
  321. package/dist/store/hook-sync.js +92 -0
  322. package/dist/store/outbound-queue.js +2 -2
  323. package/dist/store/profile-repo.js +3 -2
  324. package/dist/store/schedule-repo.d.ts +1 -8
  325. package/dist/store/session-registry-repo.d.ts +9 -1
  326. package/dist/store/session-registry-repo.js +19 -3
  327. package/dist/store/session-repo.d.ts +14 -0
  328. package/dist/store/session-repo.js +23 -0
  329. package/dist/store/thread-repo.d.ts +3 -0
  330. package/dist/store/thread-repo.js +49 -2
  331. package/dist/store/version-migrations.d.ts +7 -0
  332. package/dist/store/version-migrations.js +183 -0
  333. package/dist/tui/App.d.ts +27 -0
  334. package/dist/tui/App.js +219 -0
  335. package/dist/tui/components/AskUserModal.d.ts +11 -0
  336. package/dist/tui/components/AskUserModal.js +364 -0
  337. package/dist/tui/components/ConfirmModal.d.ts +12 -0
  338. package/dist/tui/components/ConfirmModal.js +31 -0
  339. package/dist/tui/components/Dashboard.d.ts +23 -0
  340. package/dist/tui/components/Dashboard.js +80 -0
  341. package/dist/tui/components/DashboardCostTab.d.ts +7 -0
  342. package/dist/tui/components/DashboardCostTab.js +16 -0
  343. package/dist/tui/components/DashboardExecutionsTab.d.ts +11 -0
  344. package/dist/tui/components/DashboardExecutionsTab.js +94 -0
  345. package/dist/tui/components/DashboardSchedulesTab.d.ts +11 -0
  346. package/dist/tui/components/DashboardSchedulesTab.js +124 -0
  347. package/dist/tui/components/DashboardTasksTab.d.ts +12 -0
  348. package/dist/tui/components/DashboardTasksTab.js +200 -0
  349. package/dist/tui/components/DashboardThreadsTab.d.ts +11 -0
  350. package/dist/tui/components/DashboardThreadsTab.js +81 -0
  351. package/dist/tui/components/Header.d.ts +11 -0
  352. package/dist/tui/components/Header.js +5 -0
  353. package/dist/tui/components/InputBox.d.ts +10 -0
  354. package/dist/tui/components/InputBox.js +19 -0
  355. package/dist/tui/components/MessageRow.d.ts +7 -0
  356. package/dist/tui/components/MessageRow.js +10 -0
  357. package/dist/tui/components/Notifications.d.ts +19 -0
  358. package/dist/tui/components/Notifications.js +72 -0
  359. package/dist/tui/components/PlanFeedbackModal.d.ts +11 -0
  360. package/dist/tui/components/PlanFeedbackModal.js +161 -0
  361. package/dist/tui/components/ProjectSwitcher.d.ts +18 -0
  362. package/dist/tui/components/ProjectSwitcher.js +43 -0
  363. package/dist/tui/components/SessionPicker.d.ts +14 -0
  364. package/dist/tui/components/SessionPicker.js +34 -0
  365. package/dist/tui/components/SidePanel.d.ts +19 -0
  366. package/dist/tui/components/SidePanel.js +8 -0
  367. package/dist/tui/components/StatusLine.d.ts +10 -0
  368. package/dist/tui/components/StatusLine.js +29 -0
  369. package/dist/tui/components/Transcript.d.ts +13 -0
  370. package/dist/tui/components/Transcript.js +56 -0
  371. package/dist/tui/hooks/useDashboardData.d.ts +32 -0
  372. package/dist/tui/hooks/useDashboardData.js +104 -0
  373. package/dist/tui/hooks/useKeybindings.d.ts +19 -0
  374. package/dist/tui/hooks/useKeybindings.js +87 -0
  375. package/dist/tui/hooks/useMutate.d.ts +22 -0
  376. package/dist/tui/hooks/useMutate.js +56 -0
  377. package/dist/tui/hooks/useNotifications.d.ts +28 -0
  378. package/dist/tui/hooks/useNotifications.js +70 -0
  379. package/dist/tui/hooks/useTranscript.d.ts +39 -0
  380. package/dist/tui/hooks/useTranscript.js +265 -0
  381. package/dist/tui/hooks/useWsClient.d.ts +29 -0
  382. package/dist/tui/hooks/useWsClient.js +69 -0
  383. package/dist/tui/index.d.ts +2 -0
  384. package/dist/tui/index.js +210 -0
  385. package/dist/tui/logic.d.ts +16 -0
  386. package/dist/tui/logic.js +49 -0
  387. package/dist/tui/render/markdown.d.ts +10 -0
  388. package/dist/tui/render/markdown.js +38 -0
  389. package/dist/tui/render/rich-blocks.d.ts +11 -0
  390. package/dist/tui/render/rich-blocks.js +24 -0
  391. package/dist/tui/ws-client.d.ts +44 -0
  392. package/dist/tui/ws-client.js +157 -0
  393. package/package.json +11 -3
  394. package/dist/orchestration/channel-queue.d.ts +0 -18
  395. package/dist/orchestration/channel-queue.js +0 -32
@@ -0,0 +1,462 @@
1
+ // input: nothing (leaf data slice)
2
+ // output: commandsEn / commandsZh — message slice (filled by i18n extraction)
3
+ // pos: one locale slice; aggregated by core/locales/en.ts & zh.ts barrels
4
+ // >>> Keep en and zh keys in lockstep (zh typed against keyof typeof commandsEn) <<<
5
+ export const commandsEn = {
6
+ // --- cancel ---
7
+ 'cmd.cancel.nothingRunning': 'Nothing running to cancel.',
8
+ 'cmd.cancel.cancelledN': 'Cancelled ${n} execution(s).',
9
+ 'cmd.cancel.cancelledShort': 'Cancelled (${id})',
10
+ 'cmd.cancel.threadCancelled': 'Thread `${id}` cancelled.',
11
+ 'cmd.cancel.threadNotFound': 'No running thread `${id}` found to cancel.',
12
+ 'cmd.cancel.dispatchUnavailable': 'Dispatched-task cancellation is not available in this process.',
13
+ 'cmd.cancel.cancelledSessionPreserved': 'Cancelled. Session preserved — next message will resume.',
14
+ 'cmd.cancel.runningTasks': 'Running tasks (${n}):',
15
+ 'cmd.cancel.cancelButton': 'Cancel ${id}',
16
+ // --- mode / backend / model / profile / skills / agent ---
17
+ 'cmd.mode.switched': 'Switched to *${mode}* mode',
18
+ 'cmd.mode.apiLabel': 'API',
19
+ 'cmd.mode.planLabel': 'Plan',
20
+ 'cmd.backend.switched': 'Backend: *${backend}*',
21
+ 'cmd.backend.claudeLabel': 'Claude Code',
22
+ 'cmd.backend.codexLabel': 'Codex',
23
+ 'cmd.model.current': 'Current Claude model: *${model}*',
24
+ 'cmd.model.usage': 'Usage: `!model <model-name>`',
25
+ 'cmd.model.set': 'Claude model set to *${model}*',
26
+ 'cmd.profile.channelSet': 'Channel profile set to *${name}*',
27
+ 'cmd.profile.channelHeader': 'Channel profile: *${effective}* (global: ${global})',
28
+ 'cmd.profile.activeHeader': 'Active profile: *${effective}*',
29
+ 'cmd.profile.markerDefault': 'default',
30
+ 'cmd.profile.markerGlobal': 'global',
31
+ 'cmd.profile.markerChannel': 'channel',
32
+ 'cmd.profile.cleared': 'Channel profile cleared, using global: *${name}*',
33
+ 'cmd.profile.globalUsage': 'Usage: `!profile global <name>`',
34
+ 'cmd.profile.globalSet': 'Global profile set to *${name}*',
35
+ 'cmd.skills.none': 'No skills found.',
36
+ 'cmd.skills.header': '*Available skills*',
37
+ 'cmd.skills.localGroup': '.claude/skills',
38
+ 'cmd.agent.defaultSet': 'Default agent set to *${name}* (${detail})',
39
+ 'cmd.agent.disabled': 'Default agent disabled.',
40
+ 'cmd.agent.disableButton': 'Disable',
41
+ 'cmd.agent.current': 'Default agent: *${name}* (${detail})',
42
+ 'cmd.agent.none': 'No default agent set.\nAvailable: ${agents}',
43
+ 'cmd.agent.unknown': 'Unknown agent: `${name}`\nAvailable: ${available}',
44
+ // --- channel (projects/register/unregister/project-dir) ---
45
+ 'cmd.channel.noProjects': 'No projects found.',
46
+ 'cmd.channel.projectsHeader': '*Projects*\n${list}',
47
+ 'cmd.channel.registeredNotification': 'Registered for `${project}` task notifications.',
48
+ 'cmd.channel.unknownProject': 'Unknown project: `${project}`\nAvailable: ${available}',
49
+ 'cmd.channel.channelRegistered': 'This channel is now registered for project `${project}` task notifications.',
50
+ 'cmd.channel.registeredList': 'Registered: ${list}',
51
+ 'cmd.channel.notRegisteredAny': 'This channel is not registered to any project.',
52
+ 'cmd.channel.availableList': 'Available: ${list}',
53
+ 'cmd.channel.unregisterUsage': 'Usage: `!unregister <project>`',
54
+ 'cmd.channel.notRegistered': 'This channel is not registered for project `${project}`.',
55
+ 'cmd.channel.unregistered': 'Unregistered this channel from project `${project}`.',
56
+ 'cmd.channel.modalTitle': 'Add Project Directory',
57
+ 'cmd.channel.modalSubmit': 'Save',
58
+ 'cmd.channel.modalProjectLabel': 'Project name',
59
+ 'cmd.channel.modalProjectPlaceholder': 'e.g. example-project-dataset',
60
+ 'cmd.channel.modalMachineLabel': 'Machine',
61
+ 'cmd.channel.modalPathLabel': 'Directory path',
62
+ 'cmd.channel.modalPathPlaceholder': 'e.g. /home/user/project',
63
+ 'cmd.channel.dirSet': '`${project}` on `${machine}` → `${dir}`',
64
+ 'cmd.channel.projectDirUsage': 'Usage: `!project-dir <project> <machine> <path>` or `!project-dir <project> <machine> --remove`',
65
+ 'cmd.channel.unknownMachine': 'Unknown machine: `${machine}`\nValid: ${valid}',
66
+ 'cmd.channel.dirRemoved': 'Removed `${project}` directory on `${machine}`.',
67
+ 'cmd.channel.dirShow': '`${project}` on `${machine}` → `${dir}`',
68
+ 'cmd.channel.dirNone': 'No directory registered for `${project}` on `${machine}`.',
69
+ 'cmd.channel.projectDirsHeader': '*Project Directories*\n${list}',
70
+ 'cmd.channel.noProjectDirs': 'No project directories registered.',
71
+ 'cmd.channel.addButton': 'Add',
72
+ // --- nvtop / nvidia-smi ---
73
+ 'cmd.nvtop.unknownMachineGpu': 'Unknown machine: `${machine}`\nGPU machines: ${valid}',
74
+ 'cmd.nvtop.noGpu': '`${machine}` has no GPU.',
75
+ 'cmd.nvtop.deviceOffline': 'Device `${machine}` is not online.',
76
+ 'cmd.nvtop.smiHeader': '*nvidia-smi* on `${machine}`\n```\n${output}\n```',
77
+ 'cmd.nvtop.noOutput': '(no output)',
78
+ 'cmd.nvtop.smiFailed': 'nvidia-smi failed on `${machine}`: ${error}',
79
+ 'cmd.nvtop.noActive': 'No active nvtop monitor in this channel.',
80
+ 'cmd.nvtop.stopped': 'nvtop stopped on `${machine}`.',
81
+ 'cmd.nvtop.alreadyRunning': 'nvtop already running. Use `!nvtop stop` first.',
82
+ 'cmd.nvtop.notSupported': 'nvtop monitoring is not supported on `${machine}` yet.',
83
+ 'cmd.nvtop.failed': 'nvtop failed on `${machine}`: ${error}',
84
+ // --- sendfile ---
85
+ 'cmd.sendfile.fileNotFound': 'File not found: `${path}`',
86
+ 'cmd.sendfile.notAFile': 'Not a file: `${path}`',
87
+ 'cmd.sendfile.sent': 'Sent `${name}` (${size} KB) from ${machine}',
88
+ 'cmd.sendfile.fetchFailed': 'Failed to fetch from ${machine}: ${error}',
89
+ 'cmd.sendfile.usage': 'Usage: `!sendFile <machine> <path>`\nPath can be absolute, relative to Cortex root, or start with `~`',
90
+ 'cmd.sendfile.unknownMachine': 'Unknown machine: `${machine}`. Known: ${known}',
91
+ // --- session (new / resume) ---
92
+ 'cmd.session.newConversation': '--- new conversation --- (profile: ${profile})',
93
+ 'cmd.session.notFound': 'Session `${name}` not found.',
94
+ 'cmd.session.switched': 'Switched to session `${name}`${profileNote}',
95
+ 'cmd.session.notFoundList': 'Session `${name}` not found. Run `!resume` to list sessions.',
96
+ 'cmd.session.profileNote': ' (profile: ${profile})',
97
+ 'cmd.session.noSessions': 'No sessions recorded yet.',
98
+ 'cmd.session.recentHeader': '*Recent sessions*',
99
+ 'cmd.session.activeTag': ' *(active)*',
100
+ // --- task ---
101
+ 'cmd.task.header': '*Tasks for `${project}`* (${shown}/${total})${filterLabel}',
102
+ 'cmd.task.filterLabel': ' — ${filter}',
103
+ 'cmd.task.statusCompleted': 'completed',
104
+ 'cmd.task.statusBlocked': 'blocked: ${by}',
105
+ 'cmd.task.statusInProgress': 'in-progress: ${by}',
106
+ 'cmd.task.statusPaused': 'paused',
107
+ 'cmd.task.statusApprovalNeeded': 'approval-needed',
108
+ 'cmd.task.statusActionable': 'actionable',
109
+ 'cmd.task.statusOpen': 'open',
110
+ 'cmd.task.statusLine': ' Status: ${status} · Priority: ${priority}',
111
+ 'cmd.task.tagsLine': ' Tags: ${tags}',
112
+ 'cmd.task.whyLine': ' Why: ${why}',
113
+ 'cmd.task.doneWhenLine': ' Done when: ${doneWhen}',
114
+ 'cmd.task.dependsLine': ' Depends on: ${depends}',
115
+ 'cmd.task.noneFound': 'No ${filter} tasks found.',
116
+ 'cmd.task.filterAll': 'All',
117
+ 'cmd.task.filterActionable': 'Actionable',
118
+ 'cmd.task.filterInProgress': 'In Progress',
119
+ 'cmd.task.filterBlocked': 'Blocked',
120
+ 'cmd.task.usage': 'Usage: `!tasks <project>`',
121
+ 'cmd.task.projectNotFound': 'Project not found: `${project}`',
122
+ 'cmd.task.noTasks': 'No tasks found for `${project}`.',
123
+ // --- dispatch ---
124
+ 'cmd.dispatch.usage': 'Usage: `!dispatch <threadId> [--profile <name>]`',
125
+ 'cmd.dispatch.threadNotFound': 'Thread not found: `${threadId}`',
126
+ 'cmd.dispatch.notDispatchThread': 'Thread `${threadId}` is not a dispatch thread.',
127
+ 'cmd.dispatch.terminalWarning': 'Dispatch `${threadId}` is `${status}`. Profile override will only apply if the thread is continued via `!thread add`.',
128
+ 'cmd.dispatch.currentOverride': 'Dispatch `${threadId}`: current `profileOverride` = `${current}`',
129
+ 'cmd.dispatch.unknownProfile': 'Unknown profile: `${profile}`. Use `!profile` to see available profiles.',
130
+ 'cmd.dispatch.overrideSet': 'Dispatch `${threadId}`: `profileOverride` set to `${profile}`. Next step will use this profile.',
131
+ // --- tail ---
132
+ 'cmd.tail.noActive': 'No active tail in this channel.',
133
+ 'cmd.tail.stopped': 'Tail stopped.',
134
+ 'cmd.tail.preview': '*Tailing daemon.log* (last ${n} lines, refresh every 3s)\n```\n${content}\n```\nUse `!tail stop` to stop.',
135
+ 'cmd.tail.cannotRead': 'Cannot read daemon.log: ${error}',
136
+ 'cmd.tail.alreadyTailing': 'Already tailing. Use `!tail stop` to stop first.',
137
+ // --- status / help ---
138
+ 'cmd.status.unavailable': 'Execution status reporting is not available in this process.',
139
+ 'cmd.status.refreshButton': 'Refresh',
140
+ 'cmd.help.catSession': 'Session',
141
+ 'cmd.help.catConfig': 'Config',
142
+ 'cmd.help.catMonitoring': 'Monitoring',
143
+ 'cmd.help.catTasks': 'Tasks',
144
+ 'cmd.help.catDevices': 'Devices',
145
+ 'cmd.help.catThreads': 'Threads',
146
+ 'cmd.help.session.new': '`!new` — start a new conversation; runs pre-close hook (`!newq` to skip)',
147
+ 'cmd.help.session.cancel': '`!cancel [taskId]` — stop current task, or a dispatched task by id',
148
+ 'cmd.help.session.resume': '`!resume [cortex-XXXX]` — list recent sessions, or switch to one',
149
+ 'cmd.help.config.mode': '`!mode` — toggle API / Plan mode',
150
+ 'cmd.help.config.backend': '`!backend` — toggle Claude Code / Codex backend',
151
+ 'cmd.help.config.model': '`!model [name]` — show or set Claude model',
152
+ 'cmd.help.config.profile': '`!profile [name]` — show active profile or switch to one',
153
+ 'cmd.help.config.skills': '`!skills` — list available skills',
154
+ 'cmd.help.monitoring.cost': '`!cost [project]` — show cost summary (global or per-project)',
155
+ 'cmd.help.monitoring.status': '`!status` — show running execution summary',
156
+ 'cmd.help.monitoring.budget': '`!budget $X/d $Y/m` — set daily/monthly budget',
157
+ 'cmd.help.monitoring.schedule': '`!schedule` — list, add, pause, resume, or remove scheduled tasks',
158
+ 'cmd.help.tasks.tasks': '`!tasks <project>` — list all tasks with details for a project',
159
+ 'cmd.help.tasks.projects': '`!projects` — list projects and their registered channels',
160
+ 'cmd.help.tasks.register': '`!register <project>` — register this channel for project task notifications',
161
+ 'cmd.help.tasks.unregister': '`!unregister <project>` — unregister this channel from a project',
162
+ 'cmd.help.tasks.projectDir': '`!project-dir` — manage project code directories per machine',
163
+ 'cmd.help.devices.devices': '`!devices` — show online/offline status of all cortex-client devices',
164
+ 'cmd.help.devices.nvidiaSmi': '`!nvidia-smi [machine]` — show GPU status (default: local)',
165
+ 'cmd.help.devices.nvtop': '`!nvtop [machine|stop]` — live GPU monitor with sparkline view',
166
+ 'cmd.help.devices.tail': '`!tail [stop]` — live-tail daemon.log',
167
+ 'cmd.help.devices.sendfile': '`!sendFile <machine> <path>` — send a file to Slack',
168
+ 'cmd.help.threads.thread': '`!thread` — manage threads: status, start, add agent, cancel, list agents/templates',
169
+ 'cmd.help.threads.agent': '`!agent [name|off]` — show, set, or disable default agent',
170
+ 'cmd.help.heading': '*Commands*',
171
+ 'cmd.help.headingCategory': '*Commands — ${label}*',
172
+ 'cmd.help.selfLine': '`!help` — this message',
173
+ 'cmd.help.showAll': 'Show All',
174
+ // --- schedule (wrapper replies only) ---
175
+ 'cmd.schedule.none': 'No scheduled tasks.',
176
+ 'cmd.schedule.header': '*Scheduled tasks (${n}):*',
177
+ 'cmd.schedule.removeButton': 'Remove ${id}',
178
+ 'cmd.schedule.resumeButton': 'Resume ${id}',
179
+ 'cmd.schedule.pauseButton': 'Pause ${id}',
180
+ 'cmd.schedule.now': 'now',
181
+ 'cmd.schedule.paused': 'paused',
182
+ 'cmd.schedule.nextLabel': 'next',
183
+ // --- device (devices) ---
184
+ 'cmd.device.header': '*Devices*',
185
+ 'cmd.device.online': '`${name}` ${platform} connected ${connAgo} heartbeat ${hbAgo}',
186
+ 'cmd.device.offline': '`${name}` offline',
187
+ 'cmd.device.none': 'No devices registered or online.',
188
+ 'cmd.device.refreshButton': 'Refresh',
189
+ // --- orient ---
190
+ 'cmd.orient.notImplemented': '`!orient` command not yet implemented.',
191
+ // --- thread (thread-handlers) ---
192
+ 'cmd.thread.noActive': 'No active thread in this channel.',
193
+ 'cmd.thread.activeHeader': '*Active Thread* `${id}` (${mode})',
194
+ 'cmd.thread.statusLine': 'Status: ${status} | Active agent: ${agent}',
195
+ 'cmd.thread.stepsLine': 'Steps: ${steps} | Cost: $${cost}',
196
+ 'cmd.thread.agentsLine': 'Agents: ${agents}',
197
+ 'cmd.thread.abortLine': 'Abort reason: ${reason}',
198
+ 'cmd.thread.adHoc': 'ad-hoc',
199
+ 'cmd.thread.noTemplates': 'No thread templates configured.',
200
+ 'cmd.thread.templatesHeader': '*Available Thread Templates*',
201
+ 'cmd.thread.templateLine': '`${name}` — ${description} [agents: ${agents}]',
202
+ 'cmd.thread.agentsTitle': '*Available Agents*',
203
+ 'cmd.thread.agentLine': '`${name}` (${profile}) — ${description}',
204
+ 'cmd.thread.noAgents': 'No agents configured.',
205
+ 'cmd.thread.activeThreadHeader': '*Active Thread* `${id}`',
206
+ 'cmd.thread.noSession': 'no session',
207
+ 'cmd.thread.slotLine': '*${slotId}* (${profile}) — ${status} | ${session}',
208
+ 'cmd.thread.cancelledSessionPreserved': 'Cancelled. Session preserved — next message will resume.',
209
+ 'cmd.thread.nothingRunning': 'Nothing running to cancel.',
210
+ 'cmd.thread.noThreadsChannel': 'No threads found for this channel.',
211
+ 'cmd.thread.recentHeader': '*Recent Threads*',
212
+ 'cmd.thread.recentLine': '`${id}` ${mode} — ${status} | ${steps} steps | $${cost}',
213
+ 'cmd.thread.noRunning': 'No running threads.',
214
+ 'cmd.thread.runningHeader': '*Running Threads*',
215
+ 'cmd.thread.runningLine': '`${id}` — ${channel} | ${mode} | ${steps} step(s) | $${cost}',
216
+ 'cmd.thread.usageHeader': '*Thread Commands*',
217
+ 'cmd.thread.usageStatus': '`!thread` — show active thread status',
218
+ 'cmd.thread.usageAgents': '`!thread agents` — list available agents',
219
+ 'cmd.thread.usageTemplates': '`!thread templates` — list available templates',
220
+ 'cmd.thread.usageAdHoc': '`!thread <agent> <message>` — start ad-hoc thread with one agent',
221
+ 'cmd.thread.usageTemplate': '`!thread <template> <message>` — start template-based thread',
222
+ 'cmd.thread.usageAdd': '`!thread add <agent> [message]` — add agent to current thread',
223
+ 'cmd.thread.usageCancel': '`!cancel` — cancel active thread (also `!thread cancel`)',
224
+ 'cmd.thread.usageList': '`!thread list` — list recent threads',
225
+ 'cmd.thread.usageListRunning': '`!thread list --running` — list running threads across channels',
226
+ // --- cost / budget ---
227
+ 'cmd.cost.budgetHeader': '*Budget*\n• Daily: $${dailyBudget} (spent: $${dailySpent}, remaining: $${dailyRemaining})\n• Monthly: $${monthlyBudget} (spent: $${monthlySpent}, remaining: $${monthlyRemaining})',
228
+ 'cmd.cost.budgetUpdated': 'Budget updated: $${daily}/day, $${monthly}/month',
229
+ // --- index (dispatcher) ---
230
+ 'cmd.unknown': 'Unknown command: `${cmd}`. Run `!help` for available commands.',
231
+ 'cmd.error': 'Command error: ${error}',
232
+ 'cmd.errorUnknown': 'unknown error',
233
+ };
234
+ export const commandsZh = {
235
+ // --- cancel ---
236
+ 'cmd.cancel.nothingRunning': '没有正在运行的任务可取消。',
237
+ 'cmd.cancel.cancelledN': '已取消 ${n} 个执行。',
238
+ 'cmd.cancel.cancelledShort': '已取消(${id})',
239
+ 'cmd.cancel.threadCancelled': '线程 `${id}` 已取消。',
240
+ 'cmd.cancel.threadNotFound': '未找到可取消的运行中线程 `${id}`。',
241
+ 'cmd.cancel.dispatchUnavailable': '本进程不支持取消已派发任务。',
242
+ 'cmd.cancel.cancelledSessionPreserved': '已取消。会话已保留——下一条消息将继续。',
243
+ 'cmd.cancel.runningTasks': '运行中的任务(${n}):',
244
+ 'cmd.cancel.cancelButton': '取消 ${id}',
245
+ // --- mode / backend / model / profile / skills / agent ---
246
+ 'cmd.mode.switched': '已切换到 *${mode}* 模式',
247
+ 'cmd.mode.apiLabel': 'API',
248
+ 'cmd.mode.planLabel': 'Plan',
249
+ 'cmd.backend.switched': '后端:*${backend}*',
250
+ 'cmd.backend.claudeLabel': 'Claude Code',
251
+ 'cmd.backend.codexLabel': 'Codex',
252
+ 'cmd.model.current': '当前 Claude 模型:*${model}*',
253
+ 'cmd.model.usage': '用法:`!model <model-name>`',
254
+ 'cmd.model.set': 'Claude 模型已设为 *${model}*',
255
+ 'cmd.profile.channelSet': '频道配置已设为 *${name}*',
256
+ 'cmd.profile.channelHeader': '频道配置:*${effective}*(全局:${global})',
257
+ 'cmd.profile.activeHeader': '当前配置:*${effective}*',
258
+ 'cmd.profile.markerDefault': 'default',
259
+ 'cmd.profile.markerGlobal': 'global',
260
+ 'cmd.profile.markerChannel': 'channel',
261
+ 'cmd.profile.cleared': '频道配置已清除,使用全局:*${name}*',
262
+ 'cmd.profile.globalUsage': '用法:`!profile global <name>`',
263
+ 'cmd.profile.globalSet': '全局配置已设为 *${name}*',
264
+ 'cmd.skills.none': '未找到技能。',
265
+ 'cmd.skills.header': '*可用技能*',
266
+ 'cmd.skills.localGroup': '.claude/skills',
267
+ 'cmd.agent.defaultSet': '默认 agent 已设为 *${name}*(${detail})',
268
+ 'cmd.agent.disabled': '默认 agent 已禁用。',
269
+ 'cmd.agent.disableButton': '禁用',
270
+ 'cmd.agent.current': '默认 agent:*${name}*(${detail})',
271
+ 'cmd.agent.none': '未设置默认 agent。\n可用:${agents}',
272
+ 'cmd.agent.unknown': '未知 agent:`${name}`\n可用:${available}',
273
+ // --- channel ---
274
+ 'cmd.channel.noProjects': '未找到项目。',
275
+ 'cmd.channel.projectsHeader': '*项目*\n${list}',
276
+ 'cmd.channel.registeredNotification': '已注册接收 `${project}` 的任务通知。',
277
+ 'cmd.channel.unknownProject': '未知项目:`${project}`\n可用:${available}',
278
+ 'cmd.channel.channelRegistered': '本频道现已注册接收项目 `${project}` 的任务通知。',
279
+ 'cmd.channel.registeredList': '已注册:${list}',
280
+ 'cmd.channel.notRegisteredAny': '本频道未注册到任何项目。',
281
+ 'cmd.channel.availableList': '可用:${list}',
282
+ 'cmd.channel.unregisterUsage': '用法:`!unregister <project>`',
283
+ 'cmd.channel.notRegistered': '本频道未注册到项目 `${project}`。',
284
+ 'cmd.channel.unregistered': '已将本频道从项目 `${project}` 注销。',
285
+ 'cmd.channel.modalTitle': '添加项目目录',
286
+ 'cmd.channel.modalSubmit': '保存',
287
+ 'cmd.channel.modalProjectLabel': '项目名称',
288
+ 'cmd.channel.modalProjectPlaceholder': '例如 example-project-dataset',
289
+ 'cmd.channel.modalMachineLabel': '机器',
290
+ 'cmd.channel.modalPathLabel': '目录路径',
291
+ 'cmd.channel.modalPathPlaceholder': '例如 /home/user/project',
292
+ 'cmd.channel.dirSet': '`${project}` 在 `${machine}` 上 → `${dir}`',
293
+ 'cmd.channel.projectDirUsage': '用法:`!project-dir <project> <machine> <path>` 或 `!project-dir <project> <machine> --remove`',
294
+ 'cmd.channel.unknownMachine': '未知机器:`${machine}`\n有效:${valid}',
295
+ 'cmd.channel.dirRemoved': '已移除 `${project}` 在 `${machine}` 上的目录。',
296
+ 'cmd.channel.dirShow': '`${project}` 在 `${machine}` 上 → `${dir}`',
297
+ 'cmd.channel.dirNone': '`${project}` 在 `${machine}` 上未注册目录。',
298
+ 'cmd.channel.projectDirsHeader': '*项目目录*\n${list}',
299
+ 'cmd.channel.noProjectDirs': '未注册任何项目目录。',
300
+ 'cmd.channel.addButton': '添加',
301
+ // --- nvtop / nvidia-smi ---
302
+ 'cmd.nvtop.unknownMachineGpu': '未知机器:`${machine}`\nGPU 机器:${valid}',
303
+ 'cmd.nvtop.noGpu': '`${machine}` 没有 GPU。',
304
+ 'cmd.nvtop.deviceOffline': '设备 `${machine}` 不在线。',
305
+ 'cmd.nvtop.smiHeader': '`${machine}` 上的 *nvidia-smi*\n```\n${output}\n```',
306
+ 'cmd.nvtop.noOutput': '(无输出)',
307
+ 'cmd.nvtop.smiFailed': '`${machine}` 上的 nvidia-smi 失败:${error}',
308
+ 'cmd.nvtop.noActive': '本频道没有活动的 nvtop 监视器。',
309
+ 'cmd.nvtop.stopped': '`${machine}` 上的 nvtop 已停止。',
310
+ 'cmd.nvtop.alreadyRunning': 'nvtop 已在运行。请先使用 `!nvtop stop`。',
311
+ 'cmd.nvtop.notSupported': '`${machine}` 暂不支持 nvtop 监控。',
312
+ 'cmd.nvtop.failed': '`${machine}` 上的 nvtop 失败:${error}',
313
+ // --- sendfile ---
314
+ 'cmd.sendfile.fileNotFound': '未找到文件:`${path}`',
315
+ 'cmd.sendfile.notAFile': '不是文件:`${path}`',
316
+ 'cmd.sendfile.sent': '已从 ${machine} 发送 `${name}`(${size} KB)',
317
+ 'cmd.sendfile.fetchFailed': '从 ${machine} 获取失败:${error}',
318
+ 'cmd.sendfile.usage': '用法:`!sendFile <machine> <path>`\n路径可为绝对路径、相对于 Cortex 根目录的路径,或以 `~` 开头',
319
+ 'cmd.sendfile.unknownMachine': '未知机器:`${machine}`。已知:${known}',
320
+ // --- session ---
321
+ 'cmd.session.newConversation': '--- 新对话 ---(配置:${profile})',
322
+ 'cmd.session.notFound': '未找到会话 `${name}`。',
323
+ 'cmd.session.switched': '已切换到会话 `${name}`${profileNote}',
324
+ 'cmd.session.notFoundList': '未找到会话 `${name}`。运行 `!resume` 列出会话。',
325
+ 'cmd.session.profileNote': '(配置:${profile})',
326
+ 'cmd.session.noSessions': '尚无记录的会话。',
327
+ 'cmd.session.recentHeader': '*最近会话*',
328
+ 'cmd.session.activeTag': ' *(活动)*',
329
+ // --- task ---
330
+ 'cmd.task.header': '*`${project}` 的任务* (${shown}/${total})${filterLabel}',
331
+ 'cmd.task.filterLabel': ' — ${filter}',
332
+ 'cmd.task.statusCompleted': '已完成',
333
+ 'cmd.task.statusBlocked': '受阻:${by}',
334
+ 'cmd.task.statusInProgress': '进行中:${by}',
335
+ 'cmd.task.statusPaused': '已暂停',
336
+ 'cmd.task.statusApprovalNeeded': '待审批',
337
+ 'cmd.task.statusActionable': '可执行',
338
+ 'cmd.task.statusOpen': '待办',
339
+ 'cmd.task.statusLine': ' 状态:${status} · 优先级:${priority}',
340
+ 'cmd.task.tagsLine': ' 标签:${tags}',
341
+ 'cmd.task.whyLine': ' 原因:${why}',
342
+ 'cmd.task.doneWhenLine': ' 完成条件:${doneWhen}',
343
+ 'cmd.task.dependsLine': ' 依赖:${depends}',
344
+ 'cmd.task.noneFound': '未找到 ${filter} 任务。',
345
+ 'cmd.task.filterAll': '全部',
346
+ 'cmd.task.filterActionable': '可执行',
347
+ 'cmd.task.filterInProgress': '进行中',
348
+ 'cmd.task.filterBlocked': '受阻',
349
+ 'cmd.task.usage': '用法:`!tasks <project>`',
350
+ 'cmd.task.projectNotFound': '未找到项目:`${project}`',
351
+ 'cmd.task.noTasks': '`${project}` 没有任务。',
352
+ // --- dispatch ---
353
+ 'cmd.dispatch.usage': '用法:`!dispatch <threadId> [--profile <name>]`',
354
+ 'cmd.dispatch.threadNotFound': '未找到线程:`${threadId}`',
355
+ 'cmd.dispatch.notDispatchThread': '线程 `${threadId}` 不是派发线程。',
356
+ 'cmd.dispatch.terminalWarning': '派发 `${threadId}` 状态为 `${status}`。配置覆盖仅在通过 `!thread add` 继续该线程时生效。',
357
+ 'cmd.dispatch.currentOverride': '派发 `${threadId}`:当前 `profileOverride` = `${current}`',
358
+ 'cmd.dispatch.unknownProfile': '未知配置:`${profile}`。使用 `!profile` 查看可用配置。',
359
+ 'cmd.dispatch.overrideSet': '派发 `${threadId}`:`profileOverride` 已设为 `${profile}`。下一步将使用此配置。',
360
+ // --- tail ---
361
+ 'cmd.tail.noActive': '本频道没有活动的 tail。',
362
+ 'cmd.tail.stopped': 'Tail 已停止。',
363
+ 'cmd.tail.preview': '*正在 tail daemon.log*(最后 ${n} 行,每 3 秒刷新)\n```\n${content}\n```\n使用 `!tail stop` 停止。',
364
+ 'cmd.tail.cannotRead': '无法读取 daemon.log:${error}',
365
+ 'cmd.tail.alreadyTailing': '已在 tail。请先使用 `!tail stop` 停止。',
366
+ // --- status / help ---
367
+ 'cmd.status.unavailable': '本进程不支持执行状态报告。',
368
+ 'cmd.status.refreshButton': '刷新',
369
+ 'cmd.help.catSession': '会话',
370
+ 'cmd.help.catConfig': '配置',
371
+ 'cmd.help.catMonitoring': '监控',
372
+ 'cmd.help.catTasks': '任务',
373
+ 'cmd.help.catDevices': '设备',
374
+ 'cmd.help.catThreads': '线程',
375
+ 'cmd.help.session.new': '`!new` — 开始新对话;运行预关闭钩子(`!newq` 跳过)',
376
+ 'cmd.help.session.cancel': '`!cancel [taskId]` — 停止当前任务,或按 id 停止已派发任务',
377
+ 'cmd.help.session.resume': '`!resume [cortex-XXXX]` — 列出最近会话,或切换到某个会话',
378
+ 'cmd.help.config.mode': '`!mode` — 切换 API / Plan 模式',
379
+ 'cmd.help.config.backend': '`!backend` — 切换 Claude Code / Codex 后端',
380
+ 'cmd.help.config.model': '`!model [name]` — 显示或设置 Claude 模型',
381
+ 'cmd.help.config.profile': '`!profile [name]` — 显示当前配置或切换到某个配置',
382
+ 'cmd.help.config.skills': '`!skills` — 列出可用技能',
383
+ 'cmd.help.monitoring.cost': '`!cost [project]` — 显示成本汇总(全局或按项目)',
384
+ 'cmd.help.monitoring.status': '`!status` — 显示运行中的执行汇总',
385
+ 'cmd.help.monitoring.budget': '`!budget $X/d $Y/m` — 设置每日/每月预算',
386
+ 'cmd.help.monitoring.schedule': '`!schedule` — 列出、添加、暂停、恢复或移除定时任务',
387
+ 'cmd.help.tasks.tasks': '`!tasks <project>` — 列出项目的所有任务及详情',
388
+ 'cmd.help.tasks.projects': '`!projects` — 列出项目及其注册的频道',
389
+ 'cmd.help.tasks.register': '`!register <project>` — 注册本频道接收项目任务通知',
390
+ 'cmd.help.tasks.unregister': '`!unregister <project>` — 将本频道从某项目注销',
391
+ 'cmd.help.tasks.projectDir': '`!project-dir` — 按机器管理项目代码目录',
392
+ 'cmd.help.devices.devices': '`!devices` — 显示所有 cortex-client 设备的在线/离线状态',
393
+ 'cmd.help.devices.nvidiaSmi': '`!nvidia-smi [machine]` — 显示 GPU 状态(默认:本地)',
394
+ 'cmd.help.devices.nvtop': '`!nvtop [machine|stop]` — 带 sparkline 视图的实时 GPU 监控',
395
+ 'cmd.help.devices.tail': '`!tail [stop]` — 实时 tail daemon.log',
396
+ 'cmd.help.devices.sendfile': '`!sendFile <machine> <path>` — 向 Slack 发送文件',
397
+ 'cmd.help.threads.thread': '`!thread` — 管理线程:状态、启动、添加 agent、取消、列出 agents/templates',
398
+ 'cmd.help.threads.agent': '`!agent [name|off]` — 显示、设置或禁用默认 agent',
399
+ 'cmd.help.heading': '*命令*',
400
+ 'cmd.help.headingCategory': '*命令 — ${label}*',
401
+ 'cmd.help.selfLine': '`!help` — 显示此消息',
402
+ 'cmd.help.showAll': '全部显示',
403
+ // --- schedule ---
404
+ 'cmd.schedule.none': '没有定时任务。',
405
+ 'cmd.schedule.header': '*定时任务(${n}):*',
406
+ 'cmd.schedule.removeButton': '移除 ${id}',
407
+ 'cmd.schedule.resumeButton': '恢复 ${id}',
408
+ 'cmd.schedule.pauseButton': '暂停 ${id}',
409
+ 'cmd.schedule.now': '现在',
410
+ 'cmd.schedule.paused': '已暂停',
411
+ 'cmd.schedule.nextLabel': '下次',
412
+ // --- device ---
413
+ 'cmd.device.header': '*设备*',
414
+ 'cmd.device.online': '`${name}` ${platform} 连接于 ${connAgo} 心跳 ${hbAgo}',
415
+ 'cmd.device.offline': '`${name}` 离线',
416
+ 'cmd.device.none': '没有已注册或在线的设备。',
417
+ 'cmd.device.refreshButton': '刷新',
418
+ // --- orient ---
419
+ 'cmd.orient.notImplemented': '`!orient` 命令尚未实现。',
420
+ // --- thread ---
421
+ 'cmd.thread.noActive': '本频道没有活动线程。',
422
+ 'cmd.thread.activeHeader': '*活动线程* `${id}`(${mode})',
423
+ 'cmd.thread.statusLine': '状态:${status} | 活动 agent:${agent}',
424
+ 'cmd.thread.stepsLine': '步骤:${steps} | 成本:$${cost}',
425
+ 'cmd.thread.agentsLine': 'Agents:${agents}',
426
+ 'cmd.thread.abortLine': '中止原因:${reason}',
427
+ 'cmd.thread.adHoc': 'ad-hoc',
428
+ 'cmd.thread.noTemplates': '未配置线程模板。',
429
+ 'cmd.thread.templatesHeader': '*可用线程模板*',
430
+ 'cmd.thread.templateLine': '`${name}` — ${description} [agents: ${agents}]',
431
+ 'cmd.thread.agentsTitle': '*可用 Agents*',
432
+ 'cmd.thread.agentLine': '`${name}`(${profile})— ${description}',
433
+ 'cmd.thread.noAgents': '未配置 agents。',
434
+ 'cmd.thread.activeThreadHeader': '*活动线程* `${id}`',
435
+ 'cmd.thread.noSession': '无会话',
436
+ 'cmd.thread.slotLine': '*${slotId}*(${profile})— ${status} | ${session}',
437
+ 'cmd.thread.cancelledSessionPreserved': '已取消。会话已保留——下一条消息将继续。',
438
+ 'cmd.thread.nothingRunning': '没有正在运行的任务可取消。',
439
+ 'cmd.thread.noThreadsChannel': '本频道未找到线程。',
440
+ 'cmd.thread.recentHeader': '*最近线程*',
441
+ 'cmd.thread.recentLine': '`${id}` ${mode} — ${status} | ${steps} steps | $${cost}',
442
+ 'cmd.thread.noRunning': '没有运行中的线程。',
443
+ 'cmd.thread.runningHeader': '*运行中的线程*',
444
+ 'cmd.thread.runningLine': '`${id}` — ${channel} | ${mode} | ${steps} step(s) | $${cost}',
445
+ 'cmd.thread.usageHeader': '*线程命令*',
446
+ 'cmd.thread.usageStatus': '`!thread` — 显示活动线程状态',
447
+ 'cmd.thread.usageAgents': '`!thread agents` — 列出可用 agents',
448
+ 'cmd.thread.usageTemplates': '`!thread templates` — 列出可用模板',
449
+ 'cmd.thread.usageAdHoc': '`!thread <agent> <message>` — 用单个 agent 启动临时线程',
450
+ 'cmd.thread.usageTemplate': '`!thread <template> <message>` — 启动基于模板的线程',
451
+ 'cmd.thread.usageAdd': '`!thread add <agent> [message]` — 向当前线程添加 agent',
452
+ 'cmd.thread.usageCancel': '`!cancel` — 取消活动线程(也可用 `!thread cancel`)',
453
+ 'cmd.thread.usageList': '`!thread list` — 列出最近线程',
454
+ 'cmd.thread.usageListRunning': '`!thread list --running` — 列出跨频道的运行中线程',
455
+ // --- cost / budget ---
456
+ 'cmd.cost.budgetHeader': '*预算*\n• 每日:$${dailyBudget}(已用:$${dailySpent},剩余:$${dailyRemaining})\n• 每月:$${monthlyBudget}(已用:$${monthlySpent},剩余:$${monthlyRemaining})',
457
+ 'cmd.cost.budgetUpdated': '预算已更新:$${daily}/天,$${monthly}/月',
458
+ // --- index ---
459
+ 'cmd.unknown': '未知命令:`${cmd}`。运行 `!help` 查看可用命令。',
460
+ 'cmd.error': '命令错误:${error}',
461
+ 'cmd.errorUnknown': '未知错误',
462
+ };
@@ -0,0 +1,121 @@
1
+ export declare const initEn: {
2
+ readonly 'init.clipboard.prompt': "\nPress \"c\" to copy manifest to clipboard (any other key to skip)...";
3
+ readonly 'init.clipboard.copied': "Manifest copied to clipboard!";
4
+ readonly 'init.clipboard.failed': "Could not copy. If running in a terminal, ensure OSC 52 is enabled.";
5
+ readonly 'init.clipboard.manual': "The manifest text is shown above — please copy it manually.";
6
+ readonly 'init.backend.alreadyInstalled': "${label} is already installed.";
7
+ readonly 'init.backend.installing': "Installing ${label}...";
8
+ readonly 'init.backend.installed': "${label} installed successfully.";
9
+ readonly 'init.backend.installFailed': "Failed to install ${label}.";
10
+ readonly 'init.backend.installFailedHint': "Installation failed. Install manually: ${command}";
11
+ readonly 'init.backend.loginHint.claude': "Run `claude login` to authenticate.";
12
+ readonly 'init.backend.loginHint.pi': "Configure your provider in PI settings.";
13
+ readonly 'init.backend.label.claude': "Claude Code";
14
+ readonly 'init.backend.label.pi': "PI";
15
+ readonly 'init.service.launchdWritten': "launchd plist written to ${path}";
16
+ readonly 'init.service.launchdStartHint': "To start now: launchctl load ${path}";
17
+ readonly 'init.service.systemdUserWritten': "systemd unit written to ${path}";
18
+ readonly 'init.service.systemdUserEnableHint': "To enable: sudo systemctl --user enable --now cortex";
19
+ readonly 'init.service.systemdInstalled': "systemd unit installed to ${path}";
20
+ readonly 'init.service.systemdEnableHint': "To enable: sudo systemctl enable --now cortex";
21
+ readonly 'init.service.systemInstallFailed': "Failed to install system service: ${message}";
22
+ readonly 'init.service.noSudo': "No sudo access. Service file saved locally.";
23
+ readonly 'init.service.manualInstallHint': "To install manually:\n sudo cp ${localPath} ${systemPath}\n sudo systemctl daemon-reload\n sudo systemctl enable --now cortex";
24
+ readonly 'init.service.unsupported': "Service registration is not supported on ${platform}. Start Cortex manually with `cortex daemon`.";
25
+ readonly 'init.cancel': "Init cancelled.";
26
+ readonly 'init.slack.manifestTitle': "Slack App Manifest — copy and paste when creating the app";
27
+ readonly 'init.slack.guide': string;
28
+ readonly 'init.slack.guideTitle': "Slack App Setup Guide";
29
+ readonly 'init.slack.prefillFound': "Found existing Slack configuration. Press Enter to skip, or type anything to re-enter.";
30
+ readonly 'init.slack.skipPrompt': "Skip Slack configuration? (Enter = skip, any key + Enter = re-enter)";
31
+ readonly 'init.slack.skipPlaceholder': "Press Enter to skip";
32
+ readonly 'init.slack.signingSecretPrompt': "Step 1/3: SLACK_SIGNING_SECRET (from Basic Information):";
33
+ readonly 'init.slack.signingSecretRequired': "Signing secret is required.";
34
+ readonly 'init.slack.appTokenPrompt': "Step 2/3: SLACK_APP_TOKEN (App-Level Token, starts with xapp-):";
35
+ readonly 'init.slack.appTokenRequired': "App token is required.";
36
+ readonly 'init.slack.appTokenPrefix': "Token should start with xapp-";
37
+ readonly 'init.slack.botTokenPrompt': "Step 3/3: SLACK_BOT_TOKEN (Bot User OAuth Token, starts with xoxb-):";
38
+ readonly 'init.slack.botTokenRequired': "Bot token is required.";
39
+ readonly 'init.slack.botTokenPrefix': "Token should start with xoxb-";
40
+ readonly 'init.feishu.guide': string;
41
+ readonly 'init.feishu.guideTitle': "Feishu App Setup Guide";
42
+ readonly 'init.feishu.appIdPrompt': "FEISHU_APP_ID:";
43
+ readonly 'init.feishu.appIdRequired': "App ID is required.";
44
+ readonly 'init.feishu.appSecretPrompt': "FEISHU_APP_SECRET:";
45
+ readonly 'init.feishu.appSecretRequired': "App secret is required.";
46
+ readonly 'init.feishu.domainPrompt': "FEISHU_DOMAIN (optional, \"feishu\" or \"lark\"):";
47
+ readonly 'init.feishu.domainPlaceholder': "feishu (leave blank to use default)";
48
+ readonly 'init.feishu.authModePrompt': "Identity for MCP document operations:";
49
+ readonly 'init.feishu.authModeBotLabel': "bot";
50
+ readonly 'init.feishu.authModeBotHint': "documents owned by the app";
51
+ readonly 'init.feishu.authModeUserLabel': "user (Recommended)";
52
+ readonly 'init.feishu.authModeUserHint': "documents owned by your Feishu account";
53
+ readonly 'init.feishu.loginStarting': "Starting Feishu user login (OAuth device flow)...";
54
+ readonly 'init.feishu.loginComplete': "Feishu user login complete.";
55
+ readonly 'init.feishu.loginIncomplete': "Feishu user login did not complete. Retry later with `cortex feishu login`.";
56
+ readonly 'init.intro': "Cortex Setup";
57
+ readonly 'init.backend.noteBody': "Both Claude Code and PI support API key access to any model.";
58
+ readonly 'init.backend.noteTitle': "Backend info";
59
+ readonly 'init.backend.prompt': "Which backends would you like to use?";
60
+ readonly 'init.backend.claudeLabel': "Claude Code";
61
+ readonly 'init.backend.claudeHint': "recommended, for Claude subscription";
62
+ readonly 'init.backend.piLabel': "PI";
63
+ readonly 'init.backend.piHint': "for other subscription";
64
+ readonly 'init.platform.prompt': "Which interaction platform(s) would you like to use? (space to toggle, enter to confirm, leave empty to skip)";
65
+ readonly 'init.platform.slackLabel': "Slack";
66
+ readonly 'init.platform.slackHint': "recommended";
67
+ readonly 'init.platform.feishuLabel': "Feishu (飞书)";
68
+ readonly 'init.machine.prompt': "Machine name for this device:";
69
+ readonly 'init.machine.required': "Machine name is required.";
70
+ readonly 'init.machine.gpuDetected': "Detected ${count} NVIDIA GPU(s)";
71
+ readonly 'init.machine.gpuNone': "No NVIDIA GPU detected (gpuCount=0)";
72
+ readonly 'init.gateway.note': string;
73
+ readonly 'init.gateway.noteTitle': "Gateway & aistatus";
74
+ readonly 'init.gateway.enablePrompt': "Enable token usage reporting to aistatus?";
75
+ readonly 'init.gateway.namePrompt': "Name:";
76
+ readonly 'init.gateway.namePlaceholder': "your name";
77
+ readonly 'init.gateway.orgPrompt': "Organization:";
78
+ readonly 'init.gateway.orgPlaceholder': "your organization";
79
+ readonly 'init.gateway.emailPrompt': "Email (identity only, not displayed):";
80
+ readonly 'init.gateway.emailPlaceholder': "you@example.com";
81
+ readonly 'init.serviceRegister.prompt': "Register Cortex as a system service (auto-start on boot)?";
82
+ readonly 'init.gatewaySetup.overwritePrompt': "Existing `plan` or `execute` profile detected. Overwrite with a new selection?";
83
+ readonly 'init.gatewaySetup.planPrompt': "Pick model for the `plan` profile (used by executor agents — planner, doc-writer, coder, etc.):";
84
+ readonly 'init.gatewaySetup.executePrompt': "Pick model for the `execute` profile (used by reviewer agents — reviewer, doc-reviewer, coder-reviewer, etc.):";
85
+ readonly 'init.gatewaySetup.planFallbackPrompt': "Pick fallback models for `plan` (in order, space to toggle, enter to confirm, leave empty for no fallback):";
86
+ readonly 'init.gatewaySetup.executeFallbackPrompt': "Pick fallback models for `execute` (in order, space to toggle, enter to confirm, leave empty for no fallback):";
87
+ 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):";
88
+ readonly 'init.gatewaySetup.noBackends': "No backends discovered. Make sure you have logged into Claude Code and/or PI first.";
89
+ readonly 'init.gatewaySetup.rerunHint': "You can re-run detection later with: cortex setup-gateway";
90
+ readonly 'init.gatewaySetup.discovered': "Discovered ${count} endpoint modes:\n${summary}";
91
+ readonly 'init.gatewaySetup.gatewayWritten': "Gateway config written to ${path}";
92
+ readonly 'init.gatewaySetup.preservedModes': "Preserved ${count} existing gateway mode(s) that discovery did not report: ${list}";
93
+ readonly 'init.gatewaySetup.preservedModesHint': "If these should have been auto-detected, check `pi /login` / `pi --list-models` and re-run.";
94
+ readonly 'init.gatewaySetup.profilesWritten': "Profiles written to ${path}";
95
+ readonly 'init.gatewaySetup.generatedProfiles': "Generated profiles: ${names} (default: ${default})";
96
+ readonly 'init.gatewaySetup.profileIssues': "${count} profile(s) reference a gateway mode that is not configured:\n${lines}";
97
+ readonly 'init.gatewaySetup.profileIssuesHint': "These would fail at runtime with \"Unknown mode\". Add the mode to gateway.yaml or fix the profile.";
98
+ readonly 'init.gatewayProfile.note': string;
99
+ readonly 'init.gatewayProfile.noteTitle': "Gateway & Profile Setup";
100
+ readonly 'init.gatewayProfile.readyPrompt': "Have you logged in and are ready to auto-detect?";
101
+ readonly 'init.gatewayProfile.loginNow': "Please log in now. Once done, come back and select \"Yes\".\n${loginHints}";
102
+ readonly 'init.gatewayProfile.actionPrompt': "What would you like to do?";
103
+ readonly 'init.gatewayProfile.retryLabel': "I've logged in, retry detection";
104
+ readonly 'init.gatewayProfile.skipLabel': "Skip for now (run `cortex setup-gateway` later)";
105
+ readonly 'init.gatewayProfile.skipped': "Skipped. Run `cortex setup-gateway` later to auto-configure.";
106
+ readonly 'init.outro': "Cortex initialized at ${dataDir}. Run `cortex start` to launch.";
107
+ readonly 'init.git.required': "Git is required but was not found on your system.";
108
+ readonly 'init.git.initFailed': "git init failed: ${message}";
109
+ readonly 'init.git.autoInstalling': "Attempting automatic git installation...";
110
+ readonly 'init.git.installed': "Git installed successfully.";
111
+ readonly 'init.git.notOnPath': "Git was installed but is not on PATH. You may need to restart your shell.";
112
+ readonly 'init.git.autoInstallFailed': "Automatic installation failed.";
113
+ readonly 'init.git.manualHint': "Please install git manually: ${hint}";
114
+ readonly 'init.config.title': "Cortex configuration:";
115
+ readonly 'init.config.statusTitle': "Status:";
116
+ readonly 'init.config.initialized': "initialized";
117
+ readonly 'init.config.notInitialized': "not initialized";
118
+ readonly 'init.config.found': "found";
119
+ readonly 'init.config.missing': "missing";
120
+ };
121
+ export declare const initZh: Record<keyof typeof initEn, string>;