@celljs/ta 4.14.0 → 4.15.1

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 (410) hide show
  1. package/dist/cli.mjs +106 -7
  2. package/dist/gateway.mjs +156 -46
  3. package/dist/pi/CHANGELOG.md +13 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-3d/README.en.md +11 -0
  6. package/dist/pi/packages/ta-3d/README.md +11 -0
  7. package/dist/pi/packages/ta-3d/extension/index.mjs +120 -0
  8. package/dist/pi/packages/ta-3d/lib/extension.d.ts +15 -0
  9. package/dist/pi/packages/ta-3d/lib/extension.js +24 -0
  10. package/dist/pi/packages/ta-3d/lib/i18n.d.ts +19 -0
  11. package/dist/pi/packages/ta-3d/lib/i18n.js +50 -0
  12. package/dist/pi/packages/ta-3d/lib/index.d.ts +7 -0
  13. package/dist/pi/packages/ta-3d/lib/index.js +22 -0
  14. package/dist/pi/packages/ta-3d/lib/react.d.ts +8 -0
  15. package/dist/pi/packages/ta-3d/lib/react.js +8 -0
  16. package/dist/pi/packages/ta-3d/lib/scene-card.d.ts +4 -0
  17. package/dist/pi/packages/ta-3d/lib/scene-card.js +60 -0
  18. package/dist/pi/packages/ta-3d/lib/scene-prompt.d.ts +7 -0
  19. package/dist/pi/packages/ta-3d/lib/scene-prompt.js +15 -0
  20. package/dist/pi/packages/ta-3d/lib/scene-protocol.d.ts +5 -0
  21. package/dist/pi/packages/ta-3d/lib/scene-protocol.js +8 -0
  22. package/dist/pi/packages/ta-3d/lib/scene-spec.d.ts +59 -0
  23. package/dist/pi/packages/ta-3d/lib/scene-spec.js +141 -0
  24. package/dist/pi/packages/ta-3d/lib/scene-view.d.ts +57 -0
  25. package/dist/pi/packages/ta-3d/lib/scene-view.js +339 -0
  26. package/dist/pi/packages/ta-3d/lib/style.d.ts +4 -0
  27. package/dist/pi/packages/ta-3d/lib/style.js +33 -0
  28. package/dist/pi/packages/ta-3d/package.json +58 -0
  29. package/dist/pi/packages/ta-3d/web/index.js +660 -0
  30. package/dist/pi/packages/ta-agents/README.en.md +2 -2
  31. package/dist/pi/packages/ta-agents/README.md +2 -2
  32. package/dist/pi/packages/ta-agents/extension/index.mjs +248 -27
  33. package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +4 -0
  34. package/dist/pi/packages/ta-agents/lib/acp-agent.js +20 -2
  35. package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +14 -5
  36. package/dist/pi/packages/ta-agents/lib/acp-protocol.js +7 -0
  37. package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +13 -0
  38. package/dist/pi/packages/ta-agents/lib/agent-bindings.js +29 -4
  39. package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +2 -0
  40. package/dist/pi/packages/ta-agents/lib/agent-prompt.js +5 -0
  41. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +16 -4
  42. package/dist/pi/packages/ta-agents/lib/agent-session.js +34 -4
  43. package/dist/pi/packages/ta-agents/lib/agent-sign-in.d.ts +28 -0
  44. package/dist/pi/packages/ta-agents/lib/agent-sign-in.js +62 -0
  45. package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +7 -0
  46. package/dist/pi/packages/ta-agents/lib/agent-streamer.js +40 -3
  47. package/dist/pi/packages/ta-agents/lib/extension.js +12 -0
  48. package/dist/pi/packages/ta-agents/lib/texts.d.ts +86 -22
  49. package/dist/pi/packages/ta-agents/lib/texts.js +101 -21
  50. package/dist/pi/packages/ta-agents/package.json +7 -3
  51. package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
  52. package/dist/pi/packages/ta-bots/host/index.mjs +165 -53
  53. package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +6 -0
  54. package/dist/pi/packages/ta-bots/lib/bot-service.js +27 -2
  55. package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +8 -1
  56. package/dist/pi/packages/ta-bots/lib/bot-store.js +16 -2
  57. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +3 -0
  58. package/dist/pi/packages/ta-bots/lib/i18n.js +167 -2
  59. package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +0 -1
  60. package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -12
  61. package/dist/pi/packages/ta-bots/lib/weixin-channel.js +3 -1
  62. package/dist/pi/packages/ta-bots/package.json +7 -3
  63. package/dist/pi/packages/ta-bots/web/index.js +203 -1
  64. package/dist/pi/packages/ta-changes/lib/i18n.d.ts +3 -0
  65. package/dist/pi/packages/ta-changes/lib/i18n.js +51 -2
  66. package/dist/pi/packages/ta-changes/package.json +7 -3
  67. package/dist/pi/packages/ta-changes/web/index.js +87 -1
  68. package/dist/pi/packages/ta-channels/extension/index.mjs +78 -13
  69. package/dist/pi/packages/ta-channels/host/index.mjs +121 -56
  70. package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +2 -1
  71. package/dist/pi/packages/ta-channels/lib/agent-cards.js +4 -3
  72. package/dist/pi/packages/ta-channels/lib/handoff.d.ts +5 -4
  73. package/dist/pi/packages/ta-channels/lib/handoff.js +22 -6
  74. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +3 -0
  75. package/dist/pi/packages/ta-channels/lib/i18n.js +361 -2
  76. package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +2 -1
  77. package/dist/pi/packages/ta-channels/lib/team-ask.js +19 -7
  78. package/dist/pi/packages/ta-channels/lib/team.d.ts +2 -2
  79. package/dist/pi/packages/ta-channels/lib/team.js +1 -1
  80. package/dist/pi/packages/ta-channels/package.json +7 -3
  81. package/dist/pi/packages/ta-channels/web/index.js +482 -47
  82. package/dist/pi/packages/ta-computer-use/extension/index.mjs +11 -1
  83. package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +20 -2
  84. package/dist/pi/packages/ta-computer-use/package.json +7 -3
  85. package/dist/pi/packages/ta-cron/extension/index.mjs +82 -8
  86. package/dist/pi/packages/ta-cron/host/index.mjs +67 -3
  87. package/dist/pi/packages/ta-cron/lib/editor.js +1 -1
  88. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +3 -0
  89. package/dist/pi/packages/ta-cron/lib/i18n.js +217 -2
  90. package/dist/pi/packages/ta-cron/lib/page.js +14 -4
  91. package/dist/pi/packages/ta-cron/lib/schedule-util.js +29 -3
  92. package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +2 -1
  93. package/dist/pi/packages/ta-cron/lib/server-texts.js +16 -9
  94. package/dist/pi/packages/ta-cron/lib/tasks-view.js +4 -2
  95. package/dist/pi/packages/ta-cron/package.json +7 -3
  96. package/dist/pi/packages/ta-cron/web/index.js +302 -14
  97. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +3 -0
  98. package/dist/pi/packages/ta-extensions/lib/i18n.js +240 -2
  99. package/dist/pi/packages/ta-extensions/package.json +7 -3
  100. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -0
  101. package/dist/pi/packages/ta-extensions/web/index.js +329 -42
  102. package/dist/pi/packages/ta-games/README.en.md +1 -1
  103. package/dist/pi/packages/ta-games/README.md +1 -1
  104. package/dist/pi/packages/ta-games/lib/i18n.d.ts +3 -0
  105. package/dist/pi/packages/ta-games/lib/i18n.js +61 -2
  106. package/dist/pi/packages/ta-games/package.json +7 -3
  107. package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +41 -3
  108. package/dist/pi/packages/ta-games/web/index.js +97 -1
  109. package/dist/pi/packages/ta-glance/extension/index.mjs +32 -13
  110. package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +2 -0
  111. package/dist/pi/packages/ta-glance/lib/glance-json.js +38 -16
  112. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
  113. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +1 -0
  114. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +3 -0
  115. package/dist/pi/packages/ta-glance/lib/i18n.js +31 -2
  116. package/dist/pi/packages/ta-glance/package.json +7 -3
  117. package/dist/pi/packages/ta-glance/web/index.js +98 -14
  118. package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
  119. package/dist/pi/packages/ta-initiative/host/index.mjs +120 -19
  120. package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +15 -3
  121. package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +20 -3
  122. package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +2 -1
  123. package/dist/pi/packages/ta-initiative/lib/event-proposals.js +20 -6
  124. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +3 -0
  125. package/dist/pi/packages/ta-initiative/lib/i18n.js +151 -2
  126. package/dist/pi/packages/ta-initiative/lib/inbox.js +49 -30
  127. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +13 -4
  128. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
  129. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +1 -1
  130. package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +2 -1
  131. package/dist/pi/packages/ta-initiative/lib/material-util.js +9 -3
  132. package/dist/pi/packages/ta-initiative/lib/review-service.js +1 -1
  133. package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +2 -1
  134. package/dist/pi/packages/ta-initiative/lib/server-texts.js +11 -4
  135. package/dist/pi/packages/ta-initiative/lib/settings.js +2 -3
  136. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  137. package/dist/pi/packages/ta-initiative/lib/style.js +27 -14
  138. package/dist/pi/packages/ta-initiative/package.json +7 -3
  139. package/dist/pi/packages/ta-initiative/web/index.js +289 -55
  140. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +3 -0
  141. package/dist/pi/packages/ta-launcher/lib/i18n.js +71 -2
  142. package/dist/pi/packages/ta-launcher/package.json +7 -3
  143. package/dist/pi/packages/ta-launcher/web/index.js +107 -1
  144. package/dist/pi/packages/ta-manual/README.en.md +1 -1
  145. package/dist/pi/packages/ta-manual/README.md +1 -1
  146. package/dist/pi/packages/ta-manual/lib/i18n.d.ts +3 -0
  147. package/dist/pi/packages/ta-manual/lib/i18n.js +21 -2
  148. package/dist/pi/packages/ta-manual/lib/manual-util.js +2 -1
  149. package/dist/pi/packages/ta-manual/lib/pictures-c.js +30 -0
  150. package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
  151. package/dist/pi/packages/ta-manual/lib/topics.js +188 -71
  152. package/dist/pi/packages/ta-manual/package.json +7 -3
  153. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +9 -0
  154. package/dist/pi/packages/ta-manual/web/index.js +405 -119
  155. package/dist/pi/packages/ta-moments/extension/index.mjs +242 -102
  156. package/dist/pi/packages/ta-moments/host/index.mjs +268 -115
  157. package/dist/pi/packages/ta-moments/lib/i18n.d.ts +3 -0
  158. package/dist/pi/packages/ta-moments/lib/i18n.js +170 -3
  159. package/dist/pi/packages/ta-moments/lib/moments-host.js +24 -11
  160. package/dist/pi/packages/ta-moments/lib/page.js +4 -2
  161. package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +10 -12
  162. package/dist/pi/packages/ta-moments/lib/server-texts.js +128 -62
  163. package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
  164. package/dist/pi/packages/ta-moments/package.json +7 -3
  165. package/dist/pi/packages/ta-moments/web/index.js +260 -43
  166. package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
  167. package/dist/pi/packages/ta-nearby/host/index.mjs +248 -35
  168. package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +3 -0
  169. package/dist/pi/packages/ta-nearby/lib/i18n.js +173 -2
  170. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +2 -4
  171. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +21 -3
  172. package/dist/pi/packages/ta-nearby/lib/page.js +6 -5
  173. package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +5 -13
  174. package/dist/pi/packages/ta-nearby/lib/server-texts.js +194 -42
  175. package/dist/pi/packages/ta-nearby/package.json +7 -3
  176. package/dist/pi/packages/ta-nearby/web/index.js +216 -9
  177. package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
  178. package/dist/pi/packages/ta-notify/lib/i18n.d.ts +3 -0
  179. package/dist/pi/packages/ta-notify/lib/i18n.js +53 -2
  180. package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +2 -1
  181. package/dist/pi/packages/ta-notify/lib/server-texts.js +16 -5
  182. package/dist/pi/packages/ta-notify/lib/settings.js +9 -2
  183. package/dist/pi/packages/ta-notify/package.json +7 -3
  184. package/dist/pi/packages/ta-notify/web/index.js +107 -7
  185. package/dist/pi/packages/ta-plot/README.en.md +12 -0
  186. package/dist/pi/packages/ta-plot/README.md +12 -0
  187. package/dist/pi/packages/ta-plot/extension/index.mjs +121 -0
  188. package/dist/pi/packages/ta-plot/lib/extension.d.ts +15 -0
  189. package/dist/pi/packages/ta-plot/lib/extension.js +24 -0
  190. package/dist/pi/packages/ta-plot/lib/i18n.d.ts +14 -0
  191. package/dist/pi/packages/ta-plot/lib/i18n.js +30 -0
  192. package/dist/pi/packages/ta-plot/lib/index.d.ts +7 -0
  193. package/dist/pi/packages/ta-plot/lib/index.js +25 -0
  194. package/dist/pi/packages/ta-plot/lib/plot-expression.d.ts +16 -0
  195. package/dist/pi/packages/ta-plot/lib/plot-expression.js +209 -0
  196. package/dist/pi/packages/ta-plot/lib/plot-painter.d.ts +28 -0
  197. package/dist/pi/packages/ta-plot/lib/plot-painter.js +208 -0
  198. package/dist/pi/packages/ta-plot/lib/plot-prompt.d.ts +7 -0
  199. package/dist/pi/packages/ta-plot/lib/plot-prompt.js +16 -0
  200. package/dist/pi/packages/ta-plot/lib/plot-protocol.d.ts +7 -0
  201. package/dist/pi/packages/ta-plot/lib/plot-protocol.js +10 -0
  202. package/dist/pi/packages/ta-plot/lib/plot-scene.d.ts +65 -0
  203. package/dist/pi/packages/ta-plot/lib/plot-scene.js +427 -0
  204. package/dist/pi/packages/ta-plot/lib/plot-spec.d.ts +86 -0
  205. package/dist/pi/packages/ta-plot/lib/plot-spec.js +165 -0
  206. package/dist/pi/packages/ta-plot/lib/plot-view.d.ts +4 -0
  207. package/dist/pi/packages/ta-plot/lib/plot-view.js +205 -0
  208. package/dist/pi/packages/ta-plot/lib/react.d.ts +8 -0
  209. package/dist/pi/packages/ta-plot/lib/react.js +8 -0
  210. package/dist/pi/packages/ta-plot/lib/style.d.ts +4 -0
  211. package/dist/pi/packages/ta-plot/lib/style.js +47 -0
  212. package/dist/pi/packages/ta-plot/package.json +57 -0
  213. package/dist/pi/packages/ta-plot/web/index.js +1320 -0
  214. package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
  215. package/dist/pi/packages/ta-recall/host/index.mjs +136 -55
  216. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +6 -3
  217. package/dist/pi/packages/ta-recall/lib/brief-util.js +26 -5
  218. package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +2 -1
  219. package/dist/pi/packages/ta-recall/lib/extension-util.js +7 -1
  220. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +3 -0
  221. package/dist/pi/packages/ta-recall/lib/i18n.js +89 -2
  222. package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +2 -1
  223. package/dist/pi/packages/ta-recall/lib/keep-util.js +8 -1
  224. package/dist/pi/packages/ta-recall/lib/recall-service.js +5 -3
  225. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -3
  226. package/dist/pi/packages/ta-recall/lib/server-texts.js +15 -8
  227. package/dist/pi/packages/ta-recall/package.json +7 -3
  228. package/dist/pi/packages/ta-recall/web/index.js +164 -9
  229. package/dist/pi/packages/ta-rooms/extension/index.mjs +60 -3
  230. package/dist/pi/packages/ta-rooms/host/index.mjs +284 -37
  231. package/dist/pi/packages/ta-rooms/lib/dialogs.js +2 -1
  232. package/dist/pi/packages/ta-rooms/lib/double-agents.js +31 -7
  233. package/dist/pi/packages/ta-rooms/lib/double-grants.js +57 -13
  234. package/dist/pi/packages/ta-rooms/lib/double-host.js +31 -5
  235. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +3 -0
  236. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +201 -2
  237. package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +2 -1
  238. package/dist/pi/packages/ta-rooms/lib/double-tasks.js +93 -21
  239. package/dist/pi/packages/ta-rooms/lib/double-user.js +1 -1
  240. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +1 -1
  241. package/dist/pi/packages/ta-rooms/lib/double-util.js +22 -3
  242. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +2 -1
  243. package/dist/pi/packages/ta-rooms/lib/doubles-view.js +8 -1
  244. package/dist/pi/packages/ta-rooms/lib/friend-notices.js +27 -8
  245. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +3 -0
  246. package/dist/pi/packages/ta-rooms/lib/i18n.js +243 -2
  247. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  248. package/dist/pi/packages/ta-rooms/lib/style.js +1 -0
  249. package/dist/pi/packages/ta-rooms/package.json +7 -3
  250. package/dist/pi/packages/ta-rooms/web/index.js +496 -9
  251. package/dist/pi/packages/ta-share/extension/index.mjs +98 -23
  252. package/dist/pi/packages/ta-share/lib/i18n.d.ts +3 -0
  253. package/dist/pi/packages/ta-share/lib/i18n.js +203 -2
  254. package/dist/pi/packages/ta-share/lib/page.js +1 -1
  255. package/dist/pi/packages/ta-share/lib/server-texts.d.ts +2 -1
  256. package/dist/pi/packages/ta-share/lib/server-texts.js +60 -29
  257. package/dist/pi/packages/ta-share/lib/share-dialog.js +3 -1
  258. package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
  259. package/dist/pi/packages/ta-share/lib/style.js +1 -0
  260. package/dist/pi/packages/ta-share/package.json +7 -3
  261. package/dist/pi/packages/ta-share/web/index.js +246 -4
  262. package/dist/pi/packages/ta-sync/host/index.mjs +170 -25
  263. package/dist/pi/packages/ta-sync/lib/i18n.d.ts +3 -0
  264. package/dist/pi/packages/ta-sync/lib/i18n.js +173 -2
  265. package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
  266. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +183 -2
  267. package/dist/pi/packages/ta-sync/lib/panel.js +4 -1
  268. package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +0 -1
  269. package/dist/pi/packages/ta-sync/lib/server-texts.js +132 -35
  270. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  271. package/dist/pi/packages/ta-sync/lib/style.js +1 -0
  272. package/dist/pi/packages/ta-sync/package.json +7 -3
  273. package/dist/pi/packages/ta-sync/web/index.js +398 -5
  274. package/dist/pi/packages/ta-sync-cloud/host/index.mjs +52 -23
  275. package/dist/pi/packages/ta-sync-cloud/lib/host.js +49 -20
  276. package/dist/pi/packages/ta-sync-cloud/package.json +7 -3
  277. package/dist/pi/packages/ta-team/README.en.md +1 -1
  278. package/dist/pi/packages/ta-team/README.md +1 -1
  279. package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
  280. package/dist/pi/packages/ta-team/host/index.mjs +130 -43
  281. package/dist/pi/packages/ta-team/lib/dialogs.js +68 -9
  282. package/dist/pi/packages/ta-team/lib/i18n.d.ts +7 -1
  283. package/dist/pi/packages/ta-team/lib/i18n.js +431 -8
  284. package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
  285. package/dist/pi/packages/ta-team/lib/page.js +5 -1
  286. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  287. package/dist/pi/packages/ta-team/lib/style.js +11 -4
  288. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +14 -8
  289. package/dist/pi/packages/ta-team/lib/team-invites.js +38 -6
  290. package/dist/pi/packages/ta-team/package.json +7 -3
  291. package/dist/pi/packages/ta-team/web/index.js +688 -102
  292. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +3 -0
  293. package/dist/pi/packages/ta-workspace/lib/i18n.js +417 -1
  294. package/dist/pi/packages/ta-workspace/package.json +7 -3
  295. package/dist/pi/packages/ta-workspace/web/index.js +504 -40
  296. package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
  297. package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
  298. package/dist/public/assets/{abnfDiagram-S7VZAUFO-DMceNIR5.js → abnfDiagram-S7VZAUFO-CD8CaArq.js} +1 -1
  299. package/dist/public/assets/{architecture-WOLXFQ4H-5AdYeEv8.js → architecture-WOLXFQ4H-f2a9bodL.js} +1 -1
  300. package/dist/public/assets/{architectureDiagram-YGSQEFNW-CqkJHg0A.js → architectureDiagram-YGSQEFNW-BCWH9CwO.js} +1 -1
  301. package/dist/public/assets/{blockDiagram-APKKGZFW-BtuHdIjQ.js → blockDiagram-APKKGZFW-fUamQMeJ.js} +1 -1
  302. package/dist/public/assets/{browser-Ds5TwWWr.js → browser-CrMa174j.js} +1 -1
  303. package/dist/public/assets/{c4Diagram-KJ2TOQU5-eebbjTgZ.js → c4Diagram-KJ2TOQU5-CkLtnwp1.js} +1 -1
  304. package/dist/public/assets/{chunk-6MUBBAK2-BjMKSfTf.js → chunk-6MUBBAK2-cwcGPuAH.js} +1 -1
  305. package/dist/public/assets/{chunk-AXFCVDMN-BElluw_7.js → chunk-AXFCVDMN-DNkmkYfC.js} +1 -1
  306. package/dist/public/assets/{chunk-BG4553SI-CUDwpWNL.js → chunk-BG4553SI-C8qbbr2Z.js} +1 -1
  307. package/dist/public/assets/{chunk-DQASFODM-B-92o8Uj.js → chunk-DQASFODM-C-PJ2CrJ.js} +1 -1
  308. package/dist/public/assets/{chunk-HFQBQIA3-pveEMcXK.js → chunk-HFQBQIA3-BYcgxNEL.js} +1 -1
  309. package/dist/public/assets/{chunk-KQLB2F66-m7DKNjYW.js → chunk-KQLB2F66-BTDNzrRl.js} +1 -1
  310. package/dist/public/assets/{chunk-KS47KZWR-CnSSETdj.js → chunk-KS47KZWR-1sGg1pKP.js} +1 -1
  311. package/dist/public/assets/{chunk-LEVMRMFU-Ds7OnJrC.js → chunk-LEVMRMFU-7lAsFwHT.js} +1 -1
  312. package/dist/public/assets/{chunk-M57EVK23-PJSYCuUh.js → chunk-M57EVK23-C8K-ltig.js} +1 -1
  313. package/dist/public/assets/{chunk-OY52VR5R-C3ygRwSC.js → chunk-OY52VR5R-CBe1QL_V.js} +1 -1
  314. package/dist/public/assets/{chunk-QB3YPZ4I-DcFtmZh7.js → chunk-QB3YPZ4I-COhYyyE_.js} +1 -1
  315. package/dist/public/assets/{chunk-R3KSYZAL-B4BOidE6.js → chunk-R3KSYZAL-CREAgaSS.js} +1 -1
  316. package/dist/public/assets/{chunk-STOXU5M4-DcXfwN7k.js → chunk-STOXU5M4-CTl0P8_C.js} +1 -1
  317. package/dist/public/assets/{chunk-TU62E6Q5-B-rpQQxX.js → chunk-TU62E6Q5-B_GG7baF.js} +1 -1
  318. package/dist/public/assets/{chunk-X4PVCEUW-BBtlFSw1.js → chunk-X4PVCEUW-CDrSpVOj.js} +1 -1
  319. package/dist/public/assets/{chunk-XXDRQBXY-Do8BIocv.js → chunk-XXDRQBXY-sKeiDEnC.js} +1 -1
  320. package/dist/public/assets/{classDiagram-v2-L25IHNXF-bhGAODMS.js → classDiagram-v2-L25IHNXF-Cqo1O5FQ.js} +1 -1
  321. package/dist/public/assets/{cose-bilkent-JH36ORCC-B7Qv6Hv_.js → cose-bilkent-JH36ORCC-CTSKeRBe.js} +1 -1
  322. package/dist/public/assets/cynefin-EF2NZ3EQ-CP12ndt7.js +1 -0
  323. package/dist/public/assets/{cynefinDiagram-L36ESFBY-BX-R5Z6L.js → cynefinDiagram-L36ESFBY-67xEPyP9.js} +1 -1
  324. package/dist/public/assets/{d3-selection-D3xgEEla.js → d3-selection-BUiX-3qh.js} +1 -1
  325. package/dist/public/assets/{dagre-SPEB5RXH-MfJ9yO0v.js → dagre-SPEB5RXH-DDw-u3Kg.js} +1 -1
  326. package/dist/public/assets/{diagram-3B7GL73J-DxFRc2vC.js → diagram-3B7GL73J-BBFInaCs.js} +1 -1
  327. package/dist/public/assets/{diagram-DNEMPZML-BcBwOLbM.js → diagram-DNEMPZML-ZdnFKM7-.js} +1 -1
  328. package/dist/public/assets/{diagram-L3MUGCDN--Rw-isPI.js → diagram-L3MUGCDN-CPb04hOv.js} +1 -1
  329. package/dist/public/assets/{diagram-LA4NIPWU-DXkY85UN.js → diagram-LA4NIPWU-P9wHFGDS.js} +1 -1
  330. package/dist/public/assets/{diagram-MHCOC4E2-CbNmfAid.js → diagram-MHCOC4E2-Ce_Cr-t6.js} +1 -1
  331. package/dist/public/assets/{diagram-XPFHEONP-D1nGQjzf.js → diagram-XPFHEONP-CfS34OHW.js} +1 -1
  332. package/dist/public/assets/{dist-B1JMTrET.js → dist-6pZqZEaM.js} +1 -1
  333. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-DGXbVfke.js → ebnfDiagram-UZSYDL2S-BkHabCn2.js} +1 -1
  334. package/dist/public/assets/{editor.api-e3yQoo1r.js → editor.api-CO4Q0NKb.js} +1 -1
  335. package/dist/public/assets/{elk-XV6XMXQE-pA-iT6fg.js → elk-XV6XMXQE-JpreOVeR.js} +1 -1
  336. package/dist/public/assets/{erDiagram-EYBAPDEH-BpgBun7y.js → erDiagram-EYBAPDEH-DDFJwzHx.js} +1 -1
  337. package/dist/public/assets/{eventmodeling-K75KTNOO-CVfyCcul.js → eventmodeling-K75KTNOO-DsnkF6Zc.js} +1 -1
  338. package/dist/public/assets/flowDiagram-MALGAFMO-Djxeacjw.js +1 -0
  339. package/dist/public/assets/{freemarker2-dYGec-fT.js → freemarker2-Cm4NK652.js} +1 -1
  340. package/dist/public/assets/{ganttDiagram-23REXITY-DjLTTWwA.js → ganttDiagram-23REXITY-C7eedoYb.js} +1 -1
  341. package/dist/public/assets/gitGraph-VSP46ZUC-qlWN7ijl.js +1 -0
  342. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-D9m7IVyJ.js → gitGraphDiagram-STJD7YCW-Cuh3ih-z.js} +1 -1
  343. package/dist/public/assets/{handlebars-Bxerz7ci.js → handlebars-BnE51DUi.js} +1 -1
  344. package/dist/public/assets/{html-DlVnGsdp.js → html-7koekDfa.js} +1 -1
  345. package/dist/public/assets/{index-CZmGe9gc.js → index-CQG1XddL.js} +2 -2
  346. package/dist/public/assets/info-OHQRW6UA-jN69V28z.js +1 -0
  347. package/dist/public/assets/{infoDiagram-KBXO4MBG-DoYdhkAy.js → infoDiagram-KBXO4MBG-BY3iq7I8.js} +1 -1
  348. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bc0GAInW.js → ishikawaDiagram-M35NCXHK-COjlz24y.js} +1 -1
  349. package/dist/public/assets/ja-BHBiml1x.js +12 -0
  350. package/dist/public/assets/{javascript-DZrowo_I.js → javascript-BUZgUhdn.js} +1 -1
  351. package/dist/public/assets/{journeyDiagram-OPLOXDXO-BM7Dwstu.js → journeyDiagram-OPLOXDXO-DReJE04Q.js} +1 -1
  352. package/dist/public/assets/{jsonMode-Bs30wPr5.js → jsonMode-qPeVDBDp.js} +1 -1
  353. package/dist/public/assets/{kanban-definition-BZKZHSQY-CO-Crrdu.js → kanban-definition-BZKZHSQY-BB0_ePvg.js} +1 -1
  354. package/dist/public/assets/{liquid-dLz9d3ax.js → liquid-CNKL9dLX.js} +1 -1
  355. package/dist/public/assets/{mdx-DO0x92Kn.js → mdx-D1_UzrBc.js} +1 -1
  356. package/dist/public/assets/{mermaid-parser.core-BXwArNvw.js → mermaid-parser.core-DiE3z_tV.js} +3 -3
  357. package/dist/public/assets/{mermaid.core-C6mppfDC.js → mermaid.core-CBCRrLdl.js} +4 -4
  358. package/dist/public/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
  359. package/dist/public/assets/{mindmap-definition-I2QAS2VK-vcQ2EU4T.js → mindmap-definition-I2QAS2VK-D-Y5fKl1.js} +1 -1
  360. package/dist/public/assets/module-BEbKICB1.js +2475 -0
  361. package/dist/public/assets/module-Egyx6Otv.js +1 -0
  362. package/dist/public/assets/{monaco-J_Pr5zjk.js → monaco--czRbHhk.js} +3 -3
  363. package/dist/public/assets/packet-JDAUHWVQ-Cl8QuXQJ.js +1 -0
  364. package/dist/public/assets/{pegDiagram-FD4XPPHP-DPDrbtS2.js → pegDiagram-FD4XPPHP-1jx5jc73.js} +1 -1
  365. package/dist/public/assets/pie-XZMESJXO-kVGJsGZe.js +1 -0
  366. package/dist/public/assets/{pieDiagram-J4AKIIQI-DXuaepGJ.js → pieDiagram-J4AKIIQI-DGv_WCCu.js} +1 -1
  367. package/dist/public/assets/{python-nnmIOv4s.js → python-DNZu5LjV.js} +1 -1
  368. package/dist/public/assets/{quadrantDiagram-XTYBLID2-BuD_-coZ.js → quadrantDiagram-XTYBLID2-BgY0lf8V.js} +1 -1
  369. package/dist/public/assets/radar-ABXABTNO-Dw71L-n8.js +1 -0
  370. package/dist/public/assets/railroad-I3PHUGI6-DkaUvI4_.js +1 -0
  371. package/dist/public/assets/{railroad-abnf-LNEFI6M7-CkCl68xY.js → railroad-abnf-LNEFI6M7-tZ7rJxwM.js} +1 -1
  372. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DO3GiRv6.js → railroad-ebnf-DWYD2UWJ-JO6n_1TK.js} +1 -1
  373. package/dist/public/assets/{railroad-peg-JR7BVNR7-DZBsKy4P.js → railroad-peg-JR7BVNR7-Bf0PG2YJ.js} +1 -1
  374. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BeLq7Mqp.js → railroadDiagram-MRQ6NCDL-BMjog84X.js} +1 -1
  375. package/dist/public/assets/{razor-l2rRITgB.js → razor-DU-x8qSP.js} +1 -1
  376. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BBizkrON.js → requirementDiagram-Y7LWUY3S-CktbbWjr.js} +1 -1
  377. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-tyo-p7oc.js → sankeyDiagram-WGJFYUXA-CQonOre7.js} +1 -1
  378. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BSGPbeJX.js → sequenceDiagram-5NDRBG5M-CAe8-JvA.js} +1 -1
  379. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js → stateDiagram-v2-FJ4FJNEA-BrkqOuRm.js} +1 -1
  380. package/dist/public/assets/{swimlanes-UMQ2AFYF-BJfgQyQo.js → swimlanes-UMQ2AFYF-sLpgHBKo.js} +1 -1
  381. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-amBdr5Wc.js +8 -0
  382. package/dist/public/assets/{timeline-definition-SEUHKTQE-Ch8aQwF6.js → timeline-definition-SEUHKTQE-CHE0x-WN.js} +1 -1
  383. package/dist/public/assets/treeView-D4JQ5SDB-DKLyFqZk.js +1 -0
  384. package/dist/public/assets/treemap-SAJKECNS-CRG6ogj8.js +1 -0
  385. package/dist/public/assets/{typescript-LasX-M7S.js → typescript-BrNT2oWW.js} +1 -1
  386. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BzlSB4R4.js → usecaseDiagram-AFA6YXN4-DwkFRI5R.js} +1 -1
  387. package/dist/public/assets/{vennDiagram-NNMJR3RB-4xaWLrMk.js → vennDiagram-NNMJR3RB-BquQVmJq.js} +1 -1
  388. package/dist/public/assets/wardley-7MLQ67FV-D2jQfflX.js +1 -0
  389. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-C-iK1p-O.js → wardleyDiagram-S7YFUSEH-sNYFUfMe.js} +1 -1
  390. package/dist/public/assets/{xml-CGhYQUqn.js → xml-BY65QKv7.js} +1 -1
  391. package/dist/public/assets/{xychartDiagram-GGNKY7IX-CFsnisdM.js → xychartDiagram-GGNKY7IX-CnWEYuid.js} +1 -1
  392. package/dist/public/assets/{yaml-BcOaPfuH.js → yaml-BMovUwzO.js} +1 -1
  393. package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
  394. package/dist/public/index.html +1 -1
  395. package/dist/serve/index.mjs +2773 -626
  396. package/package.json +39 -37
  397. package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +0 -1
  398. package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +0 -1
  399. package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +0 -1
  400. package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +0 -1
  401. package/dist/public/assets/module-C0tELrcJ.js +0 -1
  402. package/dist/public/assets/module-CteT9pTP.js +0 -2405
  403. package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +0 -1
  404. package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +0 -1
  405. package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +0 -1
  406. package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +0 -1
  407. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +0 -8
  408. package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +0 -1
  409. package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +0 -1
  410. package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +0 -1
