@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,614 @@
|
|
|
1
|
+
// web-src/extension.ts
|
|
2
|
+
import { dirname } from "node:path";
|
|
3
|
+
|
|
4
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
5
|
+
var TA_HOST_EVENT = "ta:host";
|
|
6
|
+
var TaHostUtil;
|
|
7
|
+
(function(TaHostUtil2) {
|
|
8
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
9
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
10
|
+
return new Promise((resolve) => {
|
|
11
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
12
|
+
const request = {
|
|
13
|
+
name,
|
|
14
|
+
resolve: (answer) => {
|
|
15
|
+
clearTimeout(timer);
|
|
16
|
+
resolve(answer);
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
events.emit(TA_HOST_EVENT, request);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
TaHostUtil2.reach = reach;
|
|
23
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
24
|
+
|
|
25
|
+
// web-src/conversation-index.ts
|
|
26
|
+
import { readdir, readFile, stat } from "node:fs/promises";
|
|
27
|
+
import { join } from "node:path";
|
|
28
|
+
|
|
29
|
+
// web-src/conversation-util.ts
|
|
30
|
+
var CONTEXT = /^<context>\n?[\s\S]*?\n?<\/context>\n?/;
|
|
31
|
+
var SKILL = /^<skill name="([^"]+)"[^>]*>[\s\S]*?<\/skill>\s*/;
|
|
32
|
+
var IMAGE_NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/gm;
|
|
33
|
+
var TITLE_CHARS = 80;
|
|
34
|
+
var ConversationUtil;
|
|
35
|
+
((ConversationUtil) => {
|
|
36
|
+
function parse(file, content, agentDir) {
|
|
37
|
+
let header;
|
|
38
|
+
let name;
|
|
39
|
+
let group;
|
|
40
|
+
let updatedAt = 0;
|
|
41
|
+
const said = [];
|
|
42
|
+
for (const line of content.split(`
|
|
43
|
+
`)) {
|
|
44
|
+
if (!line || !header && !line.includes('"session"') || line.includes('"role":"toolResult"') || !(line.includes('"message"') || line.includes('"session') || line.includes('"custom"'))) {
|
|
45
|
+
continue;
|
|
46
|
+
}
|
|
47
|
+
let entry;
|
|
48
|
+
try {
|
|
49
|
+
entry = JSON.parse(line);
|
|
50
|
+
} catch {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const at = Date.parse(entry.timestamp ?? "") || 0;
|
|
54
|
+
if (entry.type === "session") {
|
|
55
|
+
header = entry;
|
|
56
|
+
} else if (entry.type === "session_info" && typeof entry.name === "string") {
|
|
57
|
+
name = entry.name.trim() || undefined;
|
|
58
|
+
} else if (entry.type === "custom" && entry.customType === "ta-group" && typeof entry.data?.group === "string") {
|
|
59
|
+
group = entry.data.group;
|
|
60
|
+
} else if (entry.type === "message") {
|
|
61
|
+
const role = entry.message?.role;
|
|
62
|
+
if (role !== "user" && role !== "assistant") {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
const raw = textOf(entry.message?.content);
|
|
66
|
+
const text = role === "user" ? userText(raw) : raw;
|
|
67
|
+
updatedAt = Math.max(updatedAt, at);
|
|
68
|
+
if (text) {
|
|
69
|
+
said.push(role === "user" && CONTEXT.test(raw) ? { role, text, at, framed: true } : { role, text, at });
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (!header) {
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
const createdAt = Date.parse(header.timestamp ?? "") || 0;
|
|
77
|
+
const first = said.find((item) => item.role === "user")?.text.split(`
|
|
78
|
+
`)[0].trim();
|
|
79
|
+
return {
|
|
80
|
+
file,
|
|
81
|
+
cwd: cwdOf(header.cwd ?? "", agentDir),
|
|
82
|
+
title: (name ?? first ?? "").slice(0, TITLE_CHARS),
|
|
83
|
+
createdAt,
|
|
84
|
+
updatedAt: Math.max(updatedAt, createdAt),
|
|
85
|
+
...group ? { group } : {},
|
|
86
|
+
said
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
ConversationUtil.parse = parse;
|
|
90
|
+
function textOf(content) {
|
|
91
|
+
if (typeof content === "string") {
|
|
92
|
+
return content.trim();
|
|
93
|
+
}
|
|
94
|
+
if (!Array.isArray(content)) {
|
|
95
|
+
return "";
|
|
96
|
+
}
|
|
97
|
+
return content.flatMap((part) => part && typeof part === "object" && part.type === "text" && typeof part.text === "string" ? [part.text] : []).join(`
|
|
98
|
+
`).trim();
|
|
99
|
+
}
|
|
100
|
+
ConversationUtil.textOf = textOf;
|
|
101
|
+
function userText(content) {
|
|
102
|
+
const text = textOf(content).replace(CONTEXT, "").replace(IMAGE_NOTE, "");
|
|
103
|
+
const skill = SKILL.exec(text);
|
|
104
|
+
return (skill ? `/skill:${skill[1]} ${text.slice(skill[0].length)}` : text).trim();
|
|
105
|
+
}
|
|
106
|
+
ConversationUtil.userText = userText;
|
|
107
|
+
function cwdOf(cwd, agentDir) {
|
|
108
|
+
const mirror = `${agentDir.replace(/\/+$/, "")}/remote/ssh/`;
|
|
109
|
+
return cwd.startsWith(mirror) ? `ssh://${cwd.slice(mirror.length)}` : cwd;
|
|
110
|
+
}
|
|
111
|
+
ConversationUtil.cwdOf = cwdOf;
|
|
112
|
+
})(ConversationUtil ||= {});
|
|
113
|
+
|
|
114
|
+
// web-src/conversation-index.ts
|
|
115
|
+
class ConversationIndex {
|
|
116
|
+
agentDir;
|
|
117
|
+
kept = new Map;
|
|
118
|
+
reading;
|
|
119
|
+
constructor(agentDir) {
|
|
120
|
+
this.agentDir = agentDir;
|
|
121
|
+
}
|
|
122
|
+
get sessionsDir() {
|
|
123
|
+
return join(this.agentDir, "sessions");
|
|
124
|
+
}
|
|
125
|
+
all() {
|
|
126
|
+
this.reading ??= this.read().finally(() => {
|
|
127
|
+
this.reading = undefined;
|
|
128
|
+
});
|
|
129
|
+
return this.reading;
|
|
130
|
+
}
|
|
131
|
+
async read() {
|
|
132
|
+
const files = await this.files();
|
|
133
|
+
const seen = new Set;
|
|
134
|
+
const conversations = [];
|
|
135
|
+
await Promise.all(files.map(async (file) => {
|
|
136
|
+
seen.add(file);
|
|
137
|
+
const info = await stat(file).catch(() => {
|
|
138
|
+
return;
|
|
139
|
+
});
|
|
140
|
+
if (!info) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
let kept = this.kept.get(file);
|
|
144
|
+
if (!kept || kept.mtimeMs !== info.mtimeMs || kept.size !== info.size) {
|
|
145
|
+
const content = await readFile(file, "utf8").catch(() => {
|
|
146
|
+
return;
|
|
147
|
+
});
|
|
148
|
+
kept = {
|
|
149
|
+
mtimeMs: info.mtimeMs,
|
|
150
|
+
size: info.size,
|
|
151
|
+
conversation: content === undefined ? undefined : ConversationUtil.parse(file, content, this.agentDir)
|
|
152
|
+
};
|
|
153
|
+
this.kept.set(file, kept);
|
|
154
|
+
}
|
|
155
|
+
if (kept.conversation) {
|
|
156
|
+
conversations.push(kept.conversation);
|
|
157
|
+
}
|
|
158
|
+
}));
|
|
159
|
+
for (const file of this.kept.keys()) {
|
|
160
|
+
if (!seen.has(file)) {
|
|
161
|
+
this.kept.delete(file);
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
return conversations.sort((a, b) => b.updatedAt - a.updatedAt);
|
|
165
|
+
}
|
|
166
|
+
async files() {
|
|
167
|
+
const root = this.sessionsDir;
|
|
168
|
+
const dirs = await readdir(root, { withFileTypes: true }).catch(() => []);
|
|
169
|
+
const lists = await Promise.all(dirs.filter((entry) => entry.isDirectory()).map(async (entry) => {
|
|
170
|
+
const names = await readdir(join(root, entry.name)).catch(() => []);
|
|
171
|
+
return names.filter((name) => name.endsWith(".jsonl")).map((name) => join(root, entry.name, name));
|
|
172
|
+
}));
|
|
173
|
+
return lists.flat();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// web-src/recall-protocol.ts
|
|
178
|
+
var NAME = "@celljs/ta-recall";
|
|
179
|
+
var TOOL_NAME = "search_conversations";
|
|
180
|
+
var PROPOSE_TOOL = "propose_skill";
|
|
181
|
+
var SKILL_TYPE = "ta-recall-skill";
|
|
182
|
+
var SKILL_BLOCK = "ta-skill";
|
|
183
|
+
var Keys;
|
|
184
|
+
((Keys) => {
|
|
185
|
+
Keys.SUGGEST = "suggest";
|
|
186
|
+
Keys.BRIEF = "brief";
|
|
187
|
+
Keys.BRIEF_FILE = "briefFile";
|
|
188
|
+
Keys.BRIEF_LAST = "briefLast";
|
|
189
|
+
Keys.ASKED = "asked";
|
|
190
|
+
Keys.BRIEF_SUMMARY = "briefSummary";
|
|
191
|
+
Keys.BRIEF_SEEN = "briefSeen";
|
|
192
|
+
Keys.BRIEF_PINNED = "briefPinned";
|
|
193
|
+
Keys.BRIEF_HANDLED = "briefHandled";
|
|
194
|
+
Keys.DECIDED = "decided";
|
|
195
|
+
Keys.DECLINED = "declined";
|
|
196
|
+
})(Keys ||= {});
|
|
197
|
+
var Limits;
|
|
198
|
+
((Limits) => {
|
|
199
|
+
Limits.SEARCH_DAYS = 30;
|
|
200
|
+
Limits.SEARCH_HITS = 8;
|
|
201
|
+
Limits.SNIPPETS = 3;
|
|
202
|
+
Limits.SNIPPET_CHARS = 240;
|
|
203
|
+
Limits.SIMILAR_DAYS = 60;
|
|
204
|
+
Limits.SIMILAR_MIN_CHARS = 16;
|
|
205
|
+
Limits.SIMILAR_SCORE = 0.5;
|
|
206
|
+
Limits.DECLINED_KEPT = 100;
|
|
207
|
+
Limits.ASKED_KEPT = 200;
|
|
208
|
+
Limits.BRIEF_CONVERSATIONS = 30;
|
|
209
|
+
Limits.BRIEF_ITEMS = 5;
|
|
210
|
+
Limits.ASKED_ARCHIVE_DAYS = 7;
|
|
211
|
+
})(Limits ||= {});
|
|
212
|
+
|
|
213
|
+
// web-src/search-util.ts
|
|
214
|
+
var DAY_MS = 24 * 60 * 60000;
|
|
215
|
+
var PAIRS_CHARS = 1000;
|
|
216
|
+
var SearchUtil;
|
|
217
|
+
((SearchUtil) => {
|
|
218
|
+
function terms(query) {
|
|
219
|
+
return [
|
|
220
|
+
...new Set(query.toLowerCase().split(/[\s,,、|]+/).filter((term) => term.length > 0))
|
|
221
|
+
].slice(0, 12);
|
|
222
|
+
}
|
|
223
|
+
SearchUtil.terms = terms;
|
|
224
|
+
function search(conversations, query, now = Date.now()) {
|
|
225
|
+
const words = terms(query.query);
|
|
226
|
+
if (words.length === 0) {
|
|
227
|
+
return [];
|
|
228
|
+
}
|
|
229
|
+
const since = now - (query.days ?? Limits.SEARCH_DAYS) * DAY_MS;
|
|
230
|
+
const hits = [];
|
|
231
|
+
for (const conversation of conversations) {
|
|
232
|
+
if (conversation.updatedAt < since || conversation.file === query.exclude || query.cwd && conversation.cwd !== query.cwd) {
|
|
233
|
+
continue;
|
|
234
|
+
}
|
|
235
|
+
const found = new Set;
|
|
236
|
+
const places = [];
|
|
237
|
+
const title = conversation.title.toLowerCase();
|
|
238
|
+
for (const word of words) {
|
|
239
|
+
if (title.includes(word)) {
|
|
240
|
+
found.add(word);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
for (const said of conversation.said) {
|
|
244
|
+
const text = said.text.toLowerCase();
|
|
245
|
+
const has = words.filter((word) => text.includes(word));
|
|
246
|
+
if (has.length === 0 || query.all && has.length < words.length) {
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
for (const word of has) {
|
|
250
|
+
found.add(word);
|
|
251
|
+
}
|
|
252
|
+
places.push({ said, word: has[0] });
|
|
253
|
+
}
|
|
254
|
+
if (places.length === 0 && !(query.all ? words.every((word) => found.has(word)) : found.size > 0)) {
|
|
255
|
+
continue;
|
|
256
|
+
}
|
|
257
|
+
hits.push({
|
|
258
|
+
file: conversation.file,
|
|
259
|
+
cwd: conversation.cwd,
|
|
260
|
+
title: conversation.title,
|
|
261
|
+
updatedAt: conversation.updatedAt,
|
|
262
|
+
matched: found.size,
|
|
263
|
+
places: places.length,
|
|
264
|
+
snippets: places.slice(-Limits.SNIPPETS).map((place) => ({ role: place.said.role, at: place.said.at, text: snippet(place.said.text, place.word) }))
|
|
265
|
+
});
|
|
266
|
+
}
|
|
267
|
+
return hits.sort((a, b) => b.matched - a.matched || Math.min(b.places, 5) - Math.min(a.places, 5) || b.updatedAt - a.updatedAt).slice(0, query.limit ?? Limits.SEARCH_HITS).map(({ places: _, ...hit }) => hit);
|
|
268
|
+
}
|
|
269
|
+
SearchUtil.search = search;
|
|
270
|
+
function snippet(text, word, chars = Limits.SNIPPET_CHARS) {
|
|
271
|
+
const line = text.replace(/\s+/g, " ").trim();
|
|
272
|
+
if (line.length <= chars) {
|
|
273
|
+
return line;
|
|
274
|
+
}
|
|
275
|
+
const at = Math.max(0, line.toLowerCase().indexOf(word));
|
|
276
|
+
const start = Math.max(0, Math.min(at - Math.floor(chars / 3), line.length - chars));
|
|
277
|
+
return `${start > 0 ? "…" : ""}${line.slice(start, start + chars).trim()}${start + chars < line.length ? "…" : ""}`;
|
|
278
|
+
}
|
|
279
|
+
SearchUtil.snippet = snippet;
|
|
280
|
+
})(SearchUtil ||= {});
|
|
281
|
+
var SimilarUtil;
|
|
282
|
+
((SimilarUtil) => {
|
|
283
|
+
function pairs(text) {
|
|
284
|
+
const flat = text.slice(0, PAIRS_CHARS).toLowerCase().replace(/[\s\p{P}\p{S}]+/gu, "");
|
|
285
|
+
const counts = new Map;
|
|
286
|
+
for (let index = 0;index < flat.length - 1; index++) {
|
|
287
|
+
const pair = flat.slice(index, index + 2);
|
|
288
|
+
counts.set(pair, (counts.get(pair) ?? 0) + 1);
|
|
289
|
+
}
|
|
290
|
+
return counts;
|
|
291
|
+
}
|
|
292
|
+
SimilarUtil.pairs = pairs;
|
|
293
|
+
function dice(a, b) {
|
|
294
|
+
let size = 0;
|
|
295
|
+
let shared = 0;
|
|
296
|
+
for (const count of a.values()) {
|
|
297
|
+
size += count;
|
|
298
|
+
}
|
|
299
|
+
for (const [pair, count] of b) {
|
|
300
|
+
size += count;
|
|
301
|
+
shared += Math.min(count, a.get(pair) ?? 0);
|
|
302
|
+
}
|
|
303
|
+
return size === 0 ? 0 : 2 * shared / size;
|
|
304
|
+
}
|
|
305
|
+
SimilarUtil.dice = dice;
|
|
306
|
+
function comparable(text) {
|
|
307
|
+
const trimmed = text.trim();
|
|
308
|
+
return trimmed.length >= Limits.SIMILAR_MIN_CHARS && !trimmed.startsWith("/");
|
|
309
|
+
}
|
|
310
|
+
SimilarUtil.comparable = comparable;
|
|
311
|
+
function find(text, conversations, options = {}) {
|
|
312
|
+
if (!comparable(text)) {
|
|
313
|
+
return [];
|
|
314
|
+
}
|
|
315
|
+
const mine = pairs(text);
|
|
316
|
+
if ((options.declined ?? []).some((declined) => dice(mine, pairs(declined)) >= Limits.SIMILAR_SCORE)) {
|
|
317
|
+
return [];
|
|
318
|
+
}
|
|
319
|
+
const since = (options.now ?? Date.now()) - Limits.SIMILAR_DAYS * DAY_MS;
|
|
320
|
+
const exclude = new Set(options.exclude ?? []);
|
|
321
|
+
const found = [];
|
|
322
|
+
for (const conversation of conversations) {
|
|
323
|
+
if (conversation.group || exclude.has(conversation.file) || conversation.updatedAt < since) {
|
|
324
|
+
continue;
|
|
325
|
+
}
|
|
326
|
+
let best;
|
|
327
|
+
for (const said of conversation.said) {
|
|
328
|
+
if (said.role !== "user" || said.framed || said.at < since || !comparable(said.text)) {
|
|
329
|
+
continue;
|
|
330
|
+
}
|
|
331
|
+
const score = dice(mine, pairs(said.text));
|
|
332
|
+
if (score >= Limits.SIMILAR_SCORE && (!best || score > best.score)) {
|
|
333
|
+
best = { file: conversation.file, title: conversation.title, text: said.text, at: said.at, score };
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
if (best) {
|
|
337
|
+
found.push(best);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
return found.sort((a, b) => b.score - a.score).slice(0, 3).map(({ score: _, ...ask }) => ask);
|
|
341
|
+
}
|
|
342
|
+
SimilarUtil.find = find;
|
|
343
|
+
})(SimilarUtil ||= {});
|
|
344
|
+
|
|
345
|
+
// web-src/skill-util.ts
|
|
346
|
+
var FENCE = "```";
|
|
347
|
+
var NAME_CHARS = 64;
|
|
348
|
+
var DESCRIPTION_CHARS = 1024;
|
|
349
|
+
var SkillUtil;
|
|
350
|
+
((SkillUtil) => {
|
|
351
|
+
function find(text) {
|
|
352
|
+
const lines = text.split(/\r?\n/);
|
|
353
|
+
let found;
|
|
354
|
+
for (let index = 0;index < lines.length; index++) {
|
|
355
|
+
const open = /^\s*(`{3,})\s*([\w-]+)\s*$/.exec(lines[index]);
|
|
356
|
+
if (open?.[2] !== SKILL_BLOCK) {
|
|
357
|
+
continue;
|
|
358
|
+
}
|
|
359
|
+
const close = new RegExp(`^\\s*${open[1]}\`*\\s*$`);
|
|
360
|
+
const end = lines.findIndex((line, at) => at > index && close.test(line));
|
|
361
|
+
found = lines.slice(index + 1, end < 0 ? lines.length : end);
|
|
362
|
+
index = end < 0 ? lines.length : end;
|
|
363
|
+
}
|
|
364
|
+
return found && parse(found);
|
|
365
|
+
}
|
|
366
|
+
SkillUtil.find = find;
|
|
367
|
+
function parse(lines) {
|
|
368
|
+
const rule = lines.findIndex((line) => line.trim() === "---");
|
|
369
|
+
const head = rule < 0 ? [] : lines.slice(0, rule);
|
|
370
|
+
const body = lines.slice(rule + 1).join(`
|
|
371
|
+
`).trim();
|
|
372
|
+
if (!body) {
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
const field = (key) => head.map((line) => new RegExp(`^\\s*${key}\\s*:\\s*(.*)$`, "i").exec(line)?.[1].trim().replace(/^["'](.*)["']$/, "$1")).find((value) => value !== undefined);
|
|
376
|
+
const description = (field("description") ?? "").replace(/\s+/g, " ").slice(0, DESCRIPTION_CHARS);
|
|
377
|
+
return { name: name(field("name") ?? "") || name(description) || "skill", description, body };
|
|
378
|
+
}
|
|
379
|
+
function name(text) {
|
|
380
|
+
return text.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, NAME_CHARS).replace(/-+$/, "");
|
|
381
|
+
}
|
|
382
|
+
SkillUtil.name = name;
|
|
383
|
+
function check(draft) {
|
|
384
|
+
const body = typeof draft?.body === "string" ? draft.body.trim() : "";
|
|
385
|
+
if (!body) {
|
|
386
|
+
throw new Error("A skill needs a body.");
|
|
387
|
+
}
|
|
388
|
+
const description = (typeof draft.description === "string" ? draft.description : "").replace(/\s+/g, " ").trim().slice(0, DESCRIPTION_CHARS);
|
|
389
|
+
return { name: name(typeof draft.name === "string" ? draft.name : "") || "skill", description: description || body.split(`
|
|
390
|
+
`)[0].slice(0, 200), body };
|
|
391
|
+
}
|
|
392
|
+
SkillUtil.check = check;
|
|
393
|
+
function markdown(draft) {
|
|
394
|
+
return `---
|
|
395
|
+
name: ${draft.name}
|
|
396
|
+
description: ${JSON.stringify(draft.description)}
|
|
397
|
+
---
|
|
398
|
+
|
|
399
|
+
${draft.body.trim()}
|
|
400
|
+
`;
|
|
401
|
+
}
|
|
402
|
+
SkillUtil.markdown = markdown;
|
|
403
|
+
function blockHelp() {
|
|
404
|
+
return [
|
|
405
|
+
`${FENCE}${SKILL_BLOCK}`,
|
|
406
|
+
"name: <lowercase-words-with-dashes>",
|
|
407
|
+
"description: <one line: what it does and when to use it>",
|
|
408
|
+
"---",
|
|
409
|
+
"<the body: the goal, then the steps, commands, files and checks that worked, in general terms, without what held only this once>",
|
|
410
|
+
FENCE,
|
|
411
|
+
"Use a longer fence when the body has fences of its own. Write it in the language of the user."
|
|
412
|
+
].join(`
|
|
413
|
+
`);
|
|
414
|
+
}
|
|
415
|
+
SkillUtil.blockHelp = blockHelp;
|
|
416
|
+
function hint(asks) {
|
|
417
|
+
const lines = asks.map((ask2) => `- "${ask2.title}" (${new Date(ask2.at).toISOString().slice(0, 10)}): ${JSON.stringify(ask2.text.replace(/\s+/g, " ").slice(0, 200))}`);
|
|
418
|
+
return [
|
|
419
|
+
"The user asked for much the same in other conversations before:",
|
|
420
|
+
...lines,
|
|
421
|
+
`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 ${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 ${SKILL_BLOCK} instead:`,
|
|
422
|
+
blockHelp(),
|
|
423
|
+
"Offer nothing when it is not worth keeping."
|
|
424
|
+
].join(`
|
|
425
|
+
`);
|
|
426
|
+
}
|
|
427
|
+
SkillUtil.hint = hint;
|
|
428
|
+
function ask(language) {
|
|
429
|
+
const context = [
|
|
430
|
+
"[ta-recall:skill]",
|
|
431
|
+
"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.",
|
|
432
|
+
"- 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.",
|
|
433
|
+
`- Draft it with ${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 ${SKILL_BLOCK}:`,
|
|
434
|
+
blockHelp(),
|
|
435
|
+
"- When the conversation holds no way of working worth keeping, say so and draft nothing."
|
|
436
|
+
].join(`
|
|
437
|
+
`);
|
|
438
|
+
return `<context>
|
|
439
|
+
${context}
|
|
440
|
+
</context>
|
|
441
|
+
${/^zh/i.test(language) ? "把这个对话里的做法存成技能" : "Keep how this was done as a skill"}`;
|
|
442
|
+
}
|
|
443
|
+
SkillUtil.ask = ask;
|
|
444
|
+
})(SkillUtil ||= {});
|
|
445
|
+
|
|
446
|
+
// web-src/tool.ts
|
|
447
|
+
var RecallTool;
|
|
448
|
+
((RecallTool) => {
|
|
449
|
+
RecallTool.NAME = TOOL_NAME;
|
|
450
|
+
RecallTool.DEFINITION = {
|
|
451
|
+
name: RecallTool.NAME,
|
|
452
|
+
label: "Search conversations",
|
|
453
|
+
description: "Searches the user's earlier conversations with Ta, in every directory: what they asked, what was answered, done and decided. Returns the conversations with the most of the words, newest first among equals, each with its title, directory, date, session file and a few places. A session file is JSON lines that read can open for more.",
|
|
454
|
+
promptSnippet: "Search the user's earlier conversations with Ta (what was asked, done and decided)",
|
|
455
|
+
promptGuidelines: [
|
|
456
|
+
"When the user asks about earlier work (how something was fixed, what was decided, where it was left), search the conversations with search_conversations, and git history when it is code, before answering; link the conversations you use as [title](session file)."
|
|
457
|
+
],
|
|
458
|
+
parameters: {
|
|
459
|
+
type: "object",
|
|
460
|
+
properties: {
|
|
461
|
+
query: {
|
|
462
|
+
type: "string",
|
|
463
|
+
description: "Words separated by spaces, a conversation having more of them first: names, errors, files, and the same thing in the other language the user may have used (relay 重连 reconnect)."
|
|
464
|
+
},
|
|
465
|
+
days: { type: "number", description: `How many days back; default ${Limits.SEARCH_DAYS}.` },
|
|
466
|
+
here: { type: "boolean", description: "Only the conversations of this directory." }
|
|
467
|
+
},
|
|
468
|
+
required: ["query"]
|
|
469
|
+
}
|
|
470
|
+
};
|
|
471
|
+
function result(hits, days) {
|
|
472
|
+
if (hits.length === 0) {
|
|
473
|
+
return `No conversation of the last ${days} days has these words. Try other words, the other language, more days, or git log -S.`;
|
|
474
|
+
}
|
|
475
|
+
const lines = hits.map((hit, index) => {
|
|
476
|
+
const places = hit.snippets.map((place) => ` - ${place.role === "user" ? "user" : "Ta"}, ${date(place.at)}: ${place.text}`);
|
|
477
|
+
return [`${index + 1}. [${hit.title || "Untitled"}](${hit.file}) · ${hit.cwd} · ${date(hit.updatedAt)}`, ...places].join(`
|
|
478
|
+
`);
|
|
479
|
+
});
|
|
480
|
+
return [...lines, "", "Read a session file for more. Link the conversations you use as [title](session file)."].join(`
|
|
481
|
+
`);
|
|
482
|
+
}
|
|
483
|
+
RecallTool.result = result;
|
|
484
|
+
function date(at) {
|
|
485
|
+
return at ? new Date(at).toISOString().slice(0, 16).replace("T", " ") : "";
|
|
486
|
+
}
|
|
487
|
+
})(RecallTool ||= {});
|
|
488
|
+
var ProposeTool;
|
|
489
|
+
((ProposeTool) => {
|
|
490
|
+
ProposeTool.NAME = PROPOSE_TOOL;
|
|
491
|
+
ProposeTool.DEFINITION = {
|
|
492
|
+
name: ProposeTool.NAME,
|
|
493
|
+
label: "Propose skill",
|
|
494
|
+
description: "Offers the user to keep a way of working as a skill of Ta, which Ta loads in every new conversation. The draft shows in this conversation as a card once your turn ends, with Save and No thanks; nothing is written until the user saves it. Write it so that one who never saw this conversation does it the same way.",
|
|
495
|
+
promptSnippet: "Offer to keep a way of working as a skill the user saves from a card",
|
|
496
|
+
promptGuidelines: ["When the user asks to keep how something is done as a skill, draft it with propose_skill rather than writing a SKILL.md yourself."],
|
|
497
|
+
parameters: {
|
|
498
|
+
type: "object",
|
|
499
|
+
properties: {
|
|
500
|
+
name: { type: "string", description: "Lowercase words with dashes, as weekly-deps-upgrade." },
|
|
501
|
+
description: { type: "string", description: "One line in the language of the user: what it does and when to use it." },
|
|
502
|
+
body: {
|
|
503
|
+
type: "string",
|
|
504
|
+
description: "Markdown in the language of the user: the goal, then the steps, commands, files, checks and pitfalls that worked, in general terms, without what held only this once."
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
required: ["name", "description", "body"]
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
ProposeTool.RESULT = "The draft shows as a card when your turn ends; the user saves it or not. Say in one short sentence what the skill does, and end your turn.";
|
|
511
|
+
})(ProposeTool ||= {});
|
|
512
|
+
|
|
513
|
+
// web-src/extension.ts
|
|
514
|
+
var BRIEF_MARK = "[ta-recall:brief]";
|
|
515
|
+
var REPEAT_SECTION = "ta-recall-repeat";
|
|
516
|
+
function activate(pi) {
|
|
517
|
+
let reached;
|
|
518
|
+
const reach = () => reached ??= TaHostUtil.reach(pi.events, NAME).then((answer) => answer && { service: answer.service, agentDir: answer.host.agentDir });
|
|
519
|
+
let local;
|
|
520
|
+
let asked;
|
|
521
|
+
let draft;
|
|
522
|
+
let briefing = false;
|
|
523
|
+
pi.on("session_start", () => {
|
|
524
|
+
reach();
|
|
525
|
+
});
|
|
526
|
+
pi.on("before_agent_start", async (event, ctx) => {
|
|
527
|
+
asked = undefined;
|
|
528
|
+
draft = undefined;
|
|
529
|
+
briefing = false;
|
|
530
|
+
if (event.messageType === "custom" || typeof event.prompt !== "string") {
|
|
531
|
+
return;
|
|
532
|
+
}
|
|
533
|
+
if (event.prompt.includes(BRIEF_MARK)) {
|
|
534
|
+
briefing = true;
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
const text = ConversationUtil.userText(event.prompt);
|
|
538
|
+
asked = text;
|
|
539
|
+
try {
|
|
540
|
+
const similar = await (await reach())?.service?.similar(text, ctx.sessionManager.getSessionId()) ?? [];
|
|
541
|
+
if (similar.length) {
|
|
542
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [REPEAT_SECTION]: SkillUtil.hint(similar) };
|
|
543
|
+
}
|
|
544
|
+
return;
|
|
545
|
+
} catch (error) {
|
|
546
|
+
console.error("ta-recall could not compare the request:", error);
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
pi.on("context", (event) => {
|
|
551
|
+
const messages = event.messages.filter((message) => !(message.role === "custom" && message.customType === SKILL_TYPE));
|
|
552
|
+
return messages.length === event.messages.length ? undefined : { messages };
|
|
553
|
+
});
|
|
554
|
+
pi.on("agent_end", (event, ctx) => {
|
|
555
|
+
const answer = [...event.messages ?? []].reverse().find((message) => message.role === "assistant");
|
|
556
|
+
const found = answer && answer.stopReason !== "aborted" ? SkillUtil.find(ConversationUtil.textOf(answer.content)) : undefined;
|
|
557
|
+
const file = ctx.sessionManager.getSessionFile();
|
|
558
|
+
if (briefing && answer && answer.stopReason !== "aborted" && file) {
|
|
559
|
+
const text = ConversationUtil.textOf(answer.content);
|
|
560
|
+
reach().then((reached2) => reached2?.service?.keepBrief(file, text)).catch((error) => console.error("ta-recall could not keep the brief:", error));
|
|
561
|
+
}
|
|
562
|
+
if (found && !draft) {
|
|
563
|
+
draft = { key: `${ctx.sessionManager.getSessionId()}:${Date.now()}`, draft: found, ...asked ? { ask: asked } : {} };
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
pi.on("agent_settled", (event) => {
|
|
567
|
+
const card = draft;
|
|
568
|
+
draft = undefined;
|
|
569
|
+
if (card && !event.aborted) {
|
|
570
|
+
pi.sendMessage({ customType: SKILL_TYPE, content: card.draft.name, display: true, details: card }, { triggerTurn: false });
|
|
571
|
+
}
|
|
572
|
+
});
|
|
573
|
+
const search = async (query, ctx) => {
|
|
574
|
+
const answer = await reach();
|
|
575
|
+
if (answer?.service) {
|
|
576
|
+
return answer.service.search(query);
|
|
577
|
+
}
|
|
578
|
+
const file = ctx.sessionManager.getSessionFile();
|
|
579
|
+
if (!file) {
|
|
580
|
+
throw new Error("This session keeps no file, so the conversations of before are not known here.");
|
|
581
|
+
}
|
|
582
|
+
local ??= new ConversationIndex(dirname(dirname(dirname(file))));
|
|
583
|
+
return SearchUtil.search(await local.all(), query);
|
|
584
|
+
};
|
|
585
|
+
pi.registerTool({
|
|
586
|
+
...ProposeTool.DEFINITION,
|
|
587
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
588
|
+
const checked = SkillUtil.check({
|
|
589
|
+
name: String(params?.name ?? ""),
|
|
590
|
+
description: String(params?.description ?? ""),
|
|
591
|
+
body: typeof params?.body === "string" ? params.body : ""
|
|
592
|
+
});
|
|
593
|
+
draft = { key: `${ctx.sessionManager.getSessionId()}:${Date.now()}`, draft: checked, ...asked ? { ask: asked } : {} };
|
|
594
|
+
return { content: [{ type: "text", text: ProposeTool.RESULT }], details: { name: checked.name } };
|
|
595
|
+
}
|
|
596
|
+
});
|
|
597
|
+
pi.registerTool({
|
|
598
|
+
...RecallTool.DEFINITION,
|
|
599
|
+
execute: async (_id, params, _signal, _update, ctx) => {
|
|
600
|
+
const query = typeof params?.query === "string" ? params.query.trim() : "";
|
|
601
|
+
if (!query) {
|
|
602
|
+
throw new Error("Say what to search for in query: words separated by spaces.");
|
|
603
|
+
}
|
|
604
|
+
const days = typeof params.days === "number" && params.days > 0 ? Math.min(Math.round(params.days), 3650) : Limits.SEARCH_DAYS;
|
|
605
|
+
const agentDir = (await reach())?.agentDir;
|
|
606
|
+
const cwd = params.here === true ? agentDir ? ConversationUtil.cwdOf(ctx.cwd, agentDir) : ctx.cwd : undefined;
|
|
607
|
+
const hits = await search({ query, days, cwd, exclude: ctx.sessionManager.getSessionFile() }, ctx);
|
|
608
|
+
return { content: [{ type: "text", text: RecallTool.result(hits, days) }], details: { count: hits.length } };
|
|
609
|
+
}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
export {
|
|
613
|
+
activate as default
|
|
614
|
+
};
|