@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,85 @@
|
|
|
1
|
+
declare const EN: {
|
|
2
|
+
doubleOf: string;
|
|
3
|
+
myDouble: string;
|
|
4
|
+
doubleTag: string;
|
|
5
|
+
mentionLabel: string;
|
|
6
|
+
mentionDetail: string;
|
|
7
|
+
answersHere: string;
|
|
8
|
+
answersHint: string;
|
|
9
|
+
permissions: string;
|
|
10
|
+
grantTitle: string;
|
|
11
|
+
grantLead: string;
|
|
12
|
+
files: string;
|
|
13
|
+
filesHint: string;
|
|
14
|
+
commands: string;
|
|
15
|
+
commandsHint: string;
|
|
16
|
+
directory: string;
|
|
17
|
+
pick: string;
|
|
18
|
+
duration: string;
|
|
19
|
+
hours1: string;
|
|
20
|
+
hours24: string;
|
|
21
|
+
hours168: string;
|
|
22
|
+
allow: string;
|
|
23
|
+
cancel: string;
|
|
24
|
+
refuse: string;
|
|
25
|
+
later: string;
|
|
26
|
+
grantNote: string;
|
|
27
|
+
asksTitle: string;
|
|
28
|
+
askLine: string;
|
|
29
|
+
askLead: string;
|
|
30
|
+
review: string;
|
|
31
|
+
askWants: string;
|
|
32
|
+
wantsFiles: string;
|
|
33
|
+
wantsCommands: string;
|
|
34
|
+
may: string;
|
|
35
|
+
mayFiles: string;
|
|
36
|
+
mayCommands: string;
|
|
37
|
+
left: string;
|
|
38
|
+
leftMinutes: string;
|
|
39
|
+
leftDays: string;
|
|
40
|
+
revoke: string;
|
|
41
|
+
revokeAll: string;
|
|
42
|
+
revokeAllTitle: string;
|
|
43
|
+
revokeAllHint: string;
|
|
44
|
+
stop: string;
|
|
45
|
+
logTitle: string;
|
|
46
|
+
logEmpty: string;
|
|
47
|
+
logEmptyHint: string;
|
|
48
|
+
asked: string;
|
|
49
|
+
answered: string;
|
|
50
|
+
failed: string;
|
|
51
|
+
limited: string;
|
|
52
|
+
tools: string;
|
|
53
|
+
clearLog: string;
|
|
54
|
+
grants: string;
|
|
55
|
+
noGrants: string;
|
|
56
|
+
log: string;
|
|
57
|
+
noPermission: string;
|
|
58
|
+
oldServer: string;
|
|
59
|
+
agentTag: string;
|
|
60
|
+
myAgent: string;
|
|
61
|
+
agentOf: string;
|
|
62
|
+
agentsTitle: string;
|
|
63
|
+
inviteAgent: string;
|
|
64
|
+
inviteAgentLine: string;
|
|
65
|
+
pickAgentTitle: string;
|
|
66
|
+
pickAgentLead: string;
|
|
67
|
+
noAgents: string;
|
|
68
|
+
noAgentsHint: string;
|
|
69
|
+
inRoom: string;
|
|
70
|
+
joining: string;
|
|
71
|
+
joiningRoom: string;
|
|
72
|
+
inviteFailed: string;
|
|
73
|
+
dismiss: string;
|
|
74
|
+
dismissTitle: string;
|
|
75
|
+
dismissHint: string;
|
|
76
|
+
tryAlone: string;
|
|
77
|
+
agentAsked: string;
|
|
78
|
+
};
|
|
79
|
+
export type DoubleWords = typeof EN;
|
|
80
|
+
export declare namespace DoubleWordsUtil {
|
|
81
|
+
function of(language: string): DoubleWords;
|
|
82
|
+
}
|
|
83
|
+
export declare function dt(key: keyof DoubleWords, values?: Record<string, string | number>): string;
|
|
84
|
+
export {};
|
|
85
|
+
//# sourceMappingURL=double-i18n.d.ts.map
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DoubleWordsUtil = void 0;
|
|
4
|
+
exports.dt = dt;
|
|
5
|
+
const page_1 = require("./page");
|
|
6
|
+
const EN = {
|
|
7
|
+
doubleOf: "{name}'s double",
|
|
8
|
+
myDouble: 'Your double',
|
|
9
|
+
doubleTag: 'Double',
|
|
10
|
+
mentionLabel: 'Ask a double',
|
|
11
|
+
mentionDetail: 'Ask their double',
|
|
12
|
+
answersHere: 'Your double answers here',
|
|
13
|
+
answersHint: 'When someone asks it with @, your double answers in this room. It only chats and reads the room, unless you let it do more for someone.',
|
|
14
|
+
permissions: 'Let the double work for them',
|
|
15
|
+
grantTitle: 'Let your double work for {name}',
|
|
16
|
+
grantLead: 'When {name} asks your double in a room, it may also do this on your computer:',
|
|
17
|
+
files: 'Read and change files',
|
|
18
|
+
filesHint: 'Only inside the directory below.',
|
|
19
|
+
commands: 'Run commands',
|
|
20
|
+
commandsHint: 'In that directory, though a command can reach beyond it: only for someone you trust.',
|
|
21
|
+
directory: 'Directory',
|
|
22
|
+
pick: 'Choose',
|
|
23
|
+
duration: 'For',
|
|
24
|
+
hours1: '1 hour',
|
|
25
|
+
hours24: '1 day',
|
|
26
|
+
hours168: '7 days',
|
|
27
|
+
allow: 'Allow',
|
|
28
|
+
cancel: 'Cancel',
|
|
29
|
+
refuse: 'Refuse',
|
|
30
|
+
later: 'Later',
|
|
31
|
+
grantNote: 'You can take it back at any time, and all your double does for them is logged.',
|
|
32
|
+
asksTitle: 'Your double asks',
|
|
33
|
+
askLine: '{name} in “{title}”: {reason}',
|
|
34
|
+
askLead: '{name} asked your double for something in “{title}”:',
|
|
35
|
+
review: 'Review',
|
|
36
|
+
askWants: 'For it, your double needs to {what} on your computer.',
|
|
37
|
+
wantsFiles: 'read and change files',
|
|
38
|
+
wantsCommands: 'run commands',
|
|
39
|
+
may: 'Your double may {what} · {left} left',
|
|
40
|
+
mayFiles: 'files',
|
|
41
|
+
mayCommands: 'commands',
|
|
42
|
+
left: '{n} h',
|
|
43
|
+
leftMinutes: '{n} min',
|
|
44
|
+
leftDays: '{n} d',
|
|
45
|
+
revoke: 'Take back',
|
|
46
|
+
revokeAll: 'Stop all for {name}',
|
|
47
|
+
revokeAllTitle: 'Stop all your double does for {name}?',
|
|
48
|
+
revokeAllHint: 'The permissions and the asks of {name} go, and what your double does for them now stops.',
|
|
49
|
+
stop: 'Stop',
|
|
50
|
+
logTitle: 'What your double did',
|
|
51
|
+
logEmpty: 'Nothing yet',
|
|
52
|
+
logEmptyHint: 'What your double does for others in rooms is listed here',
|
|
53
|
+
asked: '{name} asked',
|
|
54
|
+
answered: 'Answered',
|
|
55
|
+
failed: 'Failed',
|
|
56
|
+
limited: 'Skipped: too many this hour',
|
|
57
|
+
tools: '{n} tool calls',
|
|
58
|
+
clearLog: 'Clear',
|
|
59
|
+
grants: 'Permissions',
|
|
60
|
+
noGrants: 'Your double only chats for others',
|
|
61
|
+
log: 'What your double did',
|
|
62
|
+
noPermission: 'Not yet set',
|
|
63
|
+
oldServer: 'Update Ta on the computer to use doubles in rooms.',
|
|
64
|
+
agentTag: 'Agent',
|
|
65
|
+
myAgent: 'Your agent',
|
|
66
|
+
agentOf: "{name}'s agent",
|
|
67
|
+
agentsTitle: 'Agents',
|
|
68
|
+
inviteAgent: 'Invite an agent',
|
|
69
|
+
inviteAgentLine: 'One of your agents helps in the room',
|
|
70
|
+
pickAgentTitle: 'Invite an agent to “{title}”',
|
|
71
|
+
pickAgentLead: 'Anyone in the room asks it with @. When you ask, it works for you as usual, with its tools in its directory; when others ask, it only chats, as your double, unless you let it do more for them.',
|
|
72
|
+
noAgents: 'No agents yet',
|
|
73
|
+
noAgentsHint: 'Make one in the side bar of your double first.',
|
|
74
|
+
inRoom: 'In the room',
|
|
75
|
+
joining: 'Joining…',
|
|
76
|
+
joiningRoom: '{name} is joining the room…',
|
|
77
|
+
inviteFailed: 'Could not invite {name}: {error}',
|
|
78
|
+
dismiss: 'Ask to leave',
|
|
79
|
+
dismissTitle: 'Ask {name} to leave “{title}”?',
|
|
80
|
+
dismissHint: 'It says goodbye in the room and answers nothing there any more.',
|
|
81
|
+
tryAlone: 'Invite one of your agents: you can try the room on your own.',
|
|
82
|
+
agentAsked: '{name} asked {agent}',
|
|
83
|
+
};
|
|
84
|
+
const ZH = {
|
|
85
|
+
doubleOf: '{name}的分身',
|
|
86
|
+
myDouble: '我的分身',
|
|
87
|
+
doubleTag: '分身',
|
|
88
|
+
mentionLabel: '问分身',
|
|
89
|
+
mentionDetail: '问 TA 的分身',
|
|
90
|
+
answersHere: '我的分身在这里回答',
|
|
91
|
+
answersHint: '有人 @ 你的分身时,它会在这个房间里回答。默认只能聊天和读房间里的内容,你允许后才能替某人做更多事。',
|
|
92
|
+
permissions: '授权分身替 TA 做事',
|
|
93
|
+
grantTitle: '让分身替{name}做事',
|
|
94
|
+
grantLead: '{name}在房间里问你的分身时,它还可以在你的电脑上:',
|
|
95
|
+
files: '读写文件',
|
|
96
|
+
filesHint: '只限下面这个目录。',
|
|
97
|
+
commands: '运行命令',
|
|
98
|
+
commandsHint: '在这个目录里运行,但命令本身能碰到目录之外:只给信任的人。',
|
|
99
|
+
directory: '目录',
|
|
100
|
+
pick: '选择',
|
|
101
|
+
duration: '有效期',
|
|
102
|
+
hours1: '1 小时',
|
|
103
|
+
hours24: '1 天',
|
|
104
|
+
hours168: '7 天',
|
|
105
|
+
allow: '允许',
|
|
106
|
+
cancel: '取消',
|
|
107
|
+
refuse: '拒绝',
|
|
108
|
+
later: '稍后',
|
|
109
|
+
grantNote: '可以随时收回;分身替对方做的每件事都有记录。',
|
|
110
|
+
asksTitle: '分身请你授权',
|
|
111
|
+
askLine: '{name}在「{title}」里:{reason}',
|
|
112
|
+
askLead: '{name}在「{title}」里请你的分身帮忙:',
|
|
113
|
+
review: '处理',
|
|
114
|
+
askWants: '分身需要在你的电脑上{what}。',
|
|
115
|
+
wantsFiles: '读写文件',
|
|
116
|
+
wantsCommands: '运行命令',
|
|
117
|
+
may: '分身可以{what} · 还剩 {left}',
|
|
118
|
+
mayFiles: '读写文件',
|
|
119
|
+
mayCommands: '运行命令',
|
|
120
|
+
left: '{n} 小时',
|
|
121
|
+
leftMinutes: '{n} 分钟',
|
|
122
|
+
leftDays: '{n} 天',
|
|
123
|
+
revoke: '收回',
|
|
124
|
+
revokeAll: '停掉{name}的全部授权',
|
|
125
|
+
revokeAllTitle: '停掉分身为{name}做的一切?',
|
|
126
|
+
revokeAllHint: '{name}的授权和待处理的请求都会删除,分身正在替 TA 做的事也会停下。',
|
|
127
|
+
stop: '停掉',
|
|
128
|
+
logTitle: '分身记录',
|
|
129
|
+
logEmpty: '还没有记录',
|
|
130
|
+
logEmptyHint: '分身在房间里替别人做的事会列在这里',
|
|
131
|
+
asked: '{name}问',
|
|
132
|
+
answered: '已回答',
|
|
133
|
+
failed: '失败',
|
|
134
|
+
limited: '跳过:这一小时回答太多',
|
|
135
|
+
tools: '用了 {n} 次工具',
|
|
136
|
+
clearLog: '清空',
|
|
137
|
+
grants: '授权',
|
|
138
|
+
noGrants: '分身只替别人聊天',
|
|
139
|
+
log: '分身记录',
|
|
140
|
+
noPermission: '还没有授权',
|
|
141
|
+
oldServer: '请先更新电脑上的 Ta,再在房间里使用分身。',
|
|
142
|
+
agentTag: '智能体',
|
|
143
|
+
myAgent: '我的智能体',
|
|
144
|
+
agentOf: '{name}的智能体',
|
|
145
|
+
agentsTitle: '智能体',
|
|
146
|
+
inviteAgent: '邀请智能体',
|
|
147
|
+
inviteAgentLine: '让你的智能体在房间里帮忙',
|
|
148
|
+
pickAgentTitle: '邀请智能体进「{title}」',
|
|
149
|
+
pickAgentLead: '房间里的人 @ 它就能找它帮忙。你自己问它时,它像平常一样在自己的目录里用工具做事;别人问它时,和分身一样只能聊天,除非你授权。',
|
|
150
|
+
noAgents: '还没有智能体',
|
|
151
|
+
noAgentsHint: '先在分身侧栏新建一个智能体。',
|
|
152
|
+
inRoom: '已在房间里',
|
|
153
|
+
joining: '正在加入…',
|
|
154
|
+
joiningRoom: '{name}正在加入房间…',
|
|
155
|
+
inviteFailed: '没能邀请{name}:{error}',
|
|
156
|
+
dismiss: '请出房间',
|
|
157
|
+
dismissTitle: '让{name}离开「{title}」?',
|
|
158
|
+
dismissHint: '它会在房间里道别,之后不再回答这里的问题。',
|
|
159
|
+
tryAlone: '邀请一个你的智能体进来,一个人也能试试房间。',
|
|
160
|
+
agentAsked: '{name}问{agent}',
|
|
161
|
+
};
|
|
162
|
+
var DoubleWordsUtil;
|
|
163
|
+
(function (DoubleWordsUtil) {
|
|
164
|
+
function of(language) {
|
|
165
|
+
return language === 'zh-CN' ? ZH : EN;
|
|
166
|
+
}
|
|
167
|
+
DoubleWordsUtil.of = of;
|
|
168
|
+
})(DoubleWordsUtil || (exports.DoubleWordsUtil = DoubleWordsUtil = {}));
|
|
169
|
+
function dt(key, values = {}) {
|
|
170
|
+
return DoubleWordsUtil.of(page_1.pi.ui.language)[key].replace(/\{(\w+)\}/g, (whole, name) => (name in values ? String(values[name]) : whole));
|
|
171
|
+
}
|
|
172
|
+
//# sourceMappingURL=double-i18n.js.map
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The doubles of rooms (docs/design/ta-link.md 4): in a room, one asks the double of another member, and that member's Ta
|
|
3
|
+
* answers it, in a session of its own that speaks with others: by default it only chats and reads and sets the shared
|
|
4
|
+
* state of the room; it works on the computer of its user only for whom the user let it, what, where and till when.
|
|
5
|
+
* What the server side of the package (double-host.ts), its pi extension (extension.ts) and its web extension share.
|
|
6
|
+
*/
|
|
7
|
+
/** The name of the package: its data, its host. */
|
|
8
|
+
export declare const NAME = "@celljs/ta-rooms";
|
|
9
|
+
/** In the role of a double in a room: its pi extension knows the session by it. */
|
|
10
|
+
export declare const ROOM_DOUBLE_MARK = "[ta-rooms:double]";
|
|
11
|
+
/** The package of the agents of Ta (their data `team`): a member invites them to rooms. */
|
|
12
|
+
export declare const CHANNELS = "@celljs/ta-channels";
|
|
13
|
+
export declare const TEAM_KEY = "team";
|
|
14
|
+
/** An agent as ta-channels keeps it in its team, what the rooms read of it. */
|
|
15
|
+
export interface TeamAgent {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
role: string;
|
|
19
|
+
cwd?: string;
|
|
20
|
+
/** Which of the faces of Ta it has (`ui.Face`). */
|
|
21
|
+
face?: number;
|
|
22
|
+
/** Ta made it for a team of its own: not one to invite. */
|
|
23
|
+
temporary?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* An agent of a member's Ta in a room (docs/design/ta-link.md 5): the member invited it, and its Ta answers for it what
|
|
27
|
+
* the room asks it with @. Listed in the state of the room under {@link RoomAgentsUtil.key} of that member, which only the
|
|
28
|
+
* member writes.
|
|
29
|
+
*/
|
|
30
|
+
export interface RoomAgent {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
/** What it does, short. */
|
|
34
|
+
role?: string;
|
|
35
|
+
/** Its face, as the user's Ta draws it (`ui.Face`). */
|
|
36
|
+
face?: number;
|
|
37
|
+
}
|
|
38
|
+
/** An agent in a room, with the member whose it is. */
|
|
39
|
+
export interface RoomAgentIn extends RoomAgent {
|
|
40
|
+
member: string;
|
|
41
|
+
}
|
|
42
|
+
export declare const ROOM_AGENTS_KEY = "agents:";
|
|
43
|
+
export declare namespace RoomAgentsUtil {
|
|
44
|
+
function key(member: string): string;
|
|
45
|
+
/** How a line asks an agent of a member (RelayChatLine.to). */
|
|
46
|
+
function address(member: string, agent: string): string;
|
|
47
|
+
/** The agents a member listed, if the value is a list and that member wrote it. */
|
|
48
|
+
function list(member: string, value: unknown, by: string): RoomAgent[];
|
|
49
|
+
/** The agents of a room, by its state under ROOM_AGENTS_KEY. */
|
|
50
|
+
function of(state: Record<string, {
|
|
51
|
+
value: unknown;
|
|
52
|
+
by: string;
|
|
53
|
+
}>): RoomAgentIn[];
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* What a double may do for another person, each given on its own: the files of a directory (read, change, search),
|
|
57
|
+
* commands run in it (which reach beyond it). Chatting and the shared state of the room need nothing.
|
|
58
|
+
*/
|
|
59
|
+
export type RoomCapability = 'files' | 'commands';
|
|
60
|
+
export declare const ROOM_CAPABILITIES: readonly RoomCapability[];
|
|
61
|
+
/** What the user let a double do for someone: given by the user alone, in a dialog, never by a model. */
|
|
62
|
+
export interface RoomGrant {
|
|
63
|
+
id: string;
|
|
64
|
+
/** The identity of the Ta of the one it is for (TaRoomMember.id). */
|
|
65
|
+
friend: string;
|
|
66
|
+
/** Its name when given. */
|
|
67
|
+
name: string;
|
|
68
|
+
capability: RoomCapability;
|
|
69
|
+
/** The directory, a path of this computer. */
|
|
70
|
+
cwd: string;
|
|
71
|
+
grantedAt: number;
|
|
72
|
+
expiresAt: number;
|
|
73
|
+
}
|
|
74
|
+
/** A double asked its user for a permission, for someone who asked it something: for the user to answer. */
|
|
75
|
+
export interface RoomPermissionAsk {
|
|
76
|
+
id: string;
|
|
77
|
+
room: string;
|
|
78
|
+
title: string;
|
|
79
|
+
friend: string;
|
|
80
|
+
name: string;
|
|
81
|
+
capability: RoomCapability;
|
|
82
|
+
/** Why, in the double's words. */
|
|
83
|
+
reason: string;
|
|
84
|
+
at: number;
|
|
85
|
+
}
|
|
86
|
+
/** One thing a double did for another person: kept, for the user to look at. */
|
|
87
|
+
export interface RoomLogEntry {
|
|
88
|
+
id: string;
|
|
89
|
+
at: number;
|
|
90
|
+
room: string;
|
|
91
|
+
title: string;
|
|
92
|
+
/** Who asked: the identity of their Ta, their name, from a browser. */
|
|
93
|
+
friend: string;
|
|
94
|
+
name: string;
|
|
95
|
+
guest?: boolean;
|
|
96
|
+
/** What they asked, cut short. */
|
|
97
|
+
asked: string;
|
|
98
|
+
/** What the double answered, cut short; empty when it did not. */
|
|
99
|
+
answer: string;
|
|
100
|
+
/** The tools it used, by name, as often as it did. */
|
|
101
|
+
tools: string[];
|
|
102
|
+
/** What it was let do then. */
|
|
103
|
+
capabilities: RoomCapability[];
|
|
104
|
+
/** How it went: answered, failed, or left out (too many in the hour, its user turned it off for the room). */
|
|
105
|
+
outcome: 'answered' | 'failed' | 'limited';
|
|
106
|
+
error?: string;
|
|
107
|
+
/** An agent of the user answered, not the double: its name. */
|
|
108
|
+
agent?: string;
|
|
109
|
+
/** The user asked it, in the room: not for another. */
|
|
110
|
+
own?: boolean;
|
|
111
|
+
}
|
|
112
|
+
/** What the doubles keep, in the data of the package (pi.storage of the page). */
|
|
113
|
+
export declare namespace DoubleKeys {
|
|
114
|
+
/** Rooms where the user's double does not answer, by id: `{ [room]: true }`. */
|
|
115
|
+
const QUIET = "doubles.quiet";
|
|
116
|
+
const GRANTS = "doubles.grants";
|
|
117
|
+
const ASKS = "doubles.asks";
|
|
118
|
+
const LOG = "doubles.log";
|
|
119
|
+
/** The session files of the doubles' sessions, by the key of the session (DoubleUtil.sessionKey). */
|
|
120
|
+
const SESSIONS = "doubles.sessions";
|
|
121
|
+
/** When the last line each room's double looked at was said, by room id: what came later is new. */
|
|
122
|
+
const READ = "doubles.read";
|
|
123
|
+
}
|
|
124
|
+
/** What the page asks of the host (`pi.callHost('doubles', request)`): the user's word, in a dialog of the page. */
|
|
125
|
+
export type DoubleRequest = {
|
|
126
|
+
kind: 'quiet';
|
|
127
|
+
room: string;
|
|
128
|
+
quiet: boolean;
|
|
129
|
+
} | {
|
|
130
|
+
kind: 'grant';
|
|
131
|
+
friend: string;
|
|
132
|
+
name: string;
|
|
133
|
+
capabilities: RoomCapability[];
|
|
134
|
+
cwd: string;
|
|
135
|
+
hours: number;
|
|
136
|
+
} | {
|
|
137
|
+
kind: 'answer';
|
|
138
|
+
ask: string;
|
|
139
|
+
accept: boolean;
|
|
140
|
+
cwd?: string;
|
|
141
|
+
hours?: number;
|
|
142
|
+
} | {
|
|
143
|
+
kind: 'revoke';
|
|
144
|
+
grant: string;
|
|
145
|
+
} | {
|
|
146
|
+
kind: 'revokeAll';
|
|
147
|
+
friend: string;
|
|
148
|
+
} | {
|
|
149
|
+
kind: 'clearLog';
|
|
150
|
+
}
|
|
151
|
+
/** The agents of the user to invite: TeamAgent of those of their own. */
|
|
152
|
+
| {
|
|
153
|
+
kind: 'agents';
|
|
154
|
+
} | {
|
|
155
|
+
kind: 'invite';
|
|
156
|
+
room: string;
|
|
157
|
+
agent: string;
|
|
158
|
+
} | {
|
|
159
|
+
kind: 'dismiss';
|
|
160
|
+
room: string;
|
|
161
|
+
agent: string;
|
|
162
|
+
};
|
|
163
|
+
/** How long a permission may be given for, in hours: an hour, a day, a week. */
|
|
164
|
+
export declare const GRANT_HOURS: readonly number[];
|
|
165
|
+
//# sourceMappingURL=double-protocol.d.ts.map
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* The doubles of rooms (docs/design/ta-link.md 4): in a room, one asks the double of another member, and that member's Ta
|
|
4
|
+
* answers it, in a session of its own that speaks with others: by default it only chats and reads and sets the shared
|
|
5
|
+
* state of the room; it works on the computer of its user only for whom the user let it, what, where and till when.
|
|
6
|
+
* What the server side of the package (double-host.ts), its pi extension (extension.ts) and its web extension share.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GRANT_HOURS = exports.DoubleKeys = exports.ROOM_CAPABILITIES = exports.RoomAgentsUtil = exports.ROOM_AGENTS_KEY = exports.TEAM_KEY = exports.CHANNELS = exports.ROOM_DOUBLE_MARK = exports.NAME = void 0;
|
|
10
|
+
/** The name of the package: its data, its host. */
|
|
11
|
+
exports.NAME = '@celljs/ta-rooms';
|
|
12
|
+
/** In the role of a double in a room: its pi extension knows the session by it. */
|
|
13
|
+
exports.ROOM_DOUBLE_MARK = '[ta-rooms:double]';
|
|
14
|
+
/** The package of the agents of Ta (their data `team`): a member invites them to rooms. */
|
|
15
|
+
exports.CHANNELS = '@celljs/ta-channels';
|
|
16
|
+
exports.TEAM_KEY = 'team';
|
|
17
|
+
exports.ROOM_AGENTS_KEY = 'agents:';
|
|
18
|
+
var RoomAgentsUtil;
|
|
19
|
+
(function (RoomAgentsUtil) {
|
|
20
|
+
function key(member) {
|
|
21
|
+
return `${exports.ROOM_AGENTS_KEY}${member}`;
|
|
22
|
+
}
|
|
23
|
+
RoomAgentsUtil.key = key;
|
|
24
|
+
/** How a line asks an agent of a member (RelayChatLine.to). */
|
|
25
|
+
function address(member, agent) {
|
|
26
|
+
return `${member}/${agent}`;
|
|
27
|
+
}
|
|
28
|
+
RoomAgentsUtil.address = address;
|
|
29
|
+
/** The agents a member listed, if the value is a list and that member wrote it. */
|
|
30
|
+
function list(member, value, by) {
|
|
31
|
+
if (by !== member || !Array.isArray(value)) {
|
|
32
|
+
return [];
|
|
33
|
+
}
|
|
34
|
+
return value
|
|
35
|
+
.filter(agent => agent && typeof agent.id === 'string' && agent.id && typeof agent.name === 'string')
|
|
36
|
+
.slice(0, 16)
|
|
37
|
+
.map(agent => ({
|
|
38
|
+
id: agent.id,
|
|
39
|
+
name: agent.name,
|
|
40
|
+
...(typeof agent.role === 'string' && agent.role ? { role: agent.role } : {}),
|
|
41
|
+
...(Number.isInteger(agent.face) && agent.face >= 0 && agent.face < 64 ? { face: agent.face } : {}),
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
RoomAgentsUtil.list = list;
|
|
45
|
+
/** The agents of a room, by its state under ROOM_AGENTS_KEY. */
|
|
46
|
+
function of(state) {
|
|
47
|
+
return Object.entries(state).flatMap(([key, value]) => {
|
|
48
|
+
if (!key.startsWith(exports.ROOM_AGENTS_KEY) || value.value === null) {
|
|
49
|
+
return [];
|
|
50
|
+
}
|
|
51
|
+
const member = key.slice(exports.ROOM_AGENTS_KEY.length);
|
|
52
|
+
return list(member, value.value, value.by).map(agent => ({ ...agent, member }));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
RoomAgentsUtil.of = of;
|
|
56
|
+
})(RoomAgentsUtil || (exports.RoomAgentsUtil = RoomAgentsUtil = {}));
|
|
57
|
+
exports.ROOM_CAPABILITIES = ['files', 'commands'];
|
|
58
|
+
/** What the doubles keep, in the data of the package (pi.storage of the page). */
|
|
59
|
+
var DoubleKeys;
|
|
60
|
+
(function (DoubleKeys) {
|
|
61
|
+
/** Rooms where the user's double does not answer, by id: `{ [room]: true }`. */
|
|
62
|
+
DoubleKeys.QUIET = 'doubles.quiet';
|
|
63
|
+
DoubleKeys.GRANTS = 'doubles.grants';
|
|
64
|
+
DoubleKeys.ASKS = 'doubles.asks';
|
|
65
|
+
DoubleKeys.LOG = 'doubles.log';
|
|
66
|
+
/** The session files of the doubles' sessions, by the key of the session (DoubleUtil.sessionKey). */
|
|
67
|
+
DoubleKeys.SESSIONS = 'doubles.sessions';
|
|
68
|
+
/** When the last line each room's double looked at was said, by room id: what came later is new. */
|
|
69
|
+
DoubleKeys.READ = 'doubles.read';
|
|
70
|
+
})(DoubleKeys || (exports.DoubleKeys = DoubleKeys = {}));
|
|
71
|
+
/** How long a permission may be given for, in hours: an hour, a day, a week. */
|
|
72
|
+
exports.GRANT_HOURS = [1, 24, 24 * 7];
|
|
73
|
+
//# sourceMappingURL=double-protocol.js.map
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { RelayChatLine } from '@celljs/ta-relay/lib/common/relay-room-chat';
|
|
2
|
+
import { type RoomAgent, type RoomCapability, type RoomGrant, type RoomLogEntry } from './double-protocol';
|
|
3
|
+
/** A line asking a double that is older than this when its Ta hears it is not answered: its Ta was off then. */
|
|
4
|
+
export declare const STALE_MS: number;
|
|
5
|
+
/** Answers of the double of a room in an hour at most: past it, the others wait. */
|
|
6
|
+
export declare const HOURLY = 30;
|
|
7
|
+
/** Entries of the log kept, the latest. */
|
|
8
|
+
export declare const LOG_MAX = 300;
|
|
9
|
+
/** Permissions asked and not answered kept at most, and how long. */
|
|
10
|
+
export declare const ASKS_MAX = 20;
|
|
11
|
+
export declare const ASK_MS: number;
|
|
12
|
+
/** Lines of the chat a double reads before what it is asked. */
|
|
13
|
+
export declare const CONTEXT_LINES = 20;
|
|
14
|
+
/** The tools of a double in a room: chatting needs none, the state of the room these, a permission the last. */
|
|
15
|
+
export declare const ROOM_TOOLS: readonly ['room_state', 'room_set_state', 'ask_permission'];
|
|
16
|
+
/** pi's tools each permission adds. */
|
|
17
|
+
export declare const CAPABILITY_TOOLS: Record<RoomCapability, readonly string[]>;
|
|
18
|
+
/** The tools of the user's own conversations to act in rooms for them. */
|
|
19
|
+
export declare const USER_TOOLS: readonly ['list_rooms', 'read_room', 'say_in_room'];
|
|
20
|
+
/** Who asked a double, as its room lists them. */
|
|
21
|
+
export interface DoubleAsker {
|
|
22
|
+
/** The identity of their Ta. */
|
|
23
|
+
id: string;
|
|
24
|
+
member: string;
|
|
25
|
+
name: string;
|
|
26
|
+
guest?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare namespace DoubleUtil {
|
|
29
|
+
/**
|
|
30
|
+
* The session a double answers in: one per room to chat; one per room, person and directory to work for them. An agent
|
|
31
|
+
* of the user has its own, the same way, and one per room for what the user asks it there (`own`).
|
|
32
|
+
*/
|
|
33
|
+
function sessionKey(room: string, work?: {
|
|
34
|
+
friend: string;
|
|
35
|
+
cwd: string;
|
|
36
|
+
}, agent?: string, own?: boolean): string;
|
|
37
|
+
/** The tools of an agent of the user for what the user asks it in a room: all it has, but those to speak in rooms or ask. */
|
|
38
|
+
function ownTools(all: readonly string[]): string[];
|
|
39
|
+
/** The permissions of `friend` that hold at `now`. */
|
|
40
|
+
function grantsOf(grants: readonly RoomGrant[], friend: string, now: number): RoomGrant[];
|
|
41
|
+
/**
|
|
42
|
+
* The directory and the permissions a double works with for one: those of the directory given last, as one
|
|
43
|
+
* session works in one directory.
|
|
44
|
+
*/
|
|
45
|
+
function work(grants: readonly RoomGrant[]): {
|
|
46
|
+
cwd: string;
|
|
47
|
+
capabilities: RoomCapability[];
|
|
48
|
+
until: number;
|
|
49
|
+
} | undefined;
|
|
50
|
+
/** The tools a double may use with these permissions, of those the session has. */
|
|
51
|
+
function tools(capabilities: readonly RoomCapability[], active: readonly string[]): string[];
|
|
52
|
+
/**
|
|
53
|
+
* Lines that ask the double of `self` (its member id), said by others after `since` and not too long ago: by a person,
|
|
54
|
+
* or by their double for them (say_in_room). The answer of a double asks nobody, so doubles do not answer each other on.
|
|
55
|
+
*/
|
|
56
|
+
function asking(lines: readonly RelayChatLine[], self: string, since: number, now: number): RelayChatLine[];
|
|
57
|
+
/**
|
|
58
|
+
* Lines that ask one of the agents the user invited (`agents`, by id), said after `since` and not too long ago, by
|
|
59
|
+
* anyone, the user too, but the agent itself: with the agent each asks, in order.
|
|
60
|
+
*/
|
|
61
|
+
function askingAgents(lines: readonly RelayChatLine[], self: string, agents: readonly string[], since: number, now: number): {
|
|
62
|
+
line: RelayChatLine;
|
|
63
|
+
agent: string;
|
|
64
|
+
}[];
|
|
65
|
+
/** How a line names the double of `name`, in the language of the one who writes it. */
|
|
66
|
+
function mention(name: string, zh: boolean): string;
|
|
67
|
+
/** Whether the double of a room answered as much as it may in the hour before `now`. */
|
|
68
|
+
function limited(answers: readonly number[], now: number): boolean;
|
|
69
|
+
/** What others wrote, which a model reads inside tags: no tags of its own. */
|
|
70
|
+
function quote(text: string): string;
|
|
71
|
+
function cut(text: string, max: number): string;
|
|
72
|
+
/** The role of the double of `me` in a room: speaks with others, for them, and not as them. */
|
|
73
|
+
function role(me: string, title: string): string;
|
|
74
|
+
/** The role of an agent of `me` in a room: theirs when they ask it, a friendly member for the others. */
|
|
75
|
+
function agentRole(me: string, title: string, agent: Pick<RoomAgent, 'name'> & {
|
|
76
|
+
role?: string;
|
|
77
|
+
}): string;
|
|
78
|
+
/** What Ta says before a request of the user to their agent: it works for them, as anywhere. */
|
|
79
|
+
function ownPermits(me: string, cwd: string): string;
|
|
80
|
+
/** What Ta says before a request, outside it: what the double may do for the one who asks, now. */
|
|
81
|
+
function permits(me: string, name: string, work?: {
|
|
82
|
+
cwd: string;
|
|
83
|
+
capabilities: readonly RoomCapability[];
|
|
84
|
+
until: number;
|
|
85
|
+
}): string;
|
|
86
|
+
/** What the double reads for a line that asks it: the chat before it, then the request, as others wrote them. */
|
|
87
|
+
function prompt(input: {
|
|
88
|
+
title: string;
|
|
89
|
+
asker: DoubleAsker;
|
|
90
|
+
line: RelayChatLine;
|
|
91
|
+
lines: readonly RelayChatLine[];
|
|
92
|
+
nameOf(line: RelayChatLine): string;
|
|
93
|
+
permits: string;
|
|
94
|
+
}): string;
|
|
95
|
+
/** The log with `entry`, the latest kept. */
|
|
96
|
+
function log(entries: readonly RoomLogEntry[], entry: RoomLogEntry): RoomLogEntry[];
|
|
97
|
+
function id(prefix: string): string;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=double-util.d.ts.map
|