@@ -248,6 +248,45 @@ class ConversationIndex {
248
248
  }
249
249
  }
250
250
 
251
+ // ../ta-protocol/esm/common/language.js
252
+ var TaLanguageUtil;
253
+ (function(TaLanguageUtil2) {
254
+ TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
255
+ TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
256
+ function of(tag) {
257
+ const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
258
+ if (/^zh(\b|-)/.test(said)) {
259
+ return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
260
+ }
261
+ return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
262
+ }
263
+ TaLanguageUtil2.of = of;
264
+ function server(env = typeof process === "undefined" ? {} : process.env) {
265
+ return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
266
+ }
267
+ TaLanguageUtil2.server = server;
268
+ function pick(language, words) {
269
+ return words[of(language)];
270
+ }
271
+ TaLanguageUtil2.pick = pick;
272
+ function say(words) {
273
+ return words[server()];
274
+ }
275
+ TaLanguageUtil2.say = say;
276
+ function chinese(language) {
277
+ return of(language).startsWith("zh");
278
+ }
279
+ TaLanguageUtil2.chinese = chinese;
280
+ function cjk(language) {
281
+ return of(language) !== "en-US";
282
+ }
283
+ TaLanguageUtil2.cjk = cjk;
284
+ function list(language, items) {
285
+ return items.join(cjk(language) ? "、" : ", ");
286
+ }
287
+ TaLanguageUtil2.list = list;
288
+ })(TaLanguageUtil || (TaLanguageUtil = {}));
289
+
251
290
  // web-src/block-util.ts
