@celljs/ta 4.10.0 → 4.12.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 (589) 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 +27 -0
  6. package/dist/pi/package.json +1 -1
  7. package/dist/pi/packages/ta-agents/extension/index.mjs +359 -155
  8. package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
  9. package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +5 -0
  10. package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -2
  11. package/dist/pi/packages/ta-agents/lib/agent-catalog.js +4 -4
  12. package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +9 -0
  13. package/dist/pi/packages/ta-agents/lib/agent-prompt.js +25 -0
  14. package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +71 -1
  15. package/dist/pi/packages/ta-agents/lib/agent-session.js +177 -17
  16. package/dist/pi/packages/ta-agents/lib/agent-streamer.js +23 -2
  17. package/dist/pi/packages/ta-agents/lib/agent-tool.js +4 -3
  18. package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -1
  19. package/dist/pi/packages/ta-agents/lib/agent-turn.js +26 -3
  20. package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
  21. package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
  22. package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
  23. package/dist/pi/packages/ta-agents/package.json +1 -1
  24. package/dist/pi/packages/ta-bots/extension/index.mjs +31 -299
  25. package/dist/pi/packages/ta-bots/host/index.mjs +143 -1
  26. package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +2 -0
  27. package/dist/pi/packages/ta-bots/lib/bots-protocol.js +3 -1
  28. package/dist/pi/packages/ta-bots/lib/bots-view.js +24 -12
  29. package/dist/pi/packages/ta-bots/lib/composer.js +1 -0
  30. package/dist/pi/packages/ta-bots/lib/extension.js +10 -17
  31. package/dist/pi/packages/ta-bots/lib/i18n.d.ts +1 -0
  32. package/dist/pi/packages/ta-bots/lib/i18n.js +2 -0
  33. package/dist/pi/packages/ta-bots/lib/index.js +2 -0
  34. package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
  35. package/dist/pi/packages/ta-bots/lib/style.js +1 -0
  36. package/dist/pi/packages/ta-bots/lib/text-util.js +8 -1
  37. package/dist/pi/packages/ta-bots/lib/tool-line.d.ts +8 -0
  38. package/dist/pi/packages/ta-bots/lib/tool-line.js +19 -0
  39. package/dist/pi/packages/ta-bots/package.json +1 -1
  40. package/dist/pi/packages/ta-bots/web/index.js +47 -16
  41. package/dist/pi/packages/ta-changes/extension/index.mjs +23 -13
  42. package/dist/pi/packages/ta-changes/lib/card.js +18 -4
  43. package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +0 -4
  44. package/dist/pi/packages/ta-changes/lib/changes-protocol.js +1 -5
  45. package/dist/pi/packages/ta-changes/lib/extension.js +5 -13
  46. package/dist/pi/packages/ta-changes/package.json +1 -1
  47. package/dist/pi/packages/ta-changes/web/index.js +16 -3
  48. package/dist/pi/packages/ta-channels/README.en.md +4 -3
  49. package/dist/pi/packages/ta-channels/README.md +4 -3
  50. package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
  51. package/dist/pi/packages/ta-channels/host/index.mjs +588 -43
  52. package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +19 -0
  53. package/dist/pi/packages/ta-channels/lib/agent-cards.js +58 -0
  54. package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -2
  55. package/dist/pi/packages/ta-channels/lib/agent-menu.js +20 -6
  56. package/dist/pi/packages/ta-channels/lib/card.d.ts +27 -0
  57. package/dist/pi/packages/ta-channels/lib/card.js +178 -0
  58. package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +65 -13
  59. package/dist/pi/packages/ta-channels/lib/channels-model.js +15 -6
  60. package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +31 -2
  61. package/dist/pi/packages/ta-channels/lib/channels-util.js +100 -6
  62. package/dist/pi/packages/ta-channels/lib/channels.d.ts +28 -18
  63. package/dist/pi/packages/ta-channels/lib/channels.js +65 -65
  64. package/dist/pi/packages/ta-channels/lib/create.js +3 -1
  65. package/dist/pi/packages/ta-channels/lib/extension.d.ts +8 -0
  66. package/dist/pi/packages/ta-channels/lib/extension.js +104 -18
  67. package/dist/pi/packages/ta-channels/lib/faces.d.ts +2 -0
  68. package/dist/pi/packages/ta-channels/lib/faces.js +6 -0
  69. package/dist/pi/packages/ta-channels/lib/handoff-view.d.ts +19 -0
  70. package/dist/pi/packages/ta-channels/lib/handoff-view.js +113 -0
  71. package/dist/pi/packages/ta-channels/lib/handoff.d.ts +67 -0
  72. package/dist/pi/packages/ta-channels/lib/handoff.js +114 -0
  73. package/dist/pi/packages/ta-channels/lib/host.d.ts +1 -1
  74. package/dist/pi/packages/ta-channels/lib/host.js +1 -1
  75. package/dist/pi/packages/ta-channels/lib/i18n.d.ts +45 -0
  76. package/dist/pi/packages/ta-channels/lib/i18n.js +90 -0
  77. package/dist/pi/packages/ta-channels/lib/index.js +10 -1
  78. package/dist/pi/packages/ta-channels/lib/member-tools.d.ts +23 -0
  79. package/dist/pi/packages/ta-channels/lib/member-tools.js +56 -0
  80. package/dist/pi/packages/ta-channels/lib/members.js +6 -2
  81. package/dist/pi/packages/ta-channels/lib/notice.d.ts +25 -0
  82. package/dist/pi/packages/ta-channels/lib/notice.js +101 -0
  83. package/dist/pi/packages/ta-channels/lib/room.js +13 -2
  84. package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
  85. package/dist/pi/packages/ta-channels/lib/sidebar.js +160 -79
  86. package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
  87. package/dist/pi/packages/ta-channels/lib/style.js +72 -4
  88. package/dist/pi/packages/ta-channels/lib/team.d.ts +58 -10
  89. package/dist/pi/packages/ta-channels/lib/team.js +159 -38
  90. package/dist/pi/packages/ta-channels/lib/tool-lines.d.ts +22 -0
  91. package/dist/pi/packages/ta-channels/lib/tool-lines.js +113 -0
  92. package/dist/pi/packages/ta-channels/lib/views.d.ts +33 -16
  93. package/dist/pi/packages/ta-channels/lib/views.js +79 -31
  94. package/dist/pi/packages/ta-channels/package.json +2 -1
  95. package/dist/pi/packages/ta-channels/web/index.js +1551 -308
  96. package/dist/pi/packages/ta-computer-use/package.json +6 -1
  97. package/dist/pi/packages/ta-cron/README.en.md +4 -2
  98. package/dist/pi/packages/ta-cron/README.md +4 -2
  99. package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
  100. package/dist/pi/packages/ta-cron/host/index.mjs +24 -3
  101. package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +48 -0
  102. package/dist/pi/packages/ta-cron/lib/chat-task.js +133 -0
  103. package/dist/pi/packages/ta-cron/lib/commands.d.ts +2 -1
  104. package/dist/pi/packages/ta-cron/lib/commands.js +10 -4
  105. package/dist/pi/packages/ta-cron/lib/composer.d.ts +11 -0
  106. package/dist/pi/packages/ta-cron/lib/composer.js +58 -0
  107. package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +10 -3
  108. package/dist/pi/packages/ta-cron/lib/cron-protocol.js +6 -3
  109. package/dist/pi/packages/ta-cron/lib/editor.js +5 -3
  110. package/dist/pi/packages/ta-cron/lib/extension.d.ts +2 -0
  111. package/dist/pi/packages/ta-cron/lib/extension.js +33 -13
  112. package/dist/pi/packages/ta-cron/lib/i18n.d.ts +18 -0
  113. package/dist/pi/packages/ta-cron/lib/i18n.js +36 -0
  114. package/dist/pi/packages/ta-cron/lib/index.js +4 -0
  115. package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -1
  116. package/dist/pi/packages/ta-cron/lib/page.js +12 -0
  117. package/dist/pi/packages/ta-cron/lib/react.d.ts +3 -0
  118. package/dist/pi/packages/ta-cron/lib/react.js +8 -0
  119. package/dist/pi/packages/ta-cron/lib/scheduler.js +3 -2
  120. package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
  121. package/dist/pi/packages/ta-cron/lib/style.js +11 -13
  122. package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
  123. package/dist/pi/packages/ta-cron/lib/task-util.js +20 -1
  124. package/dist/pi/packages/ta-cron/lib/tasks-view.js +6 -2
  125. package/dist/pi/packages/ta-cron/lib/tool-line.d.ts +9 -0
  126. package/dist/pi/packages/ta-cron/lib/tool-line.js +40 -0
  127. package/dist/pi/packages/ta-cron/lib/tool.d.ts +5 -1
  128. package/dist/pi/packages/ta-cron/lib/tool.js +6 -3
  129. package/dist/pi/packages/ta-cron/package.json +12 -1
  130. package/dist/pi/packages/ta-cron/web/index.js +661 -254
  131. package/dist/pi/packages/ta-extensions/README.en.md +1 -1
  132. package/dist/pi/packages/ta-extensions/README.md +1 -1
  133. package/dist/pi/packages/ta-extensions/host/index.mjs +3 -2
  134. package/dist/pi/packages/ta-extensions/lib/actions.d.ts +4 -0
  135. package/dist/pi/packages/ta-extensions/lib/actions.js +13 -4
  136. package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +5 -0
  137. package/dist/pi/packages/ta-extensions/lib/extensions-util.js +10 -0
  138. package/dist/pi/packages/ta-extensions/lib/market-parts.js +8 -2
  139. package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
  140. package/dist/pi/packages/ta-extensions/lib/market-style.js +4 -5
  141. package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +2 -2
  142. package/dist/pi/packages/ta-extensions/lib/market-util.js +2 -2
  143. package/dist/pi/packages/ta-extensions/lib/page.js +12 -7
  144. package/dist/pi/packages/ta-extensions/lib/react.d.ts +3 -0
  145. package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
  146. package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
  147. package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
  148. package/dist/pi/packages/ta-extensions/package.json +6 -1
  149. package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +20 -8
  150. package/dist/pi/packages/ta-extensions/web/index.js +191 -22
  151. package/dist/pi/packages/ta-games/README.en.md +47 -0
  152. package/dist/pi/packages/ta-games/README.md +47 -0
  153. package/dist/pi/packages/ta-games/host/index.mjs +65 -0
  154. package/dist/pi/packages/ta-games/lib/games-view.d.ts +16 -0
  155. package/dist/pi/packages/ta-games/lib/games-view.js +77 -0
  156. package/dist/pi/packages/ta-games/lib/host.d.ts +36 -0
  157. package/dist/pi/packages/ta-games/lib/host.js +83 -0
  158. package/dist/pi/packages/ta-games/lib/i18n.d.ts +35 -0
  159. package/dist/pi/packages/ta-games/lib/i18n.js +71 -0
  160. package/dist/pi/packages/ta-games/lib/ideas.d.ts +6 -0
  161. package/dist/pi/packages/ta-games/lib/ideas.js +62 -0
  162. package/dist/pi/packages/ta-games/lib/index.d.ts +7 -0
  163. package/dist/pi/packages/ta-games/lib/index.js +24 -0
  164. package/dist/pi/packages/ta-games/lib/make-game.d.ts +23 -0
  165. package/dist/pi/packages/ta-games/lib/make-game.js +67 -0
  166. package/dist/pi/packages/ta-games/lib/react.d.ts +11 -0
  167. package/dist/pi/packages/ta-games/lib/react.js +16 -0
  168. package/dist/pi/packages/ta-games/lib/style.d.ts +4 -0
  169. package/dist/pi/packages/ta-games/lib/style.js +33 -0
  170. package/dist/pi/packages/ta-games/package.json +60 -0
  171. package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +127 -0
  172. package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/package.json +22 -0
  173. package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/web.js +389 -0
  174. package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/package.json +22 -0
  175. package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/web.js +423 -0
  176. package/dist/pi/packages/ta-games/skills/ta-game/phaser/LICENSE.md +22 -0
  177. package/dist/pi/packages/ta-games/skills/ta-game/phaser/actions-and-utilities/SKILL.md +343 -0
  178. package/dist/pi/packages/ta-games/skills/ta-game/phaser/animations/SKILL.md +481 -0
  179. package/dist/pi/packages/ta-games/skills/ta-game/phaser/audio-and-sound/SKILL.md +453 -0
  180. package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/SKILL.md +497 -0
  181. package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/references/REFERENCE.md +128 -0
  182. package/dist/pi/packages/ta-games/skills/ta-game/phaser/curves-and-paths/SKILL.md +359 -0
  183. package/dist/pi/packages/ta-games/skills/ta-game/phaser/data-manager/SKILL.md +406 -0
  184. package/dist/pi/packages/ta-games/skills/ta-game/phaser/events-system/SKILL.md +497 -0
  185. package/dist/pi/packages/ta-games/skills/ta-game/phaser/filters-and-postfx/SKILL.md +449 -0
  186. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/SKILL.md +478 -0
  187. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/references/REFERENCE.md +76 -0
  188. package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-setup-and-config/SKILL.md +485 -0
  189. package/dist/pi/packages/ta-games/skills/ta-game/phaser/geometry-and-math/SKILL.md +497 -0
  190. package/dist/pi/packages/ta-games/skills/ta-game/phaser/graphics-and-shapes/SKILL.md +473 -0
  191. package/dist/pi/packages/ta-games/skills/ta-game/phaser/groups-and-containers/SKILL.md +418 -0
  192. package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/SKILL.md +500 -0
  193. package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/references/REFERENCE.md +372 -0
  194. package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/SKILL.md +474 -0
  195. package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/references/REFERENCE.md +148 -0
  196. package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/SKILL.md +499 -0
  197. package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/references/REFERENCE.md +17 -0
  198. package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-arcade/SKILL.md +468 -0
  199. package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-matter/SKILL.md +499 -0
  200. package/dist/pi/packages/ta-games/skills/ta-game/phaser/render-textures/SKILL.md +441 -0
  201. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scale-and-responsive/SKILL.md +371 -0
  202. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/SKILL.md +450 -0
  203. package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/references/REFERENCE.md +78 -0
  204. package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/SKILL.md +417 -0
  205. package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/references/REFERENCE.md +160 -0
  206. package/dist/pi/packages/ta-games/skills/ta-game/phaser/text-and-bitmaptext/SKILL.md +460 -0
  207. package/dist/pi/packages/ta-games/skills/ta-game/phaser/tilemaps/SKILL.md +440 -0
  208. package/dist/pi/packages/ta-games/skills/ta-game/phaser/time-and-timers/SKILL.md +496 -0
  209. package/dist/pi/packages/ta-games/skills/ta-game/phaser/tweens/SKILL.md +414 -0
  210. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v3-to-v4-migration/SKILL.md +430 -0
  211. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/SKILL.md +384 -0
  212. package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/references/REFERENCE.md +69 -0
  213. package/dist/pi/packages/ta-games/web/index.js +431 -0
  214. package/dist/pi/packages/ta-glance/README.en.md +11 -0
  215. package/dist/pi/packages/ta-glance/README.md +11 -0
  216. package/dist/pi/packages/ta-glance/extension/index.mjs +67 -0
  217. package/dist/pi/packages/ta-glance/lib/card.d.ts +8 -0
  218. package/dist/pi/packages/ta-glance/lib/card.js +269 -0
  219. package/dist/pi/packages/ta-glance/lib/extension.d.ts +15 -0
  220. package/dist/pi/packages/ta-glance/lib/extension.js +24 -0
  221. package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +9 -0
  222. package/dist/pi/packages/ta-glance/lib/glance-json.js +85 -0
  223. package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +7 -0
  224. package/dist/pi/packages/ta-glance/lib/glance-prompt.js +34 -0
  225. package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +98 -0
  226. package/dist/pi/packages/ta-glance/lib/glance-protocol.js +8 -0
  227. package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -0
  228. package/dist/pi/packages/ta-glance/lib/glance-spec.js +206 -0
  229. package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +3 -0
  230. package/dist/pi/packages/ta-glance/lib/glance-util.js +12 -0
  231. package/dist/pi/packages/ta-glance/lib/i18n.d.ts +22 -0
  232. package/dist/pi/packages/ta-glance/lib/i18n.js +41 -0
  233. package/dist/pi/packages/ta-glance/lib/index.d.ts +7 -0
  234. package/dist/pi/packages/ta-glance/lib/index.js +22 -0
  235. package/dist/pi/packages/ta-glance/lib/react.d.ts +8 -0
  236. package/dist/pi/packages/ta-glance/lib/react.js +8 -0
  237. package/dist/pi/packages/ta-glance/lib/style.d.ts +4 -0
  238. package/dist/pi/packages/ta-glance/lib/style.js +241 -0
  239. package/dist/pi/packages/ta-glance/package.json +53 -0
  240. package/dist/pi/packages/ta-glance/web/index.js +1013 -0
  241. package/dist/pi/packages/ta-launcher/lib/actions.d.ts +4 -4
  242. package/dist/pi/packages/ta-launcher/lib/actions.js +7 -3
  243. package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +7 -7
  244. package/dist/pi/packages/ta-launcher/lib/launcher-util.js +11 -8
  245. package/dist/pi/packages/ta-launcher/lib/launcher-view.js +13 -7
  246. package/dist/pi/packages/ta-launcher/lib/react.d.ts +3 -0
  247. package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
  248. package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
  249. package/dist/pi/packages/ta-launcher/lib/style.js +6 -4
  250. package/dist/pi/packages/ta-launcher/package.json +1 -1
  251. package/dist/pi/packages/ta-launcher/web/index.js +34 -17
  252. package/dist/pi/packages/ta-manual/README.en.md +10 -0
  253. package/dist/pi/packages/ta-manual/README.md +10 -0
  254. package/dist/pi/packages/ta-manual/lib/i18n.d.ts +15 -0
  255. package/dist/pi/packages/ta-manual/lib/i18n.js +31 -0
  256. package/dist/pi/packages/ta-manual/lib/index.d.ts +7 -0
  257. package/dist/pi/packages/ta-manual/lib/index.js +24 -0
  258. package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +18 -0
  259. package/dist/pi/packages/ta-manual/lib/manual-util.js +40 -0
  260. package/dist/pi/packages/ta-manual/lib/manual-view.d.ts +9 -0
  261. package/dist/pi/packages/ta-manual/lib/manual-view.js +81 -0
  262. package/dist/pi/packages/ta-manual/lib/pictures-a.d.ts +2 -0
  263. package/dist/pi/packages/ta-manual/lib/pictures-a.js +263 -0
  264. package/dist/pi/packages/ta-manual/lib/pictures-b.d.ts +2 -0
  265. package/dist/pi/packages/ta-manual/lib/pictures-b.js +216 -0
  266. package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
  267. package/dist/pi/packages/ta-manual/lib/pictures-c.js +53 -0
  268. package/dist/pi/packages/ta-manual/lib/pictures.d.ts +9 -0
  269. package/dist/pi/packages/ta-manual/lib/pictures.js +17 -0
  270. package/dist/pi/packages/ta-manual/lib/react.d.ts +8 -0
  271. package/dist/pi/packages/ta-manual/lib/react.js +8 -0
  272. package/dist/pi/packages/ta-manual/lib/scene.d.ts +68 -0
  273. package/dist/pi/packages/ta-manual/lib/scene.js +115 -0
  274. package/dist/pi/packages/ta-manual/lib/style.d.ts +4 -0
  275. package/dist/pi/packages/ta-manual/lib/style.js +47 -0
  276. package/dist/pi/packages/ta-manual/lib/topics.d.ts +43 -0
  277. package/dist/pi/packages/ta-manual/lib/topics.js +388 -0
  278. package/dist/pi/packages/ta-manual/package.json +54 -0
  279. package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +130 -0
  280. package/dist/pi/packages/ta-manual/web/index.js +2408 -0
  281. package/dist/pi/packages/ta-notify/README.en.md +29 -0
  282. package/dist/pi/packages/ta-notify/README.md +29 -0
  283. package/dist/pi/packages/ta-notify/extension/index.mjs +259 -0
  284. package/dist/pi/packages/ta-notify/host/index.mjs +163 -0
  285. package/dist/pi/packages/ta-notify/lib/ask-card.d.ts +9 -0
  286. package/dist/pi/packages/ta-notify/lib/ask-card.js +40 -0
  287. package/dist/pi/packages/ta-notify/lib/extension.d.ts +24 -0
  288. package/dist/pi/packages/ta-notify/lib/extension.js +102 -0
  289. package/dist/pi/packages/ta-notify/lib/host.d.ts +4 -0
  290. package/dist/pi/packages/ta-notify/lib/host.js +9 -0
  291. package/dist/pi/packages/ta-notify/lib/i18n.d.ts +31 -0
  292. package/dist/pi/packages/ta-notify/lib/i18n.js +63 -0
  293. package/dist/pi/packages/ta-notify/lib/index.d.ts +8 -0
  294. package/dist/pi/packages/ta-notify/lib/index.js +29 -0
  295. package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +74 -0
  296. package/dist/pi/packages/ta-notify/lib/notify-protocol.js +23 -0
  297. package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +21 -0
  298. package/dist/pi/packages/ta-notify/lib/notify-service.js +75 -0
  299. package/dist/pi/packages/ta-notify/lib/notify-util.d.ts +39 -0
  300. package/dist/pi/packages/ta-notify/lib/notify-util.js +119 -0
  301. package/dist/pi/packages/ta-notify/lib/react.d.ts +8 -0
  302. package/dist/pi/packages/ta-notify/lib/react.js +8 -0
  303. package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +9 -0
  304. package/dist/pi/packages/ta-notify/lib/server-texts.js +22 -0
  305. package/dist/pi/packages/ta-notify/lib/settings.d.ts +8 -0
  306. package/dist/pi/packages/ta-notify/lib/settings.js +85 -0
  307. package/dist/pi/packages/ta-notify/lib/style.d.ts +4 -0
  308. package/dist/pi/packages/ta-notify/lib/style.js +29 -0
  309. package/dist/pi/packages/ta-notify/lib/tool-line.d.ts +9 -0
  310. package/dist/pi/packages/ta-notify/lib/tool-line.js +20 -0
  311. package/dist/pi/packages/ta-notify/lib/tool.d.ts +37 -0
  312. package/dist/pi/packages/ta-notify/lib/tool.js +46 -0
  313. package/dist/pi/packages/ta-notify/lib/watcher.d.ts +15 -0
  314. package/dist/pi/packages/ta-notify/lib/watcher.js +81 -0
  315. package/dist/pi/packages/ta-notify/package.json +55 -0
  316. package/dist/pi/packages/ta-notify/web/index.js +436 -0
  317. package/dist/pi/packages/ta-recall/README.en.md +19 -0
  318. package/dist/pi/packages/ta-recall/README.md +19 -0
  319. package/dist/pi/packages/ta-recall/extension/index.mjs +615 -0
  320. package/dist/pi/packages/ta-recall/host/index.mjs +820 -0
  321. package/dist/pi/packages/ta-recall/lib/brief-card.d.ts +21 -0
  322. package/dist/pi/packages/ta-recall/lib/brief-card.js +67 -0
  323. package/dist/pi/packages/ta-recall/lib/brief-home.d.ts +49 -0
  324. package/dist/pi/packages/ta-recall/lib/brief-home.js +143 -0
  325. package/dist/pi/packages/ta-recall/lib/brief-seen.d.ts +9 -0
  326. package/dist/pi/packages/ta-recall/lib/brief-seen.js +26 -0
  327. package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +64 -0
  328. package/dist/pi/packages/ta-recall/lib/brief-util.js +179 -0
  329. package/dist/pi/packages/ta-recall/lib/chat-icons.d.ts +8 -0
  330. package/dist/pi/packages/ta-recall/lib/chat-icons.js +56 -0
  331. package/dist/pi/packages/ta-recall/lib/composer.d.ts +7 -0
  332. package/dist/pi/packages/ta-recall/lib/composer.js +38 -0
  333. package/dist/pi/packages/ta-recall/lib/conversation-index.d.ts +25 -0
  334. package/dist/pi/packages/ta-recall/lib/conversation-index.js +72 -0
  335. package/dist/pi/packages/ta-recall/lib/conversation-util.d.ts +16 -0
  336. package/dist/pi/packages/ta-recall/lib/conversation-util.js +109 -0
  337. package/dist/pi/packages/ta-recall/lib/conversations.d.ts +11 -0
  338. package/dist/pi/packages/ta-recall/lib/conversations.js +52 -0
  339. package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
  340. package/dist/pi/packages/ta-recall/lib/extension.js +132 -0
  341. package/dist/pi/packages/ta-recall/lib/host.d.ts +4 -0
  342. package/dist/pi/packages/ta-recall/lib/host.js +11 -0
  343. package/dist/pi/packages/ta-recall/lib/i18n.d.ts +41 -0
  344. package/dist/pi/packages/ta-recall/lib/i18n.js +83 -0
  345. package/dist/pi/packages/ta-recall/lib/index.d.ts +9 -0
  346. package/dist/pi/packages/ta-recall/lib/index.js +45 -0
  347. package/dist/pi/packages/ta-recall/lib/react.d.ts +11 -0
  348. package/dist/pi/packages/ta-recall/lib/react.js +16 -0
  349. package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +186 -0
  350. package/dist/pi/packages/ta-recall/lib/recall-protocol.js +60 -0
  351. package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +42 -0
  352. package/dist/pi/packages/ta-recall/lib/recall-service.js +241 -0
  353. package/dist/pi/packages/ta-recall/lib/search-source.d.ts +7 -0
  354. package/dist/pi/packages/ta-recall/lib/search-source.js +49 -0
  355. package/dist/pi/packages/ta-recall/lib/search-util.d.ts +30 -0
  356. package/dist/pi/packages/ta-recall/lib/search-util.js +167 -0
  357. package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +7 -0
  358. package/dist/pi/packages/ta-recall/lib/server-texts.js +17 -0
  359. package/dist/pi/packages/ta-recall/lib/settings.d.ts +4 -0
  360. package/dist/pi/packages/ta-recall/lib/settings.js +77 -0
  361. package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +9 -0
  362. package/dist/pi/packages/ta-recall/lib/skill-card.js +51 -0
  363. package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +19 -0
  364. package/dist/pi/packages/ta-recall/lib/skill-util.js +110 -0
  365. package/dist/pi/packages/ta-recall/lib/stored.d.ts +5 -0
  366. package/dist/pi/packages/ta-recall/lib/stored.js +28 -0
  367. package/dist/pi/packages/ta-recall/lib/style.d.ts +4 -0
  368. package/dist/pi/packages/ta-recall/lib/style.js +48 -0
  369. package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +10 -0
  370. package/dist/pi/packages/ta-recall/lib/tool-line.js +23 -0
  371. package/dist/pi/packages/ta-recall/lib/tool.d.ts +63 -0
  372. package/dist/pi/packages/ta-recall/lib/tool.js +71 -0
  373. package/dist/pi/packages/ta-recall/package.json +55 -0
  374. package/dist/pi/packages/ta-recall/web/index.js +1042 -0
  375. package/dist/pi/packages/ta-rooms/README.en.md +29 -0
  376. package/dist/pi/packages/ta-rooms/README.md +29 -0
  377. package/dist/pi/packages/ta-rooms/extension/index.mjs +362 -0
  378. package/dist/pi/packages/ta-rooms/host/index.mjs +966 -0
  379. package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
  380. package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
  381. package/dist/pi/packages/ta-rooms/lib/dialogs.d.ts +39 -0
  382. package/dist/pi/packages/ta-rooms/lib/dialogs.js +235 -0
  383. package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +114 -0
  384. package/dist/pi/packages/ta-rooms/lib/double-host.js +645 -0
  385. package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +85 -0
  386. package/dist/pi/packages/ta-rooms/lib/double-i18n.js +172 -0
  387. package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +165 -0
  388. package/dist/pi/packages/ta-rooms/lib/double-protocol.js +73 -0
  389. package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +99 -0
  390. package/dist/pi/packages/ta-rooms/lib/double-util.js +180 -0
  391. package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +45 -0
  392. package/dist/pi/packages/ta-rooms/lib/doubles-store.js +145 -0
  393. package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
  394. package/dist/pi/packages/ta-rooms/lib/doubles-view.js +223 -0
  395. package/dist/pi/packages/ta-rooms/lib/extension.d.ts +24 -0
  396. package/dist/pi/packages/ta-rooms/lib/extension.js +176 -0
  397. package/dist/pi/packages/ta-rooms/lib/host.d.ts +7 -0
  398. package/dist/pi/packages/ta-rooms/lib/host.js +18 -0
  399. package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +105 -0
  400. package/dist/pi/packages/ta-rooms/lib/i18n.js +211 -0
  401. package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
  402. package/dist/pi/packages/ta-rooms/lib/index.js +106 -0
  403. package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
  404. package/dist/pi/packages/ta-rooms/lib/members-view.js +94 -0
  405. package/dist/pi/packages/ta-rooms/lib/page.d.ts +154 -0
  406. package/dist/pi/packages/ta-rooms/lib/page.js +400 -0
  407. package/dist/pi/packages/ta-rooms/lib/react.d.ts +8 -0
  408. package/dist/pi/packages/ta-rooms/lib/react.js +8 -0
  409. package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +15 -0
  410. package/dist/pi/packages/ta-rooms/lib/room-view.js +168 -0
  411. package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
  412. package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
  413. package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +14 -0
  414. package/dist/pi/packages/ta-rooms/lib/rooms-page.js +217 -0
  415. package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
  416. package/dist/pi/packages/ta-rooms/lib/style.js +205 -0
  417. package/dist/pi/packages/ta-rooms/package.json +56 -0
  418. package/dist/pi/packages/ta-rooms/web/index.js +3165 -0
  419. package/dist/pi/packages/ta-share/README.en.md +27 -0
  420. package/dist/pi/packages/ta-share/README.md +27 -0
  421. package/dist/pi/packages/ta-share/extension/index.mjs +184 -0
  422. package/dist/pi/packages/ta-share/host/index.mjs +364 -0
  423. package/dist/pi/packages/ta-share/lib/extension.d.ts +15 -0
  424. package/dist/pi/packages/ta-share/lib/extension.js +115 -0
  425. package/dist/pi/packages/ta-share/lib/host.d.ts +4 -0
  426. package/dist/pi/packages/ta-share/lib/host.js +9 -0
  427. package/dist/pi/packages/ta-share/lib/i18n.d.ts +106 -0
  428. package/dist/pi/packages/ta-share/lib/i18n.js +213 -0
  429. package/dist/pi/packages/ta-share/lib/index.d.ts +9 -0
  430. package/dist/pi/packages/ta-share/lib/index.js +77 -0
  431. package/dist/pi/packages/ta-share/lib/page.d.ts +48 -0
  432. package/dist/pi/packages/ta-share/lib/page.js +105 -0
  433. package/dist/pi/packages/ta-share/lib/react.d.ts +8 -0
  434. package/dist/pi/packages/ta-share/lib/react.js +8 -0
  435. package/dist/pi/packages/ta-share/lib/server-texts.d.ts +14 -0
  436. package/dist/pi/packages/ta-share/lib/server-texts.js +52 -0
  437. package/dist/pi/packages/ta-share/lib/share-dialog.d.ts +18 -0
  438. package/dist/pi/packages/ta-share/lib/share-dialog.js +233 -0
  439. package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +86 -0
  440. package/dist/pi/packages/ta-share/lib/share-protocol.js +30 -0
  441. package/dist/pi/packages/ta-share/lib/share-service.d.ts +50 -0
  442. package/dist/pi/packages/ta-share/lib/share-service.js +130 -0
  443. package/dist/pi/packages/ta-share/lib/shared-view.d.ts +18 -0
  444. package/dist/pi/packages/ta-share/lib/shared-view.js +225 -0
  445. package/dist/pi/packages/ta-share/lib/shares-page.d.ts +3 -0
  446. package/dist/pi/packages/ta-share/lib/shares-page.js +78 -0
  447. package/dist/pi/packages/ta-share/lib/snapshot.d.ts +30 -0
  448. package/dist/pi/packages/ta-share/lib/snapshot.js +195 -0
  449. package/dist/pi/packages/ta-share/lib/style.d.ts +4 -0
  450. package/dist/pi/packages/ta-share/lib/style.js +117 -0
  451. package/dist/pi/packages/ta-share/package.json +56 -0
  452. package/dist/pi/packages/ta-share/web/index.js +1224 -0
  453. package/dist/pi/packages/ta-workspace/README.md +1 -1
  454. package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
  455. package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +1 -1
  456. package/dist/pi/packages/ta-workspace/lib/browser-common.js +29 -30
  457. package/dist/pi/packages/ta-workspace/lib/browser-tool-line.d.ts +15 -0
  458. package/dist/pi/packages/ta-workspace/lib/browser-tool-line.js +70 -0
  459. package/dist/pi/packages/ta-workspace/lib/editors.js +29 -2
  460. package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +13 -2
  461. package/dist/pi/packages/ta-workspace/lib/i18n.js +29 -7
  462. package/dist/pi/packages/ta-workspace/lib/index.js +2 -0
  463. package/dist/pi/packages/ta-workspace/lib/preview.d.ts +10 -1
  464. package/dist/pi/packages/ta-workspace/lib/preview.js +136 -11
  465. package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
  466. package/dist/pi/packages/ta-workspace/lib/style.js +56 -40
  467. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +15 -4
  468. package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +31 -9
  469. package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +3 -2
  470. package/dist/pi/packages/ta-workspace/lib/terminal.js +51 -21
  471. package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +27 -0
  472. package/dist/pi/packages/ta-workspace/lib/util/preview.js +74 -0
  473. package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +5 -0
  474. package/dist/pi/packages/ta-workspace/lib/util/terminal.js +14 -0
  475. package/dist/pi/packages/ta-workspace/package.json +1 -1
  476. package/dist/pi/packages/ta-workspace/web/index.js +823 -341
  477. package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
  478. package/dist/public/assets/{abnfDiagram-S7VZAUFO-BmIko5tV.js → abnfDiagram-S7VZAUFO-BnqtcbpZ.js} +1 -1
  479. package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-BzPq1Ioe.js} +1 -1
  480. package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-BsquO3a7.js} +1 -1
  481. package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-BQNYOEP4.js} +1 -1
  482. package/dist/public/assets/{browser-DOHZ0JCf.js → browser-DS711n7Y.js} +1 -1
  483. package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-D6e79Ycq.js} +1 -1
  484. package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-B-sgaPoU.js} +1 -1
  485. package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-D8pJKIg2.js} +1 -1
  486. package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-86TL-vCz.js} +1 -1
  487. package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-CfUVuGjc.js} +1 -1
  488. package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-Drm0FEYk.js} +1 -1
  489. package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-BVFRADlC.js} +1 -1
  490. package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-DfyALEmP.js} +1 -1
  491. package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-DtJVzk2c.js} +1 -1
  492. package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-DTy27PHQ.js} +1 -1
  493. package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-nSgn7jZg.js} +1 -1
  494. package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-CkSxO_X6.js} +1 -1
  495. package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Ck6iAjAL.js} +1 -1
  496. package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-DQPHdSTh.js} +1 -1
  497. package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-Bc2AbV2Y.js} +1 -1
  498. package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-Cgpm0IXm.js} +1 -1
  499. package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-CGE4eLpg.js} +1 -1
  500. package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-4eQuDPEo.js} +1 -1
  501. package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-tDLCWq07.js} +1 -1
  502. package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +1 -0
  503. package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-ByqcZ8x9.js} +1 -1
  504. package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-Bgn1374-.js} +1 -1
  505. package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-mCgr71mV.js} +1 -1
  506. package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-DpYSwpQ0.js} +1 -1
  507. package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-DMozUQzi.js} +1 -1
  508. package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-Bk5Uf8PD.js} +1 -1
  509. package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-DFt5cPVK.js} +1 -1
  510. package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BkZZcKqK.js} +1 -1
  511. package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-HEY6kyyN.js} +1 -1
  512. package/dist/public/assets/{dist-acJS-BlA.js → dist-Bj2CrKn7.js} +1 -1
  513. package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-D4JvYyVb.js} +1 -1
  514. package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-BpJFzYbl.js} +1 -1
  515. package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-CT6qLJkF.js} +1 -1
  516. package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-BGng1goR.js} +1 -1
  517. package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-Tt8O-Q1Z.js} +1 -1
  518. package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +1 -0
  519. package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-Dd5ksoRn.js} +1 -1
  520. package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Jl8VO_g2.js} +1 -1
  521. package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +1 -0
  522. package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-Be4qXALb.js} +1 -1
  523. package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-4xabgUi4.js} +1 -1
  524. package/dist/public/assets/{html-DuzouNES.js → html-Dk3kt2w_.js} +1 -1
  525. package/dist/public/assets/{index-B7OYKvCE.js → index-Bx0c7eoh.js} +2 -2
  526. package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +1 -0
  527. package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-Coc0tdwb.js} +1 -1
  528. package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-CE_1VQCg.js} +1 -1
  529. package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-DKLGqy6v.js} +1 -1
  530. package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-CrolRZ_7.js} +1 -1
  531. package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-Chcs19_y.js} +1 -1
  532. package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-CjJj47De.js} +1 -1
  533. package/dist/public/assets/{liquid-Din4CF34.js → liquid-jff3p-Ji.js} +1 -1
  534. package/dist/public/assets/{mdx-DivDuCWI.js → mdx-DW4uRDfJ.js} +1 -1
  535. package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-XhQj6FvH.js} +3 -3
  536. package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-OD4Atimg.js} +4 -4
  537. package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-DpGelVY7.js} +1 -1
  538. package/dist/public/assets/module-CrD0OHQp.js +1 -0
  539. package/dist/public/assets/module-DEBMgdtf.js +2273 -0
  540. package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-BTVZP-tU.js} +3 -3
  541. package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +1 -0
  542. package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-CqcBmPfB.js} +1 -1
  543. package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
  544. package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +1 -0
  545. package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CRir3beB.js} +1 -1
  546. package/dist/public/assets/{python-BQbTTTT5.js → python-BwW_0207.js} +1 -1
  547. package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-DIY6gdcf.js} +1 -1
  548. package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +1 -0
  549. package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +1 -0
  550. package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-XWNOzunl.js} +1 -1
  551. package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js} +1 -1
  552. package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-BVB_IaIG.js} +1 -1
  553. package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-CudwT6q2.js} +1 -1
  554. package/dist/public/assets/{razor-DiLk54O0.js → razor-DrjCyQqB.js} +1 -1
  555. package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-CvRMeRqj.js} +1 -1
  556. package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-adxYCJKr.js} +1 -1
  557. package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-lCRsoLUp.js} +1 -1
  558. package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-DNst1BLg.js} +1 -1
  559. package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-S_omrdvA.js} +1 -1
  560. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +8 -0
  561. package/dist/public/assets/three.module-CeVBJVoU.js +4225 -0
  562. package/dist/public/assets/{timeline-definition-SEUHKTQE-DhQoApff.js → timeline-definition-SEUHKTQE-_pMGrTE-.js} +1 -1
  563. package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +1 -0
  564. package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +1 -0
  565. package/dist/public/assets/{typescript-COQ1g-up.js → typescript-0-z_OYCU.js} +1 -1
  566. package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-B2oJKi5Q.js} +1 -1
  567. package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-inPs2Kkr.js} +1 -1
  568. package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +1 -0
  569. package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-DNhNHM7b.js} +1 -1
  570. package/dist/public/assets/{xml-BbvtjuaG.js → xml-BXPxQzKF.js} +1 -1
  571. package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-DJc93dNT.js} +1 -1
  572. package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CGmD9Rya.js} +1 -1
  573. package/dist/public/index.html +1 -1
  574. package/dist/serve/index.mjs +6664 -2480
  575. package/package.json +32 -25
  576. package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +0 -1
  577. package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +0 -1
  578. package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +0 -1
  579. package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +0 -1
  580. package/dist/public/assets/module-BAQaY56j.js +0 -1
  581. package/dist/public/assets/module-DxRGg3ED.js +0 -1947
  582. package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +0 -1
  583. package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +0 -1
  584. package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +0 -1
  585. package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +0 -1
  586. package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +0 -8
  587. package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +0 -1
  588. package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +0 -1
  589. package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +0 -1
