@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
@@ -4,6 +4,7 @@ A pi package that comes with Ta (on by default; turn it off in Settings → Exte
4
4
 
5
5
  - **A turn ends**: the first two lines of its last answer (the error when it failed). A turn you stopped says nothing.
6
6
  - **It waits for you**: a dialog of an extension waits for your answer (pi's `ui_prompt_start`), told by its title.
7
+ - **A turn ends asking**: a turn another package marked as waiting for you to decide (`TA_ASK_ENTRY`, as a card of choices of Glance) is told as asking, by its question. What `notify_user` asks is marked so too, and the list of chats keeps showing it until you answer.
7
8
  - **Ta asks you**: Ta has a tool `notify_user({ message, options?, kind? })`, for a decision only you can make, something that blocks it, or a long job you asked to hear about; `options` are up to 4 short answers, buttons on the notice, one tapped sent to that conversation as your message (once, even when a computer and a phone tap at the same time). A turn that used it says nothing more when it ends. The question and its answers also stay in the conversation as a card (the model does not read it), to tap on any device.
8
9
 
9
10
  The page decides how to tell you: nothing of the conversation you look at; a task the double follows is told by the double (unless it asks). On a phone or a tablet nothing pops up, as in WeChat in front: an amber dot on the row of the list and on the Chats tab, a decision tapped on the card in its conversation. On a computer with the page in front, a banner at the bottom right with the face and name of the conversation, a tap opening it. With the page not in front, a notice of the system (silent for an answer); on a computer without one, a question or a failure leaves a banner that waits for your return.
@@ -11,7 +12,7 @@ The page decides how to tell you: nothing of the conversation you look at; a tas
11
12
  Settings → Notifications:
12
13
 
13
14
  - **Tell me**: every answer (default), when it needs me (questions and failures only), or off.
14
- - **Notices of the system**: Allow turns on the notices of the browser or of Ta Desktop. Pushes to the phone app while it is closed or the phone locked are not set up yet (they need APNs); meanwhile the dots of the list tell once the app is open.
15
+ - **Notices of the system**: Allow turns on those of the browser. Ta Desktop needs no Allow: the app shows them itself, also while its window is closed, minimized or behind another (as long as it runs in the Dock or the tray). Pushes to the phone app while it is closed or the phone locked are not set up yet (they need APNs); meanwhile the dots of the list tell once the app is open.
15
16
  - **Muted conversations**: Mute on a banner of an answer or a failure adds one; they tell you only when they need you. Unmute them here.
16
17
 
17
18
  Sessions another package opened for a role of its own (an agent of a channel, a run of a schedule) say nothing when a turn ends, their package telling you in its own way; they still tell you when they ask or a dialog waits.
@@ -23,6 +24,7 @@ The data of the package (`@celljs/ta-notify`): `notices` (the latest 30, the new
23
24
  What its host (`pi.host`) answers, for web extensions through `callPackageHost('@celljs/ta-notify', …)`:
24
25
 
25
26
  - `mute(target, muted, title?)`: mutes a conversation or not; the list after.
27
+ - `notify({ from, id, level, title, text, view? })`: another package tells the user of what is no conversation's (a double in a room asks for a permission), as the setting Tell me allows; a notice of the system while the page is not in front, a tap opening `view`.
26
28
 
27
29
  Another extension that tells the user news of its own uses the page's `ui.notifySession` (see @celljs/ta-web), not the data of this package.
28
30
 
@@ -4,6 +4,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
4
4
 
5
5
  - **一轮结束**:最后的回答取前两行做成提醒(失败时是错误信息)。你停下的一轮不提醒。
6
6
  - **在等你**:扩展的对话框在等回答时(pi 的 `ui_prompt_start`),用它的标题提醒你。
7
+ - **一轮以提问结束**:别的包把这一轮记成在等你决定(`TA_ASK_ENTRY`,如速览的选项卡片)时,按“需要你”提醒,内容是那个问题。`notify_user` 的提问也这样记下,对话列表就一直标着它,直到你回答。
7
8
  - **Ta 主动问你**:Ta 有一个工具 `notify_user({ message, options?, kind? })`。只有你能做的决定、卡住它的事、你说过要听结果的长任务才用;`options` 是最多 4 个短回答,在提醒上是按钮,点一个就以你的身份发进那个对话(电脑和手机同时点也只发一次)。用过它的一轮,结束时不再另外提醒。问题和回答按钮也作为一张卡片留在对话里(模型读不到),任何设备打开对话都能点。
8
9
 
9
10
  页面决定怎么告诉你:你正在看的对话不提醒;分身跟进的任务由分身告诉你(除非它在问你)。手机和平板上像微信在前台时一样不弹窗:对话列表行上和底部"对话"标签上有黄点,要你拍板的事在对话的卡片上点选。电脑上页面在前台时是右下角一条带对话头像和名字的横幅,点一下打开对话。页面不在前台时是系统通知(回复是静音的);电脑上没有系统通知时,提问和失败留一条横幅等你回来。
@@ -11,7 +12,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
11
12
  设置 → 提醒:
12
13
 
13
14
  - **提醒我**:每次回复(默认)、需要我时(只有提问和失败)、关闭。
14
- - **系统通知**:点"允许"开启浏览器或 Ta 桌面版的系统通知。手机 App 被关掉或锁屏后的推送还没有接入(需要 APNs),这时只在 App 打开后从列表的黄点看到。
15
+ - **系统通知**:浏览器里点"允许"开启。Ta 桌面版不用点:由应用自己发,窗口关掉、最小化或在后面时也会提醒(应用在程序坞或托盘里运行着就行)。手机 App 被关掉或锁屏后的推送还没有接入(需要 APNs),这时只在 App 打开后从列表的黄点看到。
15
16
  - **免打扰的对话**:在回复或失败的横幅上点"免打扰"加入;这些对话只在需要你时提醒。这里可以取消。
16
17
 
17
18
  由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)一轮结束时不提醒,由那个包自己告诉你;它们问你或有对话框在等时照样提醒。
@@ -23,6 +24,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
23
24
  包宿主(`pi.host`)的方法,Web 扩展经 `callPackageHost('@celljs/ta-notify', …)` 调用:
24
25
 
25
26
  - `mute(target, muted, title?)`:设成或取消免打扰,返回新的列表。
27
+ - `notify({ from, id, level, title, text, view? })`:别的包告诉用户不属于某个对话的事(如房间里分身请你授权),按"提醒我"的设置过滤;页面不在前台时发系统通知,点开打开 `view`。
26
28
 
27
29
  别的扩展要告诉用户自己的消息,用页面的 `ui.notifySession`(见 @celljs/ta-web),不要写这个包的数据。
28
30
 
@@ -5,19 +5,91 @@ var TaHostUtil;
5
5
  TaHostUtil2.WAIT_MS = 1000;
6
6
  function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
7
7
  return new Promise((resolve) => {
8
+ let heard = false;
9
+ let answered = false;
8
10
  const timer = setTimeout(() => resolve(undefined), waitMs);
9
11
  const request = {
10
12
  name,
13
+ heard: () => {
14
+ heard = true;
15
+ },
11
16
  resolve: (answer) => {
17
+ answered = true;
12
18
  clearTimeout(timer);
13
19
  resolve(answer);
14
20
  }
15
21
  };
16
22
  events.emit(TA_HOST_EVENT, request);
23
+ if (!heard && !answered) {
24
+ clearTimeout(timer);
25
+ resolve(undefined);
26
+ }
17
27
  });
18
28
  }
19
29
  TaHostUtil2.reach = reach;
30
+ function marked(systemPrompt, mark) {
31
+ return role(systemPrompt).includes(mark);
32
+ }
33
+ TaHostUtil2.marked = marked;
34
+ function role(systemPrompt) {
35
+ if (!systemPrompt) {
36
+ return "";
37
+ }
38
+ const open = `<addendum>
39
+ `;
40
+ const start = systemPrompt.indexOf(open);
41
+ const context = systemPrompt.indexOf(`<project_context>
42
+ `);
43
+ if (start < 0 || context >= 0 && context < start) {
44
+ return "";
45
+ }
46
+ const end = systemPrompt.indexOf(`
47
+ </addendum>`, start);
48
+ return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
49
+ }
50
+ TaHostUtil2.role = role;
20
51
  })(TaHostUtil || (TaHostUtil = {}));