252
291
  var BlockUtil;
253
292
  ((BlockUtil) => {
@@ -416,7 +455,12 @@ ${draft.body.trim()}
416
455
  "- Once it is made, say in one line where the user finds it."
417
456
  ].join(`
418
457
  `);
419
- const said = /^zh/i.test(language) ? `做出来:${draft.title}` : `Make it: ${draft.title}`;
458
+ const said = TaLanguageUtil.pick(language, {
459
+ "zh-CN": `做出来:${draft.title}`,
460
+ "zh-TW": `做出來:${draft.title}`,
461
+ "en-US": `Make it: ${draft.title}`,
462
+ "ja-JP": `作成:${draft.title}`
463
+ });
420
464
  return `<context>
421
465
  ${context}
422
466
  </context>
@@ -451,10 +495,16 @@ var KeepUtil;
451
495
  "- When the conversation holds nothing worth keeping, say so and offer nothing."
452
496
  ].join(`
453
497
  `);
498
+ const prompt = TaLanguageUtil.pick(language, {
499
+ "zh-CN": "把这个对话里的做法存下来",
500
+ "zh-TW": "把這個對話裡的做法存下來",
501
+ "en-US": "Keep how this was done",
502
+ "ja-JP": "この会話の方法を保存"
503
+ });
454
504
  return `<context>
455
505
  ${context}
456
506
  </context>
457
- ${/^zh/i.test(language) ? "把这个对话里的做法存下来" : "Keep how this was done"}`;
507
+ ${prompt}`;
458
508
  }
