@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
@@ -10,8 +10,7 @@ A built-in pi package for Ta (enabled by default, can be disabled in Settings
10
10
  - Import: use the button, the page's top-right menu, or drag files to the page. In the dialog, select a `.tgz` file or enter an `npm:…` / Git address to install (`installPackage`, equivalent to `ta install`). After import, install, or remove, call `reloadExtensions` so the current session and page get the updates immediately.
11
11
  - "Share with Others": export → send .tgz file → they import. A three-step diagram shows this flow, with a note explaining that npm, Git sources, or telling Ta directly also work.
12
12
  - Each row and the page of a package of the marketplace have Share: the share dialog of Ta (a QR code, a link).
13
- - Settings → Making extensions (`settings.tsx`, `registerSettings`): the model of the conversations that make or change an extension, kept as `makeModel` in the data of this package (`make-model.ts`); unset, the default model, and the default too, the user told why, when the one set cannot be used (its credentials went). Make and Change of the Extensions page, and Make an extension of a scheduled task, open their conversation on it.
14
- - Make an extension in the + of the message box of every conversation (`composer.tsx`, `registerComposerAddon`): asks Ta, in that conversation, to make an extension of what it did, its inputs a form or buttons, its steps a command or a tool, its results a view that suits them. The conversation shows one line, the rest for the model is in a `<context>` block; while a reply runs, it waits its turn. With a model set for making extensions, the conversation is copied instead (`forkToFile`) and the copy goes on on that model, the conversation left as it was; the entry names the model. The box of a channel has it too ([@celljs/ta-channels](../ta-channels/README.en.md)), for its lead; the one of a scheduled task is [@celljs/ta-cron](../ta-cron/README.en.md)'s.
13
+ - Settings → Making extensions (`settings.tsx`, `registerSettings`): the model of the conversations that make or change an extension, kept as `makeModel` in the data of this package (`make-model.ts`); unset, the default model, and the default too, the user told why, when the one set cannot be used (its credentials went). Make and Change of the Extensions page, and Make an extension of a scheduled task, open their conversation on it. Making a conversation an extension is offered by Keep in the + of the message box ([@celljs/ta-recall](../ta-recall/README.en.md)) and done, after Make it, in that conversation, on its model.
15
14
  - The search of Quick open gets three sections from here (`search.ts`, `registerSearch`): Installed and Come with Ta, filtered in memory, and Marketplace, npm searched through the host a page at a time, with Install on those not installed.
16
15
  - Extensions opened without installing are not listed under "Mine": Quick open installs or deletes them ([@celljs/ta-launcher](../ta-launcher/README.en.md)). The page of a package of the marketplace with a web extension has Open besides Install: its pages run at once as a temporary extension (`pi.openTemporary`), found in Quick open afterwards.
17
16
  - "Marketplace" (`market-view.tsx`, `market-detail.tsx`): npm packages with the `pi-package` keyword—the ones listed in pi's official package directory.
@@ -15,8 +15,7 @@ Ta 自带的 pi 包(默认开启,可在 设置 → 扩展 关闭):告诉
15
15
  - 点卡片进入详情页(`Esc` 或"返回"回到列表,滚动位置不变):头像、名称、说明、作者/版本/下载量/许可证/时间、安装或移除、npm/源代码/主页链接,`pi.video` / `pi.image` 预览,以及 README。带 Web 扩展的包还有"打开":不安装,作为临时扩展直接运行它的页面(`pi.openTemporary`,见 [@celljs/ta-launcher](../ta-launcher/README.md)),之后在"快捷打开"里找到它。
16
16
  - 免安装打开的临时扩展不列在"我的"里,由"快捷打开"安装或删除。
17
17
  - 每一行和市场详情页都有"分享":打开 Ta 的分享弹窗(二维码、链接)。
18
- - 设置 → 做扩展(`settings.tsx`,`registerSettings`):做、改扩展的对话用哪个模型,存在本包数据的 `makeModel`(`make-model.ts`),不选就跟随默认模型;选的模型用不了时(凭据没了)改用默认模型并提示原因。扩展页的"做一个扩展""修改"、定时任务的"做成扩展"都按它开新对话。
19
- - 每个对话输入框 + 菜单里的"做成扩展"(`composer.tsx`,`registerComposerAddon`):在这个对话里请 Ta 把对话做的事做成扩展,输入做成表单或按钮,步骤做成命令或工具,结果用合适的界面呈现。对话里只显示一句话,给模型的说明在 `<context>` 块里;回答进行中时排在它后面。设置了做扩展的模型时,改为把这个对话复制一份(`forkToFile`),在副本里用那个模型来做,原对话不动;菜单项的说明会写出模型。频道的输入框也有这个入口([@celljs/ta-channels](../ta-channels/README.md)),由负责人来做;定时任务的"做成扩展"见 [@celljs/ta-cron](../ta-cron/README.md)。
18
+ - 设置 → 做扩展(`settings.tsx`,`registerSettings`):做、改扩展的对话用哪个模型,存在本包数据的 `makeModel`(`make-model.ts`),不选就跟随默认模型;选的模型用不了时(凭据没了)改用默认模型并提示原因。扩展页的"做一个扩展""修改"、定时任务的"做成扩展"都按它开新对话。把一段对话做成扩展由输入框 + 里的"存下来"([@celljs/ta-recall](../ta-recall/README.md))提议、点"做出来"后在原对话里做,不用这个模型。
20
19
  - 快捷打开的搜索里加了"已安装""内置""市场"三个分区(`search.ts`,`registerSearch`):前两个在内存里过滤,市场经服务端搜 npm、分页,未安装的有"安装"按钮。
21
20
  - **服务端**(`pi.host`,`web-src/host.ts` → `host/index.mjs`):页面经 `callHost`(`TaPackageServer.callPackageHost`)调用。
22
21
  - `exportPackage(id)`:把包目录打成一个 `.tgz`(gzip 的 tar,顶层是包目录,去掉 `node_modules`、`.git`、存放密钥的 `.env*`(`.env.example` 除外)与 `.npmrc`,以及链接),用 base64 交给页面下载。和 `tar -czf <名字>.tgz <名字>` 的格式相同,没有 Ta 也能用 `tar` 解开。
@@ -20,10 +20,6 @@ declare const EN: {
20
20
  placeholder: string;
21
21
  makePrompt: string;
22
22
  changePrompt: string;
23
- fromChat: string;
24
- fromChatDetail: string;
25
- fromChatAsk: string;
26
- fromChatModel: string;
27
23
  settingsTitle: string;
28
24
  modelLabel: string;
29
25
  modelHint: string;
@@ -8,13 +8,9 @@ const EN = {
8
8
  placeholder: 'Describe the extension, for example: a pomodoro timer beside the conversation',
9
9
  makePrompt: 'Make an extension: {text}',
10
10
  changePrompt: 'Change the extension {name} (in {root}): {text}',
11
- fromChat: 'Make an extension',
12
- fromChatDetail: 'Of what this conversation did',
13
- fromChatAsk: 'Make what this conversation did an extension, to do it again in a click',
14
- fromChatModel: 'In a new conversation, on {model}',
15
11
  settingsTitle: 'Making extensions',
16
12
  modelLabel: 'Model',
17
- modelHint: 'The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task, and of a conversation, which then goes on in a copy of it); unset, the default model',
13
+ modelHint: 'The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task); unset, the default model',
18
14
  modelFailed: 'The model for making extensions ({model}) cannot be used, so the default one is: {message}',
19
15
  changeTitle: 'Change {name}',
20
16
  changePlaceholder: 'What should it do differently?',
@@ -137,13 +133,9 @@ const ZH = {
137
133
  placeholder: '描述你想要的扩展,例如:在对话旁放一个番茄钟',
138
134
  makePrompt: '做一个扩展:{text}',
139
135
  changePrompt: '修改扩展 {name}(在 {root}):{text}',
140
- fromChat: '做成扩展',
141
- fromChatDetail: '把这次对话做成工具',
142
- fromChatAsk: '把这次对话做的事做成扩展,以后一键就能再用',
143
- fromChatModel: '用 {model} 在新对话里做',
144
136
  settingsTitle: '做扩展',
145
137
  modelLabel: '模型',
146
- modelHint: '扩展页和各处“做成扩展”开的对话用这个模型;不选就跟随默认模型',
138
+ modelHint: '扩展页和定时任务的“做成扩展”开的对话用这个模型;不选就跟随默认模型',
147
139
  modelFailed: '做扩展的模型({model})现在用不了,已改用默认模型:{message}',
148
140
  changeTitle: '修改 {name}',
149
141
  changePlaceholder: '想让它有什么不同?',
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = activate;
4
4
  const actions_1 = require("./actions");
5
- const composer_1 = require("./composer");
6
5
  const i18n_1 = require("./i18n");
7
6
  const market_store_1 = require("./market-store");
8
7
  const page_1 = require("./page");
@@ -50,7 +49,6 @@ function activate(pi) {
50
49
  order: 90,
51
50
  });
52
51
  (0, search_1.registerSearches)(context);
53
- pi.registerComposerAddon((0, composer_1.composerAddon)(pi));
54
52
  pi.registerSettings((0, settings_1.makeSettings)(pi));
55
53
  // A reply of Ta may have made, changed or removed one.
56
54
  pi.on('agent_end', () => void store.load());
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-extensions",
3
- "version": "4.12.0",
3
+ "version": "4.13.0",
4
4
  "description": "A pi package for Ta: the page of extensions, where the user makes one by saying what it should do, and hands extensions on or takes them in as one file",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -56,6 +56,14 @@
56
56
  "host": "./host/index.mjs",
57
57
  "skills": [
58
58
  "./skills"
59
- ]
59
+ ],
60
+ "permissions": {
61
+ "host": {
62
+ "searchMarket": "extensions.use",
63
+ "marketPackage": "extensions.use",
64
+ "examples": "extensions.use",
65
+ "*": "extensions.install"
66
+ }
67
+ }
60
68
  }
61
69
  }
