@celljs/ta 4.12.0 → 4.13.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 (629) 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 +161 -2
  5. package/dist/pi/CHANGELOG.md +11 -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 +51 -0
  22. package/dist/pi/packages/ta-bots/host/index.mjs +157 -0
  23. package/dist/pi/packages/ta-bots/package.json +7 -2
  24. package/dist/pi/packages/ta-changes/extension/index.mjs +51 -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 +55 -2
  29. package/dist/pi/packages/ta-channels/host/index.mjs +268 -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/i18n.d.ts +1 -0
  33. package/dist/pi/packages/ta-channels/lib/i18n.js +2 -0
  34. package/dist/pi/packages/ta-channels/lib/room.d.ts +0 -4
  35. package/dist/pi/packages/ta-channels/lib/room.js +31 -5
  36. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  37. package/dist/pi/packages/ta-channels/lib/style.js +7 -13
  38. package/dist/pi/packages/ta-channels/lib/team-view.d.ts +19 -0
  39. package/dist/pi/packages/ta-channels/lib/team-view.js +45 -0
  40. package/dist/pi/packages/ta-channels/lib/team.d.ts +20 -4
  41. package/dist/pi/packages/ta-channels/lib/team.js +87 -6
  42. package/dist/pi/packages/ta-channels/package.json +26 -2
  43. package/dist/pi/packages/ta-channels/web/index.js +137 -27
  44. package/dist/pi/packages/ta-computer-use/package.json +1 -1
  45. package/dist/pi/packages/ta-cron/README.en.md +2 -2
  46. package/dist/pi/packages/ta-cron/README.md +2 -2
  47. package/dist/pi/packages/ta-cron/extension/index.mjs +91 -257
  48. package/dist/pi/packages/ta-cron/host/index.mjs +9 -0
  49. package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +16 -15
  50. package/dist/pi/packages/ta-cron/lib/chat-task.js +45 -36
  51. package/dist/pi/packages/ta-cron/lib/extension.js +11 -7
  52. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +5 -7
  53. package/dist/pi/packages/ta-cron/lib/i18n.js +10 -14
  54. package/dist/pi/packages/ta-cron/lib/index.js +0 -2
  55. package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -0
  56. package/dist/pi/packages/ta-cron/lib/page.js +24 -0
  57. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  58. package/dist/pi/packages/ta-cron/lib/style.js +8 -0
  59. package/dist/pi/packages/ta-cron/lib/task-change.d.ts +11 -0
  60. package/dist/pi/packages/ta-cron/lib/task-change.js +43 -0
  61. package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +3 -0
  62. package/dist/pi/packages/ta-cron/lib/task-extension.js +2 -0
  63. package/dist/pi/packages/ta-cron/lib/task-util.d.ts +5 -0
  64. package/dist/pi/packages/ta-cron/lib/task-util.js +13 -0
  65. package/dist/pi/packages/ta-cron/lib/tasks-view.js +26 -2
  66. package/dist/pi/packages/ta-cron/package.json +10 -2
  67. package/dist/pi/packages/ta-cron/web/index.js +607 -784
  68. package/dist/pi/packages/ta-extensions/README.en.md +1 -2
  69. package/dist/pi/packages/ta-extensions/README.md +1 -2
  70. package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +0 -4
  71. package/dist/pi/packages/ta-extensions/lib/i18n.js +2 -10
  72. package/dist/pi/packages/ta-extensions/lib/index.js +0 -2
  73. package/dist/pi/packages/ta-extensions/package.json +10 -2
  74. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +15 -11
  75. package/dist/pi/packages/ta-extensions/web/index.js +176 -97
  76. package/dist/pi/packages/ta-games/package.json +8 -2
  77. package/dist/pi/packages/ta-glance/README.en.md +1 -0
  78. package/dist/pi/packages/ta-glance/README.md +1 -0
  79. package/dist/pi/packages/ta-glance/extension/index.mjs +425 -3
  80. package/dist/pi/packages/ta-glance/lib/card.js +38 -12
  81. package/dist/pi/packages/ta-glance/lib/extension.d.ts +3 -0
  82. package/dist/pi/packages/ta-glance/lib/extension.js +10 -0
  83. package/dist/pi/packages/ta-glance/lib/glance-ask.d.ts +15 -0
  84. package/dist/pi/packages/ta-glance/lib/glance-ask.js +97 -0
  85. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
  86. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +3 -3
  87. package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +2 -0
  88. package/dist/pi/packages/ta-glance/lib/glance-protocol.js +3 -1
  89. package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -1
  90. package/dist/pi/packages/ta-glance/lib/glance-spec.js +41 -7
  91. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +5 -0
  92. package/dist/pi/packages/ta-glance/lib/i18n.js +9 -0
  93. package/dist/pi/packages/ta-glance/lib/index.js +4 -1
  94. package/dist/pi/packages/ta-glance/lib/style.d.ts +1 -1
  95. package/dist/pi/packages/ta-glance/lib/style.js +9 -1
  96. package/dist/pi/packages/ta-glance/package.json +1 -1
  97. package/dist/pi/packages/ta-glance/web/index.js +87 -19
  98. package/dist/pi/packages/ta-initiative/README.en.md +66 -0
  99. package/dist/pi/packages/ta-initiative/README.md +66 -0
  100. package/dist/pi/packages/ta-initiative/extension/index.mjs +720 -0
  101. package/dist/pi/packages/ta-initiative/host/index.mjs +1169 -0
  102. package/dist/pi/packages/ta-initiative/lib/chat-kinds.d.ts +4 -0
  103. package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +17 -0
  104. package/dist/pi/packages/ta-initiative/lib/chat-proposals.d.ts +28 -0
  105. package/dist/pi/packages/ta-initiative/lib/chat-proposals.js +79 -0
  106. package/dist/pi/packages/ta-initiative/lib/conversation.d.ts +4 -0
  107. package/dist/pi/packages/ta-initiative/lib/conversation.js +27 -0
  108. package/dist/pi/packages/ta-initiative/lib/cron-proposals.d.ts +23 -0
  109. package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +94 -0
  110. package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +13 -0
  111. package/dist/pi/packages/ta-initiative/lib/event-proposals.js +76 -0
  112. package/dist/pi/packages/ta-initiative/lib/extension.d.ts +30 -0
  113. package/dist/pi/packages/ta-initiative/lib/extension.js +238 -0
  114. package/dist/pi/packages/ta-initiative/lib/host.d.ts +4 -0
  115. package/dist/pi/packages/ta-initiative/lib/host.js +11 -0
  116. package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +79 -0
  117. package/dist/pi/packages/ta-initiative/lib/i18n.js +159 -0
  118. package/dist/pi/packages/ta-initiative/lib/inbox-util.d.ts +19 -0
  119. package/dist/pi/packages/ta-initiative/lib/inbox-util.js +45 -0
  120. package/dist/pi/packages/ta-initiative/lib/inbox.d.ts +23 -0
  121. package/dist/pi/packages/ta-initiative/lib/inbox.js +142 -0
  122. package/dist/pi/packages/ta-initiative/lib/index.d.ts +10 -0
  123. package/dist/pi/packages/ta-initiative/lib/index.js +121 -0
  124. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +320 -0
  125. package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +96 -0
  126. package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +37 -0
  127. package/dist/pi/packages/ta-initiative/lib/initiative-service.js +104 -0
  128. package/dist/pi/packages/ta-initiative/lib/initiative-store.d.ts +44 -0
  129. package/dist/pi/packages/ta-initiative/lib/initiative-store.js +112 -0
  130. package/dist/pi/packages/ta-initiative/lib/level-util.d.ts +22 -0
  131. package/dist/pi/packages/ta-initiative/lib/level-util.js +86 -0
  132. package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +34 -0
  133. package/dist/pi/packages/ta-initiative/lib/material-util.js +155 -0
  134. package/dist/pi/packages/ta-initiative/lib/notices.d.ts +13 -0
  135. package/dist/pi/packages/ta-initiative/lib/notices.js +65 -0
  136. package/dist/pi/packages/ta-initiative/lib/notify-util.d.ts +25 -0
  137. package/dist/pi/packages/ta-initiative/lib/notify-util.js +60 -0
  138. package/dist/pi/packages/ta-initiative/lib/pace-util.d.ts +21 -0
  139. package/dist/pi/packages/ta-initiative/lib/pace-util.js +60 -0
  140. package/dist/pi/packages/ta-initiative/lib/page-initiative.d.ts +9 -0
  141. package/dist/pi/packages/ta-initiative/lib/page-initiative.js +40 -0
  142. package/dist/pi/packages/ta-initiative/lib/proposal-book.d.ts +61 -0
  143. package/dist/pi/packages/ta-initiative/lib/proposal-book.js +397 -0
  144. package/dist/pi/packages/ta-initiative/lib/react.d.ts +11 -0
  145. package/dist/pi/packages/ta-initiative/lib/react.js +16 -0
  146. package/dist/pi/packages/ta-initiative/lib/review-service.d.ts +32 -0
  147. package/dist/pi/packages/ta-initiative/lib/review-service.js +155 -0
  148. package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +7 -0
  149. package/dist/pi/packages/ta-initiative/lib/server-texts.js +17 -0
  150. package/dist/pi/packages/ta-initiative/lib/settings.d.ts +10 -0
  151. package/dist/pi/packages/ta-initiative/lib/settings.js +226 -0
  152. package/dist/pi/packages/ta-initiative/lib/style.d.ts +4 -0
  153. package/dist/pi/packages/ta-initiative/lib/style.js +56 -0
  154. package/dist/pi/packages/ta-initiative/lib/tool.d.ts +106 -0
  155. package/dist/pi/packages/ta-initiative/lib/tool.js +98 -0
  156. package/dist/pi/packages/ta-initiative/package.json +63 -0
  157. package/dist/pi/packages/ta-initiative/web/index.js +1226 -0
  158. package/dist/pi/packages/ta-launcher/README.en.md +2 -1
  159. package/dist/pi/packages/ta-launcher/README.md +2 -1
  160. package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +2 -0
  161. package/dist/pi/packages/ta-launcher/lib/i18n.js +4 -0
  162. package/dist/pi/packages/ta-launcher/lib/launcher-view.js +32 -0
  163. package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
  164. package/dist/pi/packages/ta-launcher/lib/style.js +11 -0
  165. package/dist/pi/packages/ta-launcher/package.json +1 -1
  166. package/dist/pi/packages/ta-launcher/web/index.js +58 -1
  167. package/dist/pi/packages/ta-manual/lib/pictures-b.js +29 -0
  168. package/dist/pi/packages/ta-manual/lib/pictures-c.js +109 -2
  169. package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
  170. package/dist/pi/packages/ta-manual/lib/topics.js +123 -11
  171. package/dist/pi/packages/ta-manual/package.json +1 -1
  172. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +45 -10
  173. package/dist/pi/packages/ta-manual/web/index.js +567 -12
  174. package/dist/pi/packages/ta-moments/README.en.md +29 -0
  175. package/dist/pi/packages/ta-moments/README.md +29 -0
  176. package/dist/pi/packages/ta-moments/extension/index.mjs +1766 -0
  177. package/dist/pi/packages/ta-moments/host/index.mjs +2394 -0
  178. package/dist/pi/packages/ta-moments/lib/brief-util.d.ts +30 -0
  179. package/dist/pi/packages/ta-moments/lib/brief-util.js +92 -0
  180. package/dist/pi/packages/ta-moments/lib/context.d.ts +18 -0
  181. package/dist/pi/packages/ta-moments/lib/context.js +35 -0
  182. package/dist/pi/packages/ta-moments/lib/draft-card.d.ts +6 -0
  183. package/dist/pi/packages/ta-moments/lib/draft-card.js +60 -0
  184. package/dist/pi/packages/ta-moments/lib/editor.d.ts +16 -0
  185. package/dist/pi/packages/ta-moments/lib/editor.js +126 -0
  186. package/dist/pi/packages/ta-moments/lib/extension.d.ts +24 -0
  187. package/dist/pi/packages/ta-moments/lib/extension.js +136 -0
  188. package/dist/pi/packages/ta-moments/lib/friends.d.ts +13 -0
  189. package/dist/pi/packages/ta-moments/lib/friends.js +27 -0
  190. package/dist/pi/packages/ta-moments/lib/host.d.ts +4 -0
  191. package/dist/pi/packages/ta-moments/lib/host.js +11 -0
  192. package/dist/pi/packages/ta-moments/lib/i18n.d.ts +92 -0
  193. package/dist/pi/packages/ta-moments/lib/i18n.js +201 -0
  194. package/dist/pi/packages/ta-moments/lib/image-util.d.ts +18 -0
  195. package/dist/pi/packages/ta-moments/lib/image-util.js +71 -0
  196. package/dist/pi/packages/ta-moments/lib/index.d.ts +8 -0
  197. package/dist/pi/packages/ta-moments/lib/index.js +50 -0
  198. package/dist/pi/packages/ta-moments/lib/moments-host.d.ts +133 -0
  199. package/dist/pi/packages/ta-moments/lib/moments-host.js +821 -0
  200. package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +334 -0
  201. package/dist/pi/packages/ta-moments/lib/moments-protocol.js +99 -0
  202. package/dist/pi/packages/ta-moments/lib/page.d.ts +7 -0
  203. package/dist/pi/packages/ta-moments/lib/page.js +307 -0
  204. package/dist/pi/packages/ta-moments/lib/post-util.d.ts +31 -0
  205. package/dist/pi/packages/ta-moments/lib/post-util.js +205 -0
  206. package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +29 -0
  207. package/dist/pi/packages/ta-moments/lib/server-texts.js +104 -0
  208. package/dist/pi/packages/ta-moments/lib/store.d.ts +33 -0
  209. package/dist/pi/packages/ta-moments/lib/store.js +108 -0
  210. package/dist/pi/packages/ta-moments/lib/style.d.ts +4 -0
  211. package/dist/pi/packages/ta-moments/lib/style.js +155 -0
  212. package/dist/pi/packages/ta-moments/lib/talk-host.d.ts +112 -0
  213. package/dist/pi/packages/ta-moments/lib/talk-host.js +582 -0
  214. package/dist/pi/packages/ta-moments/lib/talk-util.d.ts +26 -0
  215. package/dist/pi/packages/ta-moments/lib/talk-util.js +145 -0
  216. package/dist/pi/packages/ta-moments/lib/tool.d.ts +48 -0
  217. package/dist/pi/packages/ta-moments/lib/tool.js +56 -0
  218. package/dist/pi/packages/ta-moments/package.json +61 -0
  219. package/dist/pi/packages/ta-moments/web/index.js +1987 -0
  220. package/dist/pi/packages/ta-nearby/README.en.md +33 -0
  221. package/dist/pi/packages/ta-nearby/README.md +33 -0
  222. package/dist/pi/packages/ta-nearby/extension/index.mjs +389 -0
  223. package/dist/pi/packages/ta-nearby/host/index.mjs +1859 -0
  224. package/dist/pi/packages/ta-nearby/lib/extension.d.ts +27 -0
  225. package/dist/pi/packages/ta-nearby/lib/extension.js +190 -0
  226. package/dist/pi/packages/ta-nearby/lib/host.d.ts +7 -0
  227. package/dist/pi/packages/ta-nearby/lib/host.js +20 -0
  228. package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +92 -0
  229. package/dist/pi/packages/ta-nearby/lib/i18n.js +183 -0
  230. package/dist/pi/packages/ta-nearby/lib/index.d.ts +8 -0
  231. package/dist/pi/packages/ta-nearby/lib/index.js +38 -0
  232. package/dist/pi/packages/ta-nearby/lib/nearby-crypto.d.ts +31 -0
  233. package/dist/pi/packages/ta-nearby/lib/nearby-crypto.js +59 -0
  234. package/dist/pi/packages/ta-nearby/lib/nearby-meet.d.ts +35 -0
  235. package/dist/pi/packages/ta-nearby/lib/nearby-meet.js +93 -0
  236. package/dist/pi/packages/ta-nearby/lib/nearby-net.d.ts +59 -0
  237. package/dist/pi/packages/ta-nearby/lib/nearby-net.js +253 -0
  238. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +274 -0
  239. package/dist/pi/packages/ta-nearby/lib/nearby-protocol.js +31 -0
  240. package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +199 -0
  241. package/dist/pi/packages/ta-nearby/lib/nearby-service.js +1012 -0
  242. package/dist/pi/packages/ta-nearby/lib/nearby-spot.d.ts +50 -0
  243. package/dist/pi/packages/ta-nearby/lib/nearby-spot.js +167 -0
  244. package/dist/pi/packages/ta-nearby/lib/page.d.ts +52 -0
  245. package/dist/pi/packages/ta-nearby/lib/page.js +588 -0
  246. package/dist/pi/packages/ta-nearby/lib/react.d.ts +8 -0
  247. package/dist/pi/packages/ta-nearby/lib/react.js +8 -0
  248. package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +45 -0
  249. package/dist/pi/packages/ta-nearby/lib/server-texts.js +148 -0
  250. package/dist/pi/packages/ta-nearby/lib/style.d.ts +4 -0
  251. package/dist/pi/packages/ta-nearby/lib/style.js +92 -0
  252. package/dist/pi/packages/ta-nearby/package.json +65 -0
  253. package/dist/pi/packages/ta-nearby/web/index.js +1055 -0
  254. package/dist/pi/packages/ta-notify/README.en.md +3 -1
  255. package/dist/pi/packages/ta-notify/README.md +3 -1
  256. package/dist/pi/packages/ta-notify/extension/index.mjs +64 -0
  257. package/dist/pi/packages/ta-notify/host/index.mjs +24 -1
  258. package/dist/pi/packages/ta-notify/lib/extension.d.ts +4 -1
  259. package/dist/pi/packages/ta-notify/lib/extension.js +20 -1
  260. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +23 -3
  261. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +4 -2
  262. package/dist/pi/packages/ta-notify/lib/notify-service.js +27 -2
  263. package/dist/pi/packages/ta-notify/lib/style.d.ts +1 -1
  264. package/dist/pi/packages/ta-notify/lib/style.js +1 -1
  265. package/dist/pi/packages/ta-notify/lib/watcher.js +2 -1
  266. package/dist/pi/packages/ta-notify/package.json +7 -2
  267. package/dist/pi/packages/ta-notify/web/index.js +3 -2
  268. package/dist/pi/packages/ta-recall/README.en.md +15 -6
  269. package/dist/pi/packages/ta-recall/README.md +15 -6
  270. package/dist/pi/packages/ta-recall/extension/index.mjs +289 -133
  271. package/dist/pi/packages/ta-recall/host/index.mjs +451 -116
  272. package/dist/pi/packages/ta-recall/lib/block-util.d.ts +11 -0
  273. package/dist/pi/packages/ta-recall/lib/block-util.js +43 -0
  274. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +25 -0
  275. package/dist/pi/packages/ta-recall/lib/brief-util.js +38 -1
  276. package/dist/pi/packages/ta-recall/lib/composer.d.ts +3 -2
  277. package/dist/pi/packages/ta-recall/lib/composer.js +9 -8
  278. package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +21 -0
  279. package/dist/pi/packages/ta-recall/lib/extension-util.js +104 -0
  280. package/dist/pi/packages/ta-recall/lib/extension.d.ts +3 -3
  281. package/dist/pi/packages/ta-recall/lib/extension.js +30 -22
  282. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +18 -10
  283. package/dist/pi/packages/ta-recall/lib/i18n.js +40 -24
  284. package/dist/pi/packages/ta-recall/lib/index.d.ts +2 -2
  285. package/dist/pi/packages/ta-recall/lib/index.js +5 -4
  286. package/dist/pi/packages/ta-recall/lib/keep-card.d.ts +10 -0
  287. package/dist/pi/packages/ta-recall/lib/keep-card.js +83 -0
  288. package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +15 -0
  289. package/dist/pi/packages/ta-recall/lib/keep-util.js +55 -0
  290. package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +92 -18
  291. package/dist/pi/packages/ta-recall/lib/recall-protocol.js +19 -9
  292. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +16 -6
  293. package/dist/pi/packages/ta-recall/lib/recall-service.js +101 -11
  294. package/dist/pi/packages/ta-recall/lib/requests-util.d.ts +6 -0
  295. package/dist/pi/packages/ta-recall/lib/requests-util.js +37 -0
  296. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -0
  297. package/dist/pi/packages/ta-recall/lib/server-texts.js +5 -0
  298. package/dist/pi/packages/ta-recall/lib/settings.d.ts +1 -1
  299. package/dist/pi/packages/ta-recall/lib/settings.js +1 -1
  300. package/dist/pi/packages/ta-recall/lib/style.d.ts +1 -1
  301. package/dist/pi/packages/ta-recall/lib/style.js +2 -2
  302. package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +2 -2
  303. package/dist/pi/packages/ta-recall/lib/tool-line.js +10 -5
  304. package/dist/pi/packages/ta-recall/lib/tool.d.ts +14 -5
  305. package/dist/pi/packages/ta-recall/lib/tool.js +29 -17
  306. package/dist/pi/packages/ta-recall/package.json +13 -5
  307. package/dist/pi/packages/ta-recall/web/index.js +393 -153
  308. package/dist/pi/packages/ta-rooms/README.en.md +6 -3
  309. package/dist/pi/packages/ta-rooms/README.md +6 -3
  310. package/dist/pi/packages/ta-rooms/extension/index.mjs +171 -7
  311. package/dist/pi/packages/ta-rooms/host/index.mjs +1002 -234
  312. package/dist/pi/packages/ta-rooms/lib/dialogs.js +5 -0
  313. package/dist/pi/packages/ta-rooms/lib/double-agents.d.ts +26 -0
  314. package/dist/pi/packages/ta-rooms/lib/double-agents.js +84 -0
  315. package/dist/pi/packages/ta-rooms/lib/double-grants.d.ts +22 -0
  316. package/dist/pi/packages/ta-rooms/lib/double-grants.js +140 -0
  317. package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +43 -40
  318. package/dist/pi/packages/ta-rooms/lib/double-host.js +142 -311
  319. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +20 -0
  320. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +40 -0
  321. package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +96 -3
  322. package/dist/pi/packages/ta-rooms/lib/double-protocol.js +58 -3
  323. package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +82 -0
  324. package/dist/pi/packages/ta-rooms/lib/double-tasks.js +527 -0
  325. package/dist/pi/packages/ta-rooms/lib/double-user.d.ts +19 -0
  326. package/dist/pi/packages/ta-rooms/lib/double-user.js +124 -0
  327. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +34 -2
  328. package/dist/pi/packages/ta-rooms/lib/double-util.js +60 -2
  329. package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +4 -1
  330. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +8 -2
  331. package/dist/pi/packages/ta-rooms/lib/doubles-view.js +7 -2
  332. package/dist/pi/packages/ta-rooms/lib/extension.d.ts +9 -0
  333. package/dist/pi/packages/ta-rooms/lib/extension.js +33 -6
  334. package/dist/pi/packages/ta-rooms/lib/friend-notices.d.ts +12 -0
  335. package/dist/pi/packages/ta-rooms/lib/friend-notices.js +47 -0
  336. package/dist/pi/packages/ta-rooms/lib/friends-view.d.ts +20 -0
  337. package/dist/pi/packages/ta-rooms/lib/friends-view.js +224 -0
  338. package/dist/pi/packages/ta-rooms/lib/host.d.ts +2 -1
  339. package/dist/pi/packages/ta-rooms/lib/host.js +9 -2
  340. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +23 -2
  341. package/dist/pi/packages/ta-rooms/lib/i18n.js +60 -18
  342. package/dist/pi/packages/ta-rooms/lib/index.js +18 -1
  343. package/dist/pi/packages/ta-rooms/lib/members-view.js +12 -1
  344. package/dist/pi/packages/ta-rooms/lib/page.d.ts +42 -4
  345. package/dist/pi/packages/ta-rooms/lib/page.js +108 -24
  346. package/dist/pi/packages/ta-rooms/lib/room-view.js +7 -3
  347. package/dist/pi/packages/ta-rooms/lib/rooms-page.js +6 -17
  348. package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
  349. package/dist/pi/packages/ta-rooms/lib/style.js +31 -6
  350. package/dist/pi/packages/ta-rooms/lib/tasks-view.d.ts +41 -0
  351. package/dist/pi/packages/ta-rooms/lib/tasks-view.js +228 -0
  352. package/dist/pi/packages/ta-rooms/package.json +11 -2
  353. package/dist/pi/packages/ta-rooms/web/index.js +1633 -751
  354. package/dist/pi/packages/ta-share/README.en.md +1 -1
  355. package/dist/pi/packages/ta-share/README.md +1 -1
  356. package/dist/pi/packages/ta-share/extension/index.mjs +51 -0
  357. package/dist/pi/packages/ta-share/lib/i18n.js +6 -6
  358. package/dist/pi/packages/ta-share/lib/share-dialog.js +1 -1
  359. package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
  360. package/dist/pi/packages/ta-share/lib/style.js +4 -6
  361. package/dist/pi/packages/ta-share/package.json +10 -2
  362. package/dist/pi/packages/ta-share/web/index.js +12 -14
  363. package/dist/pi/packages/ta-sync/README.en.md +55 -0
  364. package/dist/pi/packages/ta-sync/README.md +55 -0
  365. package/dist/pi/packages/ta-sync/host/index.mjs +3763 -0
  366. package/dist/pi/packages/ta-sync/lib/host.d.ts +10 -0
  367. package/dist/pi/packages/ta-sync/lib/host.js +94 -0
  368. package/dist/pi/packages/ta-sync/lib/i18n.d.ts +98 -0
  369. package/dist/pi/packages/ta-sync/lib/i18n.js +202 -0
  370. package/dist/pi/packages/ta-sync/lib/index.d.ts +7 -0
  371. package/dist/pi/packages/ta-sync/lib/index.js +115 -0
  372. package/dist/pi/packages/ta-sync/lib/migrate-archive.d.ts +88 -0
  373. package/dist/pi/packages/ta-sync/lib/migrate-archive.js +439 -0
  374. package/dist/pi/packages/ta-sync/lib/migrate-frames.d.ts +77 -0
  375. package/dist/pi/packages/ta-sync/lib/migrate-frames.js +210 -0
  376. package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +99 -0
  377. package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +210 -0
  378. package/dist/pi/packages/ta-sync/lib/migrate-net.d.ts +51 -0
  379. package/dist/pi/packages/ta-sync/lib/migrate-net.js +170 -0
  380. package/dist/pi/packages/ta-sync/lib/migrate-protocol.d.ts +126 -0
  381. package/dist/pi/packages/ta-sync/lib/migrate-protocol.js +43 -0
  382. package/dist/pi/packages/ta-sync/lib/migrate-service.d.ts +86 -0
  383. package/dist/pi/packages/ta-sync/lib/migrate-service.js +521 -0
  384. package/dist/pi/packages/ta-sync/lib/move-panel.d.ts +16 -0
  385. package/dist/pi/packages/ta-sync/lib/move-panel.js +320 -0
  386. package/dist/pi/packages/ta-sync/lib/move-store.d.ts +15 -0
  387. package/dist/pi/packages/ta-sync/lib/move-store.js +42 -0
  388. package/dist/pi/packages/ta-sync/lib/panel.d.ts +28 -0
  389. package/dist/pi/packages/ta-sync/lib/panel.js +305 -0
  390. package/dist/pi/packages/ta-sync/lib/pictures.d.ts +22 -0
  391. package/dist/pi/packages/ta-sync/lib/pictures.js +92 -0
  392. package/dist/pi/packages/ta-sync/lib/react.d.ts +11 -0
  393. package/dist/pi/packages/ta-sync/lib/react.js +16 -0
  394. package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +29 -0
  395. package/dist/pi/packages/ta-sync/lib/server-texts.js +111 -0
  396. package/dist/pi/packages/ta-sync/lib/style.d.ts +4 -0
  397. package/dist/pi/packages/ta-sync/lib/style.js +108 -0
  398. package/dist/pi/packages/ta-sync/lib/sync-codec.d.ts +16 -0
  399. package/dist/pi/packages/ta-sync/lib/sync-codec.js +61 -0
  400. package/dist/pi/packages/ta-sync/lib/sync-engine.d.ts +57 -0
  401. package/dist/pi/packages/ta-sync/lib/sync-engine.js +203 -0
  402. package/dist/pi/packages/ta-sync/lib/sync-folder.d.ts +156 -0
  403. package/dist/pi/packages/ta-sync/lib/sync-folder.js +385 -0
  404. package/dist/pi/packages/ta-sync/lib/sync-identity.d.ts +60 -0
  405. package/dist/pi/packages/ta-sync/lib/sync-identity.js +201 -0
  406. package/dist/pi/packages/ta-sync/lib/sync-items.d.ts +104 -0
  407. package/dist/pi/packages/ta-sync/lib/sync-items.js +426 -0
  408. package/dist/pi/packages/ta-sync/lib/sync-merge.d.ts +42 -0
  409. package/dist/pi/packages/ta-sync/lib/sync-merge.js +109 -0
  410. package/dist/pi/packages/ta-sync/lib/sync-protocol.d.ts +134 -0
  411. package/dist/pi/packages/ta-sync/lib/sync-protocol.js +72 -0
  412. package/dist/pi/packages/ta-sync/lib/sync-service.d.ts +128 -0
  413. package/dist/pi/packages/ta-sync/lib/sync-service.js +679 -0
  414. package/dist/pi/packages/ta-sync/lib/sync-store.d.ts +15 -0
  415. package/dist/pi/packages/ta-sync/lib/sync-store.js +41 -0
  416. package/dist/pi/packages/ta-sync/package.json +57 -0
  417. package/dist/pi/packages/ta-sync/web/index.js +2018 -0
  418. package/dist/pi/packages/ta-sync-cloud/README.en.md +31 -0
  419. package/dist/pi/packages/ta-sync-cloud/README.md +31 -0
  420. package/dist/pi/packages/ta-sync-cloud/host/index.mjs +810 -0
  421. package/dist/pi/packages/ta-sync-cloud/lib/git-store.d.ts +90 -0
  422. package/dist/pi/packages/ta-sync-cloud/lib/git-store.js +393 -0
  423. package/dist/pi/packages/ta-sync-cloud/lib/host.d.ts +13 -0
  424. package/dist/pi/packages/ta-sync-cloud/lib/host.js +112 -0
  425. package/dist/pi/packages/ta-sync-cloud/lib/s3-store.d.ts +72 -0
  426. package/dist/pi/packages/ta-sync-cloud/lib/s3-store.js +206 -0
  427. package/dist/pi/packages/ta-sync-cloud/lib/store-util.d.ts +17 -0
  428. package/dist/pi/packages/ta-sync-cloud/lib/store-util.js +69 -0
  429. package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.d.ts +40 -0
  430. package/dist/pi/packages/ta-sync-cloud/lib/webdav-store.js +144 -0
  431. package/dist/pi/packages/ta-sync-cloud/package.json +63 -0
  432. package/dist/pi/packages/ta-team/README.en.md +28 -0
  433. package/dist/pi/packages/ta-team/README.md +28 -0
  434. package/dist/pi/packages/ta-team/extension/index.mjs +264 -0
  435. package/dist/pi/packages/ta-team/host/index.mjs +2100 -0
  436. package/dist/pi/packages/ta-team/lib/dialogs.d.ts +13 -0
  437. package/dist/pi/packages/ta-team/lib/dialogs.js +335 -0
  438. package/dist/pi/packages/ta-team/lib/extension.d.ts +21 -0
  439. package/dist/pi/packages/ta-team/lib/extension.js +123 -0
  440. package/dist/pi/packages/ta-team/lib/host.d.ts +13 -0
  441. package/dist/pi/packages/ta-team/lib/host.js +45 -0
  442. package/dist/pi/packages/ta-team/lib/i18n.d.ts +200 -0
  443. package/dist/pi/packages/ta-team/lib/i18n.js +401 -0
  444. package/dist/pi/packages/ta-team/lib/index.d.ts +8 -0
  445. package/dist/pi/packages/ta-team/lib/index.js +67 -0
  446. package/dist/pi/packages/ta-team/lib/join.d.ts +28 -0
  447. package/dist/pi/packages/ta-team/lib/join.js +48 -0
  448. package/dist/pi/packages/ta-team/lib/member-dialog.d.ts +2 -0
  449. package/dist/pi/packages/ta-team/lib/member-dialog.js +121 -0
  450. package/dist/pi/packages/ta-team/lib/members-tab.d.ts +11 -0
  451. package/dist/pi/packages/ta-team/lib/members-tab.js +133 -0
  452. package/dist/pi/packages/ta-team/lib/page.d.ts +42 -0
  453. package/dist/pi/packages/ta-team/lib/page.js +142 -0
  454. package/dist/pi/packages/ta-team/lib/parts.d.ts +39 -0
  455. package/dist/pi/packages/ta-team/lib/parts.js +47 -0
  456. package/dist/pi/packages/ta-team/lib/policy.d.ts +37 -0
  457. package/dist/pi/packages/ta-team/lib/policy.js +215 -0
  458. package/dist/pi/packages/ta-team/lib/protocol.d.ts +285 -0
  459. package/dist/pi/packages/ta-team/lib/protocol.js +119 -0
  460. package/dist/pi/packages/ta-team/lib/react.d.ts +8 -0
  461. package/dist/pi/packages/ta-team/lib/react.js +8 -0
  462. package/dist/pi/packages/ta-team/lib/record-tab.d.ts +8 -0
  463. package/dist/pi/packages/ta-team/lib/record-tab.js +90 -0
  464. package/dist/pi/packages/ta-team/lib/remote.d.ts +31 -0
  465. package/dist/pi/packages/ta-team/lib/remote.js +128 -0
  466. package/dist/pi/packages/ta-team/lib/roles-tab.d.ts +9 -0
  467. package/dist/pi/packages/ta-team/lib/roles-tab.js +76 -0
  468. package/dist/pi/packages/ta-team/lib/seal.d.ts +28 -0
  469. package/dist/pi/packages/ta-team/lib/seal.js +75 -0
  470. package/dist/pi/packages/ta-team/lib/shared-home.d.ts +23 -0
  471. package/dist/pi/packages/ta-team/lib/shared-home.js +123 -0
  472. package/dist/pi/packages/ta-team/lib/style.d.ts +4 -0
  473. package/dist/pi/packages/ta-team/lib/style.js +99 -0
  474. package/dist/pi/packages/ta-team/lib/team-admin.d.ts +31 -0
  475. package/dist/pi/packages/ta-team/lib/team-admin.js +140 -0
  476. package/dist/pi/packages/ta-team/lib/team-audit.d.ts +35 -0
  477. package/dist/pi/packages/ta-team/lib/team-audit.js +152 -0
  478. package/dist/pi/packages/ta-team/lib/team-core.d.ts +58 -0
  479. package/dist/pi/packages/ta-team/lib/team-core.js +115 -0
  480. package/dist/pi/packages/ta-team/lib/team-error.d.ts +4 -0
  481. package/dist/pi/packages/ta-team/lib/team-error.js +8 -0
  482. package/dist/pi/packages/ta-team/lib/team-expiry.d.ts +15 -0
  483. package/dist/pi/packages/ta-team/lib/team-expiry.js +67 -0
  484. package/dist/pi/packages/ta-team/lib/team-files.d.ts +21 -0
  485. package/dist/pi/packages/ta-team/lib/team-files.js +119 -0
  486. package/dist/pi/packages/ta-team/lib/team-inbox.d.ts +8 -0
  487. package/dist/pi/packages/ta-team/lib/team-inbox.js +32 -0
  488. package/dist/pi/packages/ta-team/lib/team-invites.d.ts +46 -0
  489. package/dist/pi/packages/ta-team/lib/team-invites.js +204 -0
  490. package/dist/pi/packages/ta-team/lib/team-page.d.ts +6 -0
  491. package/dist/pi/packages/ta-team/lib/team-page.js +41 -0
  492. package/dist/pi/packages/ta-team/lib/team-paths.d.ts +15 -0
  493. package/dist/pi/packages/ta-team/lib/team-paths.js +70 -0
  494. package/dist/pi/packages/ta-team/lib/team-people.d.ts +28 -0
  495. package/dist/pi/packages/ta-team/lib/team-people.js +106 -0
  496. package/dist/pi/packages/ta-team/lib/team-requests.d.ts +24 -0
  497. package/dist/pi/packages/ta-team/lib/team-requests.js +126 -0
  498. package/dist/pi/packages/ta-team/lib/team-runs.d.ts +38 -0
  499. package/dist/pi/packages/ta-team/lib/team-runs.js +136 -0
  500. package/dist/pi/packages/ta-team/lib/team-service.d.ts +32 -0
  501. package/dist/pi/packages/ta-team/lib/team-service.js +58 -0
  502. package/dist/pi/packages/ta-team/lib/team-shares.d.ts +52 -0
  503. package/dist/pi/packages/ta-team/lib/team-shares.js +145 -0
  504. package/dist/pi/packages/ta-team/lib/team-waits.d.ts +8 -0
  505. package/dist/pi/packages/ta-team/lib/team-waits.js +42 -0
  506. package/dist/pi/packages/ta-team/lib/team-watch.d.ts +28 -0
  507. package/dist/pi/packages/ta-team/lib/team-watch.js +136 -0
  508. package/dist/pi/packages/ta-team/package.json +68 -0
  509. package/dist/pi/packages/ta-team/web/index.js +2741 -0
  510. package/dist/pi/packages/ta-workspace/package.json +1 -1
  511. package/dist/pi/packages/ta-workspace/web/index.js +157 -0
  512. package/dist/public/assets/{abnfDiagram-S7VZAUFO-BnqtcbpZ.js → abnfDiagram-S7VZAUFO-DJMZKA5d.js} +1 -1
  513. package/dist/public/assets/{architecture-WOLXFQ4H-BzPq1Ioe.js → architecture-WOLXFQ4H-DwZ8A2Bp.js} +1 -1
  514. package/dist/public/assets/{architectureDiagram-YGSQEFNW-BsquO3a7.js → architectureDiagram-YGSQEFNW-DPezb7-w.js} +1 -1
  515. package/dist/public/assets/{blockDiagram-APKKGZFW-BQNYOEP4.js → blockDiagram-APKKGZFW-SrFYBlSp.js} +1 -1
  516. package/dist/public/assets/{browser-DS711n7Y.js → browser-CljOqDFz.js} +1 -1
  517. package/dist/public/assets/{c4Diagram-KJ2TOQU5-D6e79Ycq.js → c4Diagram-KJ2TOQU5-COCMkiJ6.js} +1 -1
  518. package/dist/public/assets/{chunk-6MUBBAK2-B-sgaPoU.js → chunk-6MUBBAK2-CWRxZCiu.js} +1 -1
  519. package/dist/public/assets/{chunk-AXFCVDMN-D8pJKIg2.js → chunk-AXFCVDMN-Dgn3RHlx.js} +1 -1
  520. package/dist/public/assets/{chunk-BG4553SI-86TL-vCz.js → chunk-BG4553SI-BDnAChfb.js} +1 -1
  521. package/dist/public/assets/{chunk-DQASFODM-CfUVuGjc.js → chunk-DQASFODM-DSgprMfc.js} +1 -1
  522. package/dist/public/assets/{chunk-HFQBQIA3-Drm0FEYk.js → chunk-HFQBQIA3-ChtjyKjP.js} +1 -1
  523. package/dist/public/assets/{chunk-KQLB2F66-BVFRADlC.js → chunk-KQLB2F66-B2o0ufJC.js} +1 -1
  524. package/dist/public/assets/{chunk-KS47KZWR-DfyALEmP.js → chunk-KS47KZWR-C4qJvDaX.js} +1 -1
  525. package/dist/public/assets/{chunk-LEVMRMFU-DtJVzk2c.js → chunk-LEVMRMFU-2jTGUstS.js} +1 -1
  526. package/dist/public/assets/{chunk-M57EVK23-DTy27PHQ.js → chunk-M57EVK23-CKAWW7fj.js} +1 -1
  527. package/dist/public/assets/{chunk-OY52VR5R-nSgn7jZg.js → chunk-OY52VR5R-B5TUKZAt.js} +1 -1
  528. package/dist/public/assets/{chunk-QB3YPZ4I-CkSxO_X6.js → chunk-QB3YPZ4I-CyQFTqwG.js} +1 -1
  529. package/dist/public/assets/{chunk-R3KSYZAL-Ck6iAjAL.js → chunk-R3KSYZAL-C6git_yh.js} +1 -1
  530. package/dist/public/assets/{chunk-STOXU5M4-DQPHdSTh.js → chunk-STOXU5M4-AwEqcNnS.js} +1 -1
  531. package/dist/public/assets/{chunk-TU62E6Q5-Bc2AbV2Y.js → chunk-TU62E6Q5-GKcRDmvw.js} +1 -1
  532. package/dist/public/assets/{chunk-X4PVCEUW-Cgpm0IXm.js → chunk-X4PVCEUW-CMG5EfZ9.js} +1 -1
  533. package/dist/public/assets/{chunk-XXDRQBXY-CGE4eLpg.js → chunk-XXDRQBXY-BHd-dKtZ.js} +1 -1
  534. package/dist/public/assets/{classDiagram-v2-L25IHNXF-4eQuDPEo.js → classDiagram-v2-L25IHNXF-HaRsBCG9.js} +1 -1
  535. package/dist/public/assets/{cose-bilkent-JH36ORCC-tDLCWq07.js → cose-bilkent-JH36ORCC-BPBTCfj3.js} +1 -1
  536. package/dist/public/assets/cynefin-EF2NZ3EQ-DyqqRII3.js +1 -0
  537. package/dist/public/assets/{cynefinDiagram-L36ESFBY-ByqcZ8x9.js → cynefinDiagram-L36ESFBY-dAmWDtva.js} +1 -1
  538. package/dist/public/assets/{d3-selection-Bgn1374-.js → d3-selection-BhemR5ul.js} +1 -1
  539. package/dist/public/assets/{dagre-SPEB5RXH-mCgr71mV.js → dagre-SPEB5RXH-D93g6hNI.js} +1 -1
  540. package/dist/public/assets/{diagram-3B7GL73J-DpYSwpQ0.js → diagram-3B7GL73J-FJBKgG3X.js} +1 -1
  541. package/dist/public/assets/{diagram-DNEMPZML-DMozUQzi.js → diagram-DNEMPZML-BP22T976.js} +1 -1
  542. package/dist/public/assets/{diagram-L3MUGCDN-Bk5Uf8PD.js → diagram-L3MUGCDN-DcrCJXRt.js} +1 -1
  543. package/dist/public/assets/{diagram-LA4NIPWU-DFt5cPVK.js → diagram-LA4NIPWU-DUgd3PHQ.js} +1 -1
  544. package/dist/public/assets/{diagram-MHCOC4E2-BkZZcKqK.js → diagram-MHCOC4E2-ejTInqzQ.js} +1 -1
  545. package/dist/public/assets/{diagram-XPFHEONP-HEY6kyyN.js → diagram-XPFHEONP-BLjkgho1.js} +1 -1
  546. package/dist/public/assets/{dist-Bj2CrKn7.js → dist-C9xqTt0E.js} +1 -1
  547. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D4JvYyVb.js → ebnfDiagram-UZSYDL2S-CB1QQ4_T.js} +1 -1
  548. package/dist/public/assets/{editor.api-BpJFzYbl.js → editor.api-lz6I1oVk.js} +1 -1
  549. package/dist/public/assets/{elk-XV6XMXQE-CT6qLJkF.js → elk-XV6XMXQE-CLBx1s2b.js} +1 -1
  550. package/dist/public/assets/{erDiagram-EYBAPDEH-BGng1goR.js → erDiagram-EYBAPDEH-Dsj6RYi5.js} +1 -1
  551. package/dist/public/assets/{eventmodeling-K75KTNOO-Tt8O-Q1Z.js → eventmodeling-K75KTNOO-smOORsSG.js} +1 -1
  552. package/dist/public/assets/flowDiagram-MALGAFMO-DFmQPJ7B.js +1 -0
  553. package/dist/public/assets/{freemarker2-Dd5ksoRn.js → freemarker2-DrLPw7Mc.js} +1 -1
  554. package/dist/public/assets/{ganttDiagram-23REXITY-Jl8VO_g2.js → ganttDiagram-23REXITY-BV9WK0rK.js} +1 -1
  555. package/dist/public/assets/gitGraph-VSP46ZUC-ybrJCK6u.js +1 -0
  556. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-Be4qXALb.js → gitGraphDiagram-STJD7YCW-CsSpSQ0T.js} +1 -1
  557. package/dist/public/assets/{handlebars-4xabgUi4.js → handlebars-CLx5-csF.js} +1 -1
  558. package/dist/public/assets/{html-Dk3kt2w_.js → html-C9LmGm46.js} +1 -1
  559. package/dist/public/assets/{index-Bx0c7eoh.js → index-CLWW0mVu.js} +2 -2
  560. package/dist/public/assets/info-OHQRW6UA-n41_wZE4.js +1 -0
  561. package/dist/public/assets/{infoDiagram-KBXO4MBG-Coc0tdwb.js → infoDiagram-KBXO4MBG-wm5AnXDz.js} +1 -1
  562. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-CE_1VQCg.js → ishikawaDiagram-M35NCXHK-BLUBDeS3.js} +1 -1
  563. package/dist/public/assets/{javascript-DKLGqy6v.js → javascript-C4S1eQb7.js} +1 -1
  564. package/dist/public/assets/{journeyDiagram-OPLOXDXO-CrolRZ_7.js → journeyDiagram-OPLOXDXO-DXc7-I_g.js} +1 -1
  565. package/dist/public/assets/{jsonMode-Chcs19_y.js → jsonMode-lLJKR2M6.js} +1 -1
  566. package/dist/public/assets/{kanban-definition-BZKZHSQY-CjJj47De.js → kanban-definition-BZKZHSQY-D5Ra4L_5.js} +1 -1
  567. package/dist/public/assets/{liquid-jff3p-Ji.js → liquid-DRlm-XZd.js} +1 -1
  568. package/dist/public/assets/{mdx-DW4uRDfJ.js → mdx-CzIqeqPy.js} +1 -1
  569. package/dist/public/assets/{mermaid-parser.core-XhQj6FvH.js → mermaid-parser.core-BIPB1BgS.js} +3 -3
  570. package/dist/public/assets/{mermaid.core-OD4Atimg.js → mermaid.core-DxBlQ6oF.js} +4 -4
  571. package/dist/public/assets/{mindmap-definition-I2QAS2VK-DpGelVY7.js → mindmap-definition-I2QAS2VK-BdupvuYr.js} +1 -1
  572. package/dist/public/assets/module-BPxWyxwR.js +2362 -0
  573. package/dist/public/assets/module-C_MSCGQC.js +1 -0
  574. package/dist/public/assets/{monaco-BTVZP-tU.js → monaco-ChpJIYsY.js} +3 -3
  575. package/dist/public/assets/packet-JDAUHWVQ-BjrqMgis.js +1 -0
  576. package/dist/public/assets/{pegDiagram-FD4XPPHP-CqcBmPfB.js → pegDiagram-FD4XPPHP-C_GF7Fng.js} +1 -1
  577. package/dist/public/assets/pie-XZMESJXO-CJSA88kr.js +1 -0
  578. package/dist/public/assets/{pieDiagram-J4AKIIQI-CRir3beB.js → pieDiagram-J4AKIIQI-WlpNP-IM.js} +1 -1
  579. package/dist/public/assets/{python-BwW_0207.js → python-BJgFCfc8.js} +1 -1
  580. package/dist/public/assets/{quadrantDiagram-XTYBLID2-DIY6gdcf.js → quadrantDiagram-XTYBLID2-CkCL5rJY.js} +1 -1
  581. package/dist/public/assets/radar-ABXABTNO-4nLUXAkG.js +1 -0
  582. package/dist/public/assets/railroad-I3PHUGI6-BD2LqZSr.js +1 -0
  583. package/dist/public/assets/{railroad-abnf-LNEFI6M7-XWNOzunl.js → railroad-abnf-LNEFI6M7-DZZKUytl.js} +1 -1
  584. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js → railroad-ebnf-DWYD2UWJ-CS7KsJdb.js} +1 -1
  585. package/dist/public/assets/{railroad-peg-JR7BVNR7-BVB_IaIG.js → railroad-peg-JR7BVNR7-CiukTZVd.js} +1 -1
  586. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-CudwT6q2.js → railroadDiagram-MRQ6NCDL-BS0R_H3-.js} +1 -1
  587. package/dist/public/assets/{razor-DrjCyQqB.js → razor-jcBIjr45.js} +1 -1
  588. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CvRMeRqj.js → requirementDiagram-Y7LWUY3S-C0_T9jgl.js} +1 -1
  589. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-adxYCJKr.js → sankeyDiagram-WGJFYUXA-DF15sUfS.js} +1 -1
  590. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-lCRsoLUp.js → sequenceDiagram-5NDRBG5M-7AkTLleX.js} +1 -1
  591. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-DNst1BLg.js → stateDiagram-v2-FJ4FJNEA-CU3i-U9q.js} +1 -1
  592. package/dist/public/assets/{swimlanes-UMQ2AFYF-S_omrdvA.js → swimlanes-UMQ2AFYF-CR-ieLeo.js} +1 -1
  593. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-COK2pFDF.js +8 -0
  594. package/dist/public/assets/{timeline-definition-SEUHKTQE-_pMGrTE-.js → timeline-definition-SEUHKTQE-DeM0Uekm.js} +1 -1
  595. package/dist/public/assets/treeView-D4JQ5SDB-BL13z_2J.js +1 -0
  596. package/dist/public/assets/treemap-SAJKECNS-Lx2qjQpO.js +1 -0
  597. package/dist/public/assets/{typescript-0-z_OYCU.js → typescript-B7zp7QPf.js} +1 -1
  598. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-B2oJKi5Q.js → usecaseDiagram-AFA6YXN4-D6rDIgdU.js} +1 -1
  599. package/dist/public/assets/{vennDiagram-NNMJR3RB-inPs2Kkr.js → vennDiagram-NNMJR3RB-CncVDcMl.js} +1 -1
  600. package/dist/public/assets/wardley-7MLQ67FV-B4j5rilS.js +1 -0
  601. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-DNhNHM7b.js → wardleyDiagram-S7YFUSEH-DKPAMfTE.js} +1 -1
  602. package/dist/public/assets/{xml-BXPxQzKF.js → xml-BJIgLD52.js} +1 -1
  603. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DJc93dNT.js → xychartDiagram-GGNKY7IX-DmmXGebm.js} +1 -1
  604. package/dist/public/assets/{yaml-CGmD9Rya.js → yaml-Dxb2gmP5.js} +1 -1
  605. package/dist/public/index.html +1 -1
  606. package/dist/serve/index.mjs +7727 -3847
  607. package/package.json +37 -31
  608. package/dist/pi/packages/ta-cron/lib/composer.d.ts +0 -11
  609. package/dist/pi/packages/ta-cron/lib/composer.js +0 -58
  610. package/dist/pi/packages/ta-extensions/lib/composer.d.ts +0 -17
  611. package/dist/pi/packages/ta-extensions/lib/composer.js +0 -84
  612. package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +0 -9
  613. package/dist/pi/packages/ta-recall/lib/skill-card.js +0 -51
  614. package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +0 -19
  615. package/dist/pi/packages/ta-recall/lib/skill-util.js +0 -110
  616. package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +0 -1
  617. package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +0 -1
  618. package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +0 -1
  619. package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +0 -1
  620. package/dist/public/assets/module-CrD0OHQp.js +0 -1
  621. package/dist/public/assets/module-DEBMgdtf.js +0 -2273
  622. package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +0 -1
  623. package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +0 -1
  624. package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +0 -1
  625. package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +0 -1
  626. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +0 -8
  627. package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +0 -1
  628. package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +0 -1
  629. package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +0 -1