52
+ var TA_ASK_ENTRY = "ta-ask";
53
+ var TaAskUtil;
54
+ (function(TaAskUtil2) {
55
+ const LENGTH = 120;
56
+ function entry(question) {
57
+ const line = question.replace(/\s+/g, " ").trim();
58
+ return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
59
+ }
60
+ TaAskUtil2.entry = entry;
61
+ function asking(entries) {
62
+ var _a;
63
+ for (let i = entries.length - 1;i >= 0; i--) {
64
+ const entry2 = entries[i];
65
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
66
+ return;
67
+ }
68
+ if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
69
+ return read(entry2);
70
+ }
71
+ }
72
+ return;
73
+ }
74
+ TaAskUtil2.asking = asking;
75
+ function next(asked, entry2) {
76
+ var _a;
77
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
78
+ return;
79
+ }
80
+ return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
81
+ }
82
+ TaAskUtil2.next = next;
83
+ function read(found) {
84
+ var _a;
85
+ const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
86
+ if (typeof question !== "string" || !question.trim()) {
87
+ return;
88
+ }
89
+ const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
90
+ return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
91
+ }
92
+ })(TaAskUtil || (TaAskUtil = {}));
21
93
 
22
94
  // web-src/notify-protocol.ts
23
95
  var NAME = "@celljs/ta-notify";
@@ -189,6 +261,8 @@ function activate(pi) {
189
261
  let told = false;
190
262
  let asked;
191
263
  let last;
264
+ let startedAt = 0;
265
+ let marked = false;
192
266
  pi.on("session_start", () => {
193
267
  reach();
194
268
  });
@@ -196,6 +270,8 @@ function activate(pi) {
196
270
  told = false;
197
271
  asked = undefined;
198
272
  last = undefined;
273
+ startedAt = Date.now();
274
+ marked = false;
199
275
  });