@@ -9,9 +9,11 @@ Ta is pi; what Ta can do grows with pi packages. A package can hold a pi extensi
9
9
 
10
10
  ## Where
11
11
 
12
- Put a new package in `~/.ta/agent/extensions/<name>/`, a lowercase name with dashes. pi loads the packages there by itself; there is nothing to install. Use `.ta/extensions/<name>/` of the project only when the user wants it for this project alone. To change a package, change its files in place. To remove one, delete its directory, after asking.
12
+ Ta's agent directory, `<agent>` below, is `$TA_CODING_AGENT_DIR` when that is set (a Ta of its own, an account of `ta gateway`), else `~/.ta/agent`; in a shell, `"${TA_CODING_AGENT_DIR:-$HOME/.ta/agent}"`. Find it first: a package put in the other one is not loaded, and may change a Ta that is not the user's of this conversation.
13
13
 
14
- A small tool for now, which the user wants to use for a while rather than keep (a converter, a calculator, a board for one task), and which is only a page, goes in `~/.ta/agent/temporary/<name>/` instead: a temporary extension, as a mini program. It holds only a web extension (no pi extension, skills or prompts: those of a temporary package do not load) with one `page` view; it starts when the user opens it and is cleared after a while unused. Tell the user it is in Quick open (pulled down over the first tab of a phone, the grid at the bottom of the navigation elsewhere), where holding it keeps it in Mine or installs it. When in doubt, or when the user says to keep it, use `extensions/`.
14
+ Put a new package in `<agent>/extensions/<name>/`, a lowercase name with dashes. pi loads the packages there by itself; there is nothing to install. Use `.ta/extensions/<name>/` of the project only when the user wants it for this project alone. To change a package, change its files in place. To remove one, delete its directory, after asking.
15
+
16
+ A small tool for now, which the user wants to use for a while rather than keep (a converter, a calculator, a board for one task), and which is only a page, goes in `<agent>/temporary/<name>/` instead: a temporary extension, as a mini program. It holds only a web extension (no pi extension, skills or prompts: those of a temporary package do not load) with one `page` view; it starts when the user opens it and is cleared after a while unused. Tell the user it is in Quick open (pulled down over the first tab of a phone, the grid at the bottom of the navigation elsewhere), where holding it keeps it in Mine or installs it. When in doubt, or when the user says to keep it, use `extensions/`.
15
17
 
