@celljs/ta 4.12.0 → 4.13.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 (630) hide show
  1. package/README.en.md +2 -2
  2. package/README.md +2 -2
  3. package/dist/cli.mjs +1006 -164
  4. package/dist/gateway.mjs +182 -2
  5. package/dist/pi/CHANGELOG.md +15 -0
  6. package/dist/pi/package.json +1 -1
  7. package/dist/pi/packages/ta-agents/README.en.md +1 -1
  8. package/dist/pi/packages/ta-agents/README.md +1 -1
  9. package/dist/pi/packages/ta-agents/extension/index.mjs +75 -11
  10. package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +2 -2
  11. package/dist/pi/packages/ta-agents/lib/acp-protocol.js +5 -2
  12. package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -4
  13. package/dist/pi/packages/ta-agents/lib/agent-prompt.js +7 -5
  14. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
  15. package/dist/pi/packages/ta-agents/lib/agent-session.js +7 -0
  16. package/dist/pi/packages/ta-agents/lib/agent-tool.d.ts +2 -0
  17. package/dist/pi/packages/ta-agents/lib/agent-tool.js +44 -3
  18. package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +12 -2
  19. package/dist/pi/packages/ta-agents/lib/agent-turn.js +29 -4
  20. package/dist/pi/packages/ta-agents/package.json +1 -1
  21. package/dist/pi/packages/ta-bots/extension/index.mjs +72 -0
  22. package/dist/pi/packages/ta-bots/host/index.mjs +178 -0
  23. package/dist/pi/packages/ta-bots/package.json +7 -2
  24. package/dist/pi/packages/ta-changes/extension/index.mjs +72 -0
  25. package/dist/pi/packages/ta-changes/package.json +8 -2
  26. package/dist/pi/packages/ta-channels/README.en.md +3 -1
  27. package/dist/pi/packages/ta-channels/README.md +3 -1
  28. package/dist/pi/packages/ta-channels/extension/index.mjs +78 -4
  29. package/dist/pi/packages/ta-channels/host/index.mjs +289 -8
  30. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +25 -0
  31. package/dist/pi/packages/ta-channels/lib/channels-util.js +8 -2
  32. package/dist/pi/packages/ta-channels/lib/extension.js +2 -2
  33. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +1 -0
  34. package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
  35. package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
  36. package/dist/pi/packages/ta-channels/lib/room.js +31 -5
  37. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  38. package/dist/pi/packages/ta-channels/lib/style.js +7 -13
  39. package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
  40. package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
  41. package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
  42. package/dist/pi/packages/ta-channels/lib/team.js +87 -6
  43. package/dist/pi/packages/ta-channels/package.json +26 -2
  44. package/dist/pi/packages/ta-channels/web/index.js +137 -27
  45. package/dist/pi/packages/ta-computer-use/package.json +1 -1
  46. package/dist/pi/packages/ta-cron/README.en.md +2 -2
  47. package/dist/pi/packages/ta-cron/README.md +2 -2
  48. package/dist/pi/packages/ta-cron/extension/index.mjs +113 -258
  49. package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
  50. package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
  51. package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
  52. package/dist/pi/packages/ta-cron/lib/extension.js +12 -8
  53. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
  54. package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
  55. package/dist/pi/packages/ta-cron/lib/index.js +0 -2
  56. package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
  57. package/dist/pi/packages/ta-cron/lib/page.js +24 -0
  58. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  59. package/dist/pi/packages/ta-cron/lib/style.js +8 -0
  60. package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
  61. package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
  62. package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
  63. package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
  64. package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
  65. package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
  66. package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
  67. package/dist/pi/packages/ta-cron/package.json +10 -2
  68. package/dist/pi/packages/ta-cron/web/index.js +607 -784
  69. package/dist/pi/packages/ta-extensions/README.en.md +1 -2
  70. package/dist/pi/packages/ta-extensions/README.md +1 -2
  71. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
  72. package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
  73. package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
  74. package/dist/pi/packages/ta-extensions/package.json +10 -2
  75. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +15 -11
  76. package/dist/pi/packages/ta-extensions/web/index.js +197 -97
  77. package/dist/pi/packages/ta-games/package.json +8 -2
  78. package/dist/pi/packages/ta-glance/README.en.md +1 -0
  79. package/dist/pi/packages/ta-glance/README.md +1 -0
  80. package/dist/pi/packages/ta-glance/extension/index.mjs +446 -3
  81. package/dist/pi/packages/ta-glance/lib/card.js +38 -12
  82. package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
  83. package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
  84. package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
  85. package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
  86. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
  87. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
  88. package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
  89. package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
  90. package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -1
  91. package/dist/pi/packages/ta-glance/lib/glance-spec.js +41 -7
  92. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
  93. package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
  94. package/dist/pi/packages/ta-glance/lib/index.js +4 -1
  95. package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
  96. package/dist/pi/packages/ta-glance/lib/style.js +9 -1
  97. package/dist/pi/packages/ta-glance/package.json +1 -1
  98. package/dist/pi/packages/ta-glance/web/index.js +87 -19
  99. package/dist/pi/packages/ta-initiative/README.en.md +66 -0
  100. package/dist/pi/packages/ta-initiative/README.md +66 -0
  101. package/dist/pi/packages/ta-initiative/extension/index.mjs +741 -0
  102. package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
  103. package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
  104. package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
  105. package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
  106. package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
  107. package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
  108. package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
  109. package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
  110. package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
  111. package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
  112. package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
  113. package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
  114. package/dist/pi/packages/ta-initiative/lib/extension.js +237 -0
  115. package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
  116. package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
  117. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
  118. package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
  119. package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
  120. package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
  121. package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
  122. package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
  123. package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
  124. package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
  125. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
  126. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
  127. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
  128. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
  129. package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
  130. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
  131. package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
  132. package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
  133. package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
  134. package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
  135. package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
  136. package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
  137. package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
  138. package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
  139. package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
  140. package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
  141. package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
  142. package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
  143. package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
  144. package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
  145. package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
  146. package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
  147. package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
  148. package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
  149. package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
  150. package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
  151. package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
  152. package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
  153. package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
  154. package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
  155. package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
  156. package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
  157. package/dist/pi/packages/ta-initiative/package.json +63 -0
  158. package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
  159. package/dist/pi/packages/ta-launcher/README.en.md +2 -1
  160. package/dist/pi/packages/ta-launcher/README.md +2 -1
  161. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
  162. package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
  163. package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
  164. package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
  165. package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
  166. package/dist/pi/packages/ta-launcher/package.json +1 -1
  167. package/dist/pi/packages/ta-launcher/web/index.js +58 -1
  168. package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
  169. package/dist/pi/packages/ta-manual/lib/pictures-c.js +109 -2
  170. package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
  171. package/dist/pi/packages/ta-manual/lib/topics.js +123 -11
  172. package/dist/pi/packages/ta-manual/package.json +1 -1
  173. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +45 -10
  174. package/dist/pi/packages/ta-manual/web/index.js +567 -12
  175. package/dist/pi/packages/ta-moments/README.en.md +29 -0
  176. package/dist/pi/packages/ta-moments/README.md +29 -0
  177. package/dist/pi/packages/ta-moments/extension/index.mjs +1787 -0
  178. package/dist/pi/packages/ta-moments/host/index.mjs +2415 -0
  179. package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
  180. package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
  181. package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
  182. package/dist/pi/packages/ta-moments/lib/context.js +35 -0
  183. package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
  184. package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
  185. package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
  186. package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
  187. package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
  188. package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
  189. package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
  190. package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
  191. package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
  192. package/dist/pi/packages/ta-moments/lib/host.js +11 -0
  193. package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
  194. package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
  195. package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
  196. package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
  197. package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
  198. package/dist/pi/packages/ta-moments/lib/index.js +50 -0
  199. package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
  200. package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
  201. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
  202. package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
  203. package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
  204. package/dist/pi/packages/ta-moments/lib/page.js +307 -0
  205. package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
  206. package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
  207. package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
  208. package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
  209. package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
  210. package/dist/pi/packages/ta-moments/lib/store.js +108 -0
  211. package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
  212. package/dist/pi/packages/ta-moments/lib/style.js +155 -0
  213. package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
  214. package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
  215. package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
  216. package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
  217. package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
  218. package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
  219. package/dist/pi/packages/ta-moments/package.json +61 -0
  220. package/dist/pi/packages/ta-moments/web/index.js +2008 -0
  221. package/dist/pi/packages/ta-nearby/README.en.md +33 -0
  222. package/dist/pi/packages/ta-nearby/README.md +33 -0
  223. package/dist/pi/packages/ta-nearby/extension/index.mjs +410 -0
  224. package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
  225. package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
  226. package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
  227. package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
  228. package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
  229. package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
  230. package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
  231. package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
  232. package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
  233. package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
  234. package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
  235. package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
  236. package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
  237. package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
  238. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
  239. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
  240. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
  241. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
  242. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
  243. package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
  244. package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
  245. package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
  246. package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
  247. package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
  248. package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
  249. package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
  250. package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
  251. package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
  252. package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
  253. package/dist/pi/packages/ta-nearby/package.json +65 -0
  254. package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
  255. package/dist/pi/packages/ta-notify/README.en.md +3 -1
  256. package/dist/pi/packages/ta-notify/README.md +3 -1
  257. package/dist/pi/packages/ta-notify/extension/index.mjs +85 -0
  258. package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
  259. package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
  260. package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
  261. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
  262. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
  263. package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
  264. package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
  265. package/dist/pi/packages/ta-notify/lib/style.js +1 -1
  266. package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
  267. package/dist/pi/packages/ta-notify/package.json +7 -2
  268. package/dist/pi/packages/ta-notify/web/index.js +3 -2
  269. package/dist/pi/packages/ta-recall/README.en.md +15 -6
  270. package/dist/pi/packages/ta-recall/README.md +15 -6
  271. package/dist/pi/packages/ta-recall/extension/index.mjs +311 -134
  272. package/dist/pi/packages/ta-recall/host/index.mjs +472 -116
  273. package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
  274. package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
  275. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
  276. package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
  277. package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
  278. package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
  279. package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
  280. package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
  281. package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
  282. package/dist/pi/packages/ta-recall/lib/extension.js +31 -23
  283. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
  284. package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
  285. package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
  286. package/dist/pi/packages/ta-recall/lib/index.js +5 -4
  287. package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
  288. package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
  289. package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
  290. package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
  291. package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
  292. package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
  293. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
  294. package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
  295. package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
  296. package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
  297. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
  298. package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
  299. package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
  300. package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
  301. package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
  302. package/dist/pi/packages/ta-recall/lib/style.js +2 -2
  303. package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
  304. package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
  305. package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
  306. package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
  307. package/dist/pi/packages/ta-recall/package.json +13 -5
  308. package/dist/pi/packages/ta-recall/web/index.js +414 -153
  309. package/dist/pi/packages/ta-rooms/README.en.md +6 -3
  310. package/dist/pi/packages/ta-rooms/README.md +6 -3
  311. package/dist/pi/packages/ta-rooms/extension/index.mjs +194 -9
  312. package/dist/pi/packages/ta-rooms/host/index.mjs +1023 -234
  313. package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
  314. package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
  315. package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
  316. package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
  317. package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
  318. package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +43 -40
  319. package/dist/pi/packages/ta-rooms/lib/double-host.js +142 -311
  320. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +20 -0
  321. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +40 -0
  322. package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +96 -3
  323. package/dist/pi/packages/ta-rooms/lib/double-protocol.js +58 -3
  324. package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
  325. package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
  326. package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
  327. package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
  328. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +34 -2
  329. package/dist/pi/packages/ta-rooms/lib/double-util.js +60 -2
  330. package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +4 -1
  331. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +8 -2
  332. package/dist/pi/packages/ta-rooms/lib/doubles-view.js +7 -2
  333. package/dist/pi/packages/ta-rooms/lib/extension.d.ts +9 -0
  334. package/dist/pi/packages/ta-rooms/lib/extension.js +35 -8
  335. package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
  336. package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
  337. package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
  338. package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
  339. package/dist/pi/packages/ta-rooms/lib/host.d.ts +2 -1
  340. package/dist/pi/packages/ta-rooms/lib/host.js +9 -2
  341. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +23 -2
  342. package/dist/pi/packages/ta-rooms/lib/i18n.js +60 -18
  343. package/dist/pi/packages/ta-rooms/lib/index.js +18 -1
  344. package/dist/pi/packages/ta-rooms/lib/members-view.js +12 -1
  345. package/dist/pi/packages/ta-rooms/lib/page.d.ts +42 -4
  346. package/dist/pi/packages/ta-rooms/lib/page.js +108 -24
  347. package/dist/pi/packages/ta-rooms/lib/room-view.js +7 -3
  348. package/dist/pi/packages/ta-rooms/lib/rooms-page.js +6 -17
  349. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  350. package/dist/pi/packages/ta-rooms/lib/style.js +31 -6
  351. package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
  352. package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
  353. package/dist/pi/packages/ta-rooms/package.json +11 -2
  354. package/dist/pi/packages/ta-rooms/web/index.js +1633 -751
  355. package/dist/pi/packages/ta-share/README.en.md +1 -1
  356. package/dist/pi/packages/ta-share/README.md +1 -1
  357. package/dist/pi/packages/ta-share/extension/index.mjs +72 -0
  358. package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
  359. package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
  360. package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
  361. package/dist/pi/packages/ta-share/lib/style.js +4 -6
  362. package/dist/pi/packages/ta-share/package.json +10 -2
  363. package/dist/pi/packages/ta-share/web/index.js +12 -14
  364. package/dist/pi/packages/ta-sync/README.en.md +55 -0
  365. package/dist/pi/packages/ta-sync/README.md +55 -0
  366. package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
  367. package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
  368. package/dist/pi/packages/ta-sync/lib/host.js +94 -0
  369. package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
  370. package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
  371. package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
  372. package/dist/pi/packages/ta-sync/lib/index.js +115 -0
  373. package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
  374. package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
  375. package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
  376. package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
  377. package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
  378. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
  379. package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
  380. package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
  381. package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
  382. package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
  383. package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
  384. package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
  385. package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
  386. package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
  387. package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
  388. package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
  389. package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
  390. package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
  391. package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
  392. package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
  393. package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
  394. package/dist/pi/packages/ta-sync/lib/react.js +16 -0
  395. package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
  396. package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
  397. package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
  398. package/dist/pi/packages/ta-sync/lib/style.js +108 -0
  399. package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
  400. package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
  401. package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
  402. package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
  403. package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
  404. package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
  405. package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
  406. package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
  407. package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
  408. package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
  409. package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
  410. package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
  411. package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
  412. package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
  413. package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
  414. package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
  415. package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
  416. package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
  417. package/dist/pi/packages/ta-sync/package.json +57 -0
  418. package/dist/pi/packages/ta-sync/web/index.js +2018 -0
  419. package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
  420. package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
  421. package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
  422. package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
  423. package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
  424. package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
  425. package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
  426. package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
  427. package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
  428. package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
  429. package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
  430. package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
  431. package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
  432. package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
  433. package/dist/pi/packages/ta-team/README.en.md +28 -0
  434. package/dist/pi/packages/ta-team/README.md +28 -0
  435. package/dist/pi/packages/ta-team/extension/index.mjs +285 -0
  436. package/dist/pi/packages/ta-team/host/index.mjs +2121 -0
  437. package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
  438. package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
  439. package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
  440. package/dist/pi/packages/ta-team/lib/extension.js +123 -0
  441. package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
  442. package/dist/pi/packages/ta-team/lib/host.js +45 -0
  443. package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
  444. package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
  445. package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
  446. package/dist/pi/packages/ta-team/lib/index.js +67 -0
  447. package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
  448. package/dist/pi/packages/ta-team/lib/join.js +48 -0
  449. package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
  450. package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
  451. package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
  452. package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
  453. package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
  454. package/dist/pi/packages/ta-team/lib/page.js +142 -0
  455. package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
  456. package/dist/pi/packages/ta-team/lib/parts.js +47 -0
  457. package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
  458. package/dist/pi/packages/ta-team/lib/policy.js +215 -0
  459. package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
  460. package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
  461. package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
  462. package/dist/pi/packages/ta-team/lib/react.js +8 -0
  463. package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
  464. package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
  465. package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
  466. package/dist/pi/packages/ta-team/lib/remote.js +128 -0
  467. package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
  468. package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
  469. package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
  470. package/dist/pi/packages/ta-team/lib/seal.js +75 -0
  471. package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
  472. package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
  473. package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
  474. package/dist/pi/packages/ta-team/lib/style.js +99 -0
  475. package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
  476. package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
  477. package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
  478. package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
  479. package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
  480. package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
  481. package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
  482. package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
  483. package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
  484. package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
  485. package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
  486. package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
  487. package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
  488. package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
  489. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
  490. package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
  491. package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
  492. package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
  493. package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
  494. package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
  495. package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
  496. package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
  497. package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
  498. package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
  499. package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
  500. package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
  501. package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
  502. package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
  503. package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
  504. package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
  505. package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
  506. package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
  507. package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
  508. package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
  509. package/dist/pi/packages/ta-team/package.json +68 -0
  510. package/dist/pi/packages/ta-team/web/index.js +2741 -0
  511. package/dist/pi/packages/ta-workspace/package.json +1 -1
  512. package/dist/pi/packages/ta-workspace/web/index.js +178 -0
  513. package/dist/public/assets/{abnfDiagram-S7VZAUFO-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-C30pzFN3.js} +1 -1
  514. package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-wfYFQl2u.js} +1 -1
  515. package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-B05zgxyT.js} +1 -1
  516. package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-BhN8Bsu0.js} +1 -1
  517. package/dist/public/assets/{browser-DS711n7Y.js → browser-DteLjv_-.js} +1 -1
  518. package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-DvdF3qCV.js} +1 -1
  519. package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-DNavkrnr.js} +1 -1
  520. package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-DplVEqp_.js} +1 -1
  521. package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BazOaHvw.js} +1 -1
  522. package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DmoQWa8b.js} +1 -1
  523. package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-Cj1m9ccz.js} +1 -1
  524. package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-_jbilrLX.js} +1 -1
  525. package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-CWU16Lut.js} +1 -1
  526. package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-wsbxWEZE.js} +1 -1
  527. package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-BGvmwwTv.js} +1 -1
  528. package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-Bp3hJ4kT.js} +1 -1
  529. package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-C1rQVxsJ.js} +1 -1
  530. package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-CEy0dKWn.js} +1 -1
  531. package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-akqvafwH.js} +1 -1
  532. package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-CVXAS4DS.js} +1 -1
  533. package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-DT_bEMvQ.js} +1 -1
  534. package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-Bgv_n5Qh.js} +1 -1
  535. package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-BtjQChpS.js} +1 -1
  536. package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-DSrOY8Uk.js} +1 -1
  537. package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +1 -0
  538. package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-DTy7FNFS.js} +1 -1
  539. package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-ip6rDUzY.js} +1 -1
  540. package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-CHrks7Jb.js} +1 -1
  541. package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-eUJ7STAr.js} +1 -1
  542. package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-B_fptNkg.js} +1 -1
  543. package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-C15owCSG.js} +1 -1
  544. package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-Bfa1qEgY.js} +1 -1
  545. package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-Bwxsih_Q.js} +1 -1
  546. package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-DKZ_lwah.js} +1 -1
  547. package/dist/public/assets/{dist-Bj2CrKn7.js → dist-VHGBaby6.js} +1 -1
  548. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CCkttvYi.js} +1 -1
  549. package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-a2gC0dVD.js} +1 -1
  550. package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-DcikW39e.js} +1 -1
  551. package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-BE3TV5lU.js} +1 -1
  552. package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-C2s1kutf.js} +1 -1
  553. package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +1 -0
  554. package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-2e8pZojb.js} +1 -1
  555. package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-rGnJptii.js} +1 -1
  556. package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +1 -0
  557. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CNnsDjQA.js} +1 -1
  558. package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CMKN6E37.js} +1 -1
  559. package/dist/public/assets/{html-Dk3kt2w_.js → html-0AjXQhkQ.js} +1 -1
  560. package/dist/public/assets/{index-Bx0c7eoh.js → index-TUtoc8CW.js} +2 -2
  561. package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +1 -0
  562. package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-DMKs8cuE.js} +1 -1
  563. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-Dg_IbA0G.js} +1 -1
  564. package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-CqYOqPjw.js} +1 -1
  565. package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-ohAOfoEY.js} +1 -1
  566. package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-D-gI-S5H.js} +1 -1
  567. package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-w-aKZS_U.js} +1 -1
  568. package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-oBN7c8NZ.js} +1 -1
  569. package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CnwhgGjX.js} +1 -1
  570. package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-CfFkSR0t.js} +3 -3
  571. package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-apiVCSBY.js} +4 -4
  572. package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.js → mindmap-definition-I2QAS2VK-E7vqVWB0.js} +1 -1
  573. package/dist/public/assets/module-C2jtFD0v.js +2365 -0
  574. package/dist/public/assets/module-xT4L5yYw.js +1 -0
  575. package/dist/public/assets/{monaco-BTVZP-tU.js → monaco-C0ByxW3l.js} +3 -3
  576. package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +1 -0
  577. package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP--RpwCE7x.js} +1 -1
  578. package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +1 -0
  579. package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-DxSbPaRZ.js} +1 -1
  580. package/dist/public/assets/{python-BwW_0207.js → python-vNPe_Fao.js} +1 -1
  581. package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.js → quadrantDiagram-XTYBLID2-CR_eeYXi.js} +1 -1
  582. package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +1 -0
  583. package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +1 -0
  584. package/dist/public/assets/{railroad-abnf-LNEFI6M7-XWNOzunl.js → railroad-abnf-LNEFI6M7-D6I2HxIC.js} +1 -1
  585. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-BuhDRGo3.js} +1 -1
  586. package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-n15PB7Sb.js} +1 -1
  587. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-Bbe5bNap.js} +1 -1
  588. package/dist/public/assets/{razor-DrjCyQqB.js → razor-CnKbF0Yz.js} +1 -1
  589. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-Beuygh9j.js} +1 -1
  590. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-jwWPgnrS.js} +1 -1
  591. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-CmU-HYQI.js} +1 -1
  592. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js} +1 -1
  593. package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.js → swimlanes-UMQ2AFYF-PSKyZN_b.js} +1 -1
  594. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +8 -0
  595. package/dist/public/assets/{timeline-definition-SEUHKTQE-_pMGrTE-.js → timeline-definition-SEUHKTQE-BuRxLScZ.js} +1 -1
  596. package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +1 -0
  597. package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +1 -0
  598. package/dist/public/assets/{typescript-0-z_OYCU.js → typescript-C00ztMLg.js} +1 -1
  599. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-Dlvyos8r.js} +1 -1
  600. package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CuLZubJH.js} +1 -1
  601. package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +1 -0
  602. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-WOGGTs4y.js} +1 -1
  603. package/dist/public/assets/{xml-BXPxQzKF.js → xml-CHBFuf5n.js} +1 -1
  604. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DwW9eifP.js} +1 -1
  605. package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-C4qkqzcL.js} +1 -1
  606. package/dist/public/index.html +1 -1
  607. package/dist/serve/index.mjs +7738 -3839
  608. package/package.json +37 -31
  609. package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
  610. package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
  611. package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
  612. package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
  613. package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
  614. package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
  615. package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
  616. package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
  617. package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +0 -1
  618. package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +0 -1
  619. package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +0 -1
  620. package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +0 -1
  621. package/dist/public/assets/module-CrD0OHQp.js +0 -1
  622. package/dist/public/assets/module-DEBMgdtf.js +0 -2273
  623. package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +0 -1
  624. package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +0 -1
  625. package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +0 -1
  626. package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +0 -1
  627. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +0 -8
  628. package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +0 -1
  629. package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +0 -1
  630. package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +0 -1