200
276
  pi.on("context", (event) => {
201
277
  const messages = event.messages.filter((message) => !(message.role === "custom" && message.customType === ASK_TYPE));
@@ -203,6 +279,10 @@ function activate(pi) {
203
279
  });
204
280
  pi.on("agent_end", (event) => {
205
281
  last = NotifyUtil.lastAnswer(event.messages ?? []) ?? last;
282
+ if (asked && !marked) {
283
+ marked = true;
284
+ pi.appendEntry(TA_ASK_ENTRY, TaAskUtil.entry(asked.text));
285
+ }
206
286
  });
207
287
  pi.on("agent_settled", (event, ctx) => {
208
288
  const answer = last;
@@ -215,6 +295,11 @@ function activate(pi) {
215
295
  if (event.aborted || told || !answer || answer.aborted) {
216
296
  return;
217
297
  }
298
+ const asking = answer.failed ? undefined : TaAskUtil.asking(ctx.sessionManager.getBranch?.() ?? []);
299
+ if (asking && asking.at >= startedAt) {
300
+ post({ piSessionId: ctx.sessionManager.getSessionId(), id: String(answer.at), level: "ask", source: "turn", text: asking.question });
301
+ return;
302
+ }
218
303
  const text = NotifyUtil.text(answer.text) || (answer.failed ? NotifyServerTexts.failed() : "");
219
304
  if (!text) {
220
305
  return;
@@ -103,7 +103,7 @@ class NotifyHost {
103
103
  post(input) {
104
104
  return this.serial(async () => {
105
105
  const info = (await this.host.listSessions()).find((session) => session.piSessionId === input.piSessionId);
106
- if (input.source === "turn" && info?.group) {
106
+ if (input.source === "turn" && input.level !== "ask" && info?.group) {
107
107
  return;
108
108
  }
109
109
  const target = info?.sessionFile ?? info?.sessionId;
@@ -131,6 +131,29 @@ class NotifyHost {
131
131
  return notice;
132
132
  });
133
133
  }
134
+ notify(input) {
135
+ return this.serial(async () => {
136
+ const text = NotifyUtil.text(String(input?.text ?? ""));
137
+ const level = input?.level;
138
+ if (!text || typeof input?.from !== "string" || typeof input.id !== "string" || !(level === "ask" || level === "failed" || level === "done")) {
139
+ return;
140
+ }
141
+ if (!NotifyUtil.allows(level, NotifyUtil.level(await this.read(Keys.LEVEL)), false)) {
142
+ return;
143
+ }
144
+ const notice = {
145
+ key: NotifyUtil.key(input.from, "package", input.id),
146
+ at: Date.now(),
147
+ level,
148
+ source: "package",
149
+ text,
150
+ title: String(input.title ?? "").slice(0, 80),
151
+ ...typeof input.view === "string" && input.view ? { view: input.view } : {}
152
+ };
153
+ await this.host.setExtensionData(NAME, Keys.NOTICES, NotifyUtil.keep(NotifyUtil.notices(await this.read(Keys.NOTICES)), notice));
154
+ return notice;
155
+ });
156
+ }
134
157
  mute(target, muted, title) {
135
158
  return this.serial(async () => {
136
159
  const list = NotifyUtil.muted(await this.read(Keys.MUTED)).filter((item) => item.target !== target);
@@ -13,11 +13,14 @@ interface Pi {
13
13
  }, options?: {
14
14
  triggerTurn?: boolean;
15
15
  }): void;
16
+ appendEntry(customType: string, data?: unknown): void;
16
17
  }
17
18
  /**
18
19
  * The pi extension, in every session: tells the host of the package (host.ts) when a turn ends or fails, when a
19
20
  * dialog of an extension waits for the user (pi's `ui_prompt_start`), and gives Ta the tool `notify_user`, to ask
20
- * the user to decide with answers to pick. The host keeps what the settings allow; the pages tell of it.
21
+ * the user to decide with answers to pick. The host keeps what the settings allow; the pages tell of it. What Ta
22
+ * asked marks the turn (TA_ASK_ENTRY), so that the lists show the conversation waits for the user until they answer;
23
+ * a turn another package marked so (a card with choices of ta-glance) is told of as `ask` too, by its question.
21
24
  */
22
25
  export default function activate(pi: Pi): void;
23
26
  export {};
@@ -11,7 +11,9 @@ exports.NO_SERVER = 'Notifications need the Ta service, which tells the pages: s
11
11
  /**
12
12
  * The pi extension, in every session: tells the host of the package (host.ts) when a turn ends or fails, when a
13
13
  * dialog of an extension waits for the user (pi's `ui_prompt_start`), and gives Ta the tool `notify_user`, to ask
14
- * the user to decide with answers to pick. The host keeps what the settings allow; the pages tell of it.
14
+ * the user to decide with answers to pick. The host keeps what the settings allow; the pages tell of it. What Ta
15
+ * asked marks the turn (TA_ASK_ENTRY), so that the lists show the conversation waits for the user until they answer;
16
+ * a turn another package marked so (a card with choices of ta-glance) is told of as `ask` too, by its question.
15
17
  */
16
18
  function activate(pi) {
17
19
  let reached;
@@ -31,6 +33,10 @@ function activate(pi) {
31
33
  /** What Ta asked in this run, shown in the conversation once it settles. */
32
34
  let asked;
33
35
  let last;
36
+ /** When this run started: an ask marked since is this run's. */
37
+ let startedAt = 0;
38
+ /** What Ta asked is marked once in the run. */
39
+ let marked = false;
34
40
  pi.on('session_start', () => {
35
41
  void reach();
36
42
  });
@@ -38,6 +44,8 @@ function activate(pi) {
38
44
  told = false;
39
45
  asked = undefined;
40
46
  last = undefined;
47
+ startedAt = Date.now();
48
+ marked = false;
41
49
  });
42
50
  // The card of the question is for the user.
43
51
  pi.on('context', (event) => {
@@ -47,9 +55,15 @@ function activate(pi) {
47
55
  pi.on('agent_end', (event) => {
48
56
  var _a, _b;
49
57
  last = (_b = notify_util_1.NotifyUtil.lastAnswer((_a = event.messages) !== null && _a !== void 0 ? _a : [])) !== null && _b !== void 0 ? _b : last;
58
+ if (asked && !marked) {
59
+ marked = true;
60
+ pi.appendEntry(ta_extension_host_1.TA_ASK_ENTRY, ta_extension_host_1.TaAskUtil.entry(asked.text));
61
+ }
50
62
  });
51
63
  // Once nothing more runs: no retry, compaction or message of the queue.
52
64
  pi.on('agent_settled', (event, ctx) => {
65
+ var _a, _b;
66
+ var _c;
53
67
  const answer = last;
54
68
  last = undefined;
55
69
  const question = asked;
@@ -60,6 +74,11 @@ function activate(pi) {
60
74
  if (event.aborted || told || !answer || answer.aborted) {
61
75
  return;
62
76
  }
77
+ const asking = answer.failed ? undefined : ta_extension_host_1.TaAskUtil.asking((_c = (_b = (_a = ctx.sessionManager).getBranch) === null || _b === void 0 ? void 0 : _b.call(_a)) !== null && _c !== void 0 ? _c : []);
78
+ if (asking && asking.at >= startedAt) {
79
+ void post({ piSessionId: ctx.sessionManager.getSessionId(), id: String(answer.at), level: 'ask', source: 'turn', text: asking.question });
80
+ return;
81
+ }
63
82
  const text = notify_util_1.NotifyUtil.text(answer.text) || (answer.failed ? server_texts_1.NotifyServerTexts.failed() : '');
64
83
  if (!text) {
65
84
  return;
@@ -27,8 +27,8 @@ export declare namespace Keys {
27
27
  export type NoticeLevel = 'ask' | 'failed' | 'done';
28
28
  /** Of what the user is told: every answer, only what needs them (`ask` and `failed`), or nothing. */
29
29
  export type NotifyLevel = 'all' | 'needs' | 'off';
30
- /** What gave it: Ta's tool, the end of a turn, a dialog of an extension. */
31
- export type NoticeSource = 'agent' | 'turn' | 'dialog';
30
+ /** What gave it: Ta's tool, the end of a turn, a dialog of an extension, another package (NotifyService.notify). */
31
+ export type NoticeSource = 'agent' | 'turn' | 'dialog' | 'package';
32
32
  /** Something a conversation told the user, as the pages read it. */
33
33
  export interface Notice {
34
34
  /** The same on every page: each tells of a key once. */
@@ -44,8 +44,10 @@ export interface Notice {
44
44
  sessionId?: string;
45
45
  sessionFile?: string;
46
46
  cwd?: string;
47
- /** The name of the conversation then, for the list of those muted. */
47
+ /** The name of the conversation then, for the list of those muted; what a notice of a package is about. */
48
48
  title?: string;
49
+ /** A notice of a package: the view a tap opens (`<extension>/<view>`), rather than a conversation. */
50
+ view?: string;
49
51
  }
50
52
  /** What the pi extension of a session posts to the host of the package. */
51
53
  export interface NoticeInput {
@@ -58,6 +60,22 @@ export interface NoticeInput {
58
60
  text: string;
59
61
  options?: string[];
60
62
  }
63
+ /**
64
+ * What the host of another package tells the user that is no conversation's (a room asks for a permission, someone
65
+ * asks to join): `callPackageHost('@celljs/ta-notify', 'notify', [input])`.
66
+ */
67
+ export interface PackageNoticeInput {
68
+ /** The name of the package that tells it. */
69
+ from: string;
70
+ /** Unique in that package: the same id is one notice. */
71
+ id: string;
72
+ level: NoticeLevel;
73
+ /** What it is about, in place of the name of a conversation. */
74
+ title: string;
75
+ text: string;
76
+ /** The view a tap opens. */
77
+ view?: string;
78
+ }
61
79
  /** A conversation the user muted: told of only when it needs them. */
62
80
  export interface Muted {
63
81
  /** Its session file, else its session id. */
@@ -68,6 +86,8 @@ export interface Muted {
68
86
  export interface NotifyService {
69
87
  /** Keeps a notice for the pages, unless the settings say not to tell the user of it; what it kept. */
70
88
  post(input: NoticeInput): Promise<Notice | undefined>;
89
+ /** Keeps a notice of another package (no conversation's), as the settings allow; what it kept. */
90
+ notify(input: PackageNoticeInput): Promise<Notice | undefined>;
71
91
  /** Mutes a conversation or not; the list after. */
72
92
  mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
73
93
  }
@@ -1,9 +1,10 @@
1
1
  import type { TaExtensionHost, TaPackageService } from '@celljs/ta-protocol';
2
- import { type Muted, type Notice, type NoticeInput, type NotifyService } from './notify-protocol';
2
+ import { type Muted, type Notice, type NoticeInput, type NotifyService, type PackageNoticeInput } from './notify-protocol';
3
3
  /**
4
4
  * The host of the package in the Ta service: it keeps the notices the pi extensions of the sessions post, as the
5
5
  * settings allow, for the pages to tell of (the pages tell of none that the user looks at). One writer, so that two
6
- * sessions that post at once both stay. A push to a phone whose app is closed would go out from here (not done:
6
+ * sessions that post at once both stay. The hosts of other packages tell the user here too
7
+ * (`notify`: a room asks for a permission). A push to a phone whose app is closed would go out from here (not done:
7
8
  * docs/design/ta-notify.md).
8
9
  */
9
10
  export declare class NotifyHost implements NotifyService, TaPackageService {
@@ -12,6 +13,7 @@ export declare class NotifyHost implements NotifyService, TaPackageService {
12
13
  protected queue: Promise<unknown>;
13
14
  constructor(host: TaExtensionHost);
14
15
  post(input: NoticeInput): Promise<Notice | undefined>;
16
+ notify(input: PackageNoticeInput): Promise<Notice | undefined>;
15
17
  mute(target: string, muted: boolean, title?: string): Promise<Muted[]>;
16
18
  /** Nothing runs on its own: what is written is written. */
17
19
  dispose(): void;
@@ -6,7 +6,8 @@ const notify_util_1 = require("./notify-util");
6
6
  /**
7
7
  * The host of the package in the Ta service: it keeps the notices the pi extensions of the sessions post, as the
8
8
  * settings allow, for the pages to tell of (the pages tell of none that the user looks at). One writer, so that two
9
- * sessions that post at once both stay. A push to a phone whose app is closed would go out from here (not done:
9
+ * sessions that post at once both stay. The hosts of other packages tell the user here too
10
+ * (`notify`: a room asks for a permission). A push to a phone whose app is closed would go out from here (not done:
10
11
  * docs/design/ta-notify.md).
11
12
  */
12
13
  class NotifyHost {
@@ -22,7 +23,7 @@ class NotifyHost {
22
23
  const info = (await this.host.listSessions()).find(session => session.piSessionId === input.piSessionId);
23
24
  // A session a package opened for a role of its own (an agent of a channel, a run of a schedule) says
24
25
  // when it ends a turn in its own way; it still asks, and its dialogs wait.
25
- if (input.source === 'turn' && (info === null || info === void 0 ? void 0 : info.group)) {
26
+ if (input.source === 'turn' && input.level !== 'ask' && (info === null || info === void 0 ? void 0 : info.group)) {
26
27
  return undefined;
27
28
  }
28
29
  const target = (_b = info === null || info === void 0 ? void 0 : info.sessionFile) !== null && _b !== void 0 ? _b : info === null || info === void 0 ? void 0 : info.sessionId;
@@ -52,6 +53,30 @@ class NotifyHost {
52
53
  return notice;
53
54
  });
54
55
  }
56
+ notify(input) {
57
+ return this.serial(async () => {
58
+ var _a, _b;
59
+ const text = notify_util_1.NotifyUtil.text(String((_a = input === null || input === void 0 ? void 0 : input.text) !== null && _a !== void 0 ? _a : ''));
60
+ const level = input === null || input === void 0 ? void 0 : input.level;
61
+ if (!text || typeof (input === null || input === void 0 ? void 0 : input.from) !== 'string' || typeof input.id !== 'string' || !(level === 'ask' || level === 'failed' || level === 'done')) {
62
+ return undefined;
63
+ }
64
+ if (!notify_util_1.NotifyUtil.allows(level, notify_util_1.NotifyUtil.level(await this.read(notify_protocol_1.Keys.LEVEL)), false)) {
65
+ return undefined;
66
+ }
67
+ const notice = {
68
+ key: notify_util_1.NotifyUtil.key(input.from, 'package', input.id),
69
+ at: Date.now(),
70
+ level,
71
+ source: 'package',
72
+ text,
73
+ title: String((_b = input.title) !== null && _b !== void 0 ? _b : '').slice(0, 80),
74
+ ...(typeof input.view === 'string' && input.view ? { view: input.view } : {}),
75
+ };
76
+ await this.host.setExtensionData(notify_protocol_1.NAME, notify_protocol_1.Keys.NOTICES, notify_util_1.NotifyUtil.keep(notify_util_1.NotifyUtil.notices(await this.read(notify_protocol_1.Keys.NOTICES)), notice));
77
+ return notice;
78
+ });
79
+ }
55
80
  mute(target, muted, title) {
56
81
  return this.serial(async () => {
57
82
  const list = notify_util_1.NotifyUtil.muted(await this.read(notify_protocol_1.Keys.MUTED)).filter(item => item.target !== target);
@@ -1,4 +1,4 @@
1
1
  /** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
2
- export declare const STYLE = "\n.ta-notify-state { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: right; }\n.ta-notify-muted { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }\n.ta-notify-muted li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }\n.ta-notify-muted-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); }\n/* The question of Ta in its conversation, its answers to tap */\n.ta-notify-ask { margin: 4px 0; padding: 10px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-card); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-notify-ask-head { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-notify-ask-text { margin-top: 6px; color: var(--ta-text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-notify-ask-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }\n.ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }\n.ta-notify-ask-option:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-notify-ask-option.ta-on { border-color: var(--ta-green); color: var(--ta-green); }\n.ta-notify-ask-option:disabled { opacity: 0.45; cursor: default; }\n[data-touch] .ta-notify-ask-option { min-height: 38px; }\n";
2
+ export declare const STYLE = "\n.ta-notify-state { color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); text-align: right; }\n.ta-notify-muted { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }\n.ta-notify-muted li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }\n.ta-notify-muted-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); font-size: calc(13px * var(--ta-font-scale)); }\n/* The question of Ta in its conversation, its answers to tap */\n.ta-notify-ask { margin: 4px 0; padding: 10px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-card); font-size: calc(13px * var(--ta-font-scale)); }\n.ta-notify-ask-head { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); }\n.ta-notify-ask-text { margin-top: 6px; color: var(--ta-text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }\n.ta-notify-ask-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }\n.ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }\n.ta-notify-ask-option:hover:not(:disabled) { background: var(--ta-hover); }\n.ta-notify-ask-option.ta-on { border-color: var(--ta-green); color: var(--ta-green); }\n.ta-notify-ask-option:disabled { opacity: 0.45; cursor: default; }\n[data-touch] .ta-notify-ask-option { min-height: 38px; }\n";
3
3
  export declare function injectStyle(): () => void;
4
4
  //# sourceMappingURL=style.d.ts.map
@@ -13,7 +13,7 @@ exports.STYLE = `
13
13
  .ta-notify-ask-head { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); }
14
14
  .ta-notify-ask-text { margin-top: 6px; color: var(--ta-text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
15
15
  .ta-notify-ask-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
16
- .ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }
16
+ .ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }
17
17
  .ta-notify-ask-option:hover:not(:disabled) { background: var(--ta-hover); }
18
18
  .ta-notify-ask-option.ta-on { border-color: var(--ta-green); color: var(--ta-green); }
19
19
  .ta-notify-ask-option:disabled { opacity: 0.45; cursor: default; }
@@ -23,7 +23,8 @@ var NoticeWatchUtil;
23
23
  level: notice.level,
24
24
  text: notice.text,
25
25
  options: notice.options,
26
- actions: mute && words && notice.level !== 'ask' ? [{ label: words.mute, run: mute }] : undefined,
26
+ actions: mute && words && notice.level !== 'ask' && notice.source !== 'package' ? [{ label: words.mute, run: mute }] : undefined,
27
+ ...(notice.source === 'package' ? { title: notice.title, view: notice.view } : {}),
27
28
  };
28
29
  }
29
30
  NoticeWatchUtil.sessionNotice = sessionNotice;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-notify",
3
- "version": "4.12.0",
3
+ "version": "4.13.1",
4
4
  "description": "A pi package for Ta: tells the user when a conversation needs them, failed or answered, while they look elsewhere, and lets Ta ask them to decide with answers to pick",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -50,6 +50,11 @@
50
50
  "host": "./host/index.mjs",
51
51
  "extensions": [
52
52
  "./extension/index.mjs"
53
- ]
53
+ ],
54
+ "permissions": {
55
+ "host": {
56
+ "*": "settings.manage"
57
+ }
58
+ }
54
59
  }
55
60
  }
@@ -324,7 +324,7 @@ var STYLE = `
324
324
  .ta-notify-ask-head { display: flex; align-items: center; gap: 6px; color: color-mix(in srgb, var(--ta-yellow) 85%, var(--ta-muted)); font-size: calc(12px * var(--ta-font-scale)); }
325
325
  .ta-notify-ask-text { margin-top: 6px; color: var(--ta-text); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
326
326
  .ta-notify-ask-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
327
- .ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }
327
+ .ta-notify-ask-option { min-height: 32px; padding: 0 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-weight: 500; cursor: pointer; transition: background 120ms, opacity 120ms; }
328
328
  .ta-notify-ask-option:hover:not(:disabled) { background: var(--ta-hover); }
329
329
  .ta-notify-ask-option.ta-on { border-color: var(--ta-green); color: var(--ta-green); }
330
330
  .ta-notify-ask-option:disabled { opacity: 0.45; cursor: default; }
@@ -369,7 +369,8 @@ var NoticeWatchUtil;
369
369
  level: notice.level,
370
370
  text: notice.text,
371
371
  options: notice.options,
372
- actions: mute && words && notice.level !== "ask" ? [{ label: words.mute, run: mute }] : undefined
372
+ actions: mute && words && notice.level !== "ask" && notice.source !== "package" ? [{ label: words.mute, run: mute }] : undefined,
373
+ ...notice.source === "package" ? { title: notice.title, view: notice.view } : {}
373
374
  };
374
375
  }
375
376
  NoticeWatchUtil.sessionNotice = sessionNotice;
@@ -1,19 +1,28 @@
1
1
  # Cell - Ta Recall
2
2
 
3
- A pi package that comes with Ta (on by default; Settings → Extensions of the web client turns it off): Recall. What was done stays: ask how it was done, keep what you ask for again as a skill, and get a brief each day.
3
+ A pi package that comes with Ta (on by default; Settings → Extensions of the web client turns it off): Recall. What was done stays: ask how it was done, keep what you ask for again (how it is done, a card or a page, a scheduled run), and get a brief each day.
4
4
 
5
5
  - **Ask the past**: Ta has a tool `search_conversations({ query, days?, here? })` that searches what you and Ta said in the conversations of every directory (not the output of tools). Asked "how did we fix the relay last week", it searches first, then answers with links to the conversations, which open them. The search of Quick open gets a section Ask Ta: "Ask Ta: <what you typed>" asks in a new conversation, under it the conversations with every word.
6
- - **Keep as a skill**: when you ask for something you asked for in another conversation, Ta does it, then drafts a skill with `propose_skill`, which shows as a card: its name, what it is for, its steps to unfold, Save as a skill or No thanks. Saved, it goes to `~/.ta/agent/skills/<name>/SKILL.md`, which new conversations use, or `/skill:<name>`; after No thanks the like is not offered again. + of the message box → Keep as a skill has Ta draft one of the conversation. A model without Ta's tools (another coding agent) drafts it in a `ta-skill` block, to the same effect.
6
+ - **Keep**: when you ask for something you asked for in another conversation, Ta does it, then offers to keep it; + of the message box → Keep has Ta keep how this conversation did it, when you ask. Whatever is kept is an extension (a pi package); the card says it by what you get:
7
+ - **Remember how this is done** (`steps`): steps Ta follows and judges as it goes. Remember has the host write a package of only a skill in `~/.ta/agent/extensions/<name>/` (a `package.json` with its title, `skills/<name>/SKILL.md`), which new conversations follow, or `/skill:<name>`; the Extensions page lists, turns off and exports it.
8
+ - **Make it a card of the board / a page / a command / a tool beside the conversation** (`board`, `page`, `command`, `panel`, when Ta has the ta-package skill): what is to see or tap (a status, a fixed run of commands whose result needs no judgment, the same table each time). The card shows the plan (where its data comes from, the commands it runs, the files it reads or writes), and only Make it asks Ta, in that conversation, to make it with the ta-package skill: making one takes a while, so it is offered first.
9
+ - **Run it on a schedule**: what is done at a time with nobody watching (while [@celljs/ta-cron](../ta-cron/README.en.md) is on). The `<context>` of the message of Keep starts with `[ta:keep]` (`TA_KEEP_MARK`); ta-cron tells the model about it itself, in a section of the system prompt of those turns (`<ta-cron-keep>`), so this package does not know its format; with ta-cron off, it is not offered.
10
+
11
+ Ta offers with the tool `propose_extension({ name, title, kind, summary, body })`; a model without Ta's tools (another coding agent) writes a `ta-extension` block, to the same effect. After No thanks the like is not offered again. A card of a skill of before (`ta-recall-skill`) shows as Remember how this is done.
7
12
  - **Daily brief**: each day at its time (09:00 by default), when something happened since the last one, Ta writes in the conversation Daily brief what got done, what waits for you and what is next, each line linking its conversation. When the computer was off, one comes once the Ta service starts, one a day at most; the first comes at the next time after the package is installed.
8
13
 
9
- Settings → Recall: the daily brief, its time, one written now, and the offers to keep a skill.
14
+ Other packages add to the brief too: what one keeps under the key `brief` of its data (`TA_BRIEF_SOURCE`, `{ section, instruction, items: [{ at, text }] }`) goes into the material, the items since the last brief, and the brief writes a part of its own as the package says (Friends made of Moments).
15
+
16
+ Settings → Recall: the daily brief, its time, one written now, and the offers to keep.
17
+
18
+ Sessions a package opened for a role of its own (an agent of a channel, a run of a schedule) are offered nothing to keep.
10
19
 
11
- Sessions a package opened for a role of its own (an agent of a channel, a run of a schedule) are offered no skill.
20
+ Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own.
12
21
 
13
22
  ## Data and calls
14
23
 
15
- Data of the package (`@celljs/ta-recall`): `suggest`, `brief` (`{ enabled, time }`), `briefFile`, `briefLast`, `decided` (what was decided of each card), `declined` (the requests not wanted as skills).
24
+ Data of the package (`@celljs/ta-recall`): `suggest`, `brief` (`{ enabled, time }`), `briefFile`, `briefLast`, `decided` (what was decided of each card), `declined` (the requests not wanted kept).
16
25
 
17
- Methods of its host (`pi.host`), which a web extension calls with `callPackageHost('@celljs/ta-recall', …)`: `search(query)`, `similar(text, piSessionId?)`, `saveSkill(key, draft)`, `declineSkill(key, ask?)`, `briefNow()`.
26
+ Methods of its host (`pi.host`), which a web extension calls with `callPackageHost('@celljs/ta-recall', …)`: `search(query)`, `similar(text, piSessionId?)`, `keep(key, draft)` (writes Remember how this is done as a package), `makeExtension(key, piSessionId, message)` (asks Ta to make the extension in the conversation of its card), `decline(key, ask?)`, `briefNow()`, `requests({ since, until?, exclude?, limit? })` (what the user typed in each conversation updated since a time, latest first, but those of scheduled runs and the briefs; `@celljs/ta-initiative` reads it).
18
27
 
19
28
  Design record: `docs/design/ta-recall.md`.
@@ -1,19 +1,28 @@
1
1
  # Cell - Ta Recall
2
2
 
3
- Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展 关闭):回顾。把做过的事留下来:问以前怎么做的、把常交代的事存成技能、每天一份简报。
3
+ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展 关闭):回顾。把做过的事留下来:问以前怎么做的、把常交代的事存下来(记住做法、做成卡片或页面、定时自动做)、每天一份简报。
4
4
 
5
5
  - **问过去**:Ta 有一个工具 `search_conversations({ query, days?, here? })`,在所有目录的对话里搜你和 Ta 说过的话(不含工具输出),你问"上周 relay 那个 bug 怎么修的"时它先搜,再回答并链出对话;点链接打开那个对话。快捷打开的搜索里多一个"问 Ta"分区:"问 Ta:<你输入的>"新开一个对话去问,下面是包含所有关键词的对话。
6
- - **存成技能**:你在另一个对话里交代过的事又交代一次时,Ta 做完后会用 `propose_skill` 起草一份技能,对话里出现一张卡片:名字、说明、可展开的步骤,"保存为技能"或"不用"。保存后写到 `~/.ta/agent/skills/<名字>/SKILL.md`,新对话自动用上,也可以 `/skill:<名字>`;"不用"之后类似的事不再问。输入框 + → 存成技能 让 Ta 把当前对话的做法起草成技能。没有 Ta 工具的模型(外部 Agent)用 `ta-skill` 代码块起草,效果一样。
6
+ - **存下来**:你在另一个对话里交代过的事又交代一次时,Ta 做完后会提议把它存下来;输入框 + → 存下来 则是你主动让 Ta 把这个对话的做法存下来。存下来的东西背后都是一个扩展(pi 包),卡片上按你会得到什么来说:
7
+ - **记住这套做法**(`steps`):要 Ta 边做边判断的步骤。点"记住",host 在 `~/.ta/agent/extensions/<名字>/` 写一个只含技能的包(`package.json` 带标题,`skills/<名字>/SKILL.md`),新对话自动照着做,也可以 `/skill:<名字>`,在扩展页里能找到、开关、导出。
8
+ - **做成小组件卡片 / 页面 / 命令 / 对话旁的工具**(`board`、`page`、`command`、`panel`,有 ta-package 技能时):想看一眼、点一下就行的事(一个状态、结果不用判断的固定命令、每次一样的表)。卡片上是做法(数据从哪来、跑什么命令、读写哪些文件),点"做出来"才在这个对话里请 Ta 照 ta-package 技能去做——做扩展要花时间,所以先提议。
9
+ - **定时自动做**:到点就做、没人在看也行的事([@celljs/ta-cron](../ta-cron/README.md) 开着时)。"存下来"的消息 `<context>` 以 `[ta:keep]`(`TA_KEEP_MARK`)开头,ta-cron 在这几轮的系统提示里自己说明(`<ta-cron-keep>`),本包不知道它的格式;关掉 ta-cron 就不会提。
10
+
11
+ Ta 用工具 `propose_extension({ name, title, kind, summary, body })` 提议;没有 Ta 工具的模型(外部 Agent)写 `ta-extension` 代码块,效果一样。"不用"之后类似的事不再问。以前存成的技能卡片(`ta-recall-skill`)仍按"记住这套做法"显示。
7
12
  - **每日简报**:每天到了设定时间(默认 09:00),如果上次以来有新动静,Ta 在"每日简报"对话里写:做完了什么、等你定什么、下一步,每条链到对话。电脑没开就在 Ta 服务启动后补一份,一天最多一份;第一次装上从下一个简报时间开始。
8
13
 
9
- 设置 → 回顾:每日简报开关、简报时间、现在写一份、建议存成技能开关。
14
+ 别的包也能往简报里加内容:在自己的包数据 `brief` 键(`TA_BRIEF_SOURCE`,`{ section, instruction, items: [{ at, text }] }`)下写好,简报会带上上次以来的条目,并照包的指示写成单独一段(例如动态的"好友在做")。
15
+
16
+ 设置 → 回顾:每日简报开关、简报时间、现在写一份、建议存下来开关。
17
+
18
+ 由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)不建议存下来。
10
19
 
11
- 由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)不建议存技能。
20
+ 建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta 自己做了的事。
12
21
 
13
22
  ## 数据与调用
14
23
 
15
- 包数据(`@celljs/ta-recall`):`suggest`(是否建议存技能)、`brief`(`{ enabled, time }`)、`briefFile`(简报对话的会话文件)、`briefLast`(上次简报的时间)、`decided`(各卡片的保存或拒绝)、`declined`(拒绝过的请求)。
24
+ 包数据(`@celljs/ta-recall`):`suggest`(是否建议存下来)、`brief`(`{ enabled, time }`)、`briefFile`(简报对话的会话文件)、`briefLast`(上次简报的时间)、`decided`(各卡片的保存、做出来或拒绝)、`declined`(拒绝过的请求)。
16
25
 
17
- 包宿主(`pi.host`)的方法,Web 扩展经 `callPackageHost('@celljs/ta-recall', …)` 调用:`search(query)`、`similar(text, piSessionId?)`、`saveSkill(key, draft)`、`declineSkill(key, ask?)`、`briefNow()`。
26
+ 包宿主(`pi.host`)的方法,Web 扩展经 `callPackageHost('@celljs/ta-recall', …)` 调用:`search(query)`、`similar(text, piSessionId?)`、`keep(key, draft)`(把"记住这套做法"写成扩展包)、`makeExtension(key, piSessionId, message)`(在卡片所在的对话里请 Ta 做扩展)、`decline(key, ask?)`、`briefNow()`、`requests({ since, until?, exclude?, limit? })`(某个时间以来各对话里用户亲手发的请求,新的在前,不含定时任务运行和简报的对话;`@celljs/ta-initiative` 用它)。
18
27
 
19
28
  设计记录:`docs/design/ta-recall.md`。