@@ -6,25 +6,26 @@ const brief_home_1 = require("./brief-home");
6
6
  const chat_icons_1 = require("./chat-icons");
7
7
  const composer_1 = require("./composer");
8
8
  const i18n_1 = require("./i18n");
9
+ const keep_card_1 = require("./keep-card");
9
10
  const react_1 = require("./react");
10
11
  const recall_protocol_1 = require("./recall-protocol");
11
12
  const search_source_1 = require("./search-source");
12
13
  const settings_1 = require("./settings");
13
- const skill_card_1 = require("./skill-card");
14
14
  const style_1 = require("./style");
15
15
  const tool_line_1 = require("./tool-line");
16
16
  /**
17
- * 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
17
+ * 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
18
18
  * open, the daily brief under the double and on the board, and its section of the settings (links to session files open
19
19
  * their conversations in Ta Web itself). The host reads the
20
- * conversations and writes skills and briefs (host.ts); the pi extension of each session searches (extension.ts).
20
+ * conversations and writes the extensions of steps and the briefs (host.ts); the pi extension of each session searches (extension.ts).
21
21
  */
22
22
  function activate(pi) {
23
23
  var _a, _b;
24
24
  (0, react_1.bind)(pi.React);
25
25
  const removeStyle = (0, style_1.injectStyle)();
26
26
  pi.registerSettings((0, settings_1.recallSettings)(pi));
27
- pi.registerMessageRenderer(recall_protocol_1.SKILL_TYPE, (0, skill_card_1.skillCard)(pi));
27
+ pi.registerMessageRenderer(recall_protocol_1.SKILL_TYPE, (0, keep_card_1.skillCard)(pi));
28
+ pi.registerMessageRenderer(recall_protocol_1.EXTENSION_TYPE, (0, keep_card_1.extensionCard)(pi));
28
29
  pi.registerComposerAddon((0, composer_1.composerAddon)(pi));
29
30
  pi.registerSearch((0, search_source_1.recallSearch)(pi));
30
31
  // An older app draws them with the letter of their directory.
@@ -0,0 +1,10 @@
1
+ import type { WebCustomMessage, WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
2
+ /** The card of an extension Ta offered (EXTENSION_TYPE). */
3
+ export declare function extensionCard(pi: WebExtensionAPI): React.ComponentType<{
4
+ message: WebCustomMessage;
5
+ }>;
6
+ /** A card of a skill Ta drafted before (SKILL_TYPE): the same card, its skill kept as steps. */
7
+ export declare function skillCard(pi: WebExtensionAPI): React.ComponentType<{
8
+ message: WebCustomMessage;
9
+ }>;
10
+ //# sourceMappingURL=keep-card.d.ts.map
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.extensionCard = extensionCard;
4
+ exports.skillCard = skillCard;
5
+ const extension_util_1 = require("./extension-util");
6
+ const i18n_1 = require("./i18n");
7
+ const react_1 = require("./react");
8
+ const recall_protocol_1 = require("./recall-protocol");
9
+ const stored_1 = require("./stored");
10
+ function decisions(value) {
11
+ return value && typeof value === 'object' ? value : {};
12
+ }
13
+ /** How a card asks, by what the user will get: remembered steps, or a card, page, command or tool Ta makes. */
14
+ const ASK = { steps: 'askSteps', board: 'askBoard', page: 'askPage', command: 'askCommand', panel: 'askPanel' };
15
+ const ICON = { steps: 'ListChecks', board: 'LayoutDashboard', page: 'FileText', command: 'SquareTerminal', panel: 'Puzzle' };
16
+ /**
17
+ * An extension Ta offers to keep, in its conversation, said as what the user gets: its title and what it does, the
18
+ * steps or the plan to look at, and Remember (steps, saved as they are) or Make it (asked of Ta), or No thanks. What
19
+ * the user decided is kept by the host, the same on every device.
20
+ */
21
+ function KeepCard({ pi, id, draft, session, ask }) {
22
+ var _a;
23
+ const words = i18n_1.RecallWords.of(pi.ui.language);
24
+ const [decided] = (0, stored_1.useStored)(pi, recall_protocol_1.Keys.DECIDED, decisions);
25
+ const [open, setOpen] = react_1.React.useState(false);
26
+ const [accepting, accept] = (0, react_1.useBusy)(pi.ui);
27
+ const [declining, decline] = (0, react_1.useBusy)(pi.ui);
28
+ const Icon = (_a = pi.ui.icons[ICON[draft.kind]]) !== null && _a !== void 0 ? _a : pi.ui.icons.Sparkles;
29
+ const Markdown = pi.ui.Markdown;
30
+ const run = (action) => action().catch(error => pi.ui.notify(i18n_1.RecallWords.format(words.failed, { message: (0, stored_1.message)(error) }), 'error'));
31
+ const steps = draft.kind === 'steps';
32
+ const onAccept = () => (steps ? pi.callHost('keep', id, draft) : pi.callHost('makeExtension', id, session, extension_util_1.ExtensionUtil.make(draft, pi.ui.language)));
33
+ const decision = decided[id];
34
+ const done = !decision
35
+ ? undefined
36
+ : 'saved' in decision
37
+ ? { text: i18n_1.RecallWords.format(words.keptSteps, { title: draft.title, name: decision.name }), good: true }
38
+ : 'made' in decision
39
+ ? { text: i18n_1.RecallWords.format(words.keptMade, { title: draft.title }), good: true }
40
+ : { text: words.keptDeclined, good: false };
41
+ const busy = accepting || declining;
42
+ return (react_1.React.createElement("div", { className: "tar-skill" },
43
+ react_1.React.createElement("div", { className: "tar-skill-head" },
44
+ Icon && react_1.React.createElement(Icon, { size: 14 }),
45
+ react_1.React.createElement("span", null, words[ASK[draft.kind]])),
46
+ react_1.React.createElement("div", { className: "tar-skill-title" },
47
+ react_1.React.createElement("span", { className: "tar-skill-label" }, draft.title)),
48
+ draft.summary && react_1.React.createElement("div", { className: "tar-skill-description" }, draft.summary),
49
+ react_1.React.createElement("button", { type: "button", className: "tar-skill-toggle", "aria-expanded": open, onClick: () => setOpen(!open) }, open ? (steps ? words.hideSteps : words.hidePlan) : steps ? words.showSteps : words.showPlan),
50
+ open && (react_1.React.createElement("div", { className: "tar-skill-body" },
51
+ react_1.React.createElement(Markdown, { text: draft.body }))),
52
+ done ? (react_1.React.createElement("div", { className: `tar-skill-done${done.good ? ' tar-saved' : ''}` }, done.text)) : (react_1.React.createElement("div", { className: "tar-skill-actions" },
53
+ react_1.React.createElement("button", { type: "button", className: `ta-button ta-primary${accepting ? ' ta-busy' : ''}`, disabled: busy || (!steps && !session), onClick: () => void accept(() => run(onAccept)) },
54
+ accepting && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark ta-on-brand" }),
55
+ react_1.React.createElement("span", null, steps ? words.keepSteps : words.keepMake)),
56
+ react_1.React.createElement("button", { type: "button", className: `ta-button${declining ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void decline(() => run(() => pi.callHost('decline', id, ask))) },
57
+ declining && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
58
+ react_1.React.createElement("span", null, words.keepNo))))));
59
+ }
60
+ /** The card of an extension Ta offered (EXTENSION_TYPE). */
61
+ function extensionCard(pi) {
62
+ return function ExtensionCardView({ message: custom }) {
63
+ var _a;
64
+ const card = custom.details;
65
+ if (!((_a = card === null || card === void 0 ? void 0 : card.draft) === null || _a === void 0 ? void 0 : _a.body)) {
66
+ return null;
67
+ }
68
+ return react_1.React.createElement(KeepCard, { pi: pi, id: card.key, draft: extension_util_1.ExtensionUtil.check(card.draft), session: card.session, ask: card.ask });
69
+ };
70
+ }
71
+ /** A card of a skill Ta drafted before (SKILL_TYPE): the same card, its skill kept as steps. */
72
+ function skillCard(pi) {
73
+ return function SkillCardView({ message: custom }) {
74
+ var _a;
75
+ const card = custom.details;
76
+ if (!((_a = card === null || card === void 0 ? void 0 : card.draft) === null || _a === void 0 ? void 0 : _a.body)) {
77
+ return null;
78
+ }
79
+ const { name, description, body } = card.draft;
80
+ return react_1.React.createElement(KeepCard, { pi: pi, id: card.key, draft: extension_util_1.ExtensionUtil.check({ name, title: name, kind: 'steps', summary: description, body }), ask: card.ask });
81
+ };
82
+ }
83
+ //# sourceMappingURL=keep-card.js.map
@@ -0,0 +1,15 @@
1
+ import { type SimilarAsk } from './recall-protocol';
2
+ /**
3
+ * Keeping how work got done, so that it need not be told again: an extension of Ta of the kind that fits (steps Ta
4
+ * follows, a card of the board, a page, a command, a tool of the workbench), or a scheduled task (another package's,
5
+ * when it is on). Keep of the + asks it; a request asked again in another conversation has Ta offer it.
6
+ */
7
+ export declare namespace KeepUtil {
8
+ /** How to offer it, for the model; the scheduled task as the section of ta-cron says, when it is there. */
9
+ function forms(): string;
10
+ /** 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
+ /** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
13
+ function hint(asks: readonly SimilarAsk[]): string;
14
+ }
15
+ //# sourceMappingURL=keep-util.d.ts.map
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.KeepUtil = void 0;
4
+ const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
5
+ const extension_util_1 = require("./extension-util");
6
+ const recall_protocol_1 = require("./recall-protocol");
7
+ /** The skill a model has when it can make extensions (of @celljs/ta-extensions). */
8
+ const PACKAGE_SKILL = 'ta-package';
9
+ /** The section of the system prompt by which @celljs/ta-cron offers a scheduled task (ChatTask.section). */
10
+ const TASK_SECTION = 'ta-cron-keep';
11
+ /**
12
+ * Keeping how work got done, so that it need not be told again: an extension of Ta of the kind that fits (steps Ta
13
+ * follows, a card of the board, a page, a command, a tool of the workbench), or a scheduled task (another package's,
14
+ * when it is on). Keep of the + asks it; a request asked again in another conversation has Ta offer it.
15
+ */
16
+ var KeepUtil;
17
+ (function (KeepUtil) {
18
+ /** How to offer it, for the model; the scheduled task as the section of ta-cron says, when it is there. */
19
+ function forms() {
20
+ const kinds = recall_protocol_1.EXTENSION_KINDS.map(kind => ` - ${kind}: ${extension_util_1.ExtensionUtil.KIND_HELP[kind]}${kind === 'steps' ? '' : `; only when the ${PACKAGE_SKILL} skill is among your skills`}`);
21
+ return [
22
+ `- As an extension of Ta, with ${recall_protocol_1.EXTENSION_TOOL}, of the kind that fits:`,
23
+ ...kinds,
24
+ ` Ta shows it as a card: steps are saved with a tap; any other kind you make only once the user taps Make it, so do not make it now, nor write files yourself. Prefer steps when Ta should think as it goes; another kind when the user would rather see or tap it than ask. Without that tool, end your answer with it in a fenced block of the language ${recall_protocol_1.EXTENSION_BLOCK}:`,
25
+ extension_util_1.ExtensionUtil.blockHelp(),
26
+ `- As a scheduled task, only when your instructions have a <${TASK_SECTION}> section, and it should be done again on a schedule with nobody asking: as that section says.`,
27
+ ].join('\n');
28
+ }
29
+ KeepUtil.forms = forms;
30
+ /** What Keep of the + of the message box sends: a line the user sees, after what the model reads. */
31
+ function ask(language) {
32
+ const context = [
33
+ ta_extension_host_1.TA_KEEP_MARK,
34
+ 'The user wants how this conversation got its work done kept, so that it need not be told again, written so that one who never saw this conversation does it the same way. Pick the one form that fits best, say in a line which and why, in plain words (what the user will see or do, not the kind), and offer it:',
35
+ forms(),
36
+ '- 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
+ '- When the conversation holds nothing worth keeping, say so and offer nothing.',
38
+ ].join('\n');
39
+ return `<context>\n${context}\n</context>\n${/^zh/i.test(language) ? '把这个对话里的做法存下来' : 'Keep how this was done'}`;
40
+ }
41
+ KeepUtil.ask = ask;
42
+ /** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
43
+ function hint(asks) {
44
+ const lines = asks.map(ask => `- "${ask.title}" (${new Date(ask.at).toISOString().slice(0, 10)}): ${JSON.stringify(ask.text.replace(/\s+/g, ' ').slice(0, 200))}`);
45
+ return [
46
+ 'The user asked for much the same in other conversations before:',
47
+ ...lines,
48
+ 'Do what is asked first. Then, if it is worth keeping so that it need not be told again (not a one-off answer), offer to keep it in one short sentence, in plain words, in the form that fits best:',
49
+ forms(),
50
+ 'Offer nothing when it is not worth keeping.',
51
+ ].join('\n');
52
+ }
53
+ KeepUtil.hint = hint;
54
+ })(KeepUtil || (exports.KeepUtil = KeepUtil = {}));
55
+ //# sourceMappingURL=keep-util.js.map
@@ -2,12 +2,24 @@
2
2
  export declare const NAME = "@celljs/ta-recall";
3
3
  /** Ta's tool to search the conversations of before (tool.ts); the page draws its calls (tool-line.ts). */
4
4
  export declare const TOOL_NAME = "search_conversations";
5
- /** Ta's tool to offer a skill: its draft becomes a card the user saves (extension.ts). */
6
- export declare const PROPOSE_TOOL = "propose_skill";
7
- /** The card of a draft skill, in its conversation: shown, never read by the model. */
5
+ /** The card of a skill Ta drafted before Keep offered extensions only: still shown in the conversations that have one. */
8
6
  export declare const SKILL_TYPE = "ta-recall-skill";
9
- /** The language of the fenced block in which Ta writes a draft skill; the pi extension finds it there. */
10
- export declare const SKILL_BLOCK = "ta-skill";
7
+ /**
8
+ * Ta's tool to offer to keep how something is done, as an extension of Ta: its draft becomes a card, which saves
9
+ * the steps at once or asks Ta to make the rest (extension.ts).
10
+ */
11
+ export declare const EXTENSION_TOOL = "propose_extension";
12
+ /** The card of an extension Ta offers, in its conversation: shown, never read by the model. */
13
+ export declare const EXTENSION_TYPE = "ta-recall-extension";
14
+ /** The language of the fenced block in which Ta offers an extension without the tool. */
15
+ export declare const EXTENSION_BLOCK = "ta-extension";
16
+ /**
17
+ * What the extension is, as the user meets it: `steps` Ta follows when the user asks again (a skill of the package,
18
+ * saved from the card as it is); a card of the `board`, a `page`, a `/command`, or a tool of the workbench
19
+ * (`panel`), which Ta makes with the ta-package skill once the user wants it.
20
+ */
21
+ export type ExtensionKind = 'steps' | 'board' | 'page' | 'command' | 'panel';
22
+ export declare const EXTENSION_KINDS: readonly ExtensionKind[];
11
23
  /** One thing said in a conversation: by the user (without the context of its message) or by Ta (its text). */
12
24
  export interface Said {
13
25
  role: 'user' | 'assistant';
@@ -57,6 +69,30 @@ export interface SearchHit {
57
69
  text: string;
58
70
  }[];
59
71
  }
72
+ /** What `requests` reads: the conversations updated since a time. */
73
+ export interface RequestsQuery {
74
+ /** `Date.now()` time. */
75
+ since: number;
76
+ until?: number;
77
+ /** Left out: these session files (the conversation that asks). */
78
+ exclude?: string[];
79
+ /** At most so many conversations, the latest first; default Limits.REQUEST_CONVERSATIONS. */
80
+ limit?: number;
81
+ }
82
+ /** What the user asked in a conversation in a time: the requests they typed, not those a button or a package sent. */
83
+ export interface AskedConversation {
84
+ file: string;
85
+ cwd: string;
86
+ title: string;
87
+ updatedAt: number;
88
+ /** The package that opened it for a role of its own (an agent of a channel). */
89
+ group?: string;
90
+ /** Oldest first, each cut to Limits.REQUEST_CHARS. */
91
+ asks: {
92
+ at: number;
93
+ text: string;
94
+ }[];
95
+ }
60
96
  /** A request of the user in another conversation much like the one of now. */
61
97
  export interface SimilarAsk {
62
98
  file: string;
@@ -64,24 +100,45 @@ export interface SimilarAsk {
64
100
  text: string;
65
101
  at: number;
66
102
  }
67
- /** A skill as Ta drafted it: the name of its directory, the line that says when to use it, and its body. */
103
+ /** A skill as Ta drafted it before Keep offered extensions only, in an old card. */
68
104
  export interface SkillDraft {
69
105
  name: string;
70
106
  description: string;
71
107
  body: string;
72
108
  }
73
- /** The card of a draft, in `details` of its SKILL_TYPE message. */
109
+ /** An old card of a skill, in `details` of its SKILL_TYPE message. */
74
110
  export interface SkillCard {
75
- /** Unique: what the user decided about it is kept by it (Keys.DECIDED). */
76
111
  key: string;
77
112
  draft: SkillDraft;
78
- /** The request that made Ta draft it, kept when the user says no, so that one like it is not asked again. */
79
113
  ask?: string;
80
114
  }
81
- /** What the user decided about a card: saved (and where) or not wanted. */
82
- export type SkillDecision = {
115
+ /**
116
+ * An extension Ta offers: the name of its directory, its title in the lists, what it is (ExtensionKind), one line of
117
+ * what it does and where it shows, and its body: the steps of a `steps` one, else the plan Ta makes it by.
118
+ */
119
+ export interface ExtensionDraft {
120
+ name: string;
121
+ title: string;
122
+ kind: ExtensionKind;
123
+ summary: string;
124
+ body: string;
125
+ }
126
+ /** The card of an offered extension, in `details` of its EXTENSION_TYPE message. */
127
+ export interface ExtensionCard {
128
+ /** Unique: what the user decided about it is kept by it (Keys.DECIDED). */
129
+ key: string;
130
+ draft: ExtensionDraft;
131
+ /** The pi session of the conversation, which makes it when the user wants it. */
132
+ session: string;
133
+ /** The request that made Ta offer it, kept when the user says no. */
134
+ ask?: string;
135
+ }
136
+ /** What the user decided about a card: saved (the directory of its package or skill, its name), made (asked of Ta), or not wanted. */
137
+ export type KeepDecision = {
83
138
  saved: string;
84
139
  name: string;
140
+ } | {
141
+ made: true;
85
142
  } | {
86
143
  declined: true;
87
144
  };
@@ -117,7 +174,7 @@ export interface BriefSettings {
117
174
  time: string;
118
175
  }
119
176
  export declare namespace Keys {
120
- /** boolean: Ta offers to keep a request asked again as a skill; default true. */
177
+ /** boolean: Ta offers to keep a request asked again, as a skill or an extension; default true. */
121
178
  const SUGGEST = "suggest";
122
179
  /** BriefSettings. */
123
180
  const BRIEF = "brief";
@@ -135,9 +192,9 @@ export declare namespace Keys {
135
192
  const BRIEF_PINNED = "briefPinned";
136
193
  /** BriefHandled: of the last brief only. */
137
194
  const BRIEF_HANDLED = "briefHandled";
138
- /** Record<card key, SkillDecision>. */
195
+ /** Record<card key, KeepDecision>. */
139
196
  const DECIDED = "decided";
140
- /** Requests the user did not want kept as a skill, newest last. */
197
+ /** Requests the user did not want kept, as a skill or an extension, newest last. */
141
198
  const DECLINED = "declined";
142
199
  }
143
200
  export declare namespace Limits {
@@ -159,6 +216,10 @@ export declare namespace Limits {
159
216
  const BRIEF_ITEMS = 5;
160
217
  /** A conversation that asked Ta from Quick open is archived once not updated for so many days (WebChatIcon.archiveDays). */
161
218
  const ASKED_ARCHIVE_DAYS = 7;
219
+ /** The conversations `requests` answers at most, the requests of each and their characters. */
220
+ const REQUEST_CONVERSATIONS = 80;
221
+ const REQUEST_ASKS = 12;
222
+ const REQUEST_CHARS = 300;
162
223
  }
163
224
  /**
164
225
  * The host of the package in the Ta service (`pi.host`): it reads the conversations of every session file, writes
@@ -172,10 +233,23 @@ export interface RecallService {
172
233
  * suggestions off, for a session of a package, or when it is like one the user did not want kept.
173
234
  */
174
235
  similar(text: string, piSessionId?: string): Promise<SimilarAsk[]>;
175
- /** Writes the skill of a card into the skills of the user; resolves with the path of its SKILL.md. */
176
- saveSkill(key: string, draft: SkillDraft): Promise<string>;
177
- /** The user did not want the draft of a card. */
178
- declineSkill(key: string, ask?: string): Promise<void>;
236
+ /**
237
+ * What the user asked in the conversations updated in a time, but those of the runs of scheduled tasks and the
238
+ * briefs: what `@celljs/ta-initiative` reads to find the work asked again and again.
239
+ */
240
+ requests(query: RequestsQuery): Promise<AskedConversation[]>;
241
+ /**
242
+ * Writes the extension of a card of `steps` into `extensions/` of the user, a package holding them as its skill,
243
+ * which new conversations load; resolves with the directory of the package.
244
+ */
245
+ keep(key: string, draft: ExtensionDraft): Promise<string>;
246
+ /**
247
+ * Asks Ta, in the conversation of the pi session `session` (open), to make the extension of a card, with `message`
248
+ * (what the page wrote, in the user's language), and keeps that the user wanted it.
249
+ */
250
+ makeExtension(key: string, session: string, message: string): Promise<void>;
251
+ /** The user did not want the draft of a card; the request `ask` and the like are not offered again. */
252
+ decline(key: string, ask?: string): Promise<void>;
179
253
  /** Keeps the session file of a conversation that asks Ta about earlier work: it has the icon of the questions. */
180
254
  keepAsked(file: string): Promise<void>;
181
255
  /** The answer of a brief turn, in the conversation of the briefs: kept as its BriefSummary. */
@@ -1,19 +1,25 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Limits = exports.Keys = exports.SKILL_BLOCK = exports.SKILL_TYPE = exports.PROPOSE_TOOL = exports.TOOL_NAME = exports.NAME = void 0;
3
+ exports.Limits = exports.Keys = exports.EXTENSION_KINDS = exports.EXTENSION_BLOCK = exports.EXTENSION_TYPE = exports.EXTENSION_TOOL = exports.SKILL_TYPE = exports.TOOL_NAME = exports.NAME = void 0;
4
4
  /** The name of the package: of its data and its host. */
5
5
  exports.NAME = '@celljs/ta-recall';
6
6
  /** Ta's tool to search the conversations of before (tool.ts); the page draws its calls (tool-line.ts). */
7
7
  exports.TOOL_NAME = 'search_conversations';
8
- /** Ta's tool to offer a skill: its draft becomes a card the user saves (extension.ts). */
9
- exports.PROPOSE_TOOL = 'propose_skill';
10
- /** The card of a draft skill, in its conversation: shown, never read by the model. */
8
+ /** The card of a skill Ta drafted before Keep offered extensions only: still shown in the conversations that have one. */
11
9
  exports.SKILL_TYPE = 'ta-recall-skill';
12
- /** The language of the fenced block in which Ta writes a draft skill; the pi extension finds it there. */
13
- exports.SKILL_BLOCK = 'ta-skill';
10
+ /**
11
+ * Ta's tool to offer to keep how something is done, as an extension of Ta: its draft becomes a card, which saves
12
+ * the steps at once or asks Ta to make the rest (extension.ts).
13
+ */
14
+ exports.EXTENSION_TOOL = 'propose_extension';
15
+ /** The card of an extension Ta offers, in its conversation: shown, never read by the model. */
16
+ exports.EXTENSION_TYPE = 'ta-recall-extension';
17
+ /** The language of the fenced block in which Ta offers an extension without the tool. */
18
+ exports.EXTENSION_BLOCK = 'ta-extension';
19
+ exports.EXTENSION_KINDS = ['steps', 'board', 'page', 'command', 'panel'];
14
20
  var Keys;
15
21
  (function (Keys) {
16
- /** boolean: Ta offers to keep a request asked again as a skill; default true. */
22
+ /** boolean: Ta offers to keep a request asked again, as a skill or an extension; default true. */
17
23
  Keys.SUGGEST = 'suggest';
18
24
  /** BriefSettings. */
19
25
  Keys.BRIEF = 'brief';
@@ -31,9 +37,9 @@ var Keys;
31
37
  Keys.BRIEF_PINNED = 'briefPinned';
32
38
  /** BriefHandled: of the last brief only. */
33
39
  Keys.BRIEF_HANDLED = 'briefHandled';
34
- /** Record<card key, SkillDecision>. */
40
+ /** Record<card key, KeepDecision>. */
35
41
  Keys.DECIDED = 'decided';
36
- /** Requests the user did not want kept as a skill, newest last. */
42
+ /** Requests the user did not want kept, as a skill or an extension, newest last. */
37
43
  Keys.DECLINED = 'declined';
38
44
  })(Keys || (exports.Keys = Keys = {}));
39
45
  var Limits;
@@ -56,5 +62,9 @@ var Limits;
56
62
  Limits.BRIEF_ITEMS = 5;
57
63
  /** A conversation that asked Ta from Quick open is archived once not updated for so many days (WebChatIcon.archiveDays). */
58
64
  Limits.ASKED_ARCHIVE_DAYS = 7;
65
+ /** The conversations `requests` answers at most, the requests of each and their characters. */
66
+ Limits.REQUEST_CONVERSATIONS = 80;
67
+ Limits.REQUEST_ASKS = 12;
68
+ Limits.REQUEST_CHARS = 300;
59
69
  })(Limits || (exports.Limits = Limits = {}));
60
70
  //# sourceMappingURL=recall-protocol.js.map
@@ -1,10 +1,10 @@
1
1
  import type { TaExtensionHost, TaPackageService, TaSessionInfo } from '@celljs/ta-protocol';
2
- import { type BriefNotice, type BriefRun } from './brief-util';
2
+ import { type BriefNotice, type BriefRun, type BriefSource, type BriefSuggestion } from './brief-util';
3
3
  import { ConversationIndex } from './conversation-index';
4
- import { type BriefSummary, type RecallService, type SearchHit, type SearchQuery, type SimilarAsk, type SkillDecision, type SkillDraft } from './recall-protocol';
4
+ import { type AskedConversation, type BriefSummary, type ExtensionDraft, type KeepDecision, type RecallService, type RequestsQuery, type SearchHit, type SearchQuery, type SimilarAsk } from './recall-protocol';
5
5
  /**
6
6
  * The host of the package in the Ta service: one index of the conversations for the search, the requests asked
7
- * again and the brief; the only writer of the skills the user keeps and of the data of the package.
7
+ * again and the brief; the only writer of the extensions of steps the user keeps and of the data of the package.
8
8
  */
9
9
  export declare class RecallHost implements RecallService, TaPackageService {
10
10
  protected readonly host: TaExtensionHost;
@@ -13,14 +13,18 @@ export declare class RecallHost implements RecallService, TaPackageService {
13
13
  protected queue: Promise<unknown>;
14
14
  protected timers: ReturnType<typeof setTimeout>[];
15
15
  protected briefing: Promise<string | undefined> | undefined;
16
+ /** KEEP_KIND was defined in ta-initiative. */
17
+ protected defined: boolean;
16
18
  constructor(host: TaExtensionHost, now?: () => number);
17
19
  /** Reads the conversations once, so that the first search is quick, and checks the time of the brief from now on. */
18
20
  start(): void;
19
21
  dispose(): void;
20
22
  search(query: SearchQuery): Promise<SearchHit[]>;
21
23
  similar(text: string, piSessionId?: string): Promise<SimilarAsk[]>;
22
- saveSkill(key: string, draft: SkillDraft): Promise<string>;
23
- declineSkill(key: string, ask?: string): Promise<void>;
24
+ requests(query: RequestsQuery): Promise<AskedConversation[]>;
25
+ keep(key: string, draft: ExtensionDraft): Promise<string>;
26
+ makeExtension(key: string, session: string, message: string): Promise<void>;
27
+ decline(key: string, ask?: string): Promise<void>;
24
28
  keepAsked(file: string): Promise<void>;
25
29
  keepBrief(file: string, text: string): Promise<BriefSummary | undefined>;
26
30
  briefNow(): Promise<string | undefined>;
@@ -31,11 +35,17 @@ export declare class RecallHost implements RecallService, TaPackageService {
31
35
  protected writeBrief(force: boolean): Promise<string | undefined>;
32
36
  /** The conversation of the briefs: open, opened again from its file, or a new one named for it. */
33
37
  protected briefSession(sessions: TaSessionInfo[], file: string | undefined): Promise<TaSessionInfo>;
38
+ /** What the packages that are on have for the brief (TA_BRIEF_SOURCE). */
39
+ protected sources(): Promise<BriefSource[]>;
34
40
  /** The notices of ta-notify, when it is there. */
35
41
  protected notices(): Promise<BriefNotice[]>;
36
42
  /** The tasks of ta-cron that ran since, with the summary of their last run, when it is there. */
37
43
  protected runs(since: number): Promise<BriefRun[]>;
38
- protected decide(key: string, decision: SkillDecision): Promise<void>;
44
+ /** The proposals of ta-initiative, when it is there. */
45
+ protected suggestions(): Promise<BriefSuggestion[]>;
46
+ /** A call of the host of ta-initiative, which defines KEEP_KIND first; undefined when it is not there (turned off). */
47
+ protected initiative(method: string, ...params: unknown[]): Promise<unknown>;
48
+ protected decide(key: string, decision: KeepDecision): Promise<void>;
39
49
  protected read(key: string): Promise<unknown>;
40
50
  protected serial<T>(work: () => Promise<T>): Promise<T>;
41
51
  }