@cortex-agent/server 2026.10.28 → 2026.12.5

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 (401) hide show
  1. package/LICENSE +255 -21
  2. package/README.md +36 -7
  3. package/THIRD_PARTY_NOTICES.txt +1990 -593
  4. package/defaults/hooks/cortex-hook-api.mjs +2 -1
  5. package/defaults/hooks/quota-stop.mjs +37 -0
  6. package/defaults/plugins/cortex-system/skills/client-manage/SKILL.md +23 -15
  7. package/defaults/prompts/clean-workspace.md +5 -0
  8. package/dist/agent-adapter/claude/remote-mcp-proxy.js +1 -1
  9. package/dist/chunks/agent-runner-LVZVKBZX.js +4 -0
  10. package/dist/chunks/anthropic-messages-TT6454AA.js +8 -0
  11. package/dist/chunks/azure-openai-responses-52LR2XZD.js +4 -0
  12. package/dist/chunks/bedrock-converse-stream-EOZGYUNY.js +60 -0
  13. package/dist/chunks/bowser-MLGGLXTZ.js +20 -0
  14. package/dist/chunks/child-runner-SMG2VOU5.js +4 -0
  15. package/dist/chunks/chunk-24DH4IR5.js +4 -0
  16. package/dist/chunks/chunk-25XKBRDT.js +70 -0
  17. package/dist/chunks/chunk-2ABET62E.js +23 -0
  18. package/dist/chunks/chunk-2BVUA256.js +4 -0
  19. package/dist/chunks/{chunk-LEUENXI2.js → chunk-2WFL62UO.js} +1 -1
  20. package/dist/chunks/{chunk-OZGBWAT2.js → chunk-2YTYYG4K.js} +1 -1
  21. package/dist/chunks/chunk-335SSANX.js +4 -0
  22. package/dist/chunks/chunk-377OPTXX.js +17 -0
  23. package/dist/chunks/chunk-3EZNVLBF.js +129 -0
  24. package/dist/chunks/chunk-3O6ZG5HA.js +7 -0
  25. package/dist/chunks/{chunk-6AKUD3CF.js → chunk-3XLHL5YT.js} +1 -1
  26. package/dist/chunks/chunk-4HRI75GU.js +4 -0
  27. package/dist/chunks/chunk-4JBYLRPM.js +57 -0
  28. package/dist/chunks/chunk-4KKV7VKE.js +4 -0
  29. package/dist/chunks/chunk-4KQHDDC5.js +4 -0
  30. package/dist/chunks/chunk-4SWD4JMP.js +33 -0
  31. package/dist/chunks/chunk-52VCLZS5.js +4 -0
  32. package/dist/chunks/chunk-54P7TSY3.js +10 -0
  33. package/dist/chunks/chunk-5DVSAXOI.js +7 -0
  34. package/dist/chunks/chunk-5F3A62YS.js +4 -0
  35. package/dist/chunks/{chunk-XNSSUVT6.js → chunk-5FHETFZM.js} +1 -1
  36. package/dist/chunks/{chunk-A34TDMIC.js → chunk-5LBLRAHS.js} +1 -1
  37. package/dist/chunks/chunk-5UYVNA3W.js +4 -0
  38. package/dist/chunks/chunk-6G3OYMCV.js +21 -0
  39. package/dist/chunks/chunk-7GGPYU5E.js +30 -0
  40. package/dist/chunks/chunk-7TYSMLUV.js +4 -0
  41. package/dist/chunks/chunk-7W7VYUTK.js +5 -0
  42. package/dist/chunks/chunk-AXYAZTTN.js +6 -0
  43. package/dist/chunks/{chunk-BGVHA2D4.js → chunk-B3NB243Z.js} +1 -1
  44. package/dist/chunks/chunk-BKYP6AGM.js +8 -0
  45. package/dist/chunks/chunk-BVEDNESB.js +4 -0
  46. package/dist/chunks/chunk-BWDJS6A4.js +12 -0
  47. package/dist/chunks/chunk-C6YVF7EI.js +4 -0
  48. package/dist/chunks/chunk-CEJIYYVE.js +15 -0
  49. package/dist/chunks/chunk-CI2RHH74.js +50 -0
  50. package/dist/chunks/chunk-CMSOOLJB.js +4 -0
  51. package/dist/chunks/chunk-CSVTYYLP.js +4 -0
  52. package/dist/chunks/chunk-DE5EGVKG.js +6 -0
  53. package/dist/chunks/{chunk-E6BYRULL.js → chunk-DK3RPZOQ.js} +1 -1
  54. package/dist/chunks/{chunk-YPK2CAIZ.js → chunk-DK4UCK7L.js} +1 -1
  55. package/dist/chunks/chunk-DYLBVUAU.js +4 -0
  56. package/dist/chunks/chunk-FDC2GRBK.js +27 -0
  57. package/dist/chunks/chunk-FE7HH5JS.js +18 -0
  58. package/dist/chunks/chunk-FYD57YRO.js +436 -0
  59. package/dist/chunks/chunk-G264APQN.js +5 -0
  60. package/dist/chunks/chunk-G4JYZFEO.js +11 -0
  61. package/dist/chunks/chunk-GFFM56U2.js +4 -0
  62. package/dist/chunks/chunk-GOS3P7KS.js +132 -0
  63. package/dist/chunks/chunk-HVN37UXD.js +4 -0
  64. package/dist/chunks/chunk-IA6IODY3.js +4 -0
  65. package/dist/chunks/{chunk-HU6UIDEJ.js → chunk-IGZWZP7Z.js} +1 -1
  66. package/dist/chunks/{chunk-NR6U3WIZ.js → chunk-IJ7XFQMI.js} +1 -1
  67. package/dist/chunks/chunk-IMMGYDAB.js +6 -0
  68. package/dist/chunks/chunk-IOWBF7UK.js +10 -0
  69. package/dist/chunks/{chunk-HALUQ7ZF.js → chunk-ITGCWQFK.js} +1 -1
  70. package/dist/chunks/chunk-IVZ7QUEG.js +4 -0
  71. package/dist/chunks/{chunk-YAEVYJAR.js → chunk-IWY2HIFK.js} +1 -1
  72. package/dist/chunks/{chunk-KGJZAYQD.js → chunk-J7OBATRN.js} +1 -1
  73. package/dist/chunks/{chunk-QWAQHHRS.js → chunk-JGUEIW2W.js} +1 -1
  74. package/dist/chunks/chunk-JKL3AK5D.js +106 -0
  75. package/dist/chunks/chunk-JZ7U7RUK.js +351 -0
  76. package/dist/chunks/chunk-KJUQCCB5.js +4 -0
  77. package/dist/chunks/chunk-KST6OY76.js +10 -0
  78. package/dist/chunks/chunk-KZSAFVSY.js +129 -0
  79. package/dist/chunks/chunk-LD2ZSH3M.js +903 -0
  80. package/dist/chunks/chunk-LE6QPXN6.js +7 -0
  81. package/dist/chunks/chunk-LEAV3FFG.js +4 -0
  82. package/dist/chunks/chunk-LIIZI3HY.js +5 -0
  83. package/dist/chunks/chunk-LP72AF56.js +45 -0
  84. package/dist/chunks/{chunk-FXDIR3SQ.js → chunk-MJQ2D2OP.js} +1 -1
  85. package/dist/chunks/{chunk-6LZK4DDH.js → chunk-NHHR4DCF.js} +1 -1
  86. package/dist/chunks/chunk-NW4GW47L.js +4 -0
  87. package/dist/chunks/chunk-OALEJ6FG.js +60 -0
  88. package/dist/chunks/chunk-OIV4DIMB.js +4 -0
  89. package/dist/chunks/chunk-OJ37ZWBG.js +4 -0
  90. package/dist/chunks/chunk-OZXMPBUX.js +4 -0
  91. package/dist/chunks/{chunk-3THJYAEF.js → chunk-PG7452XE.js} +1 -1
  92. package/dist/chunks/chunk-PJCUB7YJ.js +4 -0
  93. package/dist/chunks/chunk-PTS3J4DQ.js +6 -0
  94. package/dist/chunks/{chunk-PXS5SHOV.js → chunk-PVVEEBUU.js} +1 -1
  95. package/dist/chunks/chunk-Q7BZLPBU.js +8 -0
  96. package/dist/chunks/{chunk-FOJQXLL2.js → chunk-QC66ZXPP.js} +1 -1
  97. package/dist/chunks/chunk-QXFWIL4C.js +4 -0
  98. package/dist/chunks/{chunk-PFMEUFJ7.js → chunk-R2CCD4OF.js} +1 -1
  99. package/dist/chunks/chunk-R6CGBSTC.js +22 -0
  100. package/dist/chunks/chunk-RG5GP4RB.js +5 -0
  101. package/dist/chunks/{chunk-D3NXKK2L.js → chunk-RW2F2QNP.js} +1 -1
  102. package/dist/chunks/{models-L5VF4I5O-XXNJYQMQ.js → chunk-RWPO3NZ3.js} +1 -1
  103. package/dist/chunks/chunk-SAJD4EKE.js +10 -0
  104. package/dist/chunks/chunk-SDUS2H3E.js +4 -0
  105. package/dist/chunks/chunk-SIHGKM4E.js +4 -0
  106. package/dist/chunks/chunk-SKHFU5DI.js +4 -0
  107. package/dist/chunks/{chunk-STUHNKQS.js → chunk-SM45TH22.js} +1 -1
  108. package/dist/chunks/chunk-T54CZKNJ.js +6 -0
  109. package/dist/chunks/chunk-TKFFQNAP.js +19 -0
  110. package/dist/chunks/chunk-TMV2ZDOI.js +18 -0
  111. package/dist/chunks/chunk-TRXLIL7V.js +4 -0
  112. package/dist/chunks/{chunk-SUFW24P4.js → chunk-UEEW2R4E.js} +1 -1
  113. package/dist/chunks/chunk-UHXPRU6G.js +10 -0
  114. package/dist/chunks/chunk-UPQVWHZ3.js +4 -0
  115. package/dist/chunks/{chunk-JERCOLY3.js → chunk-V35MFAUQ.js} +4 -6
  116. package/dist/chunks/chunk-V7K3KNDM.js +4 -0
  117. package/dist/chunks/chunk-VHX2GHBF.js +4 -0
  118. package/dist/chunks/chunk-VOAKRJ4R.js +4 -0
  119. package/dist/chunks/{chunk-X2GYYRVM.js → chunk-VW7TLY3P.js} +1 -1
  120. package/dist/chunks/chunk-W34AK4SK.js +65 -0
  121. package/dist/chunks/{chunk-REBNWCKI.js → chunk-WU7RNAZD.js} +1 -1
  122. package/dist/chunks/chunk-WZC4TDDM.js +6 -0
  123. package/dist/chunks/chunk-WZYS2HAK.js +4 -0
  124. package/dist/chunks/chunk-X2TKJ7KR.js +11 -0
  125. package/dist/chunks/{chunk-H2FP6DG4.js → chunk-X5ND4H4P.js} +1 -1
  126. package/dist/chunks/{chunk-4U7XXM4W.js → chunk-Y3AOGNDT.js} +1 -1
  127. package/dist/chunks/chunk-Y6DGVTKM.js +6 -0
  128. package/dist/chunks/{chunk-KENCMLRE.js → chunk-YAEHSSR4.js} +1 -1
  129. package/dist/chunks/chunk-YWPBE5LP.js +4 -0
  130. package/dist/chunks/chunk-ZAVX7G2M.js +15 -0
  131. package/dist/chunks/chunk-ZD2M73XA.js +19 -0
  132. package/dist/chunks/chunk-ZD4O6NPV.js +4 -0
  133. package/dist/chunks/chunk-ZNAMETPQ.js +4 -0
  134. package/dist/chunks/chunk-ZY6N5LVQ.js +4 -0
  135. package/dist/chunks/chunk-ZYQ4TDTT.js +81 -0
  136. package/dist/chunks/cli-VB2N7HEK.js +55 -0
  137. package/dist/chunks/cloudflare-workers-ai-system-one-YKU742EC.js +4 -0
  138. package/dist/chunks/context-CI2FKEQE.js +4 -0
  139. package/dist/chunks/cost-CZRRSIUF.js +5 -0
  140. package/dist/chunks/dist-QCNQN6DY.js +4 -0
  141. package/dist/chunks/easter-egg-3d-XR5S2O3T.js +4 -0
  142. package/dist/chunks/{event-streams-3JSFPOTZ.js → event-streams-AVE4MSS6.js} +1 -1
  143. package/dist/chunks/{execution-repo-ZLJTBWFC.js → execution-repo-5TLV2NM4.js} +1 -1
  144. package/dist/chunks/{executions-6ARGR3IO.js → executions-I3UUIGSL.js} +1 -1
  145. package/dist/chunks/file-Y5G56IUT.js +4 -0
  146. package/dist/chunks/github-copilot-BRU2SRRZ.js +4 -0
  147. package/dist/chunks/google-generative-ai-ZF5QEUZV.js +4 -0
  148. package/dist/chunks/google-vertex-4PJZZI3Y.js +4 -0
  149. package/dist/chunks/init-A6GY656J.js +4 -0
  150. package/dist/chunks/{install-cli-4IZCSDFZ.js → install-cli-FALWKQYO.js} +1 -1
  151. package/dist/chunks/{interaction-ask-G5T3H3CG.js → interaction-ask-O5HGF6CH.js} +1 -1
  152. package/dist/chunks/{interaction-plan-E5V42MUP.js → interaction-plan-JTVDN3BC.js} +1 -1
  153. package/dist/chunks/kimi-coding-ZCIBMDZ6.js +4 -0
  154. package/dist/chunks/{llama-cpp-classify-OTXZWCMW.js → llama-cpp-classify-NRUXAIGQ.js} +3 -3
  155. package/dist/chunks/local-client-stop-RS4AHNF4.js +4 -0
  156. package/dist/chunks/{memory-cli-PYOILNN5.js → memory-cli-DIT4DQF3.js} +1 -1
  157. package/dist/chunks/meta-JQH66YU7.js +4 -0
  158. package/dist/chunks/mistral-conversations-CXHOECUV.js +7 -0
  159. package/dist/chunks/model-resolver-GIBPYRKP.js +4 -0
  160. package/dist/chunks/monitor-Z2HKNY5E.js +4 -0
  161. package/dist/chunks/{node-PTK2HCDV.js → node-DAO3SX7O.js} +1 -1
  162. package/dist/chunks/{openai-codex-2REL6UQU.js → openai-codex-JULCKICT.js} +1 -1
  163. package/dist/chunks/openai-codex-responses-U6DGMGDK.js +12 -0
  164. package/dist/chunks/openai-completions-PP4XLLOM.js +9 -0
  165. package/dist/chunks/{openai-decisions-2N6ZRPZC.js → openai-decisions-JU6QQKEM.js} +1 -1
  166. package/dist/chunks/openai-responses-2SG757TL.js +6 -0
  167. package/dist/chunks/openrouter-images-32M7YZWC.js +4 -0
  168. package/dist/chunks/pi-messages-VSINMXN4.js +10 -0
  169. package/dist/chunks/radius-THYKWV4E.js +4 -0
  170. package/dist/chunks/remote-ops-2WBEFQ3E.js +14 -0
  171. package/dist/chunks/runner-5MKMRTIN.js +4 -0
  172. package/dist/chunks/runtime-DST3H5JP.js +4 -0
  173. package/dist/chunks/schedule-cli-V7Y2BBVY.js +4 -0
  174. package/dist/chunks/slack-R7SEJYMY.js +4 -0
  175. package/dist/chunks/start-ui-http-7K5JOLPU.js +43 -0
  176. package/dist/chunks/subagent-Z5IQ4L54.js +4 -0
  177. package/dist/chunks/{time-KEHDQT6K.js → time-P6PE52WL.js} +1 -1
  178. package/dist/chunks/tool-shims-YCXZWTST.js +4 -0
  179. package/dist/chunks/typesafe-system-one-M2DABJSZ.js +4 -0
  180. package/dist/chunks/ui-board-HQIE4RZG.js +5 -0
  181. package/dist/chunks/ui-decision-YBZDS4YW.js +4 -0
  182. package/dist/chunks/{ui-file-GVH53O3X.js → ui-file-SRD4ILBS.js} +1 -1
  183. package/dist/chunks/ui-view-Z25MTZT7.js +4 -0
  184. package/dist/chunks/virtual-modules-H4DXPJZB.js +4 -0
  185. package/dist/chunks/waitpoint-M6JZBSLT.js +5 -0
  186. package/dist/chunks/workers-SQ2R32TK.js +4 -0
  187. package/dist/client-bundle/client.mjs +273 -93
  188. package/dist/client-bundle/manifest.json +2 -2
  189. package/dist/core/pi-sdk.js +1 -1
  190. package/dist/domain/auth/cc-auth-cli.js +1 -1
  191. package/dist/domain/mcp/bundled-server.js +1 -1
  192. package/dist/domain/mcp/feishu/client.js +4 -0
  193. package/dist/entry/app.js +151 -559
  194. package/dist/entry/browser-cli.js +10 -10
  195. package/dist/entry/cli.js +1 -1
  196. package/dist/entry/cortex-cli.js +1 -1
  197. package/dist/entry/daemon.js +4 -4
  198. package/dist/entry/hook-cli.js +2 -2
  199. package/dist/entry/production-app-bootstrap.js +1 -1
  200. package/dist/entry/production-evidence-export-cli.js +1 -1
  201. package/dist/entry/signal-cli.js +2 -2
  202. package/dist/tui/index.js +41 -41
  203. package/package.json +3 -3
  204. package/vendor/pi/CHANGELOG.md +330 -0
  205. package/vendor/pi/dist/codemode-worker.js +2 -0
  206. package/vendor/pi/dist/core/export-html/ansi-to-html.js +57 -20
  207. package/vendor/pi/dist/core/export-html/template.css +9 -0
  208. package/vendor/pi/dist/core/export-html/template.js +166 -46
  209. package/vendor/pi/dist/core/export-html/tool-renderer.js +5 -3
  210. package/vendor/pi/dist/core/extensions/loader.js +1 -1
  211. package/vendor/pi/dist/extensions/codemode/execute.js +15 -13
  212. package/vendor/pi/dist/modes/interactive/theme/theme.js +36 -23
  213. package/vendor/pi/dist/utils/image-resize-worker.js +1 -1
  214. package/vendor/pi/dist/utils/image-resize.js +1 -1
  215. package/vendor/pi/docs/cli.md +35 -12
  216. package/vendor/pi/docs/custom-provider.md +2 -0
  217. package/vendor/pi/docs/environment-variables.md +2 -0
  218. package/vendor/pi/docs/extensions.md +3192 -225
  219. package/vendor/pi/docs/keybindings.md +2 -2
  220. package/vendor/pi/docs/llama-cpp.md +27 -19
  221. package/vendor/pi/docs/mcp.md +6 -4
  222. package/vendor/pi/docs/message-types.md +1 -1
  223. package/vendor/pi/docs/models-configuration.md +9 -3
  224. package/vendor/pi/docs/models.md +2 -1
  225. package/vendor/pi/docs/nvidia-rtx-llama-cpp.md +5 -5
  226. package/vendor/pi/docs/packages.md +24 -0
  227. package/vendor/pi/docs/prompt-templates.md +1 -1
  228. package/vendor/pi/docs/providers.md +4 -2
  229. package/vendor/pi/docs/quickstart.md +7 -3
  230. package/vendor/pi/docs/rpc-commands.md +1 -1
  231. package/vendor/pi/docs/rpc.md +4 -2
  232. package/vendor/pi/docs/sessions.md +17 -3
  233. package/vendor/pi/docs/settings.md +6 -5
  234. package/vendor/pi/docs/slash-commands.md +3 -2
  235. package/vendor/pi/docs/terminal-setup.md +3 -1
  236. package/vendor/pi/docs/tmux.md +6 -0
  237. package/vendor/pi/docs/tui.md +4 -0
  238. package/vendor/pi/docs/windows.md +27 -0
  239. package/vendor/pi/examples/extensions/README.md +2 -1
  240. package/vendor/pi/examples/extensions/custom-provider-anthropic/index.ts +27 -31
  241. package/vendor/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  242. package/vendor/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
  243. package/vendor/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  244. package/vendor/pi/examples/extensions/debug-provider.ts +2 -2
  245. package/vendor/pi/examples/extensions/gondolin/index.ts +4 -7
  246. package/vendor/pi/examples/extensions/gondolin/package-lock.json +19 -29
  247. package/vendor/pi/examples/extensions/gondolin/package.json +2 -2
  248. package/vendor/pi/examples/extensions/plan-mode/index.ts +23 -13
  249. package/vendor/pi/examples/extensions/plan-mode/utils.ts +42 -16
  250. package/vendor/pi/examples/extensions/preset.ts +2 -0
  251. package/vendor/pi/examples/extensions/reload-runtime.ts +17 -5
  252. package/vendor/pi/examples/extensions/subagent/README.md +14 -11
  253. package/vendor/pi/examples/extensions/subagent/index.ts +392 -171
  254. package/vendor/pi/examples/extensions/todo.ts +7 -0
  255. package/vendor/pi/examples/extensions/tools.ts +2 -0
  256. package/vendor/pi/examples/extensions/with-deps/package-lock.json +2 -2
  257. package/vendor/pi/examples/extensions/with-deps/package.json +1 -1
  258. package/vendor/pi/examples/tsconfig.json +208 -0
  259. package/vendor/pi/package.json +15 -16
  260. package/vendor/pi/schemas/models.schema.json +66 -37
  261. package/vendor/pi/schemas/settings.schema.json +18 -1
  262. package/vendor/pi-ai/bedrock.js +1 -1
  263. package/vendor/pi-ai/oauth-load.js +1 -1
  264. package/web/dist/assets/{board-math-css-BPXakv_3.js → board-math-css-DKX6FcUS.js} +1 -1
  265. package/web/dist/assets/index-D11wi0uG.js +540 -0
  266. package/web/dist/assets/index-JedYumhY.css +1 -0
  267. package/web/dist/assets/{index-WCm6wwmM.js → index-jl30Gy8P.js} +1 -1
  268. package/web/dist/assets/pdf-worker-DdZgk2mV.js +57 -0
  269. package/web/dist/assets/pdf.worker.min-Bz_KHX45.js +55 -0
  270. package/web/dist/index.html +2 -2
  271. package/web/dist/theme.css +22 -0
  272. package/dist/chunks/anthropic-messages-M3SMXACA.js +0 -8
  273. package/dist/chunks/api-GM53PHIL-GFHEXXE6.js +0 -4
  274. package/dist/chunks/azure-openai-responses-76YWXHSB.js +0 -4
  275. package/dist/chunks/bedrock-converse-stream-5UPX4NTQ.js +0 -58
  276. package/dist/chunks/child-runner-3GHOWGZP.js +0 -4
  277. package/dist/chunks/chunk-2ZNLUY2U.js +0 -128
  278. package/dist/chunks/chunk-3F6WW7HR.js +0 -13
  279. package/dist/chunks/chunk-3OKHUVEM.js +0 -7
  280. package/dist/chunks/chunk-3YHOCPQU.js +0 -10
  281. package/dist/chunks/chunk-4EX2JJWB.js +0 -4
  282. package/dist/chunks/chunk-4LLH5OWM.js +0 -10
  283. package/dist/chunks/chunk-52T37Y47.js +0 -8
  284. package/dist/chunks/chunk-7MU2AKNM.js +0 -4
  285. package/dist/chunks/chunk-AAA3UBIS.js +0 -4
  286. package/dist/chunks/chunk-ASYQHJVQ.js +0 -9
  287. package/dist/chunks/chunk-BKHDWCRT.js +0 -79
  288. package/dist/chunks/chunk-CQLH4UVX.js +0 -4
  289. package/dist/chunks/chunk-CVC66CFV.js +0 -33
  290. package/dist/chunks/chunk-D6UA4BZC.js +0 -19
  291. package/dist/chunks/chunk-DGMNI4AO.js +0 -4
  292. package/dist/chunks/chunk-DHSA5ACV.js +0 -125
  293. package/dist/chunks/chunk-DPQPXBTP.js +0 -68
  294. package/dist/chunks/chunk-DXBSQXJL.js +0 -18
  295. package/dist/chunks/chunk-E7ZMYIY6.js +0 -30
  296. package/dist/chunks/chunk-EQITBTJC.js +0 -10
  297. package/dist/chunks/chunk-EXJA5RIX.js +0 -357
  298. package/dist/chunks/chunk-FF7UELTU.js +0 -4
  299. package/dist/chunks/chunk-FH74NME3.js +0 -115
  300. package/dist/chunks/chunk-FOQ7VLIL.js +0 -17
  301. package/dist/chunks/chunk-FX6MOGLR.js +0 -11
  302. package/dist/chunks/chunk-G2V65UBA.js +0 -4
  303. package/dist/chunks/chunk-HGPBHTVD.js +0 -6
  304. package/dist/chunks/chunk-J5DVLUKY.js +0 -6
  305. package/dist/chunks/chunk-JW2HFMTF.js +0 -4
  306. package/dist/chunks/chunk-KDYEGGMW.js +0 -4
  307. package/dist/chunks/chunk-KIGMAATV.js +0 -23
  308. package/dist/chunks/chunk-KIU5FAPY.js +0 -5
  309. package/dist/chunks/chunk-KIWMQPH7.js +0 -739
  310. package/dist/chunks/chunk-L6VCIGWS.js +0 -11
  311. package/dist/chunks/chunk-LACGULCN.js +0 -10
  312. package/dist/chunks/chunk-LMSQZ6TQ.js +0 -4
  313. package/dist/chunks/chunk-MEPASGPP.js +0 -6
  314. package/dist/chunks/chunk-MFAEUHMV.js +0 -28
  315. package/dist/chunks/chunk-NAA7GF6Q.js +0 -5
  316. package/dist/chunks/chunk-NKDMKRSB.js +0 -68
  317. package/dist/chunks/chunk-NKXV32S6.js +0 -4
  318. package/dist/chunks/chunk-NVX5IPRN.js +0 -4
  319. package/dist/chunks/chunk-O3JW2F7D.js +0 -8
  320. package/dist/chunks/chunk-OE4KH3NJ.js +0 -4
  321. package/dist/chunks/chunk-OISO5JXB.js +0 -4
  322. package/dist/chunks/chunk-OPYXNSMY.js +0 -4
  323. package/dist/chunks/chunk-OSEIQ7SS.js +0 -4
  324. package/dist/chunks/chunk-P52RMIYX.js +0 -6
  325. package/dist/chunks/chunk-PBJ5MPPX.js +0 -60
  326. package/dist/chunks/chunk-PZMGBKUR.js +0 -13
  327. package/dist/chunks/chunk-PZMXHA6X.js +0 -9
  328. package/dist/chunks/chunk-Q7CE3UIE.js +0 -133
  329. package/dist/chunks/chunk-QBKCAIJG.js +0 -4
  330. package/dist/chunks/chunk-QEOFEETJ.js +0 -4
  331. package/dist/chunks/chunk-QUUEQRIT.js +0 -4
  332. package/dist/chunks/chunk-RA6HKFBV.js +0 -4
  333. package/dist/chunks/chunk-REPYBMQS.js +0 -4
  334. package/dist/chunks/chunk-SKHLZ6XY.js +0 -9
  335. package/dist/chunks/chunk-TAWLERZA.js +0 -4
  336. package/dist/chunks/chunk-TWAEABGG.js +0 -52
  337. package/dist/chunks/chunk-TZFLHVOQ.js +0 -7
  338. package/dist/chunks/chunk-UD3NMUHR.js +0 -12
  339. package/dist/chunks/chunk-UNVEZI57.js +0 -4
  340. package/dist/chunks/chunk-VQUPKMDR.js +0 -4
  341. package/dist/chunks/chunk-W25TB3PU.js +0 -4
  342. package/dist/chunks/chunk-W5LGYSPZ.js +0 -4
  343. package/dist/chunks/chunk-WEZWKMYU.js +0 -4
  344. package/dist/chunks/chunk-XAJLZR7C.js +0 -28
  345. package/dist/chunks/chunk-XH6FMP3N.js +0 -71
  346. package/dist/chunks/chunk-XSRZHN63.js +0 -4
  347. package/dist/chunks/chunk-Y3GFB5XM.js +0 -8
  348. package/dist/chunks/chunk-YG7OEPR2.js +0 -6
  349. package/dist/chunks/chunk-YHIWOGVL.js +0 -4
  350. package/dist/chunks/chunk-YKKEI5GI.js +0 -4
  351. package/dist/chunks/chunk-YZSHTWNM.js +0 -92
  352. package/dist/chunks/chunk-Z4H3VDHI.js +0 -4
  353. package/dist/chunks/cli-5DBTRMHU.js +0 -53
  354. package/dist/chunks/client-XOGYH5UR.js +0 -4
  355. package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +0 -4
  356. package/dist/chunks/config-DJSQI77S-335IXHSM.js +0 -4
  357. package/dist/chunks/context-VCQH5OB6.js +0 -4
  358. package/dist/chunks/cost-PGGFI7QJ.js +0 -5
  359. package/dist/chunks/dist-PUKMZ7GW.js +0 -4
  360. package/dist/chunks/easter-egg-3d-MO4MOEVF.js +0 -4
  361. package/dist/chunks/es5-VNTQPCKX.js +0 -4
  362. package/dist/chunks/file-7BN7RCAY.js +0 -4
  363. package/dist/chunks/gateway-UCRPMR75.js +0 -36
  364. package/dist/chunks/github-copilot-HAI2DA62.js +0 -4
  365. package/dist/chunks/google-generative-ai-2VXWLHWI.js +0 -4
  366. package/dist/chunks/google-vertex-UA36QP2U.js +0 -4
  367. package/dist/chunks/init-HA7FAQ73.js +0 -4
  368. package/dist/chunks/kimi-coding-HMJRKCPA.js +0 -4
  369. package/dist/chunks/local-client-stop-SQRU7ZZM.js +0 -4
  370. package/dist/chunks/meta-KY3LNFV2.js +0 -4
  371. package/dist/chunks/mistral-conversations-34F66L3O.js +0 -7
  372. package/dist/chunks/model-resolver-N3DTAQ2S.js +0 -4
  373. package/dist/chunks/openai-codex-responses-ZBVHREB3.js +0 -12
  374. package/dist/chunks/openai-completions-VVIB26SH.js +0 -9
  375. package/dist/chunks/openai-responses-735XA2ZX.js +0 -6
  376. package/dist/chunks/openrouter-images-3IKETHAC.js +0 -4
  377. package/dist/chunks/pi-messages-I3E4ZFHA.js +0 -10
  378. package/dist/chunks/radius-HXRZVBDB.js +0 -4
  379. package/dist/chunks/remote-ops-BALZYKH6.js +0 -14
  380. package/dist/chunks/runner-PLVZDGHB.js +0 -4
  381. package/dist/chunks/runtime-6YLTA2ZD.js +0 -4
  382. package/dist/chunks/schedule-cli-OLASBBYJ.js +0 -4
  383. package/dist/chunks/slack-WAGSPZUX.js +0 -4
  384. package/dist/chunks/start-ui-http-QALT7C3P.js +0 -43
  385. package/dist/chunks/subagent-E3UC7ZHC.js +0 -4
  386. package/dist/chunks/tool-shims-Q6P6UXVC.js +0 -4
  387. package/dist/chunks/typesafe-system-one-6ULACYD4.js +0 -4
  388. package/dist/chunks/ui-board-4GYW6KKW.js +0 -5
  389. package/dist/chunks/ui-decision-U2FXSEC2.js +0 -4
  390. package/dist/chunks/ui-view-O7PLANT7.js +0 -4
  391. package/dist/chunks/virtual-modules-IDC5YKZJ.js +0 -4
  392. package/dist/chunks/waitpoint-2FGQBIAC.js +0 -5
  393. package/dist/chunks/workers-XN4PSTH6.js +0 -4
  394. package/vendor/aistatus/gateway-cli.js +0 -21
  395. package/vendor/pi/examples/extensions/sandbox/index.ts +0 -321
  396. package/vendor/pi/examples/extensions/sandbox/package-lock.json +0 -92
  397. package/vendor/pi/examples/extensions/sandbox/package.json +0 -19
  398. package/web/dist/assets/index-BHZpFXhc.js +0 -525
  399. package/web/dist/assets/index-DqWMdMkh.css +0 -1
  400. package/web/dist/assets/pdf-worker-Hp15W1QJ.js +0 -57
  401. package/web/dist/assets/pdf.worker.min-DnhTvCwe.js +0 -55