459
509
  KeepUtil.ask = ask;
460
510
  function hint(asks) {
@@ -3,6 +3,45 @@ import { existsSync } from "node:fs";
3
3
  import { mkdir, writeFile } from "node:fs/promises";
4
4
  import { join as join2 } from "node:path";
5
5
 
6
+ // ../ta-protocol/esm/common/language.js
7
+ var TaLanguageUtil;
8
+ (function(TaLanguageUtil2) {
9
+ TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
10
+ TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
11
+ function of(tag) {
12
+ const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
13
+ if (/^zh(\b|-)/.test(said)) {
14
+ return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
15
+ }
16
+ return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
17
+ }
18
+ TaLanguageUtil2.of = of;
19
+ function server(env = typeof process === "undefined" ? {} : process.env) {
20
+ return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
21
+ }
22
+ TaLanguageUtil2.server = server;
23
+ function pick(language, words) {
24
+ return words[of(language)];
25
+ }
26
+ TaLanguageUtil2.pick = pick;
27
+ function say(words) {
28
+ return words[server()];
29
+ }
30
+ TaLanguageUtil2.say = say;
31
+ function chinese(language) {
32
+ return of(language).startsWith("zh");
33
+ }
34
+ TaLanguageUtil2.chinese = chinese;
35
+ function cjk(language) {
36
+ return of(language) !== "en-US";
37
+ }
38
+ TaLanguageUtil2.cjk = cjk;
39
+ function list(language, items) {
40
+ return items.join(cjk(language) ? "、" : ", ");
41
+ }
42
+ TaLanguageUtil2.list = list;
43
+ })(TaLanguageUtil || (TaLanguageUtil = {}));
44
+
6
45
  // ../ta-protocol/esm/common/ta-extension-host.js
7
46
  var TA_HOST_EVENT = "ta:host";
8
47
  var TaHostUtil;
@@ -118,46 +157,46 @@ var TaPermissionUtil;
118
157
  }