@@ -0,0 +1,19 @@
1
+ import { type RelayAgentCard } from '@celljs/ta-relay/lib/common/relay-card';
2
+ import { type Agent, type Team } from './channels-util';
3
+ /**
4
+ * The card of an agent (docs/design/ta-social.md): what a link shares of it, who it is and its role, its secrets
5
+ * taken out; and how another Ta takes it in, under a name of its own, fitting the role to its project.
6
+ */
7
+ export declare namespace AgentCards {
8
+ const KIND = "ta-agent";
9
+ /** The first line of the message that has an agent added from a card fit its role. */
10
+ const MARK = "[ta-channels:card]";
11
+ /** `color`: of its face, for the viewer of the relay, which does not draw them. */
12
+ function card(agent: Agent, color?: string): RelayAgentCard;
13
+ function parse(data: Uint8Array | string): RelayAgentCard | undefined;
14
+ /** The name of the card, or with `-2`, `-3`… when an agent has it: what `@` names here. */
15
+ function freeName(team: Team, name: string): string;
16
+ /** What an agent added from a card is told first: look at the project, fit the role, save it, say what changed. */
17
+ function adapt(cwd: string, zh: boolean): string;
18
+ }
19
+ //# sourceMappingURL=agent-cards.d.ts.map
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AgentCards = void 0;
4
+ const redactor_1 = require("@celljs/ta-protocol/lib/common/redactor");
5
+ const relay_card_1 = require("@celljs/ta-relay/lib/common/relay-card");
6
+ const channels_util_1 = require("./channels-util");
7
+ /**
8
+ * The card of an agent (docs/design/ta-social.md): what a link shares of it, who it is and its role, its secrets
9
+ * taken out; and how another Ta takes it in, under a name of its own, fitting the role to its project.
10
+ */
11
+ var AgentCards;
12
+ (function (AgentCards) {
13
+ AgentCards.KIND = relay_card_1.RELAY_AGENT_KIND;
14
+ /** The first line of the message that has an agent added from a card fit its role. */
15
+ AgentCards.MARK = '[ta-channels:card]';
16
+ /** `color`: of its face, for the viewer of the relay, which does not draw them. */
17
+ function card(agent, color) {
18
+ const redactor = new redactor_1.Redactor();
19
+ const role = redactor.text(agent.role);
20
+ return {
21
+ v: 1,
22
+ name: agent.name,
23
+ role,
24
+ mark: agent.mark,
25
+ ...(agent.face !== undefined ? { face: agent.face } : {}),
26
+ ...(color && /^#[0-9a-fA-F]{6}$/.test(color) ? { color } : {}),
27
+ ...(redactor.count ? { redacted: redactor.count } : {}),
28
+ };
29
+ }
30
+ AgentCards.card = card;
31
+ function parse(data) {
32
+ return relay_card_1.RelayAgentCards.parse(data);
33
+ }
34
+ AgentCards.parse = parse;
35
+ /** The name of the card, or with `-2`, `-3`… when an agent has it: what `@` names here. */
36
+ function freeName(team, name) {
37
+ const base = (name.trim().replace(/\s+/g, '-') || 'agent').slice(0, channels_util_1.MAX_NAME - 3);
38
+ if (!channels_util_1.ChannelsUtil.findAgent(team, base)) {
39
+ return base;
40
+ }
41
+ for (let n = 2;; n++) {
42
+ if (!channels_util_1.ChannelsUtil.findAgent(team, `${base}-${n}`)) {
43
+ return `${base}-${n}`;
44
+ }
45
+ }
46
+ }
47
+ AgentCards.freeName = freeName;
48
+ /** What an agent added from a card is told first: look at the project, fit the role, save it, say what changed. */
49
+ function adapt(cwd, zh) {
50
+ const context = [
51
+ AgentCards.MARK,
52
+ `You were just added to this Ta from a card someone shared: the role in your instructions is theirs, written for their own work. Fit it to the project of your directory (${cwd}): look at it first (its README, manifests such as package.json, its layout, how it builds and tests), then rewrite your role for it, keeping what you are for, and save it with update_my_role. Then tell the user in a few sentences, in ${zh ? 'Chinese' : 'English'}, what you changed and what you can do here. Change no files.`,
53
+ ].join('\n');
54
+ return `<context>\n${context}\n</context>\n${zh ? '看看这个项目,把你的职责调整得贴合这里' : 'Look at this project and fit your role to it'}`;
55
+ }
56
+ AgentCards.adapt = adapt;
57
+ })(AgentCards || (exports.AgentCards = AgentCards = {}));
58
+ //# sourceMappingURL=agent-cards.js.map
@@ -3,8 +3,8 @@ import { type ChannelsContext } from './views';
3
3
  /** Deletes an agent once the user says so: from its menu, or swiped on a phone. */
4
4
  export declare function deleteAgent(context: ChannelsContext, agent: Agent): Promise<void>;
5
5
  /**
6
- * The … of an agent in the side bar: stop it, start it over, its name, role and directory, its
7
- * conversation as a file, a channel to join, and delete.
6
+ * The … of an agent in the side bar: pin it, stop it, start it over, its name, role and directory, its card to
7
+ * share, its conversation as a file, a channel to join, and delete.
8
8
  */
9
9
  export declare function AgentMenu({ context, agent, cwd, working }: {
10
10
  context: ChannelsContext;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.deleteAgent = deleteAgent;
4
4
  exports.AgentMenu = AgentMenu;
5
+ const card_1 = require("./card");
5
6
  const channels_util_1 = require("./channels-util");
6
7
  const i18n_1 = require("./i18n");
7
8
  const more_menu_1 = require("./more-menu");
@@ -38,8 +39,8 @@ async function deleteAgent(context, agent) {
38
39
  }
39
40
  }
40
41
  /**
41
- * The … of an agent in the side bar: stop it, start it over, its name, role and directory, its
42
- * conversation as a file, a channel to join, and delete.
42
+ * The … of an agent in the side bar: pin it, stop it, start it over, its name, role and directory, its card to
43
+ * share, its conversation as a file, a channel to join, and delete.
43
44
  */
44
45
  function AgentMenu({ context, agent, cwd, working }) {
45
46
  const { pi, service } = context;
@@ -86,6 +87,7 @@ function AgentMenu({ context, agent, cwd, working }) {
86
87
  download(`${agent.name}.md`, channels_util_1.ChannelsUtil.markdown(agent, messages, { user: w.you }));
87
88
  });
88
89
  const remove = act(() => deleteAgent(context, agent));
90
+ const pin = act(() => service.updateAgent(agent.id, { pinned: !agent.pinned }));
89
91
  const keep = act(async () => {
90
92
  await service.updateAgent(agent.id, { keep: true });
91
93
  pi.ui.notify(i18n_1.ChannelWords.format(w.kept, { name: agent.name }), 'info');
@@ -100,7 +102,10 @@ function AgentMenu({ context, agent, cwd, working }) {
100
102
  });
101
103
  return (react_1.React.createElement(react_1.React.Fragment, null,
102
104
  react_1.React.createElement(more_menu_1.MoreMenu, { pi: pi, label: agent.name, items: () => [
103
- ...(agent.temporary ? [[item('keep', w.keep, 'UserPlus', keep)]] : []),
105
+ [
106
+ ...(agent.temporary ? [item('keep', w.keep, 'UserPlus', keep)] : []),
107
+ item('pin', agent.pinned ? w.unpin : w.pin, agent.pinned ? 'PinOff' : 'Pin', pin),
108
+ ],
104
109
  [item('stop', w.stop, 'Square', stop, { disabled: !working && !agent.sessionFile }), item('restart', w.restart, 'RotateCcw', restart)],
105
110
  [
106
111
  item('rename', w.rename, 'Pencil', show('rename')),
@@ -108,12 +113,17 @@ function AgentMenu({ context, agent, cwd, working }) {
108
113
  item('move', w.moveTo, 'FolderInput', show('move')),
109
114
  item('copy', w.copyCwd, 'Copy', copyCwd),
110
115
  ],
111
- [item('export', w.exportChat, 'Download', exportMarkdown), item('join', w.joinChannel, 'UserPlus', show('join'))],
116
+ [
117
+ item('card', w.shareCard, 'Contact', show('card')),
118
+ item('export', w.exportChat, 'Download', exportMarkdown),
119
+ item('join', w.joinChannel, 'UserPlus', show('join')),
120
+ ],
112
121
  [item('delete', w.deleteAgent, 'Trash2', remove, { danger: true })],
113
122
  ] }),
114
123
  dialog === 'rename' && react_1.React.createElement(RenameDialog, { context: context, agent: agent, onClose: () => setDialog(undefined) }),
115
124
  dialog === 'role' && react_1.React.createElement(RoleDialog, { context: context, agent: agent, onClose: () => setDialog(undefined) }),
116
125
  dialog === 'join' && react_1.React.createElement(JoinDialog, { context: context, agent: agent, onClose: () => setDialog(undefined) }),
126
+ dialog === 'card' && react_1.React.createElement(card_1.CardDialog, { context: context, agent: agent, onClose: () => setDialog(undefined) }),
117
127
  dialog === 'move' && (react_1.React.createElement(pi.ui.FolderPicker, { initial: cwd, onClose: () => setDialog(undefined), onPick: async (path) => {
118
128
  setDialog(undefined);
119
129
  if (path !== cwd) {
@@ -148,7 +158,9 @@ function RenameDialog({ context, agent, onClose }) {
148
158
  react_1.React.createElement("input", { className: "tac-input tac-dialog-input", value: name, maxLength: 32, autoFocus: true, onChange: event => setName(event.target.value) })),
149
159
  error && react_1.React.createElement("div", { className: "tac-error" }, error),
150
160
  react_1.React.createElement("div", { className: "tac-dialog-actions" },
151
- react_1.React.createElement("button", { type: "submit", className: "tac-button tac-primary", disabled: busy || !name.trim() || name.trim() === agent.name }, w.save)))));
161
+ react_1.React.createElement("button", { type: "submit", className: busy ? 'tac-button tac-primary ta-busy' : 'tac-button tac-primary', disabled: busy || !name.trim() || name.trim() === agent.name },
162
+ w.save,
163
+ busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark ta-on-brand" }))))));
152
164
  }
153
165
  function RoleDialog({ context, agent, onClose }) {
154
166
  const { pi, service } = context;
@@ -161,7 +173,9 @@ function RoleDialog({ context, agent, onClose }) {
161
173
  react_1.React.createElement("textarea", { className: "tac-input tac-role-input", value: role, placeholder: w.rolePlaceholder, "aria-label": w.editRole, autoFocus: true, onChange: event => setRole(event.target.value) }),
162
174
  error && react_1.React.createElement("div", { className: "tac-error" }, error),
163
175
  react_1.React.createElement("div", { className: "tac-dialog-actions" },
164
- react_1.React.createElement("button", { type: "submit", className: "tac-button tac-primary", disabled: busy || !role.trim() || role.trim() === agent.role }, w.save)))));
176
+ react_1.React.createElement("button", { type: "submit", className: busy ? 'tac-button tac-primary ta-busy' : 'tac-button tac-primary', disabled: busy || !role.trim() || role.trim() === agent.role },
177
+ w.save,
178
+ busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark ta-on-brand" }))))));
165
179
  }
166
180
  function JoinDialog({ context, agent, onClose }) {
167
181
  const { pi, service } = context;
@@ -0,0 +1,27 @@
1
+ import type { Agent } from './channels-util';
2
+ import { type ChannelsContext } from './views';
3
+ /** Links of agents' cards: links of content of the relay whose `c` says so (RelayContentUtil). */
4
+ export declare namespace CardLink {
5
+ function is(text: string): boolean;
6
+ function id(text: string): string;
7
+ }
8
+ /**
9
+ * Sharing an agent's card (docs/design/ta-social.md): its face and role, then the link the server made (or kept) with
10
+ * its code, to copy or send, and to stop.
11
+ */
12
+ export declare function CardDialog({ context, agent, onClose }: {
13
+ context: ChannelsContext;
14
+ agent: Agent;
15
+ onClose(): void;
16
+ }): import("react").JSX.Element;
17
+ /**
18
+ * A card opened from its link, in the workbench: who it is and its role, the directory it would work in, and Add,
19
+ * after which its conversation shows, where it fits its role to the project.
20
+ */
21
+ export declare function CardView({ context, link }: {
22
+ context: ChannelsContext;
23
+ link: string;
24
+ }): import("react").JSX.Element;
25
+ /** Links of cards, clicked, scanned or pasted, open in a tab of the workbench, one for each card. */
26
+ export declare function registerCardOpener(context: ChannelsContext): void;
27
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1,178 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardLink = void 0;
4
+ exports.CardDialog = CardDialog;
5
+ exports.CardView = CardView;
6
+ exports.registerCardOpener = registerCardOpener;
7
+ const agent_cards_1 = require("./agent-cards");
8
+ const faces_1 = require("./faces");
9
+ const i18n_1 = require("./i18n");
10
+ const react_1 = require("./react");
11
+ const views_1 = require("./views");
12
+ /** Links of agents' cards: links of content of the relay whose `c` says so (RelayContentUtil). */
13
+ var CardLink;
14
+ (function (CardLink) {
15
+ const LINK = /^https?:\/\/[^/\s#?]+\/s#v=1&\S+$/i;
16
+ function is(text) {
17
+ const trimmed = text.trim();
18
+ return LINK.test(trimmed) && new URLSearchParams(trimmed.slice(trimmed.indexOf('#') + 1)).get('c') === agent_cards_1.AgentCards.KIND;
19
+ }
20
+ CardLink.is = is;
21
+ function id(text) {
22
+ var _a;
23
+ return (_a = new URLSearchParams(text.slice(text.indexOf('#') + 1)).get('s')) !== null && _a !== void 0 ? _a : text;
24
+ }
25
+ CardLink.id = id;
26
+ })(CardLink || (exports.CardLink = CardLink = {}));
27
+ function baseName(path) {
28
+ return (path
29
+ .replace(/[\\/]+$/, '')
30
+ .split(/[\\/]/)
31
+ .pop() || path);
32
+ }
33
+ /** The face, name and role of a card, as both who shares it and who opens it see it. */
34
+ function CardFace({ pi, card }) {
35
+ const w = views_1.ChannelViews.words(pi);
36
+ return (react_1.React.createElement("div", { className: "tac-card-who" },
37
+ react_1.React.createElement("span", { className: "tac-card-face" }, card.face !== undefined ? react_1.React.createElement(faces_1.Face, { face: card.face, size: 56 }) : react_1.React.createElement("span", { className: "tac-card-mark" }, card.mark)),
38
+ react_1.React.createElement("strong", { className: "tac-card-name" },
39
+ "@",
40
+ card.name),
41
+ react_1.React.createElement("span", { className: "tac-card-kind" }, w.cardKind)));
42
+ }
43
+ /**
44
+ * Sharing an agent's card (docs/design/ta-social.md): its face and role, then the link the server made (or kept) with
45
+ * its code, to copy or send, and to stop.
46
+ */
47
+ function CardDialog({ context, agent, onClose }) {
48
+ const { pi, service } = context;
49
+ const w = views_1.ChannelViews.words(pi);
50
+ const [share, setShare] = react_1.React.useState();
51
+ const [error, setError] = react_1.React.useState();
52
+ const [copied, setCopied] = react_1.React.useState(false);
53
+ const [stopping, setStopping] = react_1.React.useState(false);
54
+ const card = react_1.React.useMemo(() => agent_cards_1.AgentCards.card(agent), [agent]);
55
+ react_1.React.useEffect(() => {
56
+ let live = true;
57
+ service.shareAgent(agent.id, agent.face !== undefined ? (0, faces_1.faceColor)(agent.face) : undefined).then(made => live && setShare(made), failure => live && setError(views_1.ChannelViews.message(failure)));
58
+ return () => {
59
+ live = false;
60
+ };
61
+ }, [service, agent]);
62
+ const Copy = views_1.ChannelViews.icon(pi, copied ? 'Check' : 'Copy');
63
+ const Send = views_1.ChannelViews.icon(pi, 'Share2');
64
+ const canSend = typeof navigator !== 'undefined' && typeof navigator.share === 'function';
65
+ const copy = () => { var _a; return share && void ((_a = navigator.clipboard) === null || _a === void 0 ? void 0 : _a.writeText(share.link).then(() => setCopied(true))); };
66
+ const stop = () => {
67
+ setStopping(true);
68
+ service.stopCard(agent.id).then(() => {
69
+ pi.ui.notify(w.cardStopped, 'info');
70
+ onClose();
71
+ }, failure => {
72
+ setStopping(false);
73
+ setError(views_1.ChannelViews.message(failure));
74
+ });
75
+ };
76
+ return (react_1.React.createElement(pi.ui.Dialog, { title: i18n_1.ChannelWords.format(w.cardTitle, { name: agent.name }), onClose: onClose },
77
+ react_1.React.createElement("div", { className: "tac-dialog tac-card" },
78
+ react_1.React.createElement(CardFace, { pi: pi, card: card }),
79
+ react_1.React.createElement("div", { className: "tac-card-role" }, card.role),
80
+ card.redacted ? react_1.React.createElement("p", { className: "tac-dialog-note" }, i18n_1.ChannelWords.format(w.cardRedacted, { n: String(card.redacted) })) : null,
81
+ share ? (react_1.React.createElement(react_1.React.Fragment, null,
82
+ pi.ui.QrCode && (react_1.React.createElement("div", { className: "tac-card-qr" },
83
+ react_1.React.createElement(pi.ui.QrCode, { text: share.link, label: share.title }))),
84
+ react_1.React.createElement("div", { className: "tac-card-link", title: share.link }, share.link),
85
+ react_1.React.createElement("div", { className: "tac-card-actions" },
86
+ react_1.React.createElement("button", { type: "button", className: "tac-button tac-primary", onClick: copy },
87
+ react_1.React.createElement(Copy, { size: 14 }),
88
+ copied ? w.linkCopied : w.copyLink),
89
+ canSend && (react_1.React.createElement("button", { type: "button", className: "tac-button", onClick: () => void navigator.share({ title: share.title, url: share.link }).catch(() => undefined) },
90
+ react_1.React.createElement(Send, { size: 14 }),
91
+ w.sendLink))),
92
+ react_1.React.createElement("p", { className: "tac-dialog-note" }, w.cardHint),
93
+ react_1.React.createElement("button", { type: "button", className: "tac-card-stop", disabled: stopping, onClick: stop }, w.stopCard))) : error ? (react_1.React.createElement("div", { className: "tac-error" }, error)) : (react_1.React.createElement("div", { className: "tac-card-making" },
94
+ react_1.React.createElement("span", { className: "ta-spinner" }),
95
+ w.cardMaking)))));
96
+ }
97
+ /**
98
+ * A card opened from its link, in the workbench: who it is and its role, the directory it would work in, and Add,
99
+ * after which its conversation shows, where it fits its role to the project.
100
+ */
101
+ function CardView({ context, link }) {
102
+ var _a;
103
+ const { pi, service } = context;
104
+ const w = views_1.ChannelViews.words(pi);
105
+ const serverCwd = (0, views_1.useServerCwd)(pi);
106
+ const [card, setCard] = react_1.React.useState();
107
+ const [error, setError] = react_1.React.useState();
108
+ const [cwd, setCwd] = react_1.React.useState();
109
+ const [picking, setPicking] = react_1.React.useState(false);
110
+ const [busy, setBusy] = react_1.React.useState(false);
111
+ const [added, setAdded] = react_1.React.useState();
112
+ react_1.React.useEffect(() => {
113
+ let live = true;
114
+ service.openCard(link).then(opened => live && setCard(opened), failure => live && setError(views_1.ChannelViews.message(failure)));
115
+ return () => {
116
+ live = false;
117
+ };
118
+ }, [service, link]);
119
+ const dir = (_a = cwd !== null && cwd !== void 0 ? cwd : serverCwd) !== null && _a !== void 0 ? _a : '';
120
+ const add = () => {
121
+ setBusy(true);
122
+ setError(undefined);
123
+ service.addFromCard(link, dir).then(result => {
124
+ setBusy(false);
125
+ setAdded(result);
126
+ context.sessions.set(result.agent.id, result.sessionId);
127
+ pi.ui.notify(i18n_1.ChannelWords.format(w.cardAdded, { name: result.agent.name }), 'info');
128
+ void views_1.ChannelViews.openAgent(context, result.agent.id);
129
+ }, failure => {
130
+ setBusy(false);
131
+ setError(views_1.ChannelViews.message(failure));
132
+ });
133
+ };
134
+ if (!card) {
135
+ return (react_1.React.createElement("div", { className: "tac-card-page" }, error ? (react_1.React.createElement(pi.ui.Empty, { title: i18n_1.ChannelWords.format(w.cardFailed, { message: error }) })) : (react_1.React.createElement("div", { className: "tac-card-making" },
136
+ react_1.React.createElement("span", { className: "ta-spinner" }),
137
+ w.cardOpening))));
138
+ }
139
+ const Folder = views_1.ChannelViews.icon(pi, 'Folder');
140
+ return (react_1.React.createElement("div", { className: "tac-card-page" },
141
+ react_1.React.createElement("div", { className: "tac-card" },
142
+ react_1.React.createElement(CardFace, { pi: pi, card: card }),
143
+ react_1.React.createElement("div", { className: "tac-card-role" },
144
+ react_1.React.createElement(pi.ui.Markdown, { text: card.role })),
145
+ added ? (react_1.React.createElement("div", { className: "tac-card-done" },
146
+ react_1.React.createElement("span", null, i18n_1.ChannelWords.format(w.cardAdded, { name: added.agent.name })),
147
+ react_1.React.createElement("button", { type: "button", className: "tac-button", onClick: () => void views_1.ChannelViews.openAgent(context, added.agent.id) }, w.cardOpen))) : (react_1.React.createElement(react_1.React.Fragment, null,
148
+ react_1.React.createElement("div", { className: "tac-card-dir" },
149
+ react_1.React.createElement(Folder, { size: 14 }),
150
+ react_1.React.createElement("span", { title: dir }, i18n_1.ChannelWords.format(w.cardAddTo, { dir: baseName(dir) })),
151
+ pi.ui.FolderPicker && (react_1.React.createElement("button", { type: "button", className: "tac-button tac-quiet", onClick: () => setPicking(true) }, w.cardChangeDir))),
152
+ react_1.React.createElement("button", { type: "button", className: busy ? 'tac-button tac-primary ta-busy' : 'tac-button tac-primary', disabled: busy || !dir, onClick: add },
153
+ w.cardAdd,
154
+ busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark ta-on-brand" })),
155
+ react_1.React.createElement("p", { className: "tac-dialog-note tac-center" }, w.cardAddHint))),
156
+ error && react_1.React.createElement("div", { className: "tac-error" }, error)),
157
+ picking && pi.ui.FolderPicker && (react_1.React.createElement(pi.ui.FolderPicker, { initial: dir, onClose: () => setPicking(false), onPick: path => {
158
+ setPicking(false);
159
+ setCwd(path);
160
+ } }))));
161
+ }
162
+ /** Links of cards, clicked, scanned or pasted, open in a tab of the workbench, one for each card. */
163
+ function registerCardOpener(context) {
164
+ const { pi } = context;
165
+ pi.registerOpener(link => {
166
+ if (link.type !== 'url' || !CardLink.is(link.url)) {
167
+ return false;
168
+ }
169
+ pi.ui.openEditor({
170
+ id: `ta-channels-card:${CardLink.id(link.url)}`,
171
+ title: () => views_1.ChannelViews.words(pi).cardKind,
172
+ icon: views_1.ChannelViews.icon(pi, 'Contact'),
173
+ render: () => react_1.React.createElement(CardView, { context: context, link: link.url }),
174
+ });
175
+ return true;
176
+ }, { specific: true });
177
+ }
178
+ //# sourceMappingURL=card.js.map
@@ -19,6 +19,8 @@ export interface Agent {
19
19
  * members, until the user keeps it. One in no channel shows among the members, so that none is lost.
20
20
  */
21
21
  temporary?: boolean;
22
+ /** Listed first among the members in the side bar. */
23
+ pinned?: boolean;
22
24
  createdAt: number;
23
25
  }
24
26
  /** A conversation of the user, ta and some agents. */
@@ -36,8 +38,20 @@ export interface Channel {
36
38
  by?: 'ta';
37
39
  /** The conversation Ta built it from (its session file): the double shows it in the turn that started it. */
38
40
  origin?: string;
41
+ /** What its members decided, agreed and are to do, which they all follow (docs/design/ta-social.md). */
42
+ notice?: ChannelNotice;
39
43
  createdAt: number;
40
44
  }
45
+ /**
46
+ * The notice of a channel: Markdown under the headings of {@link NOTICE_HEADINGS}, kept by its members with the
47
+ * tool update_channel_notice as the talk settles things, and by the user. In the context of every member.
48
+ */
49
+ export interface ChannelNotice {
50
+ text: string;
51
+ at: number;
52
+ /** {@link USER}, {@link TA} or the id of an agent. */
53
+ by: string;
54
+ }
41
55
  export interface ChannelMessage {
42
56
  id: string;
43
57
  /** {@link USER}, {@link TA}, {@link SYSTEM} or the id of an agent. */
@@ -48,6 +62,8 @@ export interface ChannelMessage {
48
62
  replyTo?: string;
49
63
  /** The agent did not answer: `text` says why. */
50
64
  failed?: boolean;
65
+ /** The line that says `author` changed the notice (`set`) or took it down, `text` empty: not in what the members read. */
66
+ notice?: 'set' | 'cleared';
51
67
  }
52
68
  export interface Team {
53
69
  agents: Agent[];
@@ -78,7 +94,7 @@ export interface Queue {
78
94
  round: Round;
79
95
  }>;
80
96
  }
81
- /** What a page asks the server to do, as `requests/<id>`; the server answers as `results/<id>`. */
97
+ /** What a page asks the server to do: TeamService.request, through `callHost('request', request)`. */
82
98
  export type TeamRequest = {
83
99
  kind: 'createAgent';
84
100
  name: unknown;
@@ -125,6 +141,7 @@ export type TeamRequest = {
125
141
  face?: unknown;
126
142
  cwd?: unknown;
127
143
  keep?: unknown;
144
+ pinned?: unknown;
128
145
  }
129
146
  /** The agent goes, and with it the channels it was the only member of. */
130
147
  | {
@@ -139,13 +156,36 @@ export type TeamRequest = {
139
156
  | {
140
157
  kind: 'openAgent';
141
158
  agent: unknown;
142
- };
143
- export type TeamResult = {
144
- ok: true;
145
- value?: unknown;
146
- } | {
147
- ok: false;
148
- error: string;
159
+ }
160
+ /** The notice of a channel, as the user writes it; an empty one goes. */
161
+ | {
162
+ kind: 'setNotice';
163
+ channel: unknown;
164
+ text: unknown;
165
+ }
166
+ /** The link of the agent's card (AgentCards), made once and kept while it is on: TaShareInfo. */
167
+ | {
168
+ kind: 'shareAgent';
169
+ agent: unknown;
170
+ color?: unknown;
171
+ }
172
+ /** Its card's link no longer works. */
173
+ | {
174
+ kind: 'stopCard';
175
+ agent: unknown;
176
+ }
177
+ /** What a link of a card shares: RelayAgentCard. */
178
+ | {
179
+ kind: 'openCard';
180
+ link: unknown;
181
+ password?: unknown;
182
+ }
183
+ /** The agent of a card, for `cwd`: it fits its role to the project there first (AgentCards.ADAPT). Answers the agent and its session. */
184
+ | {
185
+ kind: 'addFromCard';
186
+ link: unknown;
187
+ password?: unknown;
188
+ cwd?: unknown;
149
189
  };
150
190
  /** What the user changes of a member of a channel: makes it lead, takes it out, mutes it or lets it answer again. */
151
191
  export type MemberChange = 'lead' | 'remove' | 'mute' | 'unmute';
@@ -155,19 +195,22 @@ export interface Focus {
155
195
  channelId: string;
156
196
  at: number;
157
197
  }
158
- /** The keys of the data of the package. The server writes all but `requests/*`, which pages write. */
198
+ /** The keys of the data of the package, which only the server writes. */
159
199
  export declare namespace Keys {
160
200
  const TEAM = "team";
161
201
  const QUEUE = "queue";
162
202
  /** By channel id: the agents answering there now. */
163
203
  const WORKING = "working";
164
204
  const FOCUS = "focus";
165
- const REQUESTS = "requests/";
166
- const RESULTS = "results/";
205
+ /**
206
+ * By agent id: when it last answered in a channel. Its own conversation has that answer too: the side
207
+ * bar does not take it for one in the conversation that the user has not seen.
208
+ */
209
+ const ANSWERED = "answered";
210
+ /** By agent id: the id of the share of its card (TaShareInfo), while it is on. */
211
+ const CARDS = "cards";
167
212
  const MESSAGES = "messages/";
168
213
  const messages: (channelId: string) => string;
169
- const request: (id: string) => string;
170
- const result: (id: string) => string;
171
214
  }
172
215
  /** The person at the page. */
173
216
  export declare const USER = "user";
@@ -202,4 +245,13 @@ export declare const DEFAULT_ROLE = "You help the user with what they ask, as a
202
245
  /** What an agent reads of a channel besides the message for it. */
203
246
  export declare const CONTEXT_MESSAGES = 12;
204
247
  export declare const MAX_NAME = 32;
248
+ /** The longest notice of a channel, in characters. */
249
+ export declare const MAX_NOTICE = 2000;
250
+ /** The headings of the parts of a notice, which the bar above a channel counts the lines of. */
251
+ export declare const NOTICE_HEADINGS: {
252
+ readonly zh: readonly ['决定', '约定', '待办'];
253
+ readonly en: readonly ['Decisions', 'Conventions', 'To do'];
254
+ };
255
+ /** How long the link of an agent's card works, in days. */
256
+ export declare const CARD_DAYS = 30;
205
257
  //# sourceMappingURL=channels-model.d.ts.map
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_NAME = exports.CONTEXT_MESSAGES = exports.DEFAULT_ROLE = exports.MAX_MEMBERS = exports.FACES = exports.MAX_MESSAGES = exports.STOP_NOTE = exports.MAX_AGENT_REPLIES = exports.MAX_REPLIES = exports.MAX_HOPS = exports.SYSTEM = exports.TA = exports.USER = exports.Keys = exports.MEMBER_CHANGES = exports.AGENT_MARK = exports.NAME = void 0;
3
+ exports.CARD_DAYS = exports.NOTICE_HEADINGS = exports.MAX_NOTICE = exports.MAX_NAME = exports.CONTEXT_MESSAGES = exports.DEFAULT_ROLE = exports.MAX_MEMBERS = exports.FACES = exports.MAX_MESSAGES = exports.STOP_NOTE = exports.MAX_AGENT_REPLIES = exports.MAX_REPLIES = exports.MAX_HOPS = exports.SYSTEM = exports.TA = exports.USER = exports.Keys = exports.MEMBER_CHANGES = exports.AGENT_MARK = exports.NAME = void 0;
4
4
  /** The name of this package: the key of its data on the server and the group of the sessions of its agents. */
5
5
  exports.NAME = '@celljs/ta-channels';
6
6
  /** In the system prompt of every agent: how the tools tell an agent's session from ta's. */
7
7
  exports.AGENT_MARK = 'one of the agents of Ta';
8
8
  exports.MEMBER_CHANGES = ['lead', 'remove', 'mute', 'unmute'];
9
- /** The keys of the data of the package. The server writes all but `requests/*`, which pages write. */
9
+ /** The keys of the data of the package, which only the server writes. */
10
10
  var Keys;
11
11
  (function (Keys) {
12
12
  Keys.TEAM = 'team';
@@ -14,12 +14,15 @@ var Keys;
14
14
  /** By channel id: the agents answering there now. */
15
15
  Keys.WORKING = 'working';
16
16
  Keys.FOCUS = 'focus';
17
- Keys.REQUESTS = 'requests/';
18
- Keys.RESULTS = 'results/';
17
+ /**
18
+ * By agent id: when it last answered in a channel. Its own conversation has that answer too: the side
19
+ * bar does not take it for one in the conversation that the user has not seen.
20
+ */
21
+ Keys.ANSWERED = 'answered';
22
+ /** By agent id: the id of the share of its card (TaShareInfo), while it is on. */
23
+ Keys.CARDS = 'cards';
19
24
  Keys.MESSAGES = 'messages/';
20
25
  Keys.messages = (channelId) => `${Keys.MESSAGES}${channelId}`;
21
- Keys.request = (id) => `${Keys.REQUESTS}${id}`;
22
- Keys.result = (id) => `${Keys.RESULTS}${id}`;
23
26
  })(Keys || (exports.Keys = Keys = {}));
24
27
  /** The person at the page. */
25
28
  exports.USER = 'user';
@@ -46,4 +49,10 @@ exports.DEFAULT_ROLE = 'You help the user with what they ask, as a colleague who
46
49
  /** What an agent reads of a channel besides the message for it. */
47
50
  exports.CONTEXT_MESSAGES = 12;
48
51
  exports.MAX_NAME = 32;
52
+ /** The longest notice of a channel, in characters. */
53
+ exports.MAX_NOTICE = 2000;
54
+ /** The headings of the parts of a notice, which the bar above a channel counts the lines of. */
55
+ exports.NOTICE_HEADINGS = { zh: ['决定', '约定', '待办'], en: ['Decisions', 'Conventions', 'To do'] };
56
+ /** How long the link of an agent's card works, in days. */
57
+ exports.CARD_DAYS = 30;
49
58
  //# sourceMappingURL=channels-model.js.map
@@ -83,14 +83,16 @@ export declare namespace ChannelsUtil {
83
83
  channel: Channel;
84
84
  before: Channel;
85
85
  };
86
- /** The pinned channels first, each group in the order they were made. */
87
86
  /** The agents the user has: those they made or kept, and those Ta made that are in no channel anymore. */
88
87
  function standing(team: Team): Agent[];
89
88
  /** The channels Ta built for work handed to it: the double's tasks. */
90
89
  function taskChannels(team: Team): Channel[];
91
90
  /** The user's own channels. */
92
91
  function ownChannels(team: Team): Channel[];
93
- function pinnedFirst<T extends Pick<Channel, 'pinned'>>(channels: readonly T[]): T[];
92
+ /** The pinned channels or agents first, each group in the order it had. */
93
+ function pinnedFirst<T extends {
94
+ pinned?: boolean;
95
+ }>(items: readonly T[]): T[];
94
96
  function removeChannel(team: Team, ref: unknown): {
95
97
  team: Team;
96
98
  channel: Channel;
@@ -111,6 +113,7 @@ export declare namespace ChannelsUtil {
111
113
  face?: unknown;
112
114
  cwd?: unknown;
113
115
  keep?: unknown;
116
+ pinned?: unknown;
114
117
  }): {
115
118
  team: Team;
116
119
  agent: Agent;
@@ -138,6 +141,18 @@ export declare namespace ChannelsUtil {
138
141
  }): string;
139
142
  /** What an agent's session adds to its system prompt. */
140
143
  function systemPrompt(agent: Agent): string;
144
+ /** The notice of a channel as the user or a member writes it: trimmed, none when empty, `before` the channel as it was. */
145
+ function setNotice(team: Team, input: {
146
+ channel: unknown;
147
+ text: unknown;
148
+ by: string;
149
+ at?: number;
150
+ }): {
151
+ team: Team;
152
+ channel: Channel;
153
+ before: Channel;
154
+ changed: boolean;
155
+ };
141
156
  /**
142
157
  * The message an agent gets: where it is, who is there and what was said, in the `<context>` block
143
158
  * that ta's pages leave out (TaMessageContext of @celljs/ta-protocol), then what to answer.
@@ -158,4 +173,18 @@ export declare namespace ChannelsUtil {
158
173
  ta: string;
159
174
  }): string;
160
175
  }
176
+ /** The parts of a notice, as the bar above a channel counts them. */
177
+ export interface NoticeCounts {
178
+ decisions: number;
179
+ conventions: number;
180
+ /** To-dos not done yet. */
181
+ todo: number;
182
+ done: number;
183
+ }
184
+ export declare namespace NoticeUtil {
185
+ /** How many lines each part has; a line out of the parts counts for none. */
186
+ function counts(text: string): NoticeCounts;
187
+ /** The first line of the notice as text, for a bar folded to one line. */
188
+ function firstLine(text: string): string;
189
+ }
161
190
  //# sourceMappingURL=channels-util.d.ts.map