@celljs/ta 4.10.0 → 4.11.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 (559) hide show
  1. package/README.en.md +3 -1
  2. package/README.md +3 -1
  3. package/dist/cli.mjs +1675 -51
  4. package/dist/gateway.mjs +167 -5
  5. package/dist/pi/CHANGELOG.md +23 -0
  6. package/dist/pi/package.json +1 -1
  7. package/dist/pi/packages/ta-agents/extension/index.mjs +166 -139
  8. package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
  9. package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -2
  10. package/dist/pi/packages/ta-agents/lib/agent-catalog.js +4 -4
  11. package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +6 -0
  12. package/dist/pi/packages/ta-agents/lib/agent-prompt.js +19 -0
  13. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
  14. package/dist/pi/packages/ta-agents/lib/agent-session.js +2 -0
  15. package/dist/pi/packages/ta-agents/lib/agent-streamer.js +7 -0
  16. package/dist/pi/packages/ta-agents/lib/agent-tool.js +3 -2
  17. package/dist/pi/packages/ta-agents/package.json +1 -1
  18. package/dist/pi/packages/ta-bots/extension/index.mjs +31 -299
  19. package/dist/pi/packages/ta-bots/host/index.mjs +143 -1
  20. package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +2 -0
  21. package/dist/pi/packages/ta-bots/lib/bots-protocol.js +3 -1
  22. package/dist/pi/packages/ta-bots/lib/bots-view.js +24 -12
  23. package/dist/pi/packages/ta-bots/lib/composer.js +1 -0
  24. package/dist/pi/packages/ta-bots/lib/extension.js +10 -17
  25. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +1 -0
  26. package/dist/pi/packages/ta-bots/lib/i18n.js +2 -0
  27. package/dist/pi/packages/ta-bots/lib/index.js +2 -0
  28. package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
  29. package/dist/pi/packages/ta-bots/lib/style.js +1 -0
  30. package/dist/pi/packages/ta-bots/lib/text-util.js +8 -1
  31. package/dist/pi/packages/ta-bots/lib/tool-line.d.ts +8 -0
  32. package/dist/pi/packages/ta-bots/lib/tool-line.js +19 -0
  33. package/dist/pi/packages/ta-bots/package.json +1 -1
  34. package/dist/pi/packages/ta-bots/web/index.js +47 -16
  35. package/dist/pi/packages/ta-changes/extension/index.mjs +23 -13
  36. package/dist/pi/packages/ta-changes/lib/card.js +18 -4
  37. package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +0 -4
  38. package/dist/pi/packages/ta-changes/lib/changes-protocol.js +1 -5
  39. package/dist/pi/packages/ta-changes/lib/extension.js +5 -13
  40. package/dist/pi/packages/ta-changes/package.json +1 -1
  41. package/dist/pi/packages/ta-changes/web/index.js +16 -3
  42. package/dist/pi/packages/ta-channels/README.en.md +4 -3
  43. package/dist/pi/packages/ta-channels/README.md +4 -3
  44. package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
  45. package/dist/pi/packages/ta-channels/host/index.mjs +588 -43
  46. package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +19 -0
  47. package/dist/pi/packages/ta-channels/lib/agent-cards.js +58 -0
  48. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -2
  49. package/dist/pi/packages/ta-channels/lib/agent-menu.js +20 -6
  50. package/dist/pi/packages/ta-channels/lib/card.d.ts +27 -0
  51. package/dist/pi/packages/ta-channels/lib/card.js +178 -0
  52. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +65 -13
  53. package/dist/pi/packages/ta-channels/lib/channels-model.js +15 -6
  54. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +31 -2
  55. package/dist/pi/packages/ta-channels/lib/channels-util.js +100 -6
  56. package/dist/pi/packages/ta-channels/lib/channels.d.ts +28 -18
  57. package/dist/pi/packages/ta-channels/lib/channels.js +65 -65
  58. package/dist/pi/packages/ta-channels/lib/create.js +3 -1
  59. package/dist/pi/packages/ta-channels/lib/extension.d.ts +8 -0
  60. package/dist/pi/packages/ta-channels/lib/extension.js +104 -18
  61. package/dist/pi/packages/ta-channels/lib/faces.d.ts +2 -0
  62. package/dist/pi/packages/ta-channels/lib/faces.js +6 -0
  63. package/dist/pi/packages/ta-channels/lib/handoff-view.d.ts +19 -0
  64. package/dist/pi/packages/ta-channels/lib/handoff-view.js +113 -0
  65. package/dist/pi/packages/ta-channels/lib/handoff.d.ts +67 -0
  66. package/dist/pi/packages/ta-channels/lib/handoff.js +114 -0
  67. package/dist/pi/packages/ta-channels/lib/host.d.ts +1 -1
  68. package/dist/pi/packages/ta-channels/lib/host.js +1 -1
  69. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +45 -0
  70. package/dist/pi/packages/ta-channels/lib/i18n.js +90 -0
  71. package/dist/pi/packages/ta-channels/lib/index.js +10 -1
  72. package/dist/pi/packages/ta-channels/lib/member-tools.d.ts +23 -0
  73. package/dist/pi/packages/ta-channels/lib/member-tools.js +56 -0
  74. package/dist/pi/packages/ta-channels/lib/members.js +6 -2
  75. package/dist/pi/packages/ta-channels/lib/notice.d.ts +25 -0
  76. package/dist/pi/packages/ta-channels/lib/notice.js +101 -0
  77. package/dist/pi/packages/ta-channels/lib/room.js +13 -2
  78. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
  79. package/dist/pi/packages/ta-channels/lib/sidebar.js +132 -69
  80. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  81. package/dist/pi/packages/ta-channels/lib/style.js +69 -4
  82. package/dist/pi/packages/ta-channels/lib/team.d.ts +58 -10
  83. package/dist/pi/packages/ta-channels/lib/team.js +159 -38
  84. package/dist/pi/packages/ta-channels/lib/tool-lines.d.ts +22 -0
  85. package/dist/pi/packages/ta-channels/lib/tool-lines.js +113 -0
  86. package/dist/pi/packages/ta-channels/lib/views.d.ts +21 -16
  87. package/dist/pi/packages/ta-channels/lib/views.js +60 -31
  88. package/dist/pi/packages/ta-channels/package.json +2 -1
  89. package/dist/pi/packages/ta-channels/web/index.js +1507 -309
  90. package/dist/pi/packages/ta-computer-use/package.json +6 -1
  91. package/dist/pi/packages/ta-cron/README.en.md +4 -2
  92. package/dist/pi/packages/ta-cron/README.md +4 -2
  93. package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
  94. package/dist/pi/packages/ta-cron/host/index.mjs +24 -3
  95. package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +48 -0
  96. package/dist/pi/packages/ta-cron/lib/chat-task.js +133 -0
  97. package/dist/pi/packages/ta-cron/lib/commands.d.ts +2 -1
  98. package/dist/pi/packages/ta-cron/lib/commands.js +10 -4
  99. package/dist/pi/packages/ta-cron/lib/composer.d.ts +11 -0
  100. package/dist/pi/packages/ta-cron/lib/composer.js +58 -0
  101. package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +10 -3
  102. package/dist/pi/packages/ta-cron/lib/cron-protocol.js +6 -3
  103. package/dist/pi/packages/ta-cron/lib/editor.js +5 -3
  104. package/dist/pi/packages/ta-cron/lib/extension.d.ts +2 -0
  105. package/dist/pi/packages/ta-cron/lib/extension.js +33 -13
  106. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +18 -0
  107. package/dist/pi/packages/ta-cron/lib/i18n.js +36 -0
  108. package/dist/pi/packages/ta-cron/lib/index.js +4 -0
  109. package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -1
  110. package/dist/pi/packages/ta-cron/lib/page.js +12 -0
  111. package/dist/pi/packages/ta-cron/lib/react.d.ts +3 -0
  112. package/dist/pi/packages/ta-cron/lib/react.js +8 -0
  113. package/dist/pi/packages/ta-cron/lib/scheduler.js +3 -2
  114. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  115. package/dist/pi/packages/ta-cron/lib/style.js +11 -13
  116. package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
  117. package/dist/pi/packages/ta-cron/lib/task-util.js +20 -1
  118. package/dist/pi/packages/ta-cron/lib/tasks-view.js +6 -2
  119. package/dist/pi/packages/ta-cron/lib/tool-line.d.ts +9 -0
  120. package/dist/pi/packages/ta-cron/lib/tool-line.js +40 -0
  121. package/dist/pi/packages/ta-cron/lib/tool.d.ts +5 -1
  122. package/dist/pi/packages/ta-cron/lib/tool.js +6 -3
  123. package/dist/pi/packages/ta-cron/package.json +12 -1
  124. package/dist/pi/packages/ta-cron/web/index.js +661 -254
  125. package/dist/pi/packages/ta-extensions/README.en.md +1 -1
  126. package/dist/pi/packages/ta-extensions/README.md +1 -1
  127. package/dist/pi/packages/ta-extensions/host/index.mjs +3 -2
  128. package/dist/pi/packages/ta-extensions/lib/actions.d.ts +4 -0
  129. package/dist/pi/packages/ta-extensions/lib/actions.js +13 -4
  130. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +5 -0
  131. package/dist/pi/packages/ta-extensions/lib/extensions-util.js +10 -0
  132. package/dist/pi/packages/ta-extensions/lib/market-parts.js +8 -2
  133. package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
  134. package/dist/pi/packages/ta-extensions/lib/market-style.js +4 -5
  135. package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +2 -2
  136. package/dist/pi/packages/ta-extensions/lib/market-util.js +2 -2
  137. package/dist/pi/packages/ta-extensions/lib/page.js +12 -7
  138. package/dist/pi/packages/ta-extensions/lib/react.d.ts +3 -0
  139. package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
  140. package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
  141. package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
  142. package/dist/pi/packages/ta-extensions/package.json +6 -1
  143. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +19 -8
  144. package/dist/pi/packages/ta-extensions/web/index.js +191 -22
  145. package/dist/pi/packages/ta-games/README.en.md +47 -0
  146. package/dist/pi/packages/ta-games/README.md +47 -0
  147. package/dist/pi/packages/ta-games/host/index.mjs +65 -0
  148. package/dist/pi/packages/ta-games/lib/games-view.d.ts +16 -0
  149. package/dist/pi/packages/ta-games/lib/games-view.js +77 -0
  150. package/dist/pi/packages/ta-games/lib/host.d.ts +36 -0
  151. package/dist/pi/packages/ta-games/lib/host.js +83 -0
  152. package/dist/pi/packages/ta-games/lib/i18n.d.ts +35 -0
  153. package/dist/pi/packages/ta-games/lib/i18n.js +71 -0
  154. package/dist/pi/packages/ta-games/lib/ideas.d.ts +6 -0
  155. package/dist/pi/packages/ta-games/lib/ideas.js +62 -0
  156. package/dist/pi/packages/ta-games/lib/index.d.ts +7 -0
  157. package/dist/pi/packages/ta-games/lib/index.js +24 -0
  158. package/dist/pi/packages/ta-games/lib/make-game.d.ts +23 -0
  159. package/dist/pi/packages/ta-games/lib/make-game.js +67 -0
  160. package/dist/pi/packages/ta-games/lib/react.d.ts +11 -0
  161. package/dist/pi/packages/ta-games/lib/react.js +16 -0
  162. package/dist/pi/packages/ta-games/lib/style.d.ts +4 -0
  163. package/dist/pi/packages/ta-games/lib/style.js +33 -0
  164. package/dist/pi/packages/ta-games/package.json +60 -0
  165. package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +127 -0
  166. package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/package.json +22 -0
  167. package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/web.js +389 -0
  168. package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/package.json +22 -0
  169. package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/web.js +423 -0
  170. package/dist/pi/packages/ta-games/skills/ta-game/phaser/LICENSE.md +22 -0
  171. package/dist/pi/packages/ta-games/skills/ta-game/phaser/actions-and-utilities/SKILL.md +343 -0
  172. package/dist/pi/packages/ta-games/skills/ta-game/phaser/animations/SKILL.md +481 -0
  173. package/dist/pi/packages/ta-games/skills/ta-game/phaser/audio-and-sound/SKILL.md +453 -0
  174. package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/SKILL.md +497 -0
  175. package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/references/REFERENCE.md +128 -0
  176. package/dist/pi/packages/ta-games/skills/ta-game/phaser/curves-and-paths/SKILL.md +359 -0
  177. package/dist/pi/packages/ta-games/skills/ta-game/phaser/data-manager/SKILL.md +406 -0
  178. package/dist/pi/packages/ta-games/skills/ta-game/phaser/events-system/SKILL.md +497 -0
  179. package/dist/pi/packages/ta-games/skills/ta-game/phaser/filters-and-postfx/SKILL.md +449 -0
  180. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/SKILL.md +478 -0
  181. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/references/REFERENCE.md +76 -0
  182. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-setup-and-config/SKILL.md +485 -0
  183. package/dist/pi/packages/ta-games/skills/ta-game/phaser/geometry-and-math/SKILL.md +497 -0
  184. package/dist/pi/packages/ta-games/skills/ta-game/phaser/graphics-and-shapes/SKILL.md +473 -0
  185. package/dist/pi/packages/ta-games/skills/ta-game/phaser/groups-and-containers/SKILL.md +418 -0
  186. package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/SKILL.md +500 -0
  187. package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/references/REFERENCE.md +372 -0
  188. package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/SKILL.md +474 -0
  189. package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/references/REFERENCE.md +148 -0
  190. package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/SKILL.md +499 -0
  191. package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/references/REFERENCE.md +17 -0
  192. package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-arcade/SKILL.md +468 -0
  193. package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-matter/SKILL.md +499 -0
  194. package/dist/pi/packages/ta-games/skills/ta-game/phaser/render-textures/SKILL.md +441 -0
  195. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scale-and-responsive/SKILL.md +371 -0
  196. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/SKILL.md +450 -0
  197. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/references/REFERENCE.md +78 -0
  198. package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/SKILL.md +417 -0
  199. package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/references/REFERENCE.md +160 -0
  200. package/dist/pi/packages/ta-games/skills/ta-game/phaser/text-and-bitmaptext/SKILL.md +460 -0
  201. package/dist/pi/packages/ta-games/skills/ta-game/phaser/tilemaps/SKILL.md +440 -0
  202. package/dist/pi/packages/ta-games/skills/ta-game/phaser/time-and-timers/SKILL.md +496 -0
  203. package/dist/pi/packages/ta-games/skills/ta-game/phaser/tweens/SKILL.md +414 -0
  204. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v3-to-v4-migration/SKILL.md +430 -0
  205. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/SKILL.md +384 -0
  206. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/references/REFERENCE.md +69 -0
  207. package/dist/pi/packages/ta-games/web/index.js +431 -0
  208. package/dist/pi/packages/ta-glance/README.en.md +11 -0
  209. package/dist/pi/packages/ta-glance/README.md +11 -0
  210. package/dist/pi/packages/ta-glance/extension/index.mjs +67 -0
  211. package/dist/pi/packages/ta-glance/lib/card.d.ts +8 -0
  212. package/dist/pi/packages/ta-glance/lib/card.js +268 -0
  213. package/dist/pi/packages/ta-glance/lib/extension.d.ts +15 -0
  214. package/dist/pi/packages/ta-glance/lib/extension.js +24 -0
  215. package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +9 -0
  216. package/dist/pi/packages/ta-glance/lib/glance-json.js +85 -0
  217. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +7 -0
  218. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +34 -0
  219. package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +98 -0
  220. package/dist/pi/packages/ta-glance/lib/glance-protocol.js +8 -0
  221. package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +6 -0
  222. package/dist/pi/packages/ta-glance/lib/glance-spec.js +204 -0
  223. package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +3 -0
  224. package/dist/pi/packages/ta-glance/lib/glance-util.js +12 -0
  225. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +22 -0
  226. package/dist/pi/packages/ta-glance/lib/i18n.js +41 -0
  227. package/dist/pi/packages/ta-glance/lib/index.d.ts +7 -0
  228. package/dist/pi/packages/ta-glance/lib/index.js +22 -0
  229. package/dist/pi/packages/ta-glance/lib/react.d.ts +8 -0
  230. package/dist/pi/packages/ta-glance/lib/react.js +8 -0
  231. package/dist/pi/packages/ta-glance/lib/style.d.ts +4 -0
  232. package/dist/pi/packages/ta-glance/lib/style.js +164 -0
  233. package/dist/pi/packages/ta-glance/package.json +53 -0
  234. package/dist/pi/packages/ta-glance/web/index.js +933 -0
  235. package/dist/pi/packages/ta-launcher/lib/actions.d.ts +4 -4
  236. package/dist/pi/packages/ta-launcher/lib/actions.js +7 -3
  237. package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +7 -7
  238. package/dist/pi/packages/ta-launcher/lib/launcher-util.js +11 -8
  239. package/dist/pi/packages/ta-launcher/lib/launcher-view.js +13 -7
  240. package/dist/pi/packages/ta-launcher/lib/react.d.ts +3 -0
  241. package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
  242. package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
  243. package/dist/pi/packages/ta-launcher/lib/style.js +6 -4
  244. package/dist/pi/packages/ta-launcher/package.json +1 -1
  245. package/dist/pi/packages/ta-launcher/web/index.js +34 -17
  246. package/dist/pi/packages/ta-manual/README.en.md +10 -0
  247. package/dist/pi/packages/ta-manual/README.md +10 -0
  248. package/dist/pi/packages/ta-manual/lib/i18n.d.ts +15 -0
  249. package/dist/pi/packages/ta-manual/lib/i18n.js +31 -0
  250. package/dist/pi/packages/ta-manual/lib/index.d.ts +7 -0
  251. package/dist/pi/packages/ta-manual/lib/index.js +24 -0
  252. package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +18 -0
  253. package/dist/pi/packages/ta-manual/lib/manual-util.js +40 -0
  254. package/dist/pi/packages/ta-manual/lib/manual-view.d.ts +9 -0
  255. package/dist/pi/packages/ta-manual/lib/manual-view.js +81 -0
  256. package/dist/pi/packages/ta-manual/lib/pictures-a.d.ts +2 -0
  257. package/dist/pi/packages/ta-manual/lib/pictures-a.js +263 -0
  258. package/dist/pi/packages/ta-manual/lib/pictures-b.d.ts +2 -0
  259. package/dist/pi/packages/ta-manual/lib/pictures-b.js +216 -0
  260. package/dist/pi/packages/ta-manual/lib/pictures.d.ts +9 -0
  261. package/dist/pi/packages/ta-manual/lib/pictures.js +16 -0
  262. package/dist/pi/packages/ta-manual/lib/react.d.ts +8 -0
  263. package/dist/pi/packages/ta-manual/lib/react.js +8 -0
  264. package/dist/pi/packages/ta-manual/lib/scene.d.ts +68 -0
  265. package/dist/pi/packages/ta-manual/lib/scene.js +115 -0
  266. package/dist/pi/packages/ta-manual/lib/style.d.ts +4 -0
  267. package/dist/pi/packages/ta-manual/lib/style.js +47 -0
  268. package/dist/pi/packages/ta-manual/lib/topics.d.ts +42 -0
  269. package/dist/pi/packages/ta-manual/lib/topics.js +354 -0
  270. package/dist/pi/packages/ta-manual/package.json +54 -0
  271. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +119 -0
  272. package/dist/pi/packages/ta-manual/web/index.js +2223 -0
  273. package/dist/pi/packages/ta-notify/README.en.md +29 -0
  274. package/dist/pi/packages/ta-notify/README.md +29 -0
  275. package/dist/pi/packages/ta-notify/extension/index.mjs +259 -0
  276. package/dist/pi/packages/ta-notify/host/index.mjs +163 -0
  277. package/dist/pi/packages/ta-notify/lib/ask-card.d.ts +9 -0
  278. package/dist/pi/packages/ta-notify/lib/ask-card.js +40 -0
  279. package/dist/pi/packages/ta-notify/lib/extension.d.ts +24 -0
  280. package/dist/pi/packages/ta-notify/lib/extension.js +102 -0
  281. package/dist/pi/packages/ta-notify/lib/host.d.ts +4 -0
  282. package/dist/pi/packages/ta-notify/lib/host.js +9 -0
  283. package/dist/pi/packages/ta-notify/lib/i18n.d.ts +31 -0
  284. package/dist/pi/packages/ta-notify/lib/i18n.js +63 -0
  285. package/dist/pi/packages/ta-notify/lib/index.d.ts +8 -0
  286. package/dist/pi/packages/ta-notify/lib/index.js +29 -0
  287. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +74 -0
  288. package/dist/pi/packages/ta-notify/lib/notify-protocol.js +23 -0
  289. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +21 -0
  290. package/dist/pi/packages/ta-notify/lib/notify-service.js +75 -0
  291. package/dist/pi/packages/ta-notify/lib/notify-util.d.ts +39 -0
  292. package/dist/pi/packages/ta-notify/lib/notify-util.js +119 -0
  293. package/dist/pi/packages/ta-notify/lib/react.d.ts +8 -0
  294. package/dist/pi/packages/ta-notify/lib/react.js +8 -0
  295. package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +9 -0
  296. package/dist/pi/packages/ta-notify/lib/server-texts.js +22 -0
  297. package/dist/pi/packages/ta-notify/lib/settings.d.ts +8 -0
  298. package/dist/pi/packages/ta-notify/lib/settings.js +85 -0
  299. package/dist/pi/packages/ta-notify/lib/style.d.ts +4 -0
  300. package/dist/pi/packages/ta-notify/lib/style.js +29 -0
  301. package/dist/pi/packages/ta-notify/lib/tool-line.d.ts +9 -0
  302. package/dist/pi/packages/ta-notify/lib/tool-line.js +20 -0
  303. package/dist/pi/packages/ta-notify/lib/tool.d.ts +37 -0
  304. package/dist/pi/packages/ta-notify/lib/tool.js +46 -0
  305. package/dist/pi/packages/ta-notify/lib/watcher.d.ts +15 -0
  306. package/dist/pi/packages/ta-notify/lib/watcher.js +81 -0
  307. package/dist/pi/packages/ta-notify/package.json +55 -0
  308. package/dist/pi/packages/ta-notify/web/index.js +436 -0
  309. package/dist/pi/packages/ta-recall/README.en.md +19 -0
  310. package/dist/pi/packages/ta-recall/README.md +19 -0
  311. package/dist/pi/packages/ta-recall/extension/index.mjs +614 -0
  312. package/dist/pi/packages/ta-recall/host/index.mjs +820 -0
  313. package/dist/pi/packages/ta-recall/lib/brief-card.d.ts +21 -0
  314. package/dist/pi/packages/ta-recall/lib/brief-card.js +67 -0
  315. package/dist/pi/packages/ta-recall/lib/brief-home.d.ts +49 -0
  316. package/dist/pi/packages/ta-recall/lib/brief-home.js +143 -0
  317. package/dist/pi/packages/ta-recall/lib/brief-seen.d.ts +9 -0
  318. package/dist/pi/packages/ta-recall/lib/brief-seen.js +26 -0
  319. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +64 -0
  320. package/dist/pi/packages/ta-recall/lib/brief-util.js +179 -0
  321. package/dist/pi/packages/ta-recall/lib/chat-icons.d.ts +8 -0
  322. package/dist/pi/packages/ta-recall/lib/chat-icons.js +56 -0
  323. package/dist/pi/packages/ta-recall/lib/composer.d.ts +7 -0
  324. package/dist/pi/packages/ta-recall/lib/composer.js +38 -0
  325. package/dist/pi/packages/ta-recall/lib/conversation-index.d.ts +25 -0
  326. package/dist/pi/packages/ta-recall/lib/conversation-index.js +72 -0
  327. package/dist/pi/packages/ta-recall/lib/conversation-util.d.ts +16 -0
  328. package/dist/pi/packages/ta-recall/lib/conversation-util.js +109 -0
  329. package/dist/pi/packages/ta-recall/lib/conversations.d.ts +11 -0
  330. package/dist/pi/packages/ta-recall/lib/conversations.js +46 -0
  331. package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
  332. package/dist/pi/packages/ta-recall/lib/extension.js +131 -0
  333. package/dist/pi/packages/ta-recall/lib/host.d.ts +4 -0
  334. package/dist/pi/packages/ta-recall/lib/host.js +11 -0
  335. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +41 -0
  336. package/dist/pi/packages/ta-recall/lib/i18n.js +83 -0
  337. package/dist/pi/packages/ta-recall/lib/index.d.ts +9 -0
  338. package/dist/pi/packages/ta-recall/lib/index.js +45 -0
  339. package/dist/pi/packages/ta-recall/lib/react.d.ts +11 -0
  340. package/dist/pi/packages/ta-recall/lib/react.js +16 -0
  341. package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +186 -0
  342. package/dist/pi/packages/ta-recall/lib/recall-protocol.js +60 -0
  343. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +42 -0
  344. package/dist/pi/packages/ta-recall/lib/recall-service.js +241 -0
  345. package/dist/pi/packages/ta-recall/lib/search-source.d.ts +7 -0
  346. package/dist/pi/packages/ta-recall/lib/search-source.js +49 -0
  347. package/dist/pi/packages/ta-recall/lib/search-util.d.ts +30 -0
  348. package/dist/pi/packages/ta-recall/lib/search-util.js +167 -0
  349. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +7 -0
  350. package/dist/pi/packages/ta-recall/lib/server-texts.js +17 -0
  351. package/dist/pi/packages/ta-recall/lib/settings.d.ts +4 -0
  352. package/dist/pi/packages/ta-recall/lib/settings.js +77 -0
  353. package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +9 -0
  354. package/dist/pi/packages/ta-recall/lib/skill-card.js +51 -0
  355. package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +19 -0
  356. package/dist/pi/packages/ta-recall/lib/skill-util.js +110 -0
  357. package/dist/pi/packages/ta-recall/lib/stored.d.ts +5 -0
  358. package/dist/pi/packages/ta-recall/lib/stored.js +28 -0
  359. package/dist/pi/packages/ta-recall/lib/style.d.ts +4 -0
  360. package/dist/pi/packages/ta-recall/lib/style.js +48 -0
  361. package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +10 -0
  362. package/dist/pi/packages/ta-recall/lib/tool-line.js +23 -0
  363. package/dist/pi/packages/ta-recall/lib/tool.d.ts +63 -0
  364. package/dist/pi/packages/ta-recall/lib/tool.js +71 -0
  365. package/dist/pi/packages/ta-recall/package.json +55 -0
  366. package/dist/pi/packages/ta-recall/web/index.js +1038 -0
  367. package/dist/pi/packages/ta-rooms/README.en.md +23 -0
  368. package/dist/pi/packages/ta-rooms/README.md +23 -0
  369. package/dist/pi/packages/ta-rooms/lib/dialogs.d.ts +39 -0
  370. package/dist/pi/packages/ta-rooms/lib/dialogs.js +235 -0
  371. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +101 -0
  372. package/dist/pi/packages/ta-rooms/lib/i18n.js +203 -0
  373. package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
  374. package/dist/pi/packages/ta-rooms/lib/index.js +85 -0
  375. package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
  376. package/dist/pi/packages/ta-rooms/lib/members-view.js +64 -0
  377. package/dist/pi/packages/ta-rooms/lib/page.d.ts +105 -0
  378. package/dist/pi/packages/ta-rooms/lib/page.js +306 -0
  379. package/dist/pi/packages/ta-rooms/lib/react.d.ts +8 -0
  380. package/dist/pi/packages/ta-rooms/lib/react.js +8 -0
  381. package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +17 -0
  382. package/dist/pi/packages/ta-rooms/lib/room-view.js +150 -0
  383. package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -0
  384. package/dist/pi/packages/ta-rooms/lib/rooms-page.js +174 -0
  385. package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
  386. package/dist/pi/packages/ta-rooms/lib/style.js +154 -0
  387. package/dist/pi/packages/ta-rooms/package.json +50 -0
  388. package/dist/pi/packages/ta-rooms/web/index.js +1932 -0
  389. package/dist/pi/packages/ta-share/README.en.md +27 -0
  390. package/dist/pi/packages/ta-share/README.md +27 -0
  391. package/dist/pi/packages/ta-share/extension/index.mjs +184 -0
  392. package/dist/pi/packages/ta-share/host/index.mjs +364 -0
  393. package/dist/pi/packages/ta-share/lib/extension.d.ts +15 -0
  394. package/dist/pi/packages/ta-share/lib/extension.js +115 -0
  395. package/dist/pi/packages/ta-share/lib/host.d.ts +4 -0
  396. package/dist/pi/packages/ta-share/lib/host.js +9 -0
  397. package/dist/pi/packages/ta-share/lib/i18n.d.ts +106 -0
  398. package/dist/pi/packages/ta-share/lib/i18n.js +213 -0
  399. package/dist/pi/packages/ta-share/lib/index.d.ts +9 -0
  400. package/dist/pi/packages/ta-share/lib/index.js +77 -0
  401. package/dist/pi/packages/ta-share/lib/page.d.ts +48 -0
  402. package/dist/pi/packages/ta-share/lib/page.js +105 -0
  403. package/dist/pi/packages/ta-share/lib/react.d.ts +8 -0
  404. package/dist/pi/packages/ta-share/lib/react.js +8 -0
  405. package/dist/pi/packages/ta-share/lib/server-texts.d.ts +14 -0
  406. package/dist/pi/packages/ta-share/lib/server-texts.js +52 -0
  407. package/dist/pi/packages/ta-share/lib/share-dialog.d.ts +18 -0
  408. package/dist/pi/packages/ta-share/lib/share-dialog.js +233 -0
  409. package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +86 -0
  410. package/dist/pi/packages/ta-share/lib/share-protocol.js +30 -0
  411. package/dist/pi/packages/ta-share/lib/share-service.d.ts +50 -0
  412. package/dist/pi/packages/ta-share/lib/share-service.js +130 -0
  413. package/dist/pi/packages/ta-share/lib/shared-view.d.ts +18 -0
  414. package/dist/pi/packages/ta-share/lib/shared-view.js +225 -0
  415. package/dist/pi/packages/ta-share/lib/shares-page.d.ts +3 -0
  416. package/dist/pi/packages/ta-share/lib/shares-page.js +54 -0
  417. package/dist/pi/packages/ta-share/lib/snapshot.d.ts +30 -0
  418. package/dist/pi/packages/ta-share/lib/snapshot.js +195 -0
  419. package/dist/pi/packages/ta-share/lib/style.d.ts +4 -0
  420. package/dist/pi/packages/ta-share/lib/style.js +111 -0
  421. package/dist/pi/packages/ta-share/package.json +56 -0
  422. package/dist/pi/packages/ta-share/web/index.js +1197 -0
  423. package/dist/pi/packages/ta-workspace/README.md +1 -1
  424. package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
  425. package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +1 -1
  426. package/dist/pi/packages/ta-workspace/lib/browser-common.js +29 -30
  427. package/dist/pi/packages/ta-workspace/lib/browser-tool-line.d.ts +15 -0
  428. package/dist/pi/packages/ta-workspace/lib/browser-tool-line.js +70 -0
  429. package/dist/pi/packages/ta-workspace/lib/editors.js +29 -2
  430. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +13 -2
  431. package/dist/pi/packages/ta-workspace/lib/i18n.js +29 -7
  432. package/dist/pi/packages/ta-workspace/lib/index.js +2 -0
  433. package/dist/pi/packages/ta-workspace/lib/preview.d.ts +10 -1
  434. package/dist/pi/packages/ta-workspace/lib/preview.js +136 -11
  435. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  436. package/dist/pi/packages/ta-workspace/lib/style.js +56 -40
  437. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +15 -4
  438. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +31 -9
  439. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +3 -2
  440. package/dist/pi/packages/ta-workspace/lib/terminal.js +51 -21
  441. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +27 -0
  442. package/dist/pi/packages/ta-workspace/lib/util/preview.js +74 -0
  443. package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +5 -0
  444. package/dist/pi/packages/ta-workspace/lib/util/terminal.js +14 -0
  445. package/dist/pi/packages/ta-workspace/package.json +1 -1
  446. package/dist/pi/packages/ta-workspace/web/index.js +823 -341
  447. package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
  448. package/dist/public/assets/{abnfDiagram-S7VZAUFO-BmIko5tV.js → abnfDiagram-S7VZAUFO-D9uU0Tx2.js} +1 -1
  449. package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-f7Nm7EIo.js} +1 -1
  450. package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-DSAqlcms.js} +1 -1
  451. package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-C0lPIW9g.js} +1 -1
  452. package/dist/public/assets/{browser-DOHZ0JCf.js → browser-WLpgVYno.js} +1 -1
  453. package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-CDcZ7mJq.js} +1 -1
  454. package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-CXPuyqPL.js} +1 -1
  455. package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-Du6JRX1x.js} +1 -1
  456. package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-D592E55X.js} +1 -1
  457. package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-BW2r2SL4.js} +1 -1
  458. package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-C3yoe54R.js} +1 -1
  459. package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-DF8gfYCy.js} +1 -1
  460. package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-C8CRMTv1.js} +1 -1
  461. package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-BDcMKiwj.js} +1 -1
  462. package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-CKJPBygc.js} +1 -1
  463. package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-B3ZWH07L.js} +1 -1
  464. package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-DI-z4UPL.js} +1 -1
  465. package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Bg4-haAc.js} +1 -1
  466. package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-l_SHib3p.js} +1 -1
  467. package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-BINu9tIm.js} +1 -1
  468. package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-BQn-mvV5.js} +1 -1
  469. package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-uvpAu0Ys.js} +1 -1
  470. package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-BIowooW1.js} +1 -1
  471. package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-BTyx1Mh2.js} +1 -1
  472. package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +1 -0
  473. package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-D64EU9I0.js} +1 -1
  474. package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-CN9k6_B9.js} +1 -1
  475. package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-FCbz2-Kk.js} +1 -1
  476. package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-OhHUSI7j.js} +1 -1
  477. package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-Be4xMtp6.js} +1 -1
  478. package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-CmKSs3aG.js} +1 -1
  479. package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-D1C32rMN.js} +1 -1
  480. package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BjoE6JXs.js} +1 -1
  481. package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-B22k4v8R.js} +1 -1
  482. package/dist/public/assets/{dist-acJS-BlA.js → dist-DcBP8Cf6.js} +1 -1
  483. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-Tn-K8-X7.js} +1 -1
  484. package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-Bz4sjRz_.js} +1 -1
  485. package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-COnQsWlN.js} +1 -1
  486. package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-c53dJilq.js} +1 -1
  487. package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-DaFpPPks.js} +1 -1
  488. package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +1 -0
  489. package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-BLxfRHsw.js} +1 -1
  490. package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Md-SavIS.js} +1 -1
  491. package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +1 -0
  492. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-CMSwTghO.js} +1 -1
  493. package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-sNpu01kP.js} +1 -1
  494. package/dist/public/assets/{html-DuzouNES.js → html-C_tKd-uP.js} +1 -1
  495. package/dist/public/assets/{index-B7OYKvCE.js → index-Bn86rI4n.js} +2 -2
  496. package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +1 -0
  497. package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-CwgNj-7i.js} +1 -1
  498. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-BSlzQNMN.js} +1 -1
  499. package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-l3qKw0L-.js} +1 -1
  500. package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-B09LPEnF.js} +1 -1
  501. package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-5SQQn1EX.js} +1 -1
  502. package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-BiW4aJ29.js} +1 -1
  503. package/dist/public/assets/{liquid-Din4CF34.js → liquid-BGyTIIUt.js} +1 -1
  504. package/dist/public/assets/{mdx-DivDuCWI.js → mdx-8tGjz4em.js} +1 -1
  505. package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-CctN5b0z.js} +3 -3
  506. package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-7ERSdZ4-.js} +4 -4
  507. package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-D-GOUwW1.js} +1 -1
  508. package/dist/public/assets/module-DEqsdd00.js +1 -0
  509. package/dist/public/assets/module-TWc52XwT.js +2244 -0
  510. package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-B_9hlk78.js} +3 -3
  511. package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +1 -0
  512. package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-Dmy1fWB3.js} +1 -1
  513. package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
  514. package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +1 -0
  515. package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CXFHLYTg.js} +1 -1
  516. package/dist/public/assets/{python-BQbTTTT5.js → python-e-JK0s5M.js} +1 -1
  517. package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-RQvEpGWO.js} +1 -1
  518. package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +1 -0
  519. package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +1 -0
  520. package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-CDOSPZwX.js} +1 -1
  521. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js} +1 -1
  522. package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-B7NtVofS.js} +1 -1
  523. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-DsDrT0Jf.js} +1 -1
  524. package/dist/public/assets/{razor-DiLk54O0.js → razor-DtSPwumi.js} +1 -1
  525. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-BQh0hFuA.js} +1 -1
  526. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-BUXNAQEF.js} +1 -1
  527. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-05f-N5V_.js} +1 -1
  528. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js} +1 -1
  529. package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-DWhlPvKs.js} +1 -1
  530. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.js +8 -0
  531. package/dist/public/assets/three.module-CeVBJVoU.js +4225 -0
  532. package/dist/public/assets/{timeline-definition-SEUHKTQE-DhQoApff.js → timeline-definition-SEUHKTQE-CMdocOui.js} +1 -1
  533. package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +1 -0
  534. package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +1 -0
  535. package/dist/public/assets/{typescript-COQ1g-up.js → typescript-65jNyipU.js} +1 -1
  536. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-BQTHUX1f.js} +1 -1
  537. package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-BULkVTfA.js} +1 -1
  538. package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +1 -0
  539. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-Cek6l8lz.js} +1 -1
  540. package/dist/public/assets/{xml-BbvtjuaG.js → xml-DWBejfu-.js} +1 -1
  541. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-ujnZQTWA.js} +1 -1
  542. package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CwRCT7q1.js} +1 -1
  543. package/dist/public/index.html +1 -1
  544. package/dist/serve/index.mjs +5853 -2164
  545. package/package.json +32 -25
  546. package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +0 -1
  547. package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +0 -1
  548. package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +0 -1
  549. package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +0 -1
  550. package/dist/public/assets/module-BAQaY56j.js +0 -1
  551. package/dist/public/assets/module-DxRGg3ED.js +0 -1947
  552. package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +0 -1
  553. package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +0 -1
  554. package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +0 -1
  555. package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +0 -1
  556. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +0 -8
  557. package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +0 -1
  558. package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +0 -1
  559. package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +0 -1