16
18
  ```
17
19
  <name>/
@@ -45,9 +47,9 @@ export default function (pi) {
45
47
 
46
48
  - `React`: the React of the page. Use it for components and hooks; never bring another.
47
49
  - `ui.setWidget(key, Component, options?)`: a widget. `options.placement` is `'aboveEditor'` (default) or `'belowEditor'`, around the message box as in pi, or `'panel'`, a card in the cards tab of the workbench on the right (it opens when the first card comes): the place for what stays in view, like a timer or a list; `options.title` titles a card. `setWidget(key, undefined)` removes it.
48
- - `registerView(name, { title, render, icon?, location?, order?, head?, pages?, menu? })`: a view of its own; `render` is a component, `icon` a component that draws an icon of `size` pixels in `currentColor` (take one of `ui.icons`). `location: 'page'` (default) fills the main area, with an icon in the navigation on the left; `'sidebar'` is a list of the sidebar: its icon is at the top of the navigation, above the one of the chats (a tab at the bottom of a phone, before the chats), and it fills the sidebar when picked; `'panel'` is a tool of the workbench beside the conversation, as the explorer or the terminal of an IDE: the workbench's `+` and its empty state list it, and it opens as one of its tabs. `'board'` is a card of the board, which a phone brings out with a swipe to the left over its first tab (a button of the navigation elsewhere), for what is good to see at a glance (what runs, what is next): the user takes cards off, puts them back and orders them; render a few lines, no title. `'launcher'` is a section of Quick open, under Recent and Mine. A `sidebar` or `panel` view gets a title and scrolling: render only the content; a `page` scrolls itself (its root `{ height: '100%', overflowY: 'auto' }` when it can be taller than the window). `order` sorts the views, smaller first (default 100). `head` is a component for the top bar in place of the title: for a `sidebar` view, the row at the top of the sidebar (a search, a button to add), or the middle of a page's bar beside the menu and the workbench button. `pages`, on a `sidebar` view, lists the pages it leads to (ids `<package name>/<view name>`; `assistant/assistant` is the double): the navigation leaves them out. `menu`, on a page, returns its actions as sections of `{ key, label, icon?, disabled?, danger?, run }`; it is called each time the menu opens, and the sidebar view that lists the page draws it as a … on hover.
50
+ - `registerView(name, { title, render, icon?, location?, order?, head?, pages?, menu? })`: a view of its own; `render` is a component, `icon` a component that draws an icon of `size` pixels in `currentColor` (take one of `ui.icons`). `location: 'page'` (default) fills the main area, with an icon in the navigation on the left; `'sidebar'` is a list of the sidebar: its icon is at the top of the navigation, above the one of the chats (a tab at the bottom of a phone, before the chats), and it fills the sidebar when picked; `'panel'` is a tool of the workbench beside the conversation, as the explorer or the terminal of an IDE: the workbench's `+` and its empty state list it, and it opens as one of its tabs. `'board'` is a card of the board, which a phone brings out with a swipe to the left over its first tab (a button of the navigation elsewhere), for what is good to see at a glance (what runs, what is next): the user takes cards off, puts them back and orders them; render a few lines, no title. `'launcher'` is a section of Quick open, under Recent and Mine. A `sidebar` or `panel` view gets a title and scrolling: render only the content; a `page` scrolls itself (its root `{ height: '100%', overflowY: 'auto' }` when it can be taller than the window). `order` sorts the views, smaller first (default 100). `head` is a component for the top bar in place of the title: for a `sidebar` view, the row at the top of the sidebar (a search, a button to add), or the middle of a page's bar beside the menu and the workbench button. `pages`, on a `sidebar` view, lists the pages it leads to (ids `<package name>/<view name>`; `assistant/assistant` is the double): the navigation leaves them out. `menu`, on a page, returns its actions as sections of `{ key, label, icon?, disabled?, danger?, run }`; it is called each time the menu opens, and the sidebar view that lists the page draws it as a … on hover. `discover: true` puts a page not used every day under Discover; `mark`, a small component, is drawn at the end of its row there, as WeChat shows the face of who posted last by Moments (a face and a dot, never a count; nothing when there is nothing new).
49
51
  - `registerMessageRenderer(customType, Component)`: shows the messages the pi extension sends with `pi.sendMessage({ customType, content, display: true, details })`; the component gets `{ message }`, `message.details` holds the data.
50
- - `registerCodeRenderer(language, Component)`: draws the fenced blocks of that language (` ```name `) in replies and in `ui.Markdown`, as a card of the package's own: the component gets `{ code, language, closed }`, `closed` false while the reply still streams the block (the code may stop anywhere); when it throws, the block shows as code. The way to have the model show something rather than write it: tell it in a `<ta-…>` section of the system prompt (`before_agent_start` of the pi extension) to write such a block, as `@celljs/ta-glance` does with `ta-glance`. Newer than some Ta apps: `pi.registerCodeRenderer?.(…)`.
52
+ - `registerCodeRenderer(language, Component)`: draws the fenced blocks of that language (` ```name `) in replies and in `ui.Markdown`, as a card of the package's own: the component gets `{ code, language, closed, send }`, `closed` false while the reply still streams the block (the code may stop anywhere); `send(text)` answers the conversation the block is in (not `sendUserMessage`, which reaches the one in front), none in a page's `ui.Markdown`; when it throws, the block shows as code. The way to have the model show something rather than write it: tell it in a `<ta-…>` section of the system prompt (`before_agent_start` of the pi extension) to write such a block, as `@celljs/ta-glance` does with `ta-glance`. Newer than some Ta apps: `pi.registerCodeRenderer?.(…)`.
51
53
  - `registerTool({ name, description, parameters, execute(toolCallId, params) })`: a tool the model can call in the conversations the page opens, which runs in the browser; `parameters` is a JSON schema of an object; `execute` returns the text the model reads, or throws.
52
54
  - `registerToolRenderer((toolName, next) => renderer | undefined)`: how calls of tools read in conversations, as pi's `registerToolRenderer` does in a terminal; for the tools of the package's pi extension, of `registerTool`, or any other. `renderer.renderCall(args)` returns `{ verb, target?, code?, icon? }`: the verb in the language of the page (`ui.language`), what it is on, `code` for a command set in monospace, `icon` a component drawn at `size` pixels before the target (keep one component per target, not a new one each call). Without one a tool shows its name. `next()` is what the resolvers after it would use: return `next()` for the tools that are not yours.
53
55
  - `registerOpener(link => boolean)`: opens what links of replies point to: `{ type: 'file', cwd, path, selection? }` (`selection` is `{ startLine, startColumn?, endLine?, endColumn? }`, from 1), `{ type: 'directory', cwd, path }` or `{ type: 'url', url }`; return `true` when it opened it, else the next opener is asked. @celljs/ta-workspace opens files, directories and pages already; register one only for links the package shows its own way. `registerOpener(opener, { specific: true })` is for links of its own kind only (a link of a share): it is asked first, and also for a link that goes out of Ta (scanned, opened with Cmd or Ctrl, pasted in Quick open).
@@ -55,11 +57,12 @@ export default function (pi) {
55
57
  - `registerComposerAddon({ actions?(conversation), above?, subscribe?(listener) })`: adds to the message box of every conversation (the double's, an agent's, any other): `actions` gives entries of its + menu (`{ key, label, icon?, detail?, run() }`, or `items` for a list shown in its place, entries with `checked` and `group`). Every entry is a tile of the menu's grid, four by two a page that swipes sideways, so more entries never make the menu taller: an icon above a short label (2 to 6 characters in Chinese; a longer one goes in `title`, and `detail` shows on hover only). A setting of the conversation has `setting: true` and its value as `detail`, shown under the label; one that is on or off has `toggle: true` and `checked` (its icon lit, on or off under it; the menu stays open); `above` is a component drawn above the box with `{ conversation }`; `subscribe` tells the boxes to read `actions` again. `conversation` is `{ sessionId, sessionFile?, cwd?, kind: 'double' | 'chat', group?, title? }`.
56
58
  - `registerChatIcon({ icon(chat), subscribe?(listener) })`: an icon for conversations of the package that are no agent (a brief it writes, a question it asks), by `chat.sessionFile`: `{ icon, tint?, archiveDays? }` (`archiveDays`: archived sooner than the user's setting, for a question asked in passing), a tile in the lists and on their notices in place of the letter of the directory; answer at once from what the extension holds, and call the listener when that changes. Newer than some Ta apps: `pi.registerChatIcon?.(…)`.
57
59
  - `registerHomeItems({ items(), subscribe(listener) })`: rows of the double's home, under the double (`{ id, title, detail?, icon, tint?, at?, unseen?, open() }`), for what the user looks at each day (a daily brief): not tasks (`registerTasks`) nor a conversation of the lists alone; `unseen` is the amber dot of a row. The page lists them with `ui.useHomeItems()`. `ui.pinChat(sessionFile, pinned?)` pins a conversation the extension made to the top of the lists, once (the user may unpin it). Both newer than some Ta apps: `pi.registerHomeItems?.(…)`, `pi.ui.pinChat?.(…)`.
58
- - `registerSettings({ title, icon?, rows })`: a section of Ta's settings, after its own, for what the user sets once (a model the extension uses, a choice it makes); `rows` are `{ key, label, description?, render, stacked? }`, `render` the component of the control (beside the label, under it with `stacked`), its value kept with `storage`. Do not add one for what a page of the extension shows anyway.
60
+ - `registerSettings({ title, icon?, rows })`: a section of Ta's settings, after its own, for what the user sets once (a model the extension uses, a choice it makes); `rows` are `{ key, label, description?, render, stacked?, search? }`, `render` the component of the control (beside the label, under it with `stacked`; a `label` of `''` for a panel that says what it is itself, found by `search`), its value kept with `storage`. Do not add one for what a page of the extension shows anyway.
59
61
  - `on(type, handler)`: events of the conversation shown, as pi sends them (`agent_start`, `agent_end`, `message_end`, `tool_execution_end`, ...).
60
- - `sendUserMessage(text)`: sends a message to the conversation shown as if the user typed it; `'/name args'` runs a command of a pi extension.
62
+ - `sendUserMessage(text)`: sends a message to the conversation shown as if the user typed it; `'/name args'` runs a command of a pi extension. What a package sends as the user (this, `server.prompt`, the `send` of a block, `prompt` of its host) says where it came from (`[ta:from <package>]` in its `<context>`), and the conversation shows the package's `pi.title` and `pi.icon` above it.
61
63
  - `switchSession(sessionId, opening?)`: shows another open session of ta serve (an id of `server.listSessions()`) as the conversation; on a phone the drawer closes. Pass a promise of the id for a session still opening (`{ title, cwd }` in `opening` says what it is): it is in front at once, showing that it opens, so a click never waits on the server.
62
64
  - `openChat(sessionFile)`: shows the conversation of a session file of Ta as the lists open it, at once from what the page or the device has, opened again in one round trip when it closed; resolves false when no conversation has it. Prefer it to finding the file with `server.listSavedSessions()` and `switchSession`. Newer than some Ta apps: `pi.openChat?.(file)`.
65
+ - `openLink(url)`: opens a link as a click on a link of a reply does: the openers of extensions first (a link of a share, of an agent's card), else the browser of the workbench. Newer than some Ta apps: `pi.openLink?.(…)`.
63
66
  - `reloadExtensions()`: after the extension installed, imported, turned on or off (`packages.setPackageEnabled(id, enabled)`) or removed a package itself (`packages.installPackage`, `packages.removePackage`), loads the web extensions and the pi extensions of the conversation again, as the end of a reply does. `packages.listPackages()` lists every package Ta loads, with what each holds.
64
67
  - `ui.notify(message, type?)`: a short notice; `type` is `'info'`, `'warning'` or `'error'`. `ui.confirm(title, message?, { confirmLabel?, danger? })` asks before going ahead and resolves with the answer; `danger` for what cannot be undone.
65
68
  - `ui.notifySession({ key, sessionId?, sessionFile?, cwd?, level, text, options?, actions? })`: tells the user what a conversation said, as a messenger tells of a message; `level` is `'ask'` (it needs them), `'failed'` or `'done'`. The page decides how: nothing while they look at that conversation (nor for a task the double follows, unless it asks), on a phone or a tablet nothing pops up (the unread dots of the list and of the Chats tab tell), on a computer a banner with its face and name while the page is in front (a tap opens it; `options` are answers sent as their message, once from whichever page), a notice of the system otherwise. Give each piece of news one `key` on every page; call it with `?.` for an older Ta app. The built-in `ta-notify` already tells of every turn, failure, dialog and `notify_user`: use this only for news of your own.
@@ -75,13 +78,14 @@ export default function (pi) {
75
78
  - `ui.Composer`: the message box of every conversation, with its microphone and its hold to talk, `{ placeholder?, onSend(text), mentions?, mentionLabel?, actions?, voiceSends?, onTalkSent?(), onListening?(listening), working?, onStop?(), after? }`: `mentions` (`{ name, detail? }[]`) is what `@` lists; `actions` are sections of its + menu, entries `{ key, label, icon?, detail?, setting?, toggle?, checked?, insert? | run() }` (`insert` puts text at the caret; tiles, `setting` and `toggle` as above). As the double's box: `voiceSends` sends what the microphone hears at once, `onTalkSent` says a message was said by voice (read its answer aloud with `ui.voice`), `onListening` says the user talks now, `working` makes the send button stop (`onStop`) while nothing is typed, `after` are buttons of the page before the microphone. Use it for any conversation an extension shows, rather than a box of its own. `ui.HoldToTalk` (`{ onSend(text), onEdit?(text), hints?, title?, className?, children }`) is a button held to talk, as the bar of the message box: the page dims and listens with its own recognizer (the app's on iOS), 取消 and 编辑 to slide onto; it renders nothing where the page cannot listen. `ui.voice` (`canListen()`, `canSpeak()`, `speak(text, onEnd?)`, `hush()`) reads aloud in the voice of the settings. Never a `SpeechRecognition` or `speechSynthesis` of your own. A page that is a conversation may take a message from another extension: `ui.useView(id).send?.(text)` (the double's page, `assistant/assistant`, has it; its answer comes as the view's `preview`). `ui.Markdown` (`{ text }`) renders messages as the conversations do. `ui.Empty` (`{ title, hint?, compact?, tone?, picture?, children? }`) is what an empty list or view shows, as Ta's own lists: a short title without a full stop, at most one quieter hint, centered in its parent (a column of flex); `compact` in a menu, picker or dialog; `picture` above it where seeing what will be there helps (a first page, a list the user fills). Use it rather than text of your own. `ui.Picture` (`{ width?, height?, frame?, className?, children }`, 160 by 96 in a rounded frame unless told) is a small picture as Ta's own: draw a few `rect`, `circle`, `path` and `text` in it with the classes `ta-pic-pane` (a surface), `ta-pic-line` (a bar of text), `ta-pic-box` (an outline), `ta-pic-accent` (what it is about), `ta-pic-mark` (green), `ta-pic-soft` (half of it), `ta-pic-dot`, `ta-pic-bad` (red), `ta-pic-path` (a dashed way), `ta-pic-stroke` (a green line), `ta-pic-tick` (a line on green) and `ta-pic-text` (code), never colors of your own, so it follows the theme. `ui.PictureCards` (`{ cards, columns?, compactColumns? }`, cards `{ key, picture, label, hint?, title?, disabled?, onPick() }`) is a row of them to pick from, as the suggestions of an empty conversation. `ui.Dialog` (`{ title, onClose, children }`) is a dialog over the whole page, as Ta's own: use it to make or change things rather than a form in a sidebar.
76
79
  - `ui.usePages()`: a React hook, every page there is (`{ id, extension, title, icon?, state, onOpen, place, usedAt?, source?, temporary? }`), what Quick open lists; `ui.stopExtension(name)` stops one that started on open, `ui.forgetPage(id)` takes one out of Recent. `openTemporary(source, 'link')` opens a package of npm or Git without installing it and shows its first page: ask the user first. `ui.useContextMenu()`: a React hook, `[menu, open]`: render `menu`, and call `open(event, sections)` from `onContextMenu` (a long press on a touch screen is one), sections of `{ key, label, icon?, disabled?, danger?, run }`. `ui.shareExtension({ title, source?, packageId? })` opens Ta's dialog that shares an extension (a link and its QR code), `ui.openShared(text)` opens such a link after asking, and `registerSearch({ key, title, order?, remote?, search(query, offset), subscribe? })` adds a section to the search of Quick open (entries `{ key, title, detail?, icon?, tint?, action?, open(), menu? }`). `ui.QrCode` (`{ text }`) draws a QR code; `ui.ImageViewer` (`{ src, alt?, className?, onLoad?, onBackground?, onPrevious?, onNext?, autoFocus? }`) shows a picture to zoom and drag, as the previews of the workbench do (it fills a column of flex; `onPrevious` / `onNext` go to the pictures beside it, by side buttons and ← →); `ui.scanCode?.(instructions)`, only in the Ta app, scans one with the camera; `ui.scan?.()` is the Scan of the page itself (Discover, the + of the first list), which opens what the code carries (a computer, a link of an extension, a page, text to copy).
77
80
  - What waits on ta serve says so, so that the user sees the click took: `ui.useBusy()`, a React hook, `[busy, run]`; `run(action)` stays busy until what `action` returns settles and runs nothing else meanwhile (a second click). Mark what waits with the page's classes, which show it only once it took a moment: `ta-busy` on a button with `<span className="ta-spinner ta-busy-mark" />` in it (add `ta-on-brand` on a button of the brand's color), `ta-pending` on a row being taken away, `<span className="ta-spinner ta-later" />` for a spinner of its own. `ui.Switch` (`{ checked, onChange, label, disabled? }`) is the page's switch: an `onChange` that returns a promise moves it at once, its knob turning until done. Both are newer than some Ta apps: `(pi.ui.useBusy ?? fallback)()`, `pi.ui.Switch ?? fallback`.
81
+ - Lists drawn as the page's: `ui.useSessions()` and `ui.useSavedSessions()`, React hooks, the open sessions of ta serve and the conversations saved lately, as the lists of the page have them (never a poll of `server.listSessions()` of your own); `ui.Face` (`{ face?, seed?, size, working?, online? }`, the same for the same `seed` on every device) and `ui.GroupFace` (`{ members, size }`) for who is not Ta; `ui.SwipeRow` for a row a finger swipes for its actions, `ui.SelectCheck` and `ui.SelectBar` for several chosen at once; `ui.Stack` (`{ base, top, open, onClose }`) for what a tap in a list pushes over it. Work the package does for the user is a task: `registerTasks(source)`, listed with the double's by `ui.useTasks()`, removed after asking with `ui.removeTasks(tasks)`. Newer than some Ta apps: `pi.ui.Face ?? fallback`.
78
82
  - `ui.Avatar`: Ta's avatar, the Cell logo, as a component `{ size?, mood?, mark? }`; `mark`, one or two characters, tells agents apart. Use it wherever Ta speaks, and draw Ta no other way.
79
83
  - `ui.icons`: the lucide icons of the page by name (`Plus`, `Hash`, `Search`, `Files`, ...): a web extension cannot import them. Check for one before using it: the list only grows.
80
- - `storage.get(key)` and `storage.set(key, value)`: small JSON values kept on the server for the package, so they stay across browsers and devices; setting `null` removes a key. A package keeps at most 4 MB there. `storage.onChange(keys => ...)` hears keys changed by other pages or the server. `storage.directory(cwd)` has the same methods for values of one directory (use `ui.useCwd()`), such as the folders open in a tree: keep there what belongs to a directory, and in `storage` what belongs to the user.
84
+ - `storage.get(key)` and `storage.set(key, value)`: small JSON values kept on the server for the package, so they stay across browsers and devices; setting `null` removes a key. A package keeps at most 4 MB there. `storage.onChange(keys => ...)` hears keys changed by other pages or the server. `storage.directory(cwd)` has the same methods for values of one directory (use `ui.useCwd()`), such as the folders open in a tree: keep there what belongs to a directory, and in `storage` what belongs to the user. Keys of `storage` that should go to the user's other computers (a best score, preferences) are listed in `"pi": { "sync": ["best"] }` of package.json; the built-in Sync (@celljs/ta-sync) carries them, when the user turned it on. The pages of people the user let into their Ta (the built-in Members, @celljs/ta-team) keep values of their own in `storage`: theirs are not the user's. A call the person may not make fails with the code `CELL_TA_FORBIDDEN` and a message that says what it needs.
81
85
  - `ui.theme` (`'light'` or `'dark'`) and `ui.language` (`'zh-CN'` or `'en-US'`): write the words of the extension in the language of the page.
82
86
  - `files`: the bytes of a file, for what the page cannot load by URL. `files.byUrl` is false when the page is not served by ta serve itself (the app on a phone, a page through a relay): then a URL of `workspace.fileUrl` (an image, a page) does not load, and `files.read(url)` gives `{ type, size, data }` instead — over the WebSocket, sealed end to end. Use it for pictures and pages of the workspace that must show anywhere.
83
87
  - The services of ta serve, for what the rest cannot do, all on its one connection: `server` (sessions: the commands of pi's RPC mode, `listSessions`, `openSession`, `prompt`, ...), `workspace` (files and programs of a directory: `listDirectory`, `readFile`, `writeFile`, `fileUrl`, `findFiles`, `runCommand`), `terminals` (`openTerminal`, `writeTerminal`, ...; output by `onTerminalData`) and `packages` (`listPackages`, `installPackage`, `removePackage`, and for temporary packages `openTemporaryPackage`, `updateTemporaryPackage`, `installTemporaryPackage`).
84
- - `rooms`: rooms shared with other Ta through the relay, end to end (docs/design/ta-link.md 3), for playing or working together: `createRoom({ kind, title, view? })` (`kind` your own, to find your rooms by; `view` the page "Open" shows), `invite(room)` (a link and, with `ui.QrCode`, its code; the owner only), `join(link)` (ask the user first: it only asks the owner, who answers in their own Ta), `listRooms()` (`{ id, kind, title, owner, status, connected, members: [{ member, name, online, self, owner }] }`), `send(room, data, to?)` (JSON, 64 KB, to every other member or one), `getState(room)` and `setState(room, key, value, version?)` (with `version`, only if it is still that one: `{ ok, version }`; read again and set again when `ok` is false), `leave(room)`. `onRoomEvent(event => …, { messages? })` hears `message`, `state`, `request` and `rooms` (read the list again); pass `messages: false` where you only list rooms. Never call `answer` but on the user's word: the Rooms page (@celljs/ta-rooms) asks them. Newer than some Ta apps: `pi.rooms?.…`, `pi.onRoomEvent?.(…)`.
88
+ - `rooms`: rooms shared with other Ta through the relay, end to end (docs/design/ta-link.md 3), for playing or working together: `createRoom({ kind, title, view?, unlisted? })` (`kind` your own, to find your rooms by; `view` the page "Open" shows; `unlisted: true` for a room the extension keeps for itself, which the Rooms page does not list), `invite(room)` (a link and, with `ui.QrCode`, its code; the owner only), `join(link)` (ask the user first: it only asks the owner, who answers in their own Ta), `listRooms()` (`{ id, kind, title, owner, status, connected, members: [{ member, name, online, self, owner }] }`), `send(room, data, to?)` (JSON, 64 KB, to every other member or one), `getState(room)` and `setState(room, key, value, version?)` (with `version`, only if it is still that one: `{ ok, version }`; read again and set again when `ok` is false), `leave(room)`. `onRoomEvent(event => …, { messages? })` hears `message`, `state`, `request` and `rooms` (read the list again); pass `messages: false` where you only list rooms. Never call `answer` but on the user's word: the Rooms page (@celljs/ta-rooms) asks them. Newer than some Ta apps: `pi.rooms?.…`, `pi.onRoomEvent?.(…)`.
85
89
 
86
90
  Look like the page: inherit its font, and use its colors through CSS variables, which follow the light and dark theme: `var(--ta-text)`, `var(--ta-secondary)`, `var(--ta-muted)`, `var(--ta-card)`, `var(--ta-raised)`, `var(--ta-border)`, `var(--ta-accent)`, `var(--ta-red)`; a tile or a letter in a color of its own as `var(--ta-tint-<n>)` under `var(--ta-tint-ink-<n>)`, with `<n>` from 0 to 8 (taken from the colors of the agents' faces: blue, red, yellow, green, orange, violet, teal, pink, sky). Radius 8px for controls. A button is the page's: 32px high, `1px solid var(--ta-border)`, transparent, `font-weight: 500`; a segmented control a track of `var(--ta-raised)` with its chosen segment on `var(--ta-segment)`. Write a font size in px as `calc(13px * var(--ta-font-scale))` (a line height in px too), so that it follows the font size of the settings; the messages of a conversation and its field carry the class `ta-conversation`, which adds the font size of conversations. Keep data the extension must remember with `pi.storage`; `localStorage` only for what belongs to one browser, under keys that start with the package name.
87
91
 
@@ -89,7 +93,7 @@ The two halves talk through the conversation: the web extension sends `/command
89
93
 
90
94
  ## Packages that come with Ta
91
95
 
92
- Ta comes with some packages of its own, which are on until the user turns them off in Settings → Extensions: `@celljs/ta-workspace` (the explorer, search, source control, terminals and browser beside the conversation), `@celljs/ta-channels` (agents and channels), `@celljs/ta-computer-use` (desktop apps through Cua Driver), `@celljs/ta-changes` (the files each reply changed, their diffs, and undo), `@celljs/ta-cron` (prompts that run on a schedule, with the Scheduled page, `/loop`, `/remind`, `/schedule` and the tool `schedule_task`), `@celljs/ta-games` (the Games page, and the ta-game skill: games and game-like extensions on Phaser and Three.js, the engines of the page, `ui.Game` and `ui.Game3D`), `@celljs/ta-bots` (bots of WeChat and WeCom connected to the double, an agent or a conversation, with the tool `bot_send_file`), `@celljs/ta-agents` (other coding agents such as CodeBuddy Code, Claude Code and Codex as models), `@celljs/ta-manual` (the User manual page under Discover and the ta-manual skill: how to use Ta, a picture and a sentence for each step), `@celljs/ta-launcher` (Quick open: Recent and Mine, and links of extensions opened without installing), `@celljs/ta-share` (conversations, pages and files shared by links, My shares, and the tool `share_link`), `@celljs/ta-rooms` (the Rooms page under Discover: who asks to join, the user's rooms and Ta friends, and links that invite) and `@celljs/ta-extensions` (this skill, and the Extensions page in the navigation, which lists the user's packages to change, export or remove and imports others). Do not copy or change them; build a new package for something new. The web page calls packages "extensions": use that word with the user.
96
+ Ta comes with some packages of its own, which are on until the user turns them off in Settings → Extensions: `@celljs/ta-workspace` (the explorer, search, source control, terminals and browser beside the conversation), `@celljs/ta-channels` (agents and channels), `@celljs/ta-computer-use` (desktop apps through Cua Driver), `@celljs/ta-changes` (the files each reply changed, their diffs, and undo), `@celljs/ta-cron` (prompts that run on a schedule, with the Scheduled page, `/loop`, `/remind`, `/schedule` and the tool `schedule_task`), `@celljs/ta-games` (the Games page, and the ta-game skill: games and game-like extensions on Phaser and Three.js, the engines of the page, `ui.Game` and `ui.Game3D`), `@celljs/ta-bots` (bots of WeChat and WeCom connected to the double, an agent or a conversation, with the tool `bot_send_file`), `@celljs/ta-agents` (other coding agents such as CodeBuddy Code, Claude Code and Codex as models), `@celljs/ta-manual` (the User manual page under Discover and the ta-manual skill: how to use Ta, a picture and a sentence for each step), `@celljs/ta-launcher` (Quick open: Recent and Mine, and links of extensions opened without installing), `@celljs/ta-share` (conversations, pages and files shared by links, My shares, and the tool `share_link`), `@celljs/ta-moments` (Moments under Discover: posts of the user's Ta friends to see and take, Add friend, and the tool `draft_moment`), `@celljs/ta-rooms` (the Rooms page under Discover: who asks to join, the user's rooms and Ta friends, and links that invite) and `@celljs/ta-extensions` (this skill, and the Extensions page in the navigation, which lists the user's packages to change, export or remove and imports others). Do not copy or change them; build a new package for something new. The web page calls packages "extensions": use that word with the user.
93
97
 
94
98
  A web extension can read and drive the scheduled tasks of `@celljs/ta-cron`, to show what a task finds in a page of its own: `pi.packages.callPackageHost('@celljs/ta-cron', method, params)` with `list` (the tasks: `{ id, name, prompt, schedule, cwd, enabled, nextRunAt?, lastRunAt?, lastStatus?, runCount, failCount }`), `get` `[id]`, `runs` `[id, limit?]` (newest first: `{ id, status, trigger, startedAt, endedAt?, summary?, error?, sessionFile? }`, `status` one of `running`, `success`, `error`, `missed`; `summary` is the last answer of the run, at most 4000 characters), `run` `[id]` (now; resolves once it started), `setEnabled` `[id, enabled]` and `update` `[id, patch]` (the fields of the update of `schedule_task`). Read them again when the page shows and every few seconds while a run is `running`; the task keeps its schedule, so the extension schedules nothing of its own.
95
99
 
@@ -99,8 +103,8 @@ Under `ta serve`, with `@celljs/ta-channels` on, you have tools to build a team
99
103
 
100
104
  A package travels as one `.tgz` file: a gzipped tar of its directory, the directory at its top. The Extensions page exports and imports such files; do the same when the user asks in words.
101
105
 
102
- - Export: `tar -czf <dest>/<name>.tgz --exclude node_modules --exclude .git -C ~/.ta/agent/extensions <name>` (or `-C .ta/extensions` for one of the project). Put it where the user said, else in the current directory, and give its path. Others can also install a package published to npm or held in a Git repository: `npm:<name>`, `git:<repository>` or its URL.
103
- - Import a file: `tar -tzf <file>` first: one directory at the top, a `package.json` in it, no path with `..` or starting with `/`. Then `tar -xzf <file> -C ~/.ta/agent/extensions`; a file of `npm pack` has `package/` at the top: extract it to a directory named after its package instead (`mkdir ~/.ta/agent/extensions/<name> && tar -xzf <file> --strip-components 1 -C ~/.ta/agent/extensions/<name>`). Ask before replacing a directory there.
106
+ - Export: `tar -czf <dest>/<name>.tgz --exclude node_modules --exclude .git -C <agent>/extensions <name>` (or `-C .ta/extensions` for one of the project). Put it where the user said, else in the current directory, and give its path. Others can also install a package published to npm or held in a Git repository: `npm:<name>`, `git:<repository>` or its URL.
107
+ - Import a file: `tar -tzf <file>` first: one directory at the top, a `package.json` in it, no path with `..` or starting with `/`. Then `tar -xzf <file> -C <agent>/extensions`; a file of `npm pack` has `package/` at the top: extract it to a directory named after its package instead (`mkdir <agent>/extensions/<name> && tar -xzf <file> --strip-components 1 -C <agent>/extensions/<name>`). Ask before replacing a directory there.
104
108
  - Import by a source: `ta install <source>` (add `-l` for the project alone). When `ta` is not on the PATH, tell the user to paste the source into Import on the Extensions page.
105
109
  - A package runs code on the user's machine: before importing one that the user did not write, read its `package.json` and extension files, and say in one sentence what it does.
106
110
 
@@ -46,13 +46,9 @@ var EN = {
46
46
  placeholder: "Describe the extension, for example: a pomodoro timer beside the conversation",
47
47
  makePrompt: "Make an extension: {text}",
48
48
  changePrompt: "Change the extension {name} (in {root}): {text}",
49
- fromChat: "Make an extension",
50
- fromChatDetail: "Of what this conversation did",
51
- fromChatAsk: "Make what this conversation did an extension, to do it again in a click",
52
- fromChatModel: "In a new conversation, on {model}",
53
49
  settingsTitle: "Making extensions",
54
50
  modelLabel: "Model",
55
- modelHint: "The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task, and of a conversation, which then goes on in a copy of it); unset, the default model",
51
+ modelHint: "The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task); unset, the default model",
56
52
  modelFailed: "The model for making extensions ({model}) cannot be used, so the default one is: {message}",
57
53
  changeTitle: "Change {name}",
58
54
  changePlaceholder: "What should it do differently?",
@@ -175,13 +171,9 @@ var ZH = {
175
171
  placeholder: "描述你想要的扩展,例如:在对话旁放一个番茄钟",
176
172
  makePrompt: "做一个扩展:{text}",
177
173
  changePrompt: "修改扩展 {name}(在 {root}):{text}",
178
- fromChat: "做成扩展",
179
- fromChatDetail: "把这次对话做成工具",
180
- fromChatAsk: "把这次对话做的事做成扩展,以后一键就能再用",
181
- fromChatModel: "用 {model} 在新对话里做",
182
174
  settingsTitle: "做扩展",
183
175
  modelLabel: "模型",
184
- modelHint: "扩展页和各处“做成扩展”开的对话用这个模型;不选就跟随默认模型",
176
+ modelHint: "扩展页和定时任务的“做成扩展”开的对话用这个模型;不选就跟随默认模型",
185
177
  modelFailed: "做扩展的模型({model})现在用不了,已改用默认模型:{message}",
186
178
  changeTitle: "修改 {name}",
187
179
  changePlaceholder: "想让它有什么不同?",
@@ -511,90 +503,6 @@ class ExtensionActions {
511
503
  }
512
504
  }
513
505
 
514
- // web-src/context.ts
515
- function icon(pi, name, fallback = "Square") {
516
- return pi.ui.icons[name] ?? pi.ui.icons[fallback] ?? (() => null);
517
- }
518
-
519
- // web-src/react.ts
520
- var React;
521
- function bind(react) {
522
- React = react;
523
- }
524
- var idle = () => [false, async (action) => await action()];
525
- function useBusy(ui) {
526
- return (ui.useBusy ?? idle)();
527
- }
528
-
529
- // web-src/composer.tsx
530
- var ConversationExtension;
531
- ((ConversationExtension) => {
532
- ConversationExtension.CONTEXT = [
533
- "The user wants what was done in this conversation made into an extension of Ta, with the ta-package skill, kept in extensions/: a tool that does it again without it being explained again.",
534
- "- Look back over the conversation for what is worth keeping: the task, the steps that worked, the inputs that change from one time to the next, and what came out.",
535
- "- The inputs become a form or a few buttons, the steps a command or a tool of its pi extension (or a prompt it sends), and the results a view that suits them: a page, a card of the board, or the view of a message, rather than plain text.",
536
- "- Leave out what was only tried and dropped. When the conversation holds nothing to make a tool of, say so and ask what the extension should do."
537
- ].join(`
538
- `);
539
- function message(language) {
540
- return `<context>
541
- ${ConversationExtension.CONTEXT}
542
- </context>
543
- ${ExtensionWords.of(language).fromChatAsk}`;
544
- }
545
- ConversationExtension.message = message;
546
- })(ConversationExtension ||= {});
547
- function composerAddon(pi) {
548
- let model;
549
- const listeners = new Set;
550
- const read = () => void MakeModel.get(pi).then((next) => {
551
- if (next !== model) {
552
- model = next;
553
- for (const listener of listeners) {
554
- listener();
555
- }
556
- }
557
- });
558
- read();
559
- pi.storage.onChange((keys) => keys.includes(MAKE_MODEL_KEY) && read());
560
- const failed = (error) => pi.ui.notify(error instanceof Error ? error.message : String(error), "error");
561
- const ask = () => ({ clientMessageId: `ta-extensions:conversation:${Date.now()}`, message: ConversationExtension.message(pi.ui.language) });
562
- const send = async (conversation) => {
563
- if (!await MakeModel.get(pi)) {
564
- await pi.server.prompt(conversation.sessionId, { ...ask(), streamingBehavior: "followUp" });
565
- return;
566
- }
567
- const cwd = conversation.cwd ?? (await pi.server.getServerInfo()).cwd;
568
- const { entries } = await pi.server.getEntries(conversation.sessionId);
569
- const last = entries.at(-1)?.id;
570
- const { sessionFile } = last ? await pi.server.forkToFile(conversation.sessionId, last, "at") : { sessionFile: undefined };
571
- const sessionId = MakeModel.open(pi, { cwd, sessionFile });
572
- await pi.switchSession(sessionId, { title: ExtensionWords.of(pi.ui.language).fromChat, cwd });
573
- await pi.server.prompt(await sessionId, ask());
574
- };
575
- return {
576
- subscribe: (listener) => {
577
- listeners.add(listener);
578
- return () => listeners.delete(listener);
579
- },
580
- actions: (conversation) => {
581
- const words = ExtensionWords.of(pi.ui.language);
582
- const Sparkles = icon(pi, "Sparkles");
583
- return [
584
- {
585
- key: "make-extension",
586
- label: words.fromChat,
587
- detail: model ? ExtensionWords.fill(words.fromChatModel, { model: model.slice(model.indexOf("/") + 1) }) : words.fromChatDetail,
588
- icon: /* @__PURE__ */ React.createElement(Sparkles, {
589
- size: 16
590
- }),
591
- run: () => void send(conversation).catch(failed)
592
- }
593
- ];
594
- }
595
- };
596
- }
597
-
598
506
  // web-src/market-store.ts
599
507
  class MarketStore {
600
508
  pi;
@@ -912,19 +820,70 @@ var TaHostUtil;
912
820
  TaHostUtil2.WAIT_MS = 1000;
913
821
  function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
914
822
  return new Promise((resolve) => {
823
+ let heard = false;
824
+ let answered = false;
915
825
  const timer = setTimeout(() => resolve(undefined), waitMs);
916
826
  const request = {
917
827
  name,
828
+ heard: () => {
829
+ heard = true;
830
+ },
918
831
  resolve: (answer) => {
832
+ answered = true;
919
833
  clearTimeout(timer);
920
834
  resolve(answer);
921
835
  }
922
836
  };
923
837
  events.emit(TA_HOST_EVENT, request);
838
+ if (!heard && !answered) {
839
+ clearTimeout(timer);
840
+ resolve(undefined);
841
+ }
924
842
  });
925
843
  }
926
844
  TaHostUtil2.reach = reach;
927
845
  })(TaHostUtil || (TaHostUtil = {}));
846
+ var TA_ASK_ENTRY = "ta-ask";
847
+ var TaAskUtil;
848
+ (function(TaAskUtil2) {
849
+ const LENGTH = 120;
850
+ function entry(question) {
851
+ const line = question.replace(/\s+/g, " ").trim();
852
+ return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
853
+ }
854
+ TaAskUtil2.entry = entry;
855
+ function asking(entries) {
856
+ var _a;
857
+ for (let i = entries.length - 1;i >= 0; i--) {
858
+ const entry2 = entries[i];
859
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
860
+ return;
861
+ }
862
+ if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
863
+ return read(entry2);
864
+ }
865
+ }
866
+ return;
867
+ }
868
+ TaAskUtil2.asking = asking;
869
+ function next(asked, entry2) {
870
+ var _a;
871
+ if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
872
+ return;
873
+ }
874
+ return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
875
+ }
876
+ TaAskUtil2.next = next;
877
+ function read(found) {
878
+ var _a;
879
+ const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
880
+ if (typeof question !== "string" || !question.trim()) {
881
+ return;
882
+ }
883
+ const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
884
+ return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
885
+ }
886
+ })(TaAskUtil || (TaAskUtil = {}));
928
887
  // ../ta-protocol/esm/common/ta-protocol.js
