@celljs/ta 4.10.0 → 4.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +23 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +166 -139
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
- 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 +6 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +19 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.js +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-tool.js +3 -2
- 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 +132 -69
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +69 -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 +21 -16
- package/dist/pi/packages/ta-channels/lib/views.js +60 -31
- package/dist/pi/packages/ta-channels/package.json +2 -1
- package/dist/pi/packages/ta-channels/web/index.js +1507 -309
- 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 +19 -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 +268 -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 +6 -0
- package/dist/pi/packages/ta-glance/lib/glance-spec.js +204 -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 +164 -0
- package/dist/pi/packages/ta-glance/package.json +53 -0
- package/dist/pi/packages/ta-glance/web/index.js +933 -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.d.ts +9 -0
- package/dist/pi/packages/ta-manual/lib/pictures.js +16 -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 +42 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +354 -0
- package/dist/pi/packages/ta-manual/package.json +54 -0
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +119 -0
- package/dist/pi/packages/ta-manual/web/index.js +2223 -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 +614 -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 +46 -0
- package/dist/pi/packages/ta-recall/lib/extension.d.ts +24 -0
- package/dist/pi/packages/ta-recall/lib/extension.js +131 -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 +1038 -0
- package/dist/pi/packages/ta-rooms/README.en.md +23 -0
- package/dist/pi/packages/ta-rooms/README.md +23 -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/i18n.d.ts +101 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +203 -0
- package/dist/pi/packages/ta-rooms/lib/index.d.ts +9 -0
- package/dist/pi/packages/ta-rooms/lib/index.js +85 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/members-view.js +64 -0
- package/dist/pi/packages/ta-rooms/lib/page.d.ts +105 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +306 -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 +17 -0
- package/dist/pi/packages/ta-rooms/lib/room-view.js +150 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.d.ts +8 -0
- package/dist/pi/packages/ta-rooms/lib/rooms-page.js +174 -0
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-rooms/lib/style.js +154 -0
- package/dist/pi/packages/ta-rooms/package.json +50 -0
- package/dist/pi/packages/ta-rooms/web/index.js +1932 -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 +54 -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 +111 -0
- package/dist/pi/packages/ta-share/package.json +56 -0
- package/dist/pi/packages/ta-share/web/index.js +1197 -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-D9uU0Tx2.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-XgsdQ7ul.js → architecture-WOLXFQ4H-f7Nm7EIo.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW--sVhMS03.js → architectureDiagram-YGSQEFNW-DSAqlcms.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-8f9b-9k2.js → blockDiagram-APKKGZFW-C0lPIW9g.js} +1 -1
- package/dist/public/assets/{browser-DOHZ0JCf.js → browser-WLpgVYno.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-CwYQ0Jfy.js → c4Diagram-KJ2TOQU5-CDcZ7mJq.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-7Y9ezehi.js → chunk-6MUBBAK2-CXPuyqPL.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CZIH4pWz.js → chunk-AXFCVDMN-Du6JRX1x.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-DsNATY2m.js → chunk-BG4553SI-D592E55X.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-CoXkfYE-.js → chunk-DQASFODM-BW2r2SL4.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5OLqki8.js → chunk-HFQBQIA3-C3yoe54R.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-DMHuYGEF.js → chunk-KQLB2F66-DF8gfYCy.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BKeOttO1.js → chunk-KS47KZWR-C8CRMTv1.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-D6zCwkk7.js → chunk-LEVMRMFU-BDcMKiwj.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-B5-QqcZg.js → chunk-M57EVK23-CKJPBygc.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-DQrq3n0T.js → chunk-OY52VR5R-B3ZWH07L.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-j6ZT7EDR.js → chunk-QB3YPZ4I-DI-z4UPL.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-D5MXUO36.js → chunk-R3KSYZAL-Bg4-haAc.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DaBkw4dD.js → chunk-STOXU5M4-l_SHib3p.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-vXcRfGci.js → chunk-TU62E6Q5-BINu9tIm.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-CIh6H4Y2.js → chunk-X4PVCEUW-BQn-mvV5.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-C_Vwv1FM.js → chunk-XXDRQBXY-uvpAu0Ys.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-DccDWEJn.js → classDiagram-v2-L25IHNXF-BIowooW1.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-BX47lumZ.js → cose-bilkent-JH36ORCC-BTyx1Mh2.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BE6WOGxW.js → cynefinDiagram-L36ESFBY-D64EU9I0.js} +1 -1
- package/dist/public/assets/{d3-selection-ZcE6yRN5.js → d3-selection-CN9k6_B9.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CE6SOOcN.js → dagre-SPEB5RXH-FCbz2-Kk.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-xC8VtiYL.js → diagram-3B7GL73J-OhHUSI7j.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-4dmcBbjL.js → diagram-DNEMPZML-Be4xMtp6.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-D14Yn3sQ.js → diagram-L3MUGCDN-CmKSs3aG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-GxSXIhsK.js → diagram-LA4NIPWU-D1C32rMN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Cm7Prlpc.js → diagram-MHCOC4E2-BjoE6JXs.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-mkUnnKFu.js → diagram-XPFHEONP-B22k4v8R.js} +1 -1
- package/dist/public/assets/{dist-acJS-BlA.js → dist-DcBP8Cf6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-m77ua3UQ.js → ebnfDiagram-UZSYDL2S-Tn-K8-X7.js} +1 -1
- package/dist/public/assets/{editor.api-CljTm-EQ.js → editor.api-Bz4sjRz_.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DsQY1hw9.js → elk-XV6XMXQE-COnQsWlN.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-CV8gJM0P.js → erDiagram-EYBAPDEH-c53dJilq.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C1pymbUr.js → eventmodeling-K75KTNOO-DaFpPPks.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +1 -0
- package/dist/public/assets/{freemarker2-DYJXaMHN.js → freemarker2-BLxfRHsw.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-CppxOWRh.js → ganttDiagram-23REXITY-Md-SavIS.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CrQrZhcP.js → gitGraphDiagram-STJD7YCW-CMSwTghO.js} +1 -1
- package/dist/public/assets/{handlebars-DZCnH9e2.js → handlebars-sNpu01kP.js} +1 -1
- package/dist/public/assets/{html-DuzouNES.js → html-C_tKd-uP.js} +1 -1
- package/dist/public/assets/{index-B7OYKvCE.js → index-Bn86rI4n.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-6pby19tQ.js → infoDiagram-KBXO4MBG-CwgNj-7i.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Duf8c8rQ.js → ishikawaDiagram-M35NCXHK-BSlzQNMN.js} +1 -1
- package/dist/public/assets/{javascript-2d_L6cVd.js → javascript-l3qKw0L-.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-Dvv-xzNo.js → journeyDiagram-OPLOXDXO-B09LPEnF.js} +1 -1
- package/dist/public/assets/{jsonMode-CFadYXyI.js → jsonMode-5SQQn1EX.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-Dsk6F-TT.js → kanban-definition-BZKZHSQY-BiW4aJ29.js} +1 -1
- package/dist/public/assets/{liquid-Din4CF34.js → liquid-BGyTIIUt.js} +1 -1
- package/dist/public/assets/{mdx-DivDuCWI.js → mdx-8tGjz4em.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BfCv4CYZ.js → mermaid-parser.core-CctN5b0z.js} +3 -3
- package/dist/public/assets/{mermaid.core-DC20ZwJj.js → mermaid.core-7ERSdZ4-.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-DRZRrJU_.js → mindmap-definition-I2QAS2VK-D-GOUwW1.js} +1 -1
- package/dist/public/assets/module-DEqsdd00.js +1 -0
- package/dist/public/assets/module-TWc52XwT.js +2244 -0
- package/dist/public/assets/{monaco-D1d6MOPe.js → monaco-B_9hlk78.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DcGr3Tbk.js → pegDiagram-FD4XPPHP-Dmy1fWB3.js} +1 -1
- package/dist/public/assets/phaser.esm-BxCDEWDb.js +3202 -0
- package/dist/public/assets/pie-XZMESJXO-BjqLn4qm.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-GF7pu6ch.js → pieDiagram-J4AKIIQI-CXFHLYTg.js} +1 -1
- package/dist/public/assets/{python-BQbTTTT5.js → python-e-JK0s5M.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-D-bcu7Ey.js → quadrantDiagram-XTYBLID2-RQvEpGWO.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-DWO6t_4C.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-D1XOJPWy.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-BiBHsI-K.js → railroad-abnf-LNEFI6M7-CDOSPZwX.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-zKjrfkHs.js → railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DKuVn0GT.js → railroad-peg-JR7BVNR7-B7NtVofS.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Cyn-16mJ.js → railroadDiagram-MRQ6NCDL-DsDrT0Jf.js} +1 -1
- package/dist/public/assets/{razor-DiLk54O0.js → razor-DtSPwumi.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CwU2EBkW.js → requirementDiagram-Y7LWUY3S-BQh0hFuA.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-ajf00HyW.js → sankeyDiagram-WGJFYUXA-BUXNAQEF.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-DiX_OIAw.js → sequenceDiagram-5NDRBG5M-05f-N5V_.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-CV5bRqB7.js → stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BGQKSlj7.js → swimlanes-UMQ2AFYF-DWhlPvKs.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-CRn5uHsY.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-CMdocOui.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-D09wHNzT.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-ChxAT7Fq.js +1 -0
- package/dist/public/assets/{typescript-COQ1g-up.js → typescript-65jNyipU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-CmLFzjie.js → usecaseDiagram-AFA6YXN4-BQTHUX1f.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-DOa6JR5K.js → vennDiagram-NNMJR3RB-BULkVTfA.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BV7EEShp.js → wardleyDiagram-S7YFUSEH-Cek6l8lz.js} +1 -1
- package/dist/public/assets/{xml-BbvtjuaG.js → xml-DWBejfu-.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DtMpPbsq.js → xychartDiagram-GGNKY7IX-ujnZQTWA.js} +1 -1
- package/dist/public/assets/{yaml-Bw8NFga9.js → yaml-CwRCT7q1.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +5853 -2164
- 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,65 @@
|
|
|
1
|
+
// web-src/host.ts
|
|
2
|
+
import { cpSync, existsSync, readdirSync } from "node:fs";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
var NAME = "@celljs/ta-games";
|
|
5
|
+
var OFFERED = "examplesOffered";
|
|
6
|
+
|
|
7
|
+
class GamesService {
|
|
8
|
+
host;
|
|
9
|
+
examplesDir;
|
|
10
|
+
constructor(host, examplesDir) {
|
|
11
|
+
this.host = host;
|
|
12
|
+
this.examplesDir = examplesDir;
|
|
13
|
+
}
|
|
14
|
+
dispose() {}
|
|
15
|
+
async examples() {
|
|
16
|
+
const from = await this.from();
|
|
17
|
+
return this.names(from).map((name) => ({ name, installed: existsSync(this.target(name)) }));
|
|
18
|
+
}
|
|
19
|
+
async offerExamples() {
|
|
20
|
+
const from = await this.from();
|
|
21
|
+
const offered = new Set(await this.host.getExtensionData(NAME, OFFERED) ?? []);
|
|
22
|
+
const copied = this.names(from).filter((name) => !offered.has(name) && this.copy(from, name));
|
|
23
|
+
const names = this.names(from);
|
|
24
|
+
if (names.some((name) => !offered.has(name))) {
|
|
25
|
+
await this.host.setExtensionData(NAME, OFFERED, [...new Set([...offered, ...names])]);
|
|
26
|
+
}
|
|
27
|
+
return copied;
|
|
28
|
+
}
|
|
29
|
+
async installExamples() {
|
|
30
|
+
const from = await this.from();
|
|
31
|
+
return this.names(from).filter((name) => this.copy(from, name));
|
|
32
|
+
}
|
|
33
|
+
copy(from, name) {
|
|
34
|
+
const target = this.target(name);
|
|
35
|
+
if (existsSync(target)) {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
cpSync(join(from, name), target, { recursive: true });
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
target(name) {
|
|
42
|
+
return join(this.host.agentDir, "extensions", name);
|
|
43
|
+
}
|
|
44
|
+
names(from) {
|
|
45
|
+
return existsSync(from) ? readdirSync(from, { withFileTypes: true }).filter((entry) => entry.isDirectory() && existsSync(join(from, entry.name, "package.json"))).map((entry) => entry.name).sort() : [];
|
|
46
|
+
}
|
|
47
|
+
async from() {
|
|
48
|
+
if (this.examplesDir) {
|
|
49
|
+
return this.examplesDir;
|
|
50
|
+
}
|
|
51
|
+
const root = (await this.host.listPackages()).find((info) => info.name === NAME)?.root;
|
|
52
|
+
if (!root) {
|
|
53
|
+
throw new Error(`${NAME} is not loaded.`);
|
|
54
|
+
}
|
|
55
|
+
return join(root, "skills/ta-game/examples");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
function activate(host) {
|
|
59
|
+
return new GamesService(host);
|
|
60
|
+
}
|
|
61
|
+
export {
|
|
62
|
+
activate as default,
|
|
63
|
+
NAME,
|
|
64
|
+
GamesService
|
|
65
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebPageInfo } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** What a package says it is to be listed here: `"pi": { "category": "game" }` of its package.json. */
|
|
3
|
+
export declare const GAME_CATEGORY = "game";
|
|
4
|
+
export declare namespace GamesUtil {
|
|
5
|
+
/** The games among the pages, those played last first, then by title. */
|
|
6
|
+
function games(pages: readonly WebPageInfo[]): WebPageInfo[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The Games page: every extension that is a game (the examples of the ta-game skill, those Ta made, those of
|
|
10
|
+
* the market), each opened as its page, and ideas for Ta to make. The first time it opens, the server copies
|
|
11
|
+
* the examples into the user's extensions (GamesService.offerExamples).
|
|
12
|
+
*/
|
|
13
|
+
export declare function GamesView({ pi }: {
|
|
14
|
+
pi: WebExtensionAPI;
|
|
15
|
+
}): import("react").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=games-view.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GamesUtil = exports.GAME_CATEGORY = void 0;
|
|
4
|
+
exports.GamesView = GamesView;
|
|
5
|
+
const i18n_1 = require("./i18n");
|
|
6
|
+
const ideas_1 = require("./ideas");
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
/** What a package says it is to be listed here: `"pi": { "category": "game" }` of its package.json. */
|
|
9
|
+
exports.GAME_CATEGORY = 'game';
|
|
10
|
+
var GamesUtil;
|
|
11
|
+
(function (GamesUtil) {
|
|
12
|
+
/** The games among the pages, those played last first, then by title. */
|
|
13
|
+
function games(pages) {
|
|
14
|
+
return pages.filter(page => page.category === exports.GAME_CATEGORY).sort((a, b) => { var _a, _b; return ((_a = b.usedAt) !== null && _a !== void 0 ? _a : 0) - ((_b = a.usedAt) !== null && _b !== void 0 ? _b : 0) || a.title.localeCompare(b.title); });
|
|
15
|
+
}
|
|
16
|
+
GamesUtil.games = games;
|
|
17
|
+
})(GamesUtil || (exports.GamesUtil = GamesUtil = {}));
|
|
18
|
+
/**
|
|
19
|
+
* The Games page: every extension that is a game (the examples of the ta-game skill, those Ta made, those of
|
|
20
|
+
* the market), each opened as its page, and ideas for Ta to make. The first time it opens, the server copies
|
|
21
|
+
* the examples into the user's extensions (GamesService.offerExamples).
|
|
22
|
+
*/
|
|
23
|
+
function GamesView({ pi }) {
|
|
24
|
+
var _a;
|
|
25
|
+
const words = i18n_1.GamesText.of(pi.ui.language);
|
|
26
|
+
const games = GamesUtil.games(pi.ui.usePages());
|
|
27
|
+
const [examples, setExamples] = react_1.React.useState();
|
|
28
|
+
const read = react_1.React.useCallback(() => pi.callHost('examples').then(setExamples, () => undefined), [pi]);
|
|
29
|
+
react_1.React.useEffect(() => {
|
|
30
|
+
pi.callHost('offerExamples').then(async (copied) => {
|
|
31
|
+
if (copied.length > 0) {
|
|
32
|
+
await pi.reloadExtensions();
|
|
33
|
+
}
|
|
34
|
+
await read();
|
|
35
|
+
}, () => read());
|
|
36
|
+
}, [pi, read]);
|
|
37
|
+
const missing = (_a = examples === null || examples === void 0 ? void 0 : examples.filter(example => !example.installed)) !== null && _a !== void 0 ? _a : [];
|
|
38
|
+
const [installing, run] = (0, react_1.useBusy)(pi.ui);
|
|
39
|
+
const install = async () => {
|
|
40
|
+
try {
|
|
41
|
+
if ((await pi.callHost('installExamples')).length > 0) {
|
|
42
|
+
await pi.reloadExtensions();
|
|
43
|
+
}
|
|
44
|
+
await read();
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
pi.ui.notify(i18n_1.GamesText.format(words.failed, { message: error instanceof Error ? error.message : String(error) }), 'error');
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
return (react_1.React.createElement("div", { className: "tgm-scroll" },
|
|
51
|
+
react_1.React.createElement("div", { className: "tgm" },
|
|
52
|
+
react_1.React.createElement("section", null,
|
|
53
|
+
react_1.React.createElement("div", { className: "tgm-head" },
|
|
54
|
+
react_1.React.createElement("div", { className: "tgm-title" }, words.games),
|
|
55
|
+
missing.length > 0 ? (react_1.React.createElement("button", { type: "button", className: installing ? 'tgm-link ta-busy' : 'tgm-link', "aria-busy": installing || undefined, onClick: () => void run(install) },
|
|
56
|
+
words.installExamples,
|
|
57
|
+
installing && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }))) : null),
|
|
58
|
+
games.length > 0 ? (react_1.React.createElement("div", { className: "tgm-grid" }, games.map(game => (react_1.React.createElement(GameTile, { key: game.id, pi: pi, game: game }))))) : (react_1.React.createElement("div", { className: "tgm-empty" },
|
|
59
|
+
react_1.React.createElement(pi.ui.Empty, { title: words.noGames, hint: words.noGamesHint, compact: true })))),
|
|
60
|
+
react_1.React.createElement(ideas_1.IdeasSection, { pi: pi }))));
|
|
61
|
+
}
|
|
62
|
+
function GameTile({ pi, game }) {
|
|
63
|
+
var _a;
|
|
64
|
+
const Icon = (_a = game.icon) !== null && _a !== void 0 ? _a : pi.ui.icons.Gamepad2;
|
|
65
|
+
// Its tint from its name, one of the nine of the theme (--ta-tint-<n>), the same on every device.
|
|
66
|
+
const tint = [...game.extension].reduce((sum, char) => (sum * 31 + char.charCodeAt(0)) % 9, 7);
|
|
67
|
+
const running = game.state === 'background' || game.state === 'running';
|
|
68
|
+
// The first time, its code loads and starts before its page shows: the tile turns meanwhile.
|
|
69
|
+
const [opening, run] = (0, react_1.useBusy)(pi.ui);
|
|
70
|
+
return (react_1.React.createElement("button", { type: "button", className: "tgm-tile", style: { '--tgm-tint': `var(--ta-tint-${tint})`, '--tgm-ink': `var(--ta-tint-ink-${tint})` }, "aria-busy": opening || undefined, onClick: () => void run(() => pi.ui.showView(game.id)) },
|
|
71
|
+
react_1.React.createElement("span", { className: opening ? 'tgm-icon ta-busy' : 'tgm-icon' },
|
|
72
|
+
Icon ? react_1.React.createElement(Icon, { size: 24 }) : null,
|
|
73
|
+
running ? react_1.React.createElement("span", { className: "tgm-dot" }) : null,
|
|
74
|
+
opening && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" })),
|
|
75
|
+
react_1.React.createElement("span", { className: "tgm-name" }, game.title)));
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=games-view.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { TaExtensionHost, TaPackageService } from '@celljs/ta-protocol';
|
|
2
|
+
export declare const NAME = "@celljs/ta-games";
|
|
3
|
+
export interface GameExample {
|
|
4
|
+
/** Its directory, in the examples of the skill and in `extensions/`. */
|
|
5
|
+
name: string;
|
|
6
|
+
installed: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The server side of ta-games: the example games of the ta-game skill (`skills/ta-game/examples/`), each an
|
|
10
|
+
* ordinary web extension, copied into `extensions/` of the agent directory, where pi finds them as the
|
|
11
|
+
* user's own: to play, to change, to hand on.
|
|
12
|
+
*/
|
|
13
|
+
export declare class GamesService implements TaPackageService {
|
|
14
|
+
protected readonly host: TaExtensionHost;
|
|
15
|
+
/** Default: those of the package where ta serve has it. */
|
|
16
|
+
protected readonly examplesDir?: string | undefined;
|
|
17
|
+
constructor(host: TaExtensionHost,
|
|
18
|
+
/** Default: those of the package where ta serve has it. */
|
|
19
|
+
examplesDir?: string | undefined);
|
|
20
|
+
dispose(): void;
|
|
21
|
+
examples(): Promise<GameExample[]>;
|
|
22
|
+
/**
|
|
23
|
+
* Copies the examples never offered yet, the first time the Games page opens: one the user deleted is not
|
|
24
|
+
* copied again, one of the same name already there is left as it is. Resolves with those copied.
|
|
25
|
+
*/
|
|
26
|
+
offerExamples(): Promise<string[]>;
|
|
27
|
+
/** Copies again the examples that are not there ("Install the examples" of the Games page). */
|
|
28
|
+
installExamples(): Promise<string[]>;
|
|
29
|
+
protected copy(from: string, name: string): boolean;
|
|
30
|
+
protected target(name: string): string;
|
|
31
|
+
protected names(from: string): string[];
|
|
32
|
+
protected from(): Promise<string>;
|
|
33
|
+
}
|
|
34
|
+
/** `pi.host` of the package: ta serve runs it once. */
|
|
35
|
+
export default function activate(host: TaExtensionHost): TaPackageService;
|
|
36
|
+
//# sourceMappingURL=host.d.ts.map
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GamesService = exports.NAME = void 0;
|
|
4
|
+
exports.default = activate;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
const node_path_1 = require("node:path");
|
|
7
|
+
exports.NAME = '@celljs/ta-games';
|
|
8
|
+
/** The key of the package data that lists the examples once put in `extensions/`: one deleted stays deleted. */
|
|
9
|
+
const OFFERED = 'examplesOffered';
|
|
10
|
+
/**
|
|
11
|
+
* The server side of ta-games: the example games of the ta-game skill (`skills/ta-game/examples/`), each an
|
|
12
|
+
* ordinary web extension, copied into `extensions/` of the agent directory, where pi finds them as the
|
|
13
|
+
* user's own: to play, to change, to hand on.
|
|
14
|
+
*/
|
|
15
|
+
class GamesService {
|
|
16
|
+
constructor(host,
|
|
17
|
+
/** Default: those of the package where ta serve has it. */
|
|
18
|
+
examplesDir) {
|
|
19
|
+
this.host = host;
|
|
20
|
+
this.examplesDir = examplesDir;
|
|
21
|
+
}
|
|
22
|
+
dispose() { }
|
|
23
|
+
async examples() {
|
|
24
|
+
const from = await this.from();
|
|
25
|
+
return this.names(from).map(name => ({ name, installed: (0, node_fs_1.existsSync)(this.target(name)) }));
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Copies the examples never offered yet, the first time the Games page opens: one the user deleted is not
|
|
29
|
+
* copied again, one of the same name already there is left as it is. Resolves with those copied.
|
|
30
|
+
*/
|
|
31
|
+
async offerExamples() {
|
|
32
|
+
var _a;
|
|
33
|
+
const from = await this.from();
|
|
34
|
+
const offered = new Set((_a = (await this.host.getExtensionData(exports.NAME, OFFERED))) !== null && _a !== void 0 ? _a : []);
|
|
35
|
+
const copied = this.names(from).filter(name => !offered.has(name) && this.copy(from, name));
|
|
36
|
+
const names = this.names(from);
|
|
37
|
+
if (names.some(name => !offered.has(name))) {
|
|
38
|
+
await this.host.setExtensionData(exports.NAME, OFFERED, [...new Set([...offered, ...names])]);
|
|
39
|
+
}
|
|
40
|
+
return copied;
|
|
41
|
+
}
|
|
42
|
+
/** Copies again the examples that are not there ("Install the examples" of the Games page). */
|
|
43
|
+
async installExamples() {
|
|
44
|
+
const from = await this.from();
|
|
45
|
+
return this.names(from).filter(name => this.copy(from, name));
|
|
46
|
+
}
|
|
47
|
+
copy(from, name) {
|
|
48
|
+
const target = this.target(name);
|
|
49
|
+
if ((0, node_fs_1.existsSync)(target)) {
|
|
50
|
+
return false;
|
|
51
|
+
}
|
|
52
|
+
(0, node_fs_1.cpSync)((0, node_path_1.join)(from, name), target, { recursive: true });
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
target(name) {
|
|
56
|
+
return (0, node_path_1.join)(this.host.agentDir, 'extensions', name);
|
|
57
|
+
}
|
|
58
|
+
names(from) {
|
|
59
|
+
return (0, node_fs_1.existsSync)(from)
|
|
60
|
+
? (0, node_fs_1.readdirSync)(from, { withFileTypes: true })
|
|
61
|
+
.filter(entry => entry.isDirectory() && (0, node_fs_1.existsSync)((0, node_path_1.join)(from, entry.name, 'package.json')))
|
|
62
|
+
.map(entry => entry.name)
|
|
63
|
+
.sort()
|
|
64
|
+
: [];
|
|
65
|
+
}
|
|
66
|
+
async from() {
|
|
67
|
+
var _a;
|
|
68
|
+
if (this.examplesDir) {
|
|
69
|
+
return this.examplesDir;
|
|
70
|
+
}
|
|
71
|
+
const root = (_a = (await this.host.listPackages()).find(info => info.name === exports.NAME)) === null || _a === void 0 ? void 0 : _a.root;
|
|
72
|
+
if (!root) {
|
|
73
|
+
throw new Error(`${exports.NAME} is not loaded.`);
|
|
74
|
+
}
|
|
75
|
+
return (0, node_path_1.join)(root, 'skills/ta-game/examples');
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.GamesService = GamesService;
|
|
79
|
+
/** `pi.host` of the package: ta serve runs it once. */
|
|
80
|
+
function activate(host) {
|
|
81
|
+
return new GamesService(host);
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=host.js.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const EN: {
|
|
2
|
+
page: string;
|
|
3
|
+
games: string;
|
|
4
|
+
installExamples: string;
|
|
5
|
+
noGames: string;
|
|
6
|
+
noGamesHint: string;
|
|
7
|
+
makeTitle: string;
|
|
8
|
+
makeHint: string;
|
|
9
|
+
snake: string;
|
|
10
|
+
snakeHint: string;
|
|
11
|
+
snakeAsk: string;
|
|
12
|
+
breakout: string;
|
|
13
|
+
breakoutHint: string;
|
|
14
|
+
breakoutAsk: string;
|
|
15
|
+
board: string;
|
|
16
|
+
boardHint: string;
|
|
17
|
+
boardAsk: string;
|
|
18
|
+
maze: string;
|
|
19
|
+
mazeHint: string;
|
|
20
|
+
mazeAsk: string;
|
|
21
|
+
making: string;
|
|
22
|
+
makeTitleOf: string;
|
|
23
|
+
makeAgainTitle: string;
|
|
24
|
+
madeBefore: string;
|
|
25
|
+
startMaking: string;
|
|
26
|
+
makeAnother: string;
|
|
27
|
+
failed: string;
|
|
28
|
+
};
|
|
29
|
+
export type GamesWords = typeof EN;
|
|
30
|
+
export declare namespace GamesText {
|
|
31
|
+
function of(language: string): GamesWords;
|
|
32
|
+
function format(text: string, values: Record<string, string | number>): string;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
35
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GamesText = void 0;
|
|
4
|
+
const EN = {
|
|
5
|
+
page: 'Games',
|
|
6
|
+
games: 'Your games',
|
|
7
|
+
installExamples: 'Install the examples',
|
|
8
|
+
noGames: 'No games yet',
|
|
9
|
+
noGamesHint: 'Have Ta make one below, or install one from the market',
|
|
10
|
+
makeTitle: 'Have Ta make one',
|
|
11
|
+
makeHint: 'Or just say what you want to play in a conversation',
|
|
12
|
+
snake: 'Snake',
|
|
13
|
+
snakeHint: 'Arrow keys or swipes',
|
|
14
|
+
snakeAsk: 'Make a Snake game as an extension of Ta: arrow keys on a computer, swipes on a phone, and the best score kept.',
|
|
15
|
+
breakout: 'Breakout',
|
|
16
|
+
breakoutHint: 'A paddle under your finger',
|
|
17
|
+
breakoutAsk: 'Make a Breakout game as an extension of Ta: the paddle follows the mouse or the finger, and the bricks take the colors of the theme.',
|
|
18
|
+
board: 'Dinos at work',
|
|
19
|
+
boardHint: 'Scheduled tasks as a little world',
|
|
20
|
+
boardAsk: 'Make a card of the board that shows my scheduled tasks as a little pixel world: each task a dinosaur on the grass, running while it runs, lying down when its last run failed.',
|
|
21
|
+
maze: '3D maze',
|
|
22
|
+
mazeHint: 'Roll a ball through it',
|
|
23
|
+
mazeAsk: 'Make a 3D maze game as an extension of Ta, with ui.Game3D: tilt the maze with the arrow keys or by dragging, roll the ball to the exit, a new maze each round, and the best time kept.',
|
|
24
|
+
making: 'Make a game',
|
|
25
|
+
makeTitleOf: 'Have Ta make {name}?',
|
|
26
|
+
makeAgainTitle: 'Make {name} again?',
|
|
27
|
+
madeBefore: 'Ta was asked to make it before. This opens another conversation.',
|
|
28
|
+
startMaking: 'Make it',
|
|
29
|
+
makeAnother: 'Make another',
|
|
30
|
+
failed: 'Could not start: {message}',
|
|
31
|
+
};
|
|
32
|
+
const ZH = {
|
|
33
|
+
page: '游戏',
|
|
34
|
+
games: '我的游戏',
|
|
35
|
+
installExamples: '安装示例游戏',
|
|
36
|
+
noGames: '还没有游戏',
|
|
37
|
+
noGamesHint: '在下面让 Ta 做一个,或者去市场装一个',
|
|
38
|
+
makeTitle: '让 Ta 做一个',
|
|
39
|
+
makeHint: '也可以直接在对话里说想玩什么',
|
|
40
|
+
snake: '贪吃蛇',
|
|
41
|
+
snakeHint: '方向键或滑动操作',
|
|
42
|
+
snakeAsk: '做一个贪吃蛇小游戏扩展:电脑上用方向键,手机上滑动操作,记下最高分。',
|
|
43
|
+
breakout: '打砖块',
|
|
44
|
+
breakoutHint: '挡板跟着手指走',
|
|
45
|
+
breakoutAsk: '做一个打砖块小游戏扩展:挡板跟随鼠标或手指移动,砖块用 Ta 主题的颜色。',
|
|
46
|
+
board: '干活的恐龙',
|
|
47
|
+
boardHint: '把定时任务变成小世界',
|
|
48
|
+
boardAsk: '做一张看板卡片,把我的定时任务画成一个像素小世界:每个任务是草地上的一只小恐龙,正在运行时奔跑,上次运行失败时趴下。',
|
|
49
|
+
maze: '3D 迷宫',
|
|
50
|
+
mazeHint: '滚着小球找出口',
|
|
51
|
+
mazeAsk: '用 ui.Game3D 做一个 3D 迷宫小游戏扩展:方向键或拖动倾斜迷宫,让小球滚到出口,每局一个新迷宫,记下最快用时。',
|
|
52
|
+
making: '做游戏',
|
|
53
|
+
makeTitleOf: '让 Ta 做{name}?',
|
|
54
|
+
makeAgainTitle: '再做一个{name}?',
|
|
55
|
+
madeBefore: '之前已经让 Ta 做过,这会再开一个新对话。',
|
|
56
|
+
startMaking: '开始做',
|
|
57
|
+
makeAnother: '再做一个',
|
|
58
|
+
failed: '没能开始:{message}',
|
|
59
|
+
};
|
|
60
|
+
var GamesText;
|
|
61
|
+
(function (GamesText) {
|
|
62
|
+
function of(language) {
|
|
63
|
+
return language.startsWith('zh') ? ZH : EN;
|
|
64
|
+
}
|
|
65
|
+
GamesText.of = of;
|
|
66
|
+
function format(text, values) {
|
|
67
|
+
return text.replace(/\{(\w+)\}/g, (all, name) => (name in values ? String(values[name]) : all));
|
|
68
|
+
}
|
|
69
|
+
GamesText.format = format;
|
|
70
|
+
})(GamesText || (exports.GamesText = GamesText = {}));
|
|
71
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** "Have Ta make one": each card, once the user said so, opens a conversation in which Ta makes it with the ta-game skill. */
|
|
3
|
+
export declare function IdeasSection({ pi }: {
|
|
4
|
+
pi: WebExtensionAPI;
|
|
5
|
+
}): import("react").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=ideas.d.ts.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IdeasSection = IdeasSection;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
const make_game_1 = require("./make-game");
|
|
6
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
/** Ideas the user can hand to Ta, each a picture and what Ta is asked. */
|
|
9
|
+
const IDEAS = [
|
|
10
|
+
{ key: 'snake', label: 'snake', hint: 'snakeHint', ask: 'snakeAsk' },
|
|
11
|
+
{ key: 'breakout', label: 'breakout', hint: 'breakoutHint', ask: 'breakoutAsk' },
|
|
12
|
+
{ key: 'maze', label: 'maze', hint: 'mazeHint', ask: 'mazeAsk' },
|
|
13
|
+
{ key: 'board', label: 'board', hint: 'boardHint', ask: 'boardAsk' },
|
|
14
|
+
];
|
|
15
|
+
/** "Have Ta make one": each card, once the user said so, opens a conversation in which Ta makes it with the ta-game skill. */
|
|
16
|
+
function IdeasSection({ pi }) {
|
|
17
|
+
const words = i18n_1.GamesText.of(pi.ui.language);
|
|
18
|
+
return (react_1.React.createElement("section", null,
|
|
19
|
+
react_1.React.createElement("div", { className: "tgm-label" }, words.makeTitle),
|
|
20
|
+
react_1.React.createElement("div", { className: "tgm-note" }, words.makeHint),
|
|
21
|
+
react_1.React.createElement(pi.ui.PictureCards, { columns: 4, compactColumns: 2, cards: IDEAS.map(idea => ({
|
|
22
|
+
key: idea.key,
|
|
23
|
+
picture: react_1.React.createElement(IdeaPicture, { pi: pi, idea: idea.key }),
|
|
24
|
+
label: words[idea.label],
|
|
25
|
+
hint: words[idea.hint],
|
|
26
|
+
onPick: () => void make_game_1.MakeGame.pick(pi, { key: idea.key, label: words[idea.label], ask: words[idea.ask] }),
|
|
27
|
+
})) })));
|
|
28
|
+
}
|
|
29
|
+
/** What each idea looks like, drawn with the classes of Ta's pictures so that it follows the theme. */
|
|
30
|
+
function IdeaPicture({ pi, idea }) {
|
|
31
|
+
if (idea === 'snake') {
|
|
32
|
+
return (react_1.React.createElement(pi.ui.Picture, null,
|
|
33
|
+
react_1.React.createElement("rect", { className: "ta-pic-pane", x: "20", y: "14", width: "120", height: "68", rx: "8" }),
|
|
34
|
+
react_1.React.createElement("path", { className: "ta-pic-stroke", d: "M40 64 H76 V36 H112", fill: "none", strokeWidth: "8", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
35
|
+
react_1.React.createElement("circle", { className: "ta-pic-mark", cx: "112", cy: "36", r: "5" }),
|
|
36
|
+
react_1.React.createElement("circle", { className: "ta-pic-bad", cx: "122", cy: "62", r: "4" })));
|
|
37
|
+
}
|
|
38
|
+
if (idea === 'breakout') {
|
|
39
|
+
return (react_1.React.createElement(pi.ui.Picture, null,
|
|
40
|
+
react_1.React.createElement("rect", { className: "ta-pic-pane", x: "20", y: "14", width: "120", height: "68", rx: "8" }),
|
|
41
|
+
[0, 1, 2, 3].map(column => (react_1.React.createElement("rect", { key: column, className: column === 1 ? 'ta-pic-accent' : 'ta-pic-line', x: 30 + column * 26, y: "24", width: "22", height: "8", rx: "2" }))),
|
|
42
|
+
[0, 1, 2].map(column => (react_1.React.createElement("rect", { key: column, className: "ta-pic-soft", x: 43 + column * 26, y: "36", width: "22", height: "8", rx: "2" }))),
|
|
43
|
+
react_1.React.createElement("circle", { className: "ta-pic-mark", cx: "92", cy: "58", r: "4" }),
|
|
44
|
+
react_1.React.createElement("rect", { className: "ta-pic-accent", x: "62", y: "70", width: "36", height: "5", rx: "2.5" })));
|
|
45
|
+
}
|
|
46
|
+
if (idea === 'maze') {
|
|
47
|
+
return (react_1.React.createElement(pi.ui.Picture, null,
|
|
48
|
+
react_1.React.createElement("path", { className: "ta-pic-pane", d: "M80 12 L140 42 L80 72 L20 42 Z" }),
|
|
49
|
+
react_1.React.createElement("path", { className: "ta-pic-soft", d: "M20 42 L80 72 L80 86 L20 56 Z" }),
|
|
50
|
+
react_1.React.createElement("path", { className: "ta-pic-line", d: "M80 72 L140 42 L140 56 L80 86 Z" }),
|
|
51
|
+
react_1.React.createElement("path", { className: "ta-pic-path", d: "M50 42 L80 27 L110 42 L80 57", fill: "none" }),
|
|
52
|
+
react_1.React.createElement("circle", { className: "ta-pic-mark", cx: "80", cy: "57", r: "5" })));
|
|
53
|
+
}
|
|
54
|
+
return (react_1.React.createElement(pi.ui.Picture, null,
|
|
55
|
+
react_1.React.createElement("rect", { className: "ta-pic-pane", x: "20", y: "14", width: "120", height: "68", rx: "8" }),
|
|
56
|
+
react_1.React.createElement("rect", { className: "ta-pic-soft", x: "20", y: "62", width: "120", height: "20", rx: "0" }),
|
|
57
|
+
react_1.React.createElement("rect", { className: "ta-pic-mark", x: "38", y: "46", width: "14", height: "16", rx: "3" }),
|
|
58
|
+
react_1.React.createElement("rect", { className: "ta-pic-mark", x: "72", y: "40", width: "14", height: "16", rx: "3" }),
|
|
59
|
+
react_1.React.createElement("rect", { className: "ta-pic-bad", x: "104", y: "54", width: "18", height: "8", rx: "3" }),
|
|
60
|
+
react_1.React.createElement("path", { className: "ta-pic-path", d: "M30 30 H130" })));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=ideas.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* The Games page (docs/design/ta-games.md): the extensions that are games, the examples of the ta-game skill
|
|
4
|
+
* among them, and ideas that ask Ta to make one with that skill. It starts when it is opened.
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const games_view_1 = require("./games-view");
|
|
5
|
+
const i18n_1 = require("./i18n");
|
|
6
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
7
|
+
const react_1 = require("./react");
|
|
8
|
+
const style_1 = require("./style");
|
|
9
|
+
/**
|
|
10
|
+
* The Games page (docs/design/ta-games.md): the extensions that are games, the examples of the ta-game skill
|
|
11
|
+
* among them, and ideas that ask Ta to make one with that skill. It starts when it is opened.
|
|
12
|
+
*/
|
|
13
|
+
function activate(pi) {
|
|
14
|
+
(0, react_1.bind)(pi.React);
|
|
15
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
16
|
+
pi.registerView('games', {
|
|
17
|
+
title: () => i18n_1.GamesText.of(pi.ui.language).page,
|
|
18
|
+
icon: pi.ui.icons.Gamepad2,
|
|
19
|
+
location: 'page',
|
|
20
|
+
render: () => react_1.React.createElement(games_view_1.GamesView, { pi: pi }),
|
|
21
|
+
});
|
|
22
|
+
return removeStyle;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TaPackageInfo } from '@celljs/ta-protocol';
|
|
2
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
3
|
+
/** An idea of the page: what it is called and what Ta is asked. */
|
|
4
|
+
export interface GameIdea {
|
|
5
|
+
key: string;
|
|
6
|
+
label: string;
|
|
7
|
+
ask: string;
|
|
8
|
+
}
|
|
9
|
+
export declare namespace MakeGame {
|
|
10
|
+
/**
|
|
11
|
+
* What Ta is asked: the user's words, then where the two skills are. Another coding agent as the model
|
|
12
|
+
* (ta-agents) does not see pi's skills, so their files are named rather than only the skills.
|
|
13
|
+
*/
|
|
14
|
+
function message(ask: string, packages: readonly TaPackageInfo[]): string;
|
|
15
|
+
/**
|
|
16
|
+
* A card of the page tapped: a conversation is started only once the user said so, for a tap is easily
|
|
17
|
+
* made by mistake on a phone, and an idea made before says so; a tap while one is asked does nothing.
|
|
18
|
+
*/
|
|
19
|
+
function pick(pi: WebExtensionAPI, idea: GameIdea): Promise<void>;
|
|
20
|
+
/** A new conversation, shown at once, in which Ta makes the game asked for, in the directory of the Ta service; false when it could not start. */
|
|
21
|
+
function start(pi: WebExtensionAPI, ask: string): Promise<boolean>;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=make-game.d.ts.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MakeGame = void 0;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
const GAMES = '@celljs/ta-games';
|
|
6
|
+
const EXTENSIONS = '@celljs/ta-extensions';
|
|
7
|
+
/** The ideas the user had Ta make, by key, with when (storage of the package): asked again, the user is told. */
|
|
8
|
+
const MADE = 'made';
|
|
9
|
+
var MakeGame;
|
|
10
|
+
(function (MakeGame) {
|
|
11
|
+
/**
|
|
12
|
+
* What Ta is asked: the user's words, then where the two skills are. Another coding agent as the model
|
|
13
|
+
* (ta-agents) does not see pi's skills, so their files are named rather than only the skills.
|
|
14
|
+
*/
|
|
15
|
+
function message(ask, packages) {
|
|
16
|
+
const root = (name) => { var _a; return (_a = packages.find(info => info.name === name)) === null || _a === void 0 ? void 0 : _a.root; };
|
|
17
|
+
const games = root(GAMES);
|
|
18
|
+
const extensions = root(EXTENSIONS);
|
|
19
|
+
const skills = [games && `${games}/skills/ta-game/SKILL.md`, extensions && `${extensions}/skills/ta-package/SKILL.md`].filter(Boolean);
|
|
20
|
+
const read = skills.length ? ` Read ${skills.join(' and ')} first.` : '';
|
|
21
|
+
return `${ask}\n\n(Make it with the ta-game and ta-package skills.${read})`;
|
|
22
|
+
}
|
|
23
|
+
MakeGame.message = message;
|
|
24
|
+
let picking = false;
|
|
25
|
+
/**
|
|
26
|
+
* A card of the page tapped: a conversation is started only once the user said so, for a tap is easily
|
|
27
|
+
* made by mistake on a phone, and an idea made before says so; a tap while one is asked does nothing.
|
|
28
|
+
*/
|
|
29
|
+
async function pick(pi, idea) {
|
|
30
|
+
var _a;
|
|
31
|
+
if (picking) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
picking = true;
|
|
35
|
+
try {
|
|
36
|
+
const words = i18n_1.GamesText.of(pi.ui.language);
|
|
37
|
+
const made = (_a = (await pi.storage.get(MADE).catch(() => undefined))) !== null && _a !== void 0 ? _a : {};
|
|
38
|
+
const again = made[idea.key] !== undefined;
|
|
39
|
+
const yes = await pi.ui.confirm(i18n_1.GamesText.format(again ? words.makeAgainTitle : words.makeTitleOf, { name: idea.label }), again ? `${words.madeBefore}\n\n${idea.ask}` : idea.ask, { confirmLabel: again ? words.makeAnother : words.startMaking });
|
|
40
|
+
if (yes && (await start(pi, idea.ask))) {
|
|
41
|
+
await pi.storage.set(MADE, { ...made, [idea.key]: Date.now() }).catch(() => undefined);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
picking = false;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
MakeGame.pick = pick;
|
|
49
|
+
/** A new conversation, shown at once, in which Ta makes the game asked for, in the directory of the Ta service; false when it could not start. */
|
|
50
|
+
async function start(pi, ask) {
|
|
51
|
+
const words = i18n_1.GamesText.of(pi.ui.language);
|
|
52
|
+
try {
|
|
53
|
+
const { cwd } = await pi.server.getServerInfo();
|
|
54
|
+
const packages = pi.packages.listPackages(cwd).catch(() => []);
|
|
55
|
+
const sessionId = pi.server.openSession({ cwd }).then(info => info.sessionId);
|
|
56
|
+
await pi.switchSession(sessionId, { title: words.making, cwd });
|
|
57
|
+
await pi.server.prompt(await sessionId, { clientMessageId: `ta-games:${Date.now()}`, message: message(ask, await packages) });
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
pi.ui.notify(i18n_1.GamesText.format(words.failed, { message: error instanceof Error ? error.message : String(error) }), 'error');
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
MakeGame.start = start;
|
|
66
|
+
})(MakeGame || (exports.MakeGame = MakeGame = {}));
|
|
67
|
+
//# sourceMappingURL=make-game.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { WebExtensionUI as WebUI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import type * as ReactModule from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* The React of the page, which a web extension cannot import: `activate` binds it before anything
|
|
5
|
+
* renders. The JSX of this package compiles to `React.createElement` (tsconfig.json).
|
|
6
|
+
*/
|
|
7
|
+
export declare let React: typeof ReactModule;
|
|
8
|
+
export declare function bind(react: typeof ReactModule): void;
|
|
9
|
+
/** A React hook: `ui.useBusy` of the page, so that what waits on ta serve says so (a spinner once it took a moment). */
|
|
10
|
+
export declare function useBusy(ui: WebUI): ReturnType<WebUI['useBusy']>;
|
|
11
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.React = void 0;
|
|
4
|
+
exports.bind = bind;
|
|
5
|
+
exports.useBusy = useBusy;
|
|
6
|
+
function bind(react) {
|
|
7
|
+
exports.React = react;
|
|
8
|
+
}
|
|
9
|
+
/** In a Ta app older than `ui.useBusy`: never busy. */
|
|
10
|
+
const idle = () => [false, async (action) => await action()];
|
|
11
|
+
/** A React hook: `ui.useBusy` of the page, so that what waits on ta serve says so (a spinner once it took a moment). */
|
|
12
|
+
function useBusy(ui) {
|
|
13
|
+
var _a;
|
|
14
|
+
return ((_a = ui.useBusy) !== null && _a !== void 0 ? _a : idle)();
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=react.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
+
export declare const STYLE = "\n.tgm-scroll { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }\n.tgm { display: flex; flex-direction: column; gap: 28px; width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; box-sizing: border-box; }\n.tgm-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; }\n.tgm-title { flex: 1; min-width: 0; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); font-weight: 600; }\n.tgm-link { padding: 4px 8px; margin-right: -8px; border: 0; border-radius: 8px; background: none; color: var(--ta-accent); font: inherit; font-size: calc(13px * var(--ta-font-scale)); cursor: pointer; }\n.tgm-link:hover { background: var(--ta-hover); }\n.tgm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); row-gap: 16px; margin: 0 -2px; }\n.tgm-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 4px 2px; border: 0; border-radius: 14px; background: none; color: var(--ta-text); font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tgm-icon { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 17px; background: var(--tgm-tint); color: var(--tgm-ink); transition: transform 160ms var(--ta-ease, ease-out); }\n.tgm-tile:active .tgm-icon { transform: scale(0.92); }\n.tgm-link.ta-busy { position: relative; }\n.tgm-icon > .ta-busy-mark { width: 22px; height: 22px; border-width: 2.2px; border-color: color-mix(in srgb, var(--tgm-ink) 25%, transparent); border-top-color: var(--tgm-ink); }\n.tgm-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ta-green); box-shadow: 0 0 0 2px var(--ta-main); }\n.tgm-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-body, var(--ta-text)); font-size: calc(12.5px * var(--ta-font-scale)); line-height: calc(17px * var(--ta-font-scale)); }\n.tgm-empty { display: flex; flex-direction: column; padding: 12px 0; }\n.tgm-label { margin: 0 2px 4px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); line-height: calc(22px * var(--ta-font-scale)); font-weight: 600; }\n.tgm-note { margin: 0 2px 12px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); line-height: calc(18px * var(--ta-font-scale)); }\n:root[data-handheld] .tgm { padding: 16px 14px 32px; gap: 22px; }\n";
|
|
3
|
+
export declare function injectStyle(): () => void;
|
|
4
|
+
//# sourceMappingURL=style.d.ts.map
|