@@ -1,18 +0,0 @@
1
- import { createRequire as __cortexCreateRequire } from 'node:module';
2
- const require = __cortexCreateRequire(import.meta.url);
3
- const __cortexPackageRoot = new URL("../../", import.meta.url);
4
- import{a as z}from"./chunk-V3AQJSWR.js";import{a as q,b as H,c as V,d as Z,e as K,o as Q}from"./chunk-QBKCAIJG.js";import{F as G,J as F,o as D,p as W,y as B}from"./chunk-PZMGBKUR.js";import{c as L,d as N}from"./chunk-SKHLZ6XY.js";import{a as T}from"./chunk-USBJFDJ6.js";function te(s,n){let r={v:1,id:s};return n&&(r.phase=n),JSON.stringify(r)}function ne(s){if(s){if(s.startsWith("{"))try{let n=JSON.parse(s);if(n.v===1&&typeof n.id=="string")return n.phase==="commentary"||n.phase==="final_answer"?{id:n.id,phase:n.phase}:{id:n.id}}catch{}return{id:s}}}function oe(s,n){let r=n.filter(l=>l.type==="text").map(l=>l.text).join(`
5
- `),p=n.filter(l=>l.type==="image"),f=r.trim().length>0;if(p.length===0||!s.input.includes("image"))return T(f?r:p.length>0?"(see attached image)":"(no tool output)");let c=[];f&&c.push({type:"input_text",text:T(r)});for(let l of p)c.push({type:"input_image",detail:"auto",image_url:`data:${l.mimeType};base64,${l.data}`});return c}function se(s){return s.supportsMidConvoSystemMessages&&s.supportsAdditionalTools?"changes":s.supportsToolSearch?"additions":"none"}function ae(s){let n="This is an incremental tools update. Previously declared tools remain available unless explicitly marked unavailable. A tool declared again here is available again, and its latest definition replaces the earlier one.";return s.size>0?`${n}
6
- Still unavailable: ${[...s].join(", ")}.`:n}function ie(s){return`The following tools are no longer available. Do not call them:
7
- ${s.map(n=>`- ${n}`).join(`
8
- `)}`}function he(s,n,r,p){let f=B(n,p?.supportsMidConvoSystemMessages),c=[],l=a=>{let _=a.replace(/[^a-zA-Z0-9_-]/g,"_");return(_.length>64?_.slice(0,64):_).replace(/_+$/,"")},$=a=>{let _=`fc_${z(a)}`;return _.length>64?_.slice(0,64):_},v=(a,_,d)=>{if(!r.has(s.provider)||!a.includes("|"))return l(a);let[u,I]=a.split("|"),k=l(u),g=d.provider!==s.provider||d.api!==s.api?$(I):l(I);return g.startsWith("fc_")||(g=l(`fc_${g}`)),`${k}|${g}`},y=Q(f.messages,s,v),b=se(p??{}),J=G(f.messages,b),O=!1,w=new Set,j=(a,_)=>{let d=a.toolsAdded??[];for(let k of d)w.delete(k.name);if(d.length===0)return;if(b==="changes"){O&&c.push({role:i,content:ae(w)}),O=!0,c.push({type:"additional_tools",role:"developer",tools:X(d,p?.toolOptions)});return}if(b!=="additions")return;let u=d.map(k=>k.name),I=`pi_tool_load_${z(`${_}:${u.join(",")}`)}`;c.push({type:"tool_search_call",call_id:I,execution:"client",status:"completed",arguments:{query:u.join(" "),limit:u.length}}),c.push({type:"tool_search_output",call_id:I,execution:"client",status:"completed",tools:X(d,{...p?.toolOptions,toolSearchResult:!0})})},t=p?.includeSystemPrompt??!0,e=a=>{c.push({type:"configuration_update",reasoning:{effort:a}})},o=s.compat,i=s.reasoning&&o?.supportsDeveloperRole!==!1?"developer":"system",x=0,m=0,P=0;for(let a of y){let _=m++===0&&a.role==="system";if(a.role==="system"){let d=P++>=J.foldedSystemMessages;if(d&&j(a,`system:${x}`),!_||t){let u=[_?D(a):W(a)];if(d){let k=new Set((a.toolsAdded??[]).map(g=>g.name)),C=(a.toolsRemoved??[]).map(g=>g.name).filter(g=>!k.has(g));C.length>0&&u.push(ie(C));for(let g of C)w.add(g)}let I=u.filter(k=>k.length>0).join(`
9
-
10
- `);I.length>0&&c.push({role:i,content:T(I)})}}else if(a.role==="user")if(typeof a.content=="string")c.push({role:"user",content:[{type:"input_text",text:T(a.content)}]});else{let d=a.content.map(u=>u.type==="text"?{type:"input_text",text:T(u.text)}:{type:"input_image",detail:"auto",image_url:`data:${u.mimeType};base64,${u.data}`});if(d.length===0)continue;c.push({role:"user",content:d})}else if(a.role==="assistant"){let d=[],u=a,I=u.provider===s.provider&&u.api===s.api,k=I&&u.model===s.id,C=I&&u.model!==s.id,g=0;for(let R of a.content)if(R.type==="thinking"){if(R.thinkingSignature){let h=JSON.parse(R.thinkingSignature);d.push(h)}}else if(R.type==="text"){let h=R,M=ne(h.textSignature),E=g===0?`msg_pi_${x}`:`msg_pi_${x}_${g}`;g++;let S=M?.id;S?S.length>64&&(S=`msg_${z(S)}`):S=E,d.push({type:"message",role:"assistant",content:[{type:"output_text",text:T(h.text),annotations:[]}],status:"completed",id:S,phase:M?.phase})}else if(R.type==="toolCall"){let h=R,[M,E]=h.id.split("|"),S=p?.grammarToolInputProperties?.get(h.name),A=E,ee=S===void 0?"fc_":"ctc_";(C||!A?.startsWith(ee))&&(A=void 0),S!==void 0?d.push({type:"custom_tool_call",id:A,call_id:M,name:h.name,input:T(H(h.name,h.arguments,S)),...k&&h.namespace!==void 0?{namespace:h.namespace}:{}}):d.push({type:"function_call",id:A,call_id:M,name:h.name,arguments:JSON.stringify(h.arguments),...k&&h.namespace!==void 0?{namespace:h.namespace}:{}})}if(d.length===0)continue;p?.configurationUpdateEffort!==void 0&&k&&a.providerThinkingLevel!==void 0&&e(a.providerThinkingLevel),c.push(...d)}else if(a.role==="toolResult"){let[d]=a.toolCallId.split("|"),u=oe(s,a.content);p?.grammarToolInputProperties?.has(a.toolName)?c.push({type:"custom_tool_call_output",call_id:d,output:u}):c.push({type:"function_call_output",call_id:d,output:u})}_||x++}return p?.configurationUpdateEffort!==void 0&&e(p.configurationUpdateEffort),c}function X(s,n){let r=n?.strict===void 0?!1:n.strict,p=n?.supportsStrictMode??!0,f=n?.supportsOpenAIGrammarTools??!1;return s.map(c=>{let l=K(c,f);if(l)return{type:"custom",name:c.name,description:c.description,format:{type:"grammar",syntax:l.format,definition:l.definition},...n?.toolSearchResult?{defer_loading:!0}:{}};let v=Z(c,p)??r,y={type:"function",name:c.name,description:c.description,parameters:q(c,v===!0),...n?.toolSearchResult?{defer_loading:!0}:{}};return p&&(y.strict=v),y})}function Y(s){let n=s.customInput?.property;if(n===void 0)return"";let r=s.arguments[n];return typeof r=="string"?r:""}function U(s,n,r){let p=s.customInput;if(!p)return;let f=V(p.jsonBuffer,p.property,n,r);return s.arguments={[p.property]:n},f}async function ye(s,n,r,p,f){let c=!1,l=new Map,$=new Map,v=t=>{t.type==="message"&&t.phase==="final_answer"&&(n.stopReason="stop")},y=(t,e)=>{let o=l.get(t);return o?.type===e?o:void 0},b=(t,e)=>{e!==void 0&&r.push({type:"toolcall_delta",contentIndex:t.contentIndex,delta:e,partial:n})},J=(t,e)=>{if(e.type==="reasoning"){let o={type:"thinking",thinking:""};n.content.push(o);let i={type:"thinking",block:o,contentIndex:n.content.length-1};return l.set(t,i),r.push({type:"thinking_start",contentIndex:i.contentIndex,partial:n}),i}if(e.type==="message"){v(e);let o={type:"text",text:""};n.content.push(o);let i={type:"text",block:o,contentIndex:n.content.length-1};return l.set(t,i),r.push({type:"text_start",contentIndex:i.contentIndex,partial:n}),i}if(e.type==="function_call"){let o={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{},...e.namespace!==void 0?{namespace:e.namespace}:{},partialJson:e.arguments||""};n.content.push(o);let i={type:"toolCall",block:o,contentIndex:n.content.length-1};return l.set(t,i),r.push({type:"toolcall_start",contentIndex:i.contentIndex,partial:n}),i}if(e.type==="custom_tool_call"){let o=f?.grammarToolInputProperties?.get(e.name)??"input",i=e.input||"",x={type:"toolCall",id:`${e.call_id}|${e.id}`,name:e.name,arguments:{[o]:i},...e.namespace!==void 0?{namespace:e.namespace}:{},customInput:{property:o,jsonBuffer:{input:"",started:!1,closed:!1}}};n.content.push(x);let m={type:"toolCall",block:x,contentIndex:n.content.length-1};return l.set(t,m),r.push({type:"toolcall_start",contentIndex:m.contentIndex,partial:n}),m}},O=(t,e)=>l.get(t)??J(t,e),w=t=>{for(let e of t){if(e.type!=="reasoning"||!e.encrypted_content)continue;let o=$.get(e.id);if(!o?.thinkingSignature)continue;let i=JSON.parse(o.thinkingSignature);i.encrypted_content||(o.thinkingSignature=JSON.stringify({...i,encrypted_content:e.encrypted_content}))}},j=t=>{if(c=!0,w(t.output??[]),t?.id&&(n.responseId=t.id),t?.usage){let m=t.usage.input_tokens_details,P=m?.cached_tokens||0,a=m?.cache_write_tokens||0;n.usage={input:Math.max(0,(t.usage.input_tokens||0)-P-a),output:t.usage.output_tokens||0,cacheRead:P,cacheWrite:a,reasoning:t.usage.output_tokens_details?.reasoning_tokens||0,totalTokens:t.usage.total_tokens||0,cost:{input:0,output:0,cacheRead:0,cacheWrite:0,total:0}}}if(F(p,n.usage),f?.applyServiceTierPricing){let m=f.resolveServiceTier?f.resolveServiceTier(t?.service_tier,f.serviceTier):t?.service_tier??f.serviceTier;f.applyServiceTierPricing(n.usage,m)}let e=t?.status,o=t?.incomplete_details,i=typeof o?.reason=="string"?o.reason:void 0;n.rawStopReason=i?`${e}.${i}`:e;let x=re(e,i);n.stopReason=x.stopReason,x.errorMessage===void 0?delete n.errorMessage:n.errorMessage=x.errorMessage,n.content.some(m=>m.type==="toolCall")&&n.stopReason==="stop"&&(n.stopReason="toolUse")};for await(let t of s)if(await f?.onProviderStreamEvent?.(t,p),t.type==="response.created")n.responseId=t.response.id;else if(t.type==="response.output_item.added")J(t.output_index,t.item);else if(t.type==="response.reasoning_summary_text.delta"){let e=y(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,r.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:n})}else if(t.type==="response.reasoning_summary_part.done"){let e=y(t.output_index,"thinking");if(!e)continue;e.block.thinking+=`
11
-
12
- `,r.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:`
13
-
14
- `,partial:n})}else if(t.type==="response.reasoning_text.delta"){let e=y(t.output_index,"thinking");if(!e)continue;e.block.thinking+=t.delta,r.push({type:"thinking_delta",contentIndex:e.contentIndex,delta:t.delta,partial:n})}else if(t.type==="response.output_text.delta"){let e=y(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,r.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:n})}else if(t.type==="response.refusal.delta"){let e=y(t.output_index,"text");if(!e)continue;e.block.text+=t.delta,r.push({type:"text_delta",contentIndex:e.contentIndex,delta:t.delta,partial:n})}else if(t.type==="response.function_call_arguments.delta"){let e=y(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;e.block.partialJson+=t.delta,e.block.arguments=N(e.block.partialJson),b(e,t.delta)}else if(t.type==="response.function_call_arguments.done"){let e=y(t.output_index,"toolCall");if(!e||e.block.partialJson===void 0)continue;let o=e.block.partialJson;if(e.block.partialJson=t.arguments,e.block.arguments=N(e.block.partialJson),t.arguments.startsWith(o)){let i=t.arguments.slice(o.length);i.length>0&&b(e,i)}}else if(t.type==="response.custom_tool_call_input.delta"){let e=y(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;b(e,U(e.block,Y(e.block)+t.delta,!1))}else if(t.type==="response.custom_tool_call_input.done"){let e=y(t.output_index,"toolCall");if(!e||!e.block.customInput)continue;b(e,U(e.block,t.input,!0))}else if(t.type==="response.output_item.done"){let e=t.item;v(e);let o=O(t.output_index,e);if(e.type==="reasoning"&&o?.type==="thinking"){let i=e.summary?.map(m=>m.text).join(`
15
-
16
- `)||"",x=e.content?.map(m=>m.text).join(`
17
-
18
- `)||"";o.block.thinking=i||x||o.block.thinking,o.block.thinkingSignature=JSON.stringify(e),$.set(e.id,o.block),r.push({type:"thinking_end",contentIndex:o.contentIndex,content:o.block.thinking,partial:n}),l.delete(t.output_index)}else e.type==="message"&&o?.type==="text"?(o.block.text=e.content?.map(i=>i.type==="output_text"?i.text:i.refusal).join("")||"",o.block.textSignature=te(e.id,e.phase??void 0),r.push({type:"text_end",contentIndex:o.contentIndex,content:o.block.text,partial:n}),l.delete(t.output_index)):e.type==="function_call"&&o?.type==="toolCall"&&o.block.partialJson!==void 0?(Object.assign(o.block,L(e.arguments||o.block.partialJson)),e.namespace!==void 0&&(o.block.namespace=e.namespace),delete o.block.partialJson,r.push({type:"toolcall_end",contentIndex:o.contentIndex,toolCall:o.block,partial:n}),l.delete(t.output_index)):e.type==="custom_tool_call"&&o?.type==="toolCall"&&o.block.customInput&&(b(o,U(o.block,e.input??Y(o.block),!0)),e.namespace!==void 0&&(o.block.namespace=e.namespace),delete o.block.customInput,r.push({type:"toolcall_end",contentIndex:o.contentIndex,toolCall:o.block,partial:n}),l.delete(t.output_index))}else if(t.type==="response.completed"||t.type==="response.incomplete")j(t.response);else{if(t.type==="error")throw new Error(`Error Code ${t.code}: ${t.message}`||"Unknown error");if(t.type==="response.failed"){c=!0,n.rawStopReason=t.response?.status;let e=t.response?.error,o=t.response?.incomplete_details,i=e?`${e.code||"unknown"}: ${e.message||"no message"}`:o?.reason?`incomplete: ${o.reason}`:"Unknown error (no error details in response)";throw new Error(i)}}if(!c)throw new Error("OpenAI Responses stream ended before a terminal response event");if(n.stopReason==="toolUse")for(let t of n.content){if(t.type!=="toolCall")continue;let e=t;if(e.partialJson!==void 0||e.customInput!==void 0)throw new Error(`OpenAI Responses stream completed with an unfinished tool call: ${e.name} (${e.id})`)}}function re(s,n){if(!s)return{stopReason:"stop"};switch(s){case"completed":return{stopReason:"stop"};case"incomplete":return n==="max_output_tokens"?{stopReason:"length"}:{stopReason:"error",errorMessage:n?`Response incomplete: ${n}`:"Response incomplete without a provider reason"};case"failed":case"cancelled":return{stopReason:"error"};case"in_progress":case"queued":return{stopReason:"stop"};default:{let r=s;throw new Error(`Unhandled stop reason: ${r}`)}}}export{se as a,he as b,X as c,ye as d};
@@ -1,30 +0,0 @@
1
- import { createRequire as __cortexCreateRequire } from 'node:module';
2
- const require = __cortexCreateRequire(import.meta.url);
3
- const __cortexPackageRoot = new URL("../../", import.meta.url);
4
- var o={"lang.current":"Current language: *${lang}*","lang.switched":"Language switched to *${lang}*.","lang.usage":"Usage: `!lang <en|zh>`","lang.available":"Available languages: `en` (English), `zh` (\u4E2D\u6587)","lang.unknown":"Unknown language `${lang}`. Available: `en`, `zh`."},s={"lang.current":"\u5F53\u524D\u8BED\u8A00\uFF1A*${lang}*","lang.switched":"\u5DF2\u5207\u6362\u8BED\u8A00\u4E3A *${lang}*\u3002","lang.usage":"\u7528\u6CD5\uFF1A`!lang <en|zh>`","lang.available":"\u53EF\u7528\u8BED\u8A00\uFF1A`en`\uFF08English\uFF09\u3001`zh`\uFF08\u4E2D\u6587\uFF09","lang.unknown":"\u672A\u77E5\u8BED\u8A00 `${lang}`\u3002\u53EF\u7528\uFF1A`en`\u3001`zh`\u3002"};var d={"status.processing":"Processing","status.done":"Done","status.waitingForUserInput":"Waiting for user input","status.backgroundRunning":"Background task running","status.backgroundInterrupted":"Background task interrupted \u2014 session ended before completion delivery","status.backgroundStillRunning":"Background task still running \u2014 no longer holding this turn; results will be appended here when it finishes","status.cancelled":"Cancelled","status.error":"Error","status.supersededByEdit":"Superseded by edit","status.editNoRestorePoint":"Edit not applied: the conversation before this message can no longer be restored.","status.retryEdited":"edited","status.retry":"Retry","status.rateLimitedExhausted":"Rate limited","status.supersededSeeNewReply":"see new reply","status.errorBody":"Error: ${message}","notify.turnComplete":"Turn complete","notify.turnFailed":"Turn failed","notify.contextCompacted":"Context auto-compacted.","notify.agentFallback":"Model fallback: ${from} \u2192 ${to}.","notify.backendSessionReset":"Previous backend session was unavailable; started a fresh session.","notify.pluginsUnavailable":"Some plugin skills or MCP servers could not be loaded and are missing from this turn:\n${detail}","notify.pluginsUnavailableMore":"\u2026and ${n} more.","notify.rateLimitAutoResume":"Rate limited \u2014 this chat will resume automatically when the limit resets.","notify.authRequired.title":"Authentication required","notify.authRequired.body":"Authentication for ${provider} failed (${kind}). ${guidance}","notify.authRequired.kind.loginRequired":"login required","notify.authRequired.kind.oauthExpired":"OAuth login expired","notify.authRequired.kind.invalidApiKey":"invalid API key","notify.authRequired.kind.unauthorized":"unauthorized request","notify.authRequired.kind.invalidGrant":"invalid OAuth grant","notify.authRequired.guide.action":"Use the sign-in button on this message to sign in again.","notify.authRequired.guide.claude":"Sign in again from Settings > Accounts, by sending !login cc in chat, or by running cortex auth login --backend claude on the Cortex host.","notify.authRequired.guide.pi":"SSH to the Cortex host, run pi, then enter /login and choose ${provider}.","notify.authExpiry.title":"Authentication status warning","notify.authExpiry.body":"Backend `${backend}` / provider `${provider}` is ${state}.${expiry} ${guidance}","notify.authExpiry.state.expiring":"expiring","notify.authExpiry.state.expired":"expired","notify.authExpiry.state.loggedOut":"logged out","notify.authExpiry.expiresAt":"Expires at `${expiresAt}`.","notify.authExpiry.guide.action":"Use the one-click login action below to sign in again.","status.noRunningExecutions":"No running executions.","status.runningExecutions":"Running executions: ${count}","btn.cancel":"Cancel","btn.resume":"Resume","btn.new":"New","btn.newq":"New (quiet)"},r={"status.processing":"\u5904\u7406\u4E2D","status.done":"\u5B8C\u6210","status.waitingForUserInput":"\u7B49\u5F85\u7528\u6237\u8F93\u5165","status.backgroundRunning":"\u540E\u53F0\u4EFB\u52A1\u8FD0\u884C\u4E2D","status.backgroundInterrupted":"\u540E\u53F0\u4EFB\u52A1\u88AB\u4E2D\u65AD\u2014\u2014\u4F1A\u8BDD\u5728\u7ED3\u679C\u9001\u8FBE\u524D\u7ED3\u675F","status.backgroundStillRunning":"\u540E\u53F0\u4EFB\u52A1\u4ECD\u5728\u8FD0\u884C\u2014\u2014\u4E0D\u518D\u5360\u4F4D\u7B49\u5F85\uFF0C\u5B8C\u6210\u540E\u7ED3\u679C\u5C06\u8FFD\u52A0\u5230\u672C\u56DE\u590D","status.cancelled":"\u5DF2\u53D6\u6D88","status.error":"\u9519\u8BEF","status.supersededByEdit":"\u5DF2\u88AB\u7F16\u8F91\u53D6\u4EE3","status.editNoRestorePoint":"\u7F16\u8F91\u672A\u751F\u6548\uFF1A\u8FD9\u6761\u6D88\u606F\u4E4B\u524D\u7684\u4E0A\u4E0B\u6587\u5DF2\u65E0\u6CD5\u6062\u590D\u3002","status.retryEdited":"\u5DF2\u7F16\u8F91","status.retry":"\u91CD\u8BD5","status.rateLimitedExhausted":"\u89E6\u53D1\u9650\u6D41","status.supersededSeeNewReply":"\u67E5\u770B\u65B0\u56DE\u590D","status.errorBody":"\u9519\u8BEF\uFF1A${message}","notify.turnComplete":"\u56DE\u5408\u5B8C\u6210","notify.turnFailed":"\u56DE\u5408\u5931\u8D25","notify.contextCompacted":"\u4E0A\u4E0B\u6587\u5DF2\u81EA\u52A8\u538B\u7F29\u3002","notify.agentFallback":"\u6A21\u578B\u56DE\u9000\uFF1A${from} \u2192 ${to}\u3002","notify.backendSessionReset":"\u4E4B\u524D\u7684\u540E\u7AEF\u4F1A\u8BDD\u4E0D\u53EF\u7528\uFF0C\u5DF2\u542F\u52A8\u65B0\u4F1A\u8BDD\u3002","notify.pluginsUnavailable":"\u90E8\u5206\u63D2\u4EF6\u6280\u80FD\u6216 MCP server \u672A\u80FD\u52A0\u8F7D\uFF0C\u672C\u8F6E\u4E0D\u53EF\u7528\uFF1A\n${detail}","notify.pluginsUnavailableMore":"\u2026\u2026\u53E6\u6709 ${n} \u9879\u3002","notify.rateLimitAutoResume":"\u89E6\u53D1\u9650\u6D41\uFF0C\u89E3\u9664\u540E\u6B64\u5BF9\u8BDD\u5C06\u81EA\u52A8\u7EED\u8DD1\u3002","notify.authRequired.title":"\u9700\u8981\u91CD\u65B0\u8BA4\u8BC1","notify.authRequired.body":"${provider} \u7684\u8BA4\u8BC1\u5DF2\u5931\u6548\uFF08${kind}\uFF09\u3002${guidance}","notify.authRequired.kind.loginRequired":"\u9700\u8981\u767B\u5F55","notify.authRequired.kind.oauthExpired":"OAuth \u767B\u5F55\u5DF2\u8FC7\u671F","notify.authRequired.kind.invalidApiKey":"API Key \u65E0\u6548","notify.authRequired.kind.unauthorized":"\u8BF7\u6C42\u672A\u83B7\u6388\u6743","notify.authRequired.kind.invalidGrant":"OAuth \u6388\u6743\u5DF2\u5931\u6548","notify.authRequired.guide.action":"\u8BF7\u70B9\u51FB\u6B64\u6D88\u606F\u4E2D\u7684\u767B\u5F55\u6309\u94AE\u91CD\u65B0\u8BA4\u8BC1\u3002","notify.authRequired.guide.claude":"\u8BF7\u5728 \u8BBE\u7F6E > \u8D26\u53F7 \u4E2D\u91CD\u65B0\u767B\u5F55\uFF0C\u6216\u5728\u804A\u5929\u91CC\u53D1\u9001 !login cc\uFF0C\u6216\u5728 Cortex \u4E3B\u673A\u4E0A\u8FD0\u884C cortex auth login --backend claude\u3002","notify.authRequired.guide.pi":"\u8BF7 SSH \u5230 Cortex \u4E3B\u673A\uFF0C\u8FD0\u884C pi\uFF0C\u7136\u540E\u8F93\u5165 /login \u5E76\u9009\u62E9 ${provider}\u3002","notify.authExpiry.title":"\u8BA4\u8BC1\u72B6\u6001\u9884\u8B66","notify.authExpiry.body":"\u540E\u7AEF `${backend}` / Provider `${provider}` \u7684\u8BA4\u8BC1\u72B6\u6001\u4E3A${state}\u3002${expiry} ${guidance}","notify.authExpiry.state.expiring":"\u5373\u5C06\u8FC7\u671F","notify.authExpiry.state.expired":"\u5DF2\u8FC7\u671F","notify.authExpiry.state.loggedOut":"\u672A\u767B\u5F55","notify.authExpiry.expiresAt":"\u8FC7\u671F\u65F6\u95F4\uFF1A`${expiresAt}`\u3002","notify.authExpiry.guide.action":"\u8BF7\u4F7F\u7528\u4E0B\u65B9\u7684\u4E00\u952E\u767B\u5F55\u64CD\u4F5C\u91CD\u65B0\u8BA4\u8BC1\u3002","status.noRunningExecutions":"\u6CA1\u6709\u6B63\u5728\u8FD0\u884C\u7684\u6267\u884C\u3002","status.runningExecutions":"\u6B63\u5728\u8FD0\u884C\u7684\u6267\u884C\uFF1A${count}","btn.cancel":"\u53D6\u6D88","btn.resume":"\u6062\u590D","btn.new":"\u65B0\u5EFA","btn.newq":"\u65B0\u5EFA(\u9759\u9ED8)"};var l={"cmd.cancel.nothingRunning":"Nothing running to cancel.","cmd.cancel.cancelledN":"Cancelled ${n} execution(s).","cmd.cancel.cancelledShort":"Cancelled (${id})","cmd.cancel.executionCancelled":"Execution `${id}` cancelled.","cmd.cancel.executionNotFound":"No running execution `${id}` found to cancel.","cmd.cancel.cancelledSessionPreserved":"Cancelled. Session preserved \u2014 next message will resume.","cmd.cancel.runningExecutions":"Running executions (${n}):","cmd.cancel.cancelButton":"Cancel ${id}","cmd.compact.unavailable":"Session compaction is not available in this process.","cmd.compact.completed":"Context compacted.","cmd.compact.notNeeded":"Nothing to compact.","cmd.compact.running":"Session is running \u2014 stop it before compacting context.","cmd.compact.unsupported":"This session backend does not support manual context compaction.","cmd.compact.noSession":"No active session to compact.","cmd.mode.current":"Gateway route for this channel: *${mode}*. Use `!mode <route>` to change it.","cmd.mode.set":"Gateway route set to *${mode}*.","cmd.mode.invalid":"Unknown route *${mode}*. Available: ${routes}.","cmd.mode.apiLabel":"API","cmd.mode.planLabel":"Plan","cmd.backend.claudeLabel":"Claude Code","cmd.backend.piLabel":"PI","cmd.model.current":"Model for this channel: *${model}*","cmd.model.usage":"Usage: `!model [provider/]model` \xB7 `!model reset`","cmd.model.set":"Model for this channel set to *${model}*. Takes effect on the next message.","cmd.model.cleared":"Default model restored: *${model}*.","cmd.model.favorites":"*Favorite models*","cmd.model.noFavorites":"No favorite models yet. Add one in Settings \u2192 Models.","cmd.thinking.none":"the backend default","cmd.thinking.current":"Thinking level for this channel: *${thinking}*","cmd.thinking.set":"Thinking level set to *${thinking}*. Takes effect on the next message.","cmd.thinking.cleared":"Thinking level reset to the backend default.","cmd.thinking.invalid":"*${thinking}* is not a ${backend} thinking level. Available: ${levels}.","cmd.backend.usage":"Usage: `!backend claude` \xB7 `!backend pi`","cmd.backend.noFavorite":"No default or favorite model uses *${backend}* \u2014 favorite a model for this backend first.","cmd.backend.already":"This channel is already on *${backend}* (*${model}*).","cmd.selection.channelSet":"Channel selection set to *${name}*","cmd.selection.crossBackendBlocked":"Can't switch to *${name}* \u2014 it runs on `${target}` but this conversation is on `${current}`. Start a new session (`!new`) to switch backend.","cmd.selection.channelHeader":"Channel selection: *${effective}* (default: ${global})","cmd.selection.activeHeader":"Current selection: *${effective}*","cmd.selection.markerDefault":"default","cmd.selection.markerChannel":"channel","cmd.skills.none":"No skills found.","cmd.skills.header":"*Available skills*","cmd.agent.defaultSet":"Default agent set to *${name}* (${detail})","cmd.agent.disabled":"Default agent disabled.","cmd.agent.unknown":"Unknown agent: `${name}`\nAvailable: ${available}","cmd.agent.channelSet":"Agent for this conversation set to *${name}* (${detail}). Takes effect on the next message.","cmd.agent.channelHeader":"Agent for this conversation: *${name}* (${detail})","cmd.agent.followingGlobal":"This conversation follows the global default: *${name}*","cmd.agent.followingGlobalNone":"This conversation follows the global default, which is unset (running `main`).","cmd.agent.globalLine":"Global default: *${name}*","cmd.agent.globalNone":"Global default: none","cmd.agent.available":"Available: ${agents}","cmd.agent.cleared":"Agent cleared for this conversation \u2014 following the global default: *${name}*","cmd.agent.clearedNoGlobal":"Agent cleared for this conversation \u2014 no global default, running `main`.","cmd.agent.globalUsage":"Usage: `!agent global <name>` \xB7 `!agent global off`","cmd.agent.followGlobalButton":"Follow global","cmd.channel.noProjects":"No projects found.","cmd.channel.projectsHeader":"*Projects*\n${list}","cmd.channel.registeredNotification":"Registered for `${project}` task notifications.","cmd.channel.unknownProject":"Unknown project: `${project}`\nAvailable: ${available}","cmd.channel.channelRegistered":"This channel is now registered for project `${project}` task notifications.","cmd.channel.registeredList":"Registered: ${list}","cmd.channel.notRegisteredAny":"This channel is not registered to any project.","cmd.channel.availableList":"Available: ${list}","cmd.channel.unregisterUsage":"Usage: `!unregister <project>`","cmd.channel.notRegistered":"This channel is not registered for project `${project}`.","cmd.channel.unregistered":"Unregistered this channel from project `${project}`.","cmd.channel.modalTitle":"Add Project Directory","cmd.channel.modalSubmit":"Save","cmd.channel.modalProjectLabel":"Project name","cmd.channel.modalProjectPlaceholder":"e.g. example-project-dataset","cmd.channel.modalMachineLabel":"Machine","cmd.channel.modalPathLabel":"Directory path","cmd.channel.modalPathPlaceholder":"e.g. /home/user/project","cmd.channel.dirSet":"`${project}` on `${machine}` \u2192 `${dir}`","cmd.channel.projectDirUsage":"Usage: `!project-dir <project> <machine> <path>` or `!project-dir <project> <machine> --remove`","cmd.channel.unknownMachine":"Unknown machine: `${machine}`\nValid: ${valid}","cmd.channel.dirRemoved":"Removed `${project}` directory on `${machine}`.","cmd.channel.dirShow":"`${project}` on `${machine}` \u2192 `${dir}`","cmd.channel.dirNone":"No directory registered for `${project}` on `${machine}`.","cmd.channel.projectDirsHeader":"*Project Directories*\n${list}","cmd.channel.noProjectDirs":"No project directories registered.","cmd.channel.addButton":"Add","cmd.nvtop.unknownMachineGpu":"Unknown machine: `${machine}`\nGPU machines: ${valid}","cmd.nvtop.noGpu":"`${machine}` has no GPU.","cmd.nvtop.deviceOffline":"Device `${machine}` is not online.","cmd.nvtop.smiHeader":"*nvidia-smi* on `${machine}`\n```\n${output}\n```","cmd.nvtop.noOutput":"(no output)","cmd.nvtop.smiFailed":"nvidia-smi failed on `${machine}`: ${error}","cmd.nvtop.noActive":"No active nvtop monitor in this channel.","cmd.nvtop.stopped":"nvtop stopped on `${machine}`.","cmd.nvtop.alreadyRunning":"nvtop already running. Use `!nvtop stop` first.","cmd.nvtop.notSupported":"nvtop monitoring is not supported on `${machine}` yet.","cmd.nvtop.failed":"nvtop failed on `${machine}`: ${error}","cmd.sendfile.fileNotFound":"File not found: `${path}`","cmd.sendfile.notAFile":"Not a file: `${path}`","cmd.sendfile.sent":"Sent `${name}` (${size} KB) from ${machine}","cmd.sendfile.fetchFailed":"Failed to fetch from ${machine}: ${error}","cmd.sendfile.usage":"Usage: `!sendFile <machine> <path>`\nPath can be absolute, relative to Cortex root, or start with `~`","cmd.sendfile.unknownMachine":"Unknown machine: `${machine}`. Known: ${known}","cmd.session.newConversation":"--- new conversation --- (${selection})","cmd.session.notFound":"Session `${name}` not found.","cmd.session.switched":"Switched to session `${name}`${selectionNote}","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.","cmd.session.ambiguous":"Session prefix `${name}` matches multiple sessions: ${matches}. Use a longer prefix or the full ID.","cmd.session.selectionNote":" (${selection})","cmd.session.noSessions":"No sessions recorded yet.","cmd.session.recentHeader":"*Recent sessions*","cmd.session.activeTag":" *(active)*","cmd.tail.noActive":"No active tail in this channel.","cmd.tail.stopped":"Tail stopped.","cmd.tail.preview":"*Tailing daemon.log* (last ${n} lines, refresh every 3s)\n```\n${content}\n```\nUse `!tail stop` to stop.","cmd.tail.cannotRead":"Cannot read daemon.log: ${error}","cmd.tail.alreadyTailing":"Already tailing. Use `!tail stop` to stop first.","cmd.auth.heading":"*Authentication status*","cmd.auth.generatedAt":"Generated: ${time}","cmd.auth.runtimeLine":"PI runtime: ${status}${version}","cmd.auth.runtimeAvailable":"available","cmd.auth.runtimeUnavailable":"unavailable","cmd.auth.runtimeVersion":" \xB7 version ${version}","cmd.auth.backend.claude":"Claude","cmd.auth.backend.pi":"PI","cmd.auth.inUse":" \xB7 in use","cmd.auth.type.oauth":"OAuth","cmd.auth.type.api_key":"API key","cmd.auth.type.none":"No active credential","cmd.auth.state.logged-in":"Logged in","cmd.auth.state.expiring":"Expiring","cmd.auth.state.expired":"Expired","cmd.auth.state.logged-out":"Logged out","cmd.auth.state.unknown":"Unknown","cmd.auth.accountLine":"\u2022 ${backend} \xB7 ${label} \xB7 ${authType} \xB7 ${state}${inUse}","cmd.auth.credentials":" Credentials:","cmd.auth.credentialLine":" - ${authType} \xB7 ${state} \xB7 ${source}${expires}","cmd.auth.expires":" \xB7 expires ${time}","cmd.auth.hiddenLoggedOut":"${n} logged-out provider hidden.","cmd.auth.usage":"Usage: `!login [status|cc|pi [provider]]`","cmd.auth.loginReady":"${authType} login is ready for `${provider}`.","cmd.auth.loginAgain":"Log in again","cmd.auth.loginContinue":"Enter API key","cmd.auth.loginEnterCode":"Enter authorization code","cmd.auth.loginChoose":"Choose","cmd.auth.loginChooseProvider":"Choose a PI provider.","cmd.auth.loginChooseAuthType":"Choose an authentication type for `${provider}`.","cmd.auth.loginUnknownProvider":"Provider `${provider}` is not available for login.","cmd.auth.loginNoProviders":"No PI provider supports login.","cmd.auth.loginModalTitle":"Backend login","cmd.auth.loginProviderLabel":"PI provider","cmd.auth.loginProviderPlaceholder":"Choose a provider","cmd.auth.loginAuthTypeLabel":"Authentication type","cmd.auth.loginAuthTypePlaceholder":"Choose an authentication type","cmd.auth.loginTextLabel":"Response","cmd.auth.loginTextPlaceholder":"Enter the response","cmd.auth.loginSecretLabel":"API key","cmd.auth.loginSecretPlaceholder":"Paste the API key","cmd.auth.loginCodeLabel":"Authorization code","cmd.auth.loginCodePlaceholder":"Paste the authorization code or redirect URL","cmd.auth.loginSelectPlaceholder":"Choose an option","cmd.auth.loginSubmit":"Log in","cmd.auth.loginCancel":"Cancel","cmd.auth.loginRequired":"A response is required.","cmd.auth.loginInProgress":"Login is still in progress.","cmd.auth.loginExpired":"Login flow expired.","cmd.auth.loginOpenAuthorization":"Open the authorization page:","cmd.auth.loginDeviceCode":"Device code","cmd.auth.loginVerificationPage":"Verification page","cmd.auth.loginDeviceExpires":"This code expires in ${seconds} seconds.","cmd.auth.loginProgress":"Login progress: ${message}","cmd.auth.loginSucceeded":"Login succeeded: `${provider}` \xB7 ${authType} \xB7 expires ${expires}","cmd.auth.loginNoExpiry":"no expiry","cmd.auth.loginFailed":"Login failed: ${error}","cmd.auth.loginUnknownFailure":"Unknown failure","cmd.auth.loginCancelled":"Login cancelled.","cmd.auth.cli.description":"Inspect backend authentication status","cmd.auth.cli.statusDescription":"Show the backend authentication snapshot","cmd.auth.cli.jsonDescription":"Print the raw AuthStatusSnapshot as JSON","cmd.auth.cli.helpDescription":"Show this help","cmd.auth.cli.helpUsage":"Usage:","cmd.auth.cli.helpCommands":"Commands:","cmd.auth.cli.helpOptions":"Options:","cmd.auth.cli.helpExamples":"Examples:","cmd.auth.cli.validValues":"Valid values:","cmd.auth.cli.hint":"Hint:","cmd.auth.cli.exampleSummary":"Show a localized status summary","cmd.auth.cli.exampleJson":"Print the machine-readable snapshot","cmd.auth.cli.unknownSubcommand":"Unknown auth command: '${command}'.","cmd.auth.cli.unknownFlag":"Unknown auth status option: '${flag}'.","cmd.status.unavailable":"Execution status reporting is not available in this process.","cmd.status.refreshButton":"Refresh","cmd.help.catSession":"Session","cmd.help.catConfig":"Config","cmd.help.catMonitoring":"Monitoring","cmd.help.catProjects":"Projects","cmd.help.catDevices":"Devices","cmd.help.session.new":"`!new` \u2014 start a new conversation; runs pre-close hook (`!newq` to skip)","cmd.help.session.cancel":"`!cancel [executionId|--all]` \u2014 stop the current run, one run by id, or every run here","cmd.help.session.compact":"`!compact` \u2014 compact the active session context while idle","cmd.help.session.resume":"`!resume [cortex-XXXX]` \u2014 list recent sessions, or switch to one","cmd.help.config.mode":"`!mode [route]` \u2014 show or set this channel's gateway route","cmd.help.config.backend":"`!backend [claude|pi]` \u2014 select that backend's default model","cmd.help.config.model":"`!model [name|reset]` \u2014 show, override or restore this channel's model","cmd.help.config.thinking":"`!thinking [level|reset]` \u2014 show, override or restore this channel's thinking level","cmd.help.config.skills":"`!skills` \u2014 list available skills","cmd.help.monitoring.cost":"`!cost [project]` \u2014 show cost summary (global or per-project)","cmd.help.monitoring.usage":"`!usage [provider]` \u2014 show provider quota and spend","cmd.help.monitoring.status":"`!status` \u2014 show running execution summary","cmd.help.monitoring.login":"`!login [status|cc|pi [provider]]` \u2014 inspect status or start backend login","cmd.help.monitoring.budget":"`!budget [list|<project>] [$X/d $Y/m|clear]` \u2014 show or set global and per-project budgets","cmd.help.monitoring.schedule":"`!schedule` \u2014 list, add, pause, resume, or remove scheduled tasks","cmd.help.projects.projects":"`!projects` \u2014 list projects and their registered channels","cmd.help.projects.register":"`!register <project>` \u2014 register this channel for project notifications","cmd.help.projects.unregister":"`!unregister <project>` \u2014 unregister this channel from a project","cmd.help.projects.projectDir":"`!project-dir` \u2014 manage project code directories per machine","cmd.help.devices.devices":"`!devices` \u2014 show online/offline status of all cortex-client devices","cmd.help.devices.nvidiaSmi":"`!nvidia-smi [machine]` \u2014 show GPU status (default: local)","cmd.help.devices.nvtop":"`!nvtop [machine|stop]` \u2014 live GPU monitor with sparkline view","cmd.help.devices.tail":"`!tail [stop]` \u2014 live-tail daemon.log","cmd.help.devices.sendfile":"`!sendFile <machine> <path>` \u2014 send a file to Slack","cmd.help.config.agent":"`!agent [name|off]` \u2014 show, set, or disable default agent","cmd.help.heading":"*Commands*","cmd.help.headingCategory":"*Commands \u2014 ${label}*","cmd.help.selfLine":"`!help` \u2014 this message","cmd.help.showAll":"Show All","cmd.usage.header":"*Provider usage*","cmd.usage.empty":"No provider usage data has been collected yet.","cmd.usage.noneAvailable":"none","cmd.usage.unknownProvider":"Unknown usage provider: `${provider}`. Available providers: ${available}","cmd.usage.providerLine":"*${name}* (`${provider}`) \u2014 ${freshness}","cmd.usage.freshness.live":"live","cmd.usage.freshness.stale":"stale","cmd.usage.freshness.never":"never observed","cmd.usage.freshness.unsupported":"quota unsupported","cmd.usage.window.fiveHour":"5 hour","cmd.usage.window.sevenDay":"7 day","cmd.usage.window.sevenDayOpus":"7 day Opus","cmd.usage.window.sevenDayOverage":"7 day (incl. overage)","cmd.usage.window.sevenDayModel":"7 day (${model})","cmd.usage.window.codexPrimary":"Primary","cmd.usage.window.codexSecondary":"Secondary","cmd.usage.windowLine":"\u2022 ${label}: ${utilization}${reset}","cmd.usage.resetSuffix":" \xB7 resets ${time}","cmd.usage.unavailable":"unavailable","cmd.usage.spendLine":"\u2022 Spend: today $${today} \xB7 month $${month}","cmd.usage.observedLine":"\u2022 Observed: ${time}","cmd.usage.noteLine":"\u2022 Note: ${note}","cmd.usage.refreshButton":"Refresh","cmd.usage.resetCreditsLine":"\u2022 Banked resets: ${count}${expiry}","cmd.usage.resetExpirySuffix":" \xB7 earliest expires ${time}","cmd.usage.resetButton":"Reset ${name}","cmd.usage.resetConfirmCodex":"Use one banked Codex reset? It restores Codex usage for this account on every device and cannot be undone.","cmd.usage.resetConfirmClaude":"Use one banked Claude reset? It clears the ${windows} limits for the whole account \u2014 claude.ai and every other device included \u2014 and cannot be undone.","cmd.usage.resetAllWindows":"usage","cmd.usage.resetNotAtLimit":"The account is not at a limit right now: ${usage}.","cmd.usage.resetConfirmButton":"Reset","cmd.usage.resetCancelButton":"Cancel","cmd.usage.resetCancelled":"Reset not used.","cmd.usage.resetRunning":"Using a ${name} reset\u2026","cmd.usage.resetDone":"${name} reset used \u2014 usage restored.","cmd.usage.resetNothing":"Nothing to reset \u2014 ${name} usage is not limited. No reset was used.","cmd.usage.resetNoCredit":"No ${name} reset is available.","cmd.usage.resetAlreadyRedeemed":"That ${name} reset was already used.","cmd.usage.resetCooldown":"${name} resets are cooling down \u2014 try again later. No reset was used.","cmd.usage.resetIneligible":"This ${name} account cannot use resets right now. No reset was used.","cmd.usage.resetSignedOut":"${name} is not signed in.","cmd.usage.resetFailed":"${name} reset failed: ${error}","cmd.schedule.none":"No scheduled tasks.","cmd.schedule.header":"*Scheduled tasks (${n}):*","cmd.schedule.removeButton":"Remove ${id}","cmd.schedule.resumeButton":"Resume ${id}","cmd.schedule.pauseButton":"Pause ${id}","cmd.schedule.now":"now","cmd.schedule.paused":"paused","cmd.schedule.nextLabel":"next","cmd.device.header":"*Devices*","cmd.device.online":"`${name}` ${platform} connected ${connAgo} heartbeat ${hbAgo}","cmd.device.offline":"`${name}` offline","cmd.device.none":"No devices registered or online.","cmd.device.refreshButton":"Refresh","cmd.orient.notImplemented":"`!orient` command not yet implemented.","cmd.restart.triggered":"Restarting the Cortex server\u2026 it will reconnect automatically in a moment.","cmd.restart.noDaemon":"Cannot restart: no running daemon was detected. The server must be started via `cortex daemon` for restart to work.","cmd.cost.budgetHeader":"*Budget*\n\u2022 Daily: $${dailyBudget} (spent: $${dailySpent}, remaining: $${dailyRemaining})\n\u2022 Monthly: $${monthlyBudget} (spent: $${monthlySpent}, remaining: $${monthlyRemaining})","cmd.cost.budgetHeaderProject":"*Budget \u2014 ${project}* (${scope})\n\u2022 Daily: $${dailyBudget} (spent: $${dailySpent}, remaining: $${dailyRemaining})\n\u2022 Monthly: $${monthlyBudget} (spent: $${monthlySpent}, remaining: $${monthlyRemaining})","cmd.cost.budgetScopeProject":"per-project override","cmd.cost.budgetScopeGlobal":"inherited from global","cmd.cost.budgetUpdated":"Budget updated: $${daily}/day, $${monthly}/month","cmd.cost.budgetUpdatedProject":"Budget for `${project}` updated: $${daily}/day, $${monthly}/month","cmd.cost.budgetCleared":"Per-project budget for `${project}` removed \u2014 it now inherits the global limits.","cmd.cost.budgetNoOverride":"`${project}` has no per-project budget \u2014 nothing to clear.","cmd.cost.budgetListHeader":"*Budgets*\n\u2022 global: $${daily}/day, $${monthly}/month","cmd.cost.budgetListEmpty":"No per-project overrides. Every project inherits the global limits.","cmd.cost.budgetListItem":"\u2022 ${project}: $${daily}/day, $${monthly}/month","cmd.cost.budgetPairRequired":"A per-project budget needs both limits. Usage: `!budget ${project} $50/d $1000/m`","cmd.cost.budgetUnknownProject":"Unknown project: `${project}`. Known projects: ${known}","cmd.unknown":"Unknown command: `${cmd}`. Run `!help` for available commands.","cmd.error":"Command error: ${error}","cmd.errorUnknown":"unknown error"},c={"cmd.cancel.nothingRunning":"\u6CA1\u6709\u6B63\u5728\u8FD0\u884C\u7684\u4EFB\u52A1\u53EF\u53D6\u6D88\u3002","cmd.cancel.cancelledN":"\u5DF2\u53D6\u6D88 ${n} \u4E2A\u6267\u884C\u3002","cmd.cancel.cancelledShort":"\u5DF2\u53D6\u6D88\uFF08${id}\uFF09","cmd.cancel.executionCancelled":"\u6267\u884C `${id}` \u5DF2\u53D6\u6D88\u3002","cmd.cancel.executionNotFound":"\u672A\u627E\u5230\u53EF\u53D6\u6D88\u7684\u8FD0\u884C\u4E2D\u6267\u884C `${id}`\u3002","cmd.cancel.cancelledSessionPreserved":"\u5DF2\u53D6\u6D88\u3002\u4F1A\u8BDD\u5DF2\u4FDD\u7559\u2014\u2014\u4E0B\u4E00\u6761\u6D88\u606F\u5C06\u7EE7\u7EED\u3002","cmd.cancel.runningExecutions":"\u8FD0\u884C\u4E2D\u7684\u6267\u884C\uFF08${n}\uFF09\uFF1A","cmd.cancel.cancelButton":"\u53D6\u6D88 ${id}","cmd.compact.unavailable":"\u5F53\u524D\u8FDB\u7A0B\u672A\u63D0\u4F9B\u4F1A\u8BDD\u538B\u7F29\u80FD\u529B\u3002","cmd.compact.completed":"\u4E0A\u4E0B\u6587\u5DF2\u538B\u7F29\u3002","cmd.compact.notNeeded":"\u5F53\u524D\u6CA1\u6709\u53EF\u538B\u7F29\u7684\u5185\u5BB9\u3002","cmd.compact.running":"\u4F1A\u8BDD\u6B63\u5728\u8FD0\u884C\uFF0C\u8BF7\u5148\u505C\u6B62\u5F53\u524D turn \u518D\u538B\u7F29\u4E0A\u4E0B\u6587\u3002","cmd.compact.unsupported":"\u6B64\u4F1A\u8BDD\u540E\u7AEF\u4E0D\u652F\u6301\u624B\u52A8\u538B\u7F29\u4E0A\u4E0B\u6587\u3002","cmd.compact.noSession":"\u5F53\u524D\u6CA1\u6709\u53EF\u538B\u7F29\u7684\u6D3B\u52A8\u4F1A\u8BDD\u3002","cmd.mode.current":"\u672C\u9891\u9053\u7F51\u5173\u8DEF\u7531\uFF1A*${mode}*\u3002\u7528 `!mode <route>` \u4FEE\u6539\u3002","cmd.mode.set":"\u7F51\u5173\u8DEF\u7531\u5DF2\u8BBE\u4E3A *${mode}*\u3002","cmd.mode.invalid":"\u672A\u77E5\u8DEF\u7531 *${mode}*\u3002\u53EF\u7528\uFF1A${routes}\u3002","cmd.mode.apiLabel":"API","cmd.mode.planLabel":"Plan","cmd.backend.claudeLabel":"Claude Code","cmd.backend.piLabel":"PI","cmd.model.current":"\u672C\u9891\u9053\u6A21\u578B\uFF1A*${model}*","cmd.model.usage":"\u7528\u6CD5\uFF1A`!model [provider/]model` \xB7 `!model reset`","cmd.model.set":"\u672C\u9891\u9053\u6A21\u578B\u5DF2\u8BBE\u4E3A *${model}*\uFF0C\u4E0B\u4E00\u6761\u6D88\u606F\u751F\u6548\u3002","cmd.model.cleared":"\u5DF2\u6062\u590D\u9ED8\u8BA4\u6A21\u578B\uFF1A*${model}*\u3002","cmd.model.favorites":"*\u6536\u85CF\u6A21\u578B*","cmd.model.noFavorites":"\u5C1A\u65E0\u6536\u85CF\u6A21\u578B\u3002\u8BF7\u5728\u8BBE\u7F6E \u2192 \u6A21\u578B\u4E2D\u6DFB\u52A0\u3002","cmd.thinking.none":"\u540E\u7AEF\u9ED8\u8BA4\u503C","cmd.thinking.current":"\u672C\u9891\u9053\u601D\u8003\u6863\u4F4D\uFF1A*${thinking}*","cmd.thinking.set":"\u601D\u8003\u6863\u4F4D\u5DF2\u8BBE\u4E3A *${thinking}*\uFF0C\u4E0B\u4E00\u6761\u6D88\u606F\u751F\u6548\u3002","cmd.thinking.cleared":"\u601D\u8003\u6863\u4F4D\u5DF2\u6062\u590D\u4E3A\u540E\u7AEF\u9ED8\u8BA4\u503C\u3002","cmd.thinking.invalid":"*${thinking}* \u4E0D\u662F ${backend} \u7684\u601D\u8003\u6863\u4F4D\u3002\u53EF\u7528\uFF1A${levels}\u3002","cmd.backend.usage":"\u7528\u6CD5\uFF1A`!backend claude` \xB7 `!backend pi`","cmd.backend.noFavorite":"\u9ED8\u8BA4\u6A21\u578B\u548C\u6536\u85CF\u4E2D\u5747\u65E0 *${backend}* \u6A21\u578B\uFF0C\u8BF7\u5148\u6536\u85CF\u8BE5\u540E\u7AEF\u7684\u6A21\u578B\u3002","cmd.backend.already":"\u672C\u9891\u9053\u5DF2\u7ECF\u5728 *${backend}* \u4E0A\uFF08*${model}*\uFF09\u3002","cmd.selection.channelSet":"\u9891\u9053\u5F15\u64CE\u5DF2\u8BBE\u4E3A *${name}*","cmd.selection.crossBackendBlocked":"\u65E0\u6CD5\u5207\u6362\u5230 *${name}*\uFF1A\u5B83\u4F7F\u7528 `${target}`\uFF0C\u5F53\u524D\u5BF9\u8BDD\u5728 `${current}` \u4E0A\u3002\u8BF7\u5F00\u542F\u65B0\u4F1A\u8BDD\uFF08`!new`\uFF09\u540E\u5207\u6362\u540E\u7AEF\u3002","cmd.selection.channelHeader":"\u9891\u9053\u5F15\u64CE\uFF1A*${effective}*\uFF08\u9ED8\u8BA4\uFF1A${global}\uFF09","cmd.selection.activeHeader":"\u5F53\u524D\u5F15\u64CE\uFF1A*${effective}*","cmd.selection.markerDefault":"\u9ED8\u8BA4","cmd.selection.markerChannel":"\u9891\u9053","cmd.skills.none":"\u672A\u627E\u5230\u6280\u80FD\u3002","cmd.skills.header":"*\u53EF\u7528\u6280\u80FD*","cmd.agent.defaultSet":"\u9ED8\u8BA4 agent \u5DF2\u8BBE\u4E3A *${name}*\uFF08${detail}\uFF09","cmd.agent.disabled":"\u9ED8\u8BA4 agent \u5DF2\u7981\u7528\u3002","cmd.agent.unknown":"\u672A\u77E5 agent\uFF1A`${name}`\n\u53EF\u7528\uFF1A${available}","cmd.agent.channelSet":"\u672C\u5BF9\u8BDD\u7684 agent \u5DF2\u8BBE\u4E3A *${name}*\uFF08${detail}\uFF09\uFF0C\u4E0B\u4E00\u6761\u6D88\u606F\u751F\u6548\u3002","cmd.agent.channelHeader":"\u672C\u5BF9\u8BDD\u7684 agent\uFF1A*${name}*\uFF08${detail}\uFF09","cmd.agent.followingGlobal":"\u672C\u5BF9\u8BDD\u8DDF\u968F\u5168\u5C40\u9ED8\u8BA4\uFF1A*${name}*","cmd.agent.followingGlobalNone":"\u672C\u5BF9\u8BDD\u8DDF\u968F\u5168\u5C40\u9ED8\u8BA4\uFF0C\u800C\u5168\u5C40\u672A\u8BBE\u7F6E\uFF08\u4F7F\u7528 `main`\uFF09\u3002","cmd.agent.globalLine":"\u5168\u5C40\u9ED8\u8BA4\uFF1A*${name}*","cmd.agent.globalNone":"\u5168\u5C40\u9ED8\u8BA4\uFF1A\u65E0","cmd.agent.available":"\u53EF\u7528\uFF1A${agents}","cmd.agent.cleared":"\u5DF2\u6E05\u9664\u672C\u5BF9\u8BDD\u7684 agent \u2014\u2014 \u8DDF\u968F\u5168\u5C40\u9ED8\u8BA4\uFF1A*${name}*","cmd.agent.clearedNoGlobal":"\u5DF2\u6E05\u9664\u672C\u5BF9\u8BDD\u7684 agent \u2014\u2014 \u5168\u5C40\u672A\u8BBE\u7F6E\u9ED8\u8BA4\uFF0C\u4F7F\u7528 `main`\u3002","cmd.agent.globalUsage":"\u7528\u6CD5\uFF1A`!agent global <name>` \xB7 `!agent global off`","cmd.agent.followGlobalButton":"\u8DDF\u968F\u5168\u5C40","cmd.channel.noProjects":"\u672A\u627E\u5230\u9879\u76EE\u3002","cmd.channel.projectsHeader":"*\u9879\u76EE*\n${list}","cmd.channel.registeredNotification":"\u5DF2\u6CE8\u518C\u63A5\u6536 `${project}` \u7684\u4EFB\u52A1\u901A\u77E5\u3002","cmd.channel.unknownProject":"\u672A\u77E5\u9879\u76EE\uFF1A`${project}`\n\u53EF\u7528\uFF1A${available}","cmd.channel.channelRegistered":"\u672C\u9891\u9053\u73B0\u5DF2\u6CE8\u518C\u63A5\u6536\u9879\u76EE `${project}` \u7684\u4EFB\u52A1\u901A\u77E5\u3002","cmd.channel.registeredList":"\u5DF2\u6CE8\u518C\uFF1A${list}","cmd.channel.notRegisteredAny":"\u672C\u9891\u9053\u672A\u6CE8\u518C\u5230\u4EFB\u4F55\u9879\u76EE\u3002","cmd.channel.availableList":"\u53EF\u7528\uFF1A${list}","cmd.channel.unregisterUsage":"\u7528\u6CD5\uFF1A`!unregister <project>`","cmd.channel.notRegistered":"\u672C\u9891\u9053\u672A\u6CE8\u518C\u5230\u9879\u76EE `${project}`\u3002","cmd.channel.unregistered":"\u5DF2\u5C06\u672C\u9891\u9053\u4ECE\u9879\u76EE `${project}` \u6CE8\u9500\u3002","cmd.channel.modalTitle":"\u6DFB\u52A0\u9879\u76EE\u76EE\u5F55","cmd.channel.modalSubmit":"\u4FDD\u5B58","cmd.channel.modalProjectLabel":"\u9879\u76EE\u540D\u79F0","cmd.channel.modalProjectPlaceholder":"\u4F8B\u5982 example-project-dataset","cmd.channel.modalMachineLabel":"\u673A\u5668","cmd.channel.modalPathLabel":"\u76EE\u5F55\u8DEF\u5F84","cmd.channel.modalPathPlaceholder":"\u4F8B\u5982 /home/user/project","cmd.channel.dirSet":"`${project}` \u5728 `${machine}` \u4E0A \u2192 `${dir}`","cmd.channel.projectDirUsage":"\u7528\u6CD5\uFF1A`!project-dir <project> <machine> <path>` \u6216 `!project-dir <project> <machine> --remove`","cmd.channel.unknownMachine":"\u672A\u77E5\u673A\u5668\uFF1A`${machine}`\n\u6709\u6548\uFF1A${valid}","cmd.channel.dirRemoved":"\u5DF2\u79FB\u9664 `${project}` \u5728 `${machine}` \u4E0A\u7684\u76EE\u5F55\u3002","cmd.channel.dirShow":"`${project}` \u5728 `${machine}` \u4E0A \u2192 `${dir}`","cmd.channel.dirNone":"`${project}` \u5728 `${machine}` \u4E0A\u672A\u6CE8\u518C\u76EE\u5F55\u3002","cmd.channel.projectDirsHeader":"*\u9879\u76EE\u76EE\u5F55*\n${list}","cmd.channel.noProjectDirs":"\u672A\u6CE8\u518C\u4EFB\u4F55\u9879\u76EE\u76EE\u5F55\u3002","cmd.channel.addButton":"\u6DFB\u52A0","cmd.nvtop.unknownMachineGpu":"\u672A\u77E5\u673A\u5668\uFF1A`${machine}`\nGPU \u673A\u5668\uFF1A${valid}","cmd.nvtop.noGpu":"`${machine}` \u6CA1\u6709 GPU\u3002","cmd.nvtop.deviceOffline":"\u8BBE\u5907 `${machine}` \u4E0D\u5728\u7EBF\u3002","cmd.nvtop.smiHeader":"`${machine}` \u4E0A\u7684 *nvidia-smi*\n```\n${output}\n```","cmd.nvtop.noOutput":"\uFF08\u65E0\u8F93\u51FA\uFF09","cmd.nvtop.smiFailed":"`${machine}` \u4E0A\u7684 nvidia-smi \u5931\u8D25\uFF1A${error}","cmd.nvtop.noActive":"\u672C\u9891\u9053\u6CA1\u6709\u6D3B\u52A8\u7684 nvtop \u76D1\u89C6\u5668\u3002","cmd.nvtop.stopped":"`${machine}` \u4E0A\u7684 nvtop \u5DF2\u505C\u6B62\u3002","cmd.nvtop.alreadyRunning":"nvtop \u5DF2\u5728\u8FD0\u884C\u3002\u8BF7\u5148\u4F7F\u7528 `!nvtop stop`\u3002","cmd.nvtop.notSupported":"`${machine}` \u6682\u4E0D\u652F\u6301 nvtop \u76D1\u63A7\u3002","cmd.nvtop.failed":"`${machine}` \u4E0A\u7684 nvtop \u5931\u8D25\uFF1A${error}","cmd.sendfile.fileNotFound":"\u672A\u627E\u5230\u6587\u4EF6\uFF1A`${path}`","cmd.sendfile.notAFile":"\u4E0D\u662F\u6587\u4EF6\uFF1A`${path}`","cmd.sendfile.sent":"\u5DF2\u4ECE ${machine} \u53D1\u9001 `${name}`\uFF08${size} KB\uFF09","cmd.sendfile.fetchFailed":"\u4ECE ${machine} \u83B7\u53D6\u5931\u8D25\uFF1A${error}","cmd.sendfile.usage":"\u7528\u6CD5\uFF1A`!sendFile <machine> <path>`\n\u8DEF\u5F84\u53EF\u4E3A\u7EDD\u5BF9\u8DEF\u5F84\u3001\u76F8\u5BF9\u4E8E Cortex \u6839\u76EE\u5F55\u7684\u8DEF\u5F84\uFF0C\u6216\u4EE5 `~` \u5F00\u5934","cmd.sendfile.unknownMachine":"\u672A\u77E5\u673A\u5668\uFF1A`${machine}`\u3002\u5DF2\u77E5\uFF1A${known}","cmd.session.newConversation":"--- \u65B0\u5BF9\u8BDD ---\uFF08${selection}\uFF09","cmd.session.notFound":"\u672A\u627E\u5230\u4F1A\u8BDD `${name}`\u3002","cmd.session.switched":"\u5DF2\u5207\u6362\u5230\u4F1A\u8BDD `${name}`${selectionNote}","cmd.session.notFoundList":"\u672A\u627E\u5230\u4F1A\u8BDD `${name}`\u3002\u8BF7\u4F7F\u7528\u5B8C\u6574 ID \u6216\u81F3\u5C11 6 \u4F4D\u7684\u552F\u4E00\u524D\u7F00\uFF1B\u8FD0\u884C `!resume` \u5217\u51FA\u4F1A\u8BDD\u3002","cmd.session.ambiguous":"\u4F1A\u8BDD\u524D\u7F00 `${name}` \u5339\u914D\u591A\u4E2A\u4F1A\u8BDD\uFF1A${matches}\u3002\u8BF7\u4F7F\u7528\u66F4\u957F\u7684\u524D\u7F00\u6216\u5B8C\u6574 ID\u3002","cmd.session.selectionNote":"\uFF08${selection}\uFF09","cmd.session.noSessions":"\u5C1A\u65E0\u8BB0\u5F55\u7684\u4F1A\u8BDD\u3002","cmd.session.recentHeader":"*\u6700\u8FD1\u4F1A\u8BDD*","cmd.session.activeTag":" *(\u6D3B\u52A8)*","cmd.tail.noActive":"\u672C\u9891\u9053\u6CA1\u6709\u6D3B\u52A8\u7684 tail\u3002","cmd.tail.stopped":"Tail \u5DF2\u505C\u6B62\u3002","cmd.tail.preview":"*\u6B63\u5728 tail daemon.log*\uFF08\u6700\u540E ${n} \u884C\uFF0C\u6BCF 3 \u79D2\u5237\u65B0\uFF09\n```\n${content}\n```\n\u4F7F\u7528 `!tail stop` \u505C\u6B62\u3002","cmd.tail.cannotRead":"\u65E0\u6CD5\u8BFB\u53D6 daemon.log\uFF1A${error}","cmd.tail.alreadyTailing":"\u5DF2\u5728 tail\u3002\u8BF7\u5148\u4F7F\u7528 `!tail stop` \u505C\u6B62\u3002","cmd.auth.heading":"*\u8BA4\u8BC1\u72B6\u6001*","cmd.auth.generatedAt":"\u751F\u6210\u65F6\u95F4\uFF1A${time}","cmd.auth.runtimeLine":"PI \u8FD0\u884C\u65F6\uFF1A${status}${version}","cmd.auth.runtimeAvailable":"\u53EF\u7528","cmd.auth.runtimeUnavailable":"\u4E0D\u53EF\u7528","cmd.auth.runtimeVersion":" \xB7 \u7248\u672C ${version}","cmd.auth.backend.claude":"Claude","cmd.auth.backend.pi":"PI","cmd.auth.inUse":" \xB7 \u4F7F\u7528\u4E2D","cmd.auth.type.oauth":"OAuth","cmd.auth.type.api_key":"API key","cmd.auth.type.none":"\u65E0\u751F\u6548\u51ED\u636E","cmd.auth.state.logged-in":"\u5DF2\u767B\u5F55","cmd.auth.state.expiring":"\u5373\u5C06\u8FC7\u671F","cmd.auth.state.expired":"\u5DF2\u8FC7\u671F","cmd.auth.state.logged-out":"\u672A\u767B\u5F55","cmd.auth.state.unknown":"\u672A\u77E5","cmd.auth.accountLine":"\u2022 ${backend} \xB7 ${label} \xB7 ${authType} \xB7 ${state}${inUse}","cmd.auth.credentials":" \u51ED\u636E\uFF1A","cmd.auth.credentialLine":" - ${authType} \xB7 ${state} \xB7 ${source}${expires}","cmd.auth.expires":" \xB7 \u8FC7\u671F\u65F6\u95F4 ${time}","cmd.auth.hiddenLoggedOut":"\u5DF2\u9690\u85CF ${n} \u4E2A\u672A\u767B\u5F55 provider\u3002","cmd.auth.usage":"\u7528\u6CD5\uFF1A`!login [status|cc|pi [provider]]`","cmd.auth.loginReady":"`${provider}` \u7684 ${authType} \u767B\u5F55\u5DF2\u5C31\u7EEA\u3002","cmd.auth.loginAgain":"\u91CD\u65B0\u767B\u5F55","cmd.auth.loginContinue":"\u8F93\u5165 API key","cmd.auth.loginEnterCode":"\u8F93\u5165\u6388\u6743\u7801","cmd.auth.loginChoose":"\u9009\u62E9","cmd.auth.loginChooseProvider":"\u9009\u62E9 PI provider\u3002","cmd.auth.loginChooseAuthType":"\u4E3A `${provider}` \u9009\u62E9\u8BA4\u8BC1\u7C7B\u578B\u3002","cmd.auth.loginUnknownProvider":"Provider `${provider}` \u4E0D\u53EF\u7528\u4E8E\u767B\u5F55\u3002","cmd.auth.loginNoProviders":"\u6CA1\u6709\u652F\u6301\u767B\u5F55\u7684 PI provider\u3002","cmd.auth.loginModalTitle":"Backend \u767B\u5F55","cmd.auth.loginProviderLabel":"PI provider","cmd.auth.loginProviderPlaceholder":"\u9009\u62E9 provider","cmd.auth.loginAuthTypeLabel":"\u8BA4\u8BC1\u7C7B\u578B","cmd.auth.loginAuthTypePlaceholder":"\u9009\u62E9\u8BA4\u8BC1\u7C7B\u578B","cmd.auth.loginTextLabel":"\u54CD\u5E94","cmd.auth.loginTextPlaceholder":"\u8F93\u5165\u54CD\u5E94","cmd.auth.loginSecretLabel":"API key","cmd.auth.loginSecretPlaceholder":"\u7C98\u8D34 API key","cmd.auth.loginCodeLabel":"\u6388\u6743\u7801","cmd.auth.loginCodePlaceholder":"\u7C98\u8D34\u6388\u6743\u7801\u6216\u91CD\u5B9A\u5411 URL","cmd.auth.loginSelectPlaceholder":"\u9009\u62E9\u4E00\u4E2A\u9009\u9879","cmd.auth.loginSubmit":"\u767B\u5F55","cmd.auth.loginCancel":"\u53D6\u6D88","cmd.auth.loginRequired":"\u5FC5\u987B\u586B\u5199\u54CD\u5E94\u3002","cmd.auth.loginInProgress":"\u767B\u5F55\u4ECD\u5728\u8FDB\u884C\u4E2D\u3002","cmd.auth.loginExpired":"\u767B\u5F55\u6D41\u7A0B\u5DF2\u8FC7\u671F\u3002","cmd.auth.loginOpenAuthorization":"\u6253\u5F00\u6388\u6743\u9875\u9762\uFF1A","cmd.auth.loginDeviceCode":"\u8BBE\u5907\u7801","cmd.auth.loginVerificationPage":"\u9A8C\u8BC1\u9875\u9762","cmd.auth.loginDeviceExpires":"\u6B64\u8BBE\u5907\u7801\u5C06\u5728 ${seconds} \u79D2\u540E\u8FC7\u671F\u3002","cmd.auth.loginProgress":"\u767B\u5F55\u8FDB\u5EA6\uFF1A${message}","cmd.auth.loginSucceeded":"\u767B\u5F55\u6210\u529F\uFF1A`${provider}` \xB7 ${authType} \xB7 \u8FC7\u671F\u65F6\u95F4 ${expires}","cmd.auth.loginNoExpiry":"\u4E0D\u8FC7\u671F","cmd.auth.loginFailed":"\u767B\u5F55\u5931\u8D25\uFF1A${error}","cmd.auth.loginUnknownFailure":"\u672A\u77E5\u9519\u8BEF","cmd.auth.loginCancelled":"\u767B\u5F55\u5DF2\u53D6\u6D88\u3002","cmd.auth.cli.description":"\u68C0\u67E5 backend \u8BA4\u8BC1\u72B6\u6001","cmd.auth.cli.statusDescription":"\u663E\u793A backend \u8BA4\u8BC1\u72B6\u6001\u5FEB\u7167","cmd.auth.cli.jsonDescription":"\u4EE5 JSON \u8F93\u51FA\u539F\u59CB AuthStatusSnapshot","cmd.auth.cli.helpDescription":"\u663E\u793A\u5E2E\u52A9","cmd.auth.cli.helpUsage":"\u7528\u6CD5\uFF1A","cmd.auth.cli.helpCommands":"\u547D\u4EE4\uFF1A","cmd.auth.cli.helpOptions":"\u9009\u9879\uFF1A","cmd.auth.cli.helpExamples":"\u793A\u4F8B\uFF1A","cmd.auth.cli.validValues":"\u5408\u6CD5\u503C\uFF1A","cmd.auth.cli.hint":"\u63D0\u793A\uFF1A","cmd.auth.cli.exampleSummary":"\u663E\u793A\u672C\u5730\u5316\u72B6\u6001\u6458\u8981","cmd.auth.cli.exampleJson":"\u8F93\u51FA\u673A\u5668\u53EF\u8BFB\u5FEB\u7167","cmd.auth.cli.unknownSubcommand":"\u672A\u77E5 auth \u547D\u4EE4\uFF1A'${command}'\u3002","cmd.auth.cli.unknownFlag":"\u672A\u77E5 auth status \u9009\u9879\uFF1A'${flag}'\u3002","cmd.status.unavailable":"\u672C\u8FDB\u7A0B\u4E0D\u652F\u6301\u6267\u884C\u72B6\u6001\u62A5\u544A\u3002","cmd.status.refreshButton":"\u5237\u65B0","cmd.help.catSession":"\u4F1A\u8BDD","cmd.help.catConfig":"\u914D\u7F6E","cmd.help.catMonitoring":"\u76D1\u63A7","cmd.help.catProjects":"\u9879\u76EE","cmd.help.catDevices":"\u8BBE\u5907","cmd.help.session.new":"`!new` \u2014 \u5F00\u59CB\u65B0\u5BF9\u8BDD\uFF1B\u8FD0\u884C\u9884\u5173\u95ED\u94A9\u5B50\uFF08`!newq` \u8DF3\u8FC7\uFF09","cmd.help.session.cancel":"`!cancel [executionId|--all]` \u2014 \u505C\u6B62\u5F53\u524D\u8FD0\u884C\u3001\u6309 id \u505C\u6B62\u67D0\u6B21\u8FD0\u884C\uFF0C\u6216\u505C\u6B62\u6B64\u5904\u5168\u90E8\u8FD0\u884C","cmd.help.session.compact":"`!compact` \u2014 \u5728\u4F1A\u8BDD\u7A7A\u95F2\u65F6\u538B\u7F29\u6D3B\u52A8\u4E0A\u4E0B\u6587","cmd.help.session.resume":"`!resume [cortex-XXXX]` \u2014 \u5217\u51FA\u6700\u8FD1\u4F1A\u8BDD\uFF0C\u6216\u5207\u6362\u5230\u67D0\u4E2A\u4F1A\u8BDD","cmd.help.config.mode":"`!mode [route]` \u2014 \u67E5\u770B\u6216\u8BBE\u7F6E\u672C\u9891\u9053\u7F51\u5173\u8DEF\u7531","cmd.help.config.backend":"`!backend [claude|pi]` \u2014 \u9009\u62E9\u8BE5\u540E\u7AEF\u7684\u9ED8\u8BA4\u6A21\u578B","cmd.help.config.model":"`!model [name|reset]` \u2014 \u663E\u793A\u3001\u8986\u76D6\u6216\u6062\u590D\u672C\u9891\u9053\u7684\u6A21\u578B","cmd.help.config.thinking":"`!thinking [\u6863\u4F4D|reset]` \u2014 \u663E\u793A\u3001\u8986\u76D6\u6216\u6062\u590D\u672C\u9891\u9053\u7684\u601D\u8003\u6863\u4F4D","cmd.help.config.skills":"`!skills` \u2014 \u5217\u51FA\u53EF\u7528\u6280\u80FD","cmd.help.monitoring.cost":"`!cost [project]` \u2014 \u663E\u793A\u6210\u672C\u6C47\u603B\uFF08\u5168\u5C40\u6216\u6309\u9879\u76EE\uFF09","cmd.help.monitoring.usage":"`!usage [provider]` \u2014 \u663E\u793A\u4F9B\u5E94\u5546\u914D\u989D\u548C\u6D88\u8D39\u989D","cmd.help.monitoring.status":"`!status` \u2014 \u663E\u793A\u8FD0\u884C\u4E2D\u7684\u6267\u884C\u6C47\u603B","cmd.help.monitoring.login":"`!login [status|cc|pi [provider]]` \u2014 \u67E5\u770B\u72B6\u6001\u6216\u542F\u52A8 backend \u767B\u5F55","cmd.help.monitoring.budget":"`!budget [list|<\u9879\u76EE>] [$X/d $Y/m|clear]` \u2014 \u67E5\u770B\u6216\u8BBE\u7F6E\u5168\u5C40\u4E0E\u9879\u76EE\u9884\u7B97","cmd.help.monitoring.schedule":"`!schedule` \u2014 \u5217\u51FA\u3001\u6DFB\u52A0\u3001\u6682\u505C\u3001\u6062\u590D\u6216\u79FB\u9664\u5B9A\u65F6\u4EFB\u52A1","cmd.help.projects.projects":"`!projects` \u2014 \u5217\u51FA\u9879\u76EE\u53CA\u5176\u6CE8\u518C\u7684\u9891\u9053","cmd.help.projects.register":"`!register <project>` \u2014 \u6CE8\u518C\u672C\u9891\u9053\u63A5\u6536\u9879\u76EE\u901A\u77E5","cmd.help.projects.unregister":"`!unregister <project>` \u2014 \u5C06\u672C\u9891\u9053\u4ECE\u67D0\u9879\u76EE\u6CE8\u9500","cmd.help.projects.projectDir":"`!project-dir` \u2014 \u6309\u673A\u5668\u7BA1\u7406\u9879\u76EE\u4EE3\u7801\u76EE\u5F55","cmd.help.devices.devices":"`!devices` \u2014 \u663E\u793A\u6240\u6709 cortex-client \u8BBE\u5907\u7684\u5728\u7EBF/\u79BB\u7EBF\u72B6\u6001","cmd.help.devices.nvidiaSmi":"`!nvidia-smi [machine]` \u2014 \u663E\u793A GPU \u72B6\u6001\uFF08\u9ED8\u8BA4\uFF1A\u672C\u5730\uFF09","cmd.help.devices.nvtop":"`!nvtop [machine|stop]` \u2014 \u5E26 sparkline \u89C6\u56FE\u7684\u5B9E\u65F6 GPU \u76D1\u63A7","cmd.help.devices.tail":"`!tail [stop]` \u2014 \u5B9E\u65F6 tail daemon.log","cmd.help.devices.sendfile":"`!sendFile <machine> <path>` \u2014 \u5411 Slack \u53D1\u9001\u6587\u4EF6","cmd.help.config.agent":"`!agent [name|off]` \u2014 \u663E\u793A\u3001\u8BBE\u7F6E\u6216\u7981\u7528\u9ED8\u8BA4 agent","cmd.help.heading":"*\u547D\u4EE4*","cmd.help.headingCategory":"*\u547D\u4EE4 \u2014 ${label}*","cmd.help.selfLine":"`!help` \u2014 \u663E\u793A\u6B64\u6D88\u606F","cmd.help.showAll":"\u5168\u90E8\u663E\u793A","cmd.usage.header":"*\u4F9B\u5E94\u5546\u7528\u91CF*","cmd.usage.empty":"\u5C1A\u672A\u91C7\u96C6\u4F9B\u5E94\u5546\u7528\u91CF\u6570\u636E\u3002","cmd.usage.noneAvailable":"\u65E0","cmd.usage.unknownProvider":"\u672A\u77E5\u7528\u91CF\u4F9B\u5E94\u5546\uFF1A`${provider}`\u3002\u53EF\u7528\u4F9B\u5E94\u5546\uFF1A${available}","cmd.usage.providerLine":"*${name}* (`${provider}`) \u2014 ${freshness}","cmd.usage.freshness.live":"\u6700\u65B0","cmd.usage.freshness.stale":"\u5DF2\u8FC7\u671F","cmd.usage.freshness.never":"\u4ECE\u672A\u89C2\u6D4B","cmd.usage.freshness.unsupported":"\u914D\u989D\u4E0D\u652F\u6301","cmd.usage.window.fiveHour":"5 \u5C0F\u65F6","cmd.usage.window.sevenDay":"7 \u5929","cmd.usage.window.sevenDayOpus":"7 \u5929 Opus","cmd.usage.window.sevenDayOverage":"7 \u5929\uFF08\u542B\u8D85\u989D\uFF09","cmd.usage.window.sevenDayModel":"7 \u5929\uFF08${model}\uFF09","cmd.usage.window.codexPrimary":"\u4E3B\u8981\u7A97\u53E3","cmd.usage.window.codexSecondary":"\u6B21\u8981\u7A97\u53E3","cmd.usage.windowLine":"\u2022 ${label}\uFF1A${utilization}${reset}","cmd.usage.resetSuffix":" \xB7 \u91CD\u7F6E\u4E8E ${time}","cmd.usage.unavailable":"\u4E0D\u53EF\u7528","cmd.usage.spendLine":"\u2022 \u6D88\u8D39\u989D\uFF1A\u4ECA\u65E5 $${today} \xB7 \u672C\u6708 $${month}","cmd.usage.observedLine":"\u2022 \u89C2\u6D4B\u65F6\u95F4\uFF1A${time}","cmd.usage.noteLine":"\u2022 \u5907\u6CE8\uFF1A${note}","cmd.usage.refreshButton":"\u5237\u65B0","cmd.usage.resetCreditsLine":"\u2022 \u53EF\u7528\u91CD\u7F6E\uFF1A${count}${expiry}","cmd.usage.resetExpirySuffix":" \xB7 \u6700\u65E9 ${time} \u8FC7\u671F","cmd.usage.resetButton":"\u91CD\u7F6E ${name}","cmd.usage.resetConfirmCodex":"\u4F7F\u7528\u4E00\u6B21 Codex \u91CD\u7F6E\uFF1F\u8FD9\u4F1A\u6062\u590D\u8BE5\u8D26\u53F7\u5728\u6240\u6709\u8BBE\u5907\u4E0A\u7684 Codex \u7528\u91CF\uFF0C\u4E14\u65E0\u6CD5\u64A4\u9500\u3002","cmd.usage.resetConfirmClaude":"\u4F7F\u7528\u4E00\u6B21 Claude \u91CD\u7F6E\uFF1F\u8FD9\u4F1A\u6E05\u7A7A\u6574\u4E2A\u8D26\u53F7\u7684 ${windows} \u9650\u989D\uFF08claude.ai \u4E0E\u5176\u4ED6\u6240\u6709\u8BBE\u5907\u4E00\u5E76\u751F\u6548\uFF09\uFF0C\u4E14\u65E0\u6CD5\u64A4\u9500\u3002","cmd.usage.resetAllWindows":"\u7528\u91CF","cmd.usage.resetNotAtLimit":"\u8D26\u53F7\u5F53\u524D\u672A\u8FBE\u5230\u9650\u989D\uFF1A${usage}\u3002","cmd.usage.resetConfirmButton":"\u786E\u8BA4\u91CD\u7F6E","cmd.usage.resetCancelButton":"\u53D6\u6D88","cmd.usage.resetCancelled":"\u672A\u4F7F\u7528\u91CD\u7F6E\u3002","cmd.usage.resetRunning":"\u6B63\u5728\u4F7F\u7528 ${name} \u91CD\u7F6E\u2026","cmd.usage.resetDone":"\u5DF2\u4F7F\u7528 ${name} \u91CD\u7F6E\uFF0C\u7528\u91CF\u5DF2\u6062\u590D\u3002","cmd.usage.resetNothing":"${name} \u7528\u91CF\u672A\u53D7\u9650\uFF0C\u65E0\u9700\u91CD\u7F6E\uFF0C\u672A\u6D88\u8017\u91CD\u7F6E\u3002","cmd.usage.resetNoCredit":"\u6CA1\u6709\u53EF\u7528\u7684 ${name} \u91CD\u7F6E\u3002","cmd.usage.resetAlreadyRedeemed":"\u8BE5 ${name} \u91CD\u7F6E\u5DF2\u88AB\u4F7F\u7528\u3002","cmd.usage.resetCooldown":"${name} \u91CD\u7F6E\u6B63\u5728\u51B7\u5374\uFF0C\u8BF7\u7A0D\u540E\u518D\u8BD5\uFF0C\u672A\u6D88\u8017\u91CD\u7F6E\u3002","cmd.usage.resetIneligible":"\u8BE5 ${name} \u8D26\u53F7\u5F53\u524D\u65E0\u6CD5\u4F7F\u7528\u91CD\u7F6E\uFF0C\u672A\u6D88\u8017\u91CD\u7F6E\u3002","cmd.usage.resetSignedOut":"${name} \u672A\u767B\u5F55\u3002","cmd.usage.resetFailed":"${name} \u91CD\u7F6E\u5931\u8D25\uFF1A${error}","cmd.schedule.none":"\u6CA1\u6709\u5B9A\u65F6\u4EFB\u52A1\u3002","cmd.schedule.header":"*\u5B9A\u65F6\u4EFB\u52A1\uFF08${n}\uFF09\uFF1A*","cmd.schedule.removeButton":"\u79FB\u9664 ${id}","cmd.schedule.resumeButton":"\u6062\u590D ${id}","cmd.schedule.pauseButton":"\u6682\u505C ${id}","cmd.schedule.now":"\u73B0\u5728","cmd.schedule.paused":"\u5DF2\u6682\u505C","cmd.schedule.nextLabel":"\u4E0B\u6B21","cmd.device.header":"*\u8BBE\u5907*","cmd.device.online":"`${name}` ${platform} \u8FDE\u63A5\u4E8E ${connAgo} \u5FC3\u8DF3 ${hbAgo}","cmd.device.offline":"`${name}` \u79BB\u7EBF","cmd.device.none":"\u6CA1\u6709\u5DF2\u6CE8\u518C\u6216\u5728\u7EBF\u7684\u8BBE\u5907\u3002","cmd.device.refreshButton":"\u5237\u65B0","cmd.orient.notImplemented":"`!orient` \u547D\u4EE4\u5C1A\u672A\u5B9E\u73B0\u3002","cmd.restart.triggered":"\u6B63\u5728\u91CD\u542F Cortex \u670D\u52A1\u5668\u2026\u2026\u7A0D\u540E\u5C06\u81EA\u52A8\u91CD\u8FDE\u3002","cmd.restart.noDaemon":"\u65E0\u6CD5\u91CD\u542F\uFF1A\u672A\u68C0\u6D4B\u5230\u6B63\u5728\u8FD0\u884C\u7684\u5B88\u62A4\u8FDB\u7A0B\u3002\u9700\u901A\u8FC7 `cortex daemon` \u542F\u52A8\u670D\u52A1\u5668\u624D\u80FD\u91CD\u542F\u3002","cmd.cost.budgetHeader":"*\u9884\u7B97*\n\u2022 \u6BCF\u65E5\uFF1A$${dailyBudget}\uFF08\u5DF2\u7528\uFF1A$${dailySpent}\uFF0C\u5269\u4F59\uFF1A$${dailyRemaining}\uFF09\n\u2022 \u6BCF\u6708\uFF1A$${monthlyBudget}\uFF08\u5DF2\u7528\uFF1A$${monthlySpent}\uFF0C\u5269\u4F59\uFF1A$${monthlyRemaining}\uFF09","cmd.cost.budgetHeaderProject":"*\u9884\u7B97 \u2014 ${project}*\uFF08${scope}\uFF09\n\u2022 \u6BCF\u65E5\uFF1A$${dailyBudget}\uFF08\u5DF2\u7528\uFF1A$${dailySpent}\uFF0C\u5269\u4F59\uFF1A$${dailyRemaining}\uFF09\n\u2022 \u6BCF\u6708\uFF1A$${monthlyBudget}\uFF08\u5DF2\u7528\uFF1A$${monthlySpent}\uFF0C\u5269\u4F59\uFF1A$${monthlyRemaining}\uFF09","cmd.cost.budgetScopeProject":"\u9879\u76EE\u72EC\u7ACB\u9884\u7B97","cmd.cost.budgetScopeGlobal":"\u7EE7\u627F\u5168\u5C40\u9884\u7B97","cmd.cost.budgetUpdated":"\u9884\u7B97\u5DF2\u66F4\u65B0\uFF1A$${daily}/\u5929\uFF0C$${monthly}/\u6708","cmd.cost.budgetUpdatedProject":"`${project}` \u7684\u9884\u7B97\u5DF2\u66F4\u65B0\uFF1A$${daily}/\u5929\uFF0C$${monthly}/\u6708","cmd.cost.budgetCleared":"\u5DF2\u79FB\u9664 `${project}` \u7684\u9879\u76EE\u9884\u7B97 \u2014 \u73B0\u5728\u7EE7\u627F\u5168\u5C40\u9650\u989D\u3002","cmd.cost.budgetNoOverride":"`${project}` \u6CA1\u6709\u8BBE\u7F6E\u9879\u76EE\u9884\u7B97 \u2014 \u65E0\u9700\u6E05\u9664\u3002","cmd.cost.budgetListHeader":"*\u9884\u7B97*\n\u2022 \u5168\u5C40\uFF1A$${daily}/\u5929\uFF0C$${monthly}/\u6708","cmd.cost.budgetListEmpty":"\u6CA1\u6709\u9879\u76EE\u7EA7\u8986\u76D6\uFF0C\u6240\u6709\u9879\u76EE\u90FD\u7EE7\u627F\u5168\u5C40\u9650\u989D\u3002","cmd.cost.budgetListItem":"\u2022 ${project}\uFF1A$${daily}/\u5929\uFF0C$${monthly}/\u6708","cmd.cost.budgetPairRequired":"\u9879\u76EE\u9884\u7B97\u5FC5\u987B\u540C\u65F6\u8BBE\u7F6E\u65E5\u989D\u548C\u6708\u989D\u3002\u7528\u6CD5\uFF1A`!budget ${project} $50/d $1000/m`","cmd.cost.budgetUnknownProject":"\u672A\u77E5\u9879\u76EE\uFF1A`${project}`\u3002\u5DF2\u77E5\u9879\u76EE\uFF1A${known}","cmd.unknown":"\u672A\u77E5\u547D\u4EE4\uFF1A`${cmd}`\u3002\u8FD0\u884C `!help` \u67E5\u770B\u53EF\u7528\u547D\u4EE4\u3002","cmd.error":"\u547D\u4EE4\u9519\u8BEF\uFF1A${error}","cmd.errorUnknown":"\u672A\u77E5\u9519\u8BEF"};var u={"schedule.help.title":"*Schedule commands:*","schedule.help.addInterval":"`!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>` \u2014 repeat every duration (e.g. `30m`, `2h`, `1d`)","schedule.help.addDaily":"`!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>` \u2014 run every day at a fixed time (24-hour)","schedule.help.addWeekly":"`!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>` \u2014 run every week (day: mon,tue,wed,thu,fri,sat,sun)","schedule.help.addOnce":"`!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>` \u2014 run once after a delay","schedule.help.list":"`!schedule list` \u2014 show all scheduled tasks","schedule.help.pause":"`!schedule pause <id>` \u2014 pause a recurring task","schedule.help.resume":"`!schedule resume <id>` \u2014 resume a paused recurring task","schedule.help.remove":"`!schedule remove <id>` \u2014 remove a task by id","schedule.help.availableModels":"Favorite models: ${modelNames}","schedule.remove.usage":"Usage: `!schedule remove <id>`","schedule.remove.ok":"Removed task `${id}`.","schedule.taskNotFound":"Task not found: `${id}`","schedule.pause.usage":"Usage: `!schedule pause <id>`","schedule.pause.ok":"Paused task `${id}`.","schedule.resume.usage":"Usage: `!schedule resume <id>`","schedule.resume.ok":"Resumed task `${id}`.${nextAt}","schedule.resume.nextRun":" Next run: ${time}.","schedule.invalidDuration":"Invalid duration: `${duration}`. Use e.g. `30s`, `5m`, `2h`, `1d`","schedule.invalidTime":"Invalid time: `${time}`. Use 24-hour HH:MM, e.g. `${example}`","schedule.invalidDay":"Invalid day: `${day}`. Use: mon, tue, wed, thu, fri, sat, sun","schedule.add.intervalUsage":"Usage: `!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>`","schedule.add.dailyUsage":"Usage: `!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>`","schedule.add.weeklyUsage":"Usage: `!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>`","schedule.add.onceUsage":"Usage: `!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>`","schedule.add.scheduledInterval":'Scheduled every *${duration}*: "${message}"',"schedule.add.scheduledDaily":'Scheduled daily at *${time}*: "${message}"',"schedule.add.scheduledWeekly":'Scheduled weekly *${day} ${time}*: "${message}"',"schedule.add.scheduledOnce":'Scheduled once in *${duration}*: "${message}"',"schedule.add.unknownType":"Unknown type: `${type}`. Use `interval`, `daily`, `weekly`, or `once`"},m={"schedule.help.title":"*\u5B9A\u65F6\u4EFB\u52A1\u547D\u4EE4\uFF1A*","schedule.help.addInterval":"`!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>` \u2014 \u6BCF\u9694\u6307\u5B9A\u65F6\u957F\u91CD\u590D\uFF08\u4F8B\u5982 `30m`\u3001`2h`\u3001`1d`\uFF09","schedule.help.addDaily":"`!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>` \u2014 \u6BCF\u5929\u5728\u56FA\u5B9A\u65F6\u95F4\u8FD0\u884C\uFF0824 \u5C0F\u65F6\u5236\uFF09","schedule.help.addWeekly":"`!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>` \u2014 \u6BCF\u5468\u8FD0\u884C\uFF08day\uFF1Amon,tue,wed,thu,fri,sat,sun\uFF09","schedule.help.addOnce":"`!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>` \u2014 \u5EF6\u8FDF\u4E00\u6BB5\u65F6\u95F4\u540E\u8FD0\u884C\u4E00\u6B21","schedule.help.list":"`!schedule list` \u2014 \u663E\u793A\u6240\u6709\u5B9A\u65F6\u4EFB\u52A1","schedule.help.pause":"`!schedule pause <id>` \u2014 \u6682\u505C\u4E00\u4E2A\u5468\u671F\u4EFB\u52A1","schedule.help.resume":"`!schedule resume <id>` \u2014 \u6062\u590D\u4E00\u4E2A\u5DF2\u6682\u505C\u7684\u5468\u671F\u4EFB\u52A1","schedule.help.remove":"`!schedule remove <id>` \u2014 \u6309 id \u5220\u9664\u4EFB\u52A1","schedule.help.availableModels":"\u6536\u85CF\u6A21\u578B\uFF1A${modelNames}","schedule.remove.usage":"\u7528\u6CD5\uFF1A`!schedule remove <id>`","schedule.remove.ok":"\u5DF2\u5220\u9664\u4EFB\u52A1 `${id}`\u3002","schedule.taskNotFound":"\u672A\u627E\u5230\u4EFB\u52A1\uFF1A`${id}`","schedule.pause.usage":"\u7528\u6CD5\uFF1A`!schedule pause <id>`","schedule.pause.ok":"\u5DF2\u6682\u505C\u4EFB\u52A1 `${id}`\u3002","schedule.resume.usage":"\u7528\u6CD5\uFF1A`!schedule resume <id>`","schedule.resume.ok":"\u5DF2\u6062\u590D\u4EFB\u52A1 `${id}`\u3002${nextAt}","schedule.resume.nextRun":" \u4E0B\u6B21\u8FD0\u884C\uFF1A${time}\u3002","schedule.invalidDuration":"\u65E0\u6548\u7684\u65F6\u957F\uFF1A`${duration}`\u3002\u8BF7\u4F7F\u7528\u4F8B\u5982 `30s`\u3001`5m`\u3001`2h`\u3001`1d`","schedule.invalidTime":"\u65E0\u6548\u7684\u65F6\u95F4\uFF1A`${time}`\u3002\u8BF7\u4F7F\u7528 24 \u5C0F\u65F6\u5236 HH:MM\uFF0C\u4F8B\u5982 `${example}`","schedule.invalidDay":"\u65E0\u6548\u7684\u661F\u671F\uFF1A`${day}`\u3002\u8BF7\u4F7F\u7528\uFF1Amon, tue, wed, thu, fri, sat, sun","schedule.add.intervalUsage":"\u7528\u6CD5\uFF1A`!schedule add interval <duration> [--model [provider/]model] [--thinking L] <message>`","schedule.add.dailyUsage":"\u7528\u6CD5\uFF1A`!schedule add daily <HH:MM> [--model [provider/]model] [--thinking L] <message>`","schedule.add.weeklyUsage":"\u7528\u6CD5\uFF1A`!schedule add weekly <day> <HH:MM> [--model [provider/]model] [--thinking L] <message>`","schedule.add.onceUsage":"\u7528\u6CD5\uFF1A`!schedule add once <duration> [--model [provider/]model] [--thinking L] <message>`","schedule.add.scheduledInterval":'\u5DF2\u8BBE\u5B9A\u6BCF *${duration}* \u8FD0\u884C\u4E00\u6B21\uFF1A"${message}"',"schedule.add.scheduledDaily":'\u5DF2\u8BBE\u5B9A\u6BCF\u5929 *${time}* \u8FD0\u884C\uFF1A"${message}"',"schedule.add.scheduledWeekly":'\u5DF2\u8BBE\u5B9A\u6BCF\u5468 *${day} ${time}* \u8FD0\u884C\uFF1A"${message}"',"schedule.add.scheduledOnce":'\u5DF2\u8BBE\u5B9A *${duration}* \u540E\u8FD0\u884C\u4E00\u6B21\uFF1A"${message}"',"schedule.add.unknownType":"\u672A\u77E5\u7684\u7C7B\u578B\uFF1A`${type}`\u3002\u8BF7\u4F7F\u7528 `interval`\u3001`daily`\u3001`weekly` \u6216 `once`"};var p={"interaction.askExpired":"This AskUserQuestion prompt has expired. Please ask again if you still need it.","interaction.askInactive":"This AskUserQuestion prompt is no longer active.","interaction.selectOrType":"Please select an option or type a custom answer.","interaction.questionsProgress":"Questions (${answered}/${total} answered)","interaction.planApproved":"Plan approved \u2014 Cortex will proceed.","interaction.planApprovedRich":"*Plan approved* \u2014 Cortex will proceed.","interaction.planFeedbackSent":"Plan feedback sent \u2014 Cortex will revise.\n> ${feedback}","interaction.noSpecificFeedback":"No specific feedback","interaction.cancelledPreserved":"Cancelled. Session preserved \u2014 next message will resume.","interaction.sessionActive":"Session `${sessionId}` active \u2014 send your message below.${selectionNote}","interaction.sessionSelectionNote":" (${selection})","interaction.newConversation":"--- new conversation --- (${selection})","update.installing":"Installing @cortex-agent/server@${version}... daemon will restart shortly.","update.skipped":"Skipped version ${version}.","update.cancelled":"Update cancelled. Will check again at next interval.","update.releaseNotesTitle":"Cortex Server v${version} Release Notes","update.releaseNotesEmpty":"(No release notes available)","update.releaseNotesTruncated":`
5
-
6
- _[Truncated \u2014 view full notes on GitHub]_`,"update.releaseNotesBody":`**\${name}**
7
-
8
- \${body}
9
-
10
- [View full release notes](\${url})`,"update.releaseNotesFetchFailed":"Failed to fetch release notes for v${version}. View on GitHub: ${url}","update.available":"Cortex Server v${version} is available. Update now?","update.availableSection":"Cortex Server v${version} is available.","update.superseded":"Superseded by a newer update prompt.","update.timedOut":"Update prompt timed out.","update.button.update":"Update","update.button.releaseNote":"Release Note","update.button.skip":"Skip this version","update.button.cancel":"Cancel","modal.answer":"Answer (${answered}/${total})","modal.selectOneOrMore":"Select one or more","modal.selectOne":"Select one","modal.typeAnswerLabel":"Or type your answer","modal.customAnswerPlaceholder":"Custom answer (overrides selection above)","modal.yourAnswerLabel":"Your answer","modal.yourAnswerPlaceholder":"Type your answer","modal.questionsTitle":"Questions","modal.submit":"Submit","modal.cancel":"Cancel","modal.planReady":"*Plan ready for review.* Approve to proceed or provide feedback.","modal.approve":"Approve","modal.provideFeedback":"Provide Feedback","modal.planFeedbackTitle":"Plan Feedback","modal.feedbackLabel":"Your feedback (Cortex will revise the plan)","modal.feedbackPlaceholder":"What should be changed?"},h={"interaction.askExpired":"\u6B64 AskUserQuestion \u63D0\u95EE\u5DF2\u8FC7\u671F\u3002\u5982\u4ECD\u9700\u8981\u8BF7\u91CD\u65B0\u63D0\u95EE\u3002","interaction.askInactive":"\u6B64 AskUserQuestion \u63D0\u95EE\u5DF2\u4E0D\u518D\u6709\u6548\u3002","interaction.selectOrType":"\u8BF7\u9009\u62E9\u4E00\u4E2A\u9009\u9879\u6216\u8F93\u5165\u81EA\u5B9A\u4E49\u7B54\u6848\u3002","interaction.questionsProgress":"\u95EE\u9898\uFF08\u5DF2\u56DE\u7B54 ${answered}/${total}\uFF09","interaction.planApproved":"\u8BA1\u5212\u5DF2\u6279\u51C6 \u2014 Cortex \u5C06\u7EE7\u7EED\u6267\u884C\u3002","interaction.planApprovedRich":"*\u8BA1\u5212\u5DF2\u6279\u51C6* \u2014 Cortex \u5C06\u7EE7\u7EED\u6267\u884C\u3002","interaction.planFeedbackSent":"\u8BA1\u5212\u53CD\u9988\u5DF2\u53D1\u9001 \u2014 Cortex \u5C06\u8FDB\u884C\u4FEE\u8BA2\u3002\n> ${feedback}","interaction.noSpecificFeedback":"\u6CA1\u6709\u5177\u4F53\u53CD\u9988","interaction.cancelledPreserved":"\u5DF2\u53D6\u6D88\u3002\u4F1A\u8BDD\u5DF2\u4FDD\u7559 \u2014 \u4E0B\u4E00\u6761\u6D88\u606F\u5C06\u7EE7\u7EED\u3002","interaction.sessionActive":"\u4F1A\u8BDD `${sessionId}` \u5DF2\u6FC0\u6D3B \u2014 \u8BF7\u5728\u4E0B\u65B9\u53D1\u9001\u4F60\u7684\u6D88\u606F\u3002${selectionNote}","interaction.sessionSelectionNote":"\uFF08${selection}\uFF09","interaction.newConversation":"--- \u65B0\u4F1A\u8BDD ---\uFF08${selection}\uFF09","update.installing":"\u6B63\u5728\u5B89\u88C5 @cortex-agent/server@${version}\u2026\u2026\u5B88\u62A4\u8FDB\u7A0B\u7A0D\u540E\u5C06\u91CD\u542F\u3002","update.skipped":"\u5DF2\u8DF3\u8FC7\u7248\u672C ${version}\u3002","update.cancelled":"\u66F4\u65B0\u5DF2\u53D6\u6D88\u3002\u5C06\u5728\u4E0B\u6B21\u68C0\u67E5\u95F4\u9694\u518D\u6B21\u68C0\u67E5\u3002","update.releaseNotesTitle":"Cortex Server v${version} \u53D1\u5E03\u8BF4\u660E","update.releaseNotesEmpty":"\uFF08\u65E0\u53EF\u7528\u7684\u53D1\u5E03\u8BF4\u660E\uFF09","update.releaseNotesTruncated":`
11
-
12
- _[\u5DF2\u622A\u65AD \u2014 \u5728 GitHub \u4E0A\u67E5\u770B\u5B8C\u6574\u8BF4\u660E]_`,"update.releaseNotesBody":`**\${name}**
13
-
14
- \${body}
15
-
16
- [\u67E5\u770B\u5B8C\u6574\u53D1\u5E03\u8BF4\u660E](\${url})`,"update.releaseNotesFetchFailed":"\u83B7\u53D6 v${version} \u7684\u53D1\u5E03\u8BF4\u660E\u5931\u8D25\u3002\u5728 GitHub \u4E0A\u67E5\u770B\uFF1A${url}","update.available":"Cortex Server v${version} \u5DF2\u53EF\u7528\u3002\u73B0\u5728\u66F4\u65B0\u5417\uFF1F","update.availableSection":"Cortex Server v${version} \u5DF2\u53EF\u7528\u3002","update.superseded":"\u5DF2\u88AB\u66F4\u65B0\u7684\u66F4\u65B0\u63D0\u793A\u53D6\u4EE3\u3002","update.timedOut":"\u66F4\u65B0\u63D0\u793A\u5DF2\u8D85\u65F6\u3002","update.button.update":"\u66F4\u65B0","update.button.releaseNote":"\u53D1\u5E03\u8BF4\u660E","update.button.skip":"\u8DF3\u8FC7\u6B64\u7248\u672C","update.button.cancel":"\u53D6\u6D88","modal.answer":"\u56DE\u7B54\uFF08${answered}/${total}\uFF09","modal.selectOneOrMore":"\u9009\u62E9\u4E00\u4E2A\u6216\u591A\u4E2A","modal.selectOne":"\u9009\u62E9\u4E00\u4E2A","modal.typeAnswerLabel":"\u6216\u8F93\u5165\u4F60\u7684\u7B54\u6848","modal.customAnswerPlaceholder":"\u81EA\u5B9A\u4E49\u7B54\u6848\uFF08\u8986\u76D6\u4E0A\u65B9\u9009\u62E9\uFF09","modal.yourAnswerLabel":"\u4F60\u7684\u7B54\u6848","modal.yourAnswerPlaceholder":"\u8F93\u5165\u4F60\u7684\u7B54\u6848","modal.questionsTitle":"\u95EE\u9898","modal.submit":"\u63D0\u4EA4","modal.cancel":"\u53D6\u6D88","modal.planReady":"*\u8BA1\u5212\u5DF2\u5C31\u7EEA\uFF0C\u7B49\u5F85\u5BA1\u9605\u3002* \u6279\u51C6\u4EE5\u7EE7\u7EED\uFF0C\u6216\u63D0\u4F9B\u53CD\u9988\u3002","modal.approve":"\u6279\u51C6","modal.provideFeedback":"\u63D0\u4F9B\u53CD\u9988","modal.planFeedbackTitle":"\u8BA1\u5212\u53CD\u9988","modal.feedbackLabel":"\u4F60\u7684\u53CD\u9988\uFF08Cortex \u5C06\u4FEE\u8BA2\u8BA1\u5212\uFF09","modal.feedbackPlaceholder":"\u5E94\u8BE5\u4FEE\u6539\u4EC0\u4E48\uFF1F"};var g={"startup.started":"Cortex agent v${version} started on ${machine}.","startup.restarted":"Cortex agent v${version} restarted on ${machine}.","startup.reason":" Reason: ${reason}.","startup.rebuildHold":"Cortex is rebuilding itself (${phase}) and is about to restart, so this message was not processed. Send it again in a moment.","startup.rebuildHoldDropped":"A message for ${channel} arrived during the rebuild (${phase}) and was not processed: ${preview}","startup.updateHold":"Cortex is installing a server update and is about to restart, so this message was not processed. Send it again in a moment.","startup.updateHoldDropped":"A message for ${channel} arrived during the server update and was not processed: ${preview}"},$={"startup.started":"Cortex \u4EE3\u7406 v${version} \u5DF2\u5728 ${machine} \u4E0A\u542F\u52A8\u3002","startup.restarted":"Cortex \u4EE3\u7406 v${version} \u5DF2\u5728 ${machine} \u4E0A\u91CD\u542F\u3002","startup.reason":" \u539F\u56E0\uFF1A${reason}\u3002","startup.rebuildHold":"Cortex \u6B63\u5728\u70ED\u91CD\u5EFA\uFF08${phase}\uFF09\u5E76\u5373\u5C06\u91CD\u542F\uFF0C\u8FD9\u6761\u6D88\u606F\u6CA1\u6709\u88AB\u5904\u7406\u3002\u8BF7\u7A0D\u540E\u91CD\u53D1\u3002","startup.rebuildHoldDropped":"\u91CD\u5EFA\u671F\u95F4\uFF08${phase}\uFF09\u6536\u5230\u4E00\u6761\u53D1\u5F80 ${channel} \u7684\u6D88\u606F\uFF0C\u672A\u88AB\u5904\u7406\uFF1A${preview}","startup.updateHold":"Cortex \u6B63\u5728\u5B89\u88C5\u670D\u52A1\u5668\u66F4\u65B0\u5E76\u5373\u5C06\u91CD\u542F\uFF0C\u8FD9\u6761\u6D88\u606F\u6CA1\u6709\u88AB\u5904\u7406\u3002\u8BF7\u7A0D\u540E\u91CD\u53D1\u3002","startup.updateHoldDropped":"\u670D\u52A1\u5668\u66F4\u65B0\u671F\u95F4\u6536\u5230\u4E00\u6761\u53D1\u5F80 ${channel} \u7684\u6D88\u606F\uFF0C\u672A\u88AB\u5904\u7406\uFF1A${preview}"};var v={"init.auth.loginDescription":"Interactive provider login (PI bundled; Claude installed only on confirmation)","init.auth.help":"Login interactively; credentials are detected locally, not inference-tested.","init.auth.backendOption":"Backend (default: select; PI is bundled)","init.auth.providerOption":"Provider (default: select from runtime)","init.auth.typeOption":"Authentication (default: select supported type)","init.auth.exampleProvider":"Select a provider","init.auth.exampleClaude":"Claude subscription","init.auth.invalidOptions":"Invalid login options. Use cortex auth login --help; keys/codes must not be command arguments.","init.auth.invalidBackend":"Invalid --backend. Valid values: pi, claude.","init.auth.invalidType":"Invalid --auth-type. Valid values: oauth, api_key.","init.auth.backend":"Backend","init.auth.bundled":"PI \xB7 bundled","init.auth.provider":"Provider","init.auth.type":"Authentication","init.auth.oauth":"OAuth (subscription login)","init.auth.api_key":"API key","init.auth.unavailable":"Provider unavailable. Run cortex auth status or select a runtime-supported provider.","init.auth.unsupported":"Unsupported authentication. Valid values: ${values}.","init.auth.installDeclined":"Claude Code installation declined. Run cortex auth login to retry.","init.auth.cancelled":"Login cancelled. Run cortex auth login to retry.","init.auth.expired":"Login expired. Run cortex auth login to retry.","init.auth.failed":"Authentication failed. Run cortex auth status, then cortex auth login to retry.","init.auth.ttyRequired":"Login requires an interactive terminal. Run cortex auth login in a TTY, or use the Accounts page.","init.auth.noCapabilities":"No login capabilities available. Run cortex auth status to diagnose.","init.auth.openBrowser":"Open in your browser: ${url}","init.auth.deviceCode":"Open ${url} and enter ${code}","init.auth.installPrompt":"Claude Code is missing. Install @anthropic-ai/claude-code with npm and login?","init.auth.installFailed":"Claude Code installation failed. Check npm permissions/network, then retry cortex auth login --backend claude.","init.auth.pathMissing":"Claude Code is still unavailable on PATH. Fix PATH, then retry cortex auth login --backend claude.","init.auth.detectionFailed":"Credential detection failed; rescan or skip.","init.auth.setup":"Provider setup (local credentials, not inference verification)","init.auth.continue":"Continue with configured providers","init.auth.login":"Login / install and login Claude Code","init.auth.rescan":"Rescan credentials","init.auth.skip":"Configure later (Agent may be unavailable)","init.auth.saved":"Credentials saved. Gateway/model setup follows; no inference request was made.","init.auth.piFirst":"PI is bundled. Add providers or install Claude Code in the login step.","init.clipboard.prompt":`
17
- Press "c" to copy manifest to clipboard (any other key to skip)...`,"init.clipboard.copied":"Manifest copied to clipboard!","init.clipboard.failed":"Could not copy. If running in a terminal, ensure OSC 52 is enabled.","init.clipboard.manual":"The manifest text is shown above \u2014 please copy it manually.","init.backend.alreadyInstalled":"${label} is already installed.","init.backend.bundled":"${label} ships with Cortex and runs in-process \u2014 nothing to install.","init.backend.installing":"Installing ${label}...","init.backend.installed":"${label} installed successfully.","init.backend.installFailed":"Failed to install ${label}.","init.backend.installFailedHint":"Installation failed. Install manually: ${command}","init.backend.loginHint.claude":"Log Claude Code in from the Cortex web UI (Settings > Accounts), with `!login cc` in chat, or with `cortex auth login --backend claude`; verify with `cortex auth status`.","init.backend.loginHint.pi":"Log a PI provider in from the Cortex web UI (Settings > Accounts) or with `!login pi` in chat; verify with `cortex auth status`.","init.backend.label.claude":"Claude Code","init.backend.label.pi":"PI","init.service.launchdWritten":"launchd plist written to ${path}","init.service.launchdStartHint":"To start now: launchctl load ${path}","init.service.systemdUserWritten":"systemd unit written to ${path}","init.service.systemdUserEnableHint":"To enable: systemctl --user enable --now cortex (and `loginctl enable-linger` to keep it running after logout)","init.service.systemdInstalled":"systemd unit installed to ${path}","init.service.systemdEnableHint":"To enable: sudo systemctl enable --now cortex","init.service.systemInstallFailed":"Failed to install system service: ${message}","init.service.noSudo":"No sudo access. Service file saved locally.","init.service.manualInstallHint":`To install manually:
18
- sudo cp \${localPath} \${systemPath}
19
- sudo systemctl daemon-reload
20
- sudo systemctl enable --now cortex`,"init.service.unsupported":"Service registration is not supported on ${platform}. Start Cortex manually with `cortex daemon`.","init.cancel":"Init cancelled.","init.slack.manifestTitle":"Slack App Manifest \u2014 copy and paste when creating the app","init.slack.guide":["To set up Slack, you need a Slack App:","","1. Go to https://api.slack.com/apps",'2. Click "Create New App" \u2192 "From a manifest"',"3. Select your workspace, then paste the manifest (shown above)",'4. Go to "Basic Information" \u2192 copy the Signing Secret',"5. Under Basic Information, generate an App-Level Token",' (scope: connections:write, name it "cortex-socket")','6. Go to "OAuth & Permissions" \u2192 Install to Workspace'," Copy the *Bot User OAuth Token* after installing",'7. Go to "App Home" \u2192 Show Tabs \u2192 enable *Messages Tab*',' and check "Allow users to send messages from the messages tab"'," (required for DM support)","","The manifest includes socket_mode_enabled, so Socket Mode","is automatically enabled when you import it.","","Required Bot Token Scopes (included in manifest):"," chat:write, im:history, im:write, reactions:read, reactions:write,"," users:read, commands, app_mentions:read,"," channels:history, channels:read, groups:history,"," files:read, files:write, emoji:read, pins:read, pins:write"].join(`
21
- `),"init.slack.guideTitle":"Slack App Setup Guide","init.slack.prefillFound":"Found existing Slack configuration. Press Enter to skip, or type anything to re-enter.","init.slack.skipPrompt":"Skip Slack configuration? (Enter = skip, any key + Enter = re-enter)","init.slack.skipPlaceholder":"Press Enter to skip","init.slack.signingSecretPrompt":"Step 1/3: SLACK_SIGNING_SECRET (from Basic Information):","init.slack.signingSecretRequired":"Signing secret is required.","init.slack.appTokenPrompt":"Step 2/3: SLACK_APP_TOKEN (App-Level Token, starts with xapp-):","init.slack.appTokenRequired":"App token is required.","init.slack.appTokenPrefix":"Token should start with xapp-","init.slack.botTokenPrompt":"Step 3/3: SLACK_BOT_TOKEN (Bot User OAuth Token, starts with xoxb-):","init.slack.botTokenRequired":"Bot token is required.","init.slack.botTokenPrefix":"Token should start with xoxb-","init.feishu.guide":["To set up Feishu (\u98DE\u4E66), create a Feishu app:","","1. Go to https://open.feishu.cn/app",'2. Click "Create Agentic App" (\u521B\u5EFAagentic\u5E94\u7528)',"3. Enter agent name (e.g. CortexAgent), select an avatar, and click Create","4. After creation, the page will display App ID and App Secret \u2014 copy them directly","5. Enable bot events and subscribe to: im.message.receive_v1","","Identity for MCP document operations (docx/wiki/bitable/sheets/drive):"," - bot: documents are created/owned by the app (default)"," - user: documents are created/owned by YOUR Feishu account (Recommended)"].join(`
22
- `),"init.feishu.guideTitle":"Feishu App Setup Guide","init.feishu.appIdPrompt":"FEISHU_APP_ID:","init.feishu.appIdRequired":"App ID is required.","init.feishu.appSecretPrompt":"FEISHU_APP_SECRET:","init.feishu.appSecretRequired":"App secret is required.","init.feishu.domainPrompt":'FEISHU_DOMAIN (optional, "feishu" or "lark"):',"init.feishu.domainPlaceholder":"feishu (leave blank to use default)","init.feishu.authModePrompt":"Identity for MCP document operations:","init.feishu.authModeBotLabel":"bot","init.feishu.authModeBotHint":"documents owned by the app","init.feishu.authModeUserLabel":"user (Recommended)","init.feishu.authModeUserHint":"documents owned by your Feishu account","init.feishu.loginStarting":"Starting Feishu user login (OAuth device flow)...","init.feishu.loginComplete":"Feishu user login complete.","init.feishu.loginIncomplete":"Feishu user login did not complete. Retry later with `cortex feishu login`.","init.intro":"Cortex Setup","init.backend.noteBody":"Both Claude Code and PI support API key access to any model.","init.backend.noteTitle":"Backend info","init.backend.prompt":"Which backends would you like to use?","init.backend.claudeLabel":"Claude Code","init.backend.claudeHint":"recommended, for Claude subscription","init.backend.piLabel":"PI","init.backend.piHint":"for other subscription","init.platform.prompt":"Which interaction platform(s) would you like to use? (space to toggle, enter to confirm, leave empty to skip)","init.platform.slackLabel":"Slack","init.platform.slackHint":"recommended","init.platform.feishuLabel":"Feishu (\u98DE\u4E66)","init.machine.prompt":"Machine name for this device:","init.machine.required":"Machine name is required.","init.machine.gpuDetected":"Detected ${count} NVIDIA GPU(s)","init.machine.gpuNone":"No NVIDIA GPU detected (gpuCount=0)","init.gateway.note":["Cortex includes an open-source local gateway that proxies all","LLM calls, providing multi-key rotation, automatic failover,","and per-request cost tracking.","","You can optionally share anonymous token usage with aistatus.cc,","an AI model status monitoring site. Your token usage will appear","on the public leaderboard (name + org + token counts). Email is","used only as an identity key and is never displayed.","","Learn more: https://aistatus.cc"].join(`
23
- `),"init.gateway.noteTitle":"Gateway & aistatus","init.gateway.enablePrompt":"Enable token usage reporting to aistatus?","init.gateway.namePrompt":"Name:","init.gateway.namePlaceholder":"your name","init.gateway.orgPrompt":"Organization:","init.gateway.orgPlaceholder":"your organization","init.gateway.emailPrompt":"Email (identity only, not displayed):","init.gateway.emailPlaceholder":"you@example.com","usageSharing.issue.name-required":"A name is required to join the leaderboard.","usageSharing.issue.email-invalid":"A valid email is required to join the leaderboard.","init.serviceRegister.prompt":"Register Cortex as a system service (auto-start on boot)?","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)","init.gatewaySetup.overwritePrompt":"An existing default model was found. Replace it with a new selection?","init.gatewaySetup.defaultPrompt":"Pick the default model:","init.gatewaySetup.favoritesPrompt":"Pick favorite models (space to toggle; the default model is always included):","init.gatewaySetup.noBackends":"No backends discovered. Make sure you have logged into Claude Code and/or PI first.","init.gatewaySetup.rerunHint":"You can re-run detection later with: cortex setup-gateway","init.gatewaySetup.discovered":"Discovered ${count} endpoint modes:\n${summary}","init.gatewaySetup.gatewayWritten":"Gateway config written to ${path}","init.gatewaySetup.preservedModes":"Preserved ${count} existing gateway mode(s) that discovery did not report: ${list}","init.gatewaySetup.preservedModesHint":"If these should have been auto-detected, check `cortex auth status`, log the provider in, and re-run.","init.gatewaySetup.modelsWritten":"Models written to ${path}","init.gatewaySetup.generatedModels":"Favorite models: ${names} (default: ${default})","init.gatewaySetup.modelIssues":"${count} model selection(s) lack a configured gateway route:\n${lines}","init.gatewaySetup.modelIssuesHint":"Add the route to gateway.yaml or update the model selection.","init.localUi.enabled":"Local Web UI endpoint enabled at ${url}","init.outro":"Cortex initialized at ${dataDir}. Run `cortex daemon` to launch.","init.git.optional":"Git is unavailable; continuing without version history. Install Git separately if you need it.","init.git.required":"Git is required but was not found on your system.","init.git.initFailed":"git init failed: ${message}","init.git.autoInstalling":"Attempting automatic git installation...","init.git.installed":"Git installed successfully.","init.git.notOnPath":"Git was installed but is not on PATH. You may need to restart your shell.","init.git.autoInstallFailed":"Automatic installation failed.","init.git.manualHint":"Please install git manually: ${hint}","init.config.title":"Cortex configuration:","init.config.statusTitle":"Status:","init.config.initialized":"initialized","init.config.notInitialized":"not initialized","init.config.found":"found","init.config.missing":"missing"},y={"init.auth.loginDescription":"\u4EA4\u4E92\u5F0F\u670D\u52A1\u5546\u767B\u5F55\uFF08\u5185\u7F6E PI\uFF1B\u4EC5\u5728\u786E\u8BA4\u540E\u5B89\u88C5 Claude\uFF09","init.auth.help":"\u4EA4\u4E92\u5F0F\u767B\u5F55\uFF1B\u4EC5\u68C0\u6D4B\u672C\u5730\u51ED\u636E\uFF0C\u4E0D\u53D1\u9001\u63A8\u7406\u8BF7\u6C42\u8FDB\u884C\u9A8C\u8BC1\u3002","init.auth.backendOption":"\u540E\u7AEF\uFF08\u9ED8\u8BA4\uFF1A\u4EA4\u4E92\u9009\u62E9\uFF1BPI \u5DF2\u5185\u7F6E\uFF09","init.auth.providerOption":"\u670D\u52A1\u5546\uFF08\u9ED8\u8BA4\uFF1A\u4ECE\u8FD0\u884C\u65F6\u652F\u6301\u5217\u8868\u4E2D\u9009\u62E9\uFF09","init.auth.typeOption":"\u8BA4\u8BC1\u65B9\u5F0F\uFF08\u9ED8\u8BA4\uFF1A\u9009\u62E9\u652F\u6301\u7684\u65B9\u5F0F\uFF09","init.auth.exampleProvider":"\u9009\u62E9\u670D\u52A1\u5546","init.auth.exampleClaude":"Claude \u8BA2\u9605","init.auth.invalidOptions":"\u767B\u5F55\u53C2\u6570\u65E0\u6548\u3002\u8BF7\u8FD0\u884C cortex auth login --help\uFF1B\u5BC6\u94A5\u6216\u6388\u6743\u7801\u4E0D\u5F97\u4F5C\u4E3A\u547D\u4EE4\u53C2\u6570\u3002","init.auth.invalidBackend":"--backend \u65E0\u6548\u3002\u53EF\u7528\u503C\uFF1Api, claude\u3002","init.auth.invalidType":"--auth-type \u65E0\u6548\u3002\u53EF\u7528\u503C\uFF1Aoauth, api_key\u3002","init.auth.backend":"\u540E\u7AEF","init.auth.bundled":"PI \xB7 \u5DF2\u5185\u7F6E","init.auth.provider":"\u670D\u52A1\u5546","init.auth.type":"\u8BA4\u8BC1\u65B9\u5F0F","init.auth.oauth":"OAuth\uFF08\u8BA2\u9605\u767B\u5F55\uFF09","init.auth.api_key":"API \u5BC6\u94A5","init.auth.unavailable":"\u670D\u52A1\u5546\u4E0D\u53EF\u7528\u3002\u8BF7\u8FD0\u884C cortex auth status\uFF0C\u6216\u9009\u62E9\u8FD0\u884C\u65F6\u652F\u6301\u7684\u670D\u52A1\u5546\u3002","init.auth.unsupported":"\u4E0D\u652F\u6301\u6B64\u8BA4\u8BC1\u65B9\u5F0F\u3002\u53EF\u7528\u503C\uFF1A${values}\u3002","init.auth.installDeclined":"\u5DF2\u62D2\u7EDD\u5B89\u88C5 Claude Code\u3002\u8BF7\u8FD0\u884C cortex auth login \u91CD\u8BD5\u3002","init.auth.cancelled":"\u767B\u5F55\u5DF2\u53D6\u6D88\u3002\u8BF7\u8FD0\u884C cortex auth login \u91CD\u8BD5\u3002","init.auth.expired":"\u767B\u5F55\u5DF2\u8D85\u65F6\u3002\u8BF7\u8FD0\u884C cortex auth login \u91CD\u8BD5\u3002","init.auth.failed":"\u8BA4\u8BC1\u5931\u8D25\u3002\u8BF7\u8FD0\u884C cortex auth status \u68C0\u67E5\uFF0C\u7136\u540E\u8FD0\u884C cortex auth login \u91CD\u8BD5\u3002","init.auth.ttyRequired":"\u767B\u5F55\u9700\u8981\u4EA4\u4E92\u5F0F\u7EC8\u7AEF\u3002\u8BF7\u5728 TTY \u4E2D\u8FD0\u884C cortex auth login\uFF0C\u6216\u4F7F\u7528\u8D26\u53F7\u9875\u9762\u3002","init.auth.noCapabilities":"\u6CA1\u6709\u53EF\u7528\u7684\u767B\u5F55\u65B9\u5F0F\u3002\u8BF7\u8FD0\u884C cortex auth status \u68C0\u67E5\u3002","init.auth.openBrowser":"\u8BF7\u5728\u6D4F\u89C8\u5668\u4E2D\u6253\u5F00\uFF1A${url}","init.auth.deviceCode":"\u8BF7\u6253\u5F00 ${url} \u5E76\u8F93\u5165 ${code}","init.auth.installPrompt":"\u672A\u627E\u5230 Claude Code\u3002\u662F\u5426\u901A\u8FC7 npm \u5B89\u88C5 @anthropic-ai/claude-code \u5E76\u767B\u5F55\uFF1F","init.auth.installFailed":"Claude Code \u5B89\u88C5\u5931\u8D25\u3002\u8BF7\u68C0\u67E5 npm \u6743\u9650\u548C\u7F51\u7EDC\uFF0C\u7136\u540E\u8FD0\u884C cortex auth login --backend claude \u91CD\u8BD5\u3002","init.auth.pathMissing":"PATH \u4E2D\u4ECD\u627E\u4E0D\u5230 Claude Code\u3002\u8BF7\u4FEE\u590D PATH\uFF0C\u7136\u540E\u8FD0\u884C cortex auth login --backend claude \u91CD\u8BD5\u3002","init.auth.detectionFailed":"\u51ED\u636E\u68C0\u6D4B\u5931\u8D25\uFF1B\u8BF7\u91CD\u65B0\u626B\u63CF\u6216\u8DF3\u8FC7\u3002","init.auth.setup":"\u670D\u52A1\u5546\u8BBE\u7F6E\uFF08\u68C0\u6D4B\u672C\u5730\u51ED\u636E\uFF0C\u4E0D\u9A8C\u8BC1\u63A8\u7406\u8BF7\u6C42\uFF09","init.auth.continue":"\u4F7F\u7528\u5DF2\u914D\u7F6E\u7684\u670D\u52A1\u5546\u7EE7\u7EED","init.auth.login":"\u767B\u5F55 / \u5B89\u88C5\u5E76\u767B\u5F55 Claude Code","init.auth.rescan":"\u91CD\u65B0\u626B\u63CF\u51ED\u636E","init.auth.skip":"\u7A0D\u540E\u914D\u7F6E\uFF08Agent \u53EF\u80FD\u4E0D\u53EF\u7528\uFF09","init.auth.saved":"\u51ED\u636E\u5DF2\u4FDD\u5B58\u3002\u63A5\u4E0B\u6765\u914D\u7F6E\u7F51\u5173\u548C\u6A21\u578B\uFF1B\u672A\u53D1\u9001\u63A8\u7406\u8BF7\u6C42\u3002","init.auth.piFirst":"PI \u5DF2\u5185\u7F6E\u3002\u8BF7\u5728\u767B\u5F55\u6B65\u9AA4\u4E2D\u6DFB\u52A0\u670D\u52A1\u5546\u6216\u5B89\u88C5 Claude Code\u3002","init.clipboard.prompt":`
24
- \u6309 "c" \u5C06\u6E05\u5355\u590D\u5236\u5230\u526A\u8D34\u677F\uFF08\u6309\u5176\u4ED6\u4EFB\u610F\u952E\u8DF3\u8FC7\uFF09...`,"init.clipboard.copied":"\u6E05\u5355\u5DF2\u590D\u5236\u5230\u526A\u8D34\u677F\uFF01","init.clipboard.failed":"\u65E0\u6CD5\u590D\u5236\u3002\u5982\u679C\u5728\u7EC8\u7AEF\u4E2D\u8FD0\u884C\uFF0C\u8BF7\u786E\u4FDD\u5DF2\u542F\u7528 OSC 52\u3002","init.clipboard.manual":"\u6E05\u5355\u6587\u672C\u5DF2\u663E\u793A\u5728\u4E0A\u65B9\u2014\u2014\u8BF7\u624B\u52A8\u590D\u5236\u3002","init.backend.alreadyInstalled":"${label} \u5DF2\u5B89\u88C5\u3002","init.backend.bundled":"${label} \u968F Cortex \u5185\u7F6E\u5E76\u5728\u8FDB\u7A0B\u5185\u8FD0\u884C\u2014\u2014\u65E0\u9700\u5B89\u88C5\u3002","init.backend.installing":"\u6B63\u5728\u5B89\u88C5 ${label}...","init.backend.installed":"${label} \u5B89\u88C5\u6210\u529F\u3002","init.backend.installFailed":"\u5B89\u88C5 ${label} \u5931\u8D25\u3002","init.backend.installFailedHint":"\u5B89\u88C5\u5931\u8D25\u3002\u8BF7\u624B\u52A8\u5B89\u88C5\uFF1A${command}","init.backend.loginHint.claude":"\u5728 Cortex \u7F51\u9875\u7AEF\uFF08\u8BBE\u7F6E > \u8D26\u53F7\uFF09\u3001\u804A\u5929\u91CC\u7684 `!login cc` \u6216 `cortex auth login --backend claude` \u767B\u5F55 Claude Code\uFF1B\u7528 `cortex auth status` \u9A8C\u8BC1\u3002","init.backend.loginHint.pi":"\u5728 Cortex \u7F51\u9875\u7AEF\uFF08\u8BBE\u7F6E > \u8D26\u53F7\uFF09\u6216\u804A\u5929\u91CC\u7684 `!login pi` \u767B\u5F55 PI \u670D\u52A1\u63D0\u4F9B\u5546\uFF1B\u7528 `cortex auth status` \u9A8C\u8BC1\u3002","init.backend.label.claude":"Claude Code","init.backend.label.pi":"PI","init.service.launchdWritten":"launchd plist \u5DF2\u5199\u5165 ${path}","init.service.launchdStartHint":"\u7ACB\u5373\u542F\u52A8\uFF1Alaunchctl load ${path}","init.service.systemdUserWritten":"systemd \u5355\u5143\u5DF2\u5199\u5165 ${path}","init.service.systemdUserEnableHint":"\u542F\u7528\u65B9\u6CD5\uFF1Asystemctl --user enable --now cortex\uFF08\u5982\u9700\u767B\u51FA\u540E\u7EE7\u7EED\u8FD0\u884C\uFF0C\u518D\u6267\u884C loginctl enable-linger\uFF09","init.service.systemdInstalled":"systemd \u5355\u5143\u5DF2\u5B89\u88C5\u5230 ${path}","init.service.systemdEnableHint":"\u542F\u7528\u65B9\u6CD5\uFF1Asudo systemctl enable --now cortex","init.service.systemInstallFailed":"\u5B89\u88C5\u7CFB\u7EDF\u670D\u52A1\u5931\u8D25\uFF1A${message}","init.service.noSudo":"\u6CA1\u6709 sudo \u6743\u9650\u3002\u670D\u52A1\u6587\u4EF6\u5DF2\u4FDD\u5B58\u5230\u672C\u5730\u3002","init.service.manualInstallHint":`\u624B\u52A8\u5B89\u88C5\u65B9\u6CD5\uFF1A
25
- sudo cp \${localPath} \${systemPath}
26
- sudo systemctl daemon-reload
27
- sudo systemctl enable --now cortex`,"init.service.unsupported":"\u4E0D\u652F\u6301\u5728 ${platform} \u4E0A\u6CE8\u518C\u670D\u52A1\u3002\u8BF7\u4F7F\u7528 `cortex daemon` \u624B\u52A8\u542F\u52A8 Cortex\u3002","init.cancel":"\u521D\u59CB\u5316\u5DF2\u53D6\u6D88\u3002","init.slack.manifestTitle":"Slack \u5E94\u7528\u6E05\u5355 \u2014\u2014 \u521B\u5EFA\u5E94\u7528\u65F6\u590D\u5236\u5E76\u7C98\u8D34","init.slack.guide":["\u8981\u8BBE\u7F6E Slack\uFF0C\u4F60\u9700\u8981\u4E00\u4E2A Slack \u5E94\u7528\uFF1A","","1. \u8BBF\u95EE https://api.slack.com/apps",'2. \u70B9\u51FB "Create New App" \u2192 "From a manifest"',"3. \u9009\u62E9\u4F60\u7684\u5DE5\u4F5C\u533A\uFF0C\u7136\u540E\u7C98\u8D34\u6E05\u5355\uFF08\u5982\u4E0A\u6240\u793A\uFF09",'4. \u8FDB\u5165 "Basic Information" \u2192 \u590D\u5236 Signing Secret',"5. \u5728 Basic Information \u4E0B\uFF0C\u751F\u6210\u4E00\u4E2A App-Level Token",' \uFF08\u4F5C\u7528\u57DF\uFF1Aconnections:write\uFF0C\u547D\u540D\u4E3A "cortex-socket"\uFF09','6. \u8FDB\u5165 "OAuth & Permissions" \u2192 Install to Workspace'," \u5B89\u88C5\u540E\u590D\u5236 *Bot User OAuth Token*",'7. \u8FDB\u5165 "App Home" \u2192 Show Tabs \u2192 \u542F\u7528 *Messages Tab*',' \u5E76\u52FE\u9009 "Allow users to send messages from the messages tab"'," \uFF08DM \u652F\u6301\u6240\u5FC5\u9700\uFF09","","\u6E05\u5355\u4E2D\u5305\u542B socket_mode_enabled\uFF0C\u56E0\u6B64\u5BFC\u5165\u65F6","Socket Mode \u4F1A\u81EA\u52A8\u542F\u7528\u3002","","\u6240\u9700\u7684 Bot Token \u4F5C\u7528\u57DF\uFF08\u5DF2\u5305\u542B\u5728\u6E05\u5355\u4E2D\uFF09\uFF1A"," chat:write, im:history, im:write, reactions:read, reactions:write,"," users:read, commands, app_mentions:read,"," channels:history, channels:read, groups:history,"," files:read, files:write, emoji:read, pins:read, pins:write"].join(`
28
- `),"init.slack.guideTitle":"Slack \u5E94\u7528\u8BBE\u7F6E\u6307\u5357","init.slack.prefillFound":"\u53D1\u73B0\u5DF2\u6709\u7684 Slack \u914D\u7F6E\u3002\u6309\u56DE\u8F66\u8DF3\u8FC7\uFF0C\u6216\u8F93\u5165\u4EFB\u610F\u5185\u5BB9\u91CD\u65B0\u586B\u5199\u3002","init.slack.skipPrompt":"\u8DF3\u8FC7 Slack \u914D\u7F6E\uFF1F\uFF08\u56DE\u8F66 = \u8DF3\u8FC7\uFF0C\u4EFB\u610F\u952E + \u56DE\u8F66 = \u91CD\u65B0\u586B\u5199\uFF09","init.slack.skipPlaceholder":"\u6309\u56DE\u8F66\u8DF3\u8FC7","init.slack.signingSecretPrompt":"\u6B65\u9AA4 1/3\uFF1ASLACK_SIGNING_SECRET\uFF08\u6765\u81EA Basic Information\uFF09\uFF1A","init.slack.signingSecretRequired":"\u9700\u8981\u586B\u5199 Signing Secret\u3002","init.slack.appTokenPrompt":"\u6B65\u9AA4 2/3\uFF1ASLACK_APP_TOKEN\uFF08App-Level Token\uFF0C\u4EE5 xapp- \u5F00\u5934\uFF09\uFF1A","init.slack.appTokenRequired":"\u9700\u8981\u586B\u5199 App Token\u3002","init.slack.appTokenPrefix":"Token \u5E94\u4EE5 xapp- \u5F00\u5934","init.slack.botTokenPrompt":"\u6B65\u9AA4 3/3\uFF1ASLACK_BOT_TOKEN\uFF08Bot User OAuth Token\uFF0C\u4EE5 xoxb- \u5F00\u5934\uFF09\uFF1A","init.slack.botTokenRequired":"\u9700\u8981\u586B\u5199 Bot Token\u3002","init.slack.botTokenPrefix":"Token \u5E94\u4EE5 xoxb- \u5F00\u5934","init.feishu.guide":["\u8981\u8BBE\u7F6E\u98DE\u4E66\uFF0C\u8BF7\u521B\u5EFA\u4E00\u4E2A\u98DE\u4E66\u5E94\u7528\uFF1A","","1. \u8BBF\u95EE https://open.feishu.cn/app",'2. \u70B9\u51FB "Create Agentic App"\uFF08\u521B\u5EFAagentic\u5E94\u7528\uFF09',"3. \u8F93\u5165\u5E94\u7528\u540D\u79F0\uFF08\u4F8B\u5982 CortexAgent\uFF09\uFF0C\u9009\u62E9\u5934\u50CF\uFF0C\u7136\u540E\u70B9\u51FB\u521B\u5EFA","4. \u521B\u5EFA\u540E\uFF0C\u9875\u9762\u4F1A\u663E\u793A App ID \u548C App Secret \u2014\u2014 \u76F4\u63A5\u590D\u5236\u5373\u53EF","5. \u542F\u7528\u673A\u5668\u4EBA\u4E8B\u4EF6\u5E76\u8BA2\u9605\uFF1Aim.message.receive_v1","","MCP \u6587\u6863\u64CD\u4F5C\uFF08docx/wiki/bitable/sheets/drive\uFF09\u7684\u8EAB\u4EFD\uFF1A"," - bot\uFF1A\u6587\u6863\u7531\u5E94\u7528\u521B\u5EFA/\u62E5\u6709\uFF08\u9ED8\u8BA4\uFF09"," - user\uFF1A\u6587\u6863\u7531\u4F60\u7684\u98DE\u4E66\u8D26\u53F7\u521B\u5EFA/\u62E5\u6709\uFF08\u63A8\u8350\uFF09"].join(`
29
- `),"init.feishu.guideTitle":"\u98DE\u4E66\u5E94\u7528\u8BBE\u7F6E\u6307\u5357","init.feishu.appIdPrompt":"FEISHU_APP_ID\uFF1A","init.feishu.appIdRequired":"\u9700\u8981\u586B\u5199 App ID\u3002","init.feishu.appSecretPrompt":"FEISHU_APP_SECRET\uFF1A","init.feishu.appSecretRequired":"\u9700\u8981\u586B\u5199 App Secret\u3002","init.feishu.domainPrompt":'FEISHU_DOMAIN\uFF08\u53EF\u9009\uFF0C"feishu" \u6216 "lark"\uFF09\uFF1A',"init.feishu.domainPlaceholder":"feishu\uFF08\u7559\u7A7A\u4F7F\u7528\u9ED8\u8BA4\u503C\uFF09","init.feishu.authModePrompt":"MCP \u6587\u6863\u64CD\u4F5C\u7684\u8EAB\u4EFD\uFF1A","init.feishu.authModeBotLabel":"\u673A\u5668\u4EBA","init.feishu.authModeBotHint":"\u6587\u6863\u7531\u5E94\u7528\u62E5\u6709","init.feishu.authModeUserLabel":"\u7528\u6237\uFF08\u63A8\u8350\uFF09","init.feishu.authModeUserHint":"\u6587\u6863\u7531\u4F60\u7684\u98DE\u4E66\u8D26\u53F7\u62E5\u6709","init.feishu.loginStarting":"\u6B63\u5728\u542F\u52A8\u98DE\u4E66\u7528\u6237\u767B\u5F55\uFF08OAuth \u8BBE\u5907\u6D41\u7A0B\uFF09...","init.feishu.loginComplete":"\u98DE\u4E66\u7528\u6237\u767B\u5F55\u5B8C\u6210\u3002","init.feishu.loginIncomplete":"\u98DE\u4E66\u7528\u6237\u767B\u5F55\u672A\u5B8C\u6210\u3002\u7A0D\u540E\u7528 `cortex feishu login` \u91CD\u8BD5\u3002","init.intro":"Cortex \u8BBE\u7F6E","init.backend.noteBody":"Claude Code \u548C PI \u90FD\u652F\u6301\u901A\u8FC7 API \u5BC6\u94A5\u8BBF\u95EE\u4EFB\u610F\u6A21\u578B\u3002","init.backend.noteTitle":"\u540E\u7AEF\u4FE1\u606F","init.backend.prompt":"\u4F60\u60F3\u4F7F\u7528\u54EA\u4E9B\u540E\u7AEF\uFF1F","init.backend.claudeLabel":"Claude Code","init.backend.claudeHint":"\u63A8\u8350\uFF0C\u9002\u7528\u4E8E Claude \u8BA2\u9605","init.backend.piLabel":"PI","init.backend.piHint":"\u9002\u7528\u4E8E\u5176\u4ED6\u8BA2\u9605","init.platform.prompt":"\u4F60\u60F3\u4F7F\u7528\u54EA\u4E9B\u4EA4\u4E92\u5E73\u53F0\uFF1F\uFF08\u7A7A\u683C\u5207\u6362\uFF0C\u56DE\u8F66\u786E\u8BA4\uFF0C\u7559\u7A7A\u8DF3\u8FC7\uFF09","init.platform.slackLabel":"Slack","init.platform.slackHint":"\u63A8\u8350","init.platform.feishuLabel":"Feishu (\u98DE\u4E66)","init.machine.prompt":"\u6B64\u8BBE\u5907\u7684\u673A\u5668\u540D\u79F0\uFF1A","init.machine.required":"\u9700\u8981\u586B\u5199\u673A\u5668\u540D\u79F0\u3002","init.machine.gpuDetected":"\u68C0\u6D4B\u5230 ${count} \u5757 NVIDIA GPU","init.machine.gpuNone":"\u672A\u68C0\u6D4B\u5230 NVIDIA GPU\uFF08gpuCount=0\uFF09","init.gateway.note":["Cortex \u5185\u7F6E\u4E00\u4E2A\u5F00\u6E90\u672C\u5730\u7F51\u5173\uFF0C\u4E3A\u6240\u6709 LLM \u8C03\u7528\u63D0\u4F9B\u4EE3\u7406\uFF0C","\u652F\u6301\u591A\u5BC6\u94A5\u8F6E\u6362\u3001\u81EA\u52A8\u6545\u969C\u8F6C\u79FB\uFF0C","\u4EE5\u53CA\u6309\u8BF7\u6C42\u7684\u6210\u672C\u8DDF\u8E2A\u3002","","\u4F60\u53EF\u4EE5\u9009\u62E9\u5C06\u533F\u540D token \u4F7F\u7528\u91CF\u5206\u4EAB\u7ED9 aistatus.cc\uFF0C","\u8FD9\u662F\u4E00\u4E2A AI \u6A21\u578B\u72B6\u6001\u76D1\u63A7\u7F51\u7AD9\u3002\u4F60\u7684 token \u4F7F\u7528\u91CF\u5C06","\u663E\u793A\u5728\u516C\u5F00\u6392\u884C\u699C\u4E0A\uFF08\u540D\u79F0 + \u7EC4\u7EC7 + token \u8BA1\u6570\uFF09\u3002\u90AE\u7BB1","\u4EC5\u7528\u4F5C\u8EAB\u4EFD\u6807\u8BC6\uFF0C\u7EDD\u4E0D\u4F1A\u88AB\u5C55\u793A\u3002","","\u4E86\u89E3\u66F4\u591A\uFF1Ahttps://aistatus.cc"].join(`
30
- `),"init.gateway.noteTitle":"Gateway \u4E0E aistatus","init.gateway.enablePrompt":"\u542F\u7528\u5411 aistatus \u62A5\u544A token \u4F7F\u7528\u91CF\uFF1F","init.gateway.namePrompt":"\u540D\u79F0\uFF1A","init.gateway.namePlaceholder":"\u4F60\u7684\u540D\u79F0","init.gateway.orgPrompt":"\u7EC4\u7EC7\uFF1A","init.gateway.orgPlaceholder":"\u4F60\u7684\u7EC4\u7EC7","init.gateway.emailPrompt":"\u90AE\u7BB1\uFF08\u4EC5\u7528\u4E8E\u8EAB\u4EFD\u6807\u8BC6\uFF0C\u4E0D\u4F1A\u5C55\u793A\uFF09\uFF1A","init.gateway.emailPlaceholder":"you@example.com","usageSharing.issue.name-required":"\u52A0\u5165\u6392\u884C\u699C\u9700\u8981\u586B\u5199\u540D\u79F0\u3002","usageSharing.issue.email-invalid":"\u52A0\u5165\u6392\u884C\u699C\u9700\u8981\u586B\u5199\u6709\u6548\u7684\u90AE\u7BB1\u3002","init.serviceRegister.prompt":"\u5C06 Cortex \u6CE8\u518C\u4E3A\u7CFB\u7EDF\u670D\u52A1\uFF08\u5F00\u673A\u81EA\u542F\uFF09\uFF1F","init.telemetry.prompt":"\u53D1\u9001\u533F\u540D\u4F7F\u7528\u4E0E\u5D29\u6E83\u7EDF\u8BA1\uFF0C\u5E2E\u52A9\u6539\u8FDB Cortex\uFF1F\uFF08\u4E0D\u542B\u5BF9\u8BDD\u3001\u6587\u4EF6\u6216\u540D\u79F0\uFF1B\u53EF\u968F\u65F6\u5728\u8BBE\u7F6E\u4E2D\u5173\u95ED\uFF09","init.gatewaySetup.overwritePrompt":"\u68C0\u6D4B\u5230\u5DF2\u6709\u9ED8\u8BA4\u6A21\u578B\uFF0C\u662F\u5426\u7528\u65B0\u7684\u9009\u62E9\u66FF\u6362\uFF1F","init.gatewaySetup.defaultPrompt":"\u9009\u62E9\u9ED8\u8BA4\u6A21\u578B\uFF1A","init.gatewaySetup.favoritesPrompt":"\u9009\u62E9\u6536\u85CF\u6A21\u578B\uFF08\u7A7A\u683C\u5207\u6362\uFF1B\u9ED8\u8BA4\u6A21\u578B\u59CB\u7EC8\u5305\u542B\u5728\u5185\uFF09\uFF1A","init.gatewaySetup.noBackends":"\u672A\u53D1\u73B0\u4EFB\u4F55\u540E\u7AEF\u3002\u8BF7\u786E\u4FDD\u4F60\u5DF2\u5148\u767B\u5F55 Claude Code \u548C/\u6216 PI\u3002","init.gatewaySetup.rerunHint":"\u4F60\u53EF\u4EE5\u7A0D\u540E\u7528\u4EE5\u4E0B\u547D\u4EE4\u91CD\u65B0\u68C0\u6D4B\uFF1Acortex setup-gateway","init.gatewaySetup.discovered":"\u53D1\u73B0 ${count} \u4E2A\u7AEF\u70B9\u6A21\u5F0F\uFF1A\n${summary}","init.gatewaySetup.gatewayWritten":"\u7F51\u5173\u914D\u7F6E\u5DF2\u5199\u5165 ${path}","init.gatewaySetup.preservedModes":"\u4FDD\u7559\u4E86 ${count} \u4E2A\u53D1\u73B0\u8FC7\u7A0B\u672A\u62A5\u544A\u7684\u73B0\u6709\u7F51\u5173\u6A21\u5F0F\uFF1A${list}","init.gatewaySetup.preservedModesHint":"\u5982\u679C\u8FD9\u4E9B\u672C\u5E94\u88AB\u81EA\u52A8\u68C0\u6D4B\u5230\uFF0C\u8BF7\u68C0\u67E5 `cortex auth status`\u3001\u767B\u5F55\u5BF9\u5E94 provider \u540E\u91CD\u65B0\u8FD0\u884C\u3002","init.gatewaySetup.modelsWritten":"\u6A21\u578B\u914D\u7F6E\u5DF2\u5199\u5165 ${path}","init.gatewaySetup.generatedModels":"\u6536\u85CF\u6A21\u578B\uFF1A${names}\uFF08\u9ED8\u8BA4\uFF1A${default}\uFF09","init.gatewaySetup.modelIssues":"${count} \u4E2A\u6A21\u578B\u9009\u62E9\u7F3A\u5C11\u5DF2\u914D\u7F6E\u7684\u7F51\u5173\u8DEF\u7531\uFF1A\n${lines}","init.gatewaySetup.modelIssuesHint":"\u8BF7\u5C06\u8DEF\u7531\u6DFB\u52A0\u5230 gateway.yaml\uFF0C\u6216\u66F4\u65B0\u6A21\u578B\u9009\u62E9\u3002","init.localUi.enabled":"\u672C\u673A Web UI \u7AEF\u70B9\u5DF2\u542F\u7528\uFF1A${url}","init.outro":"Cortex \u5DF2\u5728 ${dataDir} \u521D\u59CB\u5316\u3002\u8FD0\u884C `cortex daemon` \u542F\u52A8\u3002","init.git.optional":"Git \u4E0D\u53EF\u7528\uFF0C\u5C06\u7EE7\u7EED\u5B89\u88C5\u4F46\u4E0D\u542F\u7528\u7248\u672C\u5386\u53F2\u3002\u9700\u8981\u65F6\u53EF\u81EA\u884C\u5B89\u88C5 Git\u3002","init.git.required":"\u9700\u8981 Git\uFF0C\u4F46\u5728\u4F60\u7684\u7CFB\u7EDF\u4E0A\u672A\u627E\u5230\u3002","init.git.initFailed":"git init \u5931\u8D25\uFF1A${message}","init.git.autoInstalling":"\u6B63\u5728\u5C1D\u8BD5\u81EA\u52A8\u5B89\u88C5 git...","init.git.installed":"Git \u5B89\u88C5\u6210\u529F\u3002","init.git.notOnPath":"Git \u5DF2\u5B89\u88C5\u4F46\u4E0D\u5728 PATH \u4E2D\u3002\u4F60\u53EF\u80FD\u9700\u8981\u91CD\u542F shell\u3002","init.git.autoInstallFailed":"\u81EA\u52A8\u5B89\u88C5\u5931\u8D25\u3002","init.git.manualHint":"\u8BF7\u624B\u52A8\u5B89\u88C5 git\uFF1A ${hint}","init.config.title":"Cortex \u914D\u7F6E\uFF1A","init.config.statusTitle":"\u72B6\u6001\uFF1A","init.config.initialized":"\u5DF2\u521D\u59CB\u5316","init.config.notInitialized":"\u672A\u521D\u59CB\u5316","init.config.found":"\u5DF2\u627E\u5230","init.config.missing":"\u7F3A\u5931"};var f={"provider.cli.description":"Manage user-defined PI providers (self-hosted or proxied endpoints).","provider.cli.listDescription":"List the providers you have defined","provider.cli.addDescription":"Create or update a provider","provider.cli.removeDescription":"Delete a provider and its gateway route","provider.cli.nameDescription":"Provider name, letters, digits, dash and underscore only","provider.cli.apiDescription":"Request protocol the endpoint speaks","provider.cli.urlDescription":"Upstream endpoint URL, stored in the gateway route","provider.cli.keyDescription":"Upstream API key, or - to read it from stdin","provider.cli.modelDescription":"Model id offered by the endpoint, repeatable","provider.cli.jsonDescription":"Print the result as JSON","provider.cli.dryRunDescription":"Report what would be removed without removing it","provider.cli.helpDescription":"Show this help","provider.cli.exampleAdd":"Define a local endpoint that speaks the Anthropic protocol","provider.cli.exampleAddPiped":"Define a provider whose key comes from a secret store","provider.cli.exampleList":"Show every provider you have defined","provider.cli.exampleRemove":"Preview a deletion before running it","provider.cli.unknownSubcommand":"Unknown subcommand: `${command}`","provider.cli.unknownFlag":"Unknown flag: `${flag}`","provider.cli.missingFlag":"Missing required flag: `${flag}`","provider.cli.flagNeedsValue":"Flag `${flag}` needs a value","provider.cli.notFound":"No such custom provider: `${name}`","provider.cli.validValues":"Valid values:","provider.cli.hint":"Hint:","provider.cli.listEmpty":"No custom providers defined.","provider.cli.listItem":"${name} ${api} ${upstream}","provider.cli.listItemUnrouted":"${name} ${api} (no gateway route)","provider.cli.added":"Saved provider `${name}` \u2014 routed through the gateway to ${upstream}.","provider.cli.removed":"Removed provider `${name}`.","provider.chat.usage":"Usage: `!login custom [list | add <name> <api> <url> <model\u2026> | remove <name>]`","provider.chat.keyNotice":"An upstream key is never typed into a channel \u2014 add one with `cortex auth provider add --key -` or in Web settings.","provider.issue.name-required":"A provider name is required.","provider.issue.name-charset":"A provider name may use letters, digits, dash and underscore only.","provider.issue.api-invalid":"Unknown request protocol.","provider.issue.upstream-required":"An upstream URL is required.","provider.issue.upstream-scheme":"The upstream URL must start with http:// or https://.","provider.issue.models-required":"Define at least one model id.","provider.issue.model-id-required":"Every model needs an id.","provider.issue.model-id-duplicate":"Model ids must be unique.","provider.issue.not-found":"No such custom provider.","provider.issue.write-failed":"Writing the provider files failed."},b={"provider.cli.description":"\u7BA1\u7406\u81EA\u5B9A\u4E49 PI provider\uFF08\u81EA\u5EFA\u6216\u4EE3\u7406\u7684\u63A8\u7406\u7AEF\u70B9\uFF09\u3002","provider.cli.listDescription":"\u5217\u51FA\u5DF2\u5B9A\u4E49\u7684 provider","provider.cli.addDescription":"\u65B0\u5EFA\u6216\u66F4\u65B0\u4E00\u4E2A provider","provider.cli.removeDescription":"\u5220\u9664\u4E00\u4E2A provider \u53CA\u5176\u7F51\u5173\u8DEF\u7531","provider.cli.nameDescription":"provider \u540D\u79F0\uFF0C\u4EC5\u9650\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26\u548C\u4E0B\u5212\u7EBF","provider.cli.apiDescription":"\u7AEF\u70B9\u4F7F\u7528\u7684\u8BF7\u6C42\u534F\u8BAE","provider.cli.urlDescription":"\u4E0A\u6E38\u7AEF\u70B9\u5730\u5740\uFF0C\u4FDD\u5B58\u5728\u7F51\u5173\u8DEF\u7531\u91CC","provider.cli.keyDescription":"\u4E0A\u6E38 API key\uFF0C\u586B - \u8868\u793A\u4ECE\u6807\u51C6\u8F93\u5165\u8BFB\u53D6","provider.cli.modelDescription":"\u7AEF\u70B9\u63D0\u4F9B\u7684\u6A21\u578B id\uFF0C\u53EF\u91CD\u590D","provider.cli.jsonDescription":"\u4EE5 JSON \u8F93\u51FA\u7ED3\u679C","provider.cli.dryRunDescription":"\u53EA\u663E\u793A\u4F1A\u5220\u9664\u4EC0\u4E48\uFF0C\u4E0D\u771F\u7684\u5220\u9664","provider.cli.helpDescription":"\u663E\u793A\u5E2E\u52A9","provider.cli.exampleAdd":"\u5B9A\u4E49\u4E00\u4E2A\u4F7F\u7528 Anthropic \u534F\u8BAE\u7684\u672C\u5730\u7AEF\u70B9","provider.cli.exampleAddPiped":"\u5B9A\u4E49\u4E00\u4E2A\u4ECE\u5BC6\u94A5\u5E93\u53D6 key \u7684 provider","provider.cli.exampleList":"\u67E5\u770B\u5DF2\u5B9A\u4E49\u7684\u5168\u90E8 provider","provider.cli.exampleRemove":"\u5220\u9664\u524D\u5148\u9884\u89C8","provider.cli.unknownSubcommand":"\u672A\u77E5\u5B50\u547D\u4EE4\uFF1A`${command}`","provider.cli.unknownFlag":"\u672A\u77E5\u53C2\u6570\uFF1A`${flag}`","provider.cli.missingFlag":"\u7F3A\u5C11\u5FC5\u586B\u53C2\u6570\uFF1A`${flag}`","provider.cli.flagNeedsValue":"\u53C2\u6570 `${flag}` \u9700\u8981\u4E00\u4E2A\u503C","provider.cli.notFound":"\u6CA1\u6709\u8FD9\u4E2A\u81EA\u5B9A\u4E49 provider\uFF1A`${name}`","provider.cli.validValues":"\u53EF\u9009\u503C\uFF1A","provider.cli.hint":"\u63D0\u793A\uFF1A","provider.cli.listEmpty":"\u5C1A\u672A\u5B9A\u4E49\u4EFB\u4F55\u81EA\u5B9A\u4E49 provider\u3002","provider.cli.listItem":"${name} ${api} ${upstream}","provider.cli.listItemUnrouted":"${name} ${api} \uFF08\u6CA1\u6709\u7F51\u5173\u8DEF\u7531\uFF09","provider.cli.added":"\u5DF2\u4FDD\u5B58 provider `${name}`\u2014\u2014\u7ECF\u7F51\u5173\u8DEF\u7531\u5230 ${upstream}\u3002","provider.cli.removed":"\u5DF2\u5220\u9664 provider `${name}`\u3002","provider.chat.usage":"\u7528\u6CD5\uFF1A`!login custom [list | add <\u540D\u79F0> <\u534F\u8BAE> <\u5730\u5740> <\u6A21\u578B\u2026> | remove <\u540D\u79F0>]`","provider.chat.keyNotice":"\u4E0A\u6E38\u5BC6\u94A5\u4E0D\u8981\u6253\u8FDB\u804A\u5929\u2014\u2014\u8BF7\u7528 `cortex auth provider add --key -` \u6216 Web \u8BBE\u7F6E\u9875\u6DFB\u52A0\u3002","provider.issue.name-required":"\u5FC5\u987B\u586B\u5199 provider \u540D\u79F0\u3002","provider.issue.name-charset":"provider \u540D\u79F0\u53EA\u80FD\u4F7F\u7528\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u8FDE\u5B57\u7B26\u548C\u4E0B\u5212\u7EBF\u3002","provider.issue.api-invalid":"\u672A\u77E5\u7684\u8BF7\u6C42\u534F\u8BAE\u3002","provider.issue.upstream-required":"\u5FC5\u987B\u586B\u5199\u4E0A\u6E38\u5730\u5740\u3002","provider.issue.upstream-scheme":"\u4E0A\u6E38\u5730\u5740\u5FC5\u987B\u4EE5 http:// \u6216 https:// \u5F00\u5934\u3002","provider.issue.models-required":"\u81F3\u5C11\u5B9A\u4E49\u4E00\u4E2A\u6A21\u578B id\u3002","provider.issue.model-id-required":"\u6BCF\u4E2A\u6A21\u578B\u90FD\u9700\u8981 id\u3002","provider.issue.model-id-duplicate":"\u6A21\u578B id \u4E0D\u80FD\u91CD\u590D\u3002","provider.issue.not-found":"\u6CA1\u6709\u8FD9\u4E2A\u81EA\u5B9A\u4E49 provider\u3002","provider.issue.write-failed":"\u5199\u5165 provider \u914D\u7F6E\u5931\u8D25\u3002"};var k={"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.","notice.cancel.nothingRunning":"Nothing running to cancel.","notice.selection.unknown":"Unknown model selection: ${name}","notice.cost.title":"Cost Report","notice.cost.titleProject":"Cost Report (project: ${project})","notice.cost.scopeProject":"per-project limits","notice.cost.scopeInherited":"inherited global limits","notice.cost.today":"Today: $${spent} / $${budget} (remaining: $${remaining})","notice.cost.month":"This month: $${spent} / $${budget} (remaining: $${remaining})","notice.cost.week":"This week: $${spent}","notice.cost.total":"Total (90d): $${spent}","notice.cost.byMode":"By cost mode:","notice.cost.modeLine":"${label}: today $${today} | week $${week} | month $${month} | total $${total}","notice.cost.bySource":"By source:","notice.cost.byBackend":"By backend:","notice.cost.byTrigger":"By trigger:","notice.cost.byProject":"By project:","notice.cost.statsLine":"${name}: today $${today} | month $${month} | total $${total}","notice.cost.projectLine":"${name}: today $${today} | month $${month}","notice.cost.tokenUsage":"Token usage:","notice.cost.tokensToday":"Today: ${input} in / ${output} out","notice.cost.tokensMonth":"Month: ${input} in / ${output} out","notice.cost.tokensTotal":"Total: ${input} in / ${output} out","notice.ago.seconds":"${n}s ago","notice.ago.minutes":"${n}m ago","notice.ago.hours":"${n}h ago","notice.ago.days":"${n}d ago","notice.plan.approvalCard":"Plan approval","notice.plan.noContent":"Plan generated but no content found.","notice.plan.generated":"Generated plan \u2014 use the buttons below to approve or provide feedback:","notice.unknownError":"Unknown error","notice.schedule.error":"Scheduled task error: ${error}","notice.schedule.overdue":"Schedule ${id} skipped (${seconds}s overdue): ${message}","notice.schedule.rateLimited":"Schedule ${id} skipped: all configs rate-limited. ${message}","notice.turns":"${n} turns","notice.rateLimit.title":"Rate limit","notice.rateLimit.outageTitle":"Provider outage","notice.rateLimit.resumeNow":"Resume now","notice.rateLimit.outageCleared":"${provider} provider outage window cleared.","notice.rateLimit.cleared":"${provider} rate limit throttle cleared.","notice.rateLimit.outageDetected":"${provider} provider outage detected.\nAutomated work will retry at ${at} (in ${remaining}).","notice.rateLimit.activated":"${provider} rate limit throttle activated [${type}] \u2014 utilization ${pct}%.\nAuto-resume at ${at} (in ${remaining}).","notice.rateLimit.clearedManually":"${provider} rate limit throttle cleared manually \u2014 paused work is resuming now.\nIf the provider is still rate-limited, the next request will re-activate the throttle automatically.","notice.disk.title":"Disk","notice.disk.low":"Disk low on `${path}`: only ${free} free (< ${threshold} threshold). Clean up or Cortex may crash.","notice.rebuild.title":"Rebuild","notice.serverUpdate.title":"Server update","notice.rebuild.aborted":'Rebuild aborted at step "${step}" (${detail}) \u2014 app.ts was NOT restarted and is still running the previously installed build. Trigger: ${reason}',"notice.platform.slack":"Slack","notice.platform.feishu":"Feishu","notice.platform.connectFailed":"${platform} failed to connect: ${error}. Cortex won't receive ${platform} messages until it restarts.","notice.platform.stillConnecting":"${platform} hasn't connected after ${seconds}s and is still retrying. Cortex won't receive ${platform} messages until it connects.","notice.platform.connected":"${platform} connected.","notice.ops.publicSync":"Public sync: ${detail}","notice.ops.publicSyncIssue":"Public sync issue:","notice.ops.publicSyncError":"Public sync error: ${error}","notice.client.updated":"client on `${device}` updated \u2192 `${hash}` (v${version})","notice.client.updateFailed":"client update failed on `${device}`: ${error}","notice.hook.newRunning":"Running `!new` hook\u2026","notice.hook.newFailed":"`!new` hook failed: ${error}","notice.hook.empty":"hook returned empty output \u2014 nothing to inject.","notice.hook.lockChecking":"Checking for unreleased locks\u2026","notice.hook.lockFailed":"Lock check failed: ${error}","notice.reply.branch":"branch: ${name}","notice.reply.callback":"callback: ${name}","notice.interaction.question":"Question","notice.interaction.planSubmitted":"Plan submitted for approval","notice.interaction.planExpired":"Plan approval expired","notice.interaction.questionExpired":"Question expired","notice.interaction.planCancelled":"Plan approval cancelled","notice.interaction.questionCancelled":"Question cancelled","notice.interaction.questionAnswered":"Question answered","notice.interaction.planApproved":"Plan approved","notice.interaction.planRejectedWith":"Plan rejected: ${feedback}","notice.interaction.planRejected":"Plan rejected"},w={"notice.admin.autoRegistered":"\u6B64\u79C1\u804A\u5DF2\u81EA\u52A8\u6CE8\u518C\u4E3A Cortex \u7BA1\u7406\u9891\u9053\uFF0C`${setting}=${channel}` \u5DF2\u5199\u5165 `settings.json`\u3002\u7CFB\u7EDF\u901A\u77E5\uFF08\u542F\u52A8\u3001\u9650\u6D41\u3001\u78C1\u76D8\u544A\u8B66\uFF09\u5C06\u53D1\u9001\u5230\u8FD9\u91CC\u3002","notice.cancel.nothingRunning":"\u5F53\u524D\u6CA1\u6709\u6B63\u5728\u8FD0\u884C\u7684\u4EFB\u52A1\u53EF\u53D6\u6D88\u3002","notice.selection.unknown":"\u672A\u77E5\u7684\u6A21\u578B\u9009\u62E9\uFF1A${name}","notice.cost.title":"\u8D39\u7528\u62A5\u544A","notice.cost.titleProject":"\u8D39\u7528\u62A5\u544A\uFF08\u9879\u76EE\uFF1A${project}\uFF09","notice.cost.scopeProject":"\u9879\u76EE\u72EC\u7ACB\u9650\u989D","notice.cost.scopeInherited":"\u6CBF\u7528\u5168\u5C40\u9650\u989D","notice.cost.today":"\u4ECA\u65E5\uFF1A$${spent} / $${budget}\uFF08\u5269\u4F59\uFF1A$${remaining}\uFF09","notice.cost.month":"\u672C\u6708\uFF1A$${spent} / $${budget}\uFF08\u5269\u4F59\uFF1A$${remaining}\uFF09","notice.cost.week":"\u672C\u5468\uFF1A$${spent}","notice.cost.total":"\u5408\u8BA1\uFF0890 \u5929\uFF09\uFF1A$${spent}","notice.cost.byMode":"\u6309\u8BA1\u8D39\u65B9\u5F0F\uFF1A","notice.cost.modeLine":"${label}\uFF1A\u4ECA\u65E5 $${today} | \u672C\u5468 $${week} | \u672C\u6708 $${month} | \u5408\u8BA1 $${total}","notice.cost.bySource":"\u6309\u6765\u6E90\uFF1A","notice.cost.byBackend":"\u6309\u540E\u7AEF\uFF1A","notice.cost.byTrigger":"\u6309\u89E6\u53D1\u65B9\u5F0F\uFF1A","notice.cost.byProject":"\u6309\u9879\u76EE\uFF1A","notice.cost.statsLine":"${name}\uFF1A\u4ECA\u65E5 $${today} | \u672C\u6708 $${month} | \u5408\u8BA1 $${total}","notice.cost.projectLine":"${name}\uFF1A\u4ECA\u65E5 $${today} | \u672C\u6708 $${month}","notice.cost.tokenUsage":"Token \u7528\u91CF\uFF1A","notice.cost.tokensToday":"\u4ECA\u65E5\uFF1A\u8F93\u5165 ${input} / \u8F93\u51FA ${output}","notice.cost.tokensMonth":"\u672C\u6708\uFF1A\u8F93\u5165 ${input} / \u8F93\u51FA ${output}","notice.cost.tokensTotal":"\u5408\u8BA1\uFF1A\u8F93\u5165 ${input} / \u8F93\u51FA ${output}","notice.ago.seconds":"${n} \u79D2\u524D","notice.ago.minutes":"${n} \u5206\u949F\u524D","notice.ago.hours":"${n} \u5C0F\u65F6\u524D","notice.ago.days":"${n} \u5929\u524D","notice.plan.approvalCard":"\u8BA1\u5212\u5BA1\u6279","notice.plan.noContent":"\u8BA1\u5212\u5DF2\u751F\u6210\uFF0C\u4F46\u672A\u627E\u5230\u5185\u5BB9\u3002","notice.plan.generated":"\u8BA1\u5212\u5DF2\u751F\u6210\uFF0C\u8BF7\u4F7F\u7528\u4E0B\u65B9\u6309\u94AE\u6279\u51C6\u6216\u63D0\u4F9B\u53CD\u9988\uFF1A","notice.unknownError":"\u672A\u77E5\u9519\u8BEF","notice.schedule.error":"\u5B9A\u65F6\u4EFB\u52A1\u51FA\u9519\uFF1A${error}","notice.schedule.overdue":"\u5B9A\u65F6\u4EFB\u52A1 ${id} \u5DF2\u8DF3\u8FC7\uFF08\u903E\u671F ${seconds} \u79D2\uFF09\uFF1A${message}","notice.schedule.rateLimited":"\u5B9A\u65F6\u4EFB\u52A1 ${id} \u5DF2\u8DF3\u8FC7\uFF1A\u6240\u6709\u914D\u7F6E\u5747\u88AB\u9650\u6D41\u3002${message}","notice.turns":"${n} \u8F6E","notice.rateLimit.title":"\u9650\u6D41","notice.rateLimit.outageTitle":"\u670D\u52A1\u5546\u6545\u969C","notice.rateLimit.resumeNow":"\u7ACB\u5373\u6062\u590D","notice.rateLimit.outageCleared":"${provider} \u670D\u52A1\u5546\u6545\u969C\u7A97\u53E3\u5DF2\u89E3\u9664\u3002","notice.rateLimit.cleared":"${provider} \u9650\u6D41\u8282\u6D41\u5DF2\u89E3\u9664\u3002","notice.rateLimit.outageDetected":"\u68C0\u6D4B\u5230 ${provider} \u670D\u52A1\u5546\u6545\u969C\u3002\n\u81EA\u52A8\u4EFB\u52A1\u5C06\u4E8E ${at} \u91CD\u8BD5\uFF08${remaining} \u540E\uFF09\u3002","notice.rateLimit.activated":"${provider} \u5DF2\u542F\u7528\u9650\u6D41\u8282\u6D41 [${type}]\uFF0C\u7528\u91CF ${pct}%\u3002\n\u5C06\u4E8E ${at} \u81EA\u52A8\u6062\u590D\uFF08${remaining} \u540E\uFF09\u3002","notice.rateLimit.clearedManually":"${provider} \u9650\u6D41\u8282\u6D41\u5DF2\u624B\u52A8\u89E3\u9664\uFF0C\u6682\u505C\u7684\u5DE5\u4F5C\u6B63\u5728\u6062\u590D\u3002\n\u5982\u679C\u670D\u52A1\u5546\u4ECD\u5728\u9650\u6D41\uFF0C\u4E0B\u4E00\u6B21\u8BF7\u6C42\u4F1A\u81EA\u52A8\u91CD\u65B0\u542F\u7528\u8282\u6D41\u3002","notice.disk.title":"\u78C1\u76D8","notice.disk.low":"`${path}` \u78C1\u76D8\u7A7A\u95F4\u4E0D\u8DB3\uFF1A\u4EC5\u5269 ${free}\uFF08\u4F4E\u4E8E ${threshold} \u9608\u503C\uFF09\u3002\u8BF7\u53CA\u65F6\u6E05\u7406\uFF0C\u5426\u5219 Cortex \u53EF\u80FD\u5D29\u6E83\u3002","notice.rebuild.title":"\u91CD\u65B0\u6784\u5EFA","notice.serverUpdate.title":"\u670D\u52A1\u5668\u66F4\u65B0","notice.rebuild.aborted":"\u91CD\u65B0\u6784\u5EFA\u5728\u6B65\u9AA4\u201C${step}\u201D\u4E2D\u6B62\uFF08${detail}\uFF09\u3002app.ts \u672A\u91CD\u542F\uFF0C\u4ECD\u5728\u8FD0\u884C\u4E4B\u524D\u5B89\u88C5\u7684\u6784\u5EFA\u3002\u89E6\u53D1\u539F\u56E0\uFF1A${reason}","notice.platform.slack":"Slack","notice.platform.feishu":"\u98DE\u4E66","notice.platform.connectFailed":"${platform} \u8FDE\u63A5\u5931\u8D25\uFF1A${error}\u3002Cortex \u91CD\u542F\u524D\u6536\u4E0D\u5230 ${platform} \u6D88\u606F\u3002","notice.platform.stillConnecting":"${platform} ${seconds} \u79D2\u5185\u672A\u8FDE\u4E0A\uFF0C\u4ECD\u5728\u91CD\u8BD5\u3002\u8FDE\u4E0A\u4E4B\u524D Cortex \u6536\u4E0D\u5230 ${platform} \u6D88\u606F\u3002","notice.platform.connected":"${platform} \u5DF2\u8FDE\u4E0A\u3002","notice.ops.publicSync":"\u516C\u5F00\u4ED3\u5E93\u540C\u6B65\uFF1A${detail}","notice.ops.publicSyncIssue":"\u516C\u5F00\u4ED3\u5E93\u540C\u6B65\u5F02\u5E38\uFF1A","notice.ops.publicSyncError":"\u516C\u5F00\u4ED3\u5E93\u540C\u6B65\u51FA\u9519\uFF1A${error}","notice.client.updated":"`${device}` \u4E0A\u7684 client \u5DF2\u66F4\u65B0 \u2192 `${hash}`\uFF08v${version}\uFF09","notice.client.updateFailed":"`${device}` \u4E0A\u7684 client \u66F4\u65B0\u5931\u8D25\uFF1A${error}","notice.hook.newRunning":"\u6B63\u5728\u8FD0\u884C `!new` hook\u2026\u2026","notice.hook.newFailed":"`!new` hook \u6267\u884C\u5931\u8D25\uFF1A${error}","notice.hook.empty":"hook \u8F93\u51FA\u4E3A\u7A7A\uFF0C\u65E0\u9700\u6CE8\u5165\u3002","notice.hook.lockChecking":"\u6B63\u5728\u68C0\u67E5\u672A\u91CA\u653E\u7684\u9501\u2026\u2026","notice.hook.lockFailed":"\u9501\u68C0\u67E5\u5931\u8D25\uFF1A${error}","notice.reply.branch":"\u5206\u652F\uFF1A${name}","notice.reply.callback":"\u56DE\u8C03\uFF1A${name}","notice.interaction.question":"\u95EE\u9898","notice.interaction.planSubmitted":"\u8BA1\u5212\u5DF2\u63D0\u4EA4\u5BA1\u6279","notice.interaction.planExpired":"\u8BA1\u5212\u5BA1\u6279\u5DF2\u8FC7\u671F","notice.interaction.questionExpired":"\u95EE\u9898\u5DF2\u8FC7\u671F","notice.interaction.planCancelled":"\u8BA1\u5212\u5BA1\u6279\u5DF2\u53D6\u6D88","notice.interaction.questionCancelled":"\u95EE\u9898\u5DF2\u53D6\u6D88","notice.interaction.questionAnswered":"\u95EE\u9898\u5DF2\u56DE\u7B54","notice.interaction.planApproved":"\u8BA1\u5212\u5DF2\u6279\u51C6","notice.interaction.planRejectedWith":"\u8BA1\u5212\u5DF2\u9A73\u56DE\uFF1A${feedback}","notice.interaction.planRejected":"\u8BA1\u5212\u5DF2\u9A73\u56DE"};var x={"ui.session.notFound":"Session not found: ${id}","ui.session.textOrAttachments":"Either text or attachments required","ui.session.runningCompact":"Session is running \u2014 stop it before compacting context","ui.session.compactUnsupported":"This session backend does not support manual context compaction","ui.session.invalidSelection":"Invalid engine selection: ${name}","ui.session.unknownAgent":"Unknown environment: ${name}","ui.session.backendLockedNamed":'Can\'t switch to "${name}" (${target}) \u2014 this conversation runs on ${current}. Start a new session to change backend.',"ui.session.backendLocked":"Can't switch to ${target} \u2014 this conversation runs on ${current}. Start a new session to change backend.","ui.session.expectedOneOf":" (expected one of: ${values})","ui.session.invalidThinking":"Unsupported thinking level: ${level}${expected}","ui.session.invalidMode":'This session\'s gateway has no route "${mode}"${expected}',"ui.session.noProvider":"This session's backend has no provider to select (requested: ${provider})","ui.session.editEmpty":"Edited text must not be empty","ui.session.runningEdit":"Session is running \u2014 stop it before editing","ui.session.noTurn":"No turn ${turn} to rewind in session ${id}","ui.session.rewindNoRestorePoint":"The conversation before this message can no longer be restored, so it cannot be rewound to.","ui.session.noPendingQuestion":"No pending question for requestId: ${id}","ui.session.noPendingPlan":"No pending plan for requestId: ${id}","ui.session.noDecision":"No decision ${decision} in session ${id}","ui.session.decisionMessageRequired":'message required for action "${action}"',"ui.schedule.notFound":"Schedule not found: ${id}","ui.schedule.intervalRequired":"intervalMs is required for type=interval","ui.schedule.timeRequired":"time is required for type=${type}","ui.schedule.dayOfWeekRequired":"dayOfWeek is required for type=weekly","ui.schedule.delayRequired":"delay is required for type=once","ui.system.clearRateLimitFailed":"Failed to clear rate limit: ${error}","ui.system.refreshUsageFailed":"Failed to refresh usage: ${error}","ui.system.redeemUsageResetFailed":"Failed to use the usage reset: ${error}","ui.system.restartSignalSent":"Restart signal sent \u2014 daemon will drain and respawn app.js when idle.","ui.system.restartSignalFailed":"Failed to signal restart: ${error}","ui.system.noChildPid":"No child PID file found \u2014 is app.js running under the daemon?","ui.system.childNotRunning":"Child process (PID ${pid}) is not running.","ui.system.signalSent":"Sent ${signal} to app.js (PID ${pid}). Daemon will auto-recover.","ui.system.signalFailed":"Failed to send ${signal} to app.js (PID ${pid}): ${error}","ui.approval.notFound":"Approval not found: ${id}","ui.approval.platform.feishu":"Feishu","ui.approval.platform.slack":"Slack","ui.approval.reconnectTitle":"Reconnect ${label} gateway","ui.approval.reconnectOperation":"Reconnect the ${label} messaging gateway","ui.approval.reconnectImpact":"${label} platform connection (restarts the gateway)","ui.approval.addMachineTitle":"Add machine ${name}","ui.approval.addMachineOperation":'Register a new machine "${name}" in machines.json',"ui.approval.addMachineImpact":"machines.json \xB7 client lifecycle (a new remote client will be managed)","ui.approval.webReason":"Requested from the Web settings panel \u2014 high-privilege, gated for approval","ui.approval.machineNameRequired":"machineName is required for kind=add-machine","ui.execution.notFound":"Execution not found: ${id}","ui.waitpoint.notFound":"Waitpoint not found: ${id}","ui.hook.unknownId":"Unknown hook id: '${id}'","ui.hook.exactlyOneRun":"exactly one of script or command is required","ui.platform.invalid":"Invalid platform configuration","ui.platform.saveFailed":"Could not save platform configuration","ui.platform.readFailed":"Could not read platform configuration","ui.platform.requestFailed":"Platform configuration request failed","ui.models.fileUnreadable":"models.json is missing or unreadable","ui.models.noDefault":"models.json has no default selection","ui.models.notFound":'Model "${name}" is not in favorites',"ui.plugin.unassignable":"Unassignable plugin ids: ${ids}","ui.plugin.builtin":"'${id}' is built into Cortex and cannot be removed; switch it off per environment instead","ui.plugin.skillBuiltin":"'${id}' is a built-in skill: it can be edited or reverted, but not moved or deleted","ui.plugin.stillAssigned":"'${id}' is still assigned to: ${targets}","ui.plugin.unknown":"Unknown plugin: '${id}'","ui.plugin.alreadyPortable":"'${id}' is already portable","ui.plugin.noStoredValue":"${label} '${key}' has no stored value to keep; provide one","ui.plugin.envKeyLabel":"env key","ui.plugin.headerLabel":"header","ui.plugin.duplicateMcp":"Duplicate MCP server name: '${name}'","ui.issue.notFound":"Issue not found: ${id}","ui.issue.promptHead":"Handle the issue recorded in ISSUES.md of project ${projectId}:","ui.issue.promptTail":"The entry has been removed from ISSUES.md and handed to this session. Please investigate and resolve the problem above; if the conclusion should be kept, write it to the matching project context file.","ui.note.oneLine":"Note text must be one line","ui.project.notFound":"Project not found: ${id}","ui.machine.unknown":"Unknown machine: ${name}"},C={"ui.session.notFound":"\u672A\u627E\u5230\u4F1A\u8BDD\uFF1A${id}","ui.session.textOrAttachments":"\u8BF7\u8F93\u5165\u6587\u5B57\u6216\u6DFB\u52A0\u9644\u4EF6\u3002","ui.session.runningCompact":"\u4F1A\u8BDD\u6B63\u5728\u8FD0\u884C\u2014\u2014\u8BF7\u5148\u505C\u6B62\uFF0C\u518D\u538B\u7F29\u4E0A\u4E0B\u6587\u3002","ui.session.compactUnsupported":"\u8BE5\u4F1A\u8BDD\u7684\u540E\u7AEF\u4E0D\u652F\u6301\u624B\u52A8\u538B\u7F29\u4E0A\u4E0B\u6587\u3002","ui.session.invalidSelection":"\u65E0\u6548\u7684\u5F15\u64CE\u9009\u62E9\uFF1A${name}","ui.session.unknownAgent":"\u672A\u77E5\u6267\u884C\u73AF\u5883\uFF1A${name}","ui.session.backendLockedNamed":"\u65E0\u6CD5\u5207\u6362\u5230\u300C${name}\u300D\uFF08${target}\uFF09\u2014\u2014\u5F53\u524D\u4F1A\u8BDD\u8FD0\u884C\u5728 ${current} \u4E0A\u3002\u5982\u9700\u66F4\u6362\u540E\u7AEF\uFF0C\u8BF7\u65B0\u5EFA\u4F1A\u8BDD\u3002","ui.session.backendLocked":"\u65E0\u6CD5\u5207\u6362\u5230 ${target}\u2014\u2014\u5F53\u524D\u4F1A\u8BDD\u8FD0\u884C\u5728 ${current} \u4E0A\u3002\u5982\u9700\u66F4\u6362\u540E\u7AEF\uFF0C\u8BF7\u65B0\u5EFA\u4F1A\u8BDD\u3002","ui.session.expectedOneOf":"\uFF08\u53EF\u9009\u503C\uFF1A${values}\uFF09","ui.session.invalidThinking":"\u4E0D\u652F\u6301\u7684\u601D\u8003\u5F3A\u5EA6\uFF1A${level}${expected}","ui.session.invalidMode":"\u8BE5\u4F1A\u8BDD\u7684\u7F51\u5173\u6CA1\u6709\u8DEF\u7531\u300C${mode}\u300D${expected}","ui.session.noProvider":"\u8BE5\u4F1A\u8BDD\u7684\u540E\u7AEF\u6CA1\u6709\u53EF\u9009\u7684 provider\uFF08\u8BF7\u6C42\u7684\u662F\uFF1A${provider}\uFF09","ui.session.editEmpty":"\u7F16\u8F91\u540E\u7684\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A\u3002","ui.session.runningEdit":"\u4F1A\u8BDD\u6B63\u5728\u8FD0\u884C\u2014\u2014\u8BF7\u5148\u505C\u6B62\uFF0C\u518D\u7F16\u8F91\u3002","ui.session.noTurn":"\u4F1A\u8BDD ${id} \u4E2D\u6CA1\u6709\u53EF\u56DE\u9000\u7684\u7B2C ${turn} \u8F6E\u3002","ui.session.rewindNoRestorePoint":"\u8FD9\u6761\u6D88\u606F\u4E4B\u524D\u7684\u4E0A\u4E0B\u6587\u5DF2\u65E0\u6CD5\u6062\u590D\uFF0C\u4E0D\u80FD\u56DE\u9000\u5230\u8FD9\u91CC\u3002","ui.session.noPendingQuestion":"\u6CA1\u6709\u5F85\u56DE\u7B54\u7684\u95EE\u9898\uFF08requestId\uFF1A${id}\uFF09","ui.session.noPendingPlan":"\u6CA1\u6709\u5F85\u5BA1\u6279\u7684\u8BA1\u5212\uFF08requestId\uFF1A${id}\uFF09","ui.session.noDecision":"\u4F1A\u8BDD ${id} \u4E2D\u6CA1\u6709\u51B3\u7B56 ${decision}","ui.session.decisionMessageRequired":"\u300C${action}\u300D\u64CD\u4F5C\u9700\u8981\u586B\u5199\u6D88\u606F\u3002","ui.schedule.notFound":"\u672A\u627E\u5230\u5B9A\u65F6\u4EFB\u52A1\uFF1A${id}","ui.schedule.intervalRequired":"\u95F4\u9694\u7C7B\u578B\u9700\u8981\u586B\u5199\u95F4\u9694\uFF08intervalMs\uFF09\u3002","ui.schedule.timeRequired":"\u7C7B\u578B ${type} \u9700\u8981\u586B\u5199\u65F6\u95F4\uFF08time\uFF09\u3002","ui.schedule.dayOfWeekRequired":"\u6BCF\u5468\u7C7B\u578B\u9700\u8981\u9009\u62E9\u661F\u671F\u51E0\uFF08dayOfWeek\uFF09\u3002","ui.schedule.delayRequired":"\u4E00\u6B21\u6027\u7C7B\u578B\u9700\u8981\u586B\u5199\u5EF6\u8FDF\uFF08delay\uFF09\u3002","ui.system.clearRateLimitFailed":"\u6E05\u9664\u9650\u6D41\u5931\u8D25\uFF1A${error}","ui.system.refreshUsageFailed":"\u5237\u65B0\u7528\u91CF\u5931\u8D25\uFF1A${error}","ui.system.redeemUsageResetFailed":"\u4F7F\u7528\u7528\u91CF\u91CD\u7F6E\u5931\u8D25\uFF1A${error}","ui.system.restartSignalSent":"\u5DF2\u53D1\u9001\u91CD\u542F\u4FE1\u53F7\u2014\u2014daemon \u4F1A\u5728\u7A7A\u95F2\u65F6\u6392\u7A7A\u4EFB\u52A1\u5E76\u91CD\u65B0\u62C9\u8D77 app.js\u3002","ui.system.restartSignalFailed":"\u53D1\u9001\u91CD\u542F\u4FE1\u53F7\u5931\u8D25\uFF1A${error}","ui.system.noChildPid":"\u672A\u627E\u5230\u5B50\u8FDB\u7A0B PID \u6587\u4EF6\u2014\u2014app.js \u662F\u5426\u7531 daemon \u6258\u7BA1\u8FD0\u884C\uFF1F","ui.system.childNotRunning":"\u5B50\u8FDB\u7A0B\uFF08PID ${pid}\uFF09\u672A\u5728\u8FD0\u884C\u3002","ui.system.signalSent":"\u5DF2\u5411 app.js\uFF08PID ${pid}\uFF09\u53D1\u9001 ${signal}\uFF0Cdaemon \u4F1A\u81EA\u52A8\u6062\u590D\u3002","ui.system.signalFailed":"\u5411 app.js\uFF08PID ${pid}\uFF09\u53D1\u9001 ${signal} \u5931\u8D25\uFF1A${error}","ui.approval.notFound":"\u672A\u627E\u5230\u5BA1\u6279\uFF1A${id}","ui.approval.platform.feishu":"\u98DE\u4E66","ui.approval.platform.slack":"Slack","ui.approval.reconnectTitle":"\u91CD\u8FDE${label}\u7F51\u5173","ui.approval.reconnectOperation":"\u91CD\u8FDE${label}\u6D88\u606F\u7F51\u5173","ui.approval.reconnectImpact":"${label}\u5E73\u53F0\u8FDE\u63A5\uFF08\u4F1A\u91CD\u542F\u7F51\u5173\uFF09","ui.approval.addMachineTitle":"\u6DFB\u52A0\u673A\u5668 ${name}","ui.approval.addMachineOperation":"\u5728 machines.json \u4E2D\u767B\u8BB0\u65B0\u673A\u5668\u300C${name}\u300D","ui.approval.addMachineImpact":"machines.json \xB7 \u5BA2\u6237\u7AEF\u751F\u547D\u5468\u671F\uFF08\u5C06\u5F00\u59CB\u6258\u7BA1\u4E00\u4E2A\u65B0\u7684\u8FDC\u7A0B\u5BA2\u6237\u7AEF\uFF09","ui.approval.webReason":"\u4ECE Web \u8BBE\u7F6E\u9762\u677F\u53D1\u8D77\u2014\u2014\u9AD8\u6743\u9650\u64CD\u4F5C\uFF0C\u9700\u5BA1\u6279\u540E\u6267\u884C","ui.approval.machineNameRequired":"\u8BF7\u586B\u5199\u673A\u5668\u540D\u79F0\u3002","ui.execution.notFound":"\u672A\u627E\u5230\u6267\u884C\u8BB0\u5F55\uFF1A${id}","ui.waitpoint.notFound":"\u672A\u627E\u5230\u7B49\u5F85\u70B9\uFF1A${id}","ui.hook.unknownId":"\u672A\u77E5\u94A9\u5B50 ID\uFF1A\u300C${id}\u300D","ui.hook.exactlyOneRun":"\u811A\u672C\uFF08script\uFF09\u548C\u547D\u4EE4\uFF08command\uFF09\u5FC5\u987B\u4E14\u53EA\u80FD\u586B\u5199\u4E00\u9879\u3002","ui.platform.invalid":"\u5E73\u53F0\u914D\u7F6E\u65E0\u6548\u3002","ui.platform.saveFailed":"\u65E0\u6CD5\u4FDD\u5B58\u5E73\u53F0\u914D\u7F6E\u3002","ui.platform.readFailed":"\u65E0\u6CD5\u8BFB\u53D6\u5E73\u53F0\u914D\u7F6E\u3002","ui.platform.requestFailed":"\u5E73\u53F0\u914D\u7F6E\u8BF7\u6C42\u5931\u8D25\u3002","ui.models.fileUnreadable":"models.json \u4E0D\u5B58\u5728\u6216\u65E0\u6CD5\u8BFB\u53D6\u3002","ui.models.noDefault":"models.json \u4E2D\u6CA1\u6709\u9ED8\u8BA4\u5F15\u64CE\u9009\u62E9\u3002","ui.models.notFound":"\u6536\u85CF\u4E2D\u627E\u4E0D\u5230\u6A21\u578B\u300C${name}\u300D\u3002","ui.plugin.unassignable":"\u4EE5\u4E0B\u63D2\u4EF6\u65E0\u6CD5\u5206\u914D\uFF1A${ids}","ui.plugin.builtin":"\u300C${id}\u300D\u662F Cortex \u5185\u7F6E\u63D2\u4EF6\uFF0C\u4E0D\u80FD\u5220\u9664\uFF1B\u53EF\u4EE5\u5728\u5404\u73AF\u5883\u4E2D\u5173\u95ED\u5B83\u3002","ui.plugin.skillBuiltin":"\u300C${id}\u300D\u662F\u5185\u7F6E\u6280\u80FD\uFF1A\u53EF\u4EE5\u7F16\u8F91\u6216\u8FD8\u539F\uFF0C\u4F46\u4E0D\u80FD\u79FB\u52A8\u6216\u5220\u9664\u3002","ui.plugin.stillAssigned":"\u300C${id}\u300D\u4ECD\u88AB\u5206\u914D\u7ED9\uFF1A${targets}","ui.plugin.unknown":"\u672A\u77E5\u63D2\u4EF6\uFF1A\u300C${id}\u300D","ui.plugin.alreadyPortable":"\u300C${id}\u300D\u5DF2\u7ECF\u662F\u53EF\u79FB\u690D\u63D2\u4EF6\u3002","ui.plugin.noStoredValue":"${label}\u300C${key}\u300D\u6CA1\u6709\u53EF\u4FDD\u7559\u7684\u5DF2\u5B58\u503C\uFF0C\u8BF7\u586B\u5199\u4E00\u4E2A\u503C\u3002","ui.plugin.envKeyLabel":"\u73AF\u5883\u53D8\u91CF","ui.plugin.headerLabel":"\u8BF7\u6C42\u5934","ui.plugin.duplicateMcp":"MCP \u670D\u52A1\u5668\u540D\u79F0\u91CD\u590D\uFF1A\u300C${name}\u300D","ui.issue.notFound":"\u672A\u627E\u5230 issue\uFF1A${id}","ui.issue.promptHead":"\u5904\u7406\u9879\u76EE ${projectId} \u7684 ISSUES.md \u4E2D\u767B\u8BB0\u7684 issue\uFF1A","ui.issue.promptTail":"\u8BE5\u6761\u76EE\u5DF2\u4ECE ISSUES.md \u79FB\u9664\u5E76\u4EA4\u7531\u672C\u4F1A\u8BDD\u5904\u7406\u3002\u8BF7\u8C03\u67E5\u5E76\u89E3\u51B3\u4E0A\u8FF0\u95EE\u9898\uFF1B\u5982\u9700\u6301\u4E45\u8BB0\u5F55\u7ED3\u8BBA\uFF0C\u5199\u5165\u9879\u76EE\u4E0A\u4E0B\u6587\u76F8\u5E94\u6587\u4EF6\u3002","ui.note.oneLine":"\u7B14\u8BB0\u5185\u5BB9\u5FC5\u987B\u662F\u5355\u884C\u3002","ui.project.notFound":"\u672A\u627E\u5230\u9879\u76EE\uFF1A${id}","ui.machine.unknown":"\u672A\u77E5\u673A\u5668\uFF1A${name}"};var P={"tui.slash.new":"New conversation \u2014 saves memory, then clears the view","tui.slash.newx":"New conversation (fast) \u2014 skips the save, clears the view","tui.slash.resume":"Resume a session \u2014 /resume for the picker, /resume <id> to jump","tui.slash.cancel":"Cancel the current turn","tui.slash.restart":"Restart the Cortex server (reconnects automatically)","tui.slash.status":"Show running executions and system status","tui.slash.orient":"Project-wide status briefing \u2014 what to work on next","tui.slash.projects":"List known projects","tui.slash.cost":"Show cost summary \u2014 /cost [today|week|month]","tui.slash.budget":"Show or set the daily/monthly budget","tui.slash.agent":"Run a one-off agent \u2014 /agent <name> <message>","tui.slash.schedule":"Create or manage scheduled tasks \u2014 /schedule [args]","tui.slash.mode":"Show the current runtime mode","tui.slash.model":"Show or switch the model \u2014 /model [name]","tui.slash.backend":"Show or switch the agent backend \u2014 /backend [name]","tui.slash.skills":"List available skills","tui.slash.devices":"List connected client devices","tui.slash.nvtop":"GPU usage snapshot (nvtop) \u2014 /nvtop [device]","tui.slash.nvidia-smi":"GPU status (nvidia-smi) \u2014 /nvidia-smi [device]","tui.slash.tail":"Tail the daemon log \u2014 /tail [lines]","tui.slash.lang":"Show or switch the UI language \u2014 /lang [zh|en]","tui.slash.mouse":"Toggle mouse capture \u2014 off frees the mouse for text selection","tui.slash.help":"Show available slash commands","tui.slashMenu.noMatch":"no matching command","tui.slashMenu.hint":"\u2191/\u2193 select \xB7 Tab complete \xB7 Enter run \xB7 Esc dismiss","tui.common.error":"Error: ${message}","tui.common.unknownError":"Unknown error","tui.common.moreAbove":"\u2191 ${n} more above","tui.common.moreBelow":"\u2193 ${n} more below","tui.app.copied":"Copied ${n} chars to clipboard (OSC 52)","tui.app.pasteHint":"Use Ctrl+Shift+V to paste","tui.app.connectionFailed":"Connection failed \u2014 press R to retry, Ctrl+C to exit","tui.app.fatal":"Fatal error:","tui.input.placeholder":"Type a message...","tui.input.awaiting":"Waiting for response \u2014 Enter is disabled until the agent replies (Ctrl+C to cancel)","tui.status.shortcuts":"Ctrl+D Dashboard \xB7 Ctrl+N Notifications \xB7 Ctrl+P Projects \xB7 Ctrl+L Clear \xB7 \u2191/\u2193 History \xB7 PgUp/PgDn Scroll \xB7 Ctrl+T Text-select mode (stops wheel) \xB7 Ctrl+C Cancel (\xD72 Exit) \xB7 / Commands","tui.status.returnHint":"Press Ctrl+D to return to the input","tui.status.shortcutsHint":"? for shortcuts","tui.status.selectMode":"\u{1F5B1} select \xB7 ","tui.status.reconnecting":"\u27F3 Reconnecting...","tui.status.connecting":"\u27F3 Connecting...","tui.status.disconnected":"\u25CB Disconnected \u2014 press R to retry, Ctrl+C to exit","tui.turnStatus.turns":"${n} turns","tui.mutate.timeout":"no ui.mutateResult within 10s","tui.dash.tab.schedules":"Schedules","tui.dash.tab.executions":"Executions","tui.dash.tab.cost":"Cost","tui.dash.unknownTab":"Unknown tab","tui.dash.schedules.loading":"Loading schedules...","tui.dash.schedules.empty":"No schedules","tui.dash.schedules.pausedBy":"paused by ${who}","tui.dash.schedules.next":"next: ${when}","tui.dash.schedules.never":"never","tui.dash.schedules.keys":"[p] Pause [r] Resume [x] Remove","tui.dash.schedules.removeTitle":"Remove schedule?","tui.dash.executions.loading":"Loading executions...","tui.dash.executions.empty":"No executions","tui.dash.executions.notFound":"not found","tui.dash.executions.cancelTitle":"Cancel execution?","tui.dash.cost.loading":"Loading cost summary...","tui.dash.cost.empty":"No cost data","tui.dash.cost.unavailable":"No cost summary available","tui.dash.cost.title":"Cost Summary","tui.dash.cost.total":"Total: ","tui.dash.cost.month":"This month: ","tui.dash.cost.week":"This week: ","tui.dash.cost.today":"Today: ","tui.dash.cost.byType":"By cost type (all-time):","tui.confirm.hint":"y/Enter confirm \xB7 n/Esc cancel","tui.confirm.hintReason":"Enter to confirm \xB7 Esc to cancel","tui.projects.title":"Switch Project","tui.projects.loading":"Loading projects...","tui.projects.empty":"No projects found","tui.projects.loadFailed":"Failed to load projects","tui.projects.hint":"\u2191/\u2193 navigate \xB7 Enter switch \xB7 Ctrl+P/Esc cancel","tui.sessions.empty":"No resumable sessions","tui.sessions.title":"Select a session to resume (${n}):","tui.sessions.hint":"\u2191/\u2193 navigate \xB7 Enter resume \xB7 Esc fresh session","tui.notif.title":"Notifications","tui.notif.empty":"No notifications","tui.notif.detailHint":"\u2014 Press Enter to mark read, Esc to go back","tui.notif.hint":"\u2191/\u2193 navigate \xB7 Enter detail \xB7 Ctrl+N/Esc close","tui.modal.submit":"Submit","tui.modal.typeHere":"Type here...","tui.modal.hintSubmit":"Enter submit \xB7 \u2191/\u2193 navigate \xB7 Esc cancel","tui.modal.hintSelect":"\u2191/\u2193 navigate \xB7 Enter select \xB7 Esc cancel","tui.gateway.reportTitle":"Report: ${project}","tui.gateway.fileTitle":"File available","tui.gateway.filePath":"Absolute path: ${path}","tui.transcript.toolFallback":"tool"},S={"tui.slash.new":"\u65B0\u4F1A\u8BDD\u2014\u2014\u5148\u4FDD\u5B58\u8BB0\u5FC6\uFF0C\u518D\u6E05\u7A7A\u89C6\u56FE","tui.slash.newx":"\u65B0\u4F1A\u8BDD\uFF08\u5FEB\u901F\uFF09\u2014\u2014\u8DF3\u8FC7\u4FDD\u5B58\uFF0C\u6E05\u7A7A\u89C6\u56FE","tui.slash.resume":"\u6062\u590D\u4F1A\u8BDD\u2014\u2014/resume \u6253\u5F00\u9009\u62E9\u5668\uFF0C/resume <id> \u76F4\u63A5\u8DF3\u8F6C","tui.slash.cancel":"\u53D6\u6D88\u5F53\u524D\u8F6E\u6B21","tui.slash.restart":"\u91CD\u542F Cortex \u670D\u52A1\uFF08\u81EA\u52A8\u91CD\u8FDE\uFF09","tui.slash.status":"\u67E5\u770B\u8FD0\u884C\u4E2D\u7684\u6267\u884C\u4E0E\u7CFB\u7EDF\u72B6\u6001","tui.slash.orient":"\u9879\u76EE\u6574\u4F53\u72B6\u6001\u7B80\u62A5\u2014\u2014\u63A5\u4E0B\u6765\u8BE5\u505A\u4EC0\u4E48","tui.slash.projects":"\u5217\u51FA\u5DF2\u77E5\u9879\u76EE","tui.slash.cost":"\u67E5\u770B\u6210\u672C\u6C47\u603B\u2014\u2014/cost [today|week|month]","tui.slash.budget":"\u67E5\u770B\u6216\u8BBE\u7F6E\u6BCF\u65E5/\u6BCF\u6708\u9884\u7B97","tui.slash.agent":"\u8FD0\u884C\u4E00\u6B21\u6027 agent\u2014\u2014/agent <\u540D\u79F0> <\u6D88\u606F>","tui.slash.schedule":"\u521B\u5EFA\u6216\u7BA1\u7406\u5B9A\u65F6\u4EFB\u52A1\u2014\u2014/schedule [\u53C2\u6570]","tui.slash.mode":"\u67E5\u770B\u5F53\u524D\u8FD0\u884C\u6A21\u5F0F","tui.slash.model":"\u67E5\u770B\u6216\u5207\u6362\u6A21\u578B\u2014\u2014/model [\u540D\u79F0]","tui.slash.backend":"\u67E5\u770B\u6216\u5207\u6362 agent \u540E\u7AEF\u2014\u2014/backend [\u540D\u79F0]","tui.slash.skills":"\u5217\u51FA\u53EF\u7528\u7684 skill","tui.slash.devices":"\u5217\u51FA\u5DF2\u8FDE\u63A5\u7684\u5BA2\u6237\u7AEF\u8BBE\u5907","tui.slash.nvtop":"GPU \u4F7F\u7528\u5FEB\u7167\uFF08nvtop\uFF09\u2014\u2014/nvtop [\u8BBE\u5907]","tui.slash.nvidia-smi":"GPU \u72B6\u6001\uFF08nvidia-smi\uFF09\u2014\u2014/nvidia-smi [\u8BBE\u5907]","tui.slash.tail":"\u67E5\u770B daemon \u65E5\u5FD7\u672B\u5C3E\u2014\u2014/tail [\u884C\u6570]","tui.slash.lang":"\u67E5\u770B\u6216\u5207\u6362\u754C\u9762\u8BED\u8A00\u2014\u2014/lang [zh|en]","tui.slash.mouse":"\u5207\u6362\u9F20\u6807\u6355\u83B7\u2014\u2014\u5173\u95ED\u540E\u53EF\u7528\u9F20\u6807\u9009\u62E9\u6587\u672C","tui.slash.help":"\u663E\u793A\u53EF\u7528\u7684\u659C\u6760\u547D\u4EE4","tui.slashMenu.noMatch":"\u6CA1\u6709\u5339\u914D\u7684\u547D\u4EE4","tui.slashMenu.hint":"\u2191/\u2193 \u9009\u62E9 \xB7 Tab \u8865\u5168 \xB7 Enter \u6267\u884C \xB7 Esc \u5173\u95ED","tui.common.error":"\u9519\u8BEF\uFF1A${message}","tui.common.unknownError":"\u672A\u77E5\u9519\u8BEF","tui.common.moreAbove":"\u2191 \u4E0A\u65B9\u8FD8\u6709 ${n} \u9879","tui.common.moreBelow":"\u2193 \u4E0B\u65B9\u8FD8\u6709 ${n} \u9879","tui.app.copied":"\u5DF2\u590D\u5236 ${n} \u4E2A\u5B57\u7B26\u5230\u526A\u8D34\u677F\uFF08OSC 52\uFF09","tui.app.pasteHint":"\u4F7F\u7528 Ctrl+Shift+V \u7C98\u8D34","tui.app.connectionFailed":"\u8FDE\u63A5\u5931\u8D25\u2014\u2014\u6309 R \u91CD\u8BD5\uFF0CCtrl+C \u9000\u51FA","tui.app.fatal":"\u81F4\u547D\u9519\u8BEF\uFF1A","tui.input.placeholder":"\u8F93\u5165\u6D88\u606F\u2026","tui.input.awaiting":"\u7B49\u5F85\u56DE\u590D\u4E2D\u2014\u2014agent \u56DE\u590D\u524D Enter \u4E0D\u4F1A\u53D1\u9001\uFF08Ctrl+C \u53D6\u6D88\uFF09","tui.status.shortcuts":"Ctrl+D \u4EEA\u8868\u76D8 \xB7 Ctrl+N \u901A\u77E5 \xB7 Ctrl+P \u9879\u76EE \xB7 Ctrl+L \u6E05\u5C4F \xB7 \u2191/\u2193 \u5386\u53F2 \xB7 PgUp/PgDn \u6EDA\u52A8 \xB7 Ctrl+T \u6587\u672C\u9009\u62E9\u6A21\u5F0F\uFF08\u505C\u7528\u6EDA\u8F6E\uFF09\xB7 Ctrl+C \u53D6\u6D88\uFF08\u6309\u4E24\u6B21\u9000\u51FA\uFF09\xB7 / \u547D\u4EE4","tui.status.returnHint":"\u6309 Ctrl+D \u8FD4\u56DE\u8F93\u5165\u6846","tui.status.shortcutsHint":"? \u67E5\u770B\u5FEB\u6377\u952E","tui.status.selectMode":"\u{1F5B1} \u9009\u62E9\u6A21\u5F0F \xB7 ","tui.status.reconnecting":"\u27F3 \u6B63\u5728\u91CD\u8FDE\u2026","tui.status.connecting":"\u27F3 \u6B63\u5728\u8FDE\u63A5\u2026","tui.status.disconnected":"\u25CB \u5DF2\u65AD\u5F00\u2014\u2014\u6309 R \u91CD\u8BD5\uFF0CCtrl+C \u9000\u51FA","tui.turnStatus.turns":"${n} \u8F6E","tui.mutate.timeout":"10 \u79D2\u5185\u672A\u6536\u5230 ui.mutateResult","tui.dash.tab.schedules":"\u8C03\u5EA6","tui.dash.tab.executions":"\u6267\u884C","tui.dash.tab.cost":"\u6210\u672C","tui.dash.unknownTab":"\u672A\u77E5\u6807\u7B7E\u9875","tui.dash.schedules.loading":"\u6B63\u5728\u52A0\u8F7D\u5B9A\u65F6\u4EFB\u52A1\u2026","tui.dash.schedules.empty":"\u6682\u65E0\u5B9A\u65F6\u4EFB\u52A1","tui.dash.schedules.pausedBy":"\u5DF2\u7531 ${who} \u6682\u505C","tui.dash.schedules.next":"\u4E0B\u6B21\uFF1A${when}","tui.dash.schedules.never":"\u65E0","tui.dash.schedules.keys":"[p] \u6682\u505C [r] \u6062\u590D [x] \u5220\u9664","tui.dash.schedules.removeTitle":"\u5220\u9664\u5B9A\u65F6\u4EFB\u52A1\uFF1F","tui.dash.executions.loading":"\u6B63\u5728\u52A0\u8F7D\u6267\u884C\u8BB0\u5F55\u2026","tui.dash.executions.empty":"\u6682\u65E0\u6267\u884C\u8BB0\u5F55","tui.dash.executions.notFound":"\u672A\u627E\u5230","tui.dash.executions.cancelTitle":"\u53D6\u6D88\u6267\u884C\uFF1F","tui.dash.cost.loading":"\u6B63\u5728\u52A0\u8F7D\u6210\u672C\u6C47\u603B\u2026","tui.dash.cost.empty":"\u6682\u65E0\u6210\u672C\u6570\u636E","tui.dash.cost.unavailable":"\u6682\u65E0\u6210\u672C\u6C47\u603B","tui.dash.cost.title":"\u6210\u672C\u6C47\u603B","tui.dash.cost.total":"\u603B\u8BA1\uFF1A","tui.dash.cost.month":"\u672C\u6708\uFF1A","tui.dash.cost.week":"\u672C\u5468\uFF1A","tui.dash.cost.today":"\u4ECA\u65E5\uFF1A","tui.dash.cost.byType":"\u6309\u6210\u672C\u7C7B\u578B\uFF08\u7D2F\u8BA1\uFF09\uFF1A","tui.confirm.hint":"y/Enter \u786E\u8BA4 \xB7 n/Esc \u53D6\u6D88","tui.confirm.hintReason":"Enter \u786E\u8BA4 \xB7 Esc \u53D6\u6D88","tui.projects.title":"\u5207\u6362\u9879\u76EE","tui.projects.loading":"\u6B63\u5728\u52A0\u8F7D\u9879\u76EE\u2026","tui.projects.empty":"\u672A\u627E\u5230\u9879\u76EE","tui.projects.loadFailed":"\u52A0\u8F7D\u9879\u76EE\u5931\u8D25","tui.projects.hint":"\u2191/\u2193 \u9009\u62E9 \xB7 Enter \u5207\u6362 \xB7 Ctrl+P/Esc \u53D6\u6D88","tui.sessions.empty":"\u6CA1\u6709\u53EF\u6062\u590D\u7684\u4F1A\u8BDD","tui.sessions.title":"\u9009\u62E9\u8981\u6062\u590D\u7684\u4F1A\u8BDD\uFF08${n}\uFF09\uFF1A","tui.sessions.hint":"\u2191/\u2193 \u9009\u62E9 \xB7 Enter \u6062\u590D \xB7 Esc \u65B0\u5EFA\u4F1A\u8BDD","tui.notif.title":"\u901A\u77E5","tui.notif.empty":"\u6682\u65E0\u901A\u77E5","tui.notif.detailHint":"\u2014 \u6309 Enter \u6807\u8BB0\u5DF2\u8BFB\uFF0CEsc \u8FD4\u56DE","tui.notif.hint":"\u2191/\u2193 \u9009\u62E9 \xB7 Enter \u8BE6\u60C5 \xB7 Ctrl+N/Esc \u5173\u95ED","tui.modal.submit":"\u63D0\u4EA4","tui.modal.typeHere":"\u5728\u6B64\u8F93\u5165\u2026","tui.modal.hintSubmit":"Enter \u63D0\u4EA4 \xB7 \u2191/\u2193 \u9009\u62E9 \xB7 Esc \u53D6\u6D88","tui.modal.hintSelect":"\u2191/\u2193 \u9009\u62E9 \xB7 Enter \u9009\u5B9A \xB7 Esc \u53D6\u6D88","tui.gateway.reportTitle":"\u62A5\u544A\uFF1A${project}","tui.gateway.fileTitle":"\u6587\u4EF6\u5DF2\u5C31\u7EEA","tui.gateway.filePath":"\u7EDD\u5BF9\u8DEF\u5F84\uFF1A${path}","tui.transcript.toolFallback":"\u5DE5\u5177"};var A={"ux.auth.apiKeyPrompt":"Enter your Anthropic API key.","ux.auth.ccPasteCode":"Paste code here if prompted.","ux.auth.ccCancelled":"Claude subscription login was cancelled.","ux.auth.ccTimeout":"Claude subscription login timed out.","ux.auth.ccFailed":"Claude subscription login failed.","ux.auth.ccCompleting":"Completing Claude subscription login.","ux.auth.ccCleanupFailed":"Claude subscription login completed but legacy authentication cleanup failed.","ux.auth.piRuntimeUnavailable":"The model provider runtime is unavailable.","ux.auth.piProviderNotFound":"Provider not found.","ux.auth.piApiKeyUnsupported":"${provider} does not support API key login.","ux.auth.piOAuthUnsupported":"${provider} does not support OAuth login.","ux.auth.piApiKeyFailed":"${provider} API key login failed.","ux.auth.piOAuthFailed":"${provider} OAuth login failed.","ux.auth.notManageable":"Credential is not manageable by Cortex.","ux.auth.logoutFailed":"Account logout failed.","ux.auth.flowNotFound":"Login flow not found or expired.","ux.auth.flowNotActive":"Login flow is not active.","ux.auth.flowNotWaiting":"Login flow is not waiting for a prompt response.","ux.auth.loginFailed":"Login failed.","ux.auth.failureDetail":"${message}: ${detail}","ux.auth.apiKeySaveFailed":"Could not save the Anthropic API key.","ux.auth.flowFailed":"Authentication flow failed.","ux.tpl.bodyNotObject":"Body must be a JSON object","ux.tpl.unknownField":'Unrecognised field "${key}" \u2014 it will be ignored',"ux.tpl.promptFileMissing":'prompts/${subdir}/${filename} does not exist \u2014 the literal string "${value}" will be used as the prompt',"ux.tpl.nameMismatch":'name "${name}" must equal the filename "${file}" \u2014 the loader skips the file otherwise',"ux.tpl.pluginDirMissing":'plugin directory "${dir}" does not exist',"ux.tpl.invalidName":"Name '${name}' must start with a letter or digit and contain only letters, digits, '-' and '_'","ux.tpl.unknownEntity":"Unknown environment: '${name}'","ux.tpl.alreadyExists":"Environment '${name}' already exists","ux.tpl.changedOnDisk":"Environment '${name}' changed on disk since it was loaded \u2014 reload before saving to avoid discarding that edit","ux.tpl.notValid":"Environment '${name}' is not valid: ${issues}","ux.env.mainUndeletable":"The '${name}' environment is the default and cannot be deleted","ux.env.promptFileInUse":"prompts/systemPrompts/${file} is already used by: ${envs}","ux.env.promptFileOutside":'Prompt file "${file}" is outside prompts/systemPrompts/',"ux.usage.costUnreadable":"gateway ${period} cost was unreadable","ux.usage.costUnreadableCarried":"gateway ${period} cost was unreadable; showing the last known figure","ux.usage.truncated":"gateway ${period} usage was truncated at ${limit} records; spend may be understated","ux.usage.dropped":"gateway ${period} usage skipped ${count} unreadable records; spend may be understated","ux.usage.anthropicDisabled":"Anthropic account usage collection disabled by settings","ux.usage.anthropicQuotaFailed":"Anthropic gateway quota collection failed: ${error}","ux.usage.anthropicNoQuota":"gateway has no Anthropic quota observation","ux.usage.codexFailed":"OpenAI Codex usage collection failed: ${error}","ux.usage.codexAccountFailed":"OpenAI Codex account read failed, showing the last observed usage: ${error}","ux.usage.claudeAccountFailed":"Claude account read failed, using the gateway quota: ${error}","ux.usage.gatewayFailed":"gateway usage collection failed: ${error}"},I={"ux.auth.apiKeyPrompt":"\u8F93\u5165\u4F60\u7684 Anthropic API key\u3002","ux.auth.ccPasteCode":"\u5982\u6709\u63D0\u793A\uFF0C\u8BF7\u5728\u6B64\u7C98\u8D34\u6388\u6743\u7801\u3002","ux.auth.ccCancelled":"Claude \u8BA2\u9605\u767B\u5F55\u5DF2\u53D6\u6D88\u3002","ux.auth.ccTimeout":"Claude \u8BA2\u9605\u767B\u5F55\u8D85\u65F6\u3002","ux.auth.ccFailed":"Claude \u8BA2\u9605\u767B\u5F55\u5931\u8D25\u3002","ux.auth.ccCompleting":"\u6B63\u5728\u5B8C\u6210 Claude \u8BA2\u9605\u767B\u5F55\u3002","ux.auth.ccCleanupFailed":"Claude \u8BA2\u9605\u767B\u5F55\u5DF2\u5B8C\u6210\uFF0C\u4F46\u6E05\u7406\u65E7\u8BA4\u8BC1\u4FE1\u606F\u5931\u8D25\u3002","ux.auth.piRuntimeUnavailable":"\u6A21\u578B Provider \u8FD0\u884C\u65F6\u4E0D\u53EF\u7528\u3002","ux.auth.piProviderNotFound":"\u627E\u4E0D\u5230\u8BE5 Provider\u3002","ux.auth.piApiKeyUnsupported":"${provider} \u4E0D\u652F\u6301 API key \u767B\u5F55\u3002","ux.auth.piOAuthUnsupported":"${provider} \u4E0D\u652F\u6301 OAuth \u767B\u5F55\u3002","ux.auth.piApiKeyFailed":"${provider} API key \u767B\u5F55\u5931\u8D25\u3002","ux.auth.piOAuthFailed":"${provider} OAuth \u767B\u5F55\u5931\u8D25\u3002","ux.auth.notManageable":"\u8BE5\u51ED\u636E\u4E0D\u7531 Cortex \u7BA1\u7406\u3002","ux.auth.logoutFailed":"\u8D26\u53F7\u767B\u51FA\u5931\u8D25\u3002","ux.auth.flowNotFound":"\u767B\u5F55\u6D41\u7A0B\u4E0D\u5B58\u5728\u6216\u5DF2\u8FC7\u671F\u3002","ux.auth.flowNotActive":"\u767B\u5F55\u6D41\u7A0B\u5DF2\u7ED3\u675F\u3002","ux.auth.flowNotWaiting":"\u767B\u5F55\u6D41\u7A0B\u5F53\u524D\u4E0D\u9700\u8981\u8F93\u5165\u3002","ux.auth.loginFailed":"\u767B\u5F55\u5931\u8D25\u3002","ux.auth.failureDetail":"${message}\uFF1A${detail}","ux.auth.apiKeySaveFailed":"\u65E0\u6CD5\u4FDD\u5B58 Anthropic API key\u3002","ux.auth.flowFailed":"\u8BA4\u8BC1\u6D41\u7A0B\u5931\u8D25\u3002","ux.tpl.bodyNotObject":"\u5185\u5BB9\u5FC5\u987B\u662F JSON \u5BF9\u8C61","ux.tpl.unknownField":'\u65E0\u6CD5\u8BC6\u522B\u7684\u5B57\u6BB5 "${key}"\uFF0C\u5C06\u88AB\u5FFD\u7565',"ux.tpl.promptFileMissing":'prompts/${subdir}/${filename} \u4E0D\u5B58\u5728\uFF0C\u5C06\u76F4\u63A5\u628A\u5B57\u7B26\u4E32 "${value}" \u7528\u4F5C prompt',"ux.tpl.nameMismatch":'name "${name}" \u5FC5\u987B\u4E0E\u6587\u4EF6\u540D "${file}" \u4E00\u81F4\uFF0C\u5426\u5219\u52A0\u8F7D\u5668\u4F1A\u8DF3\u8FC7\u8BE5\u6587\u4EF6',"ux.tpl.pluginDirMissing":'\u63D2\u4EF6\u76EE\u5F55 "${dir}" \u4E0D\u5B58\u5728',"ux.tpl.invalidName":"\u540D\u79F0 '${name}' \u5FC5\u987B\u4EE5\u5B57\u6BCD\u6216\u6570\u5B57\u5F00\u5934\uFF0C\u4E14\u53EA\u80FD\u5305\u542B\u5B57\u6BCD\u3001\u6570\u5B57\u3001'-' \u548C '_'","ux.tpl.unknownEntity":"\u672A\u77E5\u6267\u884C\u73AF\u5883\uFF1A'${name}'","ux.tpl.alreadyExists":"\u6267\u884C\u73AF\u5883 '${name}' \u5DF2\u5B58\u5728","ux.tpl.changedOnDisk":"\u6267\u884C\u73AF\u5883 '${name}' \u81EA\u52A0\u8F7D\u540E\u5DF2\u5728\u78C1\u76D8\u4E0A\u88AB\u4FEE\u6539\u3002\u8BF7\u5148\u91CD\u65B0\u52A0\u8F7D\u518D\u4FDD\u5B58\uFF0C\u4EE5\u514D\u8986\u76D6\u90A3\u6B21\u4FEE\u6539","ux.tpl.notValid":"\u6267\u884C\u73AF\u5883 '${name}' \u65E0\u6548\uFF1A${issues}","ux.env.mainUndeletable":"'${name}' \u662F\u9ED8\u8BA4\u73AF\u5883\uFF0C\u4E0D\u80FD\u5220\u9664","ux.env.promptFileInUse":"prompts/systemPrompts/${file} \u5DF2\u88AB\u4EE5\u4E0B\u73AF\u5883\u4F7F\u7528\uFF1A${envs}","ux.env.promptFileOutside":'\u63D0\u793A\u8BCD\u6587\u4EF6 "${file}" \u4E0D\u5728 prompts/systemPrompts/ \u76EE\u5F55\u5185',"ux.usage.costUnreadable":"\u65E0\u6CD5\u8BFB\u53D6\u7F51\u5173 ${period} \u7684\u8D39\u7528","ux.usage.costUnreadableCarried":"\u65E0\u6CD5\u8BFB\u53D6\u7F51\u5173 ${period} \u7684\u8D39\u7528\uFF0C\u663E\u793A\u4E0A\u6B21\u5DF2\u77E5\u7684\u6570\u503C","ux.usage.truncated":"\u7F51\u5173 ${period} \u7528\u91CF\u5728 ${limit} \u6761\u8BB0\u5F55\u5904\u88AB\u622A\u65AD\uFF0C\u82B1\u8D39\u53EF\u80FD\u504F\u4F4E","ux.usage.dropped":"\u7F51\u5173 ${period} \u7528\u91CF\u8DF3\u8FC7\u4E86 ${count} \u6761\u65E0\u6CD5\u8BFB\u53D6\u7684\u8BB0\u5F55\uFF0C\u82B1\u8D39\u53EF\u80FD\u504F\u4F4E","ux.usage.anthropicDisabled":"\u5DF2\u5728\u8BBE\u7F6E\u4E2D\u5173\u95ED Anthropic \u8D26\u53F7\u7528\u91CF\u91C7\u96C6","ux.usage.anthropicQuotaFailed":"Anthropic \u7F51\u5173\u989D\u5EA6\u91C7\u96C6\u5931\u8D25\uFF1A${error}","ux.usage.anthropicNoQuota":"\u7F51\u5173\u6CA1\u6709 Anthropic \u989D\u5EA6\u89C2\u6D4B\u6570\u636E","ux.usage.codexFailed":"OpenAI Codex \u7528\u91CF\u91C7\u96C6\u5931\u8D25\uFF1A${error}","ux.usage.codexAccountFailed":"OpenAI Codex \u8D26\u53F7\u8BFB\u53D6\u5931\u8D25\uFF0C\u663E\u793A\u4E0A\u6B21\u89C2\u6D4B\u7684\u7528\u91CF\uFF1A${error}","ux.usage.claudeAccountFailed":"Claude \u8D26\u53F7\u8BFB\u53D6\u5931\u8D25\uFF0C\u6539\u7528\u7F51\u5173\u989D\u5EA6\uFF1A${error}","ux.usage.gatewayFailed":"\u7F51\u5173\u7528\u91CF\u91C7\u96C6\u5931\u8D25\uFF1A${error}"};var t={...o,...d,...l,...u,...p,...g,...v,...f,...k,...x,...P,...A};var R={...s,...r,...c,...m,...h,...$,...y,...b,...w,...C,...S,...I};var F={en:t,zh:R};function L(e){return e==="zh"?"zh":"en"}function ke(e=process.env){return(e.LC_ALL||e.LC_MESSAGES||e.LANG||e.LANGUAGE||"").toLowerCase().startsWith("zh")?"zh":"en"}var a=L(typeof process<"u"?process.env.CORTEX_LANG:void 0);function we(e){a=L(e)}function xe(){return a}function Ce(e,i){let n=(F[a]??t)[e]??t[e]??e;if(i)for(let[j,T]of Object.entries(i))n=n.split("${"+j+"}").join(String(T));return n}export{L as a,ke as b,we as c,xe as d,Ce as e};
@@ -1,10 +0,0 @@
1
- import { createRequire as __cortexCreateRequire } from 'node:module';
2
- const require = __cortexCreateRequire(import.meta.url);
3
- const __cortexPackageRoot = new URL("../../", import.meta.url);
4
- import{e as nt,k as rt}from"./chunk-3THJYAEF.js";import{c as et}from"./chunk-D3NXKK2L.js";import{d as ot}from"./chunk-OE4KH3NJ.js";import{f as I,h as Q,l as N,m as Z,n as tt}from"./chunk-J5DVLUKY.js";import w from"node:fs";import g from"node:path";var it="cortex-production-benchmark-evidence-context/1",Rt=/^[a-f0-9]{64}$/;function u(t){return new Error(`Production benchmark evidence context invalid: ${t}`)}function H(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function st(t,e){let o=new Set(e);return e.every(n=>Object.hasOwn(t,n))&&Object.keys(t).every(n=>o.has(n))}function E(t,e){if(typeof t!="string"||t.length===0)throw u(e);return t}function v(t){if(t===null)return null;if(typeof t=="string"||typeof t=="boolean"||typeof t=="number"&&Number.isFinite(t))return t;if(Array.isArray(t))return Object.freeze(t.map(v));if(!H(t))throw u("model_execution.model_alias_policy");let e=Object.entries(t).map(([o,n])=>[o,v(n)]);return Object.freeze(Object.fromEntries(e))}function At(t){let e=["model_alias_policy","cli_name","cli_version","max_output_tokens"];if(!H(t)||!st(t,e))throw u("model_execution");if(t.cli_name!=="claude"&&t.cli_name!=="pi")throw u("model_execution.cli_name");let o=t.max_output_tokens;if(o!==null&&(!Number.isInteger(o)||Number(o)<=0))throw u("model_execution.max_output_tokens");return Object.freeze({model_alias_policy:v(t.model_alias_policy),cli_name:t.cli_name,cli_version:E(t.cli_version,"model_execution.cli_version"),max_output_tokens:o})}function at(t){let e=["schema_version","trial_id","root_run_id","bundle_manifest_hash","model_execution"];if(!H(t)||!st(t,e))throw u("evidence context envelope");if(t.schema_version!==it)throw u("schema_version");let o=E(t.bundle_manifest_hash,"bundle_manifest_hash");if(!Rt.test(o))throw u("bundle_manifest_hash");return Object.freeze({schema_version:it,trial_id:E(t.trial_id,"trial_id"),root_run_id:E(t.root_run_id,"root_run_id"),bundle_manifest_hash:o,model_execution:At(t.model_execution)})}import{createHash as It}from"node:crypto";function Nt(t){return JSON.stringify(t)}function vt(t){return`[${Array.from({length:t.length},(o,n)=>C(t[n])??"null").join(",")}]`}function Ht(t,e){let o=C(t[e]);return o===void 0?null:`${JSON.stringify(e)}:${o}`}function Ct(t){return t!==null}function Dt(t){return`{${Object.keys(t).sort().map(o=>Ht(t,o)).filter(Ct).join(",")}}`}function C(t){return t===null||typeof t!="object"?Nt(t):Array.isArray(t)?vt(t):Dt(t)}function d(t){let e=C(t);if(e===void 0)throw new TypeError("Value is not JSON-serializable");return It("sha256").update(e,"utf8").digest("hex")}function lt(t){return d({backend:t.backend,requested_model:t.requestedModel,model_alias_policy:t.modelAliasPolicy,provider_protocol:t.providerProtocol,configured_route_base_host:t.configuredRouteBaseHost,claude_cli_version:t.claudeCliVersion,cli_name:t.cliName,cli_version:t.cliVersion,reasoning_effort:t.reasoningEffort,max_output_tokens:t.maxOutputTokens??null})}function ct(t,e){return t<e?-1:t>e?1:0}function k(t){return d({system_prompt_sha256:t.systemPromptSha256,directive_sha256:t.directiveSha256,tools:[...t.tools].sort(),plugin_dirs:[...t.pluginDirs].sort((e,o)=>ct(e.path,o.path)),skills:[...t.skills].sort((e,o)=>ct(e.name,o.name)),mcp_composition:t.mcpComposition,mcp_tool_allowlist:t.mcpToolAllowlist?[...new Set(t.mcpToolAllowlist)].sort():void 0,hook_policy:t.hookPolicy})}import{createHash as Jt}from"node:crypto";import _ from"node:fs";import p from"node:path";import*as f from"path";var ze=3900*1e3,Ue=3600*1e3,Be=f.join(tt,"projects"),Ge=f.join(I,"logs","sessions"),Ve=f.join(N,"mcp-config.json"),We=f.join(N,"mcp-config-empty.json"),Ke=f.join(I,".claude","settings.json"),Ye=["plan"],S="AskUserQuestion,Bash,Edit,EnterPlanMode,ExitPlanMode,Glob,Grep,Read,Skill,TaskStop,TodoWrite,WebFetch,WebSearch,Write",P="mcp__cortex-core__",Xe=[`${P}cortex_plan_enter`,`${P}cortex_plan_exit`,`${P}cortex_ask_user`],Qe=new Set(["AskUserQuestion","EnterPlanMode","ExitPlanMode"]),Ze=new Set(["Agent"]);function to(){return ot.map(t=>P+t)}var ut=class extends Error{cancelled;constructor(){super("Cancelled by user"),this.cancelled=!0}};var Ft={"agent:pre-tool":"PreToolUse","agent:post-tool":"PostToolUse","agent:session-start":"SessionStart"};function Mt(t){return t.startsWith("cc:")?t.slice(3):Ft[t]??null}function dt(t){let o={type:"command",command:t.script!==void 0?`node ${et(t.script).join(" ")}`:t.command};return t.timeout!==void 0&&(o.timeout=t.timeout),o}function $t(t,e,o){let n=t[e]??[];t[e]===void 0&&(t[e]=n);let r=typeof o.matcher=="string"?o.matcher:void 0,i=n.at(-1);if(i&&i.matcher===r){i.hooks.push(dt(o.run));return}let l=[dt(o.run)];n.push(r===void 0?{hooks:l}:{matcher:r,hooks:l})}function Lt(t){let e=rt(nt(),{backend:"claude",availableTools:new Set(t)}),o=Object.create(null);for(let n of e){let r=Mt(n.event);r!==null&&$t(o,r,n)}return o}function ht(t){let e=(t||S).split(",").map(o=>o.trim());return Lt(e)}function D(t){return Jt("sha256").update(t).digest("hex")}function mt(t,e=t){let o=[];for(let n of _.readdirSync(e,{withFileTypes:!0})){let r=p.join(e,n.name);n.isDirectory()&&o.push(...mt(t,r)),n.isFile()&&o.push({path:p.relative(t,r),type:"file",sha256:D(_.readFileSync(r))}),n.isSymbolicLink()&&o.push({path:p.relative(t,r),type:"symlink",target:_.readlinkSync(r)})}return o}function F(t,e){return t<e?-1:t>e?1:0}function M(t){if(!_.statSync(t).isDirectory())throw new Error(`Plugin path is not a directory: ${t}`);return d(mt(t).sort((e,o)=>F(e.path,o.path)))}function qt(t,e){let o=t.map(n=>({path:n,content_sha256:M(n)}));return e&&o.push({path:"@plugin-capability",content_sha256:e}),o.sort((n,r)=>F(n.path,r.path))}function zt(t){let e=p.join(t,"skills");return _.existsSync(e)?_.readdirSync(e,{withFileTypes:!0}).filter(o=>o.isDirectory()).map(o=>({name:o.name,content_sha256:M(p.join(e,o.name))})):[]}function Ut(t){return t.map(e=>({name:p.basename(e),content_sha256:M(e)}))}function Bt(t){let e=new Set;for(let o of t){if(e.has(o.name))throw new Error(`Duplicate plugin skill name: ${o.name}`);e.add(o.name)}return t.sort((o,n)=>F(o.name,n.name))}function Gt(t,e){return Bt([...t.flatMap(zt),...Ut(e)])}function ft(t){return t.tools.rawClaude!==void 0?(t.tools.rawClaude||S).split(","):t.tools.canonical?.length?t.tools.canonical:S.split(",")}function Vt(t){if(t.flags.disableHooks===!0)return{};let e=ft(t).join(",");return ht(e)}function Wt(t){return t.prompt.append===void 0?D(t.prompt.system??""):d({system_prompt:t.prompt.system??"",append_system_prompt:t.prompt.append})}function O(t,e=""){let o=t.plugins.dirs??[],n={systemPromptSha256:Wt(t),directiveSha256:D(e),tools:ft(t),pluginDirs:qt(o,t.plugins.fingerprint),skills:Gt(o,t.plugins.skillDirs??[]),mcpComposition:t.mcp.composition??"direct",hookPolicy:Vt(t)};return t.mcp.allowlist!==void 0&&(n.mcpToolAllowlist=t.mcp.allowlist),n}import{createHash as G}from"node:crypto";import h from"node:fs";import b from"node:path";import{createHash as Kt}from"node:crypto";import s from"node:fs";var pt="cortex-bench-journal/2",Yt=64*1024,J="direct",j=class extends Error{reason="trajectory_write_failed";constructor(e="Trajectory write failed",o){super(e,o),this.name="TrajectoryWriteFailedError"}},$=class extends Error{operation;constructor(e,o){super(`${e} failed`,{cause:o}),this.operation=e,this.name="FilesystemOperationError"}};function a(t,e){return new $(t,e)}function m(t,e){let o=e.length===1?e[0]:new AggregateError(e);return new j(`${t}: trajectory write failed`,{cause:o})}function yt(t,e){throw e instanceof j?e:m(t,[e])}function wt(t){try{return Buffer.from(`${JSON.stringify(t)}
5
- `,"utf8")}catch(e){throw a("serialize",e)}}function Xt(t,e,o){try{return s.writeSync(t,e,o,e.length-o)}catch(n){throw a("write",n)}}function St(t,e){let o=0;for(;o<e.length;){let n=Xt(t,e,o);if(n<=0)throw a("write",new Error("zero-byte write"));o+=n}}function _t(t){try{return s.fsyncSync(t),null}catch(e){return a("fsync",e)}}function q(t){try{return s.closeSync(t),null}catch(e){return a("close",e)}}function T(t,e){e&&t.push(e)}function xt(t){try{return t().toISOString()}catch(e){throw a("timestamp",e)}}function Qt(t,e){return{schema_version:pt,type:"run_header",root_run_id:t.rootRunId,session_id:t.sessionId,agent_slot:t.agentSlot,seq:0,ts:e,resolved_cwd:t.resolvedCwd,canonical_instruction_sha256:t.canonicalInstructionSha256,model_visible_prompt_sha256:t.modelVisiblePromptSha256,system_prompt_sha256:t.systemPromptSha256,tool_manifest_sha256:t.toolManifestSha256,plugin_manifest_sha256:t.pluginManifestSha256,model_execution_identity_hash:t.modelExecutionIdentityHash,role_tool_surface_hash:t.roleToolSurfaceHash,bundle_manifest_hash:t.bundleManifestHash}}function Zt(t,e,o,n){return{schema_version:pt,type:"event",root_run_id:e.rootRunId,session_id:t.sessionId,agent_slot:t.agentSlot,seq:o,ts:n,backend:t.backend,provider:t.provider,requested_model:t.requestedModel,reported_model:t.reportedModel,model_execution_identity_hash:e.modelExecutionIdentityHash,role_tool_surface_hash:e.roleToolSurfaceHash,bundle_manifest_hash:e.bundleManifestHash,event:t.event}}var L=class{path;identity;now;fd;nextSeq=1;count=0;constructor(e,o,n,r){this.path=e,this.identity=n,this.now=r,this.fd=o}get eventCount(){return this.count}writeEvent(e){let o;try{let n=this.requireOpenFd();o=Zt(e,this.identity,this.nextSeq,xt(this.now)),St(n,wt(o))}catch(n){yt("event write",n)}return this.nextSeq+=1,this.count+=1,o}sha256(){let e=this.fd===null?null:_t(this.fd);if(e)throw m("journal hash flush",[e]);return re(this.path)}closeSync(){if(this.fd===null)return;let e=this.fd;this.fd=null;let o=[];if(T(o,_t(e)),T(o,q(e)),o.length>0)throw m("journal close",o)}requireOpenFd(){if(this.fd!==null)return this.fd;let e=a("write",new Error("journal is closed"));throw m("event write",[e])}};function te(t){return{rootRunId:t.rootRunId,modelExecutionIdentityHash:t.modelExecutionIdentityHash,roleToolSurfaceHash:t.roleToolSurfaceHash,bundleManifestHash:t.bundleManifestHash}}function ee(t){try{let e=s.constants.O_WRONLY|s.constants.O_CREAT|s.constants.O_EXCL|s.constants.O_APPEND;return s.openSync(t,e,384)}catch(e){throw a("open",e)}}function oe(t,e){let o=[e];throw T(o,q(t)),m("journal open",o)}function bt(t){let e;try{e=ee(t.path)}catch(r){yt("journal open",r)}let o=t.now??(()=>new Date),n=Qt(t.header,xt(o));try{St(e,wt(n))}catch(r){oe(e,r)}return new L(t.path,e,te(t.header),o)}function ne(t){let e=Kt("sha256"),o=Buffer.allocUnsafe(Yt);for(;;){let n=s.readSync(t,o,0,o.length,null);if(n===0)return e.digest("hex");e.update(o.subarray(0,n))}}function re(t){let e;try{e=s.openSync(t,"r")}catch(r){throw m("journal hash",[a("open",r)])}let o=null,n=[];try{o=ne(e)}catch(r){n.push(a("read",r))}if(T(n,q(e)),n.length>0)throw m("journal hash",n);return o}var Pt="cortex-production-attempt-journal/1",ie=/^[a-f0-9]{64}$/,gt=["schema_version","attempt_id","execution_id","journal_path","journal_sha256","event_count","closed_at"],y=null,x=null;function se(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function ae(t){let e=new Set(gt);return gt.every(o=>Object.hasOwn(t,o))&&Object.keys(t).every(o=>e.has(o))}function R(t){return typeof t=="string"&&t.length>0}function ce(t){return ae(t)&&t.schema_version===Pt&&R(t.attempt_id)&&R(t.execution_id)&&R(t.journal_path)&&b.isAbsolute(t.journal_path)&&typeof t.journal_sha256=="string"&&ie.test(t.journal_sha256)&&Number.isInteger(t.event_count)&&Number(t.event_count)>=0&&R(t.closed_at)&&!Number.isNaN(Date.parse(t.closed_at))}function le(t,e){let o;try{o=JSON.parse(t)}catch{throw new Error(`Production attempt journal store malformed at line ${e}`)}if(!se(o)||!ce(o))throw new Error(`Production attempt journal store invalid at line ${e}`);return o}function ue(t){let e=h.readFileSync(t);if(e.length===0||e.at(-1)!==10)throw new Error(`Production attempt journal is empty or incomplete: ${t}`);let n=e.toString("utf8").trimEnd().split(`
6
- `).map((r,i)=>{try{return JSON.parse(r)}catch{throw new Error(`Production attempt journal malformed at ${t}:${i+1}`)}});if(n[0]?.type!=="run_header")throw new Error(`Production attempt journal header missing: ${t}`);return{sha256:G("sha256").update(e).digest("hex"),eventCount:n.slice(1).filter(r=>r.type==="event").length}}function Et(t){let e=ue(t.journal_path);if(e.sha256!==t.journal_sha256)throw new Error(`Production attempt journal digest mismatch: ${t.execution_id}`);if(e.eventCount!==t.event_count)throw new Error(`Production attempt journal event count mismatch: ${t.execution_id}`)}function z(t,e){return JSON.stringify(t)===JSON.stringify(e)}var U=class{filePath;byExecution=new Map;byAttempt=new Map;constructor(e){this.filePath=e,this.load()}load(){let e;try{e=h.readFileSync(this.filePath,"utf8")}catch(o){if(o.code==="ENOENT")return;throw o}e.split(`
7
- `).filter(Boolean).forEach((o,n)=>{let r=le(o,n+1);Et(r),this.remember(r)})}remember(e){let o=this.byExecution.get(e.execution_id),n=this.byAttempt.get(e.attempt_id);if(o&&!z(o,e)||n&&!z(n,e))throw new Error(`Production attempt journal identity collision: ${e.execution_id}`);if(o)return o;let r=Object.freeze({...e});return this.byExecution.set(e.execution_id,r),this.byAttempt.set(e.attempt_id,r),r}get(e){return this.byExecution.get(e)??null}append(e){let o=this.get(e.execution_id);if(o){if(!z(o,e))throw new Error(`Production attempt journal changed for execution ${e.execution_id}`);return o}Et(e),h.mkdirSync(b.dirname(this.filePath),{recursive:!0,mode:448});let n=h.openSync(this.filePath,"a",384);try{h.writeFileSync(n,`${JSON.stringify(e)}
8
- `,"utf8"),h.fsyncSync(n)}finally{h.closeSync(n)}return this.remember(e)}};function de(t){return`${G("sha256").update(t.attempt_id).digest("hex")}.ndjson`}function kt(t){return G("sha256").update(t,"utf8").digest("hex")}function he(t){let e=O(t.spec,t.canonicalInstruction);if(k(e)!==t.identity.role_tool_surface_hash)throw new Error("Production attempt journal role identity drifted before open");return{canonicalInstructionSha256:kt(t.canonicalInstruction),modelVisiblePromptSha256:kt(t.message),systemPromptSha256:e.systemPromptSha256,toolManifestSha256:d(e.tools),pluginManifestSha256:d({plugin_dirs:e.pluginDirs,skills:e.skills})}}function me(t){let{identity:e,spec:o}=t;return{rootRunId:e.root_run_id,sessionId:e.session_id,agentSlot:J,resolvedCwd:Q(o.cwd),...he(t),modelExecutionIdentityHash:e.model_execution_identity_hash,roleToolSurfaceHash:e.role_tool_surface_hash,bundleManifestHash:e.bundle_manifest_hash}}function fe(t){if(t.type!=="tool_result"||!t.images)return t;let{images:e,...o}=t;return o}function _e(t){return"model"in t&&typeof t.model=="string"&&t.model.length>0?t.model:null}var B=class{identity;journal;repo;closed=!1;writeFailure=null;constructor(e,o,n){this.identity=e,this.journal=o,this.repo=n}onEvent(e){try{this.journal.writeEvent({sessionId:this.identity.session_id,agentSlot:J,backend:this.identity.backend,provider:this.identity.provider,requestedModel:this.identity.requested_model,reportedModel:_e(e),event:fe(e)})}catch(o){throw this.writeFailure??=o,o}}onClose(){if(!this.closed){if(this.closed=!0,this.journal.closeSync(),this.writeFailure)throw this.writeFailure;this.repo.append(Object.freeze({schema_version:Pt,attempt_id:this.identity.attempt_id,execution_id:this.identity.execution_id,journal_path:b.resolve(this.journal.path),journal_sha256:this.journal.sha256(),event_count:this.journal.eventCount,closed_at:new Date().toISOString()}))}}};function Ot(t){x=b.resolve(t.journalDir),y=new U(t.storePath)}function V(){y=null,x=null}function ko(t){if(!y||!x)throw new Error("Production attempt journal store is not initialized");if(y.get(t.identity.execution_id))throw new Error(`Production attempt journal already exists for execution ${t.identity.execution_id}`);h.mkdirSync(x,{recursive:!0,mode:448});let e=bt({path:b.join(x,de(t.identity)),header:me(t)});return new B(t.identity,e,y)}function Po(t){return y?.get(t)??null}var X="cortex-production-attempt-identity/5",pe=/^[a-f0-9]{64}$/,ye=g.join(Z,"benchmark-attempt-identities.jsonl"),we=["schema_version","trial_id","root_run_id","attempt_id","root_attempt_id","spawn_parent_attempt_id","execution_id","session_id","thinking","mode","backend","provider","requested_model","model_execution_identity_hash","role_tool_surface_hash","bundle_manifest_hash","frozen_at"],c=null;function Se(t){return new Error(`Production benchmark evidence context invalid: ${t}`)}function jt(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function xe(t,e){let o=new Set(e);return e.every(n=>Object.hasOwn(t,n))&&Object.keys(t).every(n=>o.has(n))}function Tt(t,e){if(typeof t!="string"||t.length===0)throw Se(e);return t}function be(t){return t===null||typeof t=="string"&&t.length>0}function ge(t){let e=["trial_id","root_run_id","attempt_id","root_attempt_id","execution_id","session_id","mode","requested_model","model_execution_identity_hash","role_tool_surface_hash","bundle_manifest_hash","frozen_at"],o=["spawn_parent_attempt_id","provider","thinking"],n=[t.model_execution_identity_hash,t.role_tool_surface_hash,t.bundle_manifest_hash];return xe(t,we)&&t.schema_version===X&&e.every(r=>typeof t[r]=="string"&&String(t[r]).length>0)&&o.every(r=>be(t[r]))&&(t.backend==="claude"||t.backend==="pi")&&n.every(r=>typeof r=="string"&&pe.test(r))}function Ee(t,e){let o;try{o=JSON.parse(t)}catch{throw new Error(`Production attempt identity store malformed at line ${e}`)}if(jt(o)&&typeof o.schema_version=="string"&&o.schema_version!==X)return null;if(!jt(o)||!ge(o))throw new Error(`Production attempt identity store invalid at line ${e}`);return o}function ke(t,e){return JSON.stringify(t)===JSON.stringify(e)}function W(t,e){return t.trial_id===e.trial_id&&t.root_run_id===e.root_run_id}var K=class{filePath;byExecution=new Map;byAttempt=new Map;ordered=[];constructor(e){this.filePath=e,this.load()}load(){let e;try{e=w.readFileSync(this.filePath,"utf8")}catch(o){if(o.code==="ENOENT")return;throw o}e.split(`
9
- `).filter(Boolean).forEach((o,n)=>{let r=Ee(o,n+1);r&&this.remember(r)})}latestSessionAttempt(e){for(let o=this.ordered.length-1;o>=0;o-=1){let n=this.ordered[o];if(W(n,e)&&n.session_id===e.session_id)return n}return null}assertRunSession(e){let o=this.ordered.find(n=>W(n,e));if(o&&o.session_id!==e.session_id)throw new Error("Production attempt identity cross-run session collision")}resolveRootAttemptId(e,o){return this.assertRunSession(e),this.latestSessionAttempt(e)?.root_attempt_id??o}resolveSpawnParentAttemptId(e){return this.assertRunSession(e),this.latestSessionAttempt(e)?.attempt_id??null}assertTopology(e){if(e.attempt_id!==`execution-${e.execution_id}`)throw new Error("Production attempt identity collision between execution and attempt");if(e.spawn_parent_attempt_id===e.attempt_id)throw new Error("Production attempt identity cannot self-link");let o=this.resolveRootAttemptId(e,e.attempt_id),n=this.resolveSpawnParentAttemptId(e);if(e.root_attempt_id!==o||e.spawn_parent_attempt_id!==n)throw new Error("Production attempt spawn topology is invalid")}remember(e){if(this.byExecution.has(e.execution_id)||this.byAttempt.has(e.attempt_id))throw new Error(`Production attempt identity collision: ${e.execution_id}`);this.assertTopology(e);let o=Object.freeze({...e});return this.byExecution.set(e.execution_id,o),this.byAttempt.set(e.attempt_id,o),this.ordered.push(o),o}get(e){return this.byExecution.get(e)??null}list(e){let o=Tt(e.trialId,"trial identity"),n=Tt(e.rootRunId,"root run identity"),r=this.ordered.filter(i=>i.trial_id===o&&i.root_run_id===n);if(r.length===0)throw new Error(`No production attempts found for ${o}/${n}`);return Object.freeze([...r])}firstRootAttempt(e){return this.ordered.find(o=>W(o,e))??null}append(e){let o=this.get(e.execution_id);if(o){if(!ke(o,e))throw new Error(`Production attempt identity changed for execution ${e.execution_id}`);return o}this.assertTopology(e),w.mkdirSync(g.dirname(this.filePath),{recursive:!0,mode:448});let n=w.openSync(this.filePath,"a",384);try{w.writeFileSync(n,`${JSON.stringify(e)}
10
- `,"utf8"),w.fsyncSync(n)}finally{w.closeSync(n)}return this.remember(e)}};function Pe(t){return t.configurationRevision?.()??null}function Ho(t={}){c=null,V();let e=t.storePath??ye,o=g.dirname(e);try{let n=new K(e);Ot({journalDir:g.join(o,"benchmark-attempt-journals"),storePath:g.join(o,"benchmark-attempt-journals.jsonl")}),c={repo:n,revision:Pe(t),configurationRevision:t.configurationRevision}}catch(n){throw V(),n}}function Oe(t){let e=t.configurationRevision?.()??null;if(JSON.stringify(e)!==JSON.stringify(t.revision))throw new Error("Production benchmark configuration hot-reload drift detected")}function Y(t,e){if(typeof t!="string"||t.length===0)throw new Error(`Production benchmark attempt is missing ${e}`);return t}function je(t,e){let o=e==="pi"?t.route.gatewayBaseUrl:t.env.sets?.ANTHROPIC_BASE_URL??t.route.anthropicBaseUrl;if(!o)return null;try{return new URL(o).host}catch{throw new Error(`Production benchmark resolved route is invalid: ${o}`)}}function Te(t,e){if(t.model.id!==e.model)throw new Error("Production benchmark resolved model drifted before adapter spawn");if((t.model.thinking??null)!==e.thinking)throw new Error("Production benchmark resolved thinking drifted before adapter spawn");if(e.backend==="pi"&&(t.model.provider??null)!==e.provider)throw new Error("Production benchmark resolved provider drifted before adapter spawn")}function Re(t,e){let o=t.selection;if(!o)throw new Error("Production benchmark attempt is missing selection");if(o.backend!==e.model_execution.cli_name||o.backend!==t.adapterBackend)throw new Error("Production benchmark backend differs from injected CLI identity");return Te(t.spec,o),o}function Ae(t,e){let o=e.model_execution.max_output_tokens,n=t.model.benchmarkMaxOutputTokens??null;if(n!==o)throw new Error("Production benchmark max output token identity drifted");return n}function Ie(t,e,o,n,r){let i=Y(o,"execution identity"),l=`execution-${i}`,A={trial_id:n.trial_id,root_run_id:n.root_run_id,session_id:Y(e.session.sessionId,"session identity")};return{attempt_id:l,root_attempt_id:r?.root_attempt_id??t.repo.resolveRootAttemptId(A,l),spawn_parent_attempt_id:r?.spawn_parent_attempt_id??t.repo.resolveSpawnParentAttemptId(A),execution_id:i,session_id:A.session_id}}function Ne(t,e,o){let n=t.model_execution;return lt({backend:o.backend,requestedModel:o.model,modelAliasPolicy:n.model_alias_policy,providerProtocol:o.provider,configuredRouteBaseHost:je(e,o.backend),claudeCliVersion:o.backend==="claude"?n.cli_version:null,cliName:n.cli_name,cliVersion:n.cli_version,reasoningEffort:o.thinking,maxOutputTokens:Ae(e,t)})}function ve(t,e){let o=Re(e,t),n=typeof e.request.benchmark?.identityDirective=="string"?e.request.benchmark.identityDirective:"",r=O(e.spec,n);return{thinking:o.thinking,mode:o.mode,backend:o.backend,provider:o.provider,requested_model:o.model,model_execution_identity_hash:Ne(t,e.spec,o),role_tool_surface_hash:k(r)}}function He(t,e,o,n){return{schema_version:X,trial_id:o.trial_id,root_run_id:o.root_run_id,...Ie(t,e.request,e.executionId,o,n),...ve(o,e),bundle_manifest_hash:o.bundle_manifest_hash,frozen_at:new Date().toISOString()}}function Ce(t,e){let o=t.firstRootAttempt(e);if(!o)return;if(["trial_id","root_run_id","bundle_manifest_hash","thinking","mode","backend","provider","requested_model","model_execution_identity_hash"].some(r=>o[r]!==e[r]))throw new Error("Production benchmark immutable root identity baseline drifted");if(o.role_tool_surface_hash!==e.role_tool_surface_hash)throw new Error("Production benchmark immutable role tool baseline drifted")}function Co(t){let e=t.request.benchmark?.evidenceContext??null;if(e==null)return null;if(!c)throw new Error("Production benchmark identity store is not initialized");Oe(c);let o=at(e),n=Y(t.executionId,"execution identity"),r=c.repo.get(n),i=He(c,t,o,r),l=r?{...i,frozen_at:r.frozen_at}:i;return Ce(c.repo,l),c.repo.append(l)}function De(){if(!c)throw new Error("Production benchmark identity store is not initialized");return c.repo}function Do(t){return De().list(t)}export{ze as a,Ue as b,Be as c,Ge as d,Ve as e,We as f,Ke as g,Ye as h,S as i,Xe as j,Qe as k,Ze as l,to as m,ut as n,Mt as o,ht as p,at as q,J as r,ko as s,Po as t,Ho as u,Co as v,Do as w};