@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,30 @@
|
|
|
1
|
+
import { type Conversation, type SearchHit, type SearchQuery, type SimilarAsk } from './recall-protocol';
|
|
2
|
+
/** Searching the conversations the index read: pure functions, the host and the tests share them. */
|
|
3
|
+
export declare namespace SearchUtil {
|
|
4
|
+
/** The words of a query, lower case, each once: separated by spaces and commas. */
|
|
5
|
+
function terms(query: string): string[];
|
|
6
|
+
/**
|
|
7
|
+
* The conversations with words of the query, those with more of the words first, then more places, then newer:
|
|
8
|
+
* a few places of each, around the words. With `all`, a place has every word.
|
|
9
|
+
*/
|
|
10
|
+
function search(conversations: readonly Conversation[], query: SearchQuery, now?: number): SearchHit[];
|
|
11
|
+
/** About SNIPPET_CHARS characters around the first place of `word`, on one line. */
|
|
12
|
+
function snippet(text: string, word: string, chars?: number): string;
|
|
13
|
+
}
|
|
14
|
+
/** Requests that are much alike, by the pairs of characters they share (Dice): words or not, any language. */
|
|
15
|
+
export declare namespace SimilarUtil {
|
|
16
|
+
function pairs(text: string): Map<string, number>;
|
|
17
|
+
function dice(a: Map<string, number>, b: Map<string, number>): number;
|
|
18
|
+
/** Whether a request is worth comparing: long enough, not a command, not a skill run. */
|
|
19
|
+
function comparable(text: string): boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The requests of other conversations, not of a package, much like `text`, the most alike first, one a
|
|
22
|
+
* conversation; none when it is like a request the user declined.
|
|
23
|
+
*/
|
|
24
|
+
function find(text: string, conversations: readonly Conversation[], options?: {
|
|
25
|
+
exclude?: string[];
|
|
26
|
+
declined?: readonly string[];
|
|
27
|
+
now?: number;
|
|
28
|
+
}): SimilarAsk[];
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=search-util.d.ts.map
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimilarUtil = exports.SearchUtil = void 0;
|
|
4
|
+
const recall_protocol_1 = require("./recall-protocol");
|
|
5
|
+
const DAY_MS = 24 * 60 * 60000;
|
|
6
|
+
/** A long request (a log pasted in) is compared by its start. */
|
|
7
|
+
const PAIRS_CHARS = 1000;
|
|
8
|
+
/** Searching the conversations the index read: pure functions, the host and the tests share them. */
|
|
9
|
+
var SearchUtil;
|
|
10
|
+
(function (SearchUtil) {
|
|
11
|
+
/** The words of a query, lower case, each once: separated by spaces and commas. */
|
|
12
|
+
function terms(query) {
|
|
13
|
+
return [
|
|
14
|
+
...new Set(query
|
|
15
|
+
.toLowerCase()
|
|
16
|
+
.split(/[\s,,、|]+/)
|
|
17
|
+
.filter(term => term.length > 0)),
|
|
18
|
+
].slice(0, 12);
|
|
19
|
+
}
|
|
20
|
+
SearchUtil.terms = terms;
|
|
21
|
+
/**
|
|
22
|
+
* The conversations with words of the query, those with more of the words first, then more places, then newer:
|
|
23
|
+
* a few places of each, around the words. With `all`, a place has every word.
|
|
24
|
+
*/
|
|
25
|
+
function search(conversations, query, now = Date.now()) {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
const words = terms(query.query);
|
|
28
|
+
if (words.length === 0) {
|
|
29
|
+
return [];
|
|
30
|
+
}
|
|
31
|
+
const since = now - ((_a = query.days) !== null && _a !== void 0 ? _a : recall_protocol_1.Limits.SEARCH_DAYS) * DAY_MS;
|
|
32
|
+
const hits = [];
|
|
33
|
+
for (const conversation of conversations) {
|
|
34
|
+
if (conversation.updatedAt < since || conversation.file === query.exclude || (query.cwd && conversation.cwd !== query.cwd)) {
|
|
35
|
+
continue;
|
|
36
|
+
}
|
|
37
|
+
const found = new Set();
|
|
38
|
+
const places = [];
|
|
39
|
+
const title = conversation.title.toLowerCase();
|
|
40
|
+
for (const word of words) {
|
|
41
|
+
if (title.includes(word)) {
|
|
42
|
+
found.add(word);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
for (const said of conversation.said) {
|
|
46
|
+
const text = said.text.toLowerCase();
|
|
47
|
+
const has = words.filter(word => text.includes(word));
|
|
48
|
+
if (has.length === 0 || (query.all && has.length < words.length)) {
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
for (const word of has) {
|
|
52
|
+
found.add(word);
|
|
53
|
+
}
|
|
54
|
+
places.push({ said, word: has[0] });
|
|
55
|
+
}
|
|
56
|
+
if (places.length === 0 && !(query.all ? words.every(word => found.has(word)) : found.size > 0)) {
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
hits.push({
|
|
60
|
+
file: conversation.file,
|
|
61
|
+
cwd: conversation.cwd,
|
|
62
|
+
title: conversation.title,
|
|
63
|
+
updatedAt: conversation.updatedAt,
|
|
64
|
+
matched: found.size,
|
|
65
|
+
places: places.length,
|
|
66
|
+
snippets: places
|
|
67
|
+
.slice(-recall_protocol_1.Limits.SNIPPETS)
|
|
68
|
+
.map(place => ({ role: place.said.role, at: place.said.at, text: snippet(place.said.text, place.word) })),
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
return hits
|
|
72
|
+
.sort((a, b) => b.matched - a.matched || Math.min(b.places, 5) - Math.min(a.places, 5) || b.updatedAt - a.updatedAt)
|
|
73
|
+
.slice(0, (_b = query.limit) !== null && _b !== void 0 ? _b : recall_protocol_1.Limits.SEARCH_HITS)
|
|
74
|
+
.map(({ places: _, ...hit }) => hit);
|
|
75
|
+
}
|
|
76
|
+
SearchUtil.search = search;
|
|
77
|
+
/** About SNIPPET_CHARS characters around the first place of `word`, on one line. */
|
|
78
|
+
function snippet(text, word, chars = recall_protocol_1.Limits.SNIPPET_CHARS) {
|
|
79
|
+
const line = text.replace(/\s+/g, ' ').trim();
|
|
80
|
+
if (line.length <= chars) {
|
|
81
|
+
return line;
|
|
82
|
+
}
|
|
83
|
+
const at = Math.max(0, line.toLowerCase().indexOf(word));
|
|
84
|
+
const start = Math.max(0, Math.min(at - Math.floor(chars / 3), line.length - chars));
|
|
85
|
+
return `${start > 0 ? '…' : ''}${line.slice(start, start + chars).trim()}${start + chars < line.length ? '…' : ''}`;
|
|
86
|
+
}
|
|
87
|
+
SearchUtil.snippet = snippet;
|
|
88
|
+
})(SearchUtil || (exports.SearchUtil = SearchUtil = {}));
|
|
89
|
+
/** Requests that are much alike, by the pairs of characters they share (Dice): words or not, any language. */
|
|
90
|
+
var SimilarUtil;
|
|
91
|
+
(function (SimilarUtil) {
|
|
92
|
+
function pairs(text) {
|
|
93
|
+
var _a;
|
|
94
|
+
const flat = text
|
|
95
|
+
.slice(0, PAIRS_CHARS)
|
|
96
|
+
.toLowerCase()
|
|
97
|
+
.replace(/[\s\p{P}\p{S}]+/gu, '');
|
|
98
|
+
const counts = new Map();
|
|
99
|
+
for (let index = 0; index < flat.length - 1; index++) {
|
|
100
|
+
const pair = flat.slice(index, index + 2);
|
|
101
|
+
counts.set(pair, ((_a = counts.get(pair)) !== null && _a !== void 0 ? _a : 0) + 1);
|
|
102
|
+
}
|
|
103
|
+
return counts;
|
|
104
|
+
}
|
|
105
|
+
SimilarUtil.pairs = pairs;
|
|
106
|
+
function dice(a, b) {
|
|
107
|
+
var _a;
|
|
108
|
+
let size = 0;
|
|
109
|
+
let shared = 0;
|
|
110
|
+
for (const count of a.values()) {
|
|
111
|
+
size += count;
|
|
112
|
+
}
|
|
113
|
+
for (const [pair, count] of b) {
|
|
114
|
+
size += count;
|
|
115
|
+
shared += Math.min(count, (_a = a.get(pair)) !== null && _a !== void 0 ? _a : 0);
|
|
116
|
+
}
|
|
117
|
+
return size === 0 ? 0 : (2 * shared) / size;
|
|
118
|
+
}
|
|
119
|
+
SimilarUtil.dice = dice;
|
|
120
|
+
/** Whether a request is worth comparing: long enough, not a command, not a skill run. */
|
|
121
|
+
function comparable(text) {
|
|
122
|
+
const trimmed = text.trim();
|
|
123
|
+
return trimmed.length >= recall_protocol_1.Limits.SIMILAR_MIN_CHARS && !trimmed.startsWith('/');
|
|
124
|
+
}
|
|
125
|
+
SimilarUtil.comparable = comparable;
|
|
126
|
+
/**
|
|
127
|
+
* The requests of other conversations, not of a package, much like `text`, the most alike first, one a
|
|
128
|
+
* conversation; none when it is like a request the user declined.
|
|
129
|
+
*/
|
|
130
|
+
function find(text, conversations, options = {}) {
|
|
131
|
+
var _a, _b, _c;
|
|
132
|
+
if (!comparable(text)) {
|
|
133
|
+
return [];
|
|
134
|
+
}
|
|
135
|
+
const mine = pairs(text);
|
|
136
|
+
if (((_a = options.declined) !== null && _a !== void 0 ? _a : []).some(declined => dice(mine, pairs(declined)) >= recall_protocol_1.Limits.SIMILAR_SCORE)) {
|
|
137
|
+
return [];
|
|
138
|
+
}
|
|
139
|
+
const since = ((_b = options.now) !== null && _b !== void 0 ? _b : Date.now()) - recall_protocol_1.Limits.SIMILAR_DAYS * DAY_MS;
|
|
140
|
+
const exclude = new Set((_c = options.exclude) !== null && _c !== void 0 ? _c : []);
|
|
141
|
+
const found = [];
|
|
142
|
+
for (const conversation of conversations) {
|
|
143
|
+
if (conversation.group || exclude.has(conversation.file) || conversation.updatedAt < since) {
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
let best;
|
|
147
|
+
for (const said of conversation.said) {
|
|
148
|
+
if (said.role !== 'user' || said.framed || said.at < since || !comparable(said.text)) {
|
|
149
|
+
continue;
|
|
150
|
+
}
|
|
151
|
+
const score = dice(mine, pairs(said.text));
|
|
152
|
+
if (score >= recall_protocol_1.Limits.SIMILAR_SCORE && (!best || score > best.score)) {
|
|
153
|
+
best = { file: conversation.file, title: conversation.title, text: said.text, at: said.at, score };
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (best) {
|
|
157
|
+
found.push(best);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
return found
|
|
161
|
+
.sort((a, b) => b.score - a.score)
|
|
162
|
+
.slice(0, 3)
|
|
163
|
+
.map(({ score: _, ...ask }) => ask);
|
|
164
|
+
}
|
|
165
|
+
SimilarUtil.find = find;
|
|
166
|
+
})(SimilarUtil || (exports.SimilarUtil = SimilarUtil = {}));
|
|
167
|
+
//# sourceMappingURL=search-util.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
2
|
+
export declare namespace RecallServerTexts {
|
|
3
|
+
function zh(env?: NodeJS.ProcessEnv): boolean;
|
|
4
|
+
/** The name of the conversation of the briefs. */
|
|
5
|
+
function briefTitle(): string;
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=server-texts.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecallServerTexts = void 0;
|
|
4
|
+
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
5
|
+
var RecallServerTexts;
|
|
6
|
+
(function (RecallServerTexts) {
|
|
7
|
+
function zh(env = process.env) {
|
|
8
|
+
return /^zh/i.test(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || '');
|
|
9
|
+
}
|
|
10
|
+
RecallServerTexts.zh = zh;
|
|
11
|
+
/** The name of the conversation of the briefs. */
|
|
12
|
+
function briefTitle() {
|
|
13
|
+
return zh() ? '每日简报' : 'Daily brief';
|
|
14
|
+
}
|
|
15
|
+
RecallServerTexts.briefTitle = briefTitle;
|
|
16
|
+
})(RecallServerTexts || (exports.RecallServerTexts = RecallServerTexts = {}));
|
|
17
|
+
//# sourceMappingURL=server-texts.js.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebSettingsSection } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** Recall, in the settings: the daily brief and its time, one written now, and the offers to keep a skill. */
|
|
3
|
+
export declare function recallSettings(pi: WebExtensionAPI): WebSettingsSection;
|
|
4
|
+
//# sourceMappingURL=settings.d.ts.map
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recallSettings = recallSettings;
|
|
4
|
+
const brief_util_1 = require("./brief-util");
|
|
5
|
+
const conversations_1 = require("./conversations");
|
|
6
|
+
const i18n_1 = require("./i18n");
|
|
7
|
+
// biome-ignore lint/correctness/noUnusedImports: the JSX below compiles to React.createElement (jsxFactory)
|
|
8
|
+
const react_1 = require("./react");
|
|
9
|
+
const recall_protocol_1 = require("./recall-protocol");
|
|
10
|
+
const stored_1 = require("./stored");
|
|
11
|
+
const suggests = (value) => value !== false;
|
|
12
|
+
function notifyFailure(pi, error) {
|
|
13
|
+
pi.ui.notify(i18n_1.RecallWords.format(i18n_1.RecallWords.of(pi.ui.language).failed, { message: (0, stored_1.message)(error) }), 'error');
|
|
14
|
+
}
|
|
15
|
+
function Toggle({ pi, checked, label, onChange }) {
|
|
16
|
+
const Switch = pi.ui.Switch;
|
|
17
|
+
if (Switch) {
|
|
18
|
+
return react_1.React.createElement(Switch, { checked: checked, label: label, onChange: on => onChange(on).catch(error => notifyFailure(pi, error)) });
|
|
19
|
+
}
|
|
20
|
+
return (react_1.React.createElement("input", { type: "checkbox", role: "switch", className: "ta-switch", checked: checked, "aria-checked": checked, "aria-label": label, onChange: event => void onChange(event.target.checked).catch(error => notifyFailure(pi, error)) }));
|
|
21
|
+
}
|
|
22
|
+
function BriefSwitch({ pi }) {
|
|
23
|
+
const words = i18n_1.RecallWords.of(pi.ui.language);
|
|
24
|
+
const [brief, setBrief] = (0, stored_1.useStored)(pi, recall_protocol_1.Keys.BRIEF, brief_util_1.BriefUtil.settings);
|
|
25
|
+
return react_1.React.createElement(Toggle, { pi: pi, checked: brief.enabled, label: words.briefLabel, onChange: enabled => setBrief({ ...brief, enabled }) });
|
|
26
|
+
}
|
|
27
|
+
function BriefTime({ pi }) {
|
|
28
|
+
const words = i18n_1.RecallWords.of(pi.ui.language);
|
|
29
|
+
const [brief, setBrief] = (0, stored_1.useStored)(pi, recall_protocol_1.Keys.BRIEF, brief_util_1.BriefUtil.settings);
|
|
30
|
+
const change = (time) => {
|
|
31
|
+
if (brief_util_1.BriefUtil.parseTime(time)) {
|
|
32
|
+
void setBrief({ ...brief, time }).catch(error => notifyFailure(pi, error));
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return (react_1.React.createElement("input", { type: "time", className: "tar-time", "aria-label": words.briefTime, value: brief.time, disabled: !brief.enabled, onChange: event => change(event.target.value) }));
|
|
36
|
+
}
|
|
37
|
+
function BriefNow({ pi }) {
|
|
38
|
+
const words = i18n_1.RecallWords.of(pi.ui.language);
|
|
39
|
+
const [busy, run] = (0, react_1.useBusy)(pi.ui);
|
|
40
|
+
const write = async () => {
|
|
41
|
+
try {
|
|
42
|
+
const file = await pi.callHost('briefNow');
|
|
43
|
+
if (!file) {
|
|
44
|
+
pi.ui.notify(words.briefNothing, 'info');
|
|
45
|
+
}
|
|
46
|
+
else if (!(await conversations_1.RecallConversations.open(pi, file))) {
|
|
47
|
+
pi.ui.notify(words.briefLabel, 'info');
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
notifyFailure(pi, error);
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
return (react_1.React.createElement("button", { type: "button", className: `ta-button${busy ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void run(write) },
|
|
55
|
+
busy && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
56
|
+
react_1.React.createElement("span", null, words.briefNowButton)));
|
|
57
|
+
}
|
|
58
|
+
function SuggestSwitch({ pi }) {
|
|
59
|
+
const words = i18n_1.RecallWords.of(pi.ui.language);
|
|
60
|
+
const [on, setOn] = (0, stored_1.useStored)(pi, recall_protocol_1.Keys.SUGGEST, suggests);
|
|
61
|
+
return react_1.React.createElement(Toggle, { pi: pi, checked: on, label: words.suggestLabel, onChange: setOn });
|
|
62
|
+
}
|
|
63
|
+
/** Recall, in the settings: the daily brief and its time, one written now, and the offers to keep a skill. */
|
|
64
|
+
function recallSettings(pi) {
|
|
65
|
+
const words = () => i18n_1.RecallWords.of(pi.ui.language);
|
|
66
|
+
return {
|
|
67
|
+
title: () => words().settingsTitle,
|
|
68
|
+
icon: pi.ui.icons.ScrollText,
|
|
69
|
+
rows: [
|
|
70
|
+
{ key: 'brief', label: () => words().briefLabel, description: () => words().briefHint, render: () => react_1.React.createElement(BriefSwitch, { pi: pi }) },
|
|
71
|
+
{ key: 'brief-time', label: () => words().briefTime, render: () => react_1.React.createElement(BriefTime, { pi: pi }) },
|
|
72
|
+
{ key: 'brief-now', label: () => words().briefNow, render: () => react_1.React.createElement(BriefNow, { pi: pi }) },
|
|
73
|
+
{ key: 'suggest', label: () => words().suggestLabel, description: () => words().suggestHint, render: () => react_1.React.createElement(SuggestSwitch, { pi: pi }) },
|
|
74
|
+
],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { WebCustomMessage, WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* A skill Ta drafted, in its conversation: its name, the line that says when it is used, the steps to look at,
|
|
4
|
+
* and Save as a skill or No thanks. What the user decided is kept by the host, the same on every device.
|
|
5
|
+
*/
|
|
6
|
+
export declare function skillCard(pi: WebExtensionAPI): React.ComponentType<{
|
|
7
|
+
message: WebCustomMessage;
|
|
8
|
+
}>;
|
|
9
|
+
//# sourceMappingURL=skill-card.d.ts.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.skillCard = skillCard;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
const react_1 = require("./react");
|
|
6
|
+
const recall_protocol_1 = require("./recall-protocol");
|
|
7
|
+
const stored_1 = require("./stored");
|
|
8
|
+
function decisions(value) {
|
|
9
|
+
return value && typeof value === 'object' ? value : {};
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A skill Ta drafted, in its conversation: its name, the line that says when it is used, the steps to look at,
|
|
13
|
+
* and Save as a skill or No thanks. What the user decided is kept by the host, the same on every device.
|
|
14
|
+
*/
|
|
15
|
+
function skillCard(pi) {
|
|
16
|
+
return function SkillCardView({ message: custom }) {
|
|
17
|
+
var _a;
|
|
18
|
+
const words = i18n_1.RecallWords.of(pi.ui.language);
|
|
19
|
+
const [decided] = (0, stored_1.useStored)(pi, recall_protocol_1.Keys.DECIDED, decisions);
|
|
20
|
+
const [open, setOpen] = react_1.React.useState(false);
|
|
21
|
+
const [saving, save] = (0, react_1.useBusy)(pi.ui);
|
|
22
|
+
const [declining, decline] = (0, react_1.useBusy)(pi.ui);
|
|
23
|
+
const card = custom.details;
|
|
24
|
+
if (!((_a = card === null || card === void 0 ? void 0 : card.draft) === null || _a === void 0 ? void 0 : _a.body)) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
const decision = decided[card.key];
|
|
28
|
+
const Sparkles = pi.ui.icons.Sparkles;
|
|
29
|
+
const Markdown = pi.ui.Markdown;
|
|
30
|
+
const run = (action) => action().catch(error => pi.ui.notify(i18n_1.RecallWords.format(words.failed, { message: (0, stored_1.message)(error) }), 'error'));
|
|
31
|
+
const busy = saving || declining;
|
|
32
|
+
return (react_1.React.createElement("div", { className: "tar-skill" },
|
|
33
|
+
react_1.React.createElement("div", { className: "tar-skill-head" },
|
|
34
|
+
Sparkles && react_1.React.createElement(Sparkles, { size: 14 }),
|
|
35
|
+
react_1.React.createElement("span", null, words.skillAsk)),
|
|
36
|
+
react_1.React.createElement("div", { className: "tar-skill-title" },
|
|
37
|
+
react_1.React.createElement("span", { className: "tar-skill-name" }, card.draft.name)),
|
|
38
|
+
card.draft.description && react_1.React.createElement("div", { className: "tar-skill-description" }, card.draft.description),
|
|
39
|
+
react_1.React.createElement("button", { type: "button", className: "tar-skill-toggle", "aria-expanded": open, onClick: () => setOpen(!open) }, open ? words.skillHide : words.skillShow),
|
|
40
|
+
open && (react_1.React.createElement("div", { className: "tar-skill-body" },
|
|
41
|
+
react_1.React.createElement(Markdown, { text: card.draft.body }))),
|
|
42
|
+
decision && 'saved' in decision ? (react_1.React.createElement("div", { className: "tar-skill-done tar-saved" }, i18n_1.RecallWords.format(words.skillSaved, { name: decision.name }))) : decision ? (react_1.React.createElement("div", { className: "tar-skill-done" }, words.skillDeclined)) : (react_1.React.createElement("div", { className: "tar-skill-actions" },
|
|
43
|
+
react_1.React.createElement("button", { type: "button", className: `ta-button ta-primary${saving ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void save(() => run(() => pi.callHost('saveSkill', card.key, card.draft))) },
|
|
44
|
+
saving && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark ta-on-brand" }),
|
|
45
|
+
react_1.React.createElement("span", null, words.skillSave)),
|
|
46
|
+
react_1.React.createElement("button", { type: "button", className: `ta-button${declining ? ' ta-busy' : ''}`, disabled: busy, onClick: () => void decline(() => run(() => pi.callHost('declineSkill', card.key, card.ask))) },
|
|
47
|
+
declining && react_1.React.createElement("span", { className: "ta-spinner ta-busy-mark" }),
|
|
48
|
+
react_1.React.createElement("span", null, words.skillNo))))));
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=skill-card.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type SimilarAsk, type SkillDraft } from './recall-protocol';
|
|
2
|
+
/** The fenced block of a draft skill in an answer, and the skill file it makes. */
|
|
3
|
+
export declare namespace SkillUtil {
|
|
4
|
+
/** The last `ta-skill` block of an answer; undefined when it has none, or one without a body. */
|
|
5
|
+
function find(text: string): SkillDraft | undefined;
|
|
6
|
+
/** A name pi takes for a skill: lower case letters, digits and dashes, as its directory is named. */
|
|
7
|
+
function name(text: string): string;
|
|
8
|
+
/** The draft, its name made one pi takes and its description one line. */
|
|
9
|
+
function check(draft: SkillDraft): SkillDraft;
|
|
10
|
+
/** The SKILL.md of a draft: its frontmatter, the description quoted as YAML reads JSON strings. */
|
|
11
|
+
function markdown(draft: SkillDraft): string;
|
|
12
|
+
/** What the block looks like, for the model. */
|
|
13
|
+
function blockHelp(): string;
|
|
14
|
+
/** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
|
|
15
|
+
function hint(asks: readonly SimilarAsk[]): string;
|
|
16
|
+
/** What the + of the message box sends: a line the user sees, after what the model reads. */
|
|
17
|
+
function ask(language: string): string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=skill-util.d.ts.map
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkillUtil = void 0;
|
|
4
|
+
const recall_protocol_1 = require("./recall-protocol");
|
|
5
|
+
const FENCE = '```';
|
|
6
|
+
const NAME_CHARS = 64;
|
|
7
|
+
const DESCRIPTION_CHARS = 1024;
|
|
8
|
+
/** The fenced block of a draft skill in an answer, and the skill file it makes. */
|
|
9
|
+
var SkillUtil;
|
|
10
|
+
(function (SkillUtil) {
|
|
11
|
+
/** The last `ta-skill` block of an answer; undefined when it has none, or one without a body. */
|
|
12
|
+
function find(text) {
|
|
13
|
+
const lines = text.split(/\r?\n/);
|
|
14
|
+
let found;
|
|
15
|
+
for (let index = 0; index < lines.length; index++) {
|
|
16
|
+
const open = /^\s*(`{3,})\s*([\w-]+)\s*$/.exec(lines[index]);
|
|
17
|
+
if ((open === null || open === void 0 ? void 0 : open[2]) !== recall_protocol_1.SKILL_BLOCK) {
|
|
18
|
+
continue;
|
|
19
|
+
}
|
|
20
|
+
const close = new RegExp(`^\\s*${open[1]}\`*\\s*$`);
|
|
21
|
+
const end = lines.findIndex((line, at) => at > index && close.test(line));
|
|
22
|
+
found = lines.slice(index + 1, end < 0 ? lines.length : end);
|
|
23
|
+
index = end < 0 ? lines.length : end;
|
|
24
|
+
}
|
|
25
|
+
return found && parse(found);
|
|
26
|
+
}
|
|
27
|
+
SkillUtil.find = find;
|
|
28
|
+
function parse(lines) {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const rule = lines.findIndex(line => line.trim() === '---');
|
|
31
|
+
const head = rule < 0 ? [] : lines.slice(0, rule);
|
|
32
|
+
const body = lines
|
|
33
|
+
.slice(rule + 1)
|
|
34
|
+
.join('\n')
|
|
35
|
+
.trim();
|
|
36
|
+
if (!body) {
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
const field = (key) => head
|
|
40
|
+
.map(line => { var _a; return (_a = new RegExp(`^\\s*${key}\\s*:\\s*(.*)$`, 'i')
|
|
41
|
+
.exec(line)) === null || _a === void 0 ? void 0 : _a[1].trim().replace(/^["'](.*)["']$/, '$1'); })
|
|
42
|
+
.find(value => value !== undefined);
|
|
43
|
+
const description = ((_a = field('description')) !== null && _a !== void 0 ? _a : '').replace(/\s+/g, ' ').slice(0, DESCRIPTION_CHARS);
|
|
44
|
+
return { name: name((_b = field('name')) !== null && _b !== void 0 ? _b : '') || name(description) || 'skill', description, body };
|
|
45
|
+
}
|
|
46
|
+
/** A name pi takes for a skill: lower case letters, digits and dashes, as its directory is named. */
|
|
47
|
+
function name(text) {
|
|
48
|
+
return text
|
|
49
|
+
.toLowerCase()
|
|
50
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
51
|
+
.replace(/^-+|-+$/g, '')
|
|
52
|
+
.slice(0, NAME_CHARS)
|
|
53
|
+
.replace(/-+$/, '');
|
|
54
|
+
}
|
|
55
|
+
SkillUtil.name = name;
|
|
56
|
+
/** The draft, its name made one pi takes and its description one line. */
|
|
57
|
+
function check(draft) {
|
|
58
|
+
const body = typeof (draft === null || draft === void 0 ? void 0 : draft.body) === 'string' ? draft.body.trim() : '';
|
|
59
|
+
if (!body) {
|
|
60
|
+
throw new Error('A skill needs a body.');
|
|
61
|
+
}
|
|
62
|
+
const description = (typeof draft.description === 'string' ? draft.description : '').replace(/\s+/g, ' ').trim().slice(0, DESCRIPTION_CHARS);
|
|
63
|
+
return { name: name(typeof draft.name === 'string' ? draft.name : '') || 'skill', description: description || body.split('\n')[0].slice(0, 200), body };
|
|
64
|
+
}
|
|
65
|
+
SkillUtil.check = check;
|
|
66
|
+
/** The SKILL.md of a draft: its frontmatter, the description quoted as YAML reads JSON strings. */
|
|
67
|
+
function markdown(draft) {
|
|
68
|
+
return `---\nname: ${draft.name}\ndescription: ${JSON.stringify(draft.description)}\n---\n\n${draft.body.trim()}\n`;
|
|
69
|
+
}
|
|
70
|
+
SkillUtil.markdown = markdown;
|
|
71
|
+
/** What the block looks like, for the model. */
|
|
72
|
+
function blockHelp() {
|
|
73
|
+
return [
|
|
74
|
+
`${FENCE}${recall_protocol_1.SKILL_BLOCK}`,
|
|
75
|
+
'name: <lowercase-words-with-dashes>',
|
|
76
|
+
'description: <one line: what it does and when to use it>',
|
|
77
|
+
'---',
|
|
78
|
+
'<the body: the goal, then the steps, commands, files and checks that worked, in general terms, without what held only this once>',
|
|
79
|
+
FENCE,
|
|
80
|
+
'Use a longer fence when the body has fences of its own. Write it in the language of the user.',
|
|
81
|
+
].join('\n');
|
|
82
|
+
}
|
|
83
|
+
SkillUtil.blockHelp = blockHelp;
|
|
84
|
+
/** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
|
|
85
|
+
function hint(asks) {
|
|
86
|
+
const lines = asks.map(ask => `- "${ask.title}" (${new Date(ask.at).toISOString().slice(0, 10)}): ${JSON.stringify(ask.text.replace(/\s+/g, ' ').slice(0, 200))}`);
|
|
87
|
+
return [
|
|
88
|
+
'The user asked for much the same in other conversations before:',
|
|
89
|
+
...lines,
|
|
90
|
+
`Do what is asked first. Then, if it is a way of working worth doing the same way again (steps, commands, checks; not a one-off answer), offer to keep it as a skill in one short sentence and draft it with ${recall_protocol_1.PROPOSE_TOOL}, which Ta shows as a card the user saves with a tap. Without that tool, end your answer with the draft in a fenced block of the language ${recall_protocol_1.SKILL_BLOCK} instead:`,
|
|
91
|
+
blockHelp(),
|
|
92
|
+
'Offer nothing when it is not worth keeping.',
|
|
93
|
+
].join('\n');
|
|
94
|
+
}
|
|
95
|
+
SkillUtil.hint = hint;
|
|
96
|
+
/** What the + of the message box sends: a line the user sees, after what the model reads. */
|
|
97
|
+
function ask(language) {
|
|
98
|
+
const context = [
|
|
99
|
+
'[ta-recall:skill]',
|
|
100
|
+
'The user wants the way of working of this conversation kept as a skill of Ta, which Ta loads in every new conversation: written so that one who never saw this conversation does it the same way.',
|
|
101
|
+
'- Keep what worked: the goal, the steps, the commands, files, checks and pitfalls; leave out what was only tried and dropped and what holds only this once.',
|
|
102
|
+
`- Draft it with ${recall_protocol_1.PROPOSE_TOOL}, which Ta shows as a card the user saves, and say in a line what it does; do not write the skill file yourself. Without that tool, end your answer with the draft in a fenced block of the language ${recall_protocol_1.SKILL_BLOCK}:`,
|
|
103
|
+
blockHelp(),
|
|
104
|
+
'- When the conversation holds no way of working worth keeping, say so and draft nothing.',
|
|
105
|
+
].join('\n');
|
|
106
|
+
return `<context>\n${context}\n</context>\n${/^zh/i.test(language) ? '把这个对话里的做法存成技能' : 'Keep how this was done as a skill'}`;
|
|
107
|
+
}
|
|
108
|
+
SkillUtil.ask = ask;
|
|
109
|
+
})(SkillUtil || (exports.SkillUtil = SkillUtil = {}));
|
|
110
|
+
//# sourceMappingURL=skill-util.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** A value of the data of the package, read again when any page or the host changes it. */
|
|
3
|
+
export declare function useStored<T>(pi: WebExtensionAPI, key: string, parse: (value: unknown) => T): [T, (value: T) => Promise<void>];
|
|
4
|
+
export declare function message(error: unknown): string;
|
|
5
|
+
//# sourceMappingURL=stored.d.ts.map
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useStored = useStored;
|
|
4
|
+
exports.message = message;
|
|
5
|
+
const react_1 = require("./react");
|
|
6
|
+
/** A value of the data of the package, read again when any page or the host changes it. */
|
|
7
|
+
function useStored(pi, key, parse) {
|
|
8
|
+
const [value, setValue] = react_1.React.useState(() => parse(undefined));
|
|
9
|
+
react_1.React.useEffect(() => {
|
|
10
|
+
let live = true;
|
|
11
|
+
const read = () => void pi.storage.get(key).then(stored => live && setValue(parse(stored)), () => undefined);
|
|
12
|
+
read();
|
|
13
|
+
const stop = pi.storage.onChange(keys => keys.includes(key) && read());
|
|
14
|
+
return () => {
|
|
15
|
+
live = false;
|
|
16
|
+
stop();
|
|
17
|
+
};
|
|
18
|
+
}, [pi, key, parse]);
|
|
19
|
+
const set = react_1.React.useCallback((next) => {
|
|
20
|
+
setValue(next);
|
|
21
|
+
return pi.storage.set(key, next);
|
|
22
|
+
}, [pi, key]);
|
|
23
|
+
return [value, set];
|
|
24
|
+
}
|
|
25
|
+
function message(error) {
|
|
26
|
+
return error instanceof Error ? error.message : String(error);
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=stored.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/* A draft skill in its conversation, to save with a tap */\n.tar-skill { margin: 4px 0; padding: 10px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-card); font-size: calc(13px * var(--ta-font-scale)); max-width: 620px; }\n.tar-skill-head { display: flex; align-items: center; gap: 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tar-skill-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }\n.tar-skill-name { font-family: var(--ta-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); overflow-wrap: anywhere; }\n.tar-skill-description { margin-top: 4px; color: var(--ta-text); line-height: 1.55; overflow-wrap: anywhere; }\n.tar-skill-toggle { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }\n.tar-skill-toggle:hover { color: var(--ta-text); }\n.tar-skill-body { margin-top: 6px; max-height: 280px; overflow: auto; padding: 2px 10px; border-radius: 8px; background: var(--ta-hover); font-size: calc(12px * var(--ta-font-scale)); }\n.tar-skill-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }\n.tar-skill-done { margin-top: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; }\n.tar-skill-done.tar-saved { color: var(--ta-green); }\n[data-touch] .tar-skill-actions .ta-button { min-height: 38px; }\n/* The card of the daily brief on the board: its time and counts, then the lines that wait, each ticked off by its circle */\n.tar-brief-card { display: flex; flex-direction: column; margin: -4px -6px; }\n.tar-brief-meta { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }\n.tar-brief-meta:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tar-brief-when { flex: none; font-variant-numeric: tabular-nums; }\n.tar-brief-counts { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tar-brief-lines { margin: 2px 0 0; padding: 0; list-style: none; }\n.tar-brief-line { display: flex; align-items: center; gap: 2px; min-height: 36px; }\n.tar-brief-tick { flex: none; display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; background: none; color: var(--ta-main); cursor: pointer; -webkit-tap-highlight-color: transparent; }\n.tar-brief-tick::before { content: ''; grid-area: 1 / 1; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ta-border-field); transition: background 140ms, box-shadow 140ms; }\n.tar-brief-tick:hover::before { box-shadow: inset 0 0 0 1.5px var(--ta-muted); }\n.tar-brief-tick > svg { grid-area: 1 / 1; position: relative; }\n.tar-brief-line[data-done] .tar-brief-tick::before { background: var(--ta-green); box-shadow: none; }\n.tar-brief-text { flex: 1; min-width: 0; min-height: 36px; padding: 0 6px 0 2px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }\n.tar-brief-text:hover { background: var(--ta-hover); }\n.tar-brief-line[data-done] .tar-brief-text { color: var(--ta-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ta-muted) 60%, transparent); }\n.tar-brief-none { padding: 6px 6px 2px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }\n.tar-brief-more { align-self: flex-start; margin-top: 2px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }\n.tar-brief-more:hover { background: var(--ta-hover); color: var(--ta-text); }\n.tar-time { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n";
|
|
3
|
+
export declare function injectStyle(): () => void;
|
|
4
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.STYLE = void 0;
|
|
4
|
+
exports.injectStyle = injectStyle;
|
|
5
|
+
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
6
|
+
exports.STYLE = `
|
|
7
|
+
/* A draft skill in its conversation, to save with a tap */
|
|
8
|
+
.tar-skill { margin: 4px 0; padding: 10px 12px; border: 1px solid var(--ta-border-muted); border-radius: 10px; background: var(--ta-card); font-size: calc(13px * var(--ta-font-scale)); max-width: 620px; }
|
|
9
|
+
.tar-skill-head { display: flex; align-items: center; gap: 6px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }
|
|
10
|
+
.tar-skill-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
|
|
11
|
+
.tar-skill-name { font-family: var(--ta-font-mono, ui-monospace, SFMono-Regular, Menlo, monospace); font-size: calc(13px * var(--ta-font-scale)); font-weight: 600; color: var(--ta-text); overflow-wrap: anywhere; }
|
|
12
|
+
.tar-skill-description { margin-top: 4px; color: var(--ta-text); line-height: 1.55; overflow-wrap: anywhere; }
|
|
13
|
+
.tar-skill-toggle { margin-top: 6px; padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12px * var(--ta-font-scale)); cursor: pointer; }
|
|
14
|
+
.tar-skill-toggle:hover { color: var(--ta-text); }
|
|
15
|
+
.tar-skill-body { margin-top: 6px; max-height: 280px; overflow: auto; padding: 2px 10px; border-radius: 8px; background: var(--ta-hover); font-size: calc(12px * var(--ta-font-scale)); }
|
|
16
|
+
.tar-skill-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
|
|
17
|
+
.tar-skill-done { margin-top: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
|
|
18
|
+
.tar-skill-done.tar-saved { color: var(--ta-green); }
|
|
19
|
+
[data-touch] .tar-skill-actions .ta-button { min-height: 38px; }
|
|
20
|
+
/* The card of the daily brief on the board: its time and counts, then the lines that wait, each ticked off by its circle */
|
|
21
|
+
.tar-brief-card { display: flex; flex-direction: column; margin: -4px -6px; }
|
|
22
|
+
.tar-brief-meta { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); text-align: left; cursor: pointer; }
|
|
23
|
+
.tar-brief-meta:hover { background: var(--ta-hover); color: var(--ta-text); }
|
|
24
|
+
.tar-brief-when { flex: none; font-variant-numeric: tabular-nums; }
|
|
25
|
+
.tar-brief-counts { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
26
|
+
.tar-brief-lines { margin: 2px 0 0; padding: 0; list-style: none; }
|
|
27
|
+
.tar-brief-line { display: flex; align-items: center; gap: 2px; min-height: 36px; }
|
|
28
|
+
.tar-brief-tick { flex: none; display: grid; place-items: center; width: 32px; height: 36px; padding: 0; border: 0; background: none; color: var(--ta-main); cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
29
|
+
.tar-brief-tick::before { content: ''; grid-area: 1 / 1; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ta-border-field); transition: background 140ms, box-shadow 140ms; }
|
|
30
|
+
.tar-brief-tick:hover::before { box-shadow: inset 0 0 0 1.5px var(--ta-muted); }
|
|
31
|
+
.tar-brief-tick > svg { grid-area: 1 / 1; position: relative; }
|
|
32
|
+
.tar-brief-line[data-done] .tar-brief-tick::before { background: var(--ta-green); box-shadow: none; }
|
|
33
|
+
.tar-brief-text { flex: 1; min-width: 0; min-height: 36px; padding: 0 6px 0 2px; border: 0; border-radius: 8px; background: none; color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
|
|
34
|
+
.tar-brief-text:hover { background: var(--ta-hover); }
|
|
35
|
+
.tar-brief-line[data-done] .tar-brief-text { color: var(--ta-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ta-muted) 60%, transparent); }
|
|
36
|
+
.tar-brief-none { padding: 6px 6px 2px; color: var(--ta-muted); font-size: calc(13px * var(--ta-font-scale)); }
|
|
37
|
+
.tar-brief-more { align-self: flex-start; margin-top: 2px; padding: 4px 6px; border: 0; border-radius: 8px; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; }
|
|
38
|
+
.tar-brief-more:hover { background: var(--ta-hover); color: var(--ta-text); }
|
|
39
|
+
.tar-time { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }
|
|
40
|
+
`;
|
|
41
|
+
function injectStyle() {
|
|
42
|
+
const element = document.createElement('style');
|
|
43
|
+
element.dataset.taPackage = 'ta-recall';
|
|
44
|
+
element.textContent = exports.STYLE;
|
|
45
|
+
document.head.appendChild(element);
|
|
46
|
+
return () => element.remove();
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=style.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WebExtensionAPI, WebToolLine } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import type { Words } from './i18n';
|
|
3
|
+
/** How the calls of the tools read in a conversation: Search conversations and for what, Draft a skill and its name. */
|
|
4
|
+
export declare namespace RecallToolLine {
|
|
5
|
+
function renderCall(args: Record<string, unknown>, t: (key: keyof Words) => string): WebToolLine;
|
|
6
|
+
function renderPropose(args: Record<string, unknown>, t: (key: keyof Words) => string): WebToolLine;
|
|
7
|
+
/** On a Ta app built before registerToolRenderer, the calls read as the tool's name. */
|
|
8
|
+
function register(pi: WebExtensionAPI, t: (key: keyof Words) => string): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=tool-line.d.ts.map
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecallToolLine = void 0;
|
|
4
|
+
const recall_protocol_1 = require("./recall-protocol");
|
|
5
|
+
/** How the calls of the tools read in a conversation: Search conversations and for what, Draft a skill and its name. */
|
|
6
|
+
var RecallToolLine;
|
|
7
|
+
(function (RecallToolLine) {
|
|
8
|
+
function renderCall(args, t) {
|
|
9
|
+
return { verb: t('toolSearch'), target: typeof args.query === 'string' ? args.query.trim() : '' };
|
|
10
|
+
}
|
|
11
|
+
RecallToolLine.renderCall = renderCall;
|
|
12
|
+
function renderPropose(args, t) {
|
|
13
|
+
return { verb: t('toolPropose'), target: typeof args.name === 'string' ? args.name.trim() : '' };
|
|
14
|
+
}
|
|
15
|
+
RecallToolLine.renderPropose = renderPropose;
|
|
16
|
+
/** On a Ta app built before registerToolRenderer, the calls read as the tool's name. */
|
|
17
|
+
function register(pi, t) {
|
|
18
|
+
var _a;
|
|
19
|
+
(_a = pi.registerToolRenderer) === null || _a === void 0 ? void 0 : _a.call(pi, (name, next) => name === recall_protocol_1.TOOL_NAME ? { renderCall: args => renderCall(args, t) } : name === recall_protocol_1.PROPOSE_TOOL ? { renderCall: args => renderPropose(args, t) } : next());
|
|
20
|
+
}
|
|
21
|
+
RecallToolLine.register = register;
|
|
22
|
+
})(RecallToolLine || (exports.RecallToolLine = RecallToolLine = {}));
|
|
23
|
+
//# sourceMappingURL=tool-line.js.map
|