@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.
- package/README.en.md +3 -1
- package/README.md +3 -1
- package/dist/cli.mjs +1675 -51
- package/dist/gateway.mjs +167 -5
- package/dist/pi/CHANGELOG.md +27 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +359 -155
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-catalog.d.ts +2 -2
- package/dist/pi/packages/ta-agents/lib/agent-catalog.js +4 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +9 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +25 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +71 -1
- package/dist/pi/packages/ta-agents/lib/agent-session.js +177 -17
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +23 -2
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +4 -3
- package/dist/pi/packages/ta-agents/lib/agent-turn.d.ts +7 -1
- package/dist/pi/packages/ta-agents/lib/agent-turn.js +26 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +7 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +12 -0
- package/dist/pi/packages/ta-agents/package.json +1 -1
- package/dist/pi/packages/ta-bots/extension/index.mjs +31 -299
- package/dist/pi/packages/ta-bots/host/index.mjs +143 -1
- package/dist/pi/packages/ta-bots/lib/bots-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-bots/lib/bots-protocol.js +3 -1
- package/dist/pi/packages/ta-bots/lib/bots-view.js +24 -12
- package/dist/pi/packages/ta-bots/lib/composer.js +1 -0
- package/dist/pi/packages/ta-bots/lib/extension.js +10 -17
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +1 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +2 -0
- package/dist/pi/packages/ta-bots/lib/index.js +2 -0
- package/dist/pi/packages/ta-bots/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-bots/lib/style.js +1 -0
- package/dist/pi/packages/ta-bots/lib/text-util.js +8 -1
- package/dist/pi/packages/ta-bots/lib/tool-line.d.ts +8 -0
- package/dist/pi/packages/ta-bots/lib/tool-line.js +19 -0
- package/dist/pi/packages/ta-bots/package.json +1 -1
- package/dist/pi/packages/ta-bots/web/index.js +47 -16
- package/dist/pi/packages/ta-changes/extension/index.mjs +23 -13
- package/dist/pi/packages/ta-changes/lib/card.js +18 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.d.ts +0 -4
- package/dist/pi/packages/ta-changes/lib/changes-protocol.js +1 -5
- package/dist/pi/packages/ta-changes/lib/extension.js +5 -13
- package/dist/pi/packages/ta-changes/package.json +1 -1
- package/dist/pi/packages/ta-changes/web/index.js +16 -3
- package/dist/pi/packages/ta-channels/README.en.md +4 -3
- package/dist/pi/packages/ta-channels/README.md +4 -3
- package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
- package/dist/pi/packages/ta-channels/host/index.mjs +588 -43
- package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/agent-cards.js +58 -0
- package/dist/pi/packages/ta-channels/lib/agent-menu.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/agent-menu.js +20 -6
- package/dist/pi/packages/ta-channels/lib/card.d.ts +27 -0
- package/dist/pi/packages/ta-channels/lib/card.js +178 -0
- package/dist/pi/packages/ta-channels/lib/channels-model.d.ts +65 -13
- package/dist/pi/packages/ta-channels/lib/channels-model.js +15 -6
- package/dist/pi/packages/ta-channels/lib/channels-util.d.ts +31 -2
- package/dist/pi/packages/ta-channels/lib/channels-util.js +100 -6
- package/dist/pi/packages/ta-channels/lib/channels.d.ts +28 -18
- package/dist/pi/packages/ta-channels/lib/channels.js +65 -65
- package/dist/pi/packages/ta-channels/lib/create.js +3 -1
- package/dist/pi/packages/ta-channels/lib/extension.d.ts +8 -0
- package/dist/pi/packages/ta-channels/lib/extension.js +104 -18
- package/dist/pi/packages/ta-channels/lib/faces.d.ts +2 -0
- package/dist/pi/packages/ta-channels/lib/faces.js +6 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.d.ts +19 -0
- package/dist/pi/packages/ta-channels/lib/handoff-view.js +113 -0
- package/dist/pi/packages/ta-channels/lib/handoff.d.ts +67 -0
- package/dist/pi/packages/ta-channels/lib/handoff.js +114 -0
- package/dist/pi/packages/ta-channels/lib/host.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/host.js +1 -1
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +45 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +90 -0
- package/dist/pi/packages/ta-channels/lib/index.js +10 -1
- package/dist/pi/packages/ta-channels/lib/member-tools.d.ts +23 -0
- package/dist/pi/packages/ta-channels/lib/member-tools.js +56 -0
- package/dist/pi/packages/ta-channels/lib/members.js +6 -2
- package/dist/pi/packages/ta-channels/lib/notice.d.ts +25 -0
- package/dist/pi/packages/ta-channels/lib/notice.js +101 -0
- package/dist/pi/packages/ta-channels/lib/room.js +13 -2
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.js +160 -79
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +72 -4
- package/dist/pi/packages/ta-channels/lib/team.d.ts +58 -10
- package/dist/pi/packages/ta-channels/lib/team.js +159 -38
- package/dist/pi/packages/ta-channels/lib/tool-lines.d.ts +22 -0
- package/dist/pi/packages/ta-channels/lib/tool-lines.js +113 -0
- package/dist/pi/packages/ta-channels/lib/views.d.ts +33 -16
- package/dist/pi/packages/ta-channels/lib/views.js +79 -31
- package/dist/pi/packages/ta-channels/package.json +2 -1
- package/dist/pi/packages/ta-channels/web/index.js +1551 -308
- package/dist/pi/packages/ta-computer-use/package.json +6 -1
- package/dist/pi/packages/ta-cron/README.en.md +4 -2
- package/dist/pi/packages/ta-cron/README.md +4 -2
- package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
- package/dist/pi/packages/ta-cron/host/index.mjs +24 -3
- package/dist/pi/packages/ta-cron/lib/chat-task.d.ts +48 -0
- package/dist/pi/packages/ta-cron/lib/chat-task.js +133 -0
- package/dist/pi/packages/ta-cron/lib/commands.d.ts +2 -1
- package/dist/pi/packages/ta-cron/lib/commands.js +10 -4
- package/dist/pi/packages/ta-cron/lib/composer.d.ts +11 -0
- package/dist/pi/packages/ta-cron/lib/composer.js +58 -0
- package/dist/pi/packages/ta-cron/lib/cron-protocol.d.ts +10 -3
- package/dist/pi/packages/ta-cron/lib/cron-protocol.js +6 -3
- package/dist/pi/packages/ta-cron/lib/editor.js +5 -3
- package/dist/pi/packages/ta-cron/lib/extension.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/extension.js +33 -13
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +18 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +36 -0
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/page.js +12 -0
- package/dist/pi/packages/ta-cron/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/react.js +8 -0
- package/dist/pi/packages/ta-cron/lib/scheduler.js +3 -2
- package/dist/pi/packages/ta-cron/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-cron/lib/style.js +11 -13
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +20 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +6 -2
- package/dist/pi/packages/ta-cron/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-cron/lib/tool-line.js +40 -0
- package/dist/pi/packages/ta-cron/lib/tool.d.ts +5 -1
- package/dist/pi/packages/ta-cron/lib/tool.js +6 -3
- package/dist/pi/packages/ta-cron/package.json +12 -1
- package/dist/pi/packages/ta-cron/web/index.js +661 -254
- package/dist/pi/packages/ta-extensions/README.en.md +1 -1
- package/dist/pi/packages/ta-extensions/README.md +1 -1
- package/dist/pi/packages/ta-extensions/host/index.mjs +3 -2
- package/dist/pi/packages/ta-extensions/lib/actions.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/actions.js +13 -4
- package/dist/pi/packages/ta-extensions/lib/extensions-util.d.ts +5 -0
- package/dist/pi/packages/ta-extensions/lib/extensions-util.js +10 -0
- package/dist/pi/packages/ta-extensions/lib/market-parts.js +8 -2
- package/dist/pi/packages/ta-extensions/lib/market-style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/market-style.js +4 -5
- package/dist/pi/packages/ta-extensions/lib/market-util.d.ts +2 -2
- package/dist/pi/packages/ta-extensions/lib/market-util.js +2 -2
- package/dist/pi/packages/ta-extensions/lib/page.js +12 -7
- package/dist/pi/packages/ta-extensions/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/react.js +8 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +3 -2
- package/dist/pi/packages/ta-extensions/package.json +6 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +20 -8
- package/dist/pi/packages/ta-extensions/web/index.js +191 -22
- package/dist/pi/packages/ta-games/README.en.md +47 -0
- package/dist/pi/packages/ta-games/README.md +47 -0
- package/dist/pi/packages/ta-games/host/index.mjs +65 -0
- package/dist/pi/packages/ta-games/lib/games-view.d.ts +16 -0
- package/dist/pi/packages/ta-games/lib/games-view.js +77 -0
- package/dist/pi/packages/ta-games/lib/host.d.ts +36 -0
- package/dist/pi/packages/ta-games/lib/host.js +83 -0
- package/dist/pi/packages/ta-games/lib/i18n.d.ts +35 -0
- package/dist/pi/packages/ta-games/lib/i18n.js +71 -0
- package/dist/pi/packages/ta-games/lib/ideas.d.ts +6 -0
- package/dist/pi/packages/ta-games/lib/ideas.js +62 -0
- package/dist/pi/packages/ta-games/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-games/lib/index.js +24 -0
- package/dist/pi/packages/ta-games/lib/make-game.d.ts +23 -0
- package/dist/pi/packages/ta-games/lib/make-game.js +67 -0
- package/dist/pi/packages/ta-games/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-games/lib/react.js +16 -0
- package/dist/pi/packages/ta-games/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-games/lib/style.js +33 -0
- package/dist/pi/packages/ta-games/package.json +60 -0
- package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +127 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/dino-run/web.js +389 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/package.json +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/examples/stack/web.js +423 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/LICENSE.md +22 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/actions-and-utilities/SKILL.md +343 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/animations/SKILL.md +481 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/audio-and-sound/SKILL.md +453 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/cameras/references/REFERENCE.md +128 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/curves-and-paths/SKILL.md +359 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/data-manager/SKILL.md +406 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/events-system/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/filters-and-postfx/SKILL.md +449 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/SKILL.md +478 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-object-components/references/REFERENCE.md +76 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/game-setup-and-config/SKILL.md +485 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/geometry-and-math/SKILL.md +497 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/graphics-and-shapes/SKILL.md +473 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/groups-and-containers/SKILL.md +418 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/SKILL.md +500 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/input-keyboard-mouse-touch/references/REFERENCE.md +372 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/SKILL.md +474 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/loading-assets/references/REFERENCE.md +148 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/particles/references/REFERENCE.md +17 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-arcade/SKILL.md +468 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/physics-matter/SKILL.md +499 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/render-textures/SKILL.md +441 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scale-and-responsive/SKILL.md +371 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/SKILL.md +450 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/scenes/references/REFERENCE.md +78 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/SKILL.md +417 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/sprites-and-images/references/REFERENCE.md +160 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/text-and-bitmaptext/SKILL.md +460 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tilemaps/SKILL.md +440 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/time-and-timers/SKILL.md +496 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/tweens/SKILL.md +414 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v3-to-v4-migration/SKILL.md +430 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/SKILL.md +384 -0
- package/dist/pi/packages/ta-games/skills/ta-game/phaser/v4-new-features/references/REFERENCE.md +69 -0
- package/dist/pi/packages/ta-games/web/index.js +431 -0
- package/dist/pi/packages/ta-glance/README.en.md +11 -0
- package/dist/pi/packages/ta-glance/README.md +11 -0
- package/dist/pi/packages/ta-glance/extension/index.mjs +67 -0
- package/dist/pi/packages/ta-glance/lib/card.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/card.js +269 -0
- package/dist/pi/packages/ta-glance/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-glance/lib/extension.js +24 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +9 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.js +85 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +34 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.d.ts +98 -0
- package/dist/pi/packages/ta-glance/lib/glance-protocol.js +8 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +206 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/glance-util.js +12 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +22 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +41 -0
- package/dist/pi/packages/ta-glance/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-glance/lib/index.js +22 -0
- package/dist/pi/packages/ta-glance/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-glance/lib/react.js +8 -0
- package/dist/pi/packages/ta-glance/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-glance/lib/style.js +241 -0
- package/dist/pi/packages/ta-glance/package.json +53 -0
- package/dist/pi/packages/ta-glance/web/index.js +1013 -0
- package/dist/pi/packages/ta-launcher/lib/actions.d.ts +4 -4
- package/dist/pi/packages/ta-launcher/lib/actions.js +7 -3
- package/dist/pi/packages/ta-launcher/lib/launcher-util.d.ts +7 -7
- package/dist/pi/packages/ta-launcher/lib/launcher-util.js +11 -8
- package/dist/pi/packages/ta-launcher/lib/launcher-view.js +13 -7
- package/dist/pi/packages/ta-launcher/lib/react.d.ts +3 -0
- package/dist/pi/packages/ta-launcher/lib/react.js +8 -0
- package/dist/pi/packages/ta-launcher/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-launcher/lib/style.js +6 -4
- package/dist/pi/packages/ta-launcher/package.json +1 -1
- package/dist/pi/packages/ta-launcher/web/index.js +34 -17
- package/dist/pi/packages/ta-manual/README.en.md +10 -0
- package/dist/pi/packages/ta-manual/README.md +10 -0
- package/dist/pi/packages/ta-manual/lib/i18n.d.ts +15 -0
- package/dist/pi/packages/ta-manual/lib/i18n.js +31 -0
- package/dist/pi/packages/ta-manual/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-manual/lib/index.js +24 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.d.ts +18 -0
- package/dist/pi/packages/ta-manual/lib/manual-util.js +40 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/manual-view.js +81 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-a.js +263 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-b.js +216 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.d.ts +2 -0
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +53 -0
- package/dist/pi/packages/ta-manual/lib/pictures.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +17 -0
- package/dist/pi/packages/ta-manual/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-manual/lib/react.js +8 -0
- package/dist/pi/packages/ta-manual/lib/scene.d.ts +68 -0
- package/dist/pi/packages/ta-manual/lib/scene.js +115 -0
- package/dist/pi/packages/ta-manual/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/style.js +47 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +43 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +388 -0
- package/dist/pi/packages/ta-manual/package.json +54 -0
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +130 -0
- package/dist/pi/packages/ta-manual/web/index.js +2408 -0
- package/dist/pi/packages/ta-notify/README.en.md +29 -0
- package/dist/pi/packages/ta-notify/README.md +29 -0
- package/dist/pi/packages/ta-notify/extension/index.mjs +259 -0
- package/dist/pi/packages/ta-notify/host/index.mjs +163 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/ask-card.js +40 -0
- package/dist/pi/packages/ta-notify/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-notify/lib/extension.js +102 -0
- package/dist/pi/packages/ta-notify/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/host.js +9 -0
- package/dist/pi/packages/ta-notify/lib/i18n.d.ts +31 -0
- package/dist/pi/packages/ta-notify/lib/i18n.js +63 -0
- package/dist/pi/packages/ta-notify/lib/index.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/index.js +29 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.d.ts +74 -0
- package/dist/pi/packages/ta-notify/lib/notify-protocol.js +23 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +21 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +75 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.d.ts +39 -0
- package/dist/pi/packages/ta-notify/lib/notify-util.js +119 -0
- package/dist/pi/packages/ta-notify/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/react.js +8 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/server-texts.js +22 -0
- package/dist/pi/packages/ta-notify/lib/settings.d.ts +8 -0
- package/dist/pi/packages/ta-notify/lib/settings.js +85 -0
- package/dist/pi/packages/ta-notify/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-notify/lib/style.js +29 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.d.ts +9 -0
- package/dist/pi/packages/ta-notify/lib/tool-line.js +20 -0
- package/dist/pi/packages/ta-notify/lib/tool.d.ts +37 -0
- package/dist/pi/packages/ta-notify/lib/tool.js +46 -0
- package/dist/pi/packages/ta-notify/lib/watcher.d.ts +15 -0
- package/dist/pi/packages/ta-notify/lib/watcher.js +81 -0
- package/dist/pi/packages/ta-notify/package.json +55 -0
- package/dist/pi/packages/ta-notify/web/index.js +436 -0
- package/dist/pi/packages/ta-recall/README.en.md +19 -0
- package/dist/pi/packages/ta-recall/README.md +19 -0
- package/dist/pi/packages/ta-recall/extension/index.mjs +615 -0
- package/dist/pi/packages/ta-recall/host/index.mjs +820 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.d.ts +21 -0
- package/dist/pi/packages/ta-recall/lib/brief-card.js +67 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.d.ts +49 -0
- package/dist/pi/packages/ta-recall/lib/brief-home.js +143 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/brief-seen.js +26 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +64 -0
- package/dist/pi/packages/ta-recall/lib/brief-util.js +179 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.d.ts +8 -0
- package/dist/pi/packages/ta-recall/lib/chat-icons.js +56 -0
- package/dist/pi/packages/ta-recall/lib/composer.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/composer.js +38 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.d.ts +25 -0
- package/dist/pi/packages/ta-recall/lib/conversation-index.js +72 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.d.ts +16 -0
- package/dist/pi/packages/ta-recall/lib/conversation-util.js +109 -0
- package/dist/pi/packages/ta-recall/lib/conversations.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/conversations.js +52 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-recall/lib/extension.js +132 -0
- package/dist/pi/packages/ta-recall/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/host.js +11 -0
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +41 -0
- package/dist/pi/packages/ta-recall/lib/i18n.js +83 -0
- package/dist/pi/packages/ta-recall/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/index.js +45 -0
- package/dist/pi/packages/ta-recall/lib/react.d.ts +11 -0
- package/dist/pi/packages/ta-recall/lib/react.js +16 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.d.ts +186 -0
- package/dist/pi/packages/ta-recall/lib/recall-protocol.js +60 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.d.ts +42 -0
- package/dist/pi/packages/ta-recall/lib/recall-service.js +241 -0
- package/dist/pi/packages/ta-recall/lib/search-source.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/search-source.js +49 -0
- package/dist/pi/packages/ta-recall/lib/search-util.d.ts +30 -0
- package/dist/pi/packages/ta-recall/lib/search-util.js +167 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +7 -0
- package/dist/pi/packages/ta-recall/lib/server-texts.js +17 -0
- package/dist/pi/packages/ta-recall/lib/settings.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/settings.js +77 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.d.ts +9 -0
- package/dist/pi/packages/ta-recall/lib/skill-card.js +51 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.d.ts +19 -0
- package/dist/pi/packages/ta-recall/lib/skill-util.js +110 -0
- package/dist/pi/packages/ta-recall/lib/stored.d.ts +5 -0
- package/dist/pi/packages/ta-recall/lib/stored.js +28 -0
- package/dist/pi/packages/ta-recall/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-recall/lib/style.js +48 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.d.ts +10 -0
- package/dist/pi/packages/ta-recall/lib/tool-line.js +23 -0
- package/dist/pi/packages/ta-recall/lib/tool.d.ts +63 -0
- package/dist/pi/packages/ta-recall/lib/tool.js +71 -0
- package/dist/pi/packages/ta-recall/package.json +55 -0
- package/dist/pi/packages/ta-recall/web/index.js +1042 -0
- package/dist/pi/packages/ta-rooms/README.en.md +29 -0
- package/dist/pi/packages/ta-rooms/README.md +29 -0
- package/dist/pi/packages/ta-rooms/extension/index.mjs +362 -0
- package/dist/pi/packages/ta-rooms/host/index.mjs +966 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.d.ts +25 -0
- package/dist/pi/packages/ta-rooms/lib/agents-view.js +128 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.d.ts +39 -0
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +235 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.d.ts +114 -0
- package/dist/pi/packages/ta-rooms/lib/double-host.js +645 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +85 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +172 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.d.ts +165 -0
- package/dist/pi/packages/ta-rooms/lib/double-protocol.js +73 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +99 -0
- package/dist/pi/packages/ta-rooms/lib/double-util.js +180 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.d.ts +45 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +145 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.d.ts +34 -0
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +223 -0
- package/dist/pi/packages/ta-rooms/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-rooms/lib/extension.js +176 -0
- package/dist/pi/packages/ta-rooms/lib/host.d.ts +7 -0
- package/dist/pi/packages/ta-rooms/lib/host.js +18 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +211 -0
- package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/index.js +106 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.js +94 -0
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +154 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +400 -0
- package/dist/pi/packages/ta-rooms/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/react.js +8 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.d.ts +15 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.js +168 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.d.ts +32 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-home.js +141 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +14 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +217 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-rooms/lib/style.js +205 -0
- package/dist/pi/packages/ta-rooms/package.json +56 -0
- package/dist/pi/packages/ta-rooms/web/index.js +3165 -0
- package/dist/pi/packages/ta-share/README.en.md +27 -0
- package/dist/pi/packages/ta-share/README.md +27 -0
- package/dist/pi/packages/ta-share/extension/index.mjs +184 -0
- package/dist/pi/packages/ta-share/host/index.mjs +364 -0
- package/dist/pi/packages/ta-share/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-share/lib/extension.js +115 -0
- package/dist/pi/packages/ta-share/lib/host.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/host.js +9 -0
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +106 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +213 -0
- package/dist/pi/packages/ta-share/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-share/lib/index.js +77 -0
- package/dist/pi/packages/ta-share/lib/page.d.ts +48 -0
- package/dist/pi/packages/ta-share/lib/page.js +105 -0
- package/dist/pi/packages/ta-share/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-share/lib/react.js +8 -0
- package/dist/pi/packages/ta-share/lib/server-texts.d.ts +14 -0
- package/dist/pi/packages/ta-share/lib/server-texts.js +52 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/share-dialog.js +233 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.d.ts +86 -0
- package/dist/pi/packages/ta-share/lib/share-protocol.js +30 -0
- package/dist/pi/packages/ta-share/lib/share-service.d.ts +50 -0
- package/dist/pi/packages/ta-share/lib/share-service.js +130 -0
- package/dist/pi/packages/ta-share/lib/shared-view.d.ts +18 -0
- package/dist/pi/packages/ta-share/lib/shared-view.js +225 -0
- package/dist/pi/packages/ta-share/lib/shares-page.d.ts +3 -0
- package/dist/pi/packages/ta-share/lib/shares-page.js +78 -0
- package/dist/pi/packages/ta-share/lib/snapshot.d.ts +30 -0
- package/dist/pi/packages/ta-share/lib/snapshot.js +195 -0
- package/dist/pi/packages/ta-share/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-share/lib/style.js +117 -0
- package/dist/pi/packages/ta-share/package.json +56 -0
- package/dist/pi/packages/ta-share/web/index.js +1224 -0
- package/dist/pi/packages/ta-workspace/README.md +1 -1
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/browser-common.js +29 -30
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.d.ts +15 -0
- package/dist/pi/packages/ta-workspace/lib/browser-tool-line.js +70 -0
- package/dist/pi/packages/ta-workspace/lib/editors.js +29 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +13 -2
- package/dist/pi/packages/ta-workspace/lib/i18n.js +29 -7
- package/dist/pi/packages/ta-workspace/lib/index.js +2 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +10 -1
- package/dist/pi/packages/ta-workspace/lib/preview.js +136 -11
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +56 -40
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.d.ts +15 -4
- package/dist/pi/packages/ta-workspace/lib/terminal-sessions.js +31 -9
- package/dist/pi/packages/ta-workspace/lib/terminal.d.ts +3 -2
- package/dist/pi/packages/ta-workspace/lib/terminal.js +51 -21
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +27 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +74 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.d.ts +5 -0
- package/dist/pi/packages/ta-workspace/lib/util/terminal.js +14 -0
- package/dist/pi/packages/ta-workspace/package.json +1 -1
- package/dist/pi/packages/ta-workspace/web/index.js +823 -341
- package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-BmIko5tV.js → abnfDiagram-S7VZAUFO-BnqtcbpZ.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-BzPq1Ioe.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-BsquO3a7.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-BQNYOEP4.js} +1 -1
- package/dist/public/assets/{browser-DOHZ0JCf.js → browser-DS711n7Y.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-D6e79Ycq.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-B-sgaPoU.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-D8pJKIg2.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-86TL-vCz.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-CfUVuGjc.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-Drm0FEYk.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-BVFRADlC.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-DfyALEmP.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-DtJVzk2c.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-DTy27PHQ.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-nSgn7jZg.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-CkSxO_X6.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Ck6iAjAL.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-DQPHdSTh.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-Bc2AbV2Y.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-Cgpm0IXm.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-CGE4eLpg.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-4eQuDPEo.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-tDLCWq07.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dd40W2Jh.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-ByqcZ8x9.js} +1 -1
- package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-Bgn1374-.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-mCgr71mV.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-DpYSwpQ0.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-DMozUQzi.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-Bk5Uf8PD.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-DFt5cPVK.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BkZZcKqK.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-HEY6kyyN.js} +1 -1
- package/dist/public/assets/{dist-acJS-BlA.js → dist-Bj2CrKn7.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-D4JvYyVb.js} +1 -1
- package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-BpJFzYbl.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-CT6qLJkF.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-BGng1goR.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-Tt8O-Q1Z.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-uFzenfA3.js +1 -0
- package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-Dd5ksoRn.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Jl8VO_g2.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D28I_jUc.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-Be4qXALb.js} +1 -1
- package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-4xabgUi4.js} +1 -1
- package/dist/public/assets/{html-DuzouNES.js → html-Dk3kt2w_.js} +1 -1
- package/dist/public/assets/{index-B7OYKvCE.js → index-Bx0c7eoh.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-5vIGEIq7.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-Coc0tdwb.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-CE_1VQCg.js} +1 -1
- package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-DKLGqy6v.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-CrolRZ_7.js} +1 -1
- package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-Chcs19_y.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-CjJj47De.js} +1 -1
- package/dist/public/assets/{liquid-Din4CF34.js → liquid-jff3p-Ji.js} +1 -1
- package/dist/public/assets/{mdx-DivDuCWI.js → mdx-DW4uRDfJ.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-XhQj6FvH.js} +3 -3
- package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-OD4Atimg.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-DpGelVY7.js} +1 -1
- package/dist/public/assets/module-CrD0OHQp.js +1 -0
- package/dist/public/assets/module-DEBMgdtf.js +2273 -0
- package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-BTVZP-tU.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-CBxQ5Mzy.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-CqcBmPfB.js} +1 -1
- package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
- package/dist/public/assets/pie-XZMESJXO-DT5V3581.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CRir3beB.js} +1 -1
- package/dist/public/assets/{python-BQbTTTT5.js → python-BwW_0207.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-DIY6gdcf.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-BAOovYEa.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-RZ2Rnwzh.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-XWNOzunl.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-CI0-j1Jz.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-BVB_IaIG.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-CudwT6q2.js} +1 -1
- package/dist/public/assets/{razor-DiLk54O0.js → razor-DrjCyQqB.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-CvRMeRqj.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-adxYCJKr.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-lCRsoLUp.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-DNst1BLg.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-S_omrdvA.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-By5lnz4u.js +8 -0
- package/dist/public/assets/three.module-CeVBJVoU.js +4225 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-DhQoApff.js → timeline-definition-SEUHKTQE-_pMGrTE-.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-Cyb9N8KY.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-BkMo57pG.js +1 -0
- package/dist/public/assets/{typescript-COQ1g-up.js → typescript-0-z_OYCU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-B2oJKi5Q.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-inPs2Kkr.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-CSt-uQ-Y.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-DNhNHM7b.js} +1 -1
- package/dist/public/assets/{xml-BbvtjuaG.js → xml-BXPxQzKF.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-DJc93dNT.js} +1 -1
- package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CGmD9Rya.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +6664 -2480
- package/package.json +32 -25
- package/dist/public/assets/cynefin-EF2NZ3EQ-MaI-3dMQ.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-shBnAQFk.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-BtQWboBz.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CDSLjba_.js +0 -1
- package/dist/public/assets/module-BAQaY56j.js +0 -1
- package/dist/public/assets/module-DxRGg3ED.js +0 -1947
- package/dist/public/assets/packet-JDAUHWVQ-dYb4P9eU.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CIompBnc.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-DiJl7BtK.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-B5cRBukM.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-DxXlavVT.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BOP6mkZC.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-BJxuPMz3.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-jqlowjVL.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare const NO_SERVER = "Rooms need the Ta service: start it with `ta serve`. In Ta in a terminal there are none.";
|
|
2
|
+
interface Pi {
|
|
3
|
+
events: {
|
|
4
|
+
emit(event: string, data: unknown): void;
|
|
5
|
+
};
|
|
6
|
+
on(event: string, handler: (event: never, ctx: never) => unknown): unknown;
|
|
7
|
+
registerTool(tool: never): unknown;
|
|
8
|
+
getActiveTools(): string[];
|
|
9
|
+
getAllTools(): {
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
setActiveTools(names: string[]): void;
|
|
13
|
+
}
|
|
14
|
+
/** A path of a call of a tool of files, inside the directory the user let the double work in. */
|
|
15
|
+
export declare function inside(cwd: string, path: unknown): boolean;
|
|
16
|
+
/**
|
|
17
|
+
* The pi extension of the rooms: in the session of a double in a room (its role has ROOM_DOUBLE_MARK), only the tools its
|
|
18
|
+
* permissions allow, for the one it answers now, and no instructions or skills of the user's that it may not read; so too
|
|
19
|
+
* for an agent of the user others ask in a room, while one the user asks works with all its tools. In the user's own
|
|
20
|
+
* conversations, the tools to act in rooms for them. The doubles are the host's (double-host.ts).
|
|
21
|
+
*/
|
|
22
|
+
export default function activate(pi: Pi): void;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=extension.d.ts.map
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NO_SERVER = void 0;
|
|
4
|
+
exports.inside = inside;
|
|
5
|
+
exports.default = activate;
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
|
|
8
|
+
const double_protocol_1 = require("./double-protocol");
|
|
9
|
+
const double_util_1 = require("./double-util");
|
|
10
|
+
exports.NO_SERVER = 'Rooms need the Ta service: start it with `ta serve`. In Ta in a terminal there are none.';
|
|
11
|
+
/** In the role of the agents of ta-channels (AGENT_MARK there, which this bundle does not import): they do not act in rooms. */
|
|
12
|
+
const AGENT_MARK = 'one of the agents of Ta';
|
|
13
|
+
/** pi's tools an agent the user asks in a room has at least. */
|
|
14
|
+
const OWN_TOOLS = ['read', 'bash', 'edit', 'write'];
|
|
15
|
+
/** The tools of a double in a room (DoubleUtil.ROOM_TOOLS): what it may do with no permission, and asking for one. */
|
|
16
|
+
const DOUBLE_TOOLS = [
|
|
17
|
+
{
|
|
18
|
+
name: 'room_state',
|
|
19
|
+
label: 'Room state',
|
|
20
|
+
description: 'Reads the shared state of the room you are answering in (what its game or app keeps), by key: all of it, or the keys that start with prefix.',
|
|
21
|
+
parameters: { type: 'object', properties: { prefix: { type: 'string' } } },
|
|
22
|
+
run: (doubles, params, file) => doubles.roomState(file, typeof params.prefix === 'string' ? params.prefix : undefined),
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'room_set_state',
|
|
26
|
+
label: 'Set room state',
|
|
27
|
+
description: 'Sets a key of the shared state of the room you are answering in, as its game or app keeps it (null clears it). Say things in your reply, not here.',
|
|
28
|
+
parameters: { type: 'object', properties: { key: { type: 'string' }, value: {} }, required: ['key', 'value'] },
|
|
29
|
+
run: (doubles, params, file) => { var _a; return doubles.setRoomState(file, String((_a = params.key) !== null && _a !== void 0 ? _a : ''), params.value); },
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'ask_permission',
|
|
33
|
+
label: 'Ask permission',
|
|
34
|
+
description: "Asks your user to let you work on their computer for the one who asked you: 'files' to read and change files of a directory, 'commands' to run commands there. Your user answers in Ta, and picks the directory; tell the one who asked that it is asked.",
|
|
35
|
+
parameters: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: { capability: { type: 'string', enum: [...double_protocol_1.ROOM_CAPABILITIES] }, reason: { type: 'string', description: 'What for, in one sentence.' } },
|
|
38
|
+
required: ['capability', 'reason'],
|
|
39
|
+
},
|
|
40
|
+
run: (doubles, params, file) => doubles.askPermission(file, params.capability, params.reason),
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
/** The tools of the user's own conversations to act in rooms for them (USER_TOOLS). */
|
|
44
|
+
const USER_ROOM_TOOLS = [
|
|
45
|
+
{
|
|
46
|
+
name: 'list_rooms',
|
|
47
|
+
label: 'List rooms',
|
|
48
|
+
description: "Lists the rooms of Ta the user is in (group chats shared with other people's Ta) and who is in each.",
|
|
49
|
+
parameters: { type: 'object', properties: {} },
|
|
50
|
+
run: doubles => doubles.listRooms(),
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'read_room',
|
|
54
|
+
label: 'Read room',
|
|
55
|
+
description: 'Reads what was said lately in a room of the user, by its title or id. With wait_seconds (up to 120), waits first for someone else to say something: the answer of a double you asked.',
|
|
56
|
+
parameters: { type: 'object', properties: { room: { type: 'string' }, wait_seconds: { type: 'number' } }, required: ['room'] },
|
|
57
|
+
run: (doubles, params) => doubles.readRoom(params.room, params.wait_seconds),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'say_in_room',
|
|
61
|
+
label: 'Say in room',
|
|
62
|
+
description: 'Says something in a room of the user, as their double, for them. With ask, the names of members whose doubles it asks: their Ta answers, if their user lets it. Only what the user wants said; nothing private they did not ask you to share.',
|
|
63
|
+
parameters: {
|
|
64
|
+
type: 'object',
|
|
65
|
+
properties: { room: { type: 'string' }, text: { type: 'string' }, ask: { type: 'array', items: { type: 'string' } } },
|
|
66
|
+
required: ['room', 'text'],
|
|
67
|
+
},
|
|
68
|
+
run: (doubles, params) => doubles.sayInRoom(params.room, params.text, params.ask),
|
|
69
|
+
},
|
|
70
|
+
];
|
|
71
|
+
/** A path of a call of a tool of files, inside the directory the user let the double work in. */
|
|
72
|
+
function inside(cwd, path) {
|
|
73
|
+
const target = (0, node_path_1.resolve)(cwd, typeof path === 'string' && path ? path.replace(/^@/, '') : '.');
|
|
74
|
+
const rest = (0, node_path_1.relative)(cwd, target);
|
|
75
|
+
return !rest.startsWith('..') && !(0, node_path_1.isAbsolute)(rest);
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The pi extension of the rooms: in the session of a double in a room (its role has ROOM_DOUBLE_MARK), only the tools its
|
|
79
|
+
* permissions allow, for the one it answers now, and no instructions or skills of the user's that it may not read; so too
|
|
80
|
+
* for an agent of the user others ask in a room, while one the user asks works with all its tools. In the user's own
|
|
81
|
+
* conversations, the tools to act in rooms for them. The doubles are the host's (double-host.ts).
|
|
82
|
+
*/
|
|
83
|
+
function activate(pi) {
|
|
84
|
+
let reached;
|
|
85
|
+
const reach = () => (reached !== null && reached !== void 0 ? reached : (reached = ta_extension_host_1.TaHostUtil.reach(pi.events, double_protocol_1.NAME).then(answer => { var _a; return ({
|
|
86
|
+
answered: !!answer,
|
|
87
|
+
doubles: (_a = answer === null || answer === void 0 ? void 0 : answer.service) === null || _a === void 0 ? void 0 : _a.service,
|
|
88
|
+
}); })));
|
|
89
|
+
const isDouble = (ctx) => ctx.getSystemPrompt().includes(double_protocol_1.ROOM_DOUBLE_MARK);
|
|
90
|
+
/** What a double may do now: nothing but chat when its host is not there. */
|
|
91
|
+
const turnOf = async (ctx) => {
|
|
92
|
+
var _a;
|
|
93
|
+
const turn = (_a = (await reach()).doubles) === null || _a === void 0 ? void 0 : _a.turnOf(ctx.sessionManager.getSessionFile());
|
|
94
|
+
return (turn === null || turn === void 0 ? void 0 : turn.active) ? turn : undefined;
|
|
95
|
+
};
|
|
96
|
+
pi.on('session_start', () => {
|
|
97
|
+
void reach();
|
|
98
|
+
});
|
|
99
|
+
pi.on('before_agent_start', async (event, ctx) => {
|
|
100
|
+
var _a, _b;
|
|
101
|
+
if (isDouble(ctx)) {
|
|
102
|
+
const turn = await turnOf(ctx);
|
|
103
|
+
// The user asked their agent in a room: it works for them as anywhere, but speaks in rooms only by its answer.
|
|
104
|
+
if (turn === null || turn === void 0 ? void 0 : turn.trusted) {
|
|
105
|
+
const all = new Set(pi.getAllTools().map(tool => tool.name));
|
|
106
|
+
// Its tools as a conversation has them, and pi's own again if a turn for another took them away.
|
|
107
|
+
pi.setActiveTools(double_util_1.DoubleUtil.ownTools([...new Set([...pi.getActiveTools(), ...OWN_TOOLS])].filter(name => all.has(name))));
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
const capabilities = (_a = turn === null || turn === void 0 ? void 0 : turn.capabilities) !== null && _a !== void 0 ? _a : [];
|
|
111
|
+
pi.setActiveTools(double_util_1.DoubleUtil.tools(capabilities, pi.getAllTools().map(tool => tool.name)));
|
|
112
|
+
// What the user wrote for their own agents is not for others: only the instructions of the directory it may work in.
|
|
113
|
+
const cwd = turn === null || turn === void 0 ? void 0 : turn.cwd;
|
|
114
|
+
const options = event.systemPromptOptions;
|
|
115
|
+
options.contextFiles = cwd && capabilities.includes('files') ? ((_b = options.contextFiles) !== null && _b !== void 0 ? _b : []).filter(file => inside(cwd, file.path)) : [];
|
|
116
|
+
if (!capabilities.includes('files')) {
|
|
117
|
+
options.skills = [];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
// The tools of a double are not for the user's conversations, and the agents of channels do not act in rooms.
|
|
122
|
+
const agent = ctx.getSystemPrompt().includes(AGENT_MARK);
|
|
123
|
+
const off = new Set([...double_util_1.ROOM_TOOLS, ...(agent ? double_util_1.USER_TOOLS : [])]);
|
|
124
|
+
const active = pi.getActiveTools();
|
|
125
|
+
if (active.some(name => off.has(name))) {
|
|
126
|
+
pi.setActiveTools(active.filter(name => !off.has(name)));
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
// Whatever asks for a tool (the model, a script of a tool), a double only uses what it may, where it may.
|
|
131
|
+
pi.on('tool_call', async (event, ctx) => {
|
|
132
|
+
var _a, _b, _c;
|
|
133
|
+
var _d;
|
|
134
|
+
if (!isDouble(ctx)) {
|
|
135
|
+
return undefined;
|
|
136
|
+
}
|
|
137
|
+
const turn = await turnOf(ctx);
|
|
138
|
+
if (turn === null || turn === void 0 ? void 0 : turn.trusted) {
|
|
139
|
+
if (!double_util_1.DoubleUtil.ownTools([event.toolName]).length) {
|
|
140
|
+
return { block: true, reason: 'Your answer is said in the room: no tool for it.' };
|
|
141
|
+
}
|
|
142
|
+
(_a = (await reach()).doubles) === null || _a === void 0 ? void 0 : _a.used(ctx.sessionManager.getSessionFile(), event.toolName);
|
|
143
|
+
return undefined;
|
|
144
|
+
}
|
|
145
|
+
const capabilities = (_d = turn === null || turn === void 0 ? void 0 : turn.capabilities) !== null && _d !== void 0 ? _d : [];
|
|
146
|
+
if (!double_util_1.DoubleUtil.tools(capabilities, [event.toolName]).length) {
|
|
147
|
+
return { block: true, reason: 'A double in a room may not use this tool now; ask_permission asks your user.' };
|
|
148
|
+
}
|
|
149
|
+
if (double_util_1.CAPABILITY_TOOLS.files.includes(event.toolName) && !((turn === null || turn === void 0 ? void 0 : turn.cwd) && inside(turn.cwd, (_b = event.input) === null || _b === void 0 ? void 0 : _b.path))) {
|
|
150
|
+
return { block: true, reason: `Only inside ${turn === null || turn === void 0 ? void 0 : turn.cwd}.` };
|
|
151
|
+
}
|
|
152
|
+
(_c = (await reach()).doubles) === null || _c === void 0 ? void 0 : _c.used(ctx.sessionManager.getSessionFile(), event.toolName);
|
|
153
|
+
return undefined;
|
|
154
|
+
});
|
|
155
|
+
for (const tool of [...DOUBLE_TOOLS, ...USER_ROOM_TOOLS]) {
|
|
156
|
+
const forDouble = DOUBLE_TOOLS.includes(tool);
|
|
157
|
+
pi.registerTool({
|
|
158
|
+
name: tool.name,
|
|
159
|
+
label: tool.label,
|
|
160
|
+
description: tool.description,
|
|
161
|
+
parameters: tool.parameters,
|
|
162
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
163
|
+
if (forDouble !== isDouble(ctx)) {
|
|
164
|
+
throw new Error(forDouble ? 'Only for a double answering in a room.' : 'Not for a double in a room.');
|
|
165
|
+
}
|
|
166
|
+
const { answered, doubles } = await reach();
|
|
167
|
+
if (!doubles) {
|
|
168
|
+
throw new Error(answered ? 'The rooms did not start in the Ta service; its log says why.' : exports.NO_SERVER);
|
|
169
|
+
}
|
|
170
|
+
const text = await tool.run(doubles, params !== null && params !== void 0 ? params : {}, ctx.sessionManager.getSessionFile());
|
|
171
|
+
return { content: [{ type: 'text', text }], details: undefined };
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaPackageService } from '@celljs/ta-protocol';
|
|
2
|
+
/**
|
|
3
|
+
* The server side of the package (`pi.host`): ta serve runs it once, so that the user's double answers who asks it in a
|
|
4
|
+
* room with no page open. Its pi extension reaches it for the tools; the page reads its data and calls `doubles` (callHost).
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(host: TaExtensionHost): Promise<TaPackageService>;
|
|
7
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const double_host_1 = require("./double-host");
|
|
5
|
+
/**
|
|
6
|
+
* The server side of the package (`pi.host`): ta serve runs it once, so that the user's double answers who asks it in a
|
|
7
|
+
* room with no page open. Its pi extension reaches it for the tools; the page reads its data and calls `doubles` (callHost).
|
|
8
|
+
*/
|
|
9
|
+
async function activate(host) {
|
|
10
|
+
const doubles = new double_host_1.RoomDoubles(host);
|
|
11
|
+
await doubles.start();
|
|
12
|
+
return {
|
|
13
|
+
dispose: () => doubles.dispose(),
|
|
14
|
+
doubles: (request) => doubles.request(request),
|
|
15
|
+
service: doubles,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
declare const EN: {
|
|
2
|
+
roomsTitle: string;
|
|
3
|
+
add: string;
|
|
4
|
+
me: string;
|
|
5
|
+
meLine: string;
|
|
6
|
+
rename: string;
|
|
7
|
+
renamePlaceholder: string;
|
|
8
|
+
requests: string;
|
|
9
|
+
requestLine: string;
|
|
10
|
+
friendTag: string;
|
|
11
|
+
newTag: string;
|
|
12
|
+
guestTag: string;
|
|
13
|
+
requestGuest: string;
|
|
14
|
+
accept: string;
|
|
15
|
+
refuse: string;
|
|
16
|
+
requestBody: string;
|
|
17
|
+
requestsBody: string;
|
|
18
|
+
requestFriend: string;
|
|
19
|
+
requestNew: string;
|
|
20
|
+
requestWhat: string;
|
|
21
|
+
later: string;
|
|
22
|
+
ownRoom: string;
|
|
23
|
+
roomOf: string;
|
|
24
|
+
people: string;
|
|
25
|
+
othersOnline: string;
|
|
26
|
+
nobodyOnline: string;
|
|
27
|
+
said: string;
|
|
28
|
+
yesterday: string;
|
|
29
|
+
waiting: string;
|
|
30
|
+
refused: string;
|
|
31
|
+
closed: string;
|
|
32
|
+
removed: string;
|
|
33
|
+
inviteGone: string;
|
|
34
|
+
connecting: string;
|
|
35
|
+
invite: string;
|
|
36
|
+
inviteLine: string;
|
|
37
|
+
inviteTitle: string;
|
|
38
|
+
inviteHint: string;
|
|
39
|
+
newLink: string;
|
|
40
|
+
making: string;
|
|
41
|
+
copy: string;
|
|
42
|
+
copied: string;
|
|
43
|
+
send: string;
|
|
44
|
+
qr: string;
|
|
45
|
+
members: string;
|
|
46
|
+
memberCount: string;
|
|
47
|
+
onlineCount: string;
|
|
48
|
+
membersTitle: string;
|
|
49
|
+
membersCount: string;
|
|
50
|
+
noRoomOpen: string;
|
|
51
|
+
you: string;
|
|
52
|
+
owner: string;
|
|
53
|
+
online: string;
|
|
54
|
+
offline: string;
|
|
55
|
+
remove: string;
|
|
56
|
+
removeTitle: string;
|
|
57
|
+
removeHint: string;
|
|
58
|
+
leave: string;
|
|
59
|
+
leaveTitle: string;
|
|
60
|
+
leaveHint: string;
|
|
61
|
+
close: string;
|
|
62
|
+
closeTitle: string;
|
|
63
|
+
closeHint: string;
|
|
64
|
+
forget: string;
|
|
65
|
+
friends: string;
|
|
66
|
+
friendLine: string;
|
|
67
|
+
removeFriend: string;
|
|
68
|
+
removeFriendTitle: string;
|
|
69
|
+
removeFriendHint: string;
|
|
70
|
+
emptyTitle: string;
|
|
71
|
+
emptyHint: string;
|
|
72
|
+
pickRoom: string;
|
|
73
|
+
joinTitle: string;
|
|
74
|
+
joinBody: string;
|
|
75
|
+
joinAction: string;
|
|
76
|
+
joinByLink: string;
|
|
77
|
+
joinByLinkPlaceholder: string;
|
|
78
|
+
scan: string;
|
|
79
|
+
scanHint: string;
|
|
80
|
+
notInvite: string;
|
|
81
|
+
asked: string;
|
|
82
|
+
admitted: string;
|
|
83
|
+
refusedNotice: string;
|
|
84
|
+
removedNotice: string;
|
|
85
|
+
closedNotice: string;
|
|
86
|
+
oldApp: string;
|
|
87
|
+
room: string;
|
|
88
|
+
newRoom: string;
|
|
89
|
+
newRoomPlaceholder: string;
|
|
90
|
+
roomOfName: string;
|
|
91
|
+
back: string;
|
|
92
|
+
openPage: string;
|
|
93
|
+
pageLine: string;
|
|
94
|
+
chatEmpty: string;
|
|
95
|
+
chatPlaceholder: string;
|
|
96
|
+
showOnHome: string;
|
|
97
|
+
showOnHomeHint: string;
|
|
98
|
+
};
|
|
99
|
+
export type Words = typeof EN;
|
|
100
|
+
export declare namespace RoomWords {
|
|
101
|
+
function of(language: string): Words;
|
|
102
|
+
function format(text: string, values: Record<string, string | number>): string;
|
|
103
|
+
}
|
|
104
|
+
export {};
|
|
105
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RoomWords = void 0;
|
|
4
|
+
const EN = {
|
|
5
|
+
roomsTitle: 'Rooms',
|
|
6
|
+
add: 'New',
|
|
7
|
+
me: 'Your name in rooms',
|
|
8
|
+
meLine: 'In rooms you are “{name}”',
|
|
9
|
+
rename: 'Change',
|
|
10
|
+
renamePlaceholder: 'What others see',
|
|
11
|
+
requests: 'Asking to join',
|
|
12
|
+
requestLine: 'wants to join “{title}”',
|
|
13
|
+
friendTag: 'Ta friend',
|
|
14
|
+
newTag: 'New',
|
|
15
|
+
guestTag: 'Web guest',
|
|
16
|
+
requestGuest: 'They ask from a browser, without Ta: let in, they only chat, and are not a Ta friend.',
|
|
17
|
+
accept: 'Let in',
|
|
18
|
+
refuse: 'Refuse',
|
|
19
|
+
requestBody: '{name} wants to join your room “{title}”.',
|
|
20
|
+
requestsBody: '{n} people ask to join your rooms.',
|
|
21
|
+
requestFriend: 'You were in a room together before.',
|
|
22
|
+
requestNew: 'You have not met in a room before: let in only someone you know.',
|
|
23
|
+
requestWhat: 'Once in, they see the messages and the shared state of the room: in a game, where everyone is and what is built.',
|
|
24
|
+
later: 'Later',
|
|
25
|
+
ownRoom: 'Your room',
|
|
26
|
+
roomOf: 'A room of {name}',
|
|
27
|
+
people: '{n} people · {online} online',
|
|
28
|
+
othersOnline: '{n} more online',
|
|
29
|
+
nobodyOnline: 'Nobody else online',
|
|
30
|
+
said: '{name}: {text}',
|
|
31
|
+
yesterday: 'Yesterday',
|
|
32
|
+
waiting: 'Waiting for {name} to let you in',
|
|
33
|
+
refused: '{name} did not let you in',
|
|
34
|
+
closed: 'Closed by its owner',
|
|
35
|
+
removed: 'You were taken out',
|
|
36
|
+
inviteGone: 'The invitation no longer works',
|
|
37
|
+
connecting: 'Connecting…',
|
|
38
|
+
invite: 'Invite',
|
|
39
|
+
inviteLine: 'A link or a QR code; you let them in',
|
|
40
|
+
inviteTitle: 'Invite into “{title}”',
|
|
41
|
+
inviteHint: 'Send the link: opened in a browser, it asks to chat as a web guest; in the Ta app (scan or paste), to join with Ta. You let in who asks; the link works for 7 days, and a new one stops it.',
|
|
42
|
+
newLink: 'New link',
|
|
43
|
+
making: 'Making the link…',
|
|
44
|
+
copy: 'Copy link',
|
|
45
|
+
copied: 'Copied',
|
|
46
|
+
send: 'Send…',
|
|
47
|
+
qr: 'QR code of the invitation',
|
|
48
|
+
members: 'Members',
|
|
49
|
+
memberCount: '{n} members',
|
|
50
|
+
onlineCount: '{n} online',
|
|
51
|
+
membersTitle: 'Members of the room',
|
|
52
|
+
membersCount: '{n} members · {online} online',
|
|
53
|
+
noRoomOpen: 'Open a room to see who is in it',
|
|
54
|
+
you: 'You',
|
|
55
|
+
owner: 'Owner',
|
|
56
|
+
online: 'Online',
|
|
57
|
+
offline: 'Offline',
|
|
58
|
+
remove: 'Take out',
|
|
59
|
+
removeTitle: 'Take {name} out of “{title}”?',
|
|
60
|
+
removeHint: 'They are disconnected at once, and come back only by a new invitation.',
|
|
61
|
+
leave: 'Leave the room',
|
|
62
|
+
leaveTitle: 'Leave “{title}”?',
|
|
63
|
+
leaveHint: 'You come back only by a new invitation.',
|
|
64
|
+
close: 'Close the room',
|
|
65
|
+
closeTitle: 'Close “{title}” for everyone?',
|
|
66
|
+
closeHint: 'Everyone is taken out, and the relay deletes all the room kept.',
|
|
67
|
+
forget: 'Remove',
|
|
68
|
+
friends: 'Ta friends',
|
|
69
|
+
friendLine: 'In {rooms}',
|
|
70
|
+
removeFriend: 'Remove',
|
|
71
|
+
removeFriendTitle: 'Remove {name} from your Ta friends?',
|
|
72
|
+
removeFriendHint: 'The rooms you share stay as they are.',
|
|
73
|
+
emptyTitle: 'No rooms yet',
|
|
74
|
+
emptyHint: 'No rooms yet. Make one with + and invite friends to chat, or open a link someone sent you to ask to join theirs.',
|
|
75
|
+
pickRoom: 'Pick a room to chat in',
|
|
76
|
+
joinTitle: 'Join “{title}”?',
|
|
77
|
+
joinBody: 'A room of {by}. They let you in first, and your name “{name}” goes to them.',
|
|
78
|
+
joinAction: 'Ask to join',
|
|
79
|
+
joinByLink: 'Join by a link',
|
|
80
|
+
joinByLinkPlaceholder: 'Paste the link of the invitation',
|
|
81
|
+
scan: 'Scan a code',
|
|
82
|
+
scanHint: 'Scan the QR code of an invitation',
|
|
83
|
+
notInvite: 'That is not a link that invites into a room.',
|
|
84
|
+
asked: 'Asked {by}: you are in once they let you in.',
|
|
85
|
+
admitted: 'You are in “{title}”.',
|
|
86
|
+
refusedNotice: '{by} did not let you into “{title}”.',
|
|
87
|
+
removedNotice: 'You were taken out of “{title}”.',
|
|
88
|
+
closedNotice: '“{title}” was closed by its owner.',
|
|
89
|
+
oldApp: 'Update the Ta app to use rooms.',
|
|
90
|
+
room: 'Room',
|
|
91
|
+
newRoom: 'New room',
|
|
92
|
+
newRoomPlaceholder: 'Its name, which those you invite see',
|
|
93
|
+
roomOfName: '{name}’s room',
|
|
94
|
+
back: 'Back',
|
|
95
|
+
openPage: 'Open {name}',
|
|
96
|
+
pageLine: 'A room of {name}: play in it together',
|
|
97
|
+
chatEmpty: 'Nothing said yet. Only those in the room read it: the relay keeps it sealed.',
|
|
98
|
+
chatPlaceholder: 'Message',
|
|
99
|
+
showOnHome: "Show rooms on the double's home",
|
|
100
|
+
showOnHomeHint: "With rooms, the double's home has a Rooms section, beside members and channels.",
|
|
101
|
+
};
|
|
102
|
+
const ZH = {
|
|
103
|
+
roomsTitle: '房间',
|
|
104
|
+
add: '新建',
|
|
105
|
+
me: '我在房间里的名字',
|
|
106
|
+
meLine: '你在房间里叫「{name}」',
|
|
107
|
+
rename: '修改',
|
|
108
|
+
renamePlaceholder: '别人看到的名字',
|
|
109
|
+
requests: '加入申请',
|
|
110
|
+
requestLine: '想加入「{title}」',
|
|
111
|
+
friendTag: 'Ta 好友',
|
|
112
|
+
newTag: '新朋友',
|
|
113
|
+
guestTag: '网页访客',
|
|
114
|
+
requestGuest: '对方是用浏览器申请的,没有装 Ta:进来后只能聊天,也不会成为 Ta 好友。',
|
|
115
|
+
accept: '同意',
|
|
116
|
+
refuse: '拒绝',
|
|
117
|
+
requestBody: '「{name}」想加入你的房间「{title}」。',
|
|
118
|
+
requestsBody: '有 {n} 人申请加入你的房间。',
|
|
119
|
+
requestFriend: '你们之前在同一个房间待过。',
|
|
120
|
+
requestNew: '你们还没在房间里见过:只让认识的人进来。',
|
|
121
|
+
requestWhat: '进来后,对方能看到房间里的消息和共享的内容;在游戏里就是大家的位置和搭的东西。',
|
|
122
|
+
later: '稍后',
|
|
123
|
+
ownRoom: '我建的房间',
|
|
124
|
+
roomOf: '{name}的房间',
|
|
125
|
+
people: '{n} 人 · {online} 人在线',
|
|
126
|
+
othersOnline: '另有 {n} 人在线',
|
|
127
|
+
nobodyOnline: '其他人都不在线',
|
|
128
|
+
said: '{name}:{text}',
|
|
129
|
+
yesterday: '昨天',
|
|
130
|
+
waiting: '等{name}同意',
|
|
131
|
+
refused: '{name}没有同意',
|
|
132
|
+
closed: '房主已解散',
|
|
133
|
+
removed: '你已被移出',
|
|
134
|
+
inviteGone: '邀请已失效',
|
|
135
|
+
connecting: '连接中…',
|
|
136
|
+
invite: '邀请',
|
|
137
|
+
inviteLine: '发链接或二维码,由你同意进入',
|
|
138
|
+
inviteTitle: '邀请加入「{title}」',
|
|
139
|
+
inviteHint: '把链接发给对方:在浏览器里打开,可以作为网页访客申请聊天;在 Ta 应用里扫码或粘贴,就用 Ta 加入。都要你同意;链接 7 天内有效,换新链接后旧的作废。',
|
|
140
|
+
newLink: '换一个链接',
|
|
141
|
+
making: '正在生成链接…',
|
|
142
|
+
copy: '复制链接',
|
|
143
|
+
copied: '已复制',
|
|
144
|
+
send: '发送…',
|
|
145
|
+
qr: '邀请二维码',
|
|
146
|
+
members: '成员',
|
|
147
|
+
memberCount: '{n} 位成员',
|
|
148
|
+
onlineCount: '{n} 人在线',
|
|
149
|
+
membersTitle: '房间成员',
|
|
150
|
+
membersCount: '{n} 位成员 · {online} 人在线',
|
|
151
|
+
noRoomOpen: '打开一个房间,这里显示它的成员',
|
|
152
|
+
you: '我',
|
|
153
|
+
owner: '房主',
|
|
154
|
+
online: '在线',
|
|
155
|
+
offline: '离线',
|
|
156
|
+
remove: '移出',
|
|
157
|
+
removeTitle: '把「{name}」移出「{title}」?',
|
|
158
|
+
removeHint: '对方会立刻断开,只有新的邀请才能再进来。',
|
|
159
|
+
leave: '退出房间',
|
|
160
|
+
leaveTitle: '退出「{title}」?',
|
|
161
|
+
leaveHint: '退出后要有新的邀请才能再进来。',
|
|
162
|
+
close: '解散房间',
|
|
163
|
+
closeTitle: '解散「{title}」?',
|
|
164
|
+
closeHint: '所有人都会被移出,中继会删除房间保存的全部内容。',
|
|
165
|
+
forget: '删除',
|
|
166
|
+
friends: 'Ta 好友',
|
|
167
|
+
friendLine: '一起在:{rooms}',
|
|
168
|
+
removeFriend: '删除',
|
|
169
|
+
removeFriendTitle: '把「{name}」从 Ta 好友里删除?',
|
|
170
|
+
removeFriendHint: '一起所在的房间不受影响。',
|
|
171
|
+
emptyTitle: '还没有房间',
|
|
172
|
+
emptyHint: '还没有房间。点右上角 + 新建一个,邀请朋友来聊天;别人发来的邀请链接,点开就能申请加入。',
|
|
173
|
+
pickRoom: '选一个房间开始聊天',
|
|
174
|
+
joinTitle: '加入「{title}」?',
|
|
175
|
+
joinBody: '这是{by}的房间。房主同意后你才能进去,你的名字「{name}」会发给对方。',
|
|
176
|
+
joinAction: '申请加入',
|
|
177
|
+
joinByLink: '用邀请链接加入',
|
|
178
|
+
joinByLinkPlaceholder: '粘贴别人发来的邀请链接',
|
|
179
|
+
scan: '扫一扫',
|
|
180
|
+
scanHint: '扫描房间的邀请二维码',
|
|
181
|
+
notInvite: '这不是房间的邀请链接。',
|
|
182
|
+
asked: '已向{by}发出申请,对方同意后就能进入。',
|
|
183
|
+
admitted: '已加入「{title}」。',
|
|
184
|
+
refusedNotice: '{by}没有同意你加入「{title}」。',
|
|
185
|
+
removedNotice: '你已被移出「{title}」。',
|
|
186
|
+
closedNotice: '「{title}」已被房主解散。',
|
|
187
|
+
oldApp: '请更新 Ta 应用后再使用房间。',
|
|
188
|
+
room: '房间',
|
|
189
|
+
newRoom: '新建房间',
|
|
190
|
+
newRoomPlaceholder: '房间名,受邀的人能看到',
|
|
191
|
+
roomOfName: '{name}的房间',
|
|
192
|
+
back: '返回',
|
|
193
|
+
openPage: '打开{name}',
|
|
194
|
+
pageLine: '{name}的房间,大家可以一起玩',
|
|
195
|
+
chatEmpty: '还没有人说话。只有房间里的人能看到,中继保存的是密文。',
|
|
196
|
+
chatPlaceholder: '发消息',
|
|
197
|
+
showOnHome: '在分身首页显示房间',
|
|
198
|
+
showOnHomeHint: '有房间时,分身首页多一个“房间”分类,和成员、频道放在一起。',
|
|
199
|
+
};
|
|
200
|
+
var RoomWords;
|
|
201
|
+
(function (RoomWords) {
|
|
202
|
+
function of(language) {
|
|
203
|
+
return language === 'zh-CN' ? ZH : EN;
|
|
204
|
+
}
|
|
205
|
+
RoomWords.of = of;
|
|
206
|
+
function format(text, values) {
|
|
207
|
+
return text.replace(/\{(\w+)\}/g, (whole, key) => (key in values ? String(values[key]) : whole));
|
|
208
|
+
}
|
|
209
|
+
RoomWords.format = format;
|
|
210
|
+
})(RoomWords || (exports.RoomWords = RoomWords = {}));
|
|
211
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* Rooms of Ta (docs/design/ta-link.md 3): the page under Discover (the rooms as a messenger lists its chats, a room
|
|
4
|
+
* its group chat), the members of the room shown in the workbench, the dialog of those asking to join (the owner
|
|
5
|
+
* answers it, nobody else), links that invite (asking the user, then the owner), and what the user is told as rooms
|
|
6
|
+
* change. The rooms themselves are ta serve's (pi.rooms): this only shows them.
|
|
7
|
+
*/
|
|
8
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const relay_hub_util_1 = require("@celljs/ta-relay/lib/common/relay-hub-util");
|
|
5
|
+
const dialogs_1 = require("./dialogs");
|
|
6
|
+
const double_i18n_1 = require("./double-i18n");
|
|
7
|
+
const doubles_view_1 = require("./doubles-view");
|
|
8
|
+
const members_view_1 = require("./members-view");
|
|
9
|
+
const page_1 = require("./page");
|
|
10
|
+
const react_1 = require("./react");
|
|
11
|
+
const rooms_home_1 = require("./rooms-home");
|
|
12
|
+
const rooms_page_1 = require("./rooms-page");
|
|
13
|
+
const style_1 = require("./style");
|
|
14
|
+
/** A room joined this soon after asking opens at once: the user is waiting for it. */
|
|
15
|
+
const OPEN_WITHIN_MS = 15 * 60 * 1000;
|
|
16
|
+
/** What the user is told as rooms they asked to join or are in change. */
|
|
17
|
+
function tell(pi, changes) {
|
|
18
|
+
for (const { before, room } of changes) {
|
|
19
|
+
if ((before === null || before === void 0 ? void 0 : before.status) === 'waiting' && room.status === 'member') {
|
|
20
|
+
pi.ui.notify((0, page_1.t)('admitted', { title: room.title }));
|
|
21
|
+
if (Date.now() - room.createdAt < OPEN_WITHIN_MS) {
|
|
22
|
+
if (room.view) {
|
|
23
|
+
void pi.ui.showView(room.view);
|
|
24
|
+
}
|
|
25
|
+
else {
|
|
26
|
+
(0, page_1.openRoom)(room.id);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
else if ((before === null || before === void 0 ? void 0 : before.status) === 'waiting' && room.status === 'refused') {
|
|
31
|
+
pi.ui.notify((0, page_1.t)('refusedNotice', { by: room.ownerName, title: room.title }), 'warning');
|
|
32
|
+
}
|
|
33
|
+
else if ((before === null || before === void 0 ? void 0 : before.status) === 'member' && room.status === 'gone') {
|
|
34
|
+
pi.ui.notify(room.reason === 'removed' ? (0, page_1.t)('removedNotice', { title: room.title }) : (0, page_1.t)('closedNotice', { title: room.title }), 'warning');
|
|
35
|
+
if (page_1.book.get().opened === room.id) {
|
|
36
|
+
page_1.book.set({ opened: undefined });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Rooms of Ta (docs/design/ta-link.md 3): the page under Discover (the rooms as a messenger lists its chats, a room
|
|
43
|
+
* its group chat), the members of the room shown in the workbench, the dialog of those asking to join (the owner
|
|
44
|
+
* answers it, nobody else), links that invite (asking the user, then the owner), and what the user is told as rooms
|
|
45
|
+
* change. The rooms themselves are ta serve's (pi.rooms): this only shows them.
|
|
46
|
+
*/
|
|
47
|
+
function activate(pi) {
|
|
48
|
+
var _a, _b;
|
|
49
|
+
(0, react_1.bind)(pi.React);
|
|
50
|
+
(0, page_1.bindPage)(pi);
|
|
51
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
52
|
+
pi.registerView('rooms', { title: () => (0, page_1.t)('roomsTitle'), icon: (0, page_1.icon)('Users'), render: rooms_page_1.RoomsPage, head: rooms_page_1.RoomsHead, discover: true, order: 81 });
|
|
53
|
+
pi.registerView('members', { title: () => (0, page_1.t)('membersTitle'), icon: (0, page_1.icon)('Users'), render: members_view_1.MembersView, location: 'panel', order: 90 });
|
|
54
|
+
pi.registerView(doubles_view_1.DOUBLES_VIEW.slice(doubles_view_1.DOUBLES_VIEW.lastIndexOf('/') + 1), {
|
|
55
|
+
title: () => (0, double_i18n_1.dt)('logTitle'),
|
|
56
|
+
icon: (0, page_1.icon)('Bot'),
|
|
57
|
+
render: doubles_view_1.DoublesView,
|
|
58
|
+
location: 'panel',
|
|
59
|
+
order: 91,
|
|
60
|
+
});
|
|
61
|
+
pi.registerSettings((0, rooms_home_1.roomsSettings)());
|
|
62
|
+
// The rooms the user is in, in a section of the double's home; none in an app of before.
|
|
63
|
+
const home = new rooms_home_1.RoomsHome();
|
|
64
|
+
const stopHome = pi.rooms ? home.start() : () => undefined;
|
|
65
|
+
if (pi.rooms) {
|
|
66
|
+
(_a = pi.registerHomeItems) === null || _a === void 0 ? void 0 : _a.call(pi, home);
|
|
67
|
+
}
|
|
68
|
+
// What the double asks the user to let it do comes as a dialog, as those asking to join do.
|
|
69
|
+
const stopAsks = pi.rooms ? (0, doubles_view_1.listenAsks)() : () => undefined;
|
|
70
|
+
pi.registerOpener(link => {
|
|
71
|
+
if (link.type !== 'url' || !relay_hub_util_1.RelayHubUtil.is(link.url)) {
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
(0, dialogs_1.openJoin)(link.url);
|
|
75
|
+
return true;
|
|
76
|
+
}, { specific: true });
|
|
77
|
+
// What was said, without the messages of games: the rows of the list and the chats keep it as it comes.
|
|
78
|
+
// An app older than rooms: the page says to update.
|
|
79
|
+
const stop = (_b = pi.onRoomEvent) === null || _b === void 0 ? void 0 : _b.call(pi, event => {
|
|
80
|
+
if (event.type === 'request') {
|
|
81
|
+
void page_1.book.load().then(() => (0, dialogs_1.openRequests)());
|
|
82
|
+
}
|
|
83
|
+
else if (event.type === 'rooms') {
|
|
84
|
+
page_1.book.reload();
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
page_1.book.heard(event);
|
|
88
|
+
}
|
|
89
|
+
}, { messages: false, state: page_1.CHAT_STATE });
|
|
90
|
+
page_1.book.onChange = changes => tell(pi, changes);
|
|
91
|
+
if (pi.rooms) {
|
|
92
|
+
void page_1.book.load().then(() => {
|
|
93
|
+
if (page_1.book.get().requests.length) {
|
|
94
|
+
(0, dialogs_1.openRequests)();
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return () => {
|
|
99
|
+
stop === null || stop === void 0 ? void 0 : stop();
|
|
100
|
+
stopAsks();
|
|
101
|
+
stopHome();
|
|
102
|
+
page_1.book.onChange = undefined;
|
|
103
|
+
removeStyle();
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=index.js.map
|