@celljs/ta 4.13.1 → 4.15.0

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 (394) hide show
  1. package/dist/cli.mjs +1025 -814
  2. package/dist/gateway.mjs +471 -196
  3. package/dist/pi/CHANGELOG.md +13 -0
  4. package/dist/pi/package.json +1 -1
  5. package/dist/pi/packages/ta-agents/extension/index.mjs +50 -21
  6. package/dist/pi/packages/ta-agents/lib/texts.d.ts +43 -22
  7. package/dist/pi/packages/ta-agents/lib/texts.js +54 -21
  8. package/dist/pi/packages/ta-agents/package.json +9 -5
  9. package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
  10. package/dist/pi/packages/ta-bots/host/index.mjs +303 -184
  11. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +3 -0
  12. package/dist/pi/packages/ta-bots/lib/i18n.js +167 -2
  13. package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +0 -1
  14. package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -12
  15. package/dist/pi/packages/ta-bots/package.json +9 -5
  16. package/dist/pi/packages/ta-bots/web/index.js +203 -1
  17. package/dist/pi/packages/ta-changes/lib/i18n.d.ts +3 -0
  18. package/dist/pi/packages/ta-changes/lib/i18n.js +51 -2
  19. package/dist/pi/packages/ta-changes/package.json +9 -5
  20. package/dist/pi/packages/ta-changes/web/index.js +87 -1
  21. package/dist/pi/packages/ta-channels/extension/index.mjs +78 -13
  22. package/dist/pi/packages/ta-channels/host/index.mjs +291 -190
  23. package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +2 -1
  24. package/dist/pi/packages/ta-channels/lib/agent-cards.js +4 -3
  25. package/dist/pi/packages/ta-channels/lib/handoff.d.ts +5 -4
  26. package/dist/pi/packages/ta-channels/lib/handoff.js +22 -6
  27. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +3 -0
  28. package/dist/pi/packages/ta-channels/lib/i18n.js +361 -2
  29. package/dist/pi/packages/ta-channels/lib/room.js +3 -3
  30. package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +2 -1
  31. package/dist/pi/packages/ta-channels/lib/team-ask.js +19 -7
  32. package/dist/pi/packages/ta-channels/lib/team.d.ts +2 -2
  33. package/dist/pi/packages/ta-channels/lib/team.js +1 -1
  34. package/dist/pi/packages/ta-channels/package.json +9 -5
  35. package/dist/pi/packages/ta-channels/web/index.js +483 -47
  36. package/dist/pi/packages/ta-computer-use/extension/index.mjs +11 -1
  37. package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +20 -2
  38. package/dist/pi/packages/ta-computer-use/package.json +9 -5
  39. package/dist/pi/packages/ta-cron/README.en.md +1 -1
  40. package/dist/pi/packages/ta-cron/README.md +1 -1
  41. package/dist/pi/packages/ta-cron/extension/index.mjs +82 -8
  42. package/dist/pi/packages/ta-cron/host/index.mjs +67 -3
  43. package/dist/pi/packages/ta-cron/lib/editor.js +1 -1
  44. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +3 -0
  45. package/dist/pi/packages/ta-cron/lib/i18n.js +217 -2
  46. package/dist/pi/packages/ta-cron/lib/page.d.ts +2 -0
  47. package/dist/pi/packages/ta-cron/lib/page.js +22 -8
  48. package/dist/pi/packages/ta-cron/lib/schedule-util.js +29 -3
  49. package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +2 -1
  50. package/dist/pi/packages/ta-cron/lib/server-texts.js +16 -9
  51. package/dist/pi/packages/ta-cron/package.json +9 -5
  52. package/dist/pi/packages/ta-cron/web/index.js +303 -14
  53. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +3 -0
  54. package/dist/pi/packages/ta-extensions/lib/i18n.js +240 -2
  55. package/dist/pi/packages/ta-extensions/package.json +9 -5
  56. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +2 -1
  57. package/dist/pi/packages/ta-extensions/web/index.js +499 -176
  58. package/dist/pi/packages/ta-games/README.en.md +1 -1
  59. package/dist/pi/packages/ta-games/README.md +1 -1
  60. package/dist/pi/packages/ta-games/lib/i18n.d.ts +3 -0
  61. package/dist/pi/packages/ta-games/lib/i18n.js +61 -2
  62. package/dist/pi/packages/ta-games/package.json +9 -5
  63. package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +41 -3
  64. package/dist/pi/packages/ta-games/web/index.js +97 -1
  65. package/dist/pi/packages/ta-glance/extension/index.mjs +31 -13
  66. package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +2 -0
  67. package/dist/pi/packages/ta-glance/lib/glance-json.js +38 -16
  68. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +3 -0
  69. package/dist/pi/packages/ta-glance/lib/i18n.js +31 -2
  70. package/dist/pi/packages/ta-glance/package.json +9 -5
  71. package/dist/pi/packages/ta-glance/web/index.js +98 -14
  72. package/dist/pi/packages/ta-initiative/README.en.md +1 -0
  73. package/dist/pi/packages/ta-initiative/README.md +1 -0
  74. package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
  75. package/dist/pi/packages/ta-initiative/host/index.mjs +123 -19
  76. package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +15 -3
  77. package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +20 -3
  78. package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +2 -1
  79. package/dist/pi/packages/ta-initiative/lib/event-proposals.js +20 -6
  80. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +4 -0
  81. package/dist/pi/packages/ta-initiative/lib/i18n.js +155 -4
  82. package/dist/pi/packages/ta-initiative/lib/inbox.js +3 -2
  83. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +15 -4
  84. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
  85. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
  86. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +4 -1
  87. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -1
  88. package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +2 -1
  89. package/dist/pi/packages/ta-initiative/lib/material-util.js +9 -3
  90. package/dist/pi/packages/ta-initiative/lib/review-service.js +1 -1
  91. package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +2 -1
  92. package/dist/pi/packages/ta-initiative/lib/server-texts.js +11 -4
  93. package/dist/pi/packages/ta-initiative/lib/settings.js +2 -3
  94. package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
  95. package/dist/pi/packages/ta-initiative/lib/style.js +1 -1
  96. package/dist/pi/packages/ta-initiative/package.json +9 -5
  97. package/dist/pi/packages/ta-initiative/web/index.js +207 -12
  98. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +3 -0
  99. package/dist/pi/packages/ta-launcher/lib/i18n.js +71 -2
  100. package/dist/pi/packages/ta-launcher/package.json +9 -5
  101. package/dist/pi/packages/ta-launcher/web/index.js +107 -1
  102. package/dist/pi/packages/ta-manual/README.en.md +1 -1
  103. package/dist/pi/packages/ta-manual/README.md +1 -1
  104. package/dist/pi/packages/ta-manual/lib/i18n.d.ts +3 -0
  105. package/dist/pi/packages/ta-manual/lib/i18n.js +21 -2
  106. package/dist/pi/packages/ta-manual/lib/manual-util.js +2 -1
  107. package/dist/pi/packages/ta-manual/lib/pictures-c.js +30 -0
  108. package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
  109. package/dist/pi/packages/ta-manual/lib/topics.js +188 -71
  110. package/dist/pi/packages/ta-manual/package.json +9 -5
  111. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +9 -0
  112. package/dist/pi/packages/ta-manual/web/index.js +405 -119
  113. package/dist/pi/packages/ta-moments/extension/index.mjs +323 -147
  114. package/dist/pi/packages/ta-moments/host/index.mjs +350 -161
  115. package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
  116. package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
  117. package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
  118. package/dist/pi/packages/ta-moments/lib/i18n.d.ts +3 -0
  119. package/dist/pi/packages/ta-moments/lib/i18n.js +170 -3
  120. package/dist/pi/packages/ta-moments/lib/moments-host.js +25 -12
  121. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
  122. package/dist/pi/packages/ta-moments/lib/page.js +8 -7
  123. package/dist/pi/packages/ta-moments/lib/post-util.js +2 -2
  124. package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +10 -12
  125. package/dist/pi/packages/ta-moments/lib/server-texts.js +128 -62
  126. package/dist/pi/packages/ta-moments/lib/store.js +6 -0
  127. package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
  128. package/dist/pi/packages/ta-moments/lib/style.js +4 -5
  129. package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
  130. package/dist/pi/packages/ta-moments/package.json +9 -5
  131. package/dist/pi/packages/ta-moments/web/index.js +453 -192
  132. package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
  133. package/dist/pi/packages/ta-nearby/host/index.mjs +437 -39
  134. package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +3 -0
  135. package/dist/pi/packages/ta-nearby/lib/i18n.js +173 -2
  136. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +2 -0
  137. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
  138. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +5 -4
  139. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +53 -10
  140. package/dist/pi/packages/ta-nearby/lib/page.js +15 -13
  141. package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +5 -13
  142. package/dist/pi/packages/ta-nearby/lib/server-texts.js +194 -42
  143. package/dist/pi/packages/ta-nearby/lib/style.d.ts +1 -1
  144. package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
  145. package/dist/pi/packages/ta-nearby/package.json +9 -5
  146. package/dist/pi/packages/ta-nearby/web/index.js +223 -7
  147. package/dist/pi/packages/ta-notify/README.en.md +1 -0
  148. package/dist/pi/packages/ta-notify/README.md +1 -0
  149. package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
  150. package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
  151. package/dist/pi/packages/ta-notify/lib/i18n.d.ts +3 -0
  152. package/dist/pi/packages/ta-notify/lib/i18n.js +53 -2
  153. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +2 -0
  154. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
  155. package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
  156. package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +2 -1
  157. package/dist/pi/packages/ta-notify/lib/server-texts.js +16 -5
  158. package/dist/pi/packages/ta-notify/package.json +9 -5
  159. package/dist/pi/packages/ta-notify/web/index.js +89 -1
  160. package/dist/pi/packages/ta-recall/README.en.md +1 -1
  161. package/dist/pi/packages/ta-recall/README.md +1 -1
  162. package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
  163. package/dist/pi/packages/ta-recall/host/index.mjs +145 -67
  164. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +9 -6
  165. package/dist/pi/packages/ta-recall/lib/brief-util.js +26 -5
  166. package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +2 -1
  167. package/dist/pi/packages/ta-recall/lib/extension-util.js +7 -1
  168. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +3 -0
  169. package/dist/pi/packages/ta-recall/lib/i18n.js +89 -2
  170. package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +2 -1
  171. package/dist/pi/packages/ta-recall/lib/keep-util.js +8 -1
  172. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +5 -3
  173. package/dist/pi/packages/ta-recall/lib/recall-service.js +16 -10
  174. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -3
  175. package/dist/pi/packages/ta-recall/lib/server-texts.js +15 -8
  176. package/dist/pi/packages/ta-recall/package.json +9 -5
  177. package/dist/pi/packages/ta-recall/web/index.js +164 -9
  178. package/dist/pi/packages/ta-rooms/extension/index.mjs +60 -3
  179. package/dist/pi/packages/ta-rooms/host/index.mjs +284 -37
  180. package/dist/pi/packages/ta-rooms/lib/dialogs.js +2 -1
  181. package/dist/pi/packages/ta-rooms/lib/double-agents.js +31 -7
  182. package/dist/pi/packages/ta-rooms/lib/double-grants.js +57 -13
  183. package/dist/pi/packages/ta-rooms/lib/double-host.js +31 -5
  184. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +3 -0
  185. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +201 -2
  186. package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +2 -1
  187. package/dist/pi/packages/ta-rooms/lib/double-tasks.js +93 -21
  188. package/dist/pi/packages/ta-rooms/lib/double-user.js +1 -1
  189. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +1 -1
  190. package/dist/pi/packages/ta-rooms/lib/double-util.js +22 -3
  191. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +2 -1
  192. package/dist/pi/packages/ta-rooms/lib/friend-notices.js +27 -8
  193. package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -8
  194. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +3 -0
  195. package/dist/pi/packages/ta-rooms/lib/i18n.js +243 -2
  196. package/dist/pi/packages/ta-rooms/lib/page.d.ts +12 -0
  197. package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
  198. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  199. package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
  200. package/dist/pi/packages/ta-rooms/package.json +9 -5
  201. package/dist/pi/packages/ta-rooms/web/index.js +537 -21
  202. package/dist/pi/packages/ta-share/extension/index.mjs +98 -23
  203. package/dist/pi/packages/ta-share/lib/i18n.d.ts +3 -0
  204. package/dist/pi/packages/ta-share/lib/i18n.js +203 -2
  205. package/dist/pi/packages/ta-share/lib/page.js +1 -1
  206. package/dist/pi/packages/ta-share/lib/server-texts.d.ts +2 -1
  207. package/dist/pi/packages/ta-share/lib/server-texts.js +60 -29
  208. package/dist/pi/packages/ta-share/package.json +9 -5
  209. package/dist/pi/packages/ta-share/web/index.js +240 -2
  210. package/dist/pi/packages/ta-sync/host/index.mjs +170 -25
  211. package/dist/pi/packages/ta-sync/lib/i18n.d.ts +3 -0
  212. package/dist/pi/packages/ta-sync/lib/i18n.js +175 -4
  213. package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
  214. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +185 -4
  215. package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +0 -1
  216. package/dist/pi/packages/ta-sync/lib/server-texts.js +132 -35
  217. package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
  218. package/dist/pi/packages/ta-sync/lib/style.js +1 -1
  219. package/dist/pi/packages/ta-sync/package.json +9 -5
  220. package/dist/pi/packages/ta-sync/web/index.js +394 -7
  221. package/dist/pi/packages/ta-sync-cloud/host/index.mjs +52 -23
  222. package/dist/pi/packages/ta-sync-cloud/lib/host.js +49 -20
  223. package/dist/pi/packages/ta-sync-cloud/package.json +9 -5
  224. package/dist/pi/packages/ta-team/README.en.md +3 -1
  225. package/dist/pi/packages/ta-team/README.md +3 -1
  226. package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
  227. package/dist/pi/packages/ta-team/host/index.mjs +694 -85
  228. package/dist/pi/packages/ta-team/lib/dialogs.js +140 -17
  229. package/dist/pi/packages/ta-team/lib/host.js +4 -0
  230. package/dist/pi/packages/ta-team/lib/i18n.d.ts +18 -1
  231. package/dist/pi/packages/ta-team/lib/i18n.js +455 -10
  232. package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
  233. package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
  234. package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
  235. package/dist/pi/packages/ta-team/lib/page.js +19 -0
  236. package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
  237. package/dist/pi/packages/ta-team/lib/parts.js +4 -3
  238. package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
  239. package/dist/pi/packages/ta-team/lib/policy.js +32 -0
  240. package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
  241. package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
  242. package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
  243. package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
  244. package/dist/pi/packages/ta-team/lib/style.js +19 -8
  245. package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
  246. package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
  247. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +80 -6
  248. package/dist/pi/packages/ta-team/lib/team-invites.js +239 -10
  249. package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
  250. package/dist/pi/packages/ta-team/package.json +13 -5
  251. package/dist/pi/packages/ta-team/web/index.js +1028 -224
  252. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +3 -0
  253. package/dist/pi/packages/ta-workspace/lib/i18n.js +417 -1
  254. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  255. package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
  256. package/dist/pi/packages/ta-workspace/package.json +10 -6
  257. package/dist/pi/packages/ta-workspace/web/index.js +714 -200
  258. package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
  259. package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
  260. package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-sclOP11q.js} +1 -1
  261. package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-Bitg4Dpy.js} +1 -1
  262. package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-Hc0W5khF.js} +1 -1
  263. package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-D2ZWatLV.js} +1 -1
  264. package/dist/public/assets/{browser-DteLjv_-.js → browser-D-etIMuL.js} +1 -1
  265. package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
  266. package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-CWEcyfwV.js} +1 -1
  267. package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-CWbrJHxK.js} +1 -1
  268. package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-DJQdD4iX.js} +1 -1
  269. package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CYiiJcBj.js} +1 -1
  270. package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-NrNC1UeX.js} +1 -1
  271. package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-BIHXOwS2.js} +1 -1
  272. package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-CcU_AFwQ.js} +1 -1
  273. package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-DGfNbbcL.js} +1 -1
  274. package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-B4PSS_Pp.js} +1 -1
  275. package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-1555_mm4.js} +1 -1
  276. package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-zbNEbYJ8.js} +1 -1
  277. package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-C-nNDGuN.js} +1 -1
  278. package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-DcXXuhbl.js} +1 -1
  279. package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-Bb77QkUj.js} +1 -1
  280. package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-D8IJkNq5.js} +1 -1
  281. package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BzejexgB.js} +1 -1
  282. package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-D2GPHyll.js} +1 -1
  283. package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-CUEzxxI8.js} +1 -1
  284. package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
  285. package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
  286. package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-CJdgJyUw.js} +1 -1
  287. package/dist/public/assets/cynefin-EF2NZ3EQ-DBnkPRHn.js +1 -0
  288. package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-D0F_9jN8.js} +1 -1
  289. package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-BoARy1rP.js} +1 -1
  290. package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-CzI5gZOv.js} +1 -1
  291. package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-BCtNcE7M.js} +1 -1
  292. package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-DV9U4KeH.js} +1 -1
  293. package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN-DHU45Sd4.js} +1 -1
  294. package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-Ba5oVP56.js} +1 -1
  295. package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-B1Nk6qet.js} +1 -1
  296. package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-DFwA3q09.js} +1 -1
  297. package/dist/public/assets/{dist-VHGBaby6.js → dist-Col1xVDT.js} +1 -1
  298. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-BuBgxBJ2.js} +1 -1
  299. package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-BLlyFz5x.js} +1 -1
  300. package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-BPEI--zX.js} +1 -1
  301. package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-Cci0kYUw.js} +1 -1
  302. package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-B0eT5X1_.js} +1 -1
  303. package/dist/public/assets/flowDiagram-MALGAFMO-CmMdmAxj.js +1 -0
  304. package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-CAZGFA3W.js} +1 -1
  305. package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DEm85e1I.js} +1 -1
  306. package/dist/public/assets/gitGraph-VSP46ZUC-DKo3OVhR.js +1 -0
  307. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-DJAZD2LR.js} +1 -1
  308. package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Agkl4nGr.js} +1 -1
  309. package/dist/public/assets/{html-0AjXQhkQ.js → html-Cu-CsqZI.js} +1 -1
  310. package/dist/public/assets/{index-TUtoc8CW.js → index-TeLHaE4u.js} +2 -2
  311. package/dist/public/assets/info-OHQRW6UA-tKl26QqM.js +1 -0
  312. package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-4zHsBnIy.js} +1 -1
  313. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bg8OYLGr.js} +1 -1
  314. package/dist/public/assets/ja-BHBiml1x.js +12 -0
  315. package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-BdMDRX8l.js} +1 -1
  316. package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-B2xtzmpE.js} +1 -1
  317. package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Dg92qQvX.js} +1 -1
  318. package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-DQ4N7t_w.js} +1 -1
  319. package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-BydEnYkh.js} +1 -1
  320. package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-XZXeM7ll.js} +1 -1
  321. package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-H24--uw9.js} +3 -3
  322. package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-BmCrSjUU.js} +4 -4
  323. package/dist/public/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
  324. package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-CGQXKItp.js} +1 -1
  325. package/dist/public/assets/module-1mERtQ0Z.js +1 -0
  326. package/dist/public/assets/module-BxIQdJqY.js +2449 -0
  327. package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
  328. package/dist/public/assets/module-DDH-aU6z.js +1 -0
  329. package/dist/public/assets/module-DRofmFJn.js +1 -0
  330. package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
  331. package/dist/public/assets/module-MaD4hvv4.js +1 -0
  332. package/dist/public/assets/module-ZDJutm0b.js +1 -0
  333. package/dist/public/assets/module-qoBVcE5h.js +1 -0
  334. package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-DP8M_Ttp.js} +3 -3
  335. package/dist/public/assets/packet-JDAUHWVQ-CnBx3hR7.js +1 -0
  336. package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-CXKRGFUs.js} +1 -1
  337. package/dist/public/assets/pie-XZMESJXO-hogxgeR2.js +1 -0
  338. package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-9XEDP1wR.js} +1 -1
  339. package/dist/public/assets/{python-vNPe_Fao.js → python-C-0PA82u.js} +1 -1
  340. package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-C-uxTp-5.js} +1 -1
  341. package/dist/public/assets/radar-ABXABTNO-CdWiN8Cw.js +1 -0
  342. package/dist/public/assets/railroad-I3PHUGI6-DnYOBI5V.js +1 -0
  343. package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CTft_ST0.js} +1 -1
  344. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DfRJhL7G.js} +1 -1
  345. package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DFePx4YD.js} +1 -1
  346. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BmK1KUsT.js} +1 -1
  347. package/dist/public/assets/{razor-CnKbF0Yz.js → razor-DEKNSiT7.js} +1 -1
  348. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-Ds27pS9Y.js} +1 -1
  349. package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
  350. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-e2OTzBma.js} +1 -1
  351. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BcoIpxF6.js} +1 -1
  352. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-CNr67mC9.js} +1 -1
  353. package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-DKPgHCev.js} +1 -1
  354. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-U0uzjboz.js +8 -0
  355. package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-BcCmuE6C.js} +1 -1
  356. package/dist/public/assets/treeView-D4JQ5SDB-4ppY0Rs5.js +1 -0
  357. package/dist/public/assets/treemap-SAJKECNS-CAvLAs7q.js +1 -0
  358. package/dist/public/assets/{typescript-C00ztMLg.js → typescript-B1Uk3m6A.js} +1 -1
  359. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BpCD8dP7.js} +1 -1
  360. package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-CQjX5_-8.js} +1 -1
  361. package/dist/public/assets/wardley-7MLQ67FV-D_F3qmRJ.js +1 -0
  362. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-D7gYo9fV.js} +1 -1
  363. package/dist/public/assets/{xml-CHBFuf5n.js → xml-DBh_LekU.js} +1 -1
  364. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-B_1aOZKU.js} +1 -1
  365. package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BE55tHva.js} +1 -1
  366. package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
  367. package/dist/public/index.html +2 -2
  368. package/dist/serve/index.mjs +3115 -1400
  369. package/package.json +39 -39
  370. package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
  371. package/dist/pi/packages/ta-team/lib/join.js +0 -48
  372. package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
  373. package/dist/pi/packages/ta-team/lib/remote.js +0 -128
  374. package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
  375. package/dist/pi/packages/ta-team/lib/seal.js +0 -75
  376. package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
  377. package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
  378. package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
  379. package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
  380. package/dist/public/assets/module-Blc8dqbf.js +0 -1
  381. package/dist/public/assets/module-C2jtFD0v.js +0 -2365
  382. package/dist/public/assets/module-C9WFrzAc.js +0 -1
  383. package/dist/public/assets/module-CouMtASh.js +0 -1
  384. package/dist/public/assets/module-EGdAhoOx.js +0 -1
  385. package/dist/public/assets/module-EeaigZHL.js +0 -1
  386. package/dist/public/assets/module-xT4L5yYw.js +0 -1
  387. package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
  388. package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
  389. package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
  390. package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
  391. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
  392. package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
  393. package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
  394. package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
