@ai-agent-forge/agent-forge 0.88.0 → 0.88.2

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 (445) hide show
  1. package/CHANGELOG.md +73 -0
  2. package/bundled-plugins/agent-loop-policy/agent-forge.json +19 -0
  3. package/bundled-plugins/agent-loop-policy/dist/entry.d.ts +28 -0
  4. package/bundled-plugins/agent-loop-policy/dist/entry.d.ts.map +1 -0
  5. package/bundled-plugins/agent-loop-policy/dist/entry.js +69 -0
  6. package/bundled-plugins/agent-loop-policy/dist/entry.js.map +1 -0
  7. package/bundled-plugins/agent-loop-policy/dist/loop-guard.d.ts +199 -0
  8. package/bundled-plugins/agent-loop-policy/dist/loop-guard.d.ts.map +1 -0
  9. package/bundled-plugins/agent-loop-policy/dist/loop-guard.js +208 -0
  10. package/bundled-plugins/agent-loop-policy/dist/loop-guard.js.map +1 -0
  11. package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.d.ts +17 -0
  12. package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.d.ts.map +1 -0
  13. package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.js +18 -0
  14. package/bundled-plugins/agent-loop-policy/dist/run-loop-strategy.js.map +1 -0
  15. package/bundled-plugins/agent-loop-policy/plugin.json +7 -0
  16. package/bundled-plugins/coding-tools/agent-forge.json +19 -0
  17. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/bash.d.ts +5 -44
  18. package/bundled-plugins/coding-tools/dist/bash.d.ts.map +1 -0
  19. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/bash.js +15 -119
  20. package/bundled-plugins/coding-tools/dist/bash.js.map +1 -0
  21. package/bundled-plugins/coding-tools/dist/capability.d.ts +25 -0
  22. package/bundled-plugins/coding-tools/dist/capability.d.ts.map +1 -0
  23. package/bundled-plugins/coding-tools/dist/capability.js +98 -0
  24. package/bundled-plugins/coding-tools/dist/capability.js.map +1 -0
  25. package/bundled-plugins/coding-tools/dist/config.d.ts +8 -0
  26. package/bundled-plugins/coding-tools/dist/config.d.ts.map +1 -0
  27. package/bundled-plugins/coding-tools/dist/config.js +8 -0
  28. package/bundled-plugins/coding-tools/dist/config.js.map +1 -0
  29. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/edit.d.ts +3 -3
  30. package/bundled-plugins/coding-tools/dist/edit.d.ts.map +1 -0
  31. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/edit.js +12 -10
  32. package/bundled-plugins/coding-tools/dist/edit.js.map +1 -0
  33. package/bundled-plugins/coding-tools/dist/entry.d.ts +14 -0
  34. package/bundled-plugins/coding-tools/dist/entry.d.ts.map +1 -0
  35. package/bundled-plugins/coding-tools/dist/entry.js +23 -0
  36. package/bundled-plugins/coding-tools/dist/entry.js.map +1 -0
  37. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/find.d.ts +4 -4
  38. package/bundled-plugins/coding-tools/dist/find.d.ts.map +1 -0
  39. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/find.js +10 -8
  40. package/bundled-plugins/coding-tools/dist/find.js.map +1 -0
  41. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/grep.d.ts +3 -3
  42. package/bundled-plugins/coding-tools/dist/grep.d.ts.map +1 -0
  43. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/grep.js +10 -8
  44. package/bundled-plugins/coding-tools/dist/grep.js.map +1 -0
  45. package/bundled-plugins/coding-tools/dist/index.d.ts +17 -0
  46. package/bundled-plugins/coding-tools/dist/index.d.ts.map +1 -0
  47. package/bundled-plugins/coding-tools/dist/index.js +17 -0
  48. package/bundled-plugins/coding-tools/dist/index.js.map +1 -0
  49. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.d.ts +3 -3
  50. package/bundled-plugins/coding-tools/dist/ls.d.ts.map +1 -0
  51. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.js +8 -6
  52. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/ls.js.map +1 -1
  53. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/powershell.d.ts +2 -1
  54. package/bundled-plugins/coding-tools/dist/powershell.d.ts.map +1 -0
  55. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/powershell.js +6 -3
  56. package/bundled-plugins/coding-tools/dist/powershell.js.map +1 -0
  57. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/read.d.ts +3 -3
  58. package/bundled-plugins/coding-tools/dist/read.d.ts.map +1 -0
  59. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/read.js +15 -13
  60. package/bundled-plugins/coding-tools/dist/read.js.map +1 -0
  61. package/bundled-plugins/coding-tools/dist/types.d.ts +74 -0
  62. package/bundled-plugins/coding-tools/dist/types.d.ts.map +1 -0
  63. package/bundled-plugins/coding-tools/dist/types.js +28 -0
  64. package/bundled-plugins/coding-tools/dist/types.js.map +1 -0
  65. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/write.d.ts +2 -2
  66. package/bundled-plugins/coding-tools/dist/write.d.ts.map +1 -0
  67. package/{dist/core/tools → bundled-plugins/coding-tools/dist}/write.js +11 -9
  68. package/bundled-plugins/coding-tools/dist/write.js.map +1 -0
  69. package/bundled-plugins/coding-tools/plugin.json +10 -0
  70. package/bundled-plugins/compaction-policy/agent-forge.json +19 -0
  71. package/bundled-plugins/compaction-policy/dist/branch-summary-policy.d.ts +6 -0
  72. package/bundled-plugins/compaction-policy/dist/branch-summary-policy.d.ts.map +1 -0
  73. package/bundled-plugins/compaction-policy/dist/branch-summary-policy.js +19 -0
  74. package/bundled-plugins/compaction-policy/dist/branch-summary-policy.js.map +1 -0
  75. package/bundled-plugins/compaction-policy/dist/compaction-policy.d.ts +6 -0
  76. package/bundled-plugins/compaction-policy/dist/compaction-policy.d.ts.map +1 -0
  77. package/bundled-plugins/compaction-policy/dist/compaction-policy.js +38 -0
  78. package/bundled-plugins/compaction-policy/dist/compaction-policy.js.map +1 -0
  79. package/bundled-plugins/compaction-policy/dist/entry.d.ts +13 -0
  80. package/bundled-plugins/compaction-policy/dist/entry.d.ts.map +1 -0
  81. package/bundled-plugins/compaction-policy/dist/entry.js +23 -0
  82. package/bundled-plugins/compaction-policy/dist/entry.js.map +1 -0
  83. package/bundled-plugins/compaction-policy/plugin.json +10 -0
  84. package/bundled-plugins/mcp-http/dist/index.d.ts +8 -0
  85. package/bundled-plugins/mcp-http/dist/index.d.ts.map +1 -0
  86. package/bundled-plugins/mcp-http/dist/index.js +8 -0
  87. package/bundled-plugins/mcp-http/dist/index.js.map +1 -0
  88. package/bundled-plugins/mcp-http/dist/mcp-http.d.ts.map +1 -0
  89. package/{dist/plugins → bundled-plugins/mcp-http/dist}/mcp-http.js +1 -1
  90. package/bundled-plugins/mcp-http/dist/mcp-http.js.map +1 -0
  91. package/bundled-plugins/overflow-policy/agent-forge.json +19 -0
  92. package/bundled-plugins/overflow-policy/dist/entry.d.ts +16 -0
  93. package/bundled-plugins/overflow-policy/dist/entry.d.ts.map +1 -0
  94. package/bundled-plugins/overflow-policy/dist/entry.js +35 -0
  95. package/bundled-plugins/overflow-policy/dist/entry.js.map +1 -0
  96. package/bundled-plugins/overflow-policy/plugin.json +10 -0
  97. package/bundled-plugins/provider-failover/agent-forge.json +19 -0
  98. package/bundled-plugins/provider-failover/dist/entry.d.ts +8 -0
  99. package/bundled-plugins/provider-failover/dist/entry.d.ts.map +1 -0
  100. package/bundled-plugins/provider-failover/dist/entry.js +8 -0
  101. package/bundled-plugins/provider-failover/dist/entry.js.map +1 -0
  102. package/bundled-plugins/provider-failover/dist/provider-failover.d.ts +122 -0
  103. package/bundled-plugins/provider-failover/dist/provider-failover.d.ts.map +1 -0
  104. package/{dist/core/extensions → bundled-plugins/provider-failover/dist}/provider-failover.js +143 -56
  105. package/bundled-plugins/provider-failover/dist/provider-failover.js.map +1 -0
  106. package/bundled-plugins/provider-failover/plugin.json +7 -0
  107. package/bundled-plugins/retry-policy/agent-forge.json +19 -0
  108. package/bundled-plugins/retry-policy/dist/entry.d.ts +16 -0
  109. package/bundled-plugins/retry-policy/dist/entry.d.ts.map +1 -0
  110. package/bundled-plugins/retry-policy/dist/entry.js +34 -0
  111. package/bundled-plugins/retry-policy/dist/entry.js.map +1 -0
  112. package/bundled-plugins/retry-policy/plugin.json +10 -0
  113. package/dist/bundle/.build-manifest.json +109 -155
  114. package/dist/bundle/chunks/{anthropic-messages-ALDZBUKI.js → anthropic-messages-PLAKXR73.js} +1 -1
  115. package/dist/bundle/chunks/{azure-openai-responses-A2WJWZFB.js → azure-openai-responses-OUWQ2AZD.js} +1 -1
  116. package/dist/bundle/chunks/chunk-44I47ACN.js +13 -0
  117. package/dist/bundle/chunks/chunk-6F5JWGKE.js +4 -0
  118. package/dist/bundle/chunks/{chunk-CIX3FSBK.js → chunk-A3JYRWB6.js} +1 -1
  119. package/dist/bundle/chunks/{chunk-SQFG22WN.js → chunk-AC2FIS4G.js} +1 -1
  120. package/dist/bundle/chunks/chunk-HTC5K5SM.js +866 -0
  121. package/dist/bundle/chunks/{chunk-YJCQVXW5.js → chunk-HTEVUY7F.js} +1 -1
  122. package/dist/bundle/chunks/{chunk-Y7HXTASS.js → chunk-HV64ASMT.js} +1 -1
  123. package/dist/bundle/chunks/chunk-LSP24WNH.js +665 -0
  124. package/dist/bundle/chunks/{chunk-7ZY7IXZD.js → chunk-TRDNDS6A.js} +1 -1
  125. package/dist/bundle/chunks/{google-generative-ai-NIB4WONV.js → google-generative-ai-DLII6DAT.js} +1 -1
  126. package/dist/bundle/chunks/{google-vertex-DCPYUEUO.js → google-vertex-G7BZL7GM.js} +1 -1
  127. package/dist/bundle/chunks/image-resize-worker.js +4 -4
  128. package/dist/bundle/chunks/{mistral-conversations-OC6LA5XL.js → mistral-conversations-JXUK24ID.js} +1 -1
  129. package/dist/bundle/chunks/{openai-codex-responses-IO2X4Y7L.js → openai-codex-responses-5GSGFIPG.js} +1 -1
  130. package/dist/bundle/chunks/{openai-completions-XYQQHETU.js → openai-completions-EI2I6DTG.js} +1 -1
  131. package/dist/bundle/chunks/{openai-responses-DLIRN3CI.js → openai-responses-AUJQ3NWT.js} +1 -1
  132. package/dist/bundle/chunks/{pi-messages-E6RRYBO7.js → pi-messages-PWU2VJMR.js} +1 -1
  133. package/dist/bundle/chunks/virtual-modules-MRXD3RWG.js +5 -0
  134. package/dist/bundle/cli.js +1 -1
  135. package/dist/bundle/client.js +1 -1
  136. package/dist/bundle/index.js +3 -3
  137. package/dist/bundle/rpc-entry.js +1 -1
  138. package/dist/capabilities/builtin.d.ts +1 -1
  139. package/dist/capabilities/builtin.d.ts.map +1 -1
  140. package/dist/capabilities/builtin.js +5 -0
  141. package/dist/capabilities/builtin.js.map +1 -1
  142. package/dist/cli/plugin-command.d.ts.map +1 -1
  143. package/dist/cli/plugin-command.js +25 -3
  144. package/dist/cli/plugin-command.js.map +1 -1
  145. package/dist/config.d.ts +2 -3
  146. package/dist/config.d.ts.map +1 -1
  147. package/dist/config.js +2 -4
  148. package/dist/config.js.map +1 -1
  149. package/dist/core/agent-session-bash.d.ts +1 -1
  150. package/dist/core/agent-session-bash.d.ts.map +1 -1
  151. package/dist/core/agent-session-bash.js +1 -1
  152. package/dist/core/agent-session-bash.js.map +1 -1
  153. package/dist/core/agent-session-compaction.d.ts.map +1 -1
  154. package/dist/core/agent-session-compaction.js +14 -1
  155. package/dist/core/agent-session-compaction.js.map +1 -1
  156. package/dist/core/agent-session-internal.d.ts +3 -1
  157. package/dist/core/agent-session-internal.d.ts.map +1 -1
  158. package/dist/core/agent-session-internal.js.map +1 -1
  159. package/dist/core/agent-session-loop.d.ts +4 -3
  160. package/dist/core/agent-session-loop.d.ts.map +1 -1
  161. package/dist/core/agent-session-loop.js +9 -6
  162. package/dist/core/agent-session-loop.js.map +1 -1
  163. package/dist/core/agent-session-retry.d.ts +1 -1
  164. package/dist/core/agent-session-retry.d.ts.map +1 -1
  165. package/dist/core/agent-session-retry.js +32 -3
  166. package/dist/core/agent-session-retry.js.map +1 -1
  167. package/dist/core/agent-session-services.d.ts +2 -0
  168. package/dist/core/agent-session-services.d.ts.map +1 -1
  169. package/dist/core/agent-session-services.js +31 -9
  170. package/dist/core/agent-session-services.js.map +1 -1
  171. package/dist/core/agent-session-store.d.ts.map +1 -1
  172. package/dist/core/agent-session-store.js +6 -1
  173. package/dist/core/agent-session-store.js.map +1 -1
  174. package/dist/core/agent-session-tools.d.ts.map +1 -1
  175. package/dist/core/agent-session-tools.js +18 -1
  176. package/dist/core/agent-session-tools.js.map +1 -1
  177. package/dist/core/agent-session.d.ts +34 -11
  178. package/dist/core/agent-session.d.ts.map +1 -1
  179. package/dist/core/agent-session.js +114 -38
  180. package/dist/core/agent-session.js.map +1 -1
  181. package/dist/core/bash-executor.d.ts +1 -1
  182. package/dist/core/bash-executor.d.ts.map +1 -1
  183. package/dist/core/bash-executor.js.map +1 -1
  184. package/dist/core/extensions/bootstrap-agent-loop.d.ts +23 -151
  185. package/dist/core/extensions/bootstrap-agent-loop.d.ts.map +1 -1
  186. package/dist/core/extensions/bootstrap-agent-loop.js +28 -290
  187. package/dist/core/extensions/bootstrap-agent-loop.js.map +1 -1
  188. package/dist/core/extensions/capability-runtime-types.d.ts +5 -3
  189. package/dist/core/extensions/capability-runtime-types.d.ts.map +1 -1
  190. package/dist/core/extensions/capability-runtime-types.js.map +1 -1
  191. package/dist/core/extensions/capability-runtime.d.ts.map +1 -1
  192. package/dist/core/extensions/capability-runtime.js +42 -6
  193. package/dist/core/extensions/capability-runtime.js.map +1 -1
  194. package/dist/core/extensions/index.d.ts +12 -5
  195. package/dist/core/extensions/index.d.ts.map +1 -1
  196. package/dist/core/extensions/index.js +12 -5
  197. package/dist/core/extensions/index.js.map +1 -1
  198. package/dist/core/extensions/virtual-modules.d.ts.map +1 -1
  199. package/dist/core/extensions/virtual-modules.js +65 -0
  200. package/dist/core/extensions/virtual-modules.js.map +1 -1
  201. package/dist/core/facade/coding-agent-facade.d.ts +1 -1
  202. package/dist/core/facade/coding-agent-facade.d.ts.map +1 -1
  203. package/dist/core/facade/coding-agent-facade.js.map +1 -1
  204. package/dist/core/i18n/locales/zh-cn/cli.d.ts.map +1 -1
  205. package/dist/core/i18n/locales/zh-cn/cli.js +2 -0
  206. package/dist/core/i18n/locales/zh-cn/cli.js.map +1 -1
  207. package/dist/core/i18n/locales/zh-cn/core-contract-core.d.ts +1 -1
  208. package/dist/core/i18n/locales/zh-cn/core-contract-core.d.ts.map +1 -1
  209. package/dist/core/i18n/locales/zh-cn/core-contract-core.js +1 -1
  210. package/dist/core/i18n/locales/zh-cn/core-contract-core.js.map +1 -1
  211. package/dist/core/i18n/locales/zh-cn/core-contract-extensions.d.ts.map +1 -1
  212. package/dist/core/i18n/locales/zh-cn/core-contract-extensions.js +2 -4
  213. package/dist/core/i18n/locales/zh-cn/core-contract-extensions.js.map +1 -1
  214. package/dist/core/i18n/locales/zh-cn/core-errors.d.ts.map +1 -1
  215. package/dist/core/i18n/locales/zh-cn/core-errors.js +3 -1
  216. package/dist/core/i18n/locales/zh-cn/core-errors.js.map +1 -1
  217. package/dist/core/i18n/locales/zh-cn/index.d.ts.map +1 -1
  218. package/dist/core/i18n/locales/zh-cn/index.js +2 -0
  219. package/dist/core/i18n/locales/zh-cn/index.js.map +1 -1
  220. package/dist/core/i18n/locales/zh-cn/interactive-mode.d.ts.map +1 -1
  221. package/dist/core/i18n/locales/zh-cn/interactive-mode.js +5 -0
  222. package/dist/core/i18n/locales/zh-cn/interactive-mode.js.map +1 -1
  223. package/dist/core/i18n/locales/zh-cn/session-cleanup.d.ts +7 -0
  224. package/dist/core/i18n/locales/zh-cn/session-cleanup.d.ts.map +1 -0
  225. package/dist/core/i18n/locales/zh-cn/session-cleanup.js +15 -0
  226. package/dist/core/i18n/locales/zh-cn/session-cleanup.js.map +1 -0
  227. package/dist/core/i18n/locales/zh-cn/slash-commands.d.ts.map +1 -1
  228. package/dist/core/i18n/locales/zh-cn/slash-commands.js +1 -0
  229. package/dist/core/i18n/locales/zh-cn/slash-commands.js.map +1 -1
  230. package/dist/core/sdk.d.ts +10 -3
  231. package/dist/core/sdk.d.ts.map +1 -1
  232. package/dist/core/sdk.js +287 -78
  233. package/dist/core/sdk.js.map +1 -1
  234. package/dist/core/session-cleanup.d.ts +49 -0
  235. package/dist/core/session-cleanup.d.ts.map +1 -0
  236. package/dist/core/session-cleanup.js +159 -0
  237. package/dist/core/session-cleanup.js.map +1 -0
  238. package/dist/core/session-index.d.ts +75 -0
  239. package/dist/core/session-index.d.ts.map +1 -0
  240. package/dist/core/session-index.js +455 -0
  241. package/dist/core/session-index.js.map +1 -0
  242. package/dist/core/session-manager.d.ts +9 -0
  243. package/dist/core/session-manager.d.ts.map +1 -1
  244. package/dist/core/session-manager.js +202 -47
  245. package/dist/core/session-manager.js.map +1 -1
  246. package/dist/core/slash-commands.d.ts.map +1 -1
  247. package/dist/core/slash-commands.js +5 -0
  248. package/dist/core/slash-commands.js.map +1 -1
  249. package/dist/core/system-prompt.d.ts.map +1 -1
  250. package/dist/core/system-prompt.js +12 -1
  251. package/dist/core/system-prompt.js.map +1 -1
  252. package/dist/core/tools/bash-operations.d.ts +41 -0
  253. package/dist/core/tools/bash-operations.d.ts.map +1 -0
  254. package/dist/core/tools/bash-operations.js +113 -0
  255. package/dist/core/tools/bash-operations.js.map +1 -0
  256. package/dist/core/tools/capability-mount.d.ts +40 -0
  257. package/dist/core/tools/capability-mount.d.ts.map +1 -0
  258. package/dist/core/tools/capability-mount.js +112 -0
  259. package/dist/core/tools/capability-mount.js.map +1 -0
  260. package/dist/core/tools/index.d.ts +12 -36
  261. package/dist/core/tools/index.d.ts.map +1 -1
  262. package/dist/core/tools/index.js +1 -117
  263. package/dist/core/tools/index.js.map +1 -1
  264. package/dist/core/tools/readme-path.d.ts +3 -0
  265. package/dist/core/tools/readme-path.d.ts.map +1 -0
  266. package/dist/core/tools/readme-path.js +15 -0
  267. package/dist/core/tools/readme-path.js.map +1 -0
  268. package/dist/index.d.ts +3 -19
  269. package/dist/index.d.ts.map +1 -1
  270. package/dist/index.js +6 -39
  271. package/dist/index.js.map +1 -1
  272. package/dist/main.d.ts.map +1 -1
  273. package/dist/main.js +1 -0
  274. package/dist/main.js.map +1 -1
  275. package/dist/modes/interactive/components/assistant-message.d.ts +3 -0
  276. package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -1
  277. package/dist/modes/interactive/components/assistant-message.js +27 -5
  278. package/dist/modes/interactive/components/assistant-message.js.map +1 -1
  279. package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -1
  280. package/dist/modes/interactive/components/session-selector-search.js +5 -1
  281. package/dist/modes/interactive/components/session-selector-search.js.map +1 -1
  282. package/dist/modes/interactive/components/session-selector.d.ts.map +1 -1
  283. package/dist/modes/interactive/components/session-selector.js +9 -0
  284. package/dist/modes/interactive/components/session-selector.js.map +1 -1
  285. package/dist/modes/interactive/components/tool-execution.d.ts +17 -1
  286. package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -1
  287. package/dist/modes/interactive/components/tool-execution.js +52 -25
  288. package/dist/modes/interactive/components/tool-execution.js.map +1 -1
  289. package/dist/modes/interactive/components/tool-run-group.d.ts +44 -0
  290. package/dist/modes/interactive/components/tool-run-group.d.ts.map +1 -0
  291. package/dist/modes/interactive/components/tool-run-group.js +121 -0
  292. package/dist/modes/interactive/components/tool-run-group.js.map +1 -0
  293. package/dist/modes/interactive/interactive-commands.d.ts +2 -0
  294. package/dist/modes/interactive/interactive-commands.d.ts.map +1 -1
  295. package/dist/modes/interactive/interactive-commands.js +7 -0
  296. package/dist/modes/interactive/interactive-commands.js.map +1 -1
  297. package/dist/modes/interactive/interactive-mode.d.ts +18 -0
  298. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  299. package/dist/modes/interactive/interactive-mode.js +85 -3
  300. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  301. package/dist/plugins/ecosystem/cli.d.ts.map +1 -1
  302. package/dist/plugins/ecosystem/cli.js +20 -5
  303. package/dist/plugins/ecosystem/cli.js.map +1 -1
  304. package/dist/plugins/ecosystem/node-npm-registry-source.d.ts +7 -2
  305. package/dist/plugins/ecosystem/node-npm-registry-source.d.ts.map +1 -1
  306. package/dist/plugins/ecosystem/node-npm-registry-source.js +64 -9
  307. package/dist/plugins/ecosystem/node-npm-registry-source.js.map +1 -1
  308. package/dist/plugins/ecosystem/node-plugin-acquisition-host.d.ts.map +1 -1
  309. package/dist/plugins/ecosystem/node-plugin-acquisition-host.js +6 -0
  310. package/dist/plugins/ecosystem/node-plugin-acquisition-host.js.map +1 -1
  311. package/dist/plugins/ecosystem/node-plugin-bootstrap.d.ts +7 -1
  312. package/dist/plugins/ecosystem/node-plugin-bootstrap.d.ts.map +1 -1
  313. package/dist/plugins/ecosystem/node-plugin-bootstrap.js +50 -3
  314. package/dist/plugins/ecosystem/node-plugin-bootstrap.js.map +1 -1
  315. package/dist/plugins/ecosystem/plugin-bootstrap.d.ts +28 -16
  316. package/dist/plugins/ecosystem/plugin-bootstrap.d.ts.map +1 -1
  317. package/dist/plugins/ecosystem/plugin-bootstrap.js +35 -33
  318. package/dist/plugins/ecosystem/plugin-bootstrap.js.map +1 -1
  319. package/dist/profile/plugin-profiles.d.ts +1 -1
  320. package/dist/profile/plugin-profiles.d.ts.map +1 -1
  321. package/dist/profile/plugin-profiles.js +18 -0
  322. package/dist/profile/plugin-profiles.js.map +1 -1
  323. package/dist/profiles/builtin-suites.d.ts +19 -5
  324. package/dist/profiles/builtin-suites.d.ts.map +1 -1
  325. package/dist/profiles/builtin-suites.js +26 -6
  326. package/dist/profiles/builtin-suites.js.map +1 -1
  327. package/docs/settings.md +354 -354
  328. package/docs/usage.md +292 -292
  329. package/examples/extensions/bash-spawn-hook/index.ts +7 -2
  330. package/examples/extensions/built-in-tool-renderer/index.ts +4 -2
  331. package/examples/extensions/minimal-mode/index.ts +2 -2
  332. package/examples/extensions/truncated-tool/index.ts +1 -1
  333. package/examples/extensions/with-deps/package-lock.json +2 -2
  334. package/examples/extensions/with-deps/package.json +1 -1
  335. package/examples/extensions/with-deps/plugin.json +1 -1
  336. package/package.json +3 -2
  337. package/dist/bundle/chunks/chunk-6ZKDNZHA.js +0 -145
  338. package/dist/bundle/chunks/chunk-HLJEVRWP.js +0 -13
  339. package/dist/bundle/chunks/chunk-YGHQME4V.js +0 -1456
  340. package/dist/bundle/chunks/virtual-modules-KZ5DRH7Q.js +0 -2
  341. package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts +0 -7
  342. package/dist/core/extensions/bootstrap-branch-summary-policy.d.ts.map +0 -1
  343. package/dist/core/extensions/bootstrap-branch-summary-policy.js +0 -28
  344. package/dist/core/extensions/bootstrap-branch-summary-policy.js.map +0 -1
  345. package/dist/core/extensions/bootstrap-compaction-policy.d.ts +0 -7
  346. package/dist/core/extensions/bootstrap-compaction-policy.d.ts.map +0 -1
  347. package/dist/core/extensions/bootstrap-compaction-policy.js +0 -48
  348. package/dist/core/extensions/bootstrap-compaction-policy.js.map +0 -1
  349. package/dist/core/extensions/bootstrap-overflow-policy.d.ts +0 -7
  350. package/dist/core/extensions/bootstrap-overflow-policy.d.ts.map +0 -1
  351. package/dist/core/extensions/bootstrap-overflow-policy.js +0 -30
  352. package/dist/core/extensions/bootstrap-overflow-policy.js.map +0 -1
  353. package/dist/core/extensions/bootstrap-retry-policy.d.ts +0 -7
  354. package/dist/core/extensions/bootstrap-retry-policy.d.ts.map +0 -1
  355. package/dist/core/extensions/bootstrap-retry-policy.js +0 -29
  356. package/dist/core/extensions/bootstrap-retry-policy.js.map +0 -1
  357. package/dist/core/extensions/bootstrap-tools.d.ts +0 -20
  358. package/dist/core/extensions/bootstrap-tools.d.ts.map +0 -1
  359. package/dist/core/extensions/bootstrap-tools.js +0 -36
  360. package/dist/core/extensions/bootstrap-tools.js.map +0 -1
  361. package/dist/core/extensions/provider-failover.d.ts +0 -110
  362. package/dist/core/extensions/provider-failover.d.ts.map +0 -1
  363. package/dist/core/extensions/provider-failover.js.map +0 -1
  364. package/dist/core/tools/bash.d.ts.map +0 -1
  365. package/dist/core/tools/bash.js.map +0 -1
  366. package/dist/core/tools/edit.d.ts.map +0 -1
  367. package/dist/core/tools/edit.js.map +0 -1
  368. package/dist/core/tools/find.d.ts.map +0 -1
  369. package/dist/core/tools/find.js.map +0 -1
  370. package/dist/core/tools/grep.d.ts.map +0 -1
  371. package/dist/core/tools/grep.js.map +0 -1
  372. package/dist/core/tools/ls.d.ts.map +0 -1
  373. package/dist/core/tools/powershell.d.ts.map +0 -1
  374. package/dist/core/tools/powershell.js.map +0 -1
  375. package/dist/core/tools/read.d.ts.map +0 -1
  376. package/dist/core/tools/read.js.map +0 -1
  377. package/dist/core/tools/write.d.ts.map +0 -1
  378. package/dist/core/tools/write.js.map +0 -1
  379. package/dist/plugins/mcp-http.d.ts.map +0 -1
  380. package/dist/plugins/mcp-http.js.map +0 -1
  381. package/dist/profile/child-facade.d.ts +0 -44
  382. package/dist/profile/child-facade.d.ts.map +0 -1
  383. package/dist/profile/child-facade.js +0 -56
  384. package/dist/profile/child-facade.js.map +0 -1
  385. package/dist/profile/dependency-wiring.d.ts +0 -48
  386. package/dist/profile/dependency-wiring.d.ts.map +0 -1
  387. package/dist/profile/dependency-wiring.js +0 -56
  388. package/dist/profile/dependency-wiring.js.map +0 -1
  389. package/dist/profile/domain-recovery.d.ts +0 -60
  390. package/dist/profile/domain-recovery.d.ts.map +0 -1
  391. package/dist/profile/domain-recovery.js +0 -94
  392. package/dist/profile/domain-recovery.js.map +0 -1
  393. package/dist/profile/first-roles.d.ts +0 -30
  394. package/dist/profile/first-roles.d.ts.map +0 -1
  395. package/dist/profile/first-roles.js +0 -83
  396. package/dist/profile/first-roles.js.map +0 -1
  397. package/dist/profile/goal-plugin.d.ts +0 -38
  398. package/dist/profile/goal-plugin.d.ts.map +0 -1
  399. package/dist/profile/goal-plugin.js +0 -132
  400. package/dist/profile/goal-plugin.js.map +0 -1
  401. package/dist/profile/plan-plugin.d.ts +0 -44
  402. package/dist/profile/plan-plugin.d.ts.map +0 -1
  403. package/dist/profile/plan-plugin.js +0 -157
  404. package/dist/profile/plan-plugin.js.map +0 -1
  405. package/dist/profile/policy-manifest.d.ts +0 -53
  406. package/dist/profile/policy-manifest.d.ts.map +0 -1
  407. package/dist/profile/policy-manifest.js +0 -53
  408. package/dist/profile/policy-manifest.js.map +0 -1
  409. package/dist/profile/role-assembly.d.ts +0 -47
  410. package/dist/profile/role-assembly.d.ts.map +0 -1
  411. package/dist/profile/role-assembly.js +0 -31
  412. package/dist/profile/role-assembly.js.map +0 -1
  413. package/dist/profile/role-catalog.d.ts +0 -43
  414. package/dist/profile/role-catalog.d.ts.map +0 -1
  415. package/dist/profile/role-catalog.js +0 -132
  416. package/dist/profile/role-catalog.js.map +0 -1
  417. package/dist/profile/role-orchestrator.d.ts +0 -123
  418. package/dist/profile/role-orchestrator.d.ts.map +0 -1
  419. package/dist/profile/role-orchestrator.js +0 -195
  420. package/dist/profile/role-orchestrator.js.map +0 -1
  421. package/dist/profile/role-runner.d.ts +0 -99
  422. package/dist/profile/role-runner.d.ts.map +0 -1
  423. package/dist/profile/role-runner.js +0 -79
  424. package/dist/profile/role-runner.js.map +0 -1
  425. package/dist/profile/root-facade.d.ts +0 -36
  426. package/dist/profile/root-facade.d.ts.map +0 -1
  427. package/dist/profile/root-facade.js +0 -49
  428. package/dist/profile/root-facade.js.map +0 -1
  429. package/dist/profile/skill-discovery-wiring.d.ts +0 -58
  430. package/dist/profile/skill-discovery-wiring.d.ts.map +0 -1
  431. package/dist/profile/skill-discovery-wiring.js +0 -80
  432. package/dist/profile/skill-discovery-wiring.js.map +0 -1
  433. package/dist/profile/state-store.d.ts +0 -62
  434. package/dist/profile/state-store.d.ts.map +0 -1
  435. package/dist/profile/state-store.js +0 -144
  436. package/dist/profile/state-store.js.map +0 -1
  437. package/dist/profile/todo-plugin.d.ts +0 -37
  438. package/dist/profile/todo-plugin.d.ts.map +0 -1
  439. package/dist/profile/todo-plugin.js +0 -137
  440. package/dist/profile/todo-plugin.js.map +0 -1
  441. package/examples/extensions/mcp-stdio/index.d.ts +0 -64
  442. package/examples/extensions/mcp-stdio/index.d.ts.map +0 -1
  443. package/examples/extensions/mcp-stdio/index.js +0 -292
  444. package/examples/extensions/mcp-stdio/index.js.map +0 -1
  445. /package/{dist/plugins → bundled-plugins/mcp-http/dist}/mcp-http.d.ts +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/cli.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAA2B;IAC1C,iDAA6B;IAC7B,kBAAkB,EAAE,oBAAc;IAClC,oBAAoB,EAAE,oBAAc;IACpC,8BAA8B,EAAE,0BAAc;IAC9C,8BAA8B,EAAE,oBAAQ;IACxC,0BAA0B,EAAE,oBAAQ;IACpC,uBAAuB,EAAE,yBAAe;IAExC,4CAA8B;IAC9B,oCAAoC,EAAE,gCAAoB;IAC1D,4BAA4B,EAAE,qCAA2B;IAEzD,uCAA6B;IAC7B,+BAA+B,EAAE,uCAA2B;IAC5D,6CAA6C,EAAE,6DAAyC;IACxF,qFAAqF,EACpF,2EAAyC;IAC1C,+FAA+F,EAC9F,qFAA2C;IAC5C,+HAA+H,EAC9H,kHAAoD;IACrD,sBAAsB,EAAE,wBAAkB;IAC1C,wCAAwC,EAAE,uCAAuB;IACjE,+DAA+D,EAC9D,qEAAyC;IAC1C,qFAAqF,EACpF,2EAA2C;IAC5C,gGAA8F,EAC7F,iGAA6D;IAC9D,sEAAsE,EAAE,yDAA6B;IACrG,yDAAyD,EAAE,uDAA6B;IACxF,wJAAwJ,EACvJ,4IAAgE;IACjE,8BAA8B,EAAE,kCAAsB;IACtD,sCAAsC,EAAE,uCAAuB;IAC/D,wFAAwF,EACvF,gFAAsD;IAEvD,+CAA+B;IAC/B,+CAA+C,EAAE,gDAA4B;IAC7E,2LAA2L,EAC1L,oLAAgG;IACjG,gDAAgD,EAAE,iDAA6B;IAC/E,q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,WAAK;IACf,KAAK,EAAE,QAAI;IACX,OAAO,EAAE,WAAK;IACd,SAAS,EAAE,cAAM;IACjB,QAAQ,EAAE,QAAI;IACd,MAAM,EAAE,QAAI;IAEZ,wBAAwB;IACxB,gBAAgB,EAAE,iBAAe;IACjC,sBAAsB,EAAE,qBAAiB;IAEzC,mBAAmB;IACnB,8BAA8B,EAAE,gCAA0B;IAC1D,+BAA+B,EAAE,4BAAgB;IACjD,wCAAwC,EAAE,uCAAmB;IAC7D,wCAAwC,EAAE,sCAAsB;CAChE,CAAC","sourcesContent":["/**\n * CLI 输出层域词典(docs/design/国际化与本地化.md §3,批次⑤):覆盖\n * main.ts 启动/错误输出、--help(printHelp)、auth help、--list-models、\n * print-mode 的用户可见文案。key 为英文原文,占位符 `{name}` 原样保留。\n * 命令名、flag、路径、环境变量、suite 等代码标识符不译。\n */\nexport const cli: Record<string, string> = {\n\t// --- main.ts:诊断/错误前缀与兜底 ---\n\t\"Error: {message}\": \"错误:{message}\",\n\t\"Warning: {message}\": \"警告:{message}\",\n\t\"Failed to parse auth command\": \"解析 auth 命令失败\",\n\t\"Failed to resolve credential\": \"解析凭证失败\",\n\t\"Failed to export session\": \"导出会话失败\",\n\t\"Exported to: {result}\": \"已导出到:{result}\",\n\n\t// --- main.ts:auth 命令参数错误 ---\n\t'Invalid arguments for \"{command}\".': '\"{command}\" 的参数无效。',\n\t'Use \"{help}\" or \"{usage}\".': '请使用 \"{help}\" 或 \"{usage}\"。',\n\n\t// --- main.ts:suite 生命周期 ---\n\t'Created suite \"{id}\" at {dir}': '已创建 suite \"{id}\",位于 {dir}',\n\t\"Error: --clone-from requires --suite-create\": \"错误:--clone-from 需要与 --suite-create 一起使用\",\n\t'Error: suite \"{id}\" is referenced by {count} existing session(s); deletion refused:':\n\t\t'错误:suite \"{id}\" 被 {count} 个现有会话引用,拒绝删除:',\n\t'Deleting suite \"{id}\": the workspace directory {dir} will be moved to the trash and released.':\n\t\t'正在删除 suite \"{id}\":工作区目录 {dir} 将被移入回收站并释放。',\n\t'Refusing to delete suite \"{id}\" without an interactive confirmation (non-interactive stdin). Re-run in a terminal to confirm.':\n\t\t'拒绝删除 suite \"{id}\":缺少交互式确认(stdin 非交互)。请在终端中重新运行以确认。',\n\t'Delete suite \"{id}\"?': '删除 suite \"{id}\"?',\n\t'Aborted: suite \"{id}\" was not deleted.': '已中止:suite \"{id}\" 未删除。',\n\t'Cleared the {scope} settings \"suite\" key (pointed at \"{id}\").':\n\t\t'已清除 {scope} 设置中的 \"suite\" 键(原指向 \"{id}\")。',\n\t'Deleted suite \"{id}\"; the workspace was moved to {trashPath} and is being released.':\n\t\t'已删除 suite \"{id}\";工作区已移至 {trashPath},正在释放。',\n\t'Suite \"{id}\" is a user suite; only builtin suites can be reset — use --suite-delete instead.':\n\t\t'suite \"{id}\" 是用户 suite;只有内置 suite 可以重置——请改用 --suite-delete。',\n\t'Suite \"{id}\" already matches the factory contents; nothing to reset.': 'suite \"{id}\" 已与出厂内容一致,无需重置。',\n\t'Resetting builtin suite \"{id}\" to the factory contents:': '正在将内置 suite \"{id}\" 重置为出厂内容:',\n\t'Refusing to reset suite \"{id}\" without an interactive confirmation (non-interactive stdin). Review the diff above and re-run in a terminal to confirm.':\n\t\t'拒绝重置 suite \"{id}\":缺少交互式确认(stdin 非交互)。请先查看上方 diff,再在终端中重新运行以确认。',\n\t'Apply reset of suite \"{id}\"?': '应用 suite \"{id}\" 的重置?',\n\t'Aborted: suite \"{id}\" was not reset.': '已中止:suite \"{id}\" 未重置。',\n\t'Suite \"{id}\" was reset to the factory contents (profile lock generation {generation}).':\n\t\t'suite \"{id}\" 已重置为出厂内容(profile lock 代数 {generation})。',\n\n\t// --- main.ts:flag 冲突与模式错误 ---\n\t\"Error: --fork cannot be combined with {flags}\": \"错误:--fork 不能与 {flags} 组合使用\",\n\t\"Error: --session-id cannot be combined with {flags}. To resume that exact session, drop the other flags and use --session-id alone (or use --continue to resume the most recent session).\":\n\t\t\"错误:--session-id 不能与 {flags} 组合使用。要恢复该确切会话,请去掉其他 flag,单独使用 --session-id(或使用 --continue 恢复最近会话)。\",\n\t\"Error: --serve cannot be combined with {flags}\": \"错误:--serve 不能与 {flags} 组合使用\",\n\t\"--serve ignores session/model/tool options: {flags}\": \"--serve 会忽略会话/模型/工具选项:{flags}\",\n\t\"Error: @file arguments are not supported in RPC mode\": \"错误:RPC 模式不支持 @file 参数\",\n\t\"Error: --name requires a non-empty value\": \"错误:--name 需要非空值\",\n\t\"Error: AGENT_FORGE_STARTUP_BENCHMARK only supports interactive mode\":\n\t\t\"错误:AGENT_FORGE_STARTUP_BENCHMARK 仅支持交互模式\",\n\n\t// --- main.ts:会话选择/创建 ---\n\t\"Session already exists with id '{sessionId}'\": \"已存在 id 为 '{sessionId}' 的会话\",\n\t\"No session found matching '{arg}'\": \"没有找到匹配 '{arg}' 的会话\",\n\t\"Session found in different project: {cwd}\": \"会话位于其他项目:{cwd}\",\n\t\"Fork this session into current directory?\": \"将该会话 fork 到当前目录?\",\n\t\"Aborted.\": \"已中止。\",\n\t\"No session selected\": \"未选择会话\",\n\t\"Warning: No project session found with id '{sessionId}'; creating a new session with that id.\":\n\t\t\"警告:没有找到 id 为 '{sessionId}' 的项目会话;将创建使用该 id 的新会话。\",\n\n\t// --- main.ts:插件 bootstrap/拒绝 ---\n\t\"Plugin bootstrap {code}: {message}\": \"插件 bootstrap {code}:{message}\",\n\t\"First run: installing {count} factory plugins…\": \"首次运行:正在安装 {count} 个出厂插件…\",\n\t\"Offline posture (AGENT_FORGE_OFFLINE) skips the startup plugin bootstrap; run `agent-forge plugin install <package>` explicitly to install plugins.\":\n\t\t\"离线姿态(AGENT_FORGE_OFFLINE)跳过启动插件引导;可用 `agent-forge plugin install <包名>` 显式安装插件。\",\n\t\"Warning: capability plugin rejected ({code}): {target}: {message}\":\n\t\t\"警告:能力插件被拒绝({code}):{target}:{message}\",\n\n\t// --- args.ts:printHelp 节标题与标题行 ---\n\t\"AI coding assistant with read, bash, edit, write tools\": \"具备 read、bash、edit、write 工具的 AI 编程助手\",\n\t\"Usage:\": \"用法:\",\n\t\"Commands:\": \"命令:\",\n\t\"Options:\": \"选项:\",\n\t\"Examples:\": \"示例:\",\n\t\"Environment Variables:\": \"环境变量:\",\n\t\"Built-in Tool Names:\": \"内置工具名:\",\n\n\t// --- args.ts:printHelp Commands 描述 ---\n\t\"Install extension source and add to settings\": \"安装扩展源并加入设置\",\n\t\"Remove extension source from settings\": \"从设置中移除扩展源\",\n\t\"Alias for remove\": \"remove 的别名\",\n\t\"Update Agent Forge, extensions, or model catalogs\": \"更新 Agent Forge、扩展或模型目录\",\n\t\"List installed extensions from settings\": \"列出设置中已安装的扩展\",\n\t\"Open TUI to enable/disable package resources (Tab switches scope)\": \"打开 TUI 启用/禁用包资源(Tab 切换作用域)\",\n\t\"Print credentials or check provider readiness\": \"打印凭证或检查提供商就绪状态\",\n\t\"Show help for install/remove/uninstall/update/list/config/auth\":\n\t\t\"显示 install/remove/uninstall/update/list/config/auth 的帮助\",\n\n\t// --- args.ts:printHelp Options 描述 ---\n\t\"Provider name (default: google)\": \"提供商名称(默认:google)\",\n\t'Model pattern or ID (supports \"provider/id\" and optional \":<thinking>\")':\n\t\t'模型模式或 ID(支持 \"provider/id\" 与可选的 \":<thinking>\")',\n\t\"API key (defaults to env vars)\": \"API key(默认取自环境变量)\",\n\t\"System prompt (default: coding assistant prompt)\": \"系统提示词(默认:编程助手提示词)\",\n\t\"Append text or file contents to the system prompt (can be used multiple times)\":\n\t\t\"向系统提示词追加文本或文件内容(可多次使用)\",\n\t\"Output mode: text (default), json, or rpc\": \"输出模式:text(默认)、json 或 rpc\",\n\t\"Non-interactive mode: process prompt and exit\": \"非交互模式:处理提示后退出\",\n\t\"Continue previous session\": \"继续上一个会话\",\n\t\"Select a session to resume\": \"选择要恢复的会话\",\n\t\"Use specific session file or partial UUID\": \"使用指定会话文件或部分 UUID\",\n\t\"Use exact project session ID, creating it if missing\": \"使用精确的项目会话 ID,不存在则创建\",\n\t\"Fork specific session file or partial UUID into a new session\": \"将指定会话文件或部分 UUID fork 为新会话\",\n\t\"Directory for session storage and lookup\": \"会话存储与查找目录\",\n\t\"Suite (方案) for this run: coding (default) or assistant; new sessions only\":\n\t\t\"本次运行的 suite(方案):coding(默认)或 assistant;仅对新会话生效\",\n\t\"Create a user suite workspace and exit; add --clone-from <id> to copy one\":\n\t\t\"创建用户 suite 工作区并退出;加 --clone-from <id> 可复制既有 suite\",\n\t\"Delete a user suite workspace (active session references refuse) and exit\":\n\t\t\"删除用户 suite 工作区(存在活动会话引用时拒绝)并退出\",\n\t\"Reset a builtin suite to factory contents (shows a diff) and exit\":\n\t\t\"将内置 suite 重置为出厂内容(显示 diff)并退出\",\n\t\"(Experimental, local trust only) Serve the coding-agent session runtime over the WebSocket gateway (default: 127.0.0.1; HTTP surface: /healthz plus token-protected artifact reads) and exit on SIGINT/SIGTERM\":\n\t\t\"(实验性,仅限本地信任)经 WebSocket 网关提供 coding-agent 会话运行时(默认:127.0.0.1;HTTP 面:/healthz 及受令牌保护的产物读取),SIGINT/SIGTERM 时退出\",\n\t\"Durable journal: <agentDir>/remote-server-journal.jsonl (never the process cwd)\":\n\t\t\"持久日志:<agentDir>/remote-server-journal.jsonl(绝不写入进程 cwd)\",\n\t\"Opt-in --serve boundary: remote creates must run inside one of these roots (repeatable); without it any local directory is allowed\":\n\t\t\"--serve 的可选边界:远程创建必须在这些根目录内运行(可重复);未指定时允许任意本地目录\",\n\t\"(Experimental) Run as a headless subagent runner: serve the subagent-task protocol on stdio for a parent session's runner pool (D-045)\":\n\t\t\"(实验性)作为无头子代理运行器:在 stdio 上为父会话的 runner 池提供 subagent-task 协议(D-045)\",\n\t\"Don't save session (ephemeral)\": \"不保存会话(一次性)\",\n\t\"Set session display name\": \"设置会话显示名称\",\n\t\"Comma-separated model patterns for Ctrl+P cycling\": \"逗号分隔的模型模式,用于 Ctrl+P 轮换\",\n\t\"Supports globs (anthropic/*, *sonnet*) and fuzzy matching\": \"支持 glob(anthropic/*、*sonnet*)与模糊匹配\",\n\t\"Disable all tools by default (built-in and plugin)\": \"默认禁用全部工具(内置与插件)\",\n\t\"Disable built-in tools by default but keep plugin/custom tools enabled\":\n\t\t\"默认禁用内置工具,但保持插件/自定义工具可用\",\n\t\"Comma-separated allowlist of tool names to enable\": \"逗号分隔的工具名白名单\",\n\t\"Applies to built-in, plugin, and custom tools\": \"作用于内置、插件与自定义工具\",\n\t\"Comma-separated denylist of tool names to disable\": \"逗号分隔的工具名黑名单\",\n\t\"Set thinking level: off, minimal, low, medium, high, xhigh, max\":\n\t\t\"设置思考级别:off、minimal、low、medium、high、xhigh、max\",\n\t\"Disable capability plugin discovery (D-028 escape hatch)\": \"禁用能力插件发现(D-028 逃生口)\",\n\t\"Disable session trace collection (no .trace.jsonl file is written)\": \"禁用会话轨迹收集(不写 .trace.jsonl 文件)\",\n\t\"Host log level: debug, info (default), warn, error\": \"宿主日志级别:debug、info(默认)、warn、error\",\n\t\"Select a builtin capability plugin profile for this run\": \"为本次运行选择内置能力插件 profile\",\n\t\"Select a plugin within the profile (repeatable)\": \"在 profile 内选择插件(可重复)\",\n\t\"Disable a plugin within the profile (repeatable)\": \"在 profile 内禁用插件(可重复)\",\n\t\"Read the explicit selection from global or project storage\": \"从全局或项目存储读取显式选择\",\n\t\"List installed/available ecosystem plugins (independent namespace)\": \"列出已安装/可用的生态插件(独立命名空间)\",\n\t\"Load a skill file or directory (can be used multiple times)\": \"加载 skill 文件或目录(可多次使用)\",\n\t\"Disable skills discovery and loading\": \"禁用 skill 发现与加载\",\n\t\"Load a prompt template file or directory (can be used multiple times)\": \"加载提示词模板文件或目录(可多次使用)\",\n\t\"Disable prompt template discovery and loading\": \"禁用提示词模板发现与加载\",\n\t\"Load a theme file or directory (can be used multiple times)\": \"加载主题文件或目录(可多次使用)\",\n\t\"Set the initial interactive theme for this run\": \"设置本次运行的初始交互主题\",\n\t\"Disable theme discovery and loading\": \"禁用主题发现与加载\",\n\t\"Disable AGENTS.md and CLAUDE.md discovery and loading\": \"禁用 AGENTS.md 与 CLAUDE.md 的发现与加载\",\n\t\"Export session file to HTML and exit\": \"将会话文件导出为 HTML 并退出\",\n\t\"View a session trace file as a text timeline and exit; <session> is a session id/prefix or trace/session file path, omit it for the most recent session\":\n\t\t\"以文本时间线查看会话轨迹文件并退出;<session> 为会话 id/前缀或轨迹/会话文件路径,省略则查看最近会话\",\n\t\"With --trace, output the structured trace records as JSON instead of the text timeline\":\n\t\t\"配合 --trace,以 JSON 输出结构化轨迹记录,而非文本时间线\",\n\t\"With --trace, show only records of these kinds (comma-separated); valid kinds: {kinds}\":\n\t\t\"配合 --trace,只显示这些类型的记录(逗号分隔);有效类型:{kinds}\",\n\t\"With --trace, show only the last N records (positive integer)\": \"配合 --trace,只显示最后 N 条记录(正整数)\",\n\t\"List available models (with optional fuzzy search)\": \"列出可用模型(可选模糊搜索)\",\n\t\"Force verbose startup (overrides quietStartup setting)\": \"强制详细启动(覆盖 quietStartup 设置)\",\n\t\"TUI mode: regular (default) or fullscreen\": \"TUI 模式:regular(默认)或 fullscreen\",\n\t\"Disable startup network operations (same as AGENT_FORGE_OFFLINE=1)\":\n\t\t\"禁用启动网络操作(等同 AGENT_FORGE_OFFLINE=1)\",\n\t\"End option parsing; treat remaining arguments as messages/files\": \"结束选项解析;剩余参数视为消息/文件\",\n\t\"Show this help\": \"显示此帮助\",\n\t\"Show version number\": \"显示版本号\",\n\n\t// --- args.ts:printHelp Examples 注释 ---\n\t\"Print a provider API key for an external client\": \"为外部客户端打印提供商 API key\",\n\t\"Print an OAuth bearer token for an external client (refreshes if expired)\":\n\t\t\"为外部客户端打印 OAuth bearer token(过期则刷新)\",\n\t\"Interactive mode\": \"交互模式\",\n\t\"Interactive mode with initial prompt\": \"带初始提示的交互模式\",\n\t\"Include files in initial message\": \"在初始消息中包含文件\",\n\t\"Non-interactive mode (process and exit)\": \"非交互模式(处理后退出)\",\n\t\"Prompt beginning with a dash\": \"以连字符开头的提示\",\n\t\"Multiple messages (interactive)\": \"多条消息(交互)\",\n\t\"Start a named session\": \"启动命名会话\",\n\t\"Use different model\": \"使用不同模型\",\n\t\"Use model with provider prefix (no --provider needed)\": \"使用带提供商前缀的模型(无需 --provider)\",\n\t\"Use model with thinking level shorthand\": \"使用思考级别简写形式的模型\",\n\t\"Limit model cycling to specific models\": \"将模型轮换限定为指定模型\",\n\t\"Limit to a specific provider with glob pattern\": \"用 glob 模式限定到指定提供商\",\n\t\"Cycle models with fixed thinking levels\": \"以固定思考级别轮换模型\",\n\t\"Start with a specific thinking level\": \"以指定思考级别启动\",\n\t\"Read-only mode (no file modifications possible)\": \"只读模式(不能修改文件)\",\n\t\"Disable one tool while keeping the rest available\": \"禁用单个工具,其余保持可用\",\n\t\"Export a session file to HTML\": \"导出会话文件为 HTML\",\n\n\t// --- args.ts:printHelp 环境变量描述 ---\n\t\"Anthropic bearer auth token\": \"Anthropic bearer 认证令牌\",\n\t\"Anthropic Claude API key\": \"Anthropic Claude API key\",\n\t\"Anthropic OAuth token (alternative to API key)\": \"Anthropic OAuth 令牌(API key 的替代)\",\n\t\"Ant Ling API key\": \"Ant Ling API key\",\n\t\"OpenAI GPT API key\": \"OpenAI GPT API key\",\n\t\"Azure OpenAI API key\": \"Azure OpenAI API key\",\n\t\"Azure OpenAI/Cognitive Services base URL (e.g. https://{resource}.openai.azure.com)\":\n\t\t\"Azure OpenAI/Cognitive Services base URL(如 https://{resource}.openai.azure.com)\",\n\t\"Azure OpenAI resource name (alternative to base URL)\": \"Azure OpenAI 资源名(base URL 的替代)\",\n\t\"Azure OpenAI API version (default: v1)\": \"Azure OpenAI API 版本(默认:v1)\",\n\t\"Azure OpenAI model=deployment map (comma-separated)\": \"Azure OpenAI 模型=部署映射(逗号分隔)\",\n\t\"DeepSeek API key\": \"DeepSeek API key\",\n\t\"NVIDIA NIM API key\": \"NVIDIA NIM API key\",\n\t\"Google Gemini API key\": \"Google Gemini API key\",\n\t\"Groq API key\": \"Groq API key\",\n\t\"Cerebras API key\": \"Cerebras API key\",\n\t\"xAI Grok API key\": \"xAI Grok API key\",\n\t\"Fireworks API key\": \"Fireworks API key\",\n\t\"Together AI API key\": \"Together AI API key\",\n\t\"Baseten API key\": \"Baseten API key\",\n\t\"OpenRouter API key\": \"OpenRouter API key\",\n\t\"Vercel AI Gateway API key\": \"Vercel AI Gateway API key\",\n\t\"ZAI Coding Plan API key (Global)\": \"ZAI Coding Plan API key(全球区)\",\n\t\"ZAI Coding Plan API key (China)\": \"ZAI Coding Plan API key(中国区)\",\n\t\"Mistral API key\": \"Mistral API key\",\n\t\"MiniMax API key\": \"MiniMax API key\",\n\t\"Moonshot AI API key\": \"Moonshot AI API key\",\n\t\"OpenCode Zen/OpenCode Go API key\": \"OpenCode Zen/OpenCode Go API key\",\n\t\"Kimi For Coding API key\": \"Kimi For Coding API key\",\n\t\"Cloudflare API token (Workers AI and AI Gateway)\": \"Cloudflare API 令牌(Workers AI 与 AI Gateway)\",\n\t\"Cloudflare account id (required for both)\": \"Cloudflare 账户 id(两者均需要)\",\n\t\"Cloudflare AI Gateway slug (required for AI Gateway)\": \"Cloudflare AI Gateway slug(AI Gateway 需要)\",\n\t\"Qwen Token Plan API key (international region)\": \"Qwen Token Plan API key(国际区)\",\n\t\"Qwen Token Plan API key (China region)\": \"Qwen Token Plan API key(中国区)\",\n\t\"Xiaomi MiMo API key (api.xiaomimimo.com billing)\": \"Xiaomi MiMo API key(按 api.xiaomimimo.com 计费)\",\n\t\"Xiaomi MiMo Token Plan API key (China region)\": \"Xiaomi MiMo Token Plan API key(中国区)\",\n\t\"Xiaomi MiMo Token Plan API key (Amsterdam region)\": \"Xiaomi MiMo Token Plan API key(阿姆斯特丹区)\",\n\t\"Xiaomi MiMo Token Plan API key (Singapore region)\": \"Xiaomi MiMo Token Plan API key(新加坡区)\",\n\t\"AWS profile for Amazon Bedrock\": \"Amazon Bedrock 的 AWS profile\",\n\t\"AWS access key for Amazon Bedrock\": \"Amazon Bedrock 的 AWS access key\",\n\t\"AWS secret key for Amazon Bedrock\": \"Amazon Bedrock 的 AWS secret key\",\n\t\"Bedrock API key (bearer token)\": \"Bedrock API key(bearer token)\",\n\t\"AWS region for Amazon Bedrock (e.g., us-east-1)\": \"Amazon Bedrock 的 AWS 区域(如 us-east-1)\",\n\t\"Config directory (default: ~/{configDir}/agent)\": \"配置目录(默认:~/{configDir}/agent)\",\n\t\"Session storage directory (overridden by --session-dir)\": \"会话存储目录(--session-dir 可覆盖)\",\n\t\"Override package directory (for Nix/Guix store paths)\": \"覆盖包目录(用于 Nix/Guix store 路径)\",\n\t\"Disable startup network operations when set to 1/true/yes\": \"设为 1/true/yes 时禁用启动网络操作\",\n\n\t// --- args.ts:printHelp 内置工具描述 ---\n\t\"Read file contents\": \"读取文件内容\",\n\t\"Execute bash commands\": \"执行 bash 命令\",\n\t\"Execute PowerShell commands on Windows\": \"在 Windows 上执行 PowerShell 命令\",\n\t\"Edit files with find/replace\": \"以查找/替换方式编辑文件\",\n\t\"Write files (creates/overwrites)\": \"写文件(创建/覆盖)\",\n\t\"Search file contents (read-only, off by default)\": \"搜索文件内容(只读,默认关闭)\",\n\t\"Find files by glob pattern (read-only, off by default)\": \"按 glob 模式查找文件(只读,默认关闭)\",\n\t\"List directory contents (read-only, off by default)\": \"列出目录内容(只读,默认关闭)\",\n\n\t// --- auth-command.ts:printAuthCommandHelp ---\n\t\"Auth commands require at least one of --provider or --model. Checks refresh expired OAuth credentials by default; --no-refresh prevents this. --credentials emits the credential, or includes it in JSON output. --no-refresh also leaves command-backed keys unresolved: --credentials reports them as unavailable instead of running the command.\":\n\t\t\"auth 命令需要 --provider 或 --model 至少其一。check 默认刷新已过期的 OAuth 凭证;--no-refresh 可阻止。--credentials 输出凭证,或将其包含在 JSON 输出中。--no-refresh 同时不解析命令型 key:--credentials 将其报告为不可用,而不会执行该命令。\",\n\n\t// --- list-models.ts ---\n\t\"Warning: errors loading models.json:\\n{loadError}\": \"警告:加载 models.json 出错:\\n{loadError}\",\n\t'No models matching \"{searchPattern}\"': '没有匹配 \"{searchPattern}\" 的模型',\n\tprovider: \"提供商\",\n\tmodel: \"模型\",\n\tcontext: \"上下文\",\n\t\"max-out\": \"最大输出\",\n\tthinking: \"思考\",\n\timages: \"图像\",\n\n\t// --- print-mode.ts ---\n\t\"{label}: {url}\": \"{label}:{url}\",\n\t\"Request {stopReason}\": \"请求 {stopReason}\",\n\n\t// --- serve.ts ---\n\t\"remote-server error: {error}\": \"remote-server 错误:{error}\",\n\t\"Port {port} is already in use\": \"端口 {port} 已被占用\",\n\t\"Remote server shutdown failed: {error}\": \"远程服务器关闭失败:{error}\",\n\t\"Remote server listening on {addresses}\": \"远程服务器监听于 {addresses}\",\n};\n"]}
1
+ {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/cli.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,GAAG,GAA2B;IAC1C,iDAA6B;IAC7B,kBAAkB,EAAE,oBAAc;IAClC,oBAAoB,EAAE,oBAAc;IACpC,8BAA8B,EAAE,0BAAc;IAC9C,8BAA8B,EAAE,oBAAQ;IACxC,0BAA0B,EAAE,oBAAQ;IACpC,uBAAuB,EAAE,yBAAe;IAExC,4CAA8B;IAC9B,oCAAoC,EAAE,gCAAoB;IAC1D,4BAA4B,EAAE,qCAA2B;IAEzD,uCAA6B;IAC7B,+BAA+B,EAAE,uCAA2B;IAC5D,6CAA6C,EAAE,6DAAyC;IACxF,qFAAqF,EACpF,2EAAyC;IAC1C,+FAA+F,EAC9F,qFAA2C;IAC5C,+HAA+H,EAC9H,kHAAoD;IACrD,sBAAsB,EAAE,wBAAkB;IAC1C,wCAAwC,EAAE,uCAAuB;IACjE,+DAA+D,EAC9D,qEAAyC;IAC1C,qFAAqF,EACpF,2EAA2C;IAC5C,gGAA8F,EAC7F,iGAA6D;IAC9D,sEAAsE,EAAE,yDAA6B;IACrG,yDAAyD,EAAE,uDAA6B;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EAAE,yCAA6B;IACvE,8BAA8B,EAAE,oCAAc;IAC9C,kCAAkC,EAAE,8BAAY;IAChD,kDAAkD,EAAE,+CAAiB;IACrE,wDAAwD,EAAE,wDAAwB;IAClF,qDAAqD,EAAE,+CAAiB;IAExE,iDAA+C;IAC/C,qVAAqV,EACpV,kTAA4K;IAE7K,yBAAyB;IACzB,mDAAmD,EAAE,oDAAoC;IACzF,sCAAsC,EAAE,0CAA4B;IACpE,QAAQ,EAAE,WAAK;IACf,KAAK,EAAE,QAAI;IACX,OAAO,EAAE,WAAK;IACd,SAAS,EAAE,cAAM;IACjB,QAAQ,EAAE,QAAI;IACd,MAAM,EAAE,QAAI;IAEZ,wBAAwB;IACxB,gBAAgB,EAAE,iBAAe;IACjC,sBAAsB,EAAE,qBAAiB;IAEzC,mBAAmB;IACnB,8BAA8B,EAAE,gCAA0B;IAC1D,+BAA+B,EAAE,4BAAgB;IACjD,wCAAwC,EAAE,uCAAmB;IAC7D,wCAAwC,EAAE,sCAAsB;CAChE,CAAC","sourcesContent":["/**\n * CLI 输出层域词典(docs/design/国际化与本地化.md §3,批次⑤):覆盖\n * main.ts 启动/错误输出、--help(printHelp)、auth help、--list-models、\n * print-mode 的用户可见文案。key 为英文原文,占位符 `{name}` 原样保留。\n * 命令名、flag、路径、环境变量、suite 等代码标识符不译。\n */\nexport const cli: Record<string, string> = {\n\t// --- main.ts:诊断/错误前缀与兜底 ---\n\t\"Error: {message}\": \"错误:{message}\",\n\t\"Warning: {message}\": \"警告:{message}\",\n\t\"Failed to parse auth command\": \"解析 auth 命令失败\",\n\t\"Failed to resolve credential\": \"解析凭证失败\",\n\t\"Failed to export session\": \"导出会话失败\",\n\t\"Exported to: {result}\": \"已导出到:{result}\",\n\n\t// --- main.ts:auth 命令参数错误 ---\n\t'Invalid arguments for \"{command}\".': '\"{command}\" 的参数无效。',\n\t'Use \"{help}\" or \"{usage}\".': '请使用 \"{help}\" 或 \"{usage}\"。',\n\n\t// --- main.ts:suite 生命周期 ---\n\t'Created suite \"{id}\" at {dir}': '已创建 suite \"{id}\",位于 {dir}',\n\t\"Error: --clone-from requires --suite-create\": \"错误:--clone-from 需要与 --suite-create 一起使用\",\n\t'Error: suite \"{id}\" is referenced by {count} existing session(s); deletion refused:':\n\t\t'错误:suite \"{id}\" 被 {count} 个现有会话引用,拒绝删除:',\n\t'Deleting suite \"{id}\": the workspace directory {dir} will be moved to the trash and released.':\n\t\t'正在删除 suite \"{id}\":工作区目录 {dir} 将被移入回收站并释放。',\n\t'Refusing to delete suite \"{id}\" without an interactive confirmation (non-interactive stdin). Re-run in a terminal to confirm.':\n\t\t'拒绝删除 suite \"{id}\":缺少交互式确认(stdin 非交互)。请在终端中重新运行以确认。',\n\t'Delete suite \"{id}\"?': '删除 suite \"{id}\"?',\n\t'Aborted: suite \"{id}\" was not deleted.': '已中止:suite \"{id}\" 未删除。',\n\t'Cleared the {scope} settings \"suite\" key (pointed at \"{id}\").':\n\t\t'已清除 {scope} 设置中的 \"suite\" 键(原指向 \"{id}\")。',\n\t'Deleted suite \"{id}\"; the workspace was moved to {trashPath} and is being released.':\n\t\t'已删除 suite \"{id}\";工作区已移至 {trashPath},正在释放。',\n\t'Suite \"{id}\" is a user suite; only builtin suites can be reset — use --suite-delete instead.':\n\t\t'suite \"{id}\" 是用户 suite;只有内置 suite 可以重置——请改用 --suite-delete。',\n\t'Suite \"{id}\" already matches the factory contents; nothing to reset.': 'suite \"{id}\" 已与出厂内容一致,无需重置。',\n\t'Resetting builtin suite \"{id}\" to the factory contents:': '正在将内置 suite \"{id}\" 重置为出厂内容:',\n\t'Refusing to reset suite \"{id}\" without an interactive confirmation (non-interactive stdin). Review the diff above and re-run in a terminal to confirm.':\n\t\t'拒绝重置 suite \"{id}\":缺少交互式确认(stdin 非交互)。请先查看上方 diff,再在终端中重新运行以确认。',\n\t'Apply reset of suite \"{id}\"?': '应用 suite \"{id}\" 的重置?',\n\t'Aborted: suite \"{id}\" was not reset.': '已中止:suite \"{id}\" 未重置。',\n\t'Suite \"{id}\" was reset to the factory contents (profile lock generation {generation}).':\n\t\t'suite \"{id}\" 已重置为出厂内容(profile lock 代数 {generation})。',\n\n\t// --- main.ts:flag 冲突与模式错误 ---\n\t\"Error: --fork cannot be combined with {flags}\": \"错误:--fork 不能与 {flags} 组合使用\",\n\t\"Error: --session-id cannot be combined with {flags}. To resume that exact session, drop the other flags and use --session-id alone (or use --continue to resume the most recent session).\":\n\t\t\"错误:--session-id 不能与 {flags} 组合使用。要恢复该确切会话,请去掉其他 flag,单独使用 --session-id(或使用 --continue 恢复最近会话)。\",\n\t\"Error: --serve cannot be combined with {flags}\": \"错误:--serve 不能与 {flags} 组合使用\",\n\t\"--serve ignores session/model/tool options: {flags}\": \"--serve 会忽略会话/模型/工具选项:{flags}\",\n\t\"Error: @file arguments are not supported in RPC mode\": \"错误:RPC 模式不支持 @file 参数\",\n\t\"Error: --name requires a non-empty value\": \"错误:--name 需要非空值\",\n\t\"Error: AGENT_FORGE_STARTUP_BENCHMARK only supports interactive mode\":\n\t\t\"错误:AGENT_FORGE_STARTUP_BENCHMARK 仅支持交互模式\",\n\n\t// --- main.ts:会话选择/创建 ---\n\t\"Session already exists with id '{sessionId}'\": \"已存在 id 为 '{sessionId}' 的会话\",\n\t\"No session found matching '{arg}'\": \"没有找到匹配 '{arg}' 的会话\",\n\t\"Session found in different project: {cwd}\": \"会话位于其他项目:{cwd}\",\n\t\"Fork this session into current directory?\": \"将该会话 fork 到当前目录?\",\n\t\"Aborted.\": \"已中止。\",\n\t\"No session selected\": \"未选择会话\",\n\t\"Warning: No project session found with id '{sessionId}'; creating a new session with that id.\":\n\t\t\"警告:没有找到 id 为 '{sessionId}' 的项目会话;将创建使用该 id 的新会话。\",\n\n\t// --- main.ts:插件 bootstrap/拒绝 ---\n\t\"Plugin bootstrap {code}: {message}\": \"插件 bootstrap {code}:{message}\",\n\t\"First run: installing {count} factory plugins…\": \"首次运行:正在安装 {count} 个出厂插件…\",\n\t\"{pluginId}: installed {version}\": \"{pluginId}:已安装 {version}\",\n\t\"{pluginId}: install failed ({code}) — startup continues; the next startup retries automatically\":\n\t\t\"{pluginId}:安装失败({code})——启动继续,下次启动将自动重试\",\n\t\"Offline posture (AGENT_FORGE_OFFLINE) skips the startup plugin bootstrap; run `agent-forge plugin install <package>` explicitly to install plugins.\":\n\t\t\"离线姿态(AGENT_FORGE_OFFLINE)跳过启动插件引导;可用 `agent-forge plugin install <包名>` 显式安装插件。\",\n\t\"Warning: capability plugin rejected ({code}): {target}: {message}\":\n\t\t\"警告:能力插件被拒绝({code}):{target}:{message}\",\n\n\t// --- args.ts:printHelp 节标题与标题行 ---\n\t\"AI coding assistant with read, bash, edit, write tools\": \"具备 read、bash、edit、write 工具的 AI 编程助手\",\n\t\"Usage:\": \"用法:\",\n\t\"Commands:\": \"命令:\",\n\t\"Options:\": \"选项:\",\n\t\"Examples:\": \"示例:\",\n\t\"Environment Variables:\": \"环境变量:\",\n\t\"Built-in Tool Names:\": \"内置工具名:\",\n\n\t// --- args.ts:printHelp Commands 描述 ---\n\t\"Install extension source and add to settings\": \"安装扩展源并加入设置\",\n\t\"Remove extension source from settings\": \"从设置中移除扩展源\",\n\t\"Alias for remove\": \"remove 的别名\",\n\t\"Update Agent Forge, extensions, or model catalogs\": \"更新 Agent Forge、扩展或模型目录\",\n\t\"List installed extensions from settings\": \"列出设置中已安装的扩展\",\n\t\"Open TUI to enable/disable package resources (Tab switches scope)\": \"打开 TUI 启用/禁用包资源(Tab 切换作用域)\",\n\t\"Print credentials or check provider readiness\": \"打印凭证或检查提供商就绪状态\",\n\t\"Show help for install/remove/uninstall/update/list/config/auth\":\n\t\t\"显示 install/remove/uninstall/update/list/config/auth 的帮助\",\n\n\t// --- args.ts:printHelp Options 描述 ---\n\t\"Provider name (default: google)\": \"提供商名称(默认:google)\",\n\t'Model pattern or ID (supports \"provider/id\" and optional \":<thinking>\")':\n\t\t'模型模式或 ID(支持 \"provider/id\" 与可选的 \":<thinking>\")',\n\t\"API key (defaults to env vars)\": \"API key(默认取自环境变量)\",\n\t\"System prompt (default: coding assistant prompt)\": \"系统提示词(默认:编程助手提示词)\",\n\t\"Append text or file contents to the system prompt (can be used multiple times)\":\n\t\t\"向系统提示词追加文本或文件内容(可多次使用)\",\n\t\"Output mode: text (default), json, or rpc\": \"输出模式:text(默认)、json 或 rpc\",\n\t\"Non-interactive mode: process prompt and exit\": \"非交互模式:处理提示后退出\",\n\t\"Continue previous session\": \"继续上一个会话\",\n\t\"Select a session to resume\": \"选择要恢复的会话\",\n\t\"Use specific session file or partial UUID\": \"使用指定会话文件或部分 UUID\",\n\t\"Use exact project session ID, creating it if missing\": \"使用精确的项目会话 ID,不存在则创建\",\n\t\"Fork specific session file or partial UUID into a new session\": \"将指定会话文件或部分 UUID fork 为新会话\",\n\t\"Directory for session storage and lookup\": \"会话存储与查找目录\",\n\t\"Suite (方案) for this run: coding (default) or assistant; new sessions only\":\n\t\t\"本次运行的 suite(方案):coding(默认)或 assistant;仅对新会话生效\",\n\t\"Create a user suite workspace and exit; add --clone-from <id> to copy one\":\n\t\t\"创建用户 suite 工作区并退出;加 --clone-from <id> 可复制既有 suite\",\n\t\"Delete a user suite workspace (active session references refuse) and exit\":\n\t\t\"删除用户 suite 工作区(存在活动会话引用时拒绝)并退出\",\n\t\"Reset a builtin suite to factory contents (shows a diff) and exit\":\n\t\t\"将内置 suite 重置为出厂内容(显示 diff)并退出\",\n\t\"(Experimental, local trust only) Serve the coding-agent session runtime over the WebSocket gateway (default: 127.0.0.1; HTTP surface: /healthz plus token-protected artifact reads) and exit on SIGINT/SIGTERM\":\n\t\t\"(实验性,仅限本地信任)经 WebSocket 网关提供 coding-agent 会话运行时(默认:127.0.0.1;HTTP 面:/healthz 及受令牌保护的产物读取),SIGINT/SIGTERM 时退出\",\n\t\"Durable journal: <agentDir>/remote-server-journal.jsonl (never the process cwd)\":\n\t\t\"持久日志:<agentDir>/remote-server-journal.jsonl(绝不写入进程 cwd)\",\n\t\"Opt-in --serve boundary: remote creates must run inside one of these roots (repeatable); without it any local directory is allowed\":\n\t\t\"--serve 的可选边界:远程创建必须在这些根目录内运行(可重复);未指定时允许任意本地目录\",\n\t\"(Experimental) Run as a headless subagent runner: serve the subagent-task protocol on stdio for a parent session's runner pool (D-045)\":\n\t\t\"(实验性)作为无头子代理运行器:在 stdio 上为父会话的 runner 池提供 subagent-task 协议(D-045)\",\n\t\"Don't save session (ephemeral)\": \"不保存会话(一次性)\",\n\t\"Set session display name\": \"设置会话显示名称\",\n\t\"Comma-separated model patterns for Ctrl+P cycling\": \"逗号分隔的模型模式,用于 Ctrl+P 轮换\",\n\t\"Supports globs (anthropic/*, *sonnet*) and fuzzy matching\": \"支持 glob(anthropic/*、*sonnet*)与模糊匹配\",\n\t\"Disable all tools by default (built-in and plugin)\": \"默认禁用全部工具(内置与插件)\",\n\t\"Disable built-in tools by default but keep plugin/custom tools enabled\":\n\t\t\"默认禁用内置工具,但保持插件/自定义工具可用\",\n\t\"Comma-separated allowlist of tool names to enable\": \"逗号分隔的工具名白名单\",\n\t\"Applies to built-in, plugin, and custom tools\": \"作用于内置、插件与自定义工具\",\n\t\"Comma-separated denylist of tool names to disable\": \"逗号分隔的工具名黑名单\",\n\t\"Set thinking level: off, minimal, low, medium, high, xhigh, max\":\n\t\t\"设置思考级别:off、minimal、low、medium、high、xhigh、max\",\n\t\"Disable capability plugin discovery (D-028 escape hatch)\": \"禁用能力插件发现(D-028 逃生口)\",\n\t\"Disable session trace collection (no .trace.jsonl file is written)\": \"禁用会话轨迹收集(不写 .trace.jsonl 文件)\",\n\t\"Host log level: debug, info (default), warn, error\": \"宿主日志级别:debug、info(默认)、warn、error\",\n\t\"Select a builtin capability plugin profile for this run\": \"为本次运行选择内置能力插件 profile\",\n\t\"Select a plugin within the profile (repeatable)\": \"在 profile 内选择插件(可重复)\",\n\t\"Disable a plugin within the profile (repeatable)\": \"在 profile 内禁用插件(可重复)\",\n\t\"Read the explicit selection from global or project storage\": \"从全局或项目存储读取显式选择\",\n\t\"List installed/available ecosystem plugins (independent namespace)\": \"列出已安装/可用的生态插件(独立命名空间)\",\n\t\"Load a skill file or directory (can be used multiple times)\": \"加载 skill 文件或目录(可多次使用)\",\n\t\"Disable skills discovery and loading\": \"禁用 skill 发现与加载\",\n\t\"Load a prompt template file or directory (can be used multiple times)\": \"加载提示词模板文件或目录(可多次使用)\",\n\t\"Disable prompt template discovery and loading\": \"禁用提示词模板发现与加载\",\n\t\"Load a theme file or directory (can be used multiple times)\": \"加载主题文件或目录(可多次使用)\",\n\t\"Set the initial interactive theme for this run\": \"设置本次运行的初始交互主题\",\n\t\"Disable theme discovery and loading\": \"禁用主题发现与加载\",\n\t\"Disable AGENTS.md and CLAUDE.md discovery and loading\": \"禁用 AGENTS.md 与 CLAUDE.md 的发现与加载\",\n\t\"Export session file to HTML and exit\": \"将会话文件导出为 HTML 并退出\",\n\t\"View a session trace file as a text timeline and exit; <session> is a session id/prefix or trace/session file path, omit it for the most recent session\":\n\t\t\"以文本时间线查看会话轨迹文件并退出;<session> 为会话 id/前缀或轨迹/会话文件路径,省略则查看最近会话\",\n\t\"With --trace, output the structured trace records as JSON instead of the text timeline\":\n\t\t\"配合 --trace,以 JSON 输出结构化轨迹记录,而非文本时间线\",\n\t\"With --trace, show only records of these kinds (comma-separated); valid kinds: {kinds}\":\n\t\t\"配合 --trace,只显示这些类型的记录(逗号分隔);有效类型:{kinds}\",\n\t\"With --trace, show only the last N records (positive integer)\": \"配合 --trace,只显示最后 N 条记录(正整数)\",\n\t\"List available models (with optional fuzzy search)\": \"列出可用模型(可选模糊搜索)\",\n\t\"Force verbose startup (overrides quietStartup setting)\": \"强制详细启动(覆盖 quietStartup 设置)\",\n\t\"TUI mode: regular (default) or fullscreen\": \"TUI 模式:regular(默认)或 fullscreen\",\n\t\"Disable startup network operations (same as AGENT_FORGE_OFFLINE=1)\":\n\t\t\"禁用启动网络操作(等同 AGENT_FORGE_OFFLINE=1)\",\n\t\"End option parsing; treat remaining arguments as messages/files\": \"结束选项解析;剩余参数视为消息/文件\",\n\t\"Show this help\": \"显示此帮助\",\n\t\"Show version number\": \"显示版本号\",\n\n\t// --- args.ts:printHelp Examples 注释 ---\n\t\"Print a provider API key for an external client\": \"为外部客户端打印提供商 API key\",\n\t\"Print an OAuth bearer token for an external client (refreshes if expired)\":\n\t\t\"为外部客户端打印 OAuth bearer token(过期则刷新)\",\n\t\"Interactive mode\": \"交互模式\",\n\t\"Interactive mode with initial prompt\": \"带初始提示的交互模式\",\n\t\"Include files in initial message\": \"在初始消息中包含文件\",\n\t\"Non-interactive mode (process and exit)\": \"非交互模式(处理后退出)\",\n\t\"Prompt beginning with a dash\": \"以连字符开头的提示\",\n\t\"Multiple messages (interactive)\": \"多条消息(交互)\",\n\t\"Start a named session\": \"启动命名会话\",\n\t\"Use different model\": \"使用不同模型\",\n\t\"Use model with provider prefix (no --provider needed)\": \"使用带提供商前缀的模型(无需 --provider)\",\n\t\"Use model with thinking level shorthand\": \"使用思考级别简写形式的模型\",\n\t\"Limit model cycling to specific models\": \"将模型轮换限定为指定模型\",\n\t\"Limit to a specific provider with glob pattern\": \"用 glob 模式限定到指定提供商\",\n\t\"Cycle models with fixed thinking levels\": \"以固定思考级别轮换模型\",\n\t\"Start with a specific thinking level\": \"以指定思考级别启动\",\n\t\"Read-only mode (no file modifications possible)\": \"只读模式(不能修改文件)\",\n\t\"Disable one tool while keeping the rest available\": \"禁用单个工具,其余保持可用\",\n\t\"Export a session file to HTML\": \"导出会话文件为 HTML\",\n\n\t// --- args.ts:printHelp 环境变量描述 ---\n\t\"Anthropic bearer auth token\": \"Anthropic bearer 认证令牌\",\n\t\"Anthropic Claude API key\": \"Anthropic Claude API key\",\n\t\"Anthropic OAuth token (alternative to API key)\": \"Anthropic OAuth 令牌(API key 的替代)\",\n\t\"Ant Ling API key\": \"Ant Ling API key\",\n\t\"OpenAI GPT API key\": \"OpenAI GPT API key\",\n\t\"Azure OpenAI API key\": \"Azure OpenAI API key\",\n\t\"Azure OpenAI/Cognitive Services base URL (e.g. https://{resource}.openai.azure.com)\":\n\t\t\"Azure OpenAI/Cognitive Services base URL(如 https://{resource}.openai.azure.com)\",\n\t\"Azure OpenAI resource name (alternative to base URL)\": \"Azure OpenAI 资源名(base URL 的替代)\",\n\t\"Azure OpenAI API version (default: v1)\": \"Azure OpenAI API 版本(默认:v1)\",\n\t\"Azure OpenAI model=deployment map (comma-separated)\": \"Azure OpenAI 模型=部署映射(逗号分隔)\",\n\t\"DeepSeek API key\": \"DeepSeek API key\",\n\t\"NVIDIA NIM API key\": \"NVIDIA NIM API key\",\n\t\"Google Gemini API key\": \"Google Gemini API key\",\n\t\"Groq API key\": \"Groq API key\",\n\t\"Cerebras API key\": \"Cerebras API key\",\n\t\"xAI Grok API key\": \"xAI Grok API key\",\n\t\"Fireworks API key\": \"Fireworks API key\",\n\t\"Together AI API key\": \"Together AI API key\",\n\t\"Baseten API key\": \"Baseten API key\",\n\t\"OpenRouter API key\": \"OpenRouter API key\",\n\t\"Vercel AI Gateway API key\": \"Vercel AI Gateway API key\",\n\t\"ZAI Coding Plan API key (Global)\": \"ZAI Coding Plan API key(全球区)\",\n\t\"ZAI Coding Plan API key (China)\": \"ZAI Coding Plan API key(中国区)\",\n\t\"Mistral API key\": \"Mistral API key\",\n\t\"MiniMax API key\": \"MiniMax API key\",\n\t\"Moonshot AI API key\": \"Moonshot AI API key\",\n\t\"OpenCode Zen/OpenCode Go API key\": \"OpenCode Zen/OpenCode Go API key\",\n\t\"Kimi For Coding API key\": \"Kimi For Coding API key\",\n\t\"Cloudflare API token (Workers AI and AI Gateway)\": \"Cloudflare API 令牌(Workers AI 与 AI Gateway)\",\n\t\"Cloudflare account id (required for both)\": \"Cloudflare 账户 id(两者均需要)\",\n\t\"Cloudflare AI Gateway slug (required for AI Gateway)\": \"Cloudflare AI Gateway slug(AI Gateway 需要)\",\n\t\"Qwen Token Plan API key (international region)\": \"Qwen Token Plan API key(国际区)\",\n\t\"Qwen Token Plan API key (China region)\": \"Qwen Token Plan API key(中国区)\",\n\t\"Xiaomi MiMo API key (api.xiaomimimo.com billing)\": \"Xiaomi MiMo API key(按 api.xiaomimimo.com 计费)\",\n\t\"Xiaomi MiMo Token Plan API key (China region)\": \"Xiaomi MiMo Token Plan API key(中国区)\",\n\t\"Xiaomi MiMo Token Plan API key (Amsterdam region)\": \"Xiaomi MiMo Token Plan API key(阿姆斯特丹区)\",\n\t\"Xiaomi MiMo Token Plan API key (Singapore region)\": \"Xiaomi MiMo Token Plan API key(新加坡区)\",\n\t\"AWS profile for Amazon Bedrock\": \"Amazon Bedrock 的 AWS profile\",\n\t\"AWS access key for Amazon Bedrock\": \"Amazon Bedrock 的 AWS access key\",\n\t\"AWS secret key for Amazon Bedrock\": \"Amazon Bedrock 的 AWS secret key\",\n\t\"Bedrock API key (bearer token)\": \"Bedrock API key(bearer token)\",\n\t\"AWS region for Amazon Bedrock (e.g., us-east-1)\": \"Amazon Bedrock 的 AWS 区域(如 us-east-1)\",\n\t\"Config directory (default: ~/{configDir}/agent)\": \"配置目录(默认:~/{configDir}/agent)\",\n\t\"Session storage directory (overridden by --session-dir)\": \"会话存储目录(--session-dir 可覆盖)\",\n\t\"Override package directory (for Nix/Guix store paths)\": \"覆盖包目录(用于 Nix/Guix store 路径)\",\n\t\"Disable startup network operations when set to 1/true/yes\": \"设为 1/true/yes 时禁用启动网络操作\",\n\n\t// --- args.ts:printHelp 内置工具描述 ---\n\t\"Read file contents\": \"读取文件内容\",\n\t\"Execute bash commands\": \"执行 bash 命令\",\n\t\"Execute PowerShell commands on Windows\": \"在 Windows 上执行 PowerShell 命令\",\n\t\"Edit files with find/replace\": \"以查找/替换方式编辑文件\",\n\t\"Write files (creates/overwrites)\": \"写文件(创建/覆盖)\",\n\t\"Search file contents (read-only, off by default)\": \"搜索文件内容(只读,默认关闭)\",\n\t\"Find files by glob pattern (read-only, off by default)\": \"按 glob 模式查找文件(只读,默认关闭)\",\n\t\"List directory contents (read-only, off by default)\": \"列出目录内容(只读,默认关闭)\",\n\n\t// --- auth-command.ts:printAuthCommandHelp ---\n\t\"Auth commands require at least one of --provider or --model. Checks refresh expired OAuth credentials by default; --no-refresh prevents this. --credentials emits the credential, or includes it in JSON output. --no-refresh also leaves command-backed keys unresolved: --credentials reports them as unavailable instead of running the command.\":\n\t\t\"auth 命令需要 --provider 或 --model 至少其一。check 默认刷新已过期的 OAuth 凭证;--no-refresh 可阻止。--credentials 输出凭证,或将其包含在 JSON 输出中。--no-refresh 同时不解析命令型 key:--credentials 将其报告为不可用,而不会执行该命令。\",\n\n\t// --- list-models.ts ---\n\t\"Warning: errors loading models.json:\\n{loadError}\": \"警告:加载 models.json 出错:\\n{loadError}\",\n\t'No models matching \"{searchPattern}\"': '没有匹配 \"{searchPattern}\" 的模型',\n\tprovider: \"提供商\",\n\tmodel: \"模型\",\n\tcontext: \"上下文\",\n\t\"max-out\": \"最大输出\",\n\tthinking: \"思考\",\n\timages: \"图像\",\n\n\t// --- print-mode.ts ---\n\t\"{label}: {url}\": \"{label}:{url}\",\n\t\"Request {stopReason}\": \"请求 {stopReason}\",\n\n\t// --- serve.ts ---\n\t\"remote-server error: {error}\": \"remote-server 错误:{error}\",\n\t\"Port {port} is already in use\": \"端口 {port} 已被占用\",\n\t\"Remote server shutdown failed: {error}\": \"远程服务器关闭失败:{error}\",\n\t\"Remote server listening on {addresses}\": \"远程服务器监听于 {addresses}\",\n};\n"]}
@@ -6,7 +6,7 @@
6
6
  * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、
7
7
  * 包安装宿主与导出(package-*.ts / session-export.ts)。
8
8
  * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。
9
- * 机器匹配串不在此域:"aborted"、`timeout:` 前缀(tools/bash.ts 精确消费)、
9
+ * 机器匹配串不在此域:"aborted"、`timeout:` 前缀(tools/bash-operations.ts 经 bash 工具定义精确消费)、
10
10
  * "authHeader requires a resolved API key"(cause.message 精确匹配,保护清单)。
11
11
  */
12
12
  export declare const coreContractCore: Record<string, string>;
@@ -1 +1 @@
1
- {"version":3,"file":"core-contract-core.d.ts","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-contract-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6MnD,CAAC","sourcesContent":["/**\n * core-contract-core 域词典(批次⑨b):core 根层(不含 extensions/)与\n * agent-capability-contract 的 throw 契约错误文案。覆盖范围:能力契约 V1\n * 校验(agent-capability-contract.ts)、会话管理与压缩提交协议(session-manager.ts)、\n * 会话运行时守卫(agent-session*.ts)、embedded SDK 绑定(embedded-sdk.ts)、\n * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、\n * 包安装宿主与导出(package-*.ts / session-export.ts)。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n * 机器匹配串不在此域:\"aborted\"、`timeout:` 前缀(tools/bash.ts 精确消费)、\n * \"authHeader requires a resolved API key\"(cause.message 精确匹配,保护清单)。\n */\nexport const coreContractCore: Record<string, string> = {\n\t// ---- agent-capability-contract.ts:通用断言辅助(label 为字段路径,保持原文)----\n\t\"{label} must be a plain object\": \"{label} 必须是普通对象\",\n\t\"{label} has unsupported fields: {fields}\": \"{label} 包含不支持的字段:{fields}\",\n\t\"{label} is missing required field: {key}\": \"{label} 缺少必填字段:{key}\",\n\t\"{label} must be a non-empty string\": \"{label} 必须是非空字符串\",\n\t\"{label} must be a positive safe integer\": \"{label} 必须是正的安全整数\",\n\t\"{label} must be a non-negative safe integer\": \"{label} 必须是非负安全整数\",\n\t\"{label} must contain finite JSON numbers\": \"{label} 必须只包含有限 JSON 数字\",\n\t\"{label} must be JSON-compatible\": \"{label} 必须兼容 JSON\",\n\t\"{label} must not contain cycles\": \"{label} 不得包含循环引用\",\n\t\"{label} must contain only plain JSON objects\": \"{label} 必须只包含普通 JSON 对象\",\n\t\"{label} must be an array\": \"{label} 必须是数组\",\n\t\"{label} must not contain duplicates\": \"{label} 不得包含重复项\",\n\t\"{label} is invalid\": \"{label} 无效\",\n\t\"{label} contains duplicate capability: {capability}\": \"{label} 包含重复能力:{capability}\",\n\n\t// ---- agent-capability-contract.ts:Host context / 契约兼容性 ----\n\t\"Host context.mode is invalid\": \"Host context.mode 无效\",\n\t\"Host context.features must be an array\": \"Host context.features 必须是数组\",\n\t\"Host context.features must not contain duplicates\": \"Host context.features 不得包含重复项\",\n\t\"Host context.transports must be an array\": \"Host context.transports 必须是数组\",\n\t\"Host context.transports must not contain duplicates\": \"Host context.transports 不得包含重复项\",\n\t\"Contract compatibility result.version must be 1\": \"Contract compatibility result.version 必须为 1\",\n\t\"Contract compatibility result.compatible must be boolean\": \"Contract compatibility result.compatible 必须是布尔值\",\n\t\"Contract compatibility result.issues must be an array\": \"Contract compatibility result.issues 必须是数组\",\n\t\"Contract compatibility result.compatible must be false when issues exist\":\n\t\t\"存在 issue 时 Contract compatibility result.compatible 必须为 false\",\n\t\"Contract compatibility result.compatible must be true when no issues exist\":\n\t\t\"不存在 issue 时 Contract compatibility result.compatible 必须为 true\",\n\t\"Contract compatibility result.issues[{index}].code is invalid\":\n\t\t\"Contract compatibility result.issues[{index}].code 无效\",\n\t\"Contract compatibility result.issues[{index}].missingFeatures must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingFeatures 必须是字符串\",\n\t\"Contract compatibility result.issues[{index}].missingTransports must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingTransports 必须是字符串\",\n\t\"Agent capability contract.contractId must be {contractId}\":\n\t\t\"Agent capability contract.contractId 必须为 {contractId}\",\n\t\"Agent capability contract.version must be 1\": \"Agent capability contract.version 必须为 1\",\n\t\"Agent profile.optionalPlugins must not overlap requiredPlugins\":\n\t\t\"Agent profile.optionalPlugins 不得与 requiredPlugins 重叠\",\n\t\"Artifact reference.truncated must be boolean\": \"Artifact reference.truncated 必须是布尔值\",\n\n\t// ---- agent-capability-contract.ts:快照与信封校验(字段路径原样)----\n\t\"Agent definition snapshot.version must be 1\": \"Agent definition snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.version must be 1\": \"Agent instance snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.status is invalid\": \"Agent instance snapshot.status 无效\",\n\t\"Session revision.version must be 1\": \"Session revision.version 必须为 1\",\n\t\"Session revision.leafId is required\": \"Session revision.leafId 是必填项\",\n\t\"Session snapshot.version must be 1\": \"Session snapshot.version 必须为 1\",\n\t\"Session snapshot.revision.sessionId must match sessionId\":\n\t\t\"Session snapshot.revision.sessionId 必须与 sessionId 一致\",\n\t\"Error envelope.version must be 1\": \"Error envelope.version 必须为 1\",\n\t\"Error envelope.message must be a string\": \"Error envelope.message 必须是字符串\",\n\t\"Error envelope.retryable must be a boolean\": \"Error envelope.retryable 必须是布尔值\",\n\t\"Operation terminal is missing required field: version or status\":\n\t\t\"Operation terminal 缺少必填字段:version 或 status\",\n\t\"Operation terminal.version must be 1\": \"Operation terminal.version 必须为 1\",\n\t\"Operation snapshot.version must be 1\": \"Operation snapshot.version 必须为 1\",\n\t\"Operation snapshot.status is invalid\": \"Operation snapshot.status 无效\",\n\t\"Operation snapshot active status must not have a terminal\": \"Operation snapshot 处于活动状态时不得携带 terminal\",\n\t\"Operation snapshot terminal status requires a terminal\": \"Operation snapshot 处于终态时必须有 terminal\",\n\t\"Operation snapshot.terminal.status must match status\": \"Operation snapshot.terminal.status 必须与 status 一致\",\n\t\"Operation snapshot.inputRevision.sessionId must match sessionId\":\n\t\t\"Operation snapshot.inputRevision.sessionId 必须与 sessionId 一致\",\n\t\"Command request.version must be 1\": \"Command request.version 必须为 1\",\n\t\"Command request.expectedRevision.sessionId does not match target\":\n\t\t\"Command request.expectedRevision.sessionId 与 target 不匹配\",\n\t\"Command admission.version must be 1\": \"Command admission.version 必须为 1\",\n\t\"Command admission.status is invalid\": \"Command admission.status 无效\",\n\t\"Command admission accepted status requires an operation\": \"Command admission 为 accepted 状态时必须有 operation\",\n\t\"Command admission rejected status requires an error\": \"Command admission 为 rejected 状态时必须有 error\",\n\t\"Event envelope.version must be 1\": \"Event envelope.version 必须为 1\",\n\t\"Event envelope.category is invalid\": \"Event envelope.category 无效\",\n\t\"Event envelope.deliveryGuarantee is invalid\": \"Event envelope.deliveryGuarantee 无效\",\n\t\"Event envelope.correlationId requires a real operationId\": \"Event envelope.correlationId 需要真实的 operationId\",\n\t\"Event envelope.operationId requires correlationId\": \"Event envelope.operationId 需要 correlationId\",\n\n\t// ---- agent-capability-contract.ts:命令操作注册表与规范向量 ----\n\t\"Operation is not retained: {operationId}\": \"操作未被保留:{operationId}\",\n\t\"Operation already has a different terminal result: {operationId}\": \"操作已有不同的终态结果:{operationId}\",\n\t\"Canonical contract vector admission failed\": \"规范契约向量准入失败\",\n\t\"Canonical contract failed vector admission failed\": \"规范契约失败向量准入失败\",\n\t\"Canonical contract timeout vector admission failed\": \"规范契约超时向量准入失败\",\n\n\t// ---- session-manager.ts:JSON 序列化断言(field 为字段名,保持原文)----\n\t\"{field} must be JSON-serializable: non-finite number at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非有限数字\",\n\t\"{field} must be JSON-serializable: unsupported value at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在不支持的值\",\n\t\"{field} must be JSON-serializable: cyclic value at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在循环引用值\",\n\t\"{field} must be JSON-serializable: non-plain object at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非普通对象\",\n\t\"{field} must be JSON-serializable: symbol key at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在 symbol 键\",\n\t\"{field} must be JSON-serializable: accessor at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在访问器属性\",\n\n\t// ---- session-manager.ts:压缩提交协议校验(机器可读协议错误,照译;字段名原样)----\n\t\"Compaction commit request must be an object\": \"压缩提交请求必须是对象\",\n\t\"Unsupported compaction commit request version\": \"不支持的压缩提交请求版本\",\n\t\"operationId must be a non-empty string\": \"operationId 必须是非空字符串\",\n\t\"summary must be a non-empty string\": \"summary 必须是非空字符串\",\n\t\"firstKeptEntryId must be a non-empty string\": \"firstKeptEntryId 必须是非空字符串\",\n\t\"tokensBefore must be a non-negative finite number\": \"tokensBefore 必须是非负有限数字\",\n\t\"expectedRevision must be a valid SessionRevisionV1\": \"expectedRevision 必须是有效的 SessionRevisionV1\",\n\t\"operation_id_reused: {operationId}\": \"operation_id_reused:{operationId}\",\n\t\"first_kept_entry_not_on_current_branch: {firstKeptEntryId}\":\n\t\t\"first_kept_entry_not_on_current_branch:{firstKeptEntryId}\",\n\t\"Compaction operation entry is missing: {entryId}\": \"压缩操作条目缺失:{entryId}\",\n\n\t// ---- session-manager.ts / agent-session-compaction.ts:条目定位 ----\n\t\"Entry {id} not found\": \"未找到条目 {id}\",\n\n\t// ---- agent-session*.ts:会话运行时守卫 ----\n\t\"Capability runtime is not available\": \"能力运行时不可用\",\n\t\"Capability runtime is not initialized for provider request\": \"提供程序请求的能力运行时尚未初始化\",\n\t\"Session reload is already in progress\": \"会话重载已在进行中\",\n\t\"Session reload did not commit a generation\": \"会话重载未提交新代号\",\n\t\"Session context commit requires a message array\": \"会话上下文提交需要消息数组\",\n\t\"Context commit cancelled\": \"上下文提交已取消\",\n\t\"Context commit operationId is required\": \"上下文提交需要 operationId\",\n\t\"Context revision conflict: expected {expected}, current {current}\":\n\t\t\"上下文修订冲突:期望 {expected},当前 {current}\",\n\t\"Unsupported session export format: {format}\": \"不支持的会话导出格式:{format}\",\n\t\"Capability plugin manifest is already loaded: {path}\": \"能力插件 manifest 已加载:{path}\",\n\t\"Capability plugin is already loaded in this session: {id}\": \"该会话中能力插件已加载:{id}\",\n\t\"Capability plugin manifest path is unavailable: {id}\": \"能力插件 manifest 路径不可用:{id}\",\n\t\"Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message.\":\n\t\t\"Agent 正在处理中。请指定 streamingBehavior('steer' 或 'followUp')来排队消息。\",\n\t\"Command is registered by both CapabilityAPI and {source}: {command}\":\n\t\t\"命令同时被 CapabilityAPI 和 {source} 注册:{command}\",\n\n\t// ---- agent-session-compaction.ts:压缩策略与提交 ----\n\t\"Compaction policy returned an invalid preparation: {policyName}\": \"压缩策略返回了无效的准备结果:{policyName}\",\n\t\"Compaction commit revision conflict: expected {expectedSequence}/{expectedLeafId}, current {currentSequence}/{currentLeafId}\":\n\t\t\"压缩提交修订冲突:期望 {expectedSequence}/{expectedLeafId},当前 {currentSequence}/{currentLeafId}\",\n\t\"Compaction commit entry is unavailable: {entryId}\": \"压缩提交条目不可用:{entryId}\",\n\n\t// ---- agent-session-context.ts:上下文策略与转换 ----\n\t\"Context strategy is not configured\": \"未配置上下文策略\",\n\t\"Cannot {operation} while the session is running\": \"会话运行中无法执行 {operation}\",\n\t\"Session is disposed; context transition was cancelled\": \"会话已销毁;上下文转换已取消\",\n\t\"Session reload in progress; context transition was cancelled\": \"会话重载进行中;上下文转换已取消\",\n\t\"Context transition was superseded\": \"上下文转换已被取代\",\n\t\"Context strategy must return an AgentMessage array: {strategyName}\":\n\t\t\"上下文策略必须返回 AgentMessage 数组:{strategyName}\",\n\t\"Context transition requires an AgentMessage array: {strategyName}\":\n\t\t\"上下文转换需要 AgentMessage 数组:{strategyName}\",\n\t\"Context strategy must return structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文策略必须返回可结构化克隆的 AgentMessage 值:{strategyName}\",\n\t\"Context transition requires structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文转换需要可结构化克隆的 AgentMessage 值:{strategyName}\",\n\n\t// ---- agent-session-bash.ts / agent-session-runtime.ts ----\n\t\"Session is disposed; bash execution is unavailable\": \"会话已销毁;bash 执行不可用\",\n\t\"Session is disposed; bash results cannot be recorded\": \"会话已销毁;无法记录 bash 结果\",\n\t\"Invalid entry ID for forking\": \"用于分叉的条目 ID 无效\",\n\t\"Persisted session is missing a session file\": \"持久化会话缺少会话文件\",\n\n\t// ---- embedded-sdk.ts ----\n\t\"Embedded SDK binding is disposed: {label}\": \"Embedded SDK 绑定已销毁:{label}\",\n\t\"Embedded SDK run input must be JSON-compatible\": \"Embedded SDK 运行输入必须兼容 JSON\",\n\t\"Embedded SDK session requires revision support\": \"Embedded SDK 会话需要修订支持\",\n\t\"Embedded SDK has no defined Agent: {id}@{version}\": \"Embedded SDK 没有已定义的 Agent:{id}@{version}\",\n\t\"Embedded SDK lease does not belong to Agent instance: {id}\": \"Embedded SDK 租约不属于该 Agent 实例:{id}\",\n\t\"Embedded SDK disposal failed\": \"Embedded SDK 销毁失败\",\n\n\t// ---- agent-session.ts / agent-session-compaction.ts:认证重试提示(批次⑥调用点遗留缺失,本批补齐)----\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"\\\"{provider}\\\" 认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\n\t// ---- provider-composer.ts / model-registry.ts / model-runtime.ts ----\n\t'Provider {providerId}: \"api\" is required when registering streamSimple.':\n\t\t'提供商 {providerId}:注册 streamSimple 时必须指定 \"api\"。',\n\t\"No API provider registered for api: {api}\": \"未注册 api 为 {api} 的 API 提供商\",\n\t\"Provider config is required when registering by name\": \"按名称注册时必须提供提供商配置\",\n\t\"Provider id must not be empty.\": \"Provider id 不能为空。\",\n\n\t// ---- tools/:内置工具校验与命令状态 ----\n\t\"Invalid timeout: must be a finite number of seconds\": \"无效的超时值:必须是有限秒数\",\n\t\"Invalid timeout: maximum is {maxSeconds} seconds\": \"无效的超时值:最大为 {maxSeconds} 秒\",\n\t\"Working directory does not exist: {cwd}\\nCannot execute {shellName} commands.\":\n\t\t\"工作目录不存在:{cwd}\\n无法执行 {shellName} 命令。\",\n\t\"Command aborted\": \"命令已中止\",\n\t\"Command timed out after {seconds} seconds\": \"命令在 {seconds} 秒后超时\",\n\t\"Command terminated without an exit code\": \"命令结束时没有退出码\",\n\t\"Command exited with code {exitCode}\": \"命令退出码为 {exitCode}\",\n\t\"Replacement range is outside the base content.\": \"替换范围超出基准内容。\",\n\t\"Cannot preserve unchanged lines because the base content has a different line count.\":\n\t\t\"基准内容行数不同,无法保留未变更的行。\",\n\t\"edits[{previousIndex}] and edits[{currentIndex}] overlap in {path}. Merge them into one edit or target disjoint regions.\":\n\t\t\"{path} 中 edits[{previousIndex}] 与 edits[{currentIndex}] 重叠。请合并为一个编辑或改为不相交的区域。\",\n\t\"Edit tool input is invalid. edits must contain at least one replacement.\":\n\t\t\"Edit 工具输入无效。edits 必须至少包含一个替换。\",\n\t\"Could not edit file: {path}. {errorMessage}.\": \"无法编辑文件:{path}。{errorMessage}。\",\n\t\"Unknown tool name: {toolName}\": \"未知工具名:{toolName}\",\n\t\"Offset {offset} is beyond end of file ({totalLines} lines total)\":\n\t\t\"偏移 {offset} 超出文件末尾(共 {totalLines} 行)\",\n\t\"Cannot append to a finished output accumulator\": \"无法向已完成的输出累加器追加数据\",\n\n\t// ---- logger.ts / package-install-host.ts / package-resource-collection.ts / session-export.ts ----\n\t\"Host logger level must be one of {levels}; got {value}\": \"Host logger level 必须是 {levels} 之一;实际为 {value}\",\n\t\"Missing git install root\": \"缺少 git 安装根目录\",\n\t\"Refusing to use path outside package install root: {path}\": \"拒绝使用包安装根目录之外的路径:{path}\",\n\t\"Unknown resource type: {resourceType}\": \"未知资源类型:{resourceType}\",\n\t\"Cannot export a session without a session header\": \"没有会话头信息,无法导出会话\",\n};\n"]}
1
+ {"version":3,"file":"core-contract-core.d.ts","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-contract-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6MnD,CAAC","sourcesContent":["/**\n * core-contract-core 域词典(批次⑨b):core 根层(不含 extensions/)与\n * agent-capability-contract 的 throw 契约错误文案。覆盖范围:能力契约 V1\n * 校验(agent-capability-contract.ts)、会话管理与压缩提交协议(session-manager.ts)、\n * 会话运行时守卫(agent-session*.ts)、embedded SDK 绑定(embedded-sdk.ts)、\n * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、\n * 包安装宿主与导出(package-*.ts / session-export.ts)。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n * 机器匹配串不在此域:\"aborted\"、`timeout:` 前缀(tools/bash-operations.ts 经 bash 工具定义精确消费)、\n * \"authHeader requires a resolved API key\"(cause.message 精确匹配,保护清单)。\n */\nexport const coreContractCore: Record<string, string> = {\n\t// ---- agent-capability-contract.ts:通用断言辅助(label 为字段路径,保持原文)----\n\t\"{label} must be a plain object\": \"{label} 必须是普通对象\",\n\t\"{label} has unsupported fields: {fields}\": \"{label} 包含不支持的字段:{fields}\",\n\t\"{label} is missing required field: {key}\": \"{label} 缺少必填字段:{key}\",\n\t\"{label} must be a non-empty string\": \"{label} 必须是非空字符串\",\n\t\"{label} must be a positive safe integer\": \"{label} 必须是正的安全整数\",\n\t\"{label} must be a non-negative safe integer\": \"{label} 必须是非负安全整数\",\n\t\"{label} must contain finite JSON numbers\": \"{label} 必须只包含有限 JSON 数字\",\n\t\"{label} must be JSON-compatible\": \"{label} 必须兼容 JSON\",\n\t\"{label} must not contain cycles\": \"{label} 不得包含循环引用\",\n\t\"{label} must contain only plain JSON objects\": \"{label} 必须只包含普通 JSON 对象\",\n\t\"{label} must be an array\": \"{label} 必须是数组\",\n\t\"{label} must not contain duplicates\": \"{label} 不得包含重复项\",\n\t\"{label} is invalid\": \"{label} 无效\",\n\t\"{label} contains duplicate capability: {capability}\": \"{label} 包含重复能力:{capability}\",\n\n\t// ---- agent-capability-contract.ts:Host context / 契约兼容性 ----\n\t\"Host context.mode is invalid\": \"Host context.mode 无效\",\n\t\"Host context.features must be an array\": \"Host context.features 必须是数组\",\n\t\"Host context.features must not contain duplicates\": \"Host context.features 不得包含重复项\",\n\t\"Host context.transports must be an array\": \"Host context.transports 必须是数组\",\n\t\"Host context.transports must not contain duplicates\": \"Host context.transports 不得包含重复项\",\n\t\"Contract compatibility result.version must be 1\": \"Contract compatibility result.version 必须为 1\",\n\t\"Contract compatibility result.compatible must be boolean\": \"Contract compatibility result.compatible 必须是布尔值\",\n\t\"Contract compatibility result.issues must be an array\": \"Contract compatibility result.issues 必须是数组\",\n\t\"Contract compatibility result.compatible must be false when issues exist\":\n\t\t\"存在 issue 时 Contract compatibility result.compatible 必须为 false\",\n\t\"Contract compatibility result.compatible must be true when no issues exist\":\n\t\t\"不存在 issue 时 Contract compatibility result.compatible 必须为 true\",\n\t\"Contract compatibility result.issues[{index}].code is invalid\":\n\t\t\"Contract compatibility result.issues[{index}].code 无效\",\n\t\"Contract compatibility result.issues[{index}].missingFeatures must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingFeatures 必须是字符串\",\n\t\"Contract compatibility result.issues[{index}].missingTransports must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingTransports 必须是字符串\",\n\t\"Agent capability contract.contractId must be {contractId}\":\n\t\t\"Agent capability contract.contractId 必须为 {contractId}\",\n\t\"Agent capability contract.version must be 1\": \"Agent capability contract.version 必须为 1\",\n\t\"Agent profile.optionalPlugins must not overlap requiredPlugins\":\n\t\t\"Agent profile.optionalPlugins 不得与 requiredPlugins 重叠\",\n\t\"Artifact reference.truncated must be boolean\": \"Artifact reference.truncated 必须是布尔值\",\n\n\t// ---- agent-capability-contract.ts:快照与信封校验(字段路径原样)----\n\t\"Agent definition snapshot.version must be 1\": \"Agent definition snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.version must be 1\": \"Agent instance snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.status is invalid\": \"Agent instance snapshot.status 无效\",\n\t\"Session revision.version must be 1\": \"Session revision.version 必须为 1\",\n\t\"Session revision.leafId is required\": \"Session revision.leafId 是必填项\",\n\t\"Session snapshot.version must be 1\": \"Session snapshot.version 必须为 1\",\n\t\"Session snapshot.revision.sessionId must match sessionId\":\n\t\t\"Session snapshot.revision.sessionId 必须与 sessionId 一致\",\n\t\"Error envelope.version must be 1\": \"Error envelope.version 必须为 1\",\n\t\"Error envelope.message must be a string\": \"Error envelope.message 必须是字符串\",\n\t\"Error envelope.retryable must be a boolean\": \"Error envelope.retryable 必须是布尔值\",\n\t\"Operation terminal is missing required field: version or status\":\n\t\t\"Operation terminal 缺少必填字段:version 或 status\",\n\t\"Operation terminal.version must be 1\": \"Operation terminal.version 必须为 1\",\n\t\"Operation snapshot.version must be 1\": \"Operation snapshot.version 必须为 1\",\n\t\"Operation snapshot.status is invalid\": \"Operation snapshot.status 无效\",\n\t\"Operation snapshot active status must not have a terminal\": \"Operation snapshot 处于活动状态时不得携带 terminal\",\n\t\"Operation snapshot terminal status requires a terminal\": \"Operation snapshot 处于终态时必须有 terminal\",\n\t\"Operation snapshot.terminal.status must match status\": \"Operation snapshot.terminal.status 必须与 status 一致\",\n\t\"Operation snapshot.inputRevision.sessionId must match sessionId\":\n\t\t\"Operation snapshot.inputRevision.sessionId 必须与 sessionId 一致\",\n\t\"Command request.version must be 1\": \"Command request.version 必须为 1\",\n\t\"Command request.expectedRevision.sessionId does not match target\":\n\t\t\"Command request.expectedRevision.sessionId 与 target 不匹配\",\n\t\"Command admission.version must be 1\": \"Command admission.version 必须为 1\",\n\t\"Command admission.status is invalid\": \"Command admission.status 无效\",\n\t\"Command admission accepted status requires an operation\": \"Command admission 为 accepted 状态时必须有 operation\",\n\t\"Command admission rejected status requires an error\": \"Command admission 为 rejected 状态时必须有 error\",\n\t\"Event envelope.version must be 1\": \"Event envelope.version 必须为 1\",\n\t\"Event envelope.category is invalid\": \"Event envelope.category 无效\",\n\t\"Event envelope.deliveryGuarantee is invalid\": \"Event envelope.deliveryGuarantee 无效\",\n\t\"Event envelope.correlationId requires a real operationId\": \"Event envelope.correlationId 需要真实的 operationId\",\n\t\"Event envelope.operationId requires correlationId\": \"Event envelope.operationId 需要 correlationId\",\n\n\t// ---- agent-capability-contract.ts:命令操作注册表与规范向量 ----\n\t\"Operation is not retained: {operationId}\": \"操作未被保留:{operationId}\",\n\t\"Operation already has a different terminal result: {operationId}\": \"操作已有不同的终态结果:{operationId}\",\n\t\"Canonical contract vector admission failed\": \"规范契约向量准入失败\",\n\t\"Canonical contract failed vector admission failed\": \"规范契约失败向量准入失败\",\n\t\"Canonical contract timeout vector admission failed\": \"规范契约超时向量准入失败\",\n\n\t// ---- session-manager.ts:JSON 序列化断言(field 为字段名,保持原文)----\n\t\"{field} must be JSON-serializable: non-finite number at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非有限数字\",\n\t\"{field} must be JSON-serializable: unsupported value at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在不支持的值\",\n\t\"{field} must be JSON-serializable: cyclic value at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在循环引用值\",\n\t\"{field} must be JSON-serializable: non-plain object at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非普通对象\",\n\t\"{field} must be JSON-serializable: symbol key at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在 symbol 键\",\n\t\"{field} must be JSON-serializable: accessor at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在访问器属性\",\n\n\t// ---- session-manager.ts:压缩提交协议校验(机器可读协议错误,照译;字段名原样)----\n\t\"Compaction commit request must be an object\": \"压缩提交请求必须是对象\",\n\t\"Unsupported compaction commit request version\": \"不支持的压缩提交请求版本\",\n\t\"operationId must be a non-empty string\": \"operationId 必须是非空字符串\",\n\t\"summary must be a non-empty string\": \"summary 必须是非空字符串\",\n\t\"firstKeptEntryId must be a non-empty string\": \"firstKeptEntryId 必须是非空字符串\",\n\t\"tokensBefore must be a non-negative finite number\": \"tokensBefore 必须是非负有限数字\",\n\t\"expectedRevision must be a valid SessionRevisionV1\": \"expectedRevision 必须是有效的 SessionRevisionV1\",\n\t\"operation_id_reused: {operationId}\": \"operation_id_reused:{operationId}\",\n\t\"first_kept_entry_not_on_current_branch: {firstKeptEntryId}\":\n\t\t\"first_kept_entry_not_on_current_branch:{firstKeptEntryId}\",\n\t\"Compaction operation entry is missing: {entryId}\": \"压缩操作条目缺失:{entryId}\",\n\n\t// ---- session-manager.ts / agent-session-compaction.ts:条目定位 ----\n\t\"Entry {id} not found\": \"未找到条目 {id}\",\n\n\t// ---- agent-session*.ts:会话运行时守卫 ----\n\t\"Capability runtime is not available\": \"能力运行时不可用\",\n\t\"Capability runtime is not initialized for provider request\": \"提供程序请求的能力运行时尚未初始化\",\n\t\"Session reload is already in progress\": \"会话重载已在进行中\",\n\t\"Session reload did not commit a generation\": \"会话重载未提交新代号\",\n\t\"Session context commit requires a message array\": \"会话上下文提交需要消息数组\",\n\t\"Context commit cancelled\": \"上下文提交已取消\",\n\t\"Context commit operationId is required\": \"上下文提交需要 operationId\",\n\t\"Context revision conflict: expected {expected}, current {current}\":\n\t\t\"上下文修订冲突:期望 {expected},当前 {current}\",\n\t\"Unsupported session export format: {format}\": \"不支持的会话导出格式:{format}\",\n\t\"Capability plugin manifest is already loaded: {path}\": \"能力插件 manifest 已加载:{path}\",\n\t\"Capability plugin is already loaded in this session: {id}\": \"该会话中能力插件已加载:{id}\",\n\t\"Capability plugin manifest path is unavailable: {id}\": \"能力插件 manifest 路径不可用:{id}\",\n\t\"Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message.\":\n\t\t\"Agent 正在处理中。请指定 streamingBehavior('steer' 或 'followUp')来排队消息。\",\n\t\"Command is registered by both CapabilityAPI and {source}: {command}\":\n\t\t\"命令同时被 CapabilityAPI 和 {source} 注册:{command}\",\n\n\t// ---- agent-session-compaction.ts:压缩策略与提交 ----\n\t\"Compaction policy returned an invalid preparation: {policyName}\": \"压缩策略返回了无效的准备结果:{policyName}\",\n\t\"Compaction commit revision conflict: expected {expectedSequence}/{expectedLeafId}, current {currentSequence}/{currentLeafId}\":\n\t\t\"压缩提交修订冲突:期望 {expectedSequence}/{expectedLeafId},当前 {currentSequence}/{currentLeafId}\",\n\t\"Compaction commit entry is unavailable: {entryId}\": \"压缩提交条目不可用:{entryId}\",\n\n\t// ---- agent-session-context.ts:上下文策略与转换 ----\n\t\"Context strategy is not configured\": \"未配置上下文策略\",\n\t\"Cannot {operation} while the session is running\": \"会话运行中无法执行 {operation}\",\n\t\"Session is disposed; context transition was cancelled\": \"会话已销毁;上下文转换已取消\",\n\t\"Session reload in progress; context transition was cancelled\": \"会话重载进行中;上下文转换已取消\",\n\t\"Context transition was superseded\": \"上下文转换已被取代\",\n\t\"Context strategy must return an AgentMessage array: {strategyName}\":\n\t\t\"上下文策略必须返回 AgentMessage 数组:{strategyName}\",\n\t\"Context transition requires an AgentMessage array: {strategyName}\":\n\t\t\"上下文转换需要 AgentMessage 数组:{strategyName}\",\n\t\"Context strategy must return structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文策略必须返回可结构化克隆的 AgentMessage 值:{strategyName}\",\n\t\"Context transition requires structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文转换需要可结构化克隆的 AgentMessage 值:{strategyName}\",\n\n\t// ---- agent-session-bash.ts / agent-session-runtime.ts ----\n\t\"Session is disposed; bash execution is unavailable\": \"会话已销毁;bash 执行不可用\",\n\t\"Session is disposed; bash results cannot be recorded\": \"会话已销毁;无法记录 bash 结果\",\n\t\"Invalid entry ID for forking\": \"用于分叉的条目 ID 无效\",\n\t\"Persisted session is missing a session file\": \"持久化会话缺少会话文件\",\n\n\t// ---- embedded-sdk.ts ----\n\t\"Embedded SDK binding is disposed: {label}\": \"Embedded SDK 绑定已销毁:{label}\",\n\t\"Embedded SDK run input must be JSON-compatible\": \"Embedded SDK 运行输入必须兼容 JSON\",\n\t\"Embedded SDK session requires revision support\": \"Embedded SDK 会话需要修订支持\",\n\t\"Embedded SDK has no defined Agent: {id}@{version}\": \"Embedded SDK 没有已定义的 Agent:{id}@{version}\",\n\t\"Embedded SDK lease does not belong to Agent instance: {id}\": \"Embedded SDK 租约不属于该 Agent 实例:{id}\",\n\t\"Embedded SDK disposal failed\": \"Embedded SDK 销毁失败\",\n\n\t// ---- agent-session.ts / agent-session-compaction.ts:认证重试提示(批次⑥调用点遗留缺失,本批补齐)----\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"\\\"{provider}\\\" 认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\n\t// ---- provider-composer.ts / model-registry.ts / model-runtime.ts ----\n\t'Provider {providerId}: \"api\" is required when registering streamSimple.':\n\t\t'提供商 {providerId}:注册 streamSimple 时必须指定 \"api\"。',\n\t\"No API provider registered for api: {api}\": \"未注册 api 为 {api} 的 API 提供商\",\n\t\"Provider config is required when registering by name\": \"按名称注册时必须提供提供商配置\",\n\t\"Provider id must not be empty.\": \"Provider id 不能为空。\",\n\n\t// ---- tools/:内置工具校验与命令状态 ----\n\t\"Invalid timeout: must be a finite number of seconds\": \"无效的超时值:必须是有限秒数\",\n\t\"Invalid timeout: maximum is {maxSeconds} seconds\": \"无效的超时值:最大为 {maxSeconds} 秒\",\n\t\"Working directory does not exist: {cwd}\\nCannot execute {shellName} commands.\":\n\t\t\"工作目录不存在:{cwd}\\n无法执行 {shellName} 命令。\",\n\t\"Command aborted\": \"命令已中止\",\n\t\"Command timed out after {seconds} seconds\": \"命令在 {seconds} 秒后超时\",\n\t\"Command terminated without an exit code\": \"命令结束时没有退出码\",\n\t\"Command exited with code {exitCode}\": \"命令退出码为 {exitCode}\",\n\t\"Replacement range is outside the base content.\": \"替换范围超出基准内容。\",\n\t\"Cannot preserve unchanged lines because the base content has a different line count.\":\n\t\t\"基准内容行数不同,无法保留未变更的行。\",\n\t\"edits[{previousIndex}] and edits[{currentIndex}] overlap in {path}. Merge them into one edit or target disjoint regions.\":\n\t\t\"{path} 中 edits[{previousIndex}] 与 edits[{currentIndex}] 重叠。请合并为一个编辑或改为不相交的区域。\",\n\t\"Edit tool input is invalid. edits must contain at least one replacement.\":\n\t\t\"Edit 工具输入无效。edits 必须至少包含一个替换。\",\n\t\"Could not edit file: {path}. {errorMessage}.\": \"无法编辑文件:{path}。{errorMessage}。\",\n\t\"Unknown tool name: {toolName}\": \"未知工具名:{toolName}\",\n\t\"Offset {offset} is beyond end of file ({totalLines} lines total)\":\n\t\t\"偏移 {offset} 超出文件末尾(共 {totalLines} 行)\",\n\t\"Cannot append to a finished output accumulator\": \"无法向已完成的输出累加器追加数据\",\n\n\t// ---- logger.ts / package-install-host.ts / package-resource-collection.ts / session-export.ts ----\n\t\"Host logger level must be one of {levels}; got {value}\": \"Host logger level 必须是 {levels} 之一;实际为 {value}\",\n\t\"Missing git install root\": \"缺少 git 安装根目录\",\n\t\"Refusing to use path outside package install root: {path}\": \"拒绝使用包安装根目录之外的路径:{path}\",\n\t\"Unknown resource type: {resourceType}\": \"未知资源类型:{resourceType}\",\n\t\"Cannot export a session without a session header\": \"没有会话头信息,无法导出会话\",\n};\n"]}
@@ -6,7 +6,7 @@
6
6
  * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、
7
7
  * 包安装宿主与导出(package-*.ts / session-export.ts)。
8
8
  * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。
9
- * 机器匹配串不在此域:"aborted"、`timeout:` 前缀(tools/bash.ts 精确消费)、
9
+ * 机器匹配串不在此域:"aborted"、`timeout:` 前缀(tools/bash-operations.ts 经 bash 工具定义精确消费)、
10
10
  * "authHeader requires a resolved API key"(cause.message 精确匹配,保护清单)。
11
11
  */
12
12
  export const coreContractCore = {
@@ -1 +1 @@
1
- {"version":3,"file":"core-contract-core.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-contract-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B;IACvD,uGAAiE;IACjE,gCAAgC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A2C,EAAE,2CAA2B;IACxE,sDAAsD,EAAE,+CAAiB;IACzE,gCAAgC,EAAE,6BAAmB;IAErD,uDAA+B;IAC/B,qDAAqD,EAAE,4CAAgB;IACvE,kDAAkD,EAAE,iDAA2B;IAC/E,+EAA+E,EAC9E,mEAAqC;IACtC,iBAAiB,EAAE,iBAAO;IAC1B,2CAA2C,EAAE,kCAAoB;IACjE,yCAAyC,EAAE,gCAAY;IACvD,qCAAqC,EAAE,+BAAmB;IAC1D,gDAAgD,EAAE,mCAAa;IAC/D,sFAAsF,EACrF,2DAAqB;IACtB,0HAA0H,EACzH,6HAA+E;IAChF,0EAA0E,EACzE,mEAA+B;IAChC,8CAA8C,EAAE,iDAA+B;IAC/E,+BAA+B,EAAE,8BAAkB;IACnD,kEAAkE,EACjE,8DAAsC;IACvC,gDAAgD,EAAE,kDAAkB;IAEpE,qGAAqG;IACrG,wDAAwD,EAAE,iEAA+C;IACzG,0BAA0B,EAAE,4BAAc;IAC1C,2DAA2D,EAAE,wDAAwB;IACrF,uCAAuC,EAAE,qCAAuB;IAChE,kDAAkD,EAAE,4CAAgB;CACpE,CAAC","sourcesContent":["/**\n * core-contract-core 域词典(批次⑨b):core 根层(不含 extensions/)与\n * agent-capability-contract 的 throw 契约错误文案。覆盖范围:能力契约 V1\n * 校验(agent-capability-contract.ts)、会话管理与压缩提交协议(session-manager.ts)、\n * 会话运行时守卫(agent-session*.ts)、embedded SDK 绑定(embedded-sdk.ts)、\n * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、\n * 包安装宿主与导出(package-*.ts / session-export.ts)。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n * 机器匹配串不在此域:\"aborted\"、`timeout:` 前缀(tools/bash.ts 精确消费)、\n * \"authHeader requires a resolved API key\"(cause.message 精确匹配,保护清单)。\n */\nexport const coreContractCore: Record<string, string> = {\n\t// ---- agent-capability-contract.ts:通用断言辅助(label 为字段路径,保持原文)----\n\t\"{label} must be a plain object\": \"{label} 必须是普通对象\",\n\t\"{label} has unsupported fields: {fields}\": \"{label} 包含不支持的字段:{fields}\",\n\t\"{label} is missing required field: {key}\": \"{label} 缺少必填字段:{key}\",\n\t\"{label} must be a non-empty string\": \"{label} 必须是非空字符串\",\n\t\"{label} must be a positive safe integer\": \"{label} 必须是正的安全整数\",\n\t\"{label} must be a non-negative safe integer\": \"{label} 必须是非负安全整数\",\n\t\"{label} must contain finite JSON numbers\": \"{label} 必须只包含有限 JSON 数字\",\n\t\"{label} must be JSON-compatible\": \"{label} 必须兼容 JSON\",\n\t\"{label} must not contain cycles\": \"{label} 不得包含循环引用\",\n\t\"{label} must contain only plain JSON objects\": \"{label} 必须只包含普通 JSON 对象\",\n\t\"{label} must be an array\": \"{label} 必须是数组\",\n\t\"{label} must not contain duplicates\": \"{label} 不得包含重复项\",\n\t\"{label} is invalid\": \"{label} 无效\",\n\t\"{label} contains duplicate capability: {capability}\": \"{label} 包含重复能力:{capability}\",\n\n\t// ---- agent-capability-contract.ts:Host context / 契约兼容性 ----\n\t\"Host context.mode is invalid\": \"Host context.mode 无效\",\n\t\"Host context.features must be an array\": \"Host context.features 必须是数组\",\n\t\"Host context.features must not contain duplicates\": \"Host context.features 不得包含重复项\",\n\t\"Host context.transports must be an array\": \"Host context.transports 必须是数组\",\n\t\"Host context.transports must not contain duplicates\": \"Host context.transports 不得包含重复项\",\n\t\"Contract compatibility result.version must be 1\": \"Contract compatibility result.version 必须为 1\",\n\t\"Contract compatibility result.compatible must be boolean\": \"Contract compatibility result.compatible 必须是布尔值\",\n\t\"Contract compatibility result.issues must be an array\": \"Contract compatibility result.issues 必须是数组\",\n\t\"Contract compatibility result.compatible must be false when issues exist\":\n\t\t\"存在 issue 时 Contract compatibility result.compatible 必须为 false\",\n\t\"Contract compatibility result.compatible must be true when no issues exist\":\n\t\t\"不存在 issue 时 Contract compatibility result.compatible 必须为 true\",\n\t\"Contract compatibility result.issues[{index}].code is invalid\":\n\t\t\"Contract compatibility result.issues[{index}].code 无效\",\n\t\"Contract compatibility result.issues[{index}].missingFeatures must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingFeatures 必须是字符串\",\n\t\"Contract compatibility result.issues[{index}].missingTransports must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingTransports 必须是字符串\",\n\t\"Agent capability contract.contractId must be {contractId}\":\n\t\t\"Agent capability contract.contractId 必须为 {contractId}\",\n\t\"Agent capability contract.version must be 1\": \"Agent capability contract.version 必须为 1\",\n\t\"Agent profile.optionalPlugins must not overlap requiredPlugins\":\n\t\t\"Agent profile.optionalPlugins 不得与 requiredPlugins 重叠\",\n\t\"Artifact reference.truncated must be boolean\": \"Artifact reference.truncated 必须是布尔值\",\n\n\t// ---- agent-capability-contract.ts:快照与信封校验(字段路径原样)----\n\t\"Agent definition snapshot.version must be 1\": \"Agent definition snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.version must be 1\": \"Agent instance snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.status is invalid\": \"Agent instance snapshot.status 无效\",\n\t\"Session revision.version must be 1\": \"Session revision.version 必须为 1\",\n\t\"Session revision.leafId is required\": \"Session revision.leafId 是必填项\",\n\t\"Session snapshot.version must be 1\": \"Session snapshot.version 必须为 1\",\n\t\"Session snapshot.revision.sessionId must match sessionId\":\n\t\t\"Session snapshot.revision.sessionId 必须与 sessionId 一致\",\n\t\"Error envelope.version must be 1\": \"Error envelope.version 必须为 1\",\n\t\"Error envelope.message must be a string\": \"Error envelope.message 必须是字符串\",\n\t\"Error envelope.retryable must be a boolean\": \"Error envelope.retryable 必须是布尔值\",\n\t\"Operation terminal is missing required field: version or status\":\n\t\t\"Operation terminal 缺少必填字段:version 或 status\",\n\t\"Operation terminal.version must be 1\": \"Operation terminal.version 必须为 1\",\n\t\"Operation snapshot.version must be 1\": \"Operation snapshot.version 必须为 1\",\n\t\"Operation snapshot.status is invalid\": \"Operation snapshot.status 无效\",\n\t\"Operation snapshot active status must not have a terminal\": \"Operation snapshot 处于活动状态时不得携带 terminal\",\n\t\"Operation snapshot terminal status requires a terminal\": \"Operation snapshot 处于终态时必须有 terminal\",\n\t\"Operation snapshot.terminal.status must match status\": \"Operation snapshot.terminal.status 必须与 status 一致\",\n\t\"Operation snapshot.inputRevision.sessionId must match sessionId\":\n\t\t\"Operation snapshot.inputRevision.sessionId 必须与 sessionId 一致\",\n\t\"Command request.version must be 1\": \"Command request.version 必须为 1\",\n\t\"Command request.expectedRevision.sessionId does not match target\":\n\t\t\"Command request.expectedRevision.sessionId 与 target 不匹配\",\n\t\"Command admission.version must be 1\": \"Command admission.version 必须为 1\",\n\t\"Command admission.status is invalid\": \"Command admission.status 无效\",\n\t\"Command admission accepted status requires an operation\": \"Command admission 为 accepted 状态时必须有 operation\",\n\t\"Command admission rejected status requires an error\": \"Command admission 为 rejected 状态时必须有 error\",\n\t\"Event envelope.version must be 1\": \"Event envelope.version 必须为 1\",\n\t\"Event envelope.category is invalid\": \"Event envelope.category 无效\",\n\t\"Event envelope.deliveryGuarantee is invalid\": \"Event envelope.deliveryGuarantee 无效\",\n\t\"Event envelope.correlationId requires a real operationId\": \"Event envelope.correlationId 需要真实的 operationId\",\n\t\"Event envelope.operationId requires correlationId\": \"Event envelope.operationId 需要 correlationId\",\n\n\t// ---- agent-capability-contract.ts:命令操作注册表与规范向量 ----\n\t\"Operation is not retained: {operationId}\": \"操作未被保留:{operationId}\",\n\t\"Operation already has a different terminal result: {operationId}\": \"操作已有不同的终态结果:{operationId}\",\n\t\"Canonical contract vector admission failed\": \"规范契约向量准入失败\",\n\t\"Canonical contract failed vector admission failed\": \"规范契约失败向量准入失败\",\n\t\"Canonical contract timeout vector admission failed\": \"规范契约超时向量准入失败\",\n\n\t// ---- session-manager.ts:JSON 序列化断言(field 为字段名,保持原文)----\n\t\"{field} must be JSON-serializable: non-finite number at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非有限数字\",\n\t\"{field} must be JSON-serializable: unsupported value at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在不支持的值\",\n\t\"{field} must be JSON-serializable: cyclic value at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在循环引用值\",\n\t\"{field} must be JSON-serializable: non-plain object at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非普通对象\",\n\t\"{field} must be JSON-serializable: symbol key at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在 symbol 键\",\n\t\"{field} must be JSON-serializable: accessor at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在访问器属性\",\n\n\t// ---- session-manager.ts:压缩提交协议校验(机器可读协议错误,照译;字段名原样)----\n\t\"Compaction commit request must be an object\": \"压缩提交请求必须是对象\",\n\t\"Unsupported compaction commit request version\": \"不支持的压缩提交请求版本\",\n\t\"operationId must be a non-empty string\": \"operationId 必须是非空字符串\",\n\t\"summary must be a non-empty string\": \"summary 必须是非空字符串\",\n\t\"firstKeptEntryId must be a non-empty string\": \"firstKeptEntryId 必须是非空字符串\",\n\t\"tokensBefore must be a non-negative finite number\": \"tokensBefore 必须是非负有限数字\",\n\t\"expectedRevision must be a valid SessionRevisionV1\": \"expectedRevision 必须是有效的 SessionRevisionV1\",\n\t\"operation_id_reused: {operationId}\": \"operation_id_reused:{operationId}\",\n\t\"first_kept_entry_not_on_current_branch: {firstKeptEntryId}\":\n\t\t\"first_kept_entry_not_on_current_branch:{firstKeptEntryId}\",\n\t\"Compaction operation entry is missing: {entryId}\": \"压缩操作条目缺失:{entryId}\",\n\n\t// ---- session-manager.ts / agent-session-compaction.ts:条目定位 ----\n\t\"Entry {id} not found\": \"未找到条目 {id}\",\n\n\t// ---- agent-session*.ts:会话运行时守卫 ----\n\t\"Capability runtime is not available\": \"能力运行时不可用\",\n\t\"Capability runtime is not initialized for provider request\": \"提供程序请求的能力运行时尚未初始化\",\n\t\"Session reload is already in progress\": \"会话重载已在进行中\",\n\t\"Session reload did not commit a generation\": \"会话重载未提交新代号\",\n\t\"Session context commit requires a message array\": \"会话上下文提交需要消息数组\",\n\t\"Context commit cancelled\": \"上下文提交已取消\",\n\t\"Context commit operationId is required\": \"上下文提交需要 operationId\",\n\t\"Context revision conflict: expected {expected}, current {current}\":\n\t\t\"上下文修订冲突:期望 {expected},当前 {current}\",\n\t\"Unsupported session export format: {format}\": \"不支持的会话导出格式:{format}\",\n\t\"Capability plugin manifest is already loaded: {path}\": \"能力插件 manifest 已加载:{path}\",\n\t\"Capability plugin is already loaded in this session: {id}\": \"该会话中能力插件已加载:{id}\",\n\t\"Capability plugin manifest path is unavailable: {id}\": \"能力插件 manifest 路径不可用:{id}\",\n\t\"Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message.\":\n\t\t\"Agent 正在处理中。请指定 streamingBehavior('steer' 或 'followUp')来排队消息。\",\n\t\"Command is registered by both CapabilityAPI and {source}: {command}\":\n\t\t\"命令同时被 CapabilityAPI 和 {source} 注册:{command}\",\n\n\t// ---- agent-session-compaction.ts:压缩策略与提交 ----\n\t\"Compaction policy returned an invalid preparation: {policyName}\": \"压缩策略返回了无效的准备结果:{policyName}\",\n\t\"Compaction commit revision conflict: expected {expectedSequence}/{expectedLeafId}, current {currentSequence}/{currentLeafId}\":\n\t\t\"压缩提交修订冲突:期望 {expectedSequence}/{expectedLeafId},当前 {currentSequence}/{currentLeafId}\",\n\t\"Compaction commit entry is unavailable: {entryId}\": \"压缩提交条目不可用:{entryId}\",\n\n\t// ---- agent-session-context.ts:上下文策略与转换 ----\n\t\"Context strategy is not configured\": \"未配置上下文策略\",\n\t\"Cannot {operation} while the session is running\": \"会话运行中无法执行 {operation}\",\n\t\"Session is disposed; context transition was cancelled\": \"会话已销毁;上下文转换已取消\",\n\t\"Session reload in progress; context transition was cancelled\": \"会话重载进行中;上下文转换已取消\",\n\t\"Context transition was superseded\": \"上下文转换已被取代\",\n\t\"Context strategy must return an AgentMessage array: {strategyName}\":\n\t\t\"上下文策略必须返回 AgentMessage 数组:{strategyName}\",\n\t\"Context transition requires an AgentMessage array: {strategyName}\":\n\t\t\"上下文转换需要 AgentMessage 数组:{strategyName}\",\n\t\"Context strategy must return structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文策略必须返回可结构化克隆的 AgentMessage 值:{strategyName}\",\n\t\"Context transition requires structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文转换需要可结构化克隆的 AgentMessage 值:{strategyName}\",\n\n\t// ---- agent-session-bash.ts / agent-session-runtime.ts ----\n\t\"Session is disposed; bash execution is unavailable\": \"会话已销毁;bash 执行不可用\",\n\t\"Session is disposed; bash results cannot be recorded\": \"会话已销毁;无法记录 bash 结果\",\n\t\"Invalid entry ID for forking\": \"用于分叉的条目 ID 无效\",\n\t\"Persisted session is missing a session file\": \"持久化会话缺少会话文件\",\n\n\t// ---- embedded-sdk.ts ----\n\t\"Embedded SDK binding is disposed: {label}\": \"Embedded SDK 绑定已销毁:{label}\",\n\t\"Embedded SDK run input must be JSON-compatible\": \"Embedded SDK 运行输入必须兼容 JSON\",\n\t\"Embedded SDK session requires revision support\": \"Embedded SDK 会话需要修订支持\",\n\t\"Embedded SDK has no defined Agent: {id}@{version}\": \"Embedded SDK 没有已定义的 Agent:{id}@{version}\",\n\t\"Embedded SDK lease does not belong to Agent instance: {id}\": \"Embedded SDK 租约不属于该 Agent 实例:{id}\",\n\t\"Embedded SDK disposal failed\": \"Embedded SDK 销毁失败\",\n\n\t// ---- agent-session.ts / agent-session-compaction.ts:认证重试提示(批次⑥调用点遗留缺失,本批补齐)----\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"\\\"{provider}\\\" 认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\n\t// ---- provider-composer.ts / model-registry.ts / model-runtime.ts ----\n\t'Provider {providerId}: \"api\" is required when registering streamSimple.':\n\t\t'提供商 {providerId}:注册 streamSimple 时必须指定 \"api\"。',\n\t\"No API provider registered for api: {api}\": \"未注册 api 为 {api} 的 API 提供商\",\n\t\"Provider config is required when registering by name\": \"按名称注册时必须提供提供商配置\",\n\t\"Provider id must not be empty.\": \"Provider id 不能为空。\",\n\n\t// ---- tools/:内置工具校验与命令状态 ----\n\t\"Invalid timeout: must be a finite number of seconds\": \"无效的超时值:必须是有限秒数\",\n\t\"Invalid timeout: maximum is {maxSeconds} seconds\": \"无效的超时值:最大为 {maxSeconds} 秒\",\n\t\"Working directory does not exist: {cwd}\\nCannot execute {shellName} commands.\":\n\t\t\"工作目录不存在:{cwd}\\n无法执行 {shellName} 命令。\",\n\t\"Command aborted\": \"命令已中止\",\n\t\"Command timed out after {seconds} seconds\": \"命令在 {seconds} 秒后超时\",\n\t\"Command terminated without an exit code\": \"命令结束时没有退出码\",\n\t\"Command exited with code {exitCode}\": \"命令退出码为 {exitCode}\",\n\t\"Replacement range is outside the base content.\": \"替换范围超出基准内容。\",\n\t\"Cannot preserve unchanged lines because the base content has a different line count.\":\n\t\t\"基准内容行数不同,无法保留未变更的行。\",\n\t\"edits[{previousIndex}] and edits[{currentIndex}] overlap in {path}. Merge them into one edit or target disjoint regions.\":\n\t\t\"{path} 中 edits[{previousIndex}] 与 edits[{currentIndex}] 重叠。请合并为一个编辑或改为不相交的区域。\",\n\t\"Edit tool input is invalid. edits must contain at least one replacement.\":\n\t\t\"Edit 工具输入无效。edits 必须至少包含一个替换。\",\n\t\"Could not edit file: {path}. {errorMessage}.\": \"无法编辑文件:{path}。{errorMessage}。\",\n\t\"Unknown tool name: {toolName}\": \"未知工具名:{toolName}\",\n\t\"Offset {offset} is beyond end of file ({totalLines} lines total)\":\n\t\t\"偏移 {offset} 超出文件末尾(共 {totalLines} 行)\",\n\t\"Cannot append to a finished output accumulator\": \"无法向已完成的输出累加器追加数据\",\n\n\t// ---- logger.ts / package-install-host.ts / package-resource-collection.ts / session-export.ts ----\n\t\"Host logger level must be one of {levels}; got {value}\": \"Host logger level 必须是 {levels} 之一;实际为 {value}\",\n\t\"Missing git install root\": \"缺少 git 安装根目录\",\n\t\"Refusing to use path outside package install root: {path}\": \"拒绝使用包安装根目录之外的路径:{path}\",\n\t\"Unknown resource type: {resourceType}\": \"未知资源类型:{resourceType}\",\n\t\"Cannot export a session without a session header\": \"没有会话头信息,无法导出会话\",\n};\n"]}
1
+ {"version":3,"file":"core-contract-core.js","sourceRoot":"","sources":["../../../../../src/core/i18n/locales/zh-cn/core-contract-core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAA2B;IACvD,uGAAiE;IACjE,gCAAgC,EAAE,+BAAiB;IACnD,0CAA0C,EAAE,6CAA2B;IACvE,0CAA0C,EAAE,oCAAsB;IAClE,oCAAoC,EAAE,kCAAkB;IACxD,yCAAyC,EAAE,qCAAmB;IAC9D,6CAA6C,EAAE,qCAAmB;IAClE,0CAA0C,EAAE,2CAAyB;IACrE,iCAAiC,EAAE,2BAAmB;IACtD,iCAAiC,EAAE,kCAAkB;IACrD,8CAA8C,EAAE,2CAAyB;IACzE,0BAA0B,EAAE,yBAAe;IAC3C,qCAAqC,EAAE,+BAAiB;IACxD,oBAAoB,EAAE,gBAAY;IAClC,qDAAqD,EAAE,2CAA6B;IAEpF,0EAA8D;IAC9D,8BAA8B,EAAE,0BAAsB;IACtD,wCAAwC,EAAE,uCAA6B;IACvE,mDAAmD,EAAE,6CAA+B;IACpF,0CAA0C,EAAE,yCAA+B;IAC3E,qDAAqD,EAAE,+CAAiC;IACxF,iDAAiD,EAAE,mDAA6C;IAChG,0DAA0D,EAAE,6DAAiD;IAC7G,uDAAuD,EAAE,sDAA4C;IACrG,0EAA0E,EACzE,2EAA+D;IAChE,4EAA4E,EAC3E,6EAA+D;IAChE,+DAA+D,EAC9D,2DAAuD;IACxD,+EAA+E,EAC9E,kFAAsE;IACvE,iFAAiF,EAChF,oFAAwE;IACzE,2DAA2D,EAC1D,6DAAuD;IACxD,6CAA6C,EAAE,+CAAyC;IACxF,gEAA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,sDAAsD,EAAE,4CAAoB;IAC5E,8BAA8B,EAAE,iCAAe;IAC/C,6CAA6C,EAAE,mCAAa;IAE5D,4BAA4B;IAC5B,2CAA2C,EAAE,wCAA4B;IACzE,gDAAgD,EAAE,4CAA4B;IAC9E,gDAAgD,EAAE,uCAAuB;IACzE,mDAAmD,EAAE,wDAA0C;IAC/F,4DAA4D,EAAE,qDAAmC;IACjG,8BAA8B,EAAE,2BAAmB;IAEnD,kIAAkF;IAClF,+IAA+I,EAC9I,uHAAiE;IAElE,wEAAwE;IACxE,yEAAyE,EACxE,uEAA+C;IAChD,2CAA2C,EAAE,2CAA2B;IACxE,sDAAsD,EAAE,+CAAiB;IACzE,gCAAgC,EAAE,6BAAmB;IAErD,uDAA+B;IAC/B,qDAAqD,EAAE,4CAAgB;IACvE,kDAAkD,EAAE,iDAA2B;IAC/E,+EAA+E,EAC9E,mEAAqC;IACtC,iBAAiB,EAAE,iBAAO;IAC1B,2CAA2C,EAAE,kCAAoB;IACjE,yCAAyC,EAAE,gCAAY;IACvD,qCAAqC,EAAE,+BAAmB;IAC1D,gDAAgD,EAAE,mCAAa;IAC/D,sFAAsF,EACrF,2DAAqB;IACtB,0HAA0H,EACzH,6HAA+E;IAChF,0EAA0E,EACzE,mEAA+B;IAChC,8CAA8C,EAAE,iDAA+B;IAC/E,+BAA+B,EAAE,8BAAkB;IACnD,kEAAkE,EACjE,8DAAsC;IACvC,gDAAgD,EAAE,kDAAkB;IAEpE,qGAAqG;IACrG,wDAAwD,EAAE,iEAA+C;IACzG,0BAA0B,EAAE,4BAAc;IAC1C,2DAA2D,EAAE,wDAAwB;IACrF,uCAAuC,EAAE,qCAAuB;IAChE,kDAAkD,EAAE,4CAAgB;CACpE,CAAC","sourcesContent":["/**\n * core-contract-core 域词典(批次⑨b):core 根层(不含 extensions/)与\n * agent-capability-contract 的 throw 契约错误文案。覆盖范围:能力契约 V1\n * 校验(agent-capability-contract.ts)、会话管理与压缩提交协议(session-manager.ts)、\n * 会话运行时守卫(agent-session*.ts)、embedded SDK 绑定(embedded-sdk.ts)、\n * 模型提供商装配(provider-composer.ts / model-*.ts)、内置工具校验(tools/)、\n * 包安装宿主与导出(package-*.ts / session-export.ts)。\n * key 为英文原文(与调用点逐字一致),占位符 `{name}` 原样保留。\n * 机器匹配串不在此域:\"aborted\"、`timeout:` 前缀(tools/bash-operations.ts 经 bash 工具定义精确消费)、\n * \"authHeader requires a resolved API key\"(cause.message 精确匹配,保护清单)。\n */\nexport const coreContractCore: Record<string, string> = {\n\t// ---- agent-capability-contract.ts:通用断言辅助(label 为字段路径,保持原文)----\n\t\"{label} must be a plain object\": \"{label} 必须是普通对象\",\n\t\"{label} has unsupported fields: {fields}\": \"{label} 包含不支持的字段:{fields}\",\n\t\"{label} is missing required field: {key}\": \"{label} 缺少必填字段:{key}\",\n\t\"{label} must be a non-empty string\": \"{label} 必须是非空字符串\",\n\t\"{label} must be a positive safe integer\": \"{label} 必须是正的安全整数\",\n\t\"{label} must be a non-negative safe integer\": \"{label} 必须是非负安全整数\",\n\t\"{label} must contain finite JSON numbers\": \"{label} 必须只包含有限 JSON 数字\",\n\t\"{label} must be JSON-compatible\": \"{label} 必须兼容 JSON\",\n\t\"{label} must not contain cycles\": \"{label} 不得包含循环引用\",\n\t\"{label} must contain only plain JSON objects\": \"{label} 必须只包含普通 JSON 对象\",\n\t\"{label} must be an array\": \"{label} 必须是数组\",\n\t\"{label} must not contain duplicates\": \"{label} 不得包含重复项\",\n\t\"{label} is invalid\": \"{label} 无效\",\n\t\"{label} contains duplicate capability: {capability}\": \"{label} 包含重复能力:{capability}\",\n\n\t// ---- agent-capability-contract.ts:Host context / 契约兼容性 ----\n\t\"Host context.mode is invalid\": \"Host context.mode 无效\",\n\t\"Host context.features must be an array\": \"Host context.features 必须是数组\",\n\t\"Host context.features must not contain duplicates\": \"Host context.features 不得包含重复项\",\n\t\"Host context.transports must be an array\": \"Host context.transports 必须是数组\",\n\t\"Host context.transports must not contain duplicates\": \"Host context.transports 不得包含重复项\",\n\t\"Contract compatibility result.version must be 1\": \"Contract compatibility result.version 必须为 1\",\n\t\"Contract compatibility result.compatible must be boolean\": \"Contract compatibility result.compatible 必须是布尔值\",\n\t\"Contract compatibility result.issues must be an array\": \"Contract compatibility result.issues 必须是数组\",\n\t\"Contract compatibility result.compatible must be false when issues exist\":\n\t\t\"存在 issue 时 Contract compatibility result.compatible 必须为 false\",\n\t\"Contract compatibility result.compatible must be true when no issues exist\":\n\t\t\"不存在 issue 时 Contract compatibility result.compatible 必须为 true\",\n\t\"Contract compatibility result.issues[{index}].code is invalid\":\n\t\t\"Contract compatibility result.issues[{index}].code 无效\",\n\t\"Contract compatibility result.issues[{index}].missingFeatures must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingFeatures 必须是字符串\",\n\t\"Contract compatibility result.issues[{index}].missingTransports must be strings\":\n\t\t\"Contract compatibility result.issues[{index}].missingTransports 必须是字符串\",\n\t\"Agent capability contract.contractId must be {contractId}\":\n\t\t\"Agent capability contract.contractId 必须为 {contractId}\",\n\t\"Agent capability contract.version must be 1\": \"Agent capability contract.version 必须为 1\",\n\t\"Agent profile.optionalPlugins must not overlap requiredPlugins\":\n\t\t\"Agent profile.optionalPlugins 不得与 requiredPlugins 重叠\",\n\t\"Artifact reference.truncated must be boolean\": \"Artifact reference.truncated 必须是布尔值\",\n\n\t// ---- agent-capability-contract.ts:快照与信封校验(字段路径原样)----\n\t\"Agent definition snapshot.version must be 1\": \"Agent definition snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.version must be 1\": \"Agent instance snapshot.version 必须为 1\",\n\t\"Agent instance snapshot.status is invalid\": \"Agent instance snapshot.status 无效\",\n\t\"Session revision.version must be 1\": \"Session revision.version 必须为 1\",\n\t\"Session revision.leafId is required\": \"Session revision.leafId 是必填项\",\n\t\"Session snapshot.version must be 1\": \"Session snapshot.version 必须为 1\",\n\t\"Session snapshot.revision.sessionId must match sessionId\":\n\t\t\"Session snapshot.revision.sessionId 必须与 sessionId 一致\",\n\t\"Error envelope.version must be 1\": \"Error envelope.version 必须为 1\",\n\t\"Error envelope.message must be a string\": \"Error envelope.message 必须是字符串\",\n\t\"Error envelope.retryable must be a boolean\": \"Error envelope.retryable 必须是布尔值\",\n\t\"Operation terminal is missing required field: version or status\":\n\t\t\"Operation terminal 缺少必填字段:version 或 status\",\n\t\"Operation terminal.version must be 1\": \"Operation terminal.version 必须为 1\",\n\t\"Operation snapshot.version must be 1\": \"Operation snapshot.version 必须为 1\",\n\t\"Operation snapshot.status is invalid\": \"Operation snapshot.status 无效\",\n\t\"Operation snapshot active status must not have a terminal\": \"Operation snapshot 处于活动状态时不得携带 terminal\",\n\t\"Operation snapshot terminal status requires a terminal\": \"Operation snapshot 处于终态时必须有 terminal\",\n\t\"Operation snapshot.terminal.status must match status\": \"Operation snapshot.terminal.status 必须与 status 一致\",\n\t\"Operation snapshot.inputRevision.sessionId must match sessionId\":\n\t\t\"Operation snapshot.inputRevision.sessionId 必须与 sessionId 一致\",\n\t\"Command request.version must be 1\": \"Command request.version 必须为 1\",\n\t\"Command request.expectedRevision.sessionId does not match target\":\n\t\t\"Command request.expectedRevision.sessionId 与 target 不匹配\",\n\t\"Command admission.version must be 1\": \"Command admission.version 必须为 1\",\n\t\"Command admission.status is invalid\": \"Command admission.status 无效\",\n\t\"Command admission accepted status requires an operation\": \"Command admission 为 accepted 状态时必须有 operation\",\n\t\"Command admission rejected status requires an error\": \"Command admission 为 rejected 状态时必须有 error\",\n\t\"Event envelope.version must be 1\": \"Event envelope.version 必须为 1\",\n\t\"Event envelope.category is invalid\": \"Event envelope.category 无效\",\n\t\"Event envelope.deliveryGuarantee is invalid\": \"Event envelope.deliveryGuarantee 无效\",\n\t\"Event envelope.correlationId requires a real operationId\": \"Event envelope.correlationId 需要真实的 operationId\",\n\t\"Event envelope.operationId requires correlationId\": \"Event envelope.operationId 需要 correlationId\",\n\n\t// ---- agent-capability-contract.ts:命令操作注册表与规范向量 ----\n\t\"Operation is not retained: {operationId}\": \"操作未被保留:{operationId}\",\n\t\"Operation already has a different terminal result: {operationId}\": \"操作已有不同的终态结果:{operationId}\",\n\t\"Canonical contract vector admission failed\": \"规范契约向量准入失败\",\n\t\"Canonical contract failed vector admission failed\": \"规范契约失败向量准入失败\",\n\t\"Canonical contract timeout vector admission failed\": \"规范契约超时向量准入失败\",\n\n\t// ---- session-manager.ts:JSON 序列化断言(field 为字段名,保持原文)----\n\t\"{field} must be JSON-serializable: non-finite number at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非有限数字\",\n\t\"{field} must be JSON-serializable: unsupported value at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在不支持的值\",\n\t\"{field} must be JSON-serializable: cyclic value at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在循环引用值\",\n\t\"{field} must be JSON-serializable: non-plain object at {path}\":\n\t\t\"{field} 必须可 JSON 序列化:{path} 处存在非普通对象\",\n\t\"{field} must be JSON-serializable: symbol key at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在 symbol 键\",\n\t\"{field} must be JSON-serializable: accessor at {path}\": \"{field} 必须可 JSON 序列化:{path} 处存在访问器属性\",\n\n\t// ---- session-manager.ts:压缩提交协议校验(机器可读协议错误,照译;字段名原样)----\n\t\"Compaction commit request must be an object\": \"压缩提交请求必须是对象\",\n\t\"Unsupported compaction commit request version\": \"不支持的压缩提交请求版本\",\n\t\"operationId must be a non-empty string\": \"operationId 必须是非空字符串\",\n\t\"summary must be a non-empty string\": \"summary 必须是非空字符串\",\n\t\"firstKeptEntryId must be a non-empty string\": \"firstKeptEntryId 必须是非空字符串\",\n\t\"tokensBefore must be a non-negative finite number\": \"tokensBefore 必须是非负有限数字\",\n\t\"expectedRevision must be a valid SessionRevisionV1\": \"expectedRevision 必须是有效的 SessionRevisionV1\",\n\t\"operation_id_reused: {operationId}\": \"operation_id_reused:{operationId}\",\n\t\"first_kept_entry_not_on_current_branch: {firstKeptEntryId}\":\n\t\t\"first_kept_entry_not_on_current_branch:{firstKeptEntryId}\",\n\t\"Compaction operation entry is missing: {entryId}\": \"压缩操作条目缺失:{entryId}\",\n\n\t// ---- session-manager.ts / agent-session-compaction.ts:条目定位 ----\n\t\"Entry {id} not found\": \"未找到条目 {id}\",\n\n\t// ---- agent-session*.ts:会话运行时守卫 ----\n\t\"Capability runtime is not available\": \"能力运行时不可用\",\n\t\"Capability runtime is not initialized for provider request\": \"提供程序请求的能力运行时尚未初始化\",\n\t\"Session reload is already in progress\": \"会话重载已在进行中\",\n\t\"Session reload did not commit a generation\": \"会话重载未提交新代号\",\n\t\"Session context commit requires a message array\": \"会话上下文提交需要消息数组\",\n\t\"Context commit cancelled\": \"上下文提交已取消\",\n\t\"Context commit operationId is required\": \"上下文提交需要 operationId\",\n\t\"Context revision conflict: expected {expected}, current {current}\":\n\t\t\"上下文修订冲突:期望 {expected},当前 {current}\",\n\t\"Unsupported session export format: {format}\": \"不支持的会话导出格式:{format}\",\n\t\"Capability plugin manifest is already loaded: {path}\": \"能力插件 manifest 已加载:{path}\",\n\t\"Capability plugin is already loaded in this session: {id}\": \"该会话中能力插件已加载:{id}\",\n\t\"Capability plugin manifest path is unavailable: {id}\": \"能力插件 manifest 路径不可用:{id}\",\n\t\"Agent is already processing. Specify streamingBehavior ('steer' or 'followUp') to queue the message.\":\n\t\t\"Agent 正在处理中。请指定 streamingBehavior('steer' 或 'followUp')来排队消息。\",\n\t\"Command is registered by both CapabilityAPI and {source}: {command}\":\n\t\t\"命令同时被 CapabilityAPI 和 {source} 注册:{command}\",\n\n\t// ---- agent-session-compaction.ts:压缩策略与提交 ----\n\t\"Compaction policy returned an invalid preparation: {policyName}\": \"压缩策略返回了无效的准备结果:{policyName}\",\n\t\"Compaction commit revision conflict: expected {expectedSequence}/{expectedLeafId}, current {currentSequence}/{currentLeafId}\":\n\t\t\"压缩提交修订冲突:期望 {expectedSequence}/{expectedLeafId},当前 {currentSequence}/{currentLeafId}\",\n\t\"Compaction commit entry is unavailable: {entryId}\": \"压缩提交条目不可用:{entryId}\",\n\n\t// ---- agent-session-context.ts:上下文策略与转换 ----\n\t\"Context strategy is not configured\": \"未配置上下文策略\",\n\t\"Cannot {operation} while the session is running\": \"会话运行中无法执行 {operation}\",\n\t\"Session is disposed; context transition was cancelled\": \"会话已销毁;上下文转换已取消\",\n\t\"Session reload in progress; context transition was cancelled\": \"会话重载进行中;上下文转换已取消\",\n\t\"Context transition was superseded\": \"上下文转换已被取代\",\n\t\"Context strategy must return an AgentMessage array: {strategyName}\":\n\t\t\"上下文策略必须返回 AgentMessage 数组:{strategyName}\",\n\t\"Context transition requires an AgentMessage array: {strategyName}\":\n\t\t\"上下文转换需要 AgentMessage 数组:{strategyName}\",\n\t\"Context strategy must return structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文策略必须返回可结构化克隆的 AgentMessage 值:{strategyName}\",\n\t\"Context transition requires structured-cloneable AgentMessage values: {strategyName}\":\n\t\t\"上下文转换需要可结构化克隆的 AgentMessage 值:{strategyName}\",\n\n\t// ---- agent-session-bash.ts / agent-session-runtime.ts ----\n\t\"Session is disposed; bash execution is unavailable\": \"会话已销毁;bash 执行不可用\",\n\t\"Session is disposed; bash results cannot be recorded\": \"会话已销毁;无法记录 bash 结果\",\n\t\"Invalid entry ID for forking\": \"用于分叉的条目 ID 无效\",\n\t\"Persisted session is missing a session file\": \"持久化会话缺少会话文件\",\n\n\t// ---- embedded-sdk.ts ----\n\t\"Embedded SDK binding is disposed: {label}\": \"Embedded SDK 绑定已销毁:{label}\",\n\t\"Embedded SDK run input must be JSON-compatible\": \"Embedded SDK 运行输入必须兼容 JSON\",\n\t\"Embedded SDK session requires revision support\": \"Embedded SDK 会话需要修订支持\",\n\t\"Embedded SDK has no defined Agent: {id}@{version}\": \"Embedded SDK 没有已定义的 Agent:{id}@{version}\",\n\t\"Embedded SDK lease does not belong to Agent instance: {id}\": \"Embedded SDK 租约不属于该 Agent 实例:{id}\",\n\t\"Embedded SDK disposal failed\": \"Embedded SDK 销毁失败\",\n\n\t// ---- agent-session.ts / agent-session-compaction.ts:认证重试提示(批次⑥调用点遗留缺失,本批补齐)----\n\t\"Authentication failed for \\\"{provider}\\\". Credentials may have expired or network is unavailable. Run '/login {provider}' to re-authenticate.\":\n\t\t\"\\\"{provider}\\\" 认证失败。凭证可能已过期或网络不可用。请运行 '/login {provider}' 重新认证。\",\n\n\t// ---- provider-composer.ts / model-registry.ts / model-runtime.ts ----\n\t'Provider {providerId}: \"api\" is required when registering streamSimple.':\n\t\t'提供商 {providerId}:注册 streamSimple 时必须指定 \"api\"。',\n\t\"No API provider registered for api: {api}\": \"未注册 api 为 {api} 的 API 提供商\",\n\t\"Provider config is required when registering by name\": \"按名称注册时必须提供提供商配置\",\n\t\"Provider id must not be empty.\": \"Provider id 不能为空。\",\n\n\t// ---- tools/:内置工具校验与命令状态 ----\n\t\"Invalid timeout: must be a finite number of seconds\": \"无效的超时值:必须是有限秒数\",\n\t\"Invalid timeout: maximum is {maxSeconds} seconds\": \"无效的超时值:最大为 {maxSeconds} 秒\",\n\t\"Working directory does not exist: {cwd}\\nCannot execute {shellName} commands.\":\n\t\t\"工作目录不存在:{cwd}\\n无法执行 {shellName} 命令。\",\n\t\"Command aborted\": \"命令已中止\",\n\t\"Command timed out after {seconds} seconds\": \"命令在 {seconds} 秒后超时\",\n\t\"Command terminated without an exit code\": \"命令结束时没有退出码\",\n\t\"Command exited with code {exitCode}\": \"命令退出码为 {exitCode}\",\n\t\"Replacement range is outside the base content.\": \"替换范围超出基准内容。\",\n\t\"Cannot preserve unchanged lines because the base content has a different line count.\":\n\t\t\"基准内容行数不同,无法保留未变更的行。\",\n\t\"edits[{previousIndex}] and edits[{currentIndex}] overlap in {path}. Merge them into one edit or target disjoint regions.\":\n\t\t\"{path} 中 edits[{previousIndex}] 与 edits[{currentIndex}] 重叠。请合并为一个编辑或改为不相交的区域。\",\n\t\"Edit tool input is invalid. edits must contain at least one replacement.\":\n\t\t\"Edit 工具输入无效。edits 必须至少包含一个替换。\",\n\t\"Could not edit file: {path}. {errorMessage}.\": \"无法编辑文件:{path}。{errorMessage}。\",\n\t\"Unknown tool name: {toolName}\": \"未知工具名:{toolName}\",\n\t\"Offset {offset} is beyond end of file ({totalLines} lines total)\":\n\t\t\"偏移 {offset} 超出文件末尾(共 {totalLines} 行)\",\n\t\"Cannot append to a finished output accumulator\": \"无法向已完成的输出累加器追加数据\",\n\n\t// ---- logger.ts / package-install-host.ts / package-resource-collection.ts / session-export.ts ----\n\t\"Host logger level must be one of {levels}; got {value}\": \"Host logger level 必须是 {levels} 之一;实际为 {value}\",\n\t\"Missing git install root\": \"缺少 git 安装根目录\",\n\t\"Refusing to use path outside package install root: {path}\": \"拒绝使用包安装根目录之外的路径:{path}\",\n\t\"Unknown resource type: {resourceType}\": \"未知资源类型:{resourceType}\",\n\t\"Cannot export a session without a session header\": \"没有会话头信息,无法导出会话\",\n};\n"]}