@@ -12,6 +12,8 @@ A built-in Ta package (enabled by default but can be toggled in the Web client's
12
12
  - **Channel**: members (agents, with the first being the lead) and messages. Messages are sent to members `@`-mentioned; agents' answers are posted back to the channel, and if they `@` someone in their answer, it is passed on to them. Each agent processes one message at a time. Users can mute members in a channel (`muted`): they do not answer anything in this channel, even if `@`-mentioned; when the lead is muted, messages with no one `@`-mentioned go to the next unmuted member.
13
13
  - **Loop prevention** (`ChannelsUtil.limit`): relaying between agents is at most 3 hops; one message yields at most 8 answers, with at most 2 per agent. When cut off, after this round a light-colored note is appended to the channel ("reached relay limit, waiting for you to continue"), only once per round; the return from `post_to_channel` includes this note too.
14
14
  - **Tools**: each session in Ta (web pages and other clients connected to ta serve) has `create_agent`, `create_channel`, `add_to_channel`, `post_to_channel`, and `list_channels`. When a user specifies a goal ("assemble a team to do the landing page"), Ta creates agents and channels, posts the goal, and waits for answers from each member before replying to the user. When a role is missing from a channel, Ta uses `add_to_channel` to add an existing agent (added after existing members; lead unchanged). The open page marks this channel with a green dot in the sidebar, which disappears when opened. Pausing Ta just stops waiting; agents continue to answer in the channel.
15
+ - **Hand over to…** (WeChat's forward, of work rather than of words): say "give this to @life" in a conversation, or pick Hand over to… in the + of the message box and an agent or a channel; Ta first writes a brief in that conversation (the goal, what is done and decided, what is left or blocks, the files and commands that matter), then hands it over with the tool `hand_off`. An agent gets the brief as a message of its own conversation (starting with "Handed over from 'that conversation'", the session file of the conversation in the `<context>` for the model, to read when the brief is not enough) and goes on; a channel gets it as a message of Ta's, which its lead answers. Neither is waited for: the user follows it there. The conversation it came from keeps a card "Handed over to @life" (the model does not read it) with the brief, Open going to the agent's conversation or the channel. An external agent without Ta's tools writes the brief in a `ta-handoff` block in the turn the + asked for, and the pi extension hands it over. On the server it is `TeamService.handOff` (`web-src/handoff.ts`).
16
+ - **Channel notices and agents' cards** (see `docs/design/ta-social.md`): a channel's notice (decisions, conventions, to-dos) is in the `<context>` of every member's message; the members keep it with the tool `update_channel_notice` as the talk settles things, the user reads and edits it in the bar above the chat, and each change is a line of the channel. Share card… in a member's menu makes the link and QR code of its card (`TeamService.shareAgent`, 30 days, also while the computer is off; its name, face and role, secrets taken out); a card's link opened in Ta adds the agent in the directory picked (`addFromCard`), which first looks at the project and fits its role with `update_my_role`.
15
17
  - **Tasks of the double** (see `docs/design/ta-double.md`): a channel Ta builds with its tools has `by: 'ta'` and the session that built it (`origin`), and is listed as a task of the double (`registerTasks`), not among the user's own channels; the agents it makes are `temporary`, shown with their team until the user keeps them in the members panel or the agent's menu, and one in no channel is listed among the members. This list of the navigation is called "Double": the double's card, the tasks in one list (what waits for you first, then what goes on, then what ended), the members (as contacts, by directory if the user wants), the channels, each section folding (kept in the browser). A team opened from its task shows in the workbench on the right, with "Open in the main area" in its bar. While the double asks first, the team tools ask with `ctx.ui.confirm` before they build a team and before work goes to a channel the user did not let them use. Below, the channels and agents once listed flat are now under "Channels" and "Members".
16
18
  - **UI**: "Agents" at the top of the navigation bar (above "Conversations"; the first bottom tab on a phone) puts the double, channels, and agents together (the double is a built-in page from ta-web, and once enabled is listed at the top, no longer appears separately in the navigation bar); the search box and + are at the top of the sidebar. + → create agent opens a draft page in the main area: first assigns an unused name and avatar, clicking the name in the top bar can rename or pick from 16 avatars, the sidebar has one more line "not started"; the agent is truly created when the first message is sent from the input box (responsibility is generic, what to do is written in this message), then switches to its session and sends the message. + → create channel is a dialog: name, search and check agents (1–12, first checked is lead), create; channel row has lead first, next member in overlapping avatars, lead is labeled beside the name, second line is the most recent message or who's answering; agents are grouped by working directory, second line is "idle" or which channel they're answering in, right side is time of most recent message. Click agent to open its session: it is in front at once, under the agent's name, showing that it opens (`pi.switchSession` takes the promise of the `openAgent` request), and shows as the current conversation once the server opens or finds the session. Hovering over agent row (long-press on touch) shows …, menu has: stop (abort its current answer), restart (open new session), rename, responsibility (edit the role in the system prompt, takes effect in next session), move to… (switch working directory, open new session in that directory), copy working directory, export conversation (Markdown, strip channel context blocks), add to channel, delete (leave all channels it's in, delete channels that only have it, keep the session file); when near the bottom the menu expands upward. Channel is a page in the main area (not in the right workbench), displayed as a group chat: others' messages on the left with avatar and name, user's on the right, consecutive messages are grouped, after a long pause insert a time line; top bar is channel name and member avatars, click avatar to open "Channel Members" (`members`, `location: 'panel'` view, follows the current channel) in the right workbench: lists members, lead has a marker, answering ones are marked green; each row opens that agent's session, hovering (long-press on touch) shows set as lead, mute, restart session (forget earlier conversation, open new session next time it answers, old session stays in conversation list), and remove from channel (at least one left); top has "Add Members" as a searchable agent list, check to add, bottom of list has "New Agent" to open the draft page for creating a new agent; bottom has delete channel (confirm once more, messages deleted too, ongoing answers no longer posted). Input box is the conversation input box (`pi.ui.Composer`), `@` lists members, + allows naming members or adding members (opens the member list for adding); messages use the conversation's Markdown rendering (`pi.ui.Markdown`), `@`-mentioned members are bold.
17
19
 
@@ -26,15 +28,14 @@ Data is stored on the server in `<agentDir>/extension-data/@celljs/ta-channels.j
26
28
  | `queue` | pending answers (job: which agent answers which message, how many hops, which round) and counts per round |
27
29
  | `working` | agents currently answering |
28
30
  | `focus` | channels Ta has created tools for or posted messages to; pages use this to mark them in the sidebar |
29
- | `requests/<id>` / `results/<id>` | requests initiated by the page (create agent, create channel, add channel member, set lead / mute / remove member, delete channel, restart agent session, modify or delete agent, post message as user, open agent session) and server's responses; pages only write `requests/*` |
30
31
 
31
- The page learns of changes via `pi.storage.onChange` and rereads them. Each answer is first recorded as a job in `queue` and removed only after the answer is posted to the channel. After ta serve restarts, it continues processing remaining jobs: jobs that already have an answer (the channel has this agent's reply to that message) are not asked again, and messages already forwarded are not forwarded again, so processed messages do not duplicate. On restart, the one message that was being answered and not yet posted is asked again.
32
+ The page learns of changes via `pi.storage.onChange` and rereads them. To change something (create agent, create channel, add channel member, set lead / mute / remove member, delete channel, restart agent session, modify or delete agent, post message as user, open agent session), a page calls `request` on the server side: this package's web extension with `pi.callHost('request', request)`, other extensions with `pi.packages.callPackageHost('@celljs/ta-channels', 'request', [request])`. `request` is a `TeamRequest` (`web-src/channels-model.ts`); the call returns the result, or throws the reason. Each answer is first recorded as a job in `queue` and removed only after the answer is posted to the channel. After ta serve restarts, it continues processing remaining jobs: jobs that already have an answer (the channel has this agent's reply to that message) are not asked again, and messages already forwarded are not forwarded again, so processed messages do not duplicate. On restart, the one message that was being answered and not yet posted is asked again.
32
33
 
33
34
  ## Limitations
34
35
 
35
36
  - Only ta serve has teams: when running plain `ta` (CLI, without ta serve), the team tools still exist but calling them returns "ta serve required" and does not create or forward anything. When the package's server side fails to start, the tool explains the failure and asks to check ta serve's logs.
36
37
  - Messages with no `@` to anyone (user or Ta) go to the lead, the first unmuted member of the channel; when an agent's answer has no `@` to anyone, relay ends.
37
- - Changes on the page wait for server processing; when ta serve is not running or the package is disabled, operations on the page report "Ta service not responding" after 30 seconds.
38
+ - Changes on the page wait for server processing; when the package is turned off or its server side failed to start, operations on the page fail at once.
38
39
 
39
40
  ## Future
40
41
 
@@ -12,6 +12,8 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 包 关
12
12
  - **频道**:成员(智能体,第一个是负责人)和消息。消息发给其中 `@` 到的成员;智能体的回答贴回频道,它在回答里 `@` 谁就再交给谁。每个智能体一次只处理一条消息。用户可以把成员设为免打扰(`muted`):它在这个频道里什么都不回答,被 `@` 也不回答;负责人免打扰时,没人被 `@` 的消息交给下一位没有免打扰的成员。
13
13
  - **防循环**(`ChannelsUtil.limit`):智能体之间接力最多 3 跳,一条消息引出的回答最多 8 条、每个智能体最多 2 条;被截断时,等这一轮结束后在频道里追加一行淡色说明("已到交接上限,等你继续"),每轮只追加一次,`post_to_channel` 的返回里也带上这句。
14
14
  - **工具**:ta serve 里 Ta 的每个会话(Web 页面里的对话,以及连到 ta serve 的其他客户端)都有 `create_agent`、`create_channel`、`add_to_channel`、`post_to_channel`、`list_channels`。用户说一个目标("组个团队做落地页")时,Ta 建好智能体和频道、把目标贴进去,等各成员回答完再回复用户;频道缺某个角色时,Ta 用 `add_to_channel` 把已有的智能体加进来(加在已有成员之后,负责人不变);开着的页面在侧栏给这个频道标一个绿点,打开后消失。中途停止 Ta 只是不再等待,智能体会在频道里接着回答。
15
+ - **交给…**(参照微信的转发,但转的是工作):对话里说"这个交给 @life",或在输入框的 + 里选"交给…"再挑一个智能体或频道,Ta 先在这个对话里写一份交接摘要(目标、已完成和已决定的、剩下的或卡住的、相关的文件和命令),再用工具 `hand_off` 交出去。交给智能体时,摘要作为一条消息进入它自己的对话(开头是"交接自'某某对话'",原对话的会话文件写在给模型读的 `<context>` 里,摘要不够时它可以去读),它接着干;交给频道时,摘要作为 Ta 的一条消息贴进频道,由负责人回答。两者都不等回答,用户在那边跟进。原对话里留一张"已交给 @life"卡片(模型读不到),显示摘要,点"打开"进入对方的对话或频道。没有 Ta 工具的外部 Agent 在 + 发起的这一轮把摘要写进 `ta-handoff` 代码块,由 pi 扩展交出去。服务端方法是 `TeamService.handOff`(`web-src/handoff.ts`)。
16
+ - **频道公告与智能体名片**(见 `docs/design/ta-social.md`):频道的公告(决定 / 约定 / 待办)放进每个成员每条消息的 `<context>`,成员用工具 `update_channel_notice` 随讨论更新,用户在聊天上方的公告栏查看和编辑,每次改动在频道里留一行提示。成员菜单"分享名片…"生成名片链接和二维码(`TeamService.shareAgent`,30 天,电脑关机也能打开;只带名字、头像和隐去密钥的职责);在 Ta 里打开名片链接,选目录后"加为我的智能体"(`addFromCard`),它先看这个项目,用 `update_my_role` 把职责改得贴合这里。
15
17
  - **分身的任务**(见 `docs/design/ta-double.md`):Ta 用工具建的频道带 `by: 'ta'` 和建它的会话 `origin`,作为分身的任务(`registerTasks`)列出,不进用户自己的"频道"分组;它建的智能体带 `temporary`,只在团队里出现,在成员面板或智能体菜单里"留下"后才成为常驻成员,不在任何频道里的临时智能体也列在成员里。导航栏里这个列表叫"分身":分身卡片、"任务"(一个列表,待你处理的在前,然后进行中、已结束)、"成员"(像通讯录,可选按目录分组)、"频道",各组可折叠(折叠状态存在浏览器本地)。从任务打开的团队显示在右侧工作台,顶栏可"在主区打开"。分身开启"开始任务前先问我"时,建团队前、以及第一次往用户放行过以外的频道派活前,用 `ctx.ui.confirm` 询问。下文的列表描述里,原先平铺的频道和智能体现在分别在"频道"和"成员"分组。
16
18
  - **界面**:导航栏最上面的"智能体"(在"对话"上面,手机上是第一个底部标签)把分身、频道和智能体放在一起(分身是 ta-web 内置的页面,开启后列在最上面,导航栏里不再单独出现):侧栏顶部是搜索框和 +。+ → 新建智能体在主区域打开一个草稿页:先给一个没人用的名字和头像,顶栏点名字可以改名、从 16 个头像里挑,侧栏顶部多一行"还没开工";输入框发出第一条消息时才真正建好智能体(职责是通用的,具体做什么写在这条消息里),随即切到它的会话并发出这条消息。+ → 新建频道是一个弹窗:名称、搜索并勾选智能体(1–12 个,先勾的是负责人)、创建;频道行是负责人在前、下一位成员在后的叠放头像,名称旁标出负责人,第二行是最近一条消息或谁正在回答;智能体按工作目录分组,第二行是"空闲"或正在哪个频道回答,右侧是最近一次发言的时间。点智能体打开它的会话:立即切过去,以智能体的名字显示"正在打开"(`pi.switchSession` 接收 `openAgent` 请求的 Promise),服务端打开或找到会话后显示为当前对话。智能体行悬停(触屏上常显)出现 …,菜单里是:停止(中止它正在进行的回答)、重新开始(开新会话)、重命名、职责(编辑系统提示词里的角色,下一个会话生效)、移至…(换工作目录,在新目录开新会话)、复制工作目录、导出对话(Markdown,去掉频道的上下文块)、加入频道、删除(退出所在频道,只剩它的频道一并删除,会话文件保留);靠近底部时菜单向上展开。频道是主区域的一个页面(不进右侧工作台),以群聊显示:别人的消息在左边带头像和名字,用户的在右边,连续发言合成一组,停顿久了插一行时间;顶栏是频道名和成员头像,点头像在右侧工作台打开"频道成员"(`members`,`location: 'panel'` 的视图,跟着当前频道):列出成员,负责人带标记,正在回答的标绿;每行点开是智能体的会话,悬停(触屏上常显)出现设为负责人、免打扰、重开会话(忘掉之前的对话,下次回答时开新会话,旧会话仍在对话列表里)和移出频道(至少留一位);顶部"添加成员"换成可搜索的智能体列表,勾选后添加,列表底部的"新建智能体"打开新建智能体的草稿页;底部是删除频道(再确认一次,消息一并删除,正在进行的回答不再贴出)。输入框就是对话的输入框(`pi.ui.Composer`),`@` 列出成员,+ 里可以点名成员、添加成员(打开频道成员的添加列表),或"做成扩展"(在频道里请负责人用 ta-package 技能把这里商量和做成的事做成扩展);消息用对话的 Markdown 渲染(`pi.ui.Markdown`),点名的成员加粗。
17
19
 
@@ -26,15 +28,14 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 包 关
26
28
  | `queue` | 还欠着的回答(job:哪个智能体回答哪条消息、第几跳、属于哪一轮)和各轮的计数 |
27
29
  | `working` | 正在回答的智能体 |
28
30
  | `focus` | Ta 用工具建过或发过消息的频道,页面据此在侧栏标出 |
29
- | `requests/<id>` / `results/<id>` | 页面发起的请求(新建智能体、新建频道、添加频道成员、设负责人 / 免打扰 / 移出成员、删除频道、重开智能体的会话、修改或删除智能体、以用户身份发消息、打开智能体的会话)及服务端的回复;页面只写 `requests/*` |
30
31
 
31
- 页面通过 `pi.storage.onChange` 得知变化后重新读取。每个回答先作为 job 记进 `queue`,回答贴进频道后才移除。ta serve 重启后接着处理剩下的 job:已经有回答(频道里有该智能体对这条消息的回复)的 job 不会再问,已经交出去的消息也不会再交一次,所以已处理的消息不会重复转发。重启时正在回答、还没有贴出的那一条,会再问一次。
32
+ 页面通过 `pi.storage.onChange` 得知变化后重新读取。页面要改什么(新建智能体、新建频道、添加频道成员、设负责人 / 免打扰 / 移出成员、删除频道、重开智能体的会话、修改或删除智能体、以用户身份发消息、打开智能体的会话),调用服务端的 `request`:本包的 Web 扩展用 `pi.callHost('request', request)`,其他扩展用 `pi.packages.callPackageHost('@celljs/ta-channels', 'request', [request])`;`request` 的类型是 `TeamRequest`(`web-src/channels-model.ts`),返回结果,出错时抛出原因。每个回答先作为 job 记进 `queue`,回答贴进频道后才移除。ta serve 重启后接着处理剩下的 job:已经有回答(频道里有该智能体对这条消息的回复)的 job 不会再问,已经交出去的消息也不会再交一次,所以已处理的消息不会重复转发。重启时正在回答、还没有贴出的那一条,会再问一次。
32
33
 
33
34
  ## 限制
34
35
 
35
36
  - 只有 ta serve 有团队:单独运行 `ta`(CLI,没有 ta serve)时,团队工具仍然存在,但调用时会返回"需要 ta serve"的说明,不会创建或转发任何东西。包的服务端没能启动时,工具会说明启动失败,请看 ta serve 的日志。
36
37
  - 没有 `@` 任何人的消息(用户或 Ta 发的)交给负责人,即频道的第一个没有免打扰的成员;智能体的回答没有 `@` 谁时,接力到此结束。
37
- - 页面的修改要等服务端处理;Ta 服务(ta serve)没有在运行或包被关掉时,页面上的操作会在 30 秒后报"Ta 服务没有回应"。
38
+ - 页面的修改要等服务端处理;包被关掉或它的服务端没能启动时,页面上的操作会直接报错。
38
39
 
39
40
  ## 以后
40
41
 
@@ -1,3 +1,24 @@
1
+ // ../ta-protocol/esm/common/ta-extension-host.js
2
+ var TA_HOST_EVENT = "ta:host";
3
+ var TaHostUtil;
4
+ (function(TaHostUtil2) {
5
+ TaHostUtil2.WAIT_MS = 1000;
6
+ function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
7
+ return new Promise((resolve) => {
8
+ const timer = setTimeout(() => resolve(undefined), waitMs);
9
+ const request = {
10
+ name,
11
+ resolve: (answer) => {
12
+ clearTimeout(timer);
13
+ resolve(answer);
14
+ }
15
+ };
16
+ events.emit(TA_HOST_EVENT, request);
17
+ });
18
+ }
19
+ TaHostUtil2.reach = reach;
20
+ })(TaHostUtil || (TaHostUtil = {}));
21
+
1
22
  // web-src/channels-model.ts
2
23
  var NAME = "@celljs/ta-channels";
3
24
  var AGENT_MARK = "one of the agents of Ta";
@@ -8,12 +29,10 @@ var Keys;
8
29
  Keys.QUEUE = "queue";
9
30
  Keys.WORKING = "working";
10
31
  Keys.FOCUS = "focus";
11
- Keys.REQUESTS = "requests/";
12
- Keys.RESULTS = "results/";
32
+ Keys.ANSWERED = "answered";
33
+ Keys.CARDS = "cards";
13
34
  Keys.MESSAGES = "messages/";
14
35
  Keys.messages = (channelId) => `${Keys.MESSAGES}${channelId}`;
15
- Keys.request = (id) => `${Keys.REQUESTS}${id}`;
16
- Keys.result = (id) => `${Keys.RESULTS}${id}`;
17
36
  })(Keys ||= {});
18
37
  var USER = "user";
19
38
  var TA = "ta";
@@ -26,6 +45,8 @@ var FACES = 16;
26
45
  var MAX_MEMBERS = 12;
27
46
  var CONTEXT_MESSAGES = 12;
28
47
  var MAX_NAME = 32;
48
+ var MAX_NOTICE = 2000;
49
+ var NOTICE_HEADINGS = { zh: ["决定", "约定", "待办"], en: ["Decisions", "Conventions", "To do"] };
29
50
 
30
51
  // web-src/channels-util.ts
31
52
  var ChannelsUtil;
@@ -282,8 +303,8 @@ var ChannelsUtil;
282
303
  return team.channels.filter((channel) => channel.by !== "ta");
283
304
  }
284
305
  ChannelsUtil.ownChannels = ownChannels;
285
- function pinnedFirst(channels) {
286
- return [...channels.filter((channel) => channel.pinned), ...channels.filter((channel) => !channel.pinned)];
306
+ function pinnedFirst(items) {
307
+ return [...items.filter((item) => item.pinned), ...items.filter((item) => !item.pinned)];
287
308
  }
288
309
  ChannelsUtil.pinnedFirst = pinnedFirst;
289
310
  function removeChannel(team, ref) {
@@ -331,6 +352,11 @@ var ChannelsUtil;
331
352
  if (input.keep === true) {
332
353
  delete agent.temporary;
333
354
  }
355
+ if (input.pinned === true) {
356
+ agent.pinned = true;
357
+ } else if (input.pinned !== undefined) {
358
+ delete agent.pinned;
359
+ }
334
360
  if (input.cwd !== undefined) {
335
361
  const cwd = typeof input.cwd === "string" && input.cwd.trim() ? input.cwd.trim() : undefined;
336
362
  if (cwd !== before.cwd) {
@@ -441,16 +467,39 @@ var ChannelsUtil;
441
467
  `You are ${agent.name}, ${AGENT_MARK}. Your role: ${agent.role}`,
442
468
  "You work with the user, Ta and other agents in channels. A message for you starts with a <context> block: the channel, its members, the recent messages and who speaks to you; answer what follows the block.",
443
469
  "Do the part of the work your role covers with your tools, then answer in a few sentences: your answer is posted to the channel as it is.",
444
- "To hand work to another member, write @ and their name in your answer; name nobody when the work is done or you need the user."
470
+ "To hand work to another member, write @ and their name in your answer; name nobody when the work is done or you need the user.",
471
+ NOTICE_RULE
445
472
  ].join(`
446
473
  `);
447
474
  }
448
475
  ChannelsUtil.systemPrompt = systemPrompt;
476
+ function setNotice(team, input) {
477
+ const before = channelOf(team, input.channel);
478
+ const text = typeof input.text === "string" ? input.text.replace(/\r\n/g, `
479
+ `).trim() : "";
480
+ if (text.length > MAX_NOTICE) {
481
+ throw new Error(`The notice is too long (${text.length} characters, ${MAX_NOTICE} at most): keep it short, and drop to-dos done long ago.`);
482
+ }
483
+ if (text === (before.notice?.text ?? "")) {
484
+ return { team, channel: before, before, changed: false };
485
+ }
486
+ const channel = { ...before };
487
+ if (text) {
488
+ channel.notice = { text, at: input.at ?? Date.now(), by: input.by };
489
+ } else {
490
+ delete channel.notice;
491
+ }
492
+ return { team: { ...team, channels: team.channels.map((other) => other.id === channel.id ? channel : other) }, channel, before, changed: true };
493
+ }
494
+ ChannelsUtil.setNotice = setNotice;
449
495
  function prompt(team, channel, history, message, agent) {
450
496
  const labels = { user: "user", ta: "Ta" };
451
497
  const members = channel.members.map((id) => team.agents.find((other) => other.id === id)).filter((other) => !!other).map((other) => `@${other.name}${other.id === agent.id ? " (you)" : ""}: ${firstLine(other.role)}`);
452
- const before = history.filter((item) => item.id !== message.id && !item.failed).slice(-CONTEXT_MESSAGES);
498
+ const before = history.filter((item) => item.id !== message.id && !item.failed && !item.notice).slice(-CONTEXT_MESSAGES);
453
499
  const lines = [`[#${channel.name}]${channel.topic ? ` ${channel.topic}` : ""}`, "Members:", ...members.map((line) => `- ${line}`)];
500
+ if (channel.notice) {
501
+ lines.push("", "Notice of the channel (follow it; keep it with update_channel_notice):", channel.notice.text);
502
+ }
454
503
  if (before.length > 0) {
455
504
  lines.push("", "Recent messages:", ...before.map((item) => `${authorName(team, item.author, labels)}: ${item.text}`));
456
505
  }
@@ -473,7 +522,8 @@ ${message.text}`;
473
522
  }
474
523
  const name = (id) => team.agents.find((agent) => agent.id === id)?.name ?? id;
475
524
  const agents = team.agents.map((agent) => `- @${agent.name}: ${firstLine(agent.role)}`);
476
- const channels = team.channels.map((channel) => `- #${channel.name}${channel.topic ? ` (${channel.topic})` : ""}: ${channel.members.map((id) => `@${name(id)}`).join(", ")}${channel.muted?.length ? `; muted by the user, answering nothing: ${channel.muted.map((id) => `@${name(id)}`).join(", ")}` : ""}`);
525
+ const channels = team.channels.map((channel) => `- #${channel.name}${channel.topic ? ` (${channel.topic})` : ""}: ${channel.members.map((id) => `@${name(id)}`).join(", ")}${channel.muted?.length ? `; muted by the user, answering nothing: ${channel.muted.map((id) => `@${name(id)}`).join(", ")}` : ""}${channel.notice ? `
526
+ notice: ${channel.notice.text.replace(/\s+/g, " ").slice(0, 300)}` : ""}`);
477
527
  return ["Agents:", ...agents, "", "Channels:", ...channels.length > 0 ? channels : ["none yet"]].join(`
478
528
  `);
479
529
  }
@@ -523,6 +573,209 @@ ${message.text}`;
523
573
  `)[0];
524
574
  }
525
575
  })(ChannelsUtil ||= {});
576
+ var NOTICE_RULE = [
577
+ "A channel may have a notice, in the <context> block: what its members decided, agreed and are to do. Follow it.",
578
+ `When the talk settles a decision or a convention, or adds, assigns or finishes a to-do, update it with update_channel_notice: the whole notice, short, under the headings ### ${NOTICE_HEADINGS.zh.join(" / ")} (### ${NOTICE_HEADINGS.en.join(" / ")} in English), in the language of the channel, to-dos as - [ ] or - [x] with who does them. The lead keeps it most; leave it for small talk.`
579
+ ].join(`
580
+ `);
581
+ var NoticeUtil;
582
+ ((NoticeUtil) => {
583
+ const PARTS = {
584
+ 决定: "decisions",
585
+ decisions: "decisions",
586
+ 约定: "conventions",
587
+ conventions: "conventions",
588
+ 待办: "todo",
589
+ "to do": "todo",
590
+ todo: "todo",
591
+ "to-do": "todo"
592
+ };
593
+ function counts(text) {
594
+ const counts2 = { decisions: 0, conventions: 0, todo: 0, done: 0 };
595
+ let part;
596
+ for (const line of text.split(/\r?\n/)) {
597
+ const heading = /^\s*#{1,6}\s+(.+?)\s*#*\s*$/.exec(line) ?? /^\s*\*\*(.+?)\*\*\s*[::]?\s*$/.exec(line);
598
+ if (heading) {
599
+ part = PARTS[heading[1].replace(/[::]$/, "").trim().toLowerCase()];
600
+ continue;
601
+ }
602
+ const item = /^\s*(?:[-*+]|\d+[.)])\s+(\[( |x|X)\]\s+)?\S/.exec(line);
603
+ if (!part || !item) {
604
+ continue;
605
+ }
606
+ if (part === "todo" && item[2] && item[2] !== " ") {
607
+ counts2.done++;
608
+ } else {
609
+ counts2[part]++;
610
+ }
611
+ }
612
+ return counts2;
613
+ }
614
+ NoticeUtil.counts = counts;
615
+ function firstLine(text) {
616
+ for (const line of text.split(/\r?\n/)) {
617
+ const item = /^\s*(?:[-*+]|\d+[.)])\s+(?:\[[ xX]\]\s+)?(.+)$/.exec(line);
618
+ if (item) {
619
+ return item[1].replace(/[*_`~]+/g, "").trim();
620
+ }
621
+ }
622
+ return text.split(/\r?\n/).find((line) => line.trim() && !/^\s*#/.test(line))?.trim() ?? "";
623
+ }
624
+ NoticeUtil.firstLine = firstLine;
625
+ })(NoticeUtil ||= {});
626
+
627
+ // web-src/handoff.ts
628
+ var HandOff;
629
+ ((HandOff) => {
630
+ HandOff.TOOL = "hand_off";
631
+ HandOff.CARD = "ta-channels-handoff";
632
+ HandOff.BLOCK = "ta-handoff";
633
+ const MARK = /\[ta-handoff:([^\]\s]+)\]/;
634
+ HandOff.DEFINITION = {
635
+ name: HandOff.TOOL,
636
+ label: "Hand off",
637
+ description: "Hands the work of this conversation over to one of the user's agents (@name) or channels (#name), when the user says so (hand it to, give it to, 交给, 转给). The other side does not see this conversation: write the brief it needs to go on, in the user's language: the goal, what is done and decided, what is left or blocks, the files, branches, commands and links that matter. It works on it in its own conversation, which the user follows; you stop working on it here. list_channels lists the team. After the call, say in one line to whom it went.",
638
+ promptSnippet: "Hand the work over to one of the user's agents or channels",
639
+ parameters: {
640
+ type: "object",
641
+ properties: {
642
+ to: { type: "string", description: "@name of an agent or #name of a channel." },
643
+ brief: { type: "string", description: "Complete in itself: the receiver sees only this." }
644
+ },
645
+ required: ["to", "brief"]
646
+ }
647
+ };
648
+ function ref(target) {
649
+ return `${target.kind === "agent" ? "@" : "#"}${target.name}`;
650
+ }
651
+ HandOff.ref = ref;
652
+ function ask(language, to) {
653
+ const fence = "```";
654
+ const context = [
655
+ `[ta-handoff:${to}]`,
656
+ `The user hands the work of this conversation over to ${to}, which does not see this conversation.`,
657
+ `- Write the brief it needs to go on: the goal, what is done and decided, what is left or blocks, the files, branches, commands and links that matter, in the user's language. Leave out what was only tried and dropped.`,
658
+ `- With the tool ${HandOff.TOOL}, call it with to "${to}" and the brief, then say in one line that it went.`,
659
+ `- Without it, say in one line what you hand over, then end your answer with the brief in a fenced block of the language ${HandOff.BLOCK}, which Ta reads to hand it over (a longer fence when the brief has one of its own):`,
660
+ `${fence}${HandOff.BLOCK}`,
661
+ "<the brief>",
662
+ fence,
663
+ `- When the conversation holds nothing to hand over yet, say so and ask what ${to} should do.`
664
+ ].join(`
665
+ `);
666
+ const line = language === "zh-CN" ? `把这件事交给 ${to}` : `Hand this over to ${to}`;
667
+ return `<context>
668
+ ${context}
669
+ </context>
670
+ ${line}`;
671
+ }
672
+ HandOff.ask = ask;
673
+ function asked(text) {
674
+ return MARK.exec(text)?.[1];
675
+ }
676
+ HandOff.asked = asked;
677
+ function find(text) {
678
+ const lines = text.split(/\r?\n/);
679
+ let found;
680
+ for (let index = 0;index < lines.length; index++) {
681
+ const open = /^\s*(`{3,})\s*([\w-]+)\s*$/.exec(lines[index]);
682
+ if (open?.[2] !== HandOff.BLOCK) {
683
+ continue;
684
+ }
685
+ const close = new RegExp(`^\\s*${open[1]}\`*\\s*$`);
686
+ const end = lines.findIndex((line, at) => at > index && close.test(line));
687
+ found = lines.slice(index + 1, end < 0 ? lines.length : end);
688
+ index = end < 0 ? lines.length : end;
689
+ }
690
+ const brief = found?.join(`
691
+ `).trim();
692
+ return brief || undefined;
693
+ }
694
+ HandOff.find = find;
695
+ function message(origin, brief, language) {
696
+ const title = origin.title?.trim() || (language === "zh-CN" ? "一个对话" : "a conversation");
697
+ const head = language === "zh-CN" ? `(交接自“${title}”)` : `(Handed over from “${title}”)`;
698
+ const context = [
699
+ "The user handed you this work from another conversation of theirs, which you do not see; the brief below is all it says. Go on from there in this conversation, which the user follows; ask them when the brief leaves out something you need.",
700
+ origin.sessionFile ? `That conversation is pi's session file ${origin.sessionFile}${origin.cwd ? `, working in ${origin.cwd}` : ""}: read it only when the brief is not enough.` : ""
701
+ ].filter(Boolean).join(`
702
+ `);
703
+ return `<context>
704
+ ${context}
705
+ </context>
706
+ ${head}
707
+
708
+ ${brief.trim()}`;
709
+ }
710
+ HandOff.message = message;
711
+ function channelText(origin, brief, language) {
712
+ const title = origin.title?.trim() || (language === "zh-CN" ? "一个对话" : "a conversation");
713
+ return `${language === "zh-CN" ? `(交接自“${title}”)` : `(Handed over from “${title}”)`}
714
+
715
+ ${brief.trim()}`;
716
+ }
717
+ HandOff.channelText = channelText;
718
+ function serverLanguage(env = typeof process === "undefined" ? {} : process.env) {
719
+ return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || "") ? "zh-CN" : "en";
720
+ }
721
+ HandOff.serverLanguage = serverLanguage;
722
+ function result(target) {
723
+ return `Handed over to ${ref(target)}; it works on it in its own conversation, which the user follows. Do not go on with it here.`;
724
+ }
725
+ HandOff.result = result;
726
+ })(HandOff ||= {});
727
+
728
+ // web-src/member-tools.ts
729
+ var MemberTools;
730
+ ((MemberTools) => {
731
+ function caller(team, call) {
732
+ if (!call.agent) {
733
+ return TA;
734
+ }
735
+ const agent = team.agentOf(call.sessionFile);
736
+ if (!agent) {
737
+ throw new Error("This conversation is no longer one of an agent of the team.");
738
+ }
739
+ return agent.id;
740
+ }
741
+ MemberTools.NOTICE = {
742
+ name: "update_channel_notice",
743
+ label: "Update channel notice",
744
+ description: `Replaces the notice of a channel: what its members decided and agreed, and the to-dos with who does them, which every member reads with each message and follows. Write the whole notice, short (${MAX_NOTICE} characters at most), under the headings ### ${NOTICE_HEADINGS.zh.join(" / ")} (### ${NOTICE_HEADINGS.en.join(" / ")} in English), to-dos as - [ ] or - [x]. Update it when the talk settles something, not for small talk; an empty notice removes it.`,
745
+ parameters: {
746
+ type: "object",
747
+ properties: {
748
+ channel: { type: "string", description: "The name of the channel." },
749
+ notice: { type: "string", description: "The whole notice, in Markdown." }
750
+ },
751
+ required: ["channel", "notice"]
752
+ },
753
+ run: async (team, params, call) => {
754
+ const channel = await team.setNotice({ channel: params.channel, text: params.notice, by: caller(team, call) });
755
+ return channel.notice ? `Updated the notice of #${channel.name}.` : `#${channel.name} has no notice now.`;
756
+ }
757
+ };
758
+ MemberTools.ROLE = {
759
+ name: "update_my_role",
760
+ label: "Update my role",
761
+ description: "Replaces your role, the instructions you work by, as the user asks or as you fit it to a project: the whole role, in the second person. Channels show it from now on; your instructions take it the next time your conversation opens.",
762
+ parameters: {
763
+ type: "object",
764
+ properties: { role: { type: "string", description: "The whole new role." } },
765
+ required: ["role"]
766
+ },
767
+ agentsOnly: true,
768
+ run: async (team, params, call) => {
769
+ if (!call.agent) {
770
+ throw new Error("Only an agent keeps its own role this way; Ta changes an agent when the user asks, in its menu.");
771
+ }
772
+ const agent = await team.updateAgent({ agent: caller(team, call), role: params.role });
773
+ return `Saved the new role of @${agent.name}.`;
774
+ }
775
+ };
776
+ MemberTools.ALL = [MemberTools.NOTICE, MemberTools.ROLE];
777
+ MemberTools.AGENTS_ONLY = MemberTools.ALL.filter((tool) => tool.agentsOnly).map((tool) => tool.name);
778
+ })(MemberTools ||= {});
526
779
 
527
780
  // web-src/team-ask.ts
528
781
  var WORDS = {
@@ -671,24 +924,13 @@ var TeamTools;
671
924
  })(TeamTools ||= {});
672
925
 
673
926
  // web-src/extension.ts
674
- var TA_HOST_EVENT = "ta:host";
675
- var HOST_WAIT_MS = 1000;
676
927
  var NO_SERVER = "The team tools need the Ta service, which runs the agents: start it with `ta serve` and talk to Ta in its web page. In Ta in a terminal there are no agents or channels.";
677
928
  var NO_TEAM = "The team did not start in the Ta service; its log says why.";
678
929
  var NOT_FOR_AGENTS = "Agents do not build teams or post to channels: answer in your reply, and name a member with @ to hand on.";
679
930
  var ASK_FIRST_MARK = "Ask the user before you hand out work";
680
931
  function activate(pi) {
681
932
  let reached;
682
- const reach = () => reached ??= new Promise((resolve) => {
683
- const timer = setTimeout(() => resolve({ answered: false }), HOST_WAIT_MS);
684
- pi.events.emit(TA_HOST_EVENT, {
685
- name: NAME,
686
- resolve: (answer) => {
687
- clearTimeout(timer);
688
- resolve({ answered: true, team: answer.service });
689
- }
690
- });
691
- });
933
+ const reach = () => reached ??= TaHostUtil.reach(pi.events, NAME).then((answer) => ({ answered: !!answer, team: answer?.service }));
692
934
  const isAgent = (ctx) => ctx.getSystemPrompt().includes(AGENT_MARK);
693
935
  const allowed = new Set;
694
936
  pi.on("session_start", () => {
@@ -696,9 +938,27 @@ function activate(pi) {
696
938
  });
697
939
  pi.on("before_agent_start", (_event, ctx) => {
698
940
  if (isAgent(ctx)) {
699
- pi.setActiveTools(pi.getActiveTools().filter((name) => !TeamTools.NAMES.includes(name)));
941
+ pi.setActiveTools(pi.getActiveTools().filter((name) => !TeamTools.NAMES.includes(name) && name !== HandOff.TOOL));
942
+ } else if (pi.getActiveTools().some((name) => MemberTools.AGENTS_ONLY.includes(name))) {
943
+ pi.setActiveTools(pi.getActiveTools().filter((name) => !MemberTools.AGENTS_ONLY.includes(name)));
700
944
  }
701
945
  });
946
+ for (const tool of MemberTools.ALL) {
947
+ pi.registerTool({
948
+ name: tool.name,
949
+ label: tool.label,
950
+ description: tool.description,
951
+ parameters: tool.parameters,
952
+ execute: async (_id, params, _signal, _update, ctx) => {
953
+ const { answered, team: team2 } = await reach();
954
+ if (!team2) {
955
+ throw new Error(answered ? NO_TEAM : NO_SERVER);
956
+ }
957
+ const text = await tool.run(team2, params ?? {}, { agent: isAgent(ctx), sessionFile: ctx.sessionManager.getSessionFile() });
958
+ return { content: [{ type: "text", text }], details: undefined };
959
+ }
960
+ });
961
+ }
702
962
  for (const tool of TeamTools.ALL) {
703
963
  pi.registerTool({
704
964
  name: tool.name,
@@ -709,27 +969,89 @@ function activate(pi) {
709
969
  if (isAgent(ctx)) {
710
970
  throw new Error(NOT_FOR_AGENTS);
711
971
  }
712
- const { answered, team } = await reach();
713
- if (!team) {
972
+ const { answered, team: team2 } = await reach();
973
+ if (!team2) {
714
974
  throw new Error(answered ? NO_TEAM : NO_SERVER);
715
975
  }
716
976
  const input = params ?? {};
717
977
  if (ctx.getSystemPrompt().includes(ASK_FIRST_MARK)) {
718
- const question = TeamAsk.question(tool.name, input, team.state, allowed);
978
+ const question = TeamAsk.question(tool.name, input, team2.state, allowed);
719
979
  if (question && !await ask(ctx, question)) {
720
980
  return { content: [{ type: "text", text: TeamAsk.REFUSED }], details: undefined };
721
981
  }
722
- TeamAsk.allow(tool.name, input, team.state, allowed);
982
+ TeamAsk.allow(tool.name, input, team2.state, allowed);
723
983
  }
724
- const text = await stoppable(tool.run(team, input, { origin: ctx.sessionManager.getSessionFile() }), signal);
984
+ const text = await stoppable(tool.run(team2, input, { origin: ctx.sessionManager.getSessionFile() }), signal);
725
985
  if (tool.name === "create_channel") {
726
- TeamAsk.allow("post_to_channel", { channel: input.name }, team.state, allowed);
986
+ TeamAsk.allow("post_to_channel", { channel: input.name }, team2.state, allowed);
727
987
  }
728
988
  return { content: [{ type: "text", text }], details: undefined };
729
989
  }
730
990
  });
731
991
  }
992
+ const cards = [];
993
+ const team = async () => {
994
+ const { answered, team: team2 } = await reach();
995
+ if (!team2) {
996
+ throw new Error(answered ? NO_TEAM : NO_SERVER);
997
+ }
998
+ return team2;
999
+ };
1000
+ pi.registerTool({
1001
+ ...HandOff.DEFINITION,
1002
+ execute: async (_id, params, _signal, _update, ctx) => {
1003
+ if (isAgent(ctx)) {
1004
+ throw new Error(NOT_FOR_AGENTS);
1005
+ }
1006
+ const brief = typeof params?.brief === "string" ? params.brief : "";
1007
+ const target = await (await team()).handOff(String(params?.to ?? ""), brief, ctx.sessionManager.getSessionFile());
1008
+ cards.push({ target, brief: brief.trim() });
1009
+ return { content: [{ type: "text", text: HandOff.result(target) }], details: undefined };
1010
+ }
1011
+ });
1012
+ pi.on("agent_end", async (event, ctx) => {
1013
+ if (isAgent(ctx)) {
1014
+ return;
1015
+ }
1016
+ try {
1017
+ const to = cards.length === 0 ? HandOffAsk.pending(ctx.sessionManager.getBranch()) : undefined;
1018
+ const brief = to ? [...event.messages].reverse().filter((message) => message.role === "assistant").map((message) => HandOff.find(HandOffAsk.text(message.content))).find((found) => found !== undefined) : undefined;
1019
+ if (to && brief) {
1020
+ cards.push({ target: await (await team()).handOff(to, brief, ctx.sessionManager.getSessionFile()), brief });
1021
+ }
1022
+ } catch (error) {
1023
+ console.error("ta-channels could not hand the work over:", error);
1024
+ }
1025
+ for (const card of cards.splice(0)) {
1026
+ pi.sendMessage({ customType: HandOff.CARD, content: HandOff.ref(card.target), display: true, details: card }, { triggerTurn: false });
1027
+ }
1028
+ });
1029
+ pi.on("context", (event) => {
1030
+ const messages = event.messages.filter((message) => !(message.role === "custom" && message.customType === HandOff.CARD));
1031
+ return messages.length === event.messages.length ? undefined : { messages };
1032
+ });
732
1033
  }
1034
+ var HandOffAsk;
1035
+ ((HandOffAsk) => {
1036
+ function text(content) {
1037
+ if (typeof content === "string") {
1038
+ return content;
1039
+ }
1040
+ return Array.isArray(content) ? content.filter((part) => part?.type === "text" && typeof part.text === "string").map((part) => part.text).join(`
1041
+ `) : "";
1042
+ }
1043
+ HandOffAsk.text = text;
1044
+ function pending(entries) {
1045
+ for (let index = entries.length - 1;index >= 0; index--) {
1046
+ const entry = entries[index];
1047
+ if (entry?.type === "message" && entry.message?.role === "user") {
1048
+ return HandOff.asked(text(entry.message.content));
1049
+ }
1050
+ }
1051
+ return;
1052
+ }
1053
+ HandOffAsk.pending = pending;
1054
+ })(HandOffAsk ||= {});
733
1055
  async function ask(ctx, question) {
734
1056
  return ctx.hasUI ? ctx.ui.confirm(question.title, question.message).catch(() => false) : false;
735
1057
  }