@@ -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
  }
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.KeepUtil = void 0;
4
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
4
5
  const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
5
6
  const extension_util_1 = require("./extension-util");
6
7
  const recall_protocol_1 = require("./recall-protocol");
@@ -36,7 +37,13 @@ var KeepUtil;
36
37
  '- Keep what worked: the goal, the steps, the commands, files, checks and pitfalls; leave out what was only tried and dropped and what holds only this once.',
37
38
  '- When the conversation holds nothing worth keeping, say so and offer nothing.',
38
39
  ].join('\n');
39
- return `<context>\n${context}\n</context>\n${/^zh/i.test(language) ? '把这个对话里的做法存下来' : 'Keep how this was done'}`;
40
+ const prompt = language_1.TaLanguageUtil.pick(language, {
41
+ 'zh-CN': '把这个对话里的做法存下来',
42
+ 'zh-TW': '把這個對話裡的做法存下來',
43
+ 'en-US': 'Keep how this was done',
44
+ 'ja-JP': 'この会話の方法を保存',
45
+ });
46
+ return `<context>\n${context}\n</context>\n${prompt}`;
40
47
  }
41
48
  KeepUtil.ask = ask;
42
49
  /** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
@@ -37,16 +37,18 @@ export declare class RecallHost implements RecallService, TaPackageService {
37
37
  protected briefSession(sessions: TaSessionInfo[], file: string | undefined): Promise<TaSessionInfo>;
38
38
  /** What the packages that are on have for the brief (TA_BRIEF_SOURCE). */