@@ -0,0 +1,11 @@
1
+ /** A draft Ta wrote in a fenced block: its `name: value` lines before a `---` (keys in lower case), and the rest. */
2
+ export interface DraftBlock {
3
+ fields: Record<string, string>;
4
+ body: string;
5
+ }
6
+ /** The fenced blocks in which a model without Ta's tools writes a draft (a skill, an extension). */
7
+ export declare namespace BlockUtil {
8
+ /** The last block of `language` in an answer; one that does not close runs to the end. */
9
+ function last(text: string, language: string): DraftBlock | undefined;
10
+ }
11
+ //# sourceMappingURL=block-util.d.ts.map
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BlockUtil = void 0;
4
+ /** The fenced blocks in which a model without Ta's tools writes a draft (a skill, an extension). */
5
+ var BlockUtil;
6
+ (function (BlockUtil) {
7
+ /** The last block of `language` in an answer; one that does not close runs to the end. */
8
+ function last(text, language) {
9
+ const lines = text.split(/\r?\n/);
10
+ let found;
11
+ for (let index = 0; index < lines.length; index++) {
12
+ const open = /^\s*(`{3,})\s*([\w-]+)\s*$/.exec(lines[index]);
13
+ if ((open === null || open === void 0 ? void 0 : open[2]) !== language) {
14
+ continue;
15
+ }
16
+ const close = new RegExp(`^\\s*${open[1]}\`*\\s*$`);
17
+ const end = lines.findIndex((line, at) => at > index && close.test(line));
18
+ found = lines.slice(index + 1, end < 0 ? lines.length : end);
19
+ index = end < 0 ? lines.length : end;
20
+ }
21
+ return found && parse(found);
22
+ }
23
+ BlockUtil.last = last;
24
+ function parse(lines) {
25
+ const rule = lines.findIndex(line => line.trim() === '---');
26
+ const fields = {};
27
+ for (const line of rule < 0 ? [] : lines.slice(0, rule)) {
28
+ const field = /^\s*([\w-]+)\s*:\s*(.*)$/.exec(line);
29
+ const key = field === null || field === void 0 ? void 0 : field[1].toLowerCase();
30
+ if (field && key && !(key in fields)) {
31
+ fields[key] = field[2].trim().replace(/^["'](.*)["']$/, '$1');
32
+ }
33
+ }
34
+ return {
35
+ fields,
36
+ body: lines
37
+ .slice(rule + 1)
38
+ .join('\n')
39
+ .trim(),
40
+ };
41
+ }
42
+ })(BlockUtil || (exports.BlockUtil = BlockUtil = {}));
43
+ //# sourceMappingURL=block-util.js.map
@@ -14,6 +14,16 @@ export interface BriefRun {
14
14
  status?: string;
15
15
  summary?: string;
16
16
  }
17
+ /** A proposal of ta-initiative, as its data keeps it: only what a brief reads. */
18
+ export interface BriefSuggestion {
19
+ title: string;
20
+ why?: string;
21
+ state: string;
22
+ /** Done by Ta on its own. */
23
+ auto?: boolean;
24
+ at: number;
25
+ decidedAt?: number;
26
+ }
17
27
  /** What an open session does now. */
18
28
  export interface BriefState {
19
29
  streaming?: boolean;
@@ -26,8 +36,21 @@ export interface BriefInput {
26
36
  briefFile?: string;
27
37
  notices?: readonly BriefNotice[];
28
38
  runs?: readonly BriefRun[];
39
+ suggestions?: readonly BriefSuggestion[];
29
40
  /** By session file. */
30
41
  states?: ReadonlyMap<string, BriefState>;
42
+ /** What packages have for the brief (TA_BRIEF_SOURCE). */
43
+ sources?: readonly BriefSource[];
44
+ }
45
+ /** A package's part of the material (TA_BRIEF_SOURCE), by its name. */
46
+ export interface BriefSource {
47
+ name: string;
48
+ section: string;
49
+ instruction: string;
50
+ items: readonly {
51
+ at: number;
52
+ text: string;
53
+ }[];
31
54
  }
32
55
  /** The daily brief: when it is due, and what Ta is given to write it. Pure functions. */
33
56
  export declare namespace BriefUtil {
@@ -46,6 +69,8 @@ export declare namespace BriefUtil {
46
69
  function since(last: number | undefined, now: number): number;
47
70
  /** What happened since `input.since`, as Ta reads it to write the brief; empty when nothing did. */
48
71
  function material(input: BriefInput): string;
72
+ /** A package's data under TA_BRIEF_SOURCE, checked; undefined for what is not one. */
73
+ function source(name: string, value: unknown): BriefSource | undefined;
49
74
  /** The headings of the parts of a brief, which the double's home counts the lines of (summary). */
50
75
  const HEADINGS: {
51
76
  readonly zh: readonly ['做完了', '等你定', '下一步'];
@@ -7,6 +7,8 @@ const ASKS = 3;
7
7
  const ASK_CHARS = 160;
8
8
  const ANSWER_CHARS = 500;
9
9
  const SUMMARY_CHARS = 300;
10
+ const SOURCE_ITEMS = 30;
11
+ const SOURCE_CHARS = 600;
10
12
  /** The daily brief: when it is due, and what Ta is given to write it. Pure functions. */
11
13
  var BriefUtil;
12
14
  (function (BriefUtil) {
@@ -53,7 +55,7 @@ var BriefUtil;
53
55
  /** What happened since `input.since`, as Ta reads it to write the brief; empty when nothing did. */
54
56
  function material(input) {
55
57
  var _a;
56
- var _b, _c, _d;
58
+ var _b, _c, _d, _e, _f;
57
59
  const conversations = input.conversations
58
60
  .filter(conversation => conversation.updatedAt >= input.since && conversation.file !== input.briefFile)
59
61
  .slice(0, recall_protocol_1.Limits.BRIEF_CONVERSATIONS);
@@ -78,9 +80,43 @@ var BriefUtil;
78
80
  parts.push(`- ${run.name}: ${(_d = run.status) !== null && _d !== void 0 ? _d : 'ran'}${run.summary ? ` — ${line(run.summary, SUMMARY_CHARS)}` : ''}`);
79
81
  }
80
82
  }
83
+ const suggestions = (_e = input.suggestions) !== null && _e !== void 0 ? _e : [];
84
+ const offered = suggestions.filter(one => (one.state === 'pending' || one.state === 'digest') && one.at >= input.since);
85
+ if (offered.length > 0) {
86
+ parts.push('', "Suggestions of Ta waiting for the user (in Suggestions, on the double's home):");
87
+ for (const one of offered) {
88
+ parts.push(`- ${line(one.title, ASK_CHARS)}${one.why ? ` — ${line(one.why, ASK_CHARS)}` : ''}`);
89
+ }
90
+ }
91
+ const alone = suggestions.filter(one => { var _a; return one.auto && one.state === 'done' && ((_a = one.decidedAt) !== null && _a !== void 0 ? _a : one.at) >= input.since; });
92
+ if (alone.length > 0) {
93
+ parts.push('', 'Done by Ta on its own (the user may undo it in Suggestions):');
94
+ for (const one of alone) {
95
+ parts.push(`- ${line(one.title, ASK_CHARS)}${one.why ? ` — ${line(one.why, ASK_CHARS)}` : ''}`);
96
+ }
97
+ }
98
+ for (const source of (_f = input.sources) !== null && _f !== void 0 ? _f : []) {
99
+ const items = source.items.filter(item => item.at >= input.since).slice(-SOURCE_ITEMS);
100
+ if (items.length > 0) {
101
+ parts.push('', `${line(source.section, ASK_CHARS)} (from ${source.name}; ${line(source.instruction, SOURCE_CHARS)}):`);
102
+ for (const item of items) {
103
+ parts.push(`- ${line(item.text, SOURCE_CHARS)}`);
104
+ }
105
+ }
106
+ }
81
107
  return parts.join('\n');
82
108
  }
83
109
  BriefUtil.material = material;
110
+ /** A package's data under TA_BRIEF_SOURCE, checked; undefined for what is not one. */
111
+ function source(name, value) {
112
+ const raw = value && typeof value === 'object' ? value : undefined;
113
+ if (!raw || typeof raw.section !== 'string' || typeof raw.instruction !== 'string' || !Array.isArray(raw.items)) {
114
+ return undefined;
115
+ }
116
+ const items = raw.items.filter((item) => !!item && typeof item.at === 'number' && typeof item.text === 'string' && !!item.text.trim());
117
+ return { name, section: raw.section, instruction: raw.instruction, items };
118
+ }
119
+ BriefUtil.source = source;
84
120
  function conversationLines(conversation, since, state) {
85
121
  const recent = conversation.said.filter(said => said.at >= since);
86
122
  // Not a command alone (/compact): what the user asked for.
@@ -169,6 +205,7 @@ var BriefUtil;
169
205
  `- ### ${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;`,
170
206
  `- ### ${heads[2]}: two or three concrete next steps.`,
171
207
  'Each line links its conversation as [title](session file). Leave out a part with nothing in it, small talk, and this conversation itself. Use no tools unless something must be checked.',
208
+ 'Material of a package ("from <package>") says itself what to do with it, as a part of its own after these three: do as it says.',
172
209
  '',
173
210
  material,
174
211
  ].join('\n');
@@ -1,7 +1,8 @@
1
1
  import type { WebComposerAddon, WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
2
2
  /**
3
- * Keep as a skill, in the + of the message box: asks Ta, in that conversation, to write how it was done as a draft
4
- * skill. Nothing above the box: the brief's conversation shown is the brief seen (briefSeen).
3
+ * Keep, in the + of the message box: asks Ta, in that conversation, to keep how it got its work done in the form that
4
+ * fits (KeepUtil.ask): an extension (steps Ta remembers, a card, a page, a command), or a scheduled task of ta-cron. Nothing above the box: the brief's
5
+ * conversation shown is the brief seen (briefSeen).
5
6
  */
6
7
  export declare function composerAddon(pi: WebExtensionAPI): WebComposerAddon;
7
8
  //# sourceMappingURL=composer.d.ts.map
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.composerAddon = composerAddon;
4
4
  const brief_seen_1 = require("./brief-seen");
5
5
  const i18n_1 = require("./i18n");
6
+ const keep_util_1 = require("./keep-util");
6
7
  // biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
7
8
  const react_1 = require("./react");
8
- const skill_util_1 = require("./skill-util");
9
9
  const stored_1 = require("./stored");
10
10
  /**
11
- * Keep as a skill, in the + of the message box: asks Ta, in that conversation, to write how it was done as a draft
12
- * skill. Nothing above the box: the brief's conversation shown is the brief seen (briefSeen).
11
+ * Keep, in the + of the message box: asks Ta, in that conversation, to keep how it got its work done in the form that
12
+ * fits (KeepUtil.ask): an extension (steps Ta remembers, a card, a page, a command), or a scheduled task of ta-cron. Nothing above the box: the brief's
13
+ * conversation shown is the brief seen (briefSeen).
13
14
  */
14
15
  function composerAddon(pi) {
15
16
  return {
@@ -19,14 +20,14 @@ function composerAddon(pi) {
19
20
  const Sparkles = pi.ui.icons.Sparkles;
20
21
  return [
21
22
  {
22
- key: 'make-skill',
23
- label: words.makeSkill,
24
- detail: words.makeSkillDetail,
23
+ key: 'keep',
24
+ label: words.keep,
25
+ detail: words.keepDetail,
25
26
  icon: Sparkles ? react_1.React.createElement(Sparkles, { size: 16 }) : undefined,
26
27
  run: () => void pi.server
27
28
  .prompt(conversation.sessionId, {
28
- clientMessageId: `ta-recall-skill:${Date.now()}`,
29
- message: skill_util_1.SkillUtil.ask(pi.ui.language),
29
+ clientMessageId: `ta-recall-keep:${Date.now()}`,
30
+ message: keep_util_1.KeepUtil.ask(pi.ui.language),
30
31
  streamingBehavior: 'followUp',
31
32
  })
32
33
  .catch(error => pi.ui.notify(i18n_1.RecallWords.format(words.failed, { message: (0, stored_1.message)(error) }), 'error')),
@@ -0,0 +1,21 @@
1
+ import { type ExtensionDraft, type ExtensionKind } from './recall-protocol';
2
+ /** An extension Ta offers: its fenced block, the draft checked, the package of steps, and what asks Ta to make the rest. */
3
+ export declare namespace ExtensionUtil {
4
+ /** What each kind is, for the model. */
5
+ const KIND_HELP: Record<ExtensionKind, string>;
6
+ /** The last `ta-extension` block of an answer; undefined when it has none, or one without a body. */
7
+ function find(text: string): ExtensionDraft | undefined;
8
+ /** A name pi takes for a package and a skill: lower case letters, digits and dashes, as its directory is named. */
9
+ function name(text: string): string;
10
+ /** The draft: its name one of a directory, a kind it knows (steps when none), its title and summary one line each. */
11
+ function check(draft: ExtensionDraft): ExtensionDraft;
12
+ /** What the block looks like, for the model. */
13
+ function blockHelp(): string;
14
+ /** The package.json of an extension of steps: its title, summary and icon for the lists, and its skill. */
15
+ function manifest(draft: ExtensionDraft): string;
16
+ /** The SKILL.md of an extension of steps: its frontmatter, the description quoted as YAML reads JSON strings. */
17
+ function skill(draft: ExtensionDraft): string;
18
+ /** 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
+ }
21
+ //# sourceMappingURL=extension-util.d.ts.map
@@ -0,0 +1,104 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ExtensionUtil = void 0;
4
+ const block_util_1 = require("./block-util");
5
+ const recall_protocol_1 = require("./recall-protocol");
6
+ const FENCE = '```';
7
+ const NAME_CHARS = 64;
8
+ const TITLE_CHARS = 60;
9
+ const SUMMARY_CHARS = 300;
10
+ /** An extension Ta offers: its fenced block, the draft checked, the package of steps, and what asks Ta to make the rest. */
11
+ var ExtensionUtil;
12
+ (function (ExtensionUtil) {
13
+ /** What each kind is, for the model. */
14
+ ExtensionUtil.KIND_HELP = {
15
+ steps: 'steps Ta follows when the user asks again and judges as it goes: a skill of the package, saved from the card as written',
16
+ board: 'a card of the board, to see at a glance: a status, a count, what is next',
17
+ page: 'a page of its own: a table, a chart, a form the user fills in',
18
+ command: 'a /command, or a button, that runs a fixed set of commands whose result needs no judgment',
19
+ panel: 'a tool of the workbench beside the conversation, as the explorer or the terminal',
20
+ };
21
+ /** The last `ta-extension` block of an answer; undefined when it has none, or one without a body. */
22
+ function find(text) {
23
+ const block = block_util_1.BlockUtil.last(text, recall_protocol_1.EXTENSION_BLOCK);
24
+ if (!(block === null || block === void 0 ? void 0 : block.body)) {
25
+ return undefined;
26
+ }
27
+ const { name = '', title = '', kind = '', summary = '' } = block.fields;
28
+ return check({ name, title, kind: kind, summary, body: block.body });
29
+ }
30
+ ExtensionUtil.find = find;
31
+ /** A name pi takes for a package and a skill: lower case letters, digits and dashes, as its directory is named. */
32
+ function name(text) {
33
+ return text
34
+ .toLowerCase()
35
+ .replace(/[^a-z0-9]+/g, '-')
36
+ .replace(/^-+|-+$/g, '')
37
+ .slice(0, NAME_CHARS)
38
+ .replace(/-+$/, '');
39
+ }
40
+ ExtensionUtil.name = name;
41
+ /** The draft: its name one of a directory, a kind it knows (steps when none), its title and summary one line each. */
42
+ function check(draft) {
43
+ const body = typeof (draft === null || draft === void 0 ? void 0 : draft.body) === 'string' ? draft.body.trim() : '';
44
+ if (!body) {
45
+ throw new Error('An extension needs a body: its steps, or the plan to make it by.');
46
+ }
47
+ const line = (value, chars) => (typeof value === 'string' ? value : '').replace(/\s+/g, ' ').trim().slice(0, chars);
48
+ const title = line(draft.title, TITLE_CHARS);
49
+ const named = name(typeof draft.name === 'string' ? draft.name : '') || name(title) || 'extension';
50
+ const kind = recall_protocol_1.EXTENSION_KINDS.includes(draft.kind) ? draft.kind : 'steps';
51
+ return { name: named, title: title || named, kind, summary: line(draft.summary, SUMMARY_CHARS) || line(body.split('\n')[0], 200), body };
52
+ }
53
+ ExtensionUtil.check = check;
54
+ /** What the block looks like, for the model. */
55
+ function blockHelp() {
56
+ return [
57
+ `${FENCE}${recall_protocol_1.EXTENSION_BLOCK}`,
58
+ 'name: <lowercase-words-with-dashes, its directory>',
59
+ 'title: <a few words, as the lists show it>',
60
+ `kind: <one of ${recall_protocol_1.EXTENSION_KINDS.join(', ')}>`,
61
+ 'summary: <one line: what it does, and when Ta uses it (steps) or where it shows>',
62
+ '---',
63
+ '<steps: the goal, then the steps, commands, files, checks and pitfalls that worked, in general terms; else the plan: what it shows or does, where its data comes from, the commands it runs, the files it reads or writes>',
64
+ FENCE,
65
+ 'Use a longer fence when the body has fences of its own. Write it in the language of the user.',
66
+ ].join('\n');
67
+ }
68
+ ExtensionUtil.blockHelp = blockHelp;
69
+ /** The package.json of an extension of steps: its title, summary and icon for the lists, and its skill. */
70
+ function manifest(draft) {
71
+ const pkg = {
72
+ name: draft.name,
73
+ version: '0.1.0',
74
+ description: draft.summary,
75
+ pi: { title: draft.title, summary: draft.summary, icon: 'ListChecks', skills: ['./skills'] },
76
+ };
77
+ return `${JSON.stringify(pkg, null, 2)}\n`;
78
+ }
79
+ ExtensionUtil.manifest = manifest;
80
+ /** The SKILL.md of an extension of steps: its frontmatter, the description quoted as YAML reads JSON strings. */
81
+ function skill(draft) {
82
+ return `---\nname: ${draft.name}\ndescription: ${JSON.stringify(draft.summary)}\n---\n\n${draft.body.trim()}\n`;
83
+ }
84
+ ExtensionUtil.skill = skill;
85
+ /** What Make it of the card sends, for an extension that is not steps: a line the user sees, after what the model reads. */
86
+ function make(draft, language) {
87
+ const context = [
88
+ '[ta-recall:make]',
89
+ 'The user wants the extension Ta offered made now. Read the ta-package skill first and make it as it says, in the smallest package that does what the plan says.',
90
+ `- name: ${draft.name}`,
91
+ `- title: ${draft.title}`,
92
+ `- kind: ${draft.kind} (${ExtensionUtil.KIND_HELP[draft.kind]})`,
93
+ `- summary: ${draft.summary}`,
94
+ '- plan:',
95
+ draft.body,
96
+ '- 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
+ '- Once it is made, say in one line where the user finds it.',
98
+ ].join('\n');
99
+ const said = /^zh/i.test(language) ? `做出来:${draft.title}` : `Make it: ${draft.title}`;
100
+ return `<context>\n${context}\n</context>\n${said}`;
101
+ }
102
+ ExtensionUtil.make = make;
103
+ })(ExtensionUtil || (exports.ExtensionUtil = ExtensionUtil = {}));
104
+ //# sourceMappingURL=extension-util.js.map
@@ -14,9 +14,9 @@ interface Pi {
14
14
  }): void;
15
15
  }
16
16
  /**
17
- * The pi extension, in every session: the tools search_conversations and propose_skill; a hint to the model when
18
- * the user asks for what they asked before elsewhere, to offer a skill; and the card of a draft skill once a turn
19
- * proposed one (with the tool, or a model without it in a ta-skill block). The host
17
+ * The pi extension, in every session: the tools search_conversations and propose_extension; a hint to the model when
18
+ * the user asks for what they asked before elsewhere, to offer to keep it; and the card of an offered extension once a
19
+ * turn proposed one (with the tool, or a model without it in a ta-extension block). The host
20
20
  * (host.ts) reads the conversations; under `ta` alone the tool reads them itself.
21
21
  */
22
22
  export default function activate(pi: Pi): void;
@@ -5,18 +5,19 @@ const node_path_1 = require("node:path");
5
5
  const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
6
6
  const conversation_index_1 = require("./conversation-index");
7
7
  const conversation_util_1 = require("./conversation-util");
8
+ const extension_util_1 = require("./extension-util");
9
+ const keep_util_1 = require("./keep-util");
8
10
  const recall_protocol_1 = require("./recall-protocol");
9
11
  const search_util_1 = require("./search-util");
10
- const skill_util_1 = require("./skill-util");
11
12
  /** Starts the context of the message that asks for the brief (BriefUtil.message). */
12
13
  const BRIEF_MARK = '[ta-recall:brief]';
13
- /** The section of the system prompt of a request made before (SkillUtil.hint). */
14
+ /** The section of the system prompt of a request made before (KeepUtil.hint). */
14
15
  const REPEAT_SECTION = 'ta-recall-repeat';
15
16
  const tool_1 = require("./tool");
16
17
  /**
17
- * The pi extension, in every session: the tools search_conversations and propose_skill; a hint to the model when
18
- * the user asks for what they asked before elsewhere, to offer a skill; and the card of a draft skill once a turn
19
- * proposed one (with the tool, or a model without it in a ta-skill block). The host
18
+ * The pi extension, in every session: the tools search_conversations and propose_extension; a hint to the model when
19
+ * the user asks for what they asked before elsewhere, to offer to keep it; and the card of an offered extension once a
20
+ * turn proposed one (with the tool, or a model without it in a ta-extension block). The host
20
21
  * (host.ts) reads the conversations; under `ta` alone the tool reads them itself.
21
22
  */
22
23
  function activate(pi) {
@@ -39,7 +40,7 @@ function activate(pi) {
39
40
  draft = undefined;
40
41
  briefing = false;
41
42
  // What the user asked elsewhere is theirs: not for a session that speaks with others.
42
- if (event.messageType === 'custom' || typeof event.prompt !== 'string' || ((_a = ctx.getSystemPrompt) === null || _a === void 0 ? void 0 : _a.call(ctx).includes(ta_extension_host_1.TA_WITH_OTHERS_MARK))) {
43
+ if (event.messageType === 'custom' || typeof event.prompt !== 'string' || ta_extension_host_1.TaHostUtil.marked((_a = ctx.getSystemPrompt) === null || _a === void 0 ? void 0 : _a.call(ctx), ta_extension_host_1.TA_WITH_OTHERS_MARK)) {
43
44
  return undefined;
44
45
  }
45
46
  if (event.prompt.includes(BRIEF_MARK)) {
@@ -52,7 +53,7 @@ function activate(pi) {
52
53
  const similar = (_d = (await ((_c = (_b = (await reach())) === null || _b === void 0 ? void 0 : _b.service) === null || _c === void 0 ? void 0 : _c.similar(text, ctx.sessionManager.getSessionId())))) !== null && _d !== void 0 ? _d : [];
53
54
  if (similar.length) {
54
55
  // A section of its own, which keeps what other extensions do to the prompt.
55
- event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [REPEAT_SECTION]: skill_util_1.SkillUtil.hint(similar) };
56
+ event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [REPEAT_SECTION]: keep_util_1.KeepUtil.hint(similar) };
56
57
  }
57
58
  return undefined;
58
59
  }
@@ -61,33 +62,38 @@ function activate(pi) {
61
62
  return undefined;
62
63
  }
63
64
  });
64
- // The card of the draft is for the user.
65
+ // The cards are for the user (those of skills in conversations of before too).
65
66
  pi.on('context', (event) => {
66
- const messages = event.messages.filter(message => !(message.role === 'custom' && message.customType === recall_protocol_1.SKILL_TYPE));
67
+ const messages = event.messages.filter(message => !(message.role === 'custom' && (message.customType === recall_protocol_1.SKILL_TYPE || message.customType === recall_protocol_1.EXTENSION_TYPE)));
67
68
  return messages.length === event.messages.length ? undefined : { messages };
68
69
  });
69
70
  pi.on('agent_end', (event, ctx) => {
70
71
  var _a;
71
72
  const answer = [...((_a = event.messages) !== null && _a !== void 0 ? _a : [])].reverse().find(message => message.role === 'assistant');
72
- const found = answer && answer.stopReason !== 'aborted' ? skill_util_1.SkillUtil.find(conversation_util_1.ConversationUtil.textOf(answer.content)) : undefined;
73
+ const text = answer && answer.stopReason !== 'aborted' ? conversation_util_1.ConversationUtil.textOf(answer.content) : '';
73
74
  const file = ctx.sessionManager.getSessionFile();
74
- if (briefing && answer && answer.stopReason !== 'aborted' && file) {
75
- const text = conversation_util_1.ConversationUtil.textOf(answer.content);
75
+ if (briefing && text && file) {
76
76
  void reach()
77
77
  .then(reached => { var _a; return (_a = reached === null || reached === void 0 ? void 0 : reached.service) === null || _a === void 0 ? void 0 : _a.keepBrief(file, text); })
78
78
  .catch(error => console.error('ta-recall could not keep the brief:', error));
79
79
  }
80
- if (found && !draft) {
81
- draft = { key: `${ctx.sessionManager.getSessionId()}:${Date.now()}`, draft: found, ...(asked ? { ask: asked } : {}) };
80
+ if (!text || draft) {
81
+ return;
82
82
  }
83
+ const found = extension_util_1.ExtensionUtil.find(text);
84
+ draft = found && card(found, ctx);
83
85
  });
84
86
  pi.on('agent_settled', (event) => {
85
- const card = draft;
87
+ const left = draft;
86
88
  draft = undefined;
87
- if (card && !event.aborted) {
88
- pi.sendMessage({ customType: recall_protocol_1.SKILL_TYPE, content: card.draft.name, display: true, details: card }, { triggerTurn: false });
89
+ if (left && !event.aborted) {
90
+ pi.sendMessage({ customType: recall_protocol_1.EXTENSION_TYPE, content: left.draft.title, display: true, details: left }, { triggerTurn: false });
89
91
  }
90
92
  });
93
+ const card = (found, ctx) => {
94
+ const session = ctx.sessionManager.getSessionId();
95
+ return { key: `${session}:${Date.now()}`, draft: found, session, ...(asked ? { ask: asked } : {}) };
96
+ };
91
97
  const search = async (query, ctx) => {
92
98
  const answer = await reach();
93
99
  if (answer === null || answer === void 0 ? void 0 : answer.service) {
@@ -101,16 +107,18 @@ function activate(pi) {
101
107
  return search_util_1.SearchUtil.search(await local.all(), query);
102
108
  };
103
109
  pi.registerTool({
104
- ...tool_1.ProposeTool.DEFINITION,
110
+ ...tool_1.ExtensionTool.DEFINITION,
105
111
  execute: async (_id, params, _signal, _update, ctx) => {
106
- var _a, _b;
107
- const checked = skill_util_1.SkillUtil.check({
112
+ var _a, _b, _c, _d;
113
+ const checked = extension_util_1.ExtensionUtil.check({
108
114
  name: String((_a = params === null || params === void 0 ? void 0 : params.name) !== null && _a !== void 0 ? _a : ''),
109
- description: String((_b = params === null || params === void 0 ? void 0 : params.description) !== null && _b !== void 0 ? _b : ''),
115
+ title: String((_b = params === null || params === void 0 ? void 0 : params.title) !== null && _b !== void 0 ? _b : ''),
116
+ kind: String((_c = params === null || params === void 0 ? void 0 : params.kind) !== null && _c !== void 0 ? _c : ''),
117
+ summary: String((_d = params === null || params === void 0 ? void 0 : params.summary) !== null && _d !== void 0 ? _d : ''),
110
118
  body: typeof (params === null || params === void 0 ? void 0 : params.body) === 'string' ? params.body : '',
111
119
  });
112
- draft = { key: `${ctx.sessionManager.getSessionId()}:${Date.now()}`, draft: checked, ...(asked ? { ask: asked } : {}) };
113
- return { content: [{ type: 'text', text: tool_1.ProposeTool.RESULT }], details: { name: checked.name } };
120
+ draft = card(checked, ctx);
121
+ return { content: [{ type: 'text', text: tool_1.ExtensionTool.RESULT }], details: { name: checked.name } };
114
122
  },
115
123
  });
116
124
  pi.registerTool({
@@ -8,15 +8,23 @@ declare const en: {
8
8
  briefNothing: string;
9
9
  suggestLabel: string;
10
10
  suggestHint: string;
11
- skillAsk: string;
12
- skillShow: string;
13
- skillHide: string;
14
- skillSave: string;
15
- skillNo: string;
16
- skillSaved: string;
17
- skillDeclined: string;
18
- makeSkill: string;
19
- makeSkillDetail: string;
11
+ keep: string;
12
+ keepDetail: string;
13
+ askSteps: string;
14
+ askBoard: string;
15
+ askPage: string;
16
+ askCommand: string;
17
+ askPanel: string;
18
+ showSteps: string;
19
+ hideSteps: string;
20
+ showPlan: string;
21
+ hidePlan: string;
22
+ keepSteps: string;
23
+ keepMake: string;
24
+ keepNo: string;
25
+ keptSteps: string;
26
+ keptMade: string;
27
+ keptDeclined: string;
20
28
  searchTitle: string;
21
29
  searchAsk: string;
22
30
  searchAskDetail: string;
@@ -29,7 +37,7 @@ declare const en: {
29
37
  briefMore: string;
30
38
  briefToday: string;
31
39
  toolSearch: string;
32
- toolPropose: string;
40
+ toolExtension: string;
33
41
  failed: string;
34
42
  };
35
43
  export type Words = typeof en;
@@ -9,17 +9,25 @@ const en = {
9
9
  briefNow: 'Write one now',
10
10
  briefNowButton: 'Write',
11
11
  briefNothing: 'Nothing happened since the last brief.',
12
- suggestLabel: 'Offer to keep as a skill',
13
- suggestHint: 'When you ask for something again that you asked for in another conversation, Ta offers to keep how it is done as a skill.',
14
- skillAsk: 'Keep as a skill?',
15
- skillShow: 'Show the steps',
16
- skillHide: 'Hide the steps',
17
- skillSave: 'Save as a skill',
18
- skillNo: 'No thanks',
19
- skillSaved: 'Saved as the skill {name}: new conversations use it, or type /skill:{name}.',
20
- skillDeclined: 'Not kept. Ta will not offer it again for the like.',
21
- makeSkill: 'Keep as a skill',
22
- makeSkillDetail: 'Ta writes how this was done as a skill to reuse',
12
+ suggestLabel: 'Offer to keep',
13
+ suggestHint: 'When you ask for something again that you asked for in another conversation, Ta offers to remember how it is done, or to make it a card, a page or a command.',
14
+ keep: 'Keep',
15
+ keepDetail: 'Ta picks: remember the steps, make a card, page or command, or run it on a schedule',
16
+ askSteps: 'Remember how this is done?',
17
+ askBoard: 'Make it a card of the board?',
18
+ askPage: 'Make it a page?',
19
+ askCommand: 'Make it a command?',
20
+ askPanel: 'Make it a tool beside the conversation?',
21
+ showSteps: 'Show the steps',
22
+ hideSteps: 'Hide the steps',
23
+ showPlan: 'Show the plan',
24
+ hidePlan: 'Hide the plan',
25
+ keepSteps: 'Remember',
26
+ keepMake: 'Make it',
27
+ keepNo: 'No thanks',
28
+ keptSteps: 'Remembered as {title}: new conversations do it this way, or type /skill:{name}. It is under Extensions.',
29
+ keptMade: 'Ta is making {title} in this conversation.',
30
+ keptDeclined: 'Not kept. Ta will not offer it again for the like.',
23
31
  searchTitle: 'Ask Ta',
24
32
  searchAsk: 'Ask Ta: {query}',
25
33
  searchAskDetail: 'Ta looks through your conversations and answers, with where it found it',
@@ -32,7 +40,7 @@ const en = {
32
40
  briefMore: '{count} more in the brief',
33
41
  briefToday: 'Today',
34
42
  toolSearch: 'Search conversations',
35
- toolPropose: 'Draft a skill',
43
+ toolExtension: 'Offer to keep',
36
44
  failed: 'Could not do it: {message}',
37
45
  };
38
46
  const zh = {
@@ -43,17 +51,25 @@ const zh = {
43
51
  briefNow: '现在写一份',
44
52
  briefNowButton: '生成',
45
53
  briefNothing: '上次简报以来没有新的动静。',
46
- suggestLabel: '建议存成技能',
47
- suggestHint: '在别的对话里交代过的事又交代一次时,Ta 会问要不要把做法存成技能。',
48
- skillAsk: '存成技能?',
49
- skillShow: '查看步骤',
50
- skillHide: '收起步骤',
51
- skillSave: '保存为技能',
52
- skillNo: '不用',
53
- skillSaved: '已保存为技能 {name}:新对话会自动用上,也可以输入 /skill:{name}。',
54
- skillDeclined: '没有保存,类似的事不会再问。',
55
- makeSkill: '存成技能',
56
- makeSkillDetail: 'Ta 把这个对话里的做法写成技能,以后照着做',
54
+ suggestLabel: '建议存下来',
55
+ suggestHint: '在别的对话里交代过的事又交代一次时,Ta 会问要不要记住这套做法,或做成卡片、页面、命令。',
56
+ keep: '存下来',
57
+ keepDetail: 'Ta 判断:记住步骤,做成卡片、页面、命令,或定时自动做',
58
+ askSteps: '记住这套做法?',
59
+ askBoard: '做成小组件卡片?',
60
+ askPage: '做成一个页面?',
61
+ askCommand: '做成一个命令?',
62
+ askPanel: '做成对话旁的工具?',
63
+ showSteps: '查看步骤',
64
+ hideSteps: '收起步骤',
65
+ showPlan: '查看做法',
66
+ hidePlan: '收起做法',
67
+ keepSteps: '记住',
68
+ keepMake: '做出来',
69
+ keepNo: '不用',
70
+ keptSteps: '已记住“{title}”:新对话会照着做,也可以输入 /skill:{name};在扩展页能找到它。',
71
+ keptMade: 'Ta 正在这个对话里做“{title}”。',
72
+ keptDeclined: '没有保存,类似的事不会再问。',
57
73
  searchTitle: '问 Ta',
58
74
  searchAsk: '问 Ta:{query}',
59
75
  searchAskDetail: 'Ta 翻一遍你的对话再回答,并给出出处',
@@ -66,7 +82,7 @@ const zh = {
66
82
  briefMore: '简报里还有 {count} 项',
67
83
  briefToday: '今天',
68
84
  toolSearch: '搜索对话',
69
- toolPropose: '起草技能',
85
+ toolExtension: '提议存下来',
70
86
  failed: '没有做成:{message}',
71
87
  };
72
88
  var RecallWords;
@@ -1,9 +1,9 @@
1
1
  import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
2
2
  /**
3
- * The page side of Recall: the card of a draft skill and Keep as a skill in the +, Ask Ta in the search of Quick
3
+ * The page side of Recall: the card of what Ta offers to keep (an extension: steps, a card, a page…) and Keep in the +, Ask Ta in the search of Quick
4
4
  * open, the daily brief under the double and on the board, and its section of the settings (links to session files open
5
5
  * their conversations in Ta Web itself). The host reads the
6
- * conversations and writes skills and briefs (host.ts); the pi extension of each session searches (extension.ts).
6
+ * conversations and writes the extensions of steps and the briefs (host.ts); the pi extension of each session searches (extension.ts).
7
7
  */
8
8
  export default function activate(pi: WebExtensionAPI): () => void;
9
9
  //# sourceMappingURL=index.d.ts.map