119
158
  TaPermissionUtil2.host = host;
120
159
  })(TaPermissionUtil || (TaPermissionUtil = {}));
121
- var action = (id, en, zh, more = {}) => ({
160
+ var action = (id, en, zh, tw, ja, more = {}) => ({
122
161
  id,
123
162
  area: id.split(".")[0],
124
- title: { en, "zh-CN": zh },
163
+ title: { en, "zh-CN": zh, ...tw ? { "zh-TW": tw } : {}, ...ja ? { "ja-JP": ja } : {} },
125
164
  ...more
126
165
  });
127
166
  var TA_ACTIONS = [
128
- action("chat.view", "See conversations", "查看对话"),
129
- action("chat.send", "Send in conversations", "在对话里发消息"),
130
- action("chat.create", "Start conversations", "新建对话"),
131
- action("chat.stop", "Stop a reply", "停止回复"),
132
- action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
133
- action("chat.share", "Share by a link", "生成分享链接"),
134
- action("agent.view", "See agents", "查看智能体"),
135
- action("agent.use", "Talk with agents", "和智能体对话"),
136
- action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
137
- action("channel.view", "See channels", "查看频道"),
138
- action("channel.post", "Post in channels", "在频道里发言"),
139
- action("channel.manage", "Create and change channels", "新建、管理频道"),
140
- action("task.view", "See tasks", "查看任务"),
141
- action("task.create", "Hand out tasks", "派任务"),
142
- action("task.manage", "Take over and stop tasks", "接管、停止任务"),
143
- action("files.read", "Read files", "读文件", { scoped: true }),
144
- action("files.write", "Change files", "改文件", { scoped: true }),
145
- action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
146
- action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
147
- action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
148
- action("models.use", "Use the models", "使用模型"),
149
- action("models.manage", "Sign in to models", "登录和更换模型账号"),
150
- action("cron.view", "See scheduled tasks", "查看定时任务"),
151
- action("cron.manage", "Change scheduled tasks", "管理定时任务"),
152
- action("extensions.use", "Use extensions", "使用扩展"),
153
- action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
154
- action("settings.view", "See settings", "查看设置"),
155
- action("settings.manage", "Change settings", "修改设置"),
156
- action("members.view", "See members", "查看成员"),
157
- action("members.invite", "Invite people", "邀请别人"),
158
- action("members.approve", "Answer requests", "处理申请"),
159
- action("members.roles", "Change roles and members", "管理角色和成员"),
160
- action("audit.view", "See the record", "查看记录")
167
+ action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
168
+ action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
169
+ action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
170
+ action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
171
+ action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
172
+ action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
173
+ action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
174
+ action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
175
+ action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
176
+ action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
177
+ action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
178
+ action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
179
+ action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
180
+ action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
181
+ action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
182
+ action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
183
+ action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
184
+ action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
185
+ action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
186
+ action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
187
+ action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
188
+ action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
189
+ action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
190
+ action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
191
+ action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
192
+ action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
193
+ action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
194
+ action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
195
+ action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
196
+ action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
197
+ action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
198
+ action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
199
+ action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
161
200
  ];
162
201
  var TaActionUtil;
163
202
  (function(TaActionUtil2) {
@@ -167,8 +206,18 @@ var TaActionUtil;
167
206
  }
168
207
  TaActionUtil2.info = info;
169
208
  function title(id, language) {
170
- const found = byId.get(id);
171
- return found ? language.startsWith("zh") ? found.title["zh-CN"] : found.title.en : id;
209
+ var _a;
210
+ var _b, _c;
211
+ const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
212
+ if (!title2) {
213
+ return id;
214
+ }
215
+ return TaLanguageUtil.pick(language, {
216
+ "zh-CN": title2["zh-CN"],
217
+ "zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
218
+ "en-US": title2.en,
219
+ "ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
220
+ });
172
221
  }
173
222
  TaActionUtil2.title = title;
174
223
  function inside(dir, path) {
@@ -336,14 +385,22 @@ var BriefUtil;
336
385
  const flat = text.replace(/\s+/g, " ").trim();
337
386
  return flat.length > chars ? `${flat.slice(0, chars)}…` : flat;
338
387
  }
339
- BriefUtil.HEADINGS = { zh: ["做完了", "等你定", "下一步"], en: ["Done", "Waiting for you", "Next"] };
388
+ BriefUtil.HEADINGS = {
389
+ "zh-CN": ["做完了", "等你定", "下一步"],
390
+ "zh-TW": ["做完了", "等你定", "下一步"],
391
+ "en-US": ["Done", "Waiting for you", "Next"],
392
+ "ja-JP": ["完了", "あなたの判断待ち", "次のステップ"]
393
+ };
340
394
  const PARTS = {
341
395
  做完了: "done",
342
396
  done: "done",
343
397
  等你定: "waiting",
344
398
  "waiting for you": "waiting",
345
399
  下一步: "next",
346
- next: "next"
400
+ next: "next",
401
+ 完了: "done",
402
+ あなたの判断待ち: "waiting",
403
+ 次のステップ: "next"
347
404
  };
348
405
  function summary(text, file, at) {
349
406
  const counts = { done: 0, waiting: 0, next: 0 };
@@ -380,11 +437,23 @@ var BriefUtil;
380
437
  return text.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_`~]+/g, "").replace(/\s+/g, " ").trim().slice(0, 160);
381
438
  }
382
439
  BriefUtil.plain = plain;
383
- function message(material2, since2, zh) {
384
- const heads = zh ? BriefUtil.HEADINGS.zh : BriefUtil.HEADINGS.en;
440
+ function message(material2, since2, language) {
441
+ const heads = BriefUtil.HEADINGS[language] || BriefUtil.HEADINGS["en-US"];
442
+ const langName = TaLanguageUtil.pick(language, {
443
+ "zh-CN": "Simplified Chinese",
444
+ "zh-TW": "Traditional Chinese",
445
+ "en-US": "English",
446
+ "ja-JP": "Japanese"
447
+ });
448
+ const prompt = TaLanguageUtil.pick(language, {
449
+ "zh-CN": "写今天的简报",
450
+ "zh-TW": "寫今天的簡報",
451
+ "en-US": "Write today's brief",
452
+ "ja-JP": "今日のブリーフを書く"
453
+ });
385
454
  const context = [
386
455
  "[ta-recall:brief]",
387
- `Write the daily brief of the user from what happened since ${new Date(since2).toISOString()}, below, in ${zh ? "Chinese" : "English"}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
456
+ `Write the daily brief of the user from what happened since ${new Date(since2).toISOString()}, below, in ${langName}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
388
457
  `- ### ${heads[0]}: what got done;`,
389
458
  `- ### ${heads[1]}: what waits for a decision of the user, failed or was left half done, and what they should do, the most pressing first;`,
390
459
  `- ### ${heads[2]}: two or three concrete next steps.`,
@@ -397,7 +466,7 @@ var BriefUtil;
397
466
  return `<context>
398
467
  ${context}
399
468
  </context>
400
- ${zh ? "写今天的简报" : "Write today's brief"}`;
469
+ ${prompt}`;
401
470
  }
402
471
  BriefUtil.message = message;
403
472
  })(BriefUtil ||= {});
@@ -681,7 +750,12 @@ ${draft.body.trim()}
681
750
  "- Once it is made, say in one line where the user finds it."
682
751
  ].join(`
683
752
  `);
684
- const said = /^zh/i.test(language) ? `做出来:${draft.title}` : `Make it: ${draft.title}`;
753
+ const said = TaLanguageUtil.pick(language, {
754
+ "zh-CN": `做出来:${draft.title}`,
755
+ "zh-TW": `做出來:${draft.title}`,
756
+ "en-US": `Make it: ${draft.title}`,
757
+ "ja-JP": `作成:${draft.title}`
758
+ });
685
759
  return `<context>
686
760
  ${context}
687
761
  </context>
@@ -852,16 +926,22 @@ var SimilarUtil;
852
926
  // web-src/server-texts.ts
853
927
  var RecallServerTexts;
854
928
  ((RecallServerTexts) => {
855
- function zh(env = process.env) {
856
- return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || "");
857
- }
858
- RecallServerTexts.zh = zh;
859
- function briefTitle() {
860
- return zh() ? "每日简报" : "Daily brief";
929
+ function briefTitle(language = TaLanguageUtil.server()) {
930
+ return TaLanguageUtil.pick(language, {
931
+ "zh-CN": "每日简报",
932
+ "zh-TW": "每日簡報",
933
+ "en-US": "Daily brief",
934
+ "ja-JP": "毎日のブリーフ"
935
+ });
861
936
  }
862
937
  RecallServerTexts.briefTitle = briefTitle;
863
- function notOpen() {
864
- return zh() ? "这个对话没有打开,打开它再点一次" : "The conversation is not open: open it and tap again";
938
+ function notOpen(language = TaLanguageUtil.server()) {
939
+ return TaLanguageUtil.pick(language, {
940
+ "zh-CN": "这个对话没有打开,打开它再点一次",
941
+ "zh-TW": "這個對話沒有開啟,開啟它再點一次",
942
+ "en-US": "The conversation is not open: open it and tap again",
943
+ "ja-JP": "会話が開かれていません:開いてからもう一度タップしてください"
944
+ });
865
945
  }
866
946
  RecallServerTexts.notOpen = notOpen;
867
947
  })(RecallServerTexts ||= {});
@@ -976,7 +1056,7 @@ class RecallHost {
976
1056
  }
977
1057
  const open = (await this.host.listSessions()).find((info) => info.piSessionId === session);
978
1058
  if (!open) {
979
- throw new Error(RecallServerTexts.notOpen());
1059
+ throw new Error(RecallServerTexts.notOpen(TaLanguageUtil.server()));
980
1060
  }
981
1061
  await this.host.prompt(open.sessionId, { clientMessageId: `ta-recall-make:${key}`, message, streamingBehavior: "followUp" });
982
1062
  await this.decide(key, { made: true });
@@ -1058,8 +1138,9 @@ class RecallHost {
1058
1138
  return;
1059
1139
  }
1060
1140
  const session = await this.briefSession(sessions, briefFile);
1141
+ const language = TaLanguageUtil.server();
1061
1142
  await this.host.prompt(session.sessionId, {
1062
- message: BriefUtil.message(material, since, RecallServerTexts.zh()),
1143
+ message: BriefUtil.message(material, since, language),
1063
1144
  clientMessageId: `ta-recall-brief:${now}`,
1064
1145
  streamingBehavior: "followUp"
1065
1146
  });
@@ -1080,7 +1161,7 @@ class RecallHost {
1080
1161
  return this.host.openSession({ cwd: await this.host.sessionCwd(file) ?? cwd, sessionFile: file });
1081
1162
  }
1082
1163
  const created = await this.host.openSession({ cwd });
1083
- await this.host.setSessionName(created.sessionId, RecallServerTexts.briefTitle());
1164
+ await this.host.setSessionName(created.sessionId, RecallServerTexts.briefTitle(TaLanguageUtil.server()));
1084
1165
  return created;
1085
1166
  }
1086
1167
  async sources() {
@@ -1,3 +1,4 @@
1
+ import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
1
2
  import { type BriefSettings, type BriefSummary, type Conversation } from './recall-protocol';
2
3
  /** A notice of ta-notify, as its host gives it (`notices`): only what a brief reads. */
3
4
  export interface BriefNotice {
@@ -73,8 +74,10 @@ export declare namespace BriefUtil {
73
74
  function source(name: string, value: unknown): BriefSource | undefined;
74
75
  /** The headings of the parts of a brief, which the double's home counts the lines of (summary). */
75
76
  const HEADINGS: {
76
- readonly zh: readonly ['做完了', '等你定', '下一步'];
77
- readonly en: readonly ['Done', 'Waiting for you', 'Next'];
77
+ readonly 'zh-CN': readonly ['做完了', '等你定', '下一步'];
78
+ readonly 'zh-TW': readonly ['做完了', '等你定', '下一步'];
79
+ readonly 'en-US': readonly ['Done', 'Waiting for you', 'Next'];
80
+ readonly 'ja-JP': readonly ['完了', 'あなたの判断待ち', '次のステップ'];
78
81
  };
79
82
  /**
80
83
  * How many lines each part of a brief has, and the first that wait with the conversations they link; undefined
@@ -84,6 +87,6 @@ export declare namespace BriefUtil {
84
87
  /** Markdown of a line as text: the words of links, without marks of emphasis and code. */
85
88
  function plain(text: string): string;
86
89
  /** The message that asks for the brief: what the model reads, then the line the user sees. */
87
- function message(material: string, since: number, zh: boolean): string;
90
+ function message(material: string, since: number, language: TaLanguage): string;
88
91
  }
89
92
  //# sourceMappingURL=brief-util.d.ts.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BriefUtil = void 0;
4
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
4
5
  const recall_protocol_1 = require("./recall-protocol");
5
6
  const DAY_MS = 24 * 60 * 60000;
6
7
  const ASKS = 3;
@@ -135,7 +136,12 @@ var BriefUtil;
135
136
  return flat.length > chars ? `${flat.slice(0, chars)}…` : flat;
136
137
  }
137
138
  /** The headings of the parts of a brief, which the double's home counts the lines of (summary). */
138
- BriefUtil.HEADINGS = { zh: ['做完了', '等你定', '下一步'], en: ['Done', 'Waiting for you', 'Next'] };
139
+ BriefUtil.HEADINGS = {
140
+ 'zh-CN': ['做完了', '等你定', '下一步'],
141
+ 'zh-TW': ['做完了', '等你定', '下一步'],
142
+ 'en-US': ['Done', 'Waiting for you', 'Next'],
143
+ 'ja-JP': ['完了', 'あなたの判断待ち', '次のステップ'],
144
+ };
139
145
  const PARTS = {
140
146
  做完了: 'done',
141
147
  done: 'done',
@@ -143,6 +149,9 @@ var BriefUtil;
143
149
  'waiting for you': 'waiting',
144
150
  下一步: 'next',
145
151
  next: 'next',
152
+ 完了: 'done',
153
+ あなたの判断待ち: 'waiting',
154
+ 次のステップ: 'next',
146
155
  };
147
156
  /**
148
157
  * How many lines each part of a brief has, and the first that wait with the conversations they link; undefined
@@ -196,11 +205,23 @@ var BriefUtil;
196
205
  }
197
206
  BriefUtil.plain = plain;
198
207
  /** The message that asks for the brief: what the model reads, then the line the user sees. */
199
- function message(material, since, zh) {
200
- const heads = zh ? BriefUtil.HEADINGS.zh : BriefUtil.HEADINGS.en;
208
+ function message(material, since, language) {
209
+ const heads = BriefUtil.HEADINGS[language] || BriefUtil.HEADINGS['en-US'];
210
+ const langName = language_1.TaLanguageUtil.pick(language, {
211
+ 'zh-CN': 'Simplified Chinese',
212
+ 'zh-TW': 'Traditional Chinese',
213
+ 'en-US': 'English',
214
+ 'ja-JP': 'Japanese',
215
+ });
216
+ const prompt = language_1.TaLanguageUtil.pick(language, {
217
+ 'zh-CN': '写今天的简报',
218
+ 'zh-TW': '寫今天的簡報',
219
+ 'en-US': "Write today's brief",
220
+ 'ja-JP': '今日のブリーフを書く',
221
+ });
201
222
  const context = [
202
223
  '[ta-recall:brief]',
203
- `Write the daily brief of the user from what happened since ${new Date(since).toISOString()}, below, in ${zh ? 'Chinese' : 'English'}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
224
+ `Write the daily brief of the user from what happened since ${new Date(since).toISOString()}, below, in ${langName}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
204
225
  `- ### ${heads[0]}: what got done;`,
205
226
  `- ### ${heads[1]}: what waits for a decision of the user, failed or was left half done, and what they should do, the most pressing first;`,
206
227
  `- ### ${heads[2]}: two or three concrete next steps.`,
@@ -209,7 +230,7 @@ var BriefUtil;
209
230
  '',
210
231
  material,
211
232
  ].join('\n');
212
- return `<context>\n${context}\n</context>\n${zh ? '写今天的简报' : "Write today's brief"}`;
233
+ return `<context>\n${context}\n</context>\n${prompt}`;
213
234
  }
214
235
  BriefUtil.message = message;
215
236
  })(BriefUtil || (exports.BriefUtil = BriefUtil = {}));
@@ -1,3 +1,4 @@
1
+ import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
1
2
  import { type ExtensionDraft, type ExtensionKind } from './recall-protocol';
2
3
  /** An extension Ta offers: its fenced block, the draft checked, the package of steps, and what asks Ta to make the rest. */
3
4
  export declare namespace ExtensionUtil {
@@ -16,6 +17,6 @@ export declare namespace ExtensionUtil {
16
17
  /** The SKILL.md of an extension of steps: its frontmatter, the description quoted as YAML reads JSON strings. */
17
18
  function skill(draft: ExtensionDraft): string;
18
19
  /** What Make it of the card sends, for an extension that is not steps: a line the user sees, after what the model reads. */
19
- function make(draft: ExtensionDraft, language: string): string;
20
+ function make(draft: ExtensionDraft, language: TaLanguage): string;
20
21
  }
21
22
  //# sourceMappingURL=extension-util.d.ts.map
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ExtensionUtil = void 0;
4
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
4
5
  const block_util_1 = require("./block-util");
5
6
  const recall_protocol_1 = require("./recall-protocol");
6
7
  const FENCE = '```';
@@ -96,7 +97,12 @@ var ExtensionUtil;
96
97
  '- Put it in extensions/ of the agent directory, as the skill says. Give it the title and summary above, in the language of the user and English.',
97
98
  '- Once it is made, say in one line where the user finds it.',
98
99
  ].join('\n');
99
- const said = /^zh/i.test(language) ? `做出来:${draft.title}` : `Make it: ${draft.title}`;
100
+ const said = language_1.TaLanguageUtil.pick(language, {
101
+ 'zh-CN': `做出来:${draft.title}`,
102
+ 'zh-TW': `做出來:${draft.title}`,
103
+ 'en-US': `Make it: ${draft.title}`,
104
+ 'ja-JP': `作成:${draft.title}`,
105
+ });
100
106
  return `<context>\n${context}\n</context>\n${said}`;
101
107
  }
102
108
  ExtensionUtil.make = make;
@@ -1,3 +1,4 @@
1
+ import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
1
2
  declare const en: {
2
3
  settingsTitle: string;
3
4
  briefLabel: string;
@@ -41,6 +42,8 @@ declare const en: {
41
42
  failed: string;
42
43
  };
43
44
  export type Words = typeof en;
45
+ /** The words of each language of Ta, checked by scripts/check-i18n.ts. */
46
+ export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
44
47
  export declare namespace RecallWords {
45
48
  function of(language: string): Words;
46
49
  function format(text: string, values: Record<string, string>): string;
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RecallWords = void 0;
3
+ exports.RecallWords = exports.WORDS = void 0;
4
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
4
5
  const en = {
5
6
  settingsTitle: 'Recall',
6
7
  briefLabel: 'Daily brief',
@@ -43,6 +44,48 @@ const en = {
43
44
  toolExtension: 'Offer to keep',
44
45
  failed: 'Could not do it: {message}',
45
46
  };
47
+ const ja = {
48
+ settingsTitle: '振り返り',
49
+ briefLabel: '毎日のブリーフ',
50
+ briefHint: '毎日この時間に、何かが起きると、Ta は「毎日のブリーフ」会話に何が完了したか、何があなたを待っているか、次は何かを書きます。',
51
+ briefTime: 'ブリーフの時刻',
52
+ briefNow: '今書く',
53
+ briefNowButton: '書く',
54
+ briefNothing: '前回のブリーフ以降何も起きていません。',
55
+ suggestLabel: '保存を提案',
56
+ suggestHint: 'ほかの会話で求めたことをもう一度求めると、Ta はそれを行う方法を覚えているか、カードまたはページまたはコマンドを作成することを提案します。',
57
+ keep: '保存',
58
+ keepDetail: 'Ta が選択:ステップを覚えているか、カード、ページまたはコマンドを作成するか、スケジュールで実行',
59
+ askSteps: 'これを行う方法を覚えていますか?',
60
+ askBoard: 'ボードのカードを作成しますか?',
61
+ askPage: 'ページを作成しますか?',
62
+ askCommand: 'コマンドを作成しますか?',
63
+ askPanel: '会話の隣のツールを作成しますか?',
64
+ showSteps: 'ステップを表示',
65
+ hideSteps: 'ステップを非表示',
66
+ showPlan: 'プランを表示',
67
+ hidePlan: 'プランを非表示',
68
+ keepSteps: '覚えています',
69
+ keepMake: 'それを作成',
70
+ keepNo: 'ありがとうございません',
71
+ keptSteps: '{title} として記憶:新しい会話はこの方法で行うか、/skill:{name} を入力します。拡張機能の下にあります。',
72
+ keptMade: 'Ta はこの会話で {title} を作成しています。',
73
+ keptDeclined: '保存されていません。Ta は同様の提供をもう一度しません。',
74
+ searchTitle: 'Ta に問い合わせ',
75
+ searchAsk: 'Ta に問い合わせ:{query}',
76
+ searchAskDetail: 'Ta はあなたの会話と回答を調べて、どこで見つけたかを示します',
77
+ briefCounts: '{done} 完了 · {waiting} あなたを待っています',
78
+ briefCountsDone: '{done} 完了',
79
+ briefCardEmpty: '最初のブリーフは {time} に来ます',
80
+ briefNoneWaiting: 'あなたを待っているものはありません',
81
+ briefTick: '処理済みとしてマーク',
82
+ briefUntick: '未処理としてマーク',
83
+ briefMore: 'ブリーフにはあと {count} 個',
84
+ briefToday: '今日',
85
+ toolSearch: '会話を検索',
86
+ toolExtension: '保存を提案',
87
+ failed: 'それはできませんでした:{message}',
88
+ };
46
89
  const zh = {
47
90
  settingsTitle: '回顾',
48
91
  briefLabel: '每日简报',
@@ -85,10 +128,54 @@ const zh = {
85
128
  toolExtension: '提议存下来',
86
129
  failed: '没有做成:{message}',
87
130
  };
131
+ const zhTw = {
132
+ settingsTitle: '回顧',
133
+ briefLabel: '每日簡報',
134
+ briefHint: '每天這個時間,只要有新動靜,Ta 就把做完的、等你定的和下一步寫進「每日簡報」對話。',
135
+ briefTime: '簡報時間',
136
+ briefNow: '現在寫一份',
137
+ briefNowButton: '生成',
138
+ briefNothing: '上次簡報以來沒有新的動靜。',
139
+ suggestLabel: '建議存下來',
140
+ suggestHint: '在別的對話裡交代過的事又交代一次時,Ta 會問要不要記住這套做法,或做成卡片、頁面、命令。',
141
+ keep: '存下來',
142
+ keepDetail: 'Ta 判斷:記住步驟,做成卡片、頁面、命令,或定時自動做',
143
+ askSteps: '記住這套做法?',
144
+ askBoard: '做成小元件卡片?',
145
+ askPage: '做成一個頁面?',
146
+ askCommand: '做成一個命令?',
147
+ askPanel: '做成對話旁的工具?',
148
+ showSteps: '檢視步驟',
149
+ hideSteps: '收起步驟',
150
+ showPlan: '檢視做法',
151
+ hidePlan: '收起做法',
152
+ keepSteps: '記住',
153
+ keepMake: '做出來',
154
+ keepNo: '不用',
155
+ keptSteps: '已記住「{title}」:新對話會照著做,也可以輸入 /skill:{name};在擴充功能頁能找到它。',
156
+ keptMade: 'Ta 正在這個對話裡做「{title}」。',
157
+ keptDeclined: '沒有儲存,類似的事不會再問。',
158
+ searchTitle: '問 Ta',
159
+ searchAsk: '問 Ta:{query}',
160
+ searchAskDetail: 'Ta 翻一遍你的對話再回答,並給出出處',
161
+ briefCounts: '做完 {done} · 等你定 {waiting}',
162
+ briefCountsDone: '做完 {done}',
163
+ briefCardEmpty: '每天 {time} 寫第一份簡報',
164
+ briefNoneWaiting: '沒有等你定的事',
165
+ briefTick: '標為已處理',
166
+ briefUntick: '標為未處理',
167
+ briefMore: '簡報裡還有 {count} 項',
168
+ briefToday: '今天',
169
+ toolSearch: '搜尋對話',
170
+ toolExtension: '提議存下來',
171
+ failed: '沒有做成:{message}',
172
+ };
173
+ /** The words of each language of Ta, checked by scripts/check-i18n.ts. */
174
+ exports.WORDS = { 'zh-CN': zh, 'zh-TW': zhTw, 'en-US': en, 'ja-JP': ja };
88
175
  var RecallWords;
89
176
  (function (RecallWords) {
90
177
  function of(language) {
91
- return /^zh/i.test(language) ? zh : en;
178
+ return language_1.TaLanguageUtil.pick(language, exports.WORDS);
92
179
  }
93
180
  RecallWords.of = of;
94
181
  function format(text, values) {
@@ -1,3 +1,4 @@
1
+ import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
1
2
  import { type SimilarAsk } from './recall-protocol';
2
3
  /**
3
4
  * Keeping how work got done, so that it need not be told again: an extension of Ta of the kind that fits (steps Ta
@@ -8,7 +9,7 @@ export declare namespace KeepUtil {
8
9
  /** How to offer it, for the model; the scheduled task as the section of ta-cron says, when it is there. */
9
10
  function forms(): string;
10
11
  /** What Keep of the + of the message box sends: a line the user sees, after what the model reads. */
11
- function ask(language: string): string;
12
+ function ask(language: TaLanguage): string;
12
13
  /** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
13
14
  function hint(asks: readonly SimilarAsk[]): string;
14
15
  }