39
39
  protected sources(): Promise<BriefSource[]>;
40
- /** The notices of ta-notify, when it is there. */
40
+ /** The notices of ta-notify (its host's `notices`), when it is on. */
41
41
  protected notices(): Promise<BriefNotice[]>;
42
- /** The tasks of ta-cron that ran since, with the summary of their last run, when it is there. */
42
+ /** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
43
43
  protected runs(since: number): Promise<BriefRun[]>;
44
- /** The proposals of ta-initiative, when it is there. */
44
+ /** The proposals of ta-initiative (its host's `proposals`), when it is on. */
45
45
  protected suggestions(): Promise<BriefSuggestion[]>;
46
46
  /** A call of the host of ta-initiative, which defines KEEP_KIND first; undefined when it is not there (turned off). */
47
47
  protected initiative(method: string, ...params: unknown[]): Promise<unknown>;
48
48
  protected decide(key: string, decision: KeepDecision): Promise<void>;
49
49
  protected read(key: string): Promise<unknown>;
50
+ /** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
51
+ protected fromPackage(name: string, method: string, ...params: unknown[]): Promise<unknown>;
50
52
  protected serial<T>(work: () => Promise<T>): Promise<T>;
51
53
  }
52
54
  //# sourceMappingURL=recall-service.d.ts.map
@@ -4,6 +4,7 @@ exports.RecallHost = void 0;
4
4
  const node_fs_1 = require("node:fs");
5
5
  const promises_1 = require("node:fs/promises");
6
6
  const node_path_1 = require("node:path");
7
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
7
8
  const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
8
9
  const team_protocol_1 = require("@celljs/ta-protocol/lib/common/team-protocol");
9
10
  const brief_util_1 = require("./brief-util");
@@ -130,7 +131,7 @@ class RecallHost {
130
131
  }
131
132
  const open = (await this.host.listSessions()).find(info => info.piSessionId === session);
132
133
  if (!open) {
133
- throw new Error(server_texts_1.RecallServerTexts.notOpen());
134
+ throw new Error(server_texts_1.RecallServerTexts.notOpen(language_1.TaLanguageUtil.server()));
134
135
  }
135
136
  await this.host.prompt(open.sessionId, { clientMessageId: `ta-recall-make:${key}`, message, streamingBehavior: 'followUp' });
136
137
  await this.decide(key, { made: true });
@@ -219,8 +220,9 @@ class RecallHost {
219
220
  return undefined;
220
221
  }
221
222
  const session = await this.briefSession(sessions, briefFile);
223
+ const language = language_1.TaLanguageUtil.server();
222
224
  await this.host.prompt(session.sessionId, {
223
- message: brief_util_1.BriefUtil.message(material, since, server_texts_1.RecallServerTexts.zh()),
225
+ message: brief_util_1.BriefUtil.message(material, since, language),
224
226
  clientMessageId: `ta-recall-brief:${now}`,
225
227
  streamingBehavior: 'followUp',
226
228
  });
@@ -243,7 +245,7 @@ class RecallHost {
243
245
  return this.host.openSession({ cwd: (_a = (await this.host.sessionCwd(file))) !== null && _a !== void 0 ? _a : cwd, sessionFile: file });
244
246
  }
245
247
  const created = await this.host.openSession({ cwd });
246
- await this.host.setSessionName(created.sessionId, server_texts_1.RecallServerTexts.briefTitle());
248
+ await this.host.setSessionName(created.sessionId, server_texts_1.RecallServerTexts.briefTitle(language_1.TaLanguageUtil.server()));
247
249
  return created;
248
250
  }
249
251
  /** What the packages that are on have for the brief (TA_BRIEF_SOURCE). */