929
888
  var TaServer = Symbol("TaServer");
930
889
  var TaClient = Symbol("TaClient");
@@ -962,7 +921,34 @@ ${message}`;
962
921
  return message.replace(BLOCK, "");
963
922
  }
964
923
  TaMessageContext2.strip = strip;
924
+ function read(message) {
925
+ var _a;
926
+ const block = (_a = BLOCK.exec(message)) === null || _a === undefined ? undefined : _a[0];
927
+ return block === null || block === undefined ? undefined : block.replace(/^<context>\n?/, "").replace(/\n?<\/context>\n?$/, "");
928
+ }
929
+ TaMessageContext2.read = read;
965
930
  })(TaMessageContext || (TaMessageContext = {}));
931
+ var TaMessageSource;
932
+ (function(TaMessageSource2) {
933
+ TaMessageSource2.DOUBLE = "ta:double";
934
+ const LINE = /^\[ta:from ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
935
+ function mark(message, from, detail) {
936
+ if (/^[/!]/.test(message) || of(message)) {
937
+ return message;
938
+ }
939
+ const line = `[ta:from ${from}${detail ? ` ${detail.replace(/[\]\n]/g, " ")}` : ""}]`;
940
+ const context = TaMessageContext.read(message);
941
+ return TaMessageContext.wrap(context === undefined ? line : `${context}
942
+ ${line}`, TaMessageContext.strip(message));
943
+ }
944
+ TaMessageSource2.mark = mark;
945
+ function of(message) {
946
+ const context = TaMessageContext.read(message);
947
+ const match = context === undefined ? null : LINE.exec(context);
948
+ return match ? { from: match[1], ...match[2] ? { detail: match[2].trim() } : {} } : undefined;
949
+ }
950
+ TaMessageSource2.of = of;
951
+ })(TaMessageSource || (TaMessageSource = {}));
966
952
  var TaImageNote;
967
953
  (function(TaImageNote2) {
968
954
  const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
@@ -1083,6 +1069,85 @@ var TaSkillUse;
1083
1069
  }
1084
1070
  TaSkillUse2.command = command;
1085
1071
  })(TaSkillUse || (TaSkillUse = {}));
1072
+ // ../ta-protocol/esm/common/team-protocol.js
1073
+ var TA_UNDECLARED = "extensions.install";
1074
+ var TaPermissionUtil;
1075
+ (function(TaPermissionUtil2) {
1076
+ function read(pi) {
1077
+ const given = pi === null || pi === undefined ? undefined : pi.permissions;
1078
+ const map = (value) => value && typeof value === "object" && !Array.isArray(value) ? Object.fromEntries(Object.entries(value).filter((entry) => typeof entry[1] === "string")) : undefined;
1079
+ const host2 = map(given === null || given === undefined ? undefined : given.host);
1080
+ const tools = map(given === null || given === undefined ? undefined : given.tools);
1081
+ return { ...host2 ? { host: host2 } : {}, ...tools ? { tools } : {} };
1082
+ }
1083
+ TaPermissionUtil2.read = read;
1084
+ function host(manifest, method, kind) {
1085
+ var _a, _b, _c, _d;
1086
+ const host2 = (_a = manifest === null || manifest === undefined ? undefined : manifest.host) !== null && _a !== undefined ? _a : {};
1087
+ const own = (key) => Object.prototype.hasOwnProperty.call(host2, key) ? host2[key] : undefined;
1088
+ return (_d = (_c = (_b = kind ? own(`${method}:${kind}`) : undefined) !== null && _b !== undefined ? _b : own(method)) !== null && _c !== undefined ? _c : own("*")) !== null && _d !== undefined ? _d : TA_UNDECLARED;
1089
+ }
1090
+ TaPermissionUtil2.host = host;
1091
+ })(TaPermissionUtil || (TaPermissionUtil = {}));
1092
+ var action = (id, en, zh, more = {}) => ({
1093
+ id,
1094
+ area: id.split(".")[0],
1095
+ title: { en, "zh-CN": zh },
1096
+ ...more
1097
+ });
1098
+ var TA_ACTIONS = [
1099
+ action("chat.view", "See conversations", "查看对话"),
1100
+ action("chat.send", "Send in conversations", "在对话里发消息"),
1101
+ action("chat.create", "Start conversations", "新建对话"),
1102
+ action("chat.stop", "Stop a reply", "停止回复"),
1103
+ action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
1104
+ action("chat.share", "Share by a link", "生成分享链接"),
1105
+ action("agent.view", "See agents", "查看智能体"),
1106
+ action("agent.use", "Talk with agents", "和智能体对话"),
1107
+ action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
1108
+ action("channel.view", "See channels", "查看频道"),
1109
+ action("channel.post", "Post in channels", "在频道里发言"),
1110
+ action("channel.manage", "Create and change channels", "新建、管理频道"),
1111
+ action("task.view", "See tasks", "查看任务"),
1112
+ action("task.create", "Hand out tasks", "派任务"),
1113
+ action("task.manage", "Take over and stop tasks", "接管、停止任务"),
1114
+ action("files.read", "Read files", "读文件", { scoped: true }),
1115
+ action("files.write", "Change files", "改文件", { scoped: true }),
1116
+ action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
1117
+ action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
1118
+ action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
1119
+ action("models.use", "Use the models", "使用模型"),
1120
+ action("models.manage", "Sign in to models", "登录和更换模型账号"),
1121
+ action("cron.view", "See scheduled tasks", "查看定时任务"),
1122
+ action("cron.manage", "Change scheduled tasks", "管理定时任务"),
1123
+ action("extensions.use", "Use extensions", "使用扩展"),
1124
+ action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
1125
+ action("settings.view", "See settings", "查看设置"),
1126
+ action("settings.manage", "Change settings", "修改设置"),
1127
+ action("members.view", "See members", "查看成员"),
1128
+ action("members.invite", "Invite people", "邀请别人"),
1129
+ action("members.approve", "Answer requests", "处理申请"),
1130
+ action("members.roles", "Change roles and members", "管理角色和成员"),
1131
+ action("audit.view", "See the record", "查看记录")
1132
+ ];
1133
+ var TaActionUtil;
1134
+ (function(TaActionUtil2) {
1135
+ const byId = new Map(TA_ACTIONS.map((one) => [one.id, one]));
1136
+ function info(id) {
1137
+ return byId.get(id);
1138
+ }
1139
+ TaActionUtil2.info = info;
1140
+ function title(id, language) {
1141
+ const found = byId.get(id);
1142
+ return found ? language.startsWith("zh") ? found.title["zh-CN"] : found.title.en : id;
1143
+ }
1144
+ TaActionUtil2.title = title;
1145
+ function inside(dir, path) {
1146
+ const base = dir.replace(/\/+$/, "");
1147
+ return path === base || path.startsWith(`${base}/`) || base === "";
1148
+ }
1149
+ TaActionUtil2.inside = inside;
1150
+ })(TaActionUtil || (TaActionUtil = {}));
1086
1151
  // ../ta-protocol/esm/common/workspace-protocol.js
1087
1152
  var TaWorkspaceServer = Symbol("TaWorkspaceServer");
1088
1153
  var TaTerminalServer = Symbol("TaTerminalServer");
@@ -1099,6 +1164,21 @@ var TaExcludedFiles;
1099
1164
  TaExcludedFiles2.filter = filter;
1100
1165
  })(TaExcludedFiles || (TaExcludedFiles = {}));
1101
1166
  var TA_UPLOAD_PART_BYTES = 4 * 1024 * 1024;
1167
+ // web-src/context.ts
1168
+ function icon(pi, name, fallback = "Square") {
1169
+ return pi.ui.icons[name] ?? pi.ui.icons[fallback] ?? (() => null);
1170
+ }
1171
+
1172
+ // web-src/react.ts
1173
+ var React;
1174
+ function bind(react) {
1175
+ React = react;
1176
+ }
1177
+ var idle = () => [false, async (action2) => await action2()];
1178
+ function useBusy(ui) {
1179
+ return (ui.useBusy ?? idle)();
1180
+ }
1181
+
1102
1182
  // web-src/import-dialog.tsx
1103
1183
  function ImportDialog({ pi, actions, onClose }) {
1104
1184
  const words = actions.words;
@@ -1108,10 +1188,10 @@ function ImportDialog({ pi, actions, onClose }) {
1108
1188
  const [over, setOver] = React.useState(false);
1109
1189
  const [busy, setBusy] = React.useState(false);
1110
1190
  const [source, setSource] = React.useState("");
1111
- const run = async (action) => {
1191
+ const run = async (action2) => {
1112
1192
  setBusy(true);
1113
1193
  try {
1114
- if (await action()) {
1194
+ if (await action2()) {
1115
1195
  onClose();
1116
1196
  }
1117
1197
  } finally {
@@ -2594,7 +2674,6 @@ function activate(pi) {
2594
2674
  order: 90
2595
2675
  });
2596
2676
  registerSearches(context);
2597
- pi.registerComposerAddon(composerAddon(pi));
2598
2677
  pi.registerSettings(makeSettings(pi));
2599
2678
  pi.on("agent_end", () => void store.load());
2600
2679
  return removeStyle;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celljs/ta-games",
3
- "version": "4.12.0",
3
+ "version": "4.13.0",
4
4
  "description": "A pi package for Ta: games and game-like extensions on Phaser and Three.js, the game engines of Ta's web page, with the ta-game skill and the Games page",
5
5
  "keywords": [
6
6
  "pi-package"
@@ -55,6 +55,12 @@
55
55
  "host": "./host/index.mjs",
56
56
  "skills": [
57
57
  "./skills"
58
- ]
58
+ ],
59
+ "permissions": {
60
+ "host": {
61
+ "examples": "extensions.use",
62
+ "*": "extensions.install"
63
+ }
64
+ }
59
65
  }
60
66
  }