@@ -260,23 +262,23 @@ class RecallHost {
260
262
  .map(async (info) => brief_util_1.BriefUtil.source(info.name, await this.host.getExtensionData(info.name, ta_extension_host_1.TA_BRIEF_SOURCE).catch(() => undefined))));
261
263
  return sources.filter((source) => !!source);
262
264
  }
263
- /** The notices of ta-notify, when it is there. */
265
+ /** The notices of ta-notify (its host's `notices`), when it is on. */
264
266
  async notices() {
265
- const value = await this.host.getExtensionData(NOTIFY, 'notices').catch(() => undefined);
267
+ const value = await this.fromPackage(NOTIFY, 'notices');
266
268
  return Array.isArray(value)
267
269
  ? value.filter((notice) => !!notice && typeof notice.at === 'number' && typeof notice.text === 'string')
268
270
  : [];
269
271
  }
270
- /** The tasks of ta-cron that ran since, with the summary of their last run, when it is there. */
272
+ /** The tasks of ta-cron that ran since, with the summary of their last run (its host's `list` and `runs`), when it is on. */
271
273
  async runs(since) {
272
- const tasks = await this.host.getExtensionData(CRON, 'tasks').catch(() => undefined);
274
+ const tasks = await this.fromPackage(CRON, 'list');
273
275
  if (!Array.isArray(tasks)) {
274
276
  return [];
275
277
  }
276
278
  const ran = tasks.filter(task => { var _a; return task && typeof task.id === 'string' && Date.parse((_a = task.lastRunAt) !== null && _a !== void 0 ? _a : '') >= since; });
277
279
  return Promise.all(ran.map(async (task) => {
278
280
  var _a;
279
- const runs = await this.host.getExtensionData(CRON, `runs/${task.id}`).catch(() => undefined);
281
+ const runs = await this.fromPackage(CRON, 'runs', task.id, 1);
280
282
  const run = Array.isArray(runs) ? runs[0] : undefined;
281
283
  return {
282
284
  name: String((_a = task.name) !== null && _a !== void 0 ? _a : task.id),
@@ -286,9 +288,9 @@ class RecallHost {
286
288
  };
287
289
  }));
288
290
  }
289
- /** The proposals of ta-initiative, when it is there. */
291
+ /** The proposals of ta-initiative (its host's `proposals`), when it is on. */
290
292
  async suggestions() {
291
- const value = await this.host.getExtensionData(INITIATIVE, 'proposals').catch(() => undefined);
293
+ const value = await this.fromPackage(INITIATIVE, 'proposals');
292
294
  return Array.isArray(value)
293
295
  ? value.filter((one) => !!one && typeof one.title === 'string' && typeof one.state === 'string' && typeof one.at === 'number')
294
296
  : [];
@@ -318,6 +320,10 @@ class RecallHost {
318
320
  read(key) {
319
321
  return this.host.getExtensionData(recall_protocol_1.NAME, key).catch(() => undefined);
320
322
  }
323
+ /** What the host of another package answers, by a method its README names; undefined when it is off or fails. */
324
+ fromPackage(name, method, ...params) {
325
+ return this.host.callPackageHost(name, method, params).catch(() => undefined);
326
+ }
321
327
  serial(work) {
322
328
  const next = this.queue.then(work, work);
323
329
  this.queue = next.catch(() => undefined);
@@ -1,9 +1,8 @@
1
1
  /** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
2
2
  export declare namespace RecallServerTexts {
3
- function zh(env?: NodeJS.ProcessEnv): boolean;
4
3
  /** The name of the conversation of the briefs. */
5
- function briefTitle(): string;
4
+ function briefTitle(language?: import("@celljs/ta-protocol/lib/common/language").TaLanguage): string;
6
5
  /** Make it of a card whose conversation is not open on the server. */
7
- function notOpen(): string;
6
+ function notOpen(language?: import("@celljs/ta-protocol/lib/common/language").TaLanguage): string;
8
7
  }
9
8
  //# sourceMappingURL=server-texts.d.ts.map
@@ -1,21 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RecallServerTexts = void 0;
4
+ const language_1 = require("@celljs/ta-protocol/lib/common/language");
4
5
  /** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
5
6
  var RecallServerTexts;
6
7
  (function (RecallServerTexts) {
7
- function zh(env = process.env) {
8
- return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || '');
9
- }
10
- RecallServerTexts.zh = zh;
11
8
  /** The name of the conversation of the briefs. */
12
- function briefTitle() {
13
- return zh() ? '每日简报' : 'Daily brief';
9
+ function briefTitle(language = language_1.TaLanguageUtil.server()) {
10
+ return language_1.TaLanguageUtil.pick(language, {
11
+ 'zh-CN': '每日简报',
12
+ 'zh-TW': '每日簡報',
13
+ 'en-US': 'Daily brief',
14
+ 'ja-JP': '毎日のブリーフ',
15
+ });
14
16
  }
15
17
  RecallServerTexts.briefTitle = briefTitle;
16
18
  /** Make it of a card whose conversation is not open on the server. */
17
- function notOpen() {
18
- return zh() ? '这个对话没有打开,打开它再点一次' : 'The conversation is not open: open it and tap again';
19
+ function notOpen(language = language_1.TaLanguageUtil.server()) {
20
+ return language_1.TaLanguageUtil.pick(language, {
21
+ 'zh-CN': '这个对话没有打开,打开它再点一次',
22
+ 'zh-TW': '這個對話沒有開啟,開啟它再點一次',
23
+ 'en-US': 'The conversation is not open: open it and tap again',
24
+ 'ja-JP': '会話が開かれていません:開いてからもう一度タップしてください',
25
+ });
19
26
  }
20
27
  RecallServerTexts.notOpen = notOpen;
21
28
  })(RecallServerTexts || (exports.RecallServerTexts = RecallServerTexts = {}));
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@celljs/ta-recall",
3
- "version": "4.13.1",
3
+ "version": "4.15.0",
4
4
  "description": "A pi package for Ta: asks earlier conversations what was done, offers to keep a request asked again as an extension (steps, a card, a page), and writes a daily brief of what got done and what waits for the user",
5
5
  "keywords": [
6
6
  "pi-package"
7
7
  ],
8
- "homepage": "https://github.com/cellbang/cell",
8
+ "homepage": "https://github.com/cellbang/ta",
9
9
  "bugs": {
10
- "url": "https://github.com/cellbang/cell/issues"
10
+ "url": "https://github.com/cellbang/ta/issues"
11
11
  },
12
12
  "repository": {
13
13
  "type": "git",
@@ -37,11 +37,15 @@
37
37
  "pi": {
38
38
  "title": {
39
39
  "en": "Recall",
40
- "zh-CN": "回顾"
40
+ "zh-CN": "回顾",
41
+ "zh-TW": "回顧",
42
+ "ja-JP": "振り返り"
41
43
  },
42
44
  "summary": {
43
45
  "en": "Ask what was done before, keep how you do things (steps Ta remembers, a card, a page), and get a daily brief of what got done and what waits for you.",
44
- "zh-CN": "问以前做过的事、把常做的事存下来(记住做法、做成卡片或页面),每天一份简报:做完了什么、等你定什么。"
46
+ "zh-CN": "问以前做过的事、把常做的事存下来(记住做法、做成卡片或页面),每天一份简报:做完了什么、等你定什么。",
47
+ "zh-TW": "問以前做過的事、把常做的事存下來(記住做法、做成卡片或頁面),每天一份簡報:做完了什麼、等你定什麼。",
48
+ "ja-JP": "以前やったことを尋ねる、いつものやり方を保存する(手順、カード、ページ)、毎日のブリーフで終わったことと判断待ちを確認。"
45
49
  },
46
50
  "icon": "ScrollText",
47
51
  "web": [
@@ -45,6 +45,45 @@ ${text}`;
45
45
  RecallConversations.ask = ask;
46
46
  })(RecallConversations ||= {});
47
47
 
48
+ // ../ta-protocol/esm/common/language.js
49
+ var TaLanguageUtil;
50
+ (function(TaLanguageUtil2) {
51
+ TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
52
+ TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
53
+ function of(tag) {
54
+ const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
55
+ if (/^zh(\b|-)/.test(said)) {
56
+ return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
57
+ }
58
+ return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
59
+ }
60
+ TaLanguageUtil2.of = of;
61
+ function server(env = typeof process === "undefined" ? {} : process.env) {
62
+ return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
63
+ }
64
+ TaLanguageUtil2.server = server;
65
+ function pick(language, words) {
66
+ return words[of(language)];
67
+ }
68
+ TaLanguageUtil2.pick = pick;
69
+ function say(words) {
70
+ return words[server()];
71
+ }
72
+ TaLanguageUtil2.say = say;
73
+ function chinese(language) {
74
+ return of(language).startsWith("zh");
75
+ }
76
+ TaLanguageUtil2.chinese = chinese;
77
+ function cjk(language) {
78
+ return of(language) !== "en-US";
79
+ }
80
+ TaLanguageUtil2.cjk = cjk;
81
+ function list(language, items) {
82
+ return items.join(cjk(language) ? "、" : ", ");
83
+ }
84
+ TaLanguageUtil2.list = list;
85
+ })(TaLanguageUtil || (TaLanguageUtil = {}));
86
+
48
87
  // web-src/i18n.ts
49
88
  var en = {
50
89
  settingsTitle: "Recall",
@@ -88,6 +127,48 @@ var en = {
88
127
  toolExtension: "Offer to keep",
89
128
  failed: "Could not do it: {message}"
90
129
  };
130
+ var ja = {
131
+ settingsTitle: "振り返り",
132
+ briefLabel: "毎日のブリーフ",
133
+ briefHint: "毎日この時間に、何かが起きると、Ta は「毎日のブリーフ」会話に何が完了したか、何があなたを待っているか、次は何かを書きます。",
134
+ briefTime: "ブリーフの時刻",
135
+ briefNow: "今書く",
136
+ briefNowButton: "書く",
137
+ briefNothing: "前回のブリーフ以降何も起きていません。",
138
+ suggestLabel: "保存を提案",
139
+ suggestHint: "ほかの会話で求めたことをもう一度求めると、Ta はそれを行う方法を覚えているか、カードまたはページまたはコマンドを作成することを提案します。",
140
+ keep: "保存",
141
+ keepDetail: "Ta が選択:ステップを覚えているか、カード、ページまたはコマンドを作成するか、スケジュールで実行",
142
+ askSteps: "これを行う方法を覚えていますか?",
143
+ askBoard: "ボードのカードを作成しますか?",
144
+ askPage: "ページを作成しますか?",
145
+ askCommand: "コマンドを作成しますか?",
146
+ askPanel: "会話の隣のツールを作成しますか?",
147
+ showSteps: "ステップを表示",
148
+ hideSteps: "ステップを非表示",
149
+ showPlan: "プランを表示",
150
+ hidePlan: "プランを非表示",
151
+ keepSteps: "覚えています",
152
+ keepMake: "それを作成",
153
+ keepNo: "ありがとうございません",
154
+ keptSteps: "{title} として記憶:新しい会話はこの方法で行うか、/skill:{name} を入力します。拡張機能の下にあります。",
155
+ keptMade: "Ta はこの会話で {title} を作成しています。",
156
+ keptDeclined: "保存されていません。Ta は同様の提供をもう一度しません。",
157
+ searchTitle: "Ta に問い合わせ",
158
+ searchAsk: "Ta に問い合わせ:{query}",
159
+ searchAskDetail: "Ta はあなたの会話と回答を調べて、どこで見つけたかを示します",
160
+ briefCounts: "{done} 完了 · {waiting} あなたを待っています",
161
+ briefCountsDone: "{done} 完了",
162
+ briefCardEmpty: "最初のブリーフは {time} に来ます",
163
+ briefNoneWaiting: "あなたを待っているものはありません",
164
+ briefTick: "処理済みとしてマーク",
165
+ briefUntick: "未処理としてマーク",
166
+ briefMore: "ブリーフにはあと {count} 個",
167
+ briefToday: "今日",
168
+ toolSearch: "会話を検索",
169
+ toolExtension: "保存を提案",
170
+ failed: "それはできませんでした:{message}"
171
+ };
91
172
  var zh = {
92
173
  settingsTitle: "回顾",
93
174
  briefLabel: "每日简报",
@@ -130,10 +211,53 @@ var zh = {
130
211
  toolExtension: "提议存下来",
131
212
  failed: "没有做成:{message}"
132
213
  };
214
+ var zhTw = {
215
+ settingsTitle: "回顧",
216
+ briefLabel: "每日簡報",
217
+ briefHint: "每天這個時間,只要有新動靜,Ta 就把做完的、等你定的和下一步寫進「每日簡報」對話。",
218
+ briefTime: "簡報時間",
219
+ briefNow: "現在寫一份",
220
+ briefNowButton: "生成",
221
+ briefNothing: "上次簡報以來沒有新的動靜。",
222
+ suggestLabel: "建議存下來",
223
+ suggestHint: "在別的對話裡交代過的事又交代一次時,Ta 會問要不要記住這套做法,或做成卡片、頁面、命令。",
224
+ keep: "存下來",
225
+ keepDetail: "Ta 判斷:記住步驟,做成卡片、頁面、命令,或定時自動做",
226
+ askSteps: "記住這套做法?",
227
+ askBoard: "做成小元件卡片?",
228
+ askPage: "做成一個頁面?",
229
+ askCommand: "做成一個命令?",
230
+ askPanel: "做成對話旁的工具?",
231
+ showSteps: "檢視步驟",
232
+ hideSteps: "收起步驟",
233
+ showPlan: "檢視做法",
234
+ hidePlan: "收起做法",
235
+ keepSteps: "記住",
236
+ keepMake: "做出來",
237
+ keepNo: "不用",
238
+ keptSteps: "已記住「{title}」:新對話會照著做,也可以輸入 /skill:{name};在擴充功能頁能找到它。",
239
+ keptMade: "Ta 正在這個對話裡做「{title}」。",
240
+ keptDeclined: "沒有儲存,類似的事不會再問。",
241
+ searchTitle: "問 Ta",
242
+ searchAsk: "問 Ta:{query}",
243
+ searchAskDetail: "Ta 翻一遍你的對話再回答,並給出出處",
244
+ briefCounts: "做完 {done} · 等你定 {waiting}",
245
+ briefCountsDone: "做完 {done}",
246
+ briefCardEmpty: "每天 {time} 寫第一份簡報",
247
+ briefNoneWaiting: "沒有等你定的事",
248
+ briefTick: "標為已處理",
249
+ briefUntick: "標為未處理",
250
+ briefMore: "簡報裡還有 {count} 項",
251
+ briefToday: "今天",
252
+ toolSearch: "搜尋對話",
253
+ toolExtension: "提議存下來",
254
+ failed: "沒有做成:{message}"
255
+ };
256
+ var WORDS = { "zh-CN": zh, "zh-TW": zhTw, "en-US": en, "ja-JP": ja };
133
257
  var RecallWords;
134
258
  ((RecallWords) => {
135
259
  function of(language) {
136
- return /^zh/i.test(language) ? zh : en;
260
+ return TaLanguageUtil.pick(language, WORDS);
137
261
  }
138
262
  RecallWords.of = of;
139
263
  function format(text, values) {
@@ -425,14 +549,22 @@ var BriefUtil;
425
549
  const flat = text.replace(/\s+/g, " ").trim();
426
550
  return flat.length > chars ? `${flat.slice(0, chars)}…` : flat;
427
551
  }
428
- BriefUtil.HEADINGS = { zh: ["做完了", "等你定", "下一步"], en: ["Done", "Waiting for you", "Next"] };
552
+ BriefUtil.HEADINGS = {
553
+ "zh-CN": ["做完了", "等你定", "下一步"],
554
+ "zh-TW": ["做完了", "等你定", "下一步"],
555
+ "en-US": ["Done", "Waiting for you", "Next"],
556
+ "ja-JP": ["完了", "あなたの判断待ち", "次のステップ"]
557
+ };
429
558
  const PARTS = {
430
559
  做完了: "done",
431
560
  done: "done",
432
561
  等你定: "waiting",
433
562
  "waiting for you": "waiting",
434
563
  下一步: "next",
435
- next: "next"
564
+ next: "next",
565
+ 完了: "done",
566
+ あなたの判断待ち: "waiting",
567
+ 次のステップ: "next"
436
568
  };
437
569
  function summary(text, file, at) {
438
570
  const counts = { done: 0, waiting: 0, next: 0 };
@@ -469,11 +601,23 @@ var BriefUtil;
469
601
  return text.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_`~]+/g, "").replace(/\s+/g, " ").trim().slice(0, 160);
470
602
  }
471
603
  BriefUtil.plain = plain;
472
- function message(material2, since2, zh2) {
473
- const heads = zh2 ? BriefUtil.HEADINGS.zh : BriefUtil.HEADINGS.en;
604
+ function message(material2, since2, language) {
605
+ const heads = BriefUtil.HEADINGS[language] || BriefUtil.HEADINGS["en-US"];
606
+ const langName = TaLanguageUtil.pick(language, {
607
+ "zh-CN": "Simplified Chinese",
608
+ "zh-TW": "Traditional Chinese",
609
+ "en-US": "English",
610
+ "ja-JP": "Japanese"
611
+ });
612
+ const prompt = TaLanguageUtil.pick(language, {
613
+ "zh-CN": "写今天的简报",
614
+ "zh-TW": "寫今天的簡報",
615
+ "en-US": "Write today's brief",
616
+ "ja-JP": "今日のブリーフを書く"
617
+ });
474
618
  const context = [
475
619
  "[ta-recall:brief]",
476
- `Write the daily brief of the user from what happened since ${new Date(since2).toISOString()}, below, in ${zh2 ? "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),`,
620
+ `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),`,
477
621
  `- ### ${heads[0]}: what got done;`,
478
622
  `- ### ${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;`,
479
623
  `- ### ${heads[2]}: two or three concrete next steps.`,
@@ -486,7 +630,7 @@ var BriefUtil;
486
630
  return `<context>
487
631
  ${context}
488
632
  </context>
489
- ${zh2 ? "写今天的简报" : "Write today's brief"}`;
633
+ ${prompt}`;
490
634
  }
491
635
  BriefUtil.message = message;
492
636
  })(BriefUtil ||= {});
@@ -894,7 +1038,12 @@ ${draft.body.trim()}
894
1038
  "- Once it is made, say in one line where the user finds it."
895
1039
  ].join(`
896
1040
  `);
897
- const said = /^zh/i.test(language) ? `做出来:${draft.title}` : `Make it: ${draft.title}`;
1041
+ const said = TaLanguageUtil.pick(language, {
1042
+ "zh-CN": `做出来:${draft.title}`,
1043
+ "zh-TW": `做出來:${draft.title}`,
1044
+ "en-US": `Make it: ${draft.title}`,
1045
+ "ja-JP": `作成:${draft.title}`
1046
+ });
898
1047
  return `<context>
899
1048
  ${context}
900
1049
  </context>
@@ -929,10 +1078,16 @@ var KeepUtil;
929
1078
  "- When the conversation holds nothing worth keeping, say so and offer nothing."
930
1079
  ].join(`
931
1080
  `);
1081
+ const prompt = TaLanguageUtil.pick(language, {
1082
+ "zh-CN": "把这个对话里的做法存下来",
1083
+ "zh-TW": "把這個對話裡的做法存下來",
1084
+ "en-US": "Keep how this was done",
1085
+ "ja-JP": "この会話の方法を保存"
1086
+ });
932
1087
  return `<context>
933
1088
  ${context}
934
1089
  </context>
935
- ${/^zh/i.test(language) ? "把这个对话里的做法存下来" : "Keep how this was done"}`;
1090
+ ${prompt}`;
936
1091
  }
937
1092
  KeepUtil.ask = ask;
938
1093
  function hint(asks) {