@celljs/ta 4.9.1 → 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 +1753 -75
- package/dist/gateway.mjs +311 -25
- package/dist/pi/CHANGELOG.md +30 -0
- package/dist/pi/dist/bundle/chunks/anthropic-messages-CA3HHOL3.js +6 -0
- package/dist/pi/dist/bundle/chunks/{azure-openai-responses-FSC6BAW3.js → azure-openai-responses-76TWS6DT.js} +1 -1
- package/dist/pi/dist/bundle/chunks/bedrock-converse-stream.js +3 -3
- package/dist/pi/dist/bundle/chunks/chunk-4KSTFUIK.js +19 -0
- package/dist/pi/dist/bundle/chunks/chunk-4UNPP53I.js +55 -0
- package/dist/pi/dist/bundle/chunks/chunk-AUUCDC7R.js +4 -0
- package/dist/pi/dist/bundle/chunks/{chunk-V6KH5QG4.js → chunk-BAC3QPNW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-4EYXVSA5.js → chunk-FF6XOTWB.js} +9 -9
- package/dist/pi/dist/bundle/chunks/chunk-FMPAMX2W.js +82 -0
- package/dist/pi/dist/bundle/chunks/chunk-GFUN2N5K.js +2 -0
- package/dist/pi/dist/bundle/chunks/chunk-IEBK4HQA.js +2 -0
- package/dist/pi/dist/bundle/chunks/{chunk-C2WU32PX.js → chunk-IQUU5XIT.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-EBFHJFEE.js → chunk-LQLJ7CDW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-MMDXLZVS.js +30 -0
- package/dist/pi/dist/bundle/chunks/{chunk-GN3QYODH.js → chunk-QN4TOIZN.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-RKNK4Y6L.js +2 -0
- package/dist/pi/dist/bundle/chunks/{chunk-B46VJEHW.js → chunk-V7SLUK6A.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-VEJDBY3O.js +1237 -0
- package/dist/pi/dist/bundle/chunks/chunk-VKJQ6CME.js +8 -0
- package/dist/pi/dist/bundle/chunks/{chunk-3TGLJEWK.js → chunk-WL4TUXY7.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{chunk-YZKQS34S.js → chunk-Y55SJART.js} +5 -1
- package/dist/pi/dist/bundle/chunks/{chunk-EOO47QGR.js → chunk-ZBIZYD6W.js} +1 -1
- package/dist/pi/dist/bundle/chunks/chunk-ZG74NES2.js +2 -0
- package/dist/pi/dist/bundle/chunks/chunk-ZGYS4UTC.js +2 -0
- package/dist/pi/dist/bundle/chunks/{cli-MCOUW5WS.js → cli-7RHMDOHL.js} +7 -7
- package/dist/pi/dist/bundle/chunks/{cloudflare-workers-ai-system-one-WLAFJSP6.js → cloudflare-workers-ai-system-one-U4J7D646.js} +1 -1
- package/dist/pi/dist/bundle/chunks/codemode-worker.js +2 -0
- package/dist/pi/dist/bundle/chunks/{easter-egg-3d-WMBNSJ4M.js → easter-egg-3d-GEVPKQF6.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{execute-4CEBORGZ.js → execute-L2EEDV3L.js} +5 -3
- package/dist/pi/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/pi/dist/bundle/chunks/{google-generative-ai-INGKNW72.js → google-generative-ai-D5B6W47J.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{google-vertex-IBTX6MBF.js → google-vertex-U4H5YDEW.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{llama-cpp-classify-V5U3QKXI.js → llama-cpp-classify-EJXCQRUQ.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{mistral-conversations-S4OWXIXQ.js → mistral-conversations-S277EKLB.js} +1 -1
- package/dist/pi/dist/bundle/chunks/openai-codex-responses-TEQRB65N.js +10 -0
- package/dist/pi/dist/bundle/chunks/{openai-completions-EJNYB6IX.js → openai-completions-HRZOSLBO.js} +3 -3
- package/dist/pi/dist/bundle/chunks/{openai-decisions-IXI34BYG.js → openai-decisions-F66BDLOM.js} +1 -1
- package/dist/pi/dist/bundle/chunks/openai-responses-BAKFWTGE.js +4 -0
- package/dist/pi/dist/bundle/chunks/{openrouter-images-PISKSFMS.js → openrouter-images-VXF5TVIK.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{pi-messages-NORUKF4E.js → pi-messages-UBJKNDRN.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{runtime-FQB7RU7U.js → runtime-J5ZSBGTX.js} +1 -1
- package/dist/pi/dist/bundle/chunks/{typesafe-system-one-CHVC2UUI.js → typesafe-system-one-56TEMIHL.js} +1 -1
- package/dist/pi/dist/bundle/chunks/virtual-modules-KITQRTYM.js +2 -0
- package/dist/pi/dist/bundle/cli-runtime.js +1 -1
- package/dist/pi/dist/bundle/index.js +1 -1
- package/dist/pi/dist/bundle/rpc-entry.js +1 -1
- package/dist/pi/docs/cli.md +14 -1
- package/dist/pi/docs/extensions.md +27 -7
- package/dist/pi/docs/keybindings.md +1 -1
- package/dist/pi/docs/llama-cpp.md +5 -8
- package/dist/pi/docs/models-configuration.md +6 -1
- package/dist/pi/docs/models.md +2 -1
- package/dist/pi/docs/prompt-templates.md +1 -1
- package/dist/pi/docs/providers.md +1 -1
- package/dist/pi/docs/rpc.md +4 -2
- package/dist/pi/docs/sessions.md +7 -1
- package/dist/pi/docs/settings.md +1 -1
- package/dist/pi/docs/tui.md +1 -1
- package/dist/pi/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
- package/dist/pi/examples/extensions/custom-provider-anthropic/package.json +1 -1
- package/dist/pi/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
- package/dist/pi/examples/extensions/gondolin/package-lock.json +2 -2
- package/dist/pi/examples/extensions/gondolin/package.json +1 -1
- package/dist/pi/examples/extensions/plan-mode/index.ts +23 -13
- package/dist/pi/examples/extensions/plan-mode/utils.ts +42 -16
- package/dist/pi/examples/extensions/subagent/README.md +14 -11
- package/dist/pi/examples/extensions/subagent/index.ts +392 -171
- package/dist/pi/examples/extensions/with-deps/package-lock.json +2 -2
- package/dist/pi/examples/extensions/with-deps/package.json +1 -1
- package/dist/pi/examples/tsconfig.json +63 -35
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +185 -140
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +30 -10
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +4 -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 +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/lib/extension.js +15 -1
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/texts.js +4 -0
- package/dist/pi/packages/ta-agents/package.json +3 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +31 -253
- package/dist/pi/packages/ta-bots/host/index.mjs +189 -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 +6 -5
- package/dist/pi/packages/ta-channels/README.md +6 -5
- package/dist/pi/packages/ta-channels/extension/index.mjs +350 -28
- package/dist/pi/packages/ta-channels/host/index.mjs +638 -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 +14 -4
- 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 +7 -1
- 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 +49 -8
- package/dist/pi/packages/ta-channels/lib/i18n.js +98 -16
- 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/more-menu.d.ts +3 -2
- package/dist/pi/packages/ta-channels/lib/more-menu.js +21 -29
- 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 +26 -10
- package/dist/pi/packages/ta-channels/lib/sidebar.d.ts +1 -6
- package/dist/pi/packages/ta-channels/lib/sidebar.js +257 -84
- package/dist/pi/packages/ta-channels/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-channels/lib/style.js +151 -40
- package/dist/pi/packages/ta-channels/lib/tasks.js +3 -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 +54 -1
- package/dist/pi/packages/ta-channels/lib/views.js +129 -1
- package/dist/pi/packages/ta-channels/package.json +2 -1
- package/dist/pi/packages/ta-channels/web/index.js +1792 -439
- package/dist/pi/packages/ta-computer-use/package.json +7 -2
- package/dist/pi/packages/ta-cron/README.en.md +6 -4
- package/dist/pi/packages/ta-cron/README.md +6 -4
- package/dist/pi/packages/ta-cron/extension/index.mjs +416 -44
- package/dist/pi/packages/ta-cron/host/index.mjs +30 -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 +65 -30
- 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 +30 -1
- package/dist/pi/packages/ta-cron/lib/i18n.js +60 -2
- package/dist/pi/packages/ta-cron/lib/index.js +4 -0
- package/dist/pi/packages/ta-cron/lib/page.d.ts +38 -4
- package/dist/pi/packages/ta-cron/lib/page.js +131 -4
- 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 +168 -50
- package/dist/pi/packages/ta-cron/lib/task-extension.d.ts +15 -0
- package/dist/pi/packages/ta-cron/lib/task-extension.js +56 -0
- package/dist/pi/packages/ta-cron/lib/task-util.d.ts +4 -0
- package/dist/pi/packages/ta-cron/lib/task-util.js +31 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.d.ts +4 -1
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +107 -67
- 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 +1346 -415
- package/dist/pi/packages/ta-extensions/README.en.md +4 -2
- package/dist/pi/packages/ta-extensions/README.md +4 -2
- 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 +16 -5
- package/dist/pi/packages/ta-extensions/lib/composer.d.ts +17 -0
- package/dist/pi/packages/ta-extensions/lib/composer.js +84 -0
- 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/i18n.d.ts +9 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +18 -0
- package/dist/pi/packages/ta-extensions/lib/index.js +4 -0
- package/dist/pi/packages/ta-extensions/lib/make-model.d.ts +20 -0
- package/dist/pi/packages/ta-extensions/lib/make-model.js +43 -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 +52 -23
- 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/settings.d.ts +4 -0
- package/dist/pi/packages/ta-extensions/lib/settings.js +44 -0
- package/dist/pi/packages/ta-extensions/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-extensions/lib/style.js +13 -6
- package/dist/pi/packages/ta-extensions/package.json +6 -1
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +25 -10
- package/dist/pi/packages/ta-extensions/web/index.js +459 -47
- 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 +2 -2
- package/dist/pi/packages/ta-workspace/README.zh-cn.md +2 -2
- 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/bytes.d.ts +11 -0
- package/dist/pi/packages/ta-workspace/lib/bytes.js +40 -0
- package/dist/pi/packages/ta-workspace/lib/common.d.ts +2 -1
- package/dist/pi/packages/ta-workspace/lib/common.js +15 -37
- package/dist/pi/packages/ta-workspace/lib/editors.js +40 -4
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +14 -4
- package/dist/pi/packages/ta-workspace/lib/i18n.js +31 -11
- package/dist/pi/packages/ta-workspace/lib/index.js +17 -0
- package/dist/pi/packages/ta-workspace/lib/launcher.d.ts +9 -0
- package/dist/pi/packages/ta-workspace/lib/launcher.js +39 -0
- package/dist/pi/packages/ta-workspace/lib/preview.d.ts +22 -3
- package/dist/pi/packages/ta-workspace/lib/preview.js +150 -22
- package/dist/pi/packages/ta-workspace/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +70 -41
- 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/keys.d.ts +18 -0
- package/dist/pi/packages/ta-workspace/lib/util/keys.js +23 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.d.ts +46 -0
- package/dist/pi/packages/ta-workspace/lib/util/preview.js +106 -1
- 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 +1032 -382
- package/dist/public/assets/OrbitControls-DVf70a7w.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-EVMX_yOb.js → abnfDiagram-S7VZAUFO-D9uU0Tx2.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-CDgbgZ_o.js → architecture-WOLXFQ4H-f7Nm7EIo.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-dHreaCWz.js → architectureDiagram-YGSQEFNW-DSAqlcms.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-D6FhzBDq.js → blockDiagram-APKKGZFW-C0lPIW9g.js} +1 -1
- package/dist/public/assets/browser-WLpgVYno.js +12 -0
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-BFpcr8Cs.js → c4Diagram-KJ2TOQU5-CDcZ7mJq.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-BczXkMV-.js → chunk-6MUBBAK2-CXPuyqPL.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-CjJsv3jB.js → chunk-AXFCVDMN-Du6JRX1x.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-FBaleaLz.js → chunk-BG4553SI-D592E55X.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-BFdXY5sX.js → chunk-DQASFODM-BW2r2SL4.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-C5cwK-Fg.js → chunk-HFQBQIA3-C3yoe54R.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-BUek3IRk.js → chunk-KQLB2F66-DF8gfYCy.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-BxsYBzt6.js → chunk-KS47KZWR-C8CRMTv1.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Bdcwz9fS.js → chunk-LEVMRMFU-BDcMKiwj.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-kkpP5oug.js → chunk-M57EVK23-CKJPBygc.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-CFhQgxmD.js → chunk-OY52VR5R-B3ZWH07L.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-BVXqu0eC.js → chunk-QB3YPZ4I-DI-z4UPL.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-B7SUqqLI.js → chunk-R3KSYZAL-Bg4-haAc.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-B3abfbnH.js → chunk-STOXU5M4-l_SHib3p.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-C9NqnUav.js → chunk-TU62E6Q5-BINu9tIm.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BeLfETDx.js → chunk-X4PVCEUW-BQn-mvV5.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-DXai1i8p.js → chunk-XXDRQBXY-uvpAu0Ys.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-Zj6ne_tC.js → classDiagram-v2-L25IHNXF-BIowooW1.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-C0-TjqfJ.js → cose-bilkent-JH36ORCC-BTyx1Mh2.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dg54eFzZ.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BnqxfzPa.js → cynefinDiagram-L36ESFBY-D64EU9I0.js} +1 -1
- package/dist/public/assets/{d3-selection-DfFLTR9d.js → d3-selection-CN9k6_B9.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-kI17e5cH.js → dagre-SPEB5RXH-FCbz2-Kk.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DgPjeLA5.js → diagram-3B7GL73J-OhHUSI7j.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-CRhPfa0I.js → diagram-DNEMPZML-Be4xMtp6.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-ExuTg12b.js → diagram-L3MUGCDN-CmKSs3aG.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Dgx5xNiY.js → diagram-LA4NIPWU-D1C32rMN.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-BuifkUTl.js → diagram-MHCOC4E2-BjoE6JXs.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-CFEaBo7z.js → diagram-XPFHEONP-B22k4v8R.js} +1 -1
- package/dist/public/assets/{dist-C-iJHcSK.js → dist-DcBP8Cf6.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-D-hp5yNt.js → ebnfDiagram-UZSYDL2S-Tn-K8-X7.js} +1 -1
- package/dist/public/assets/{editor.api-BopUWpqY.js → editor.api-Bz4sjRz_.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-CBbk_IpU.js → elk-XV6XMXQE-COnQsWlN.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-B02R_WWE.js → erDiagram-EYBAPDEH-c53dJilq.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-aCZfYnCI.js → eventmodeling-K75KTNOO-DaFpPPks.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-V5qkYWIO.js +1 -0
- package/dist/public/assets/{freemarker2-DMN60LeK.js → freemarker2-BLxfRHsw.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DioU8TlD.js → ganttDiagram-23REXITY-Md-SavIS.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-1q8ldRXU.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW--q3ctg6y.js → gitGraphDiagram-STJD7YCW-CMSwTghO.js} +1 -1
- package/dist/public/assets/{handlebars-B_-qdvpB.js → handlebars-sNpu01kP.js} +1 -1
- package/dist/public/assets/{html-BN8Ah3Js.js → html-C_tKd-uP.js} +1 -1
- package/dist/public/assets/{index-B3A--ac8.js → index-Bn86rI4n.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-Crere6sx.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-CGXteYo9.js → infoDiagram-KBXO4MBG-CwgNj-7i.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-DM2LmOAc.js → ishikawaDiagram-M35NCXHK-BSlzQNMN.js} +1 -1
- package/dist/public/assets/{javascript-BlizGb0q.js → javascript-l3qKw0L-.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-CNITRtGl.js → journeyDiagram-OPLOXDXO-B09LPEnF.js} +1 -1
- package/dist/public/assets/{jsonMode-CEUmT5sN.js → jsonMode-5SQQn1EX.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-BPUuS9um.js → kanban-definition-BZKZHSQY-BiW4aJ29.js} +1 -1
- package/dist/public/assets/{liquid-BbyLjUbE.js → liquid-BGyTIIUt.js} +1 -1
- package/dist/public/assets/{mdx-DiQz7Q35.js → mdx-8tGjz4em.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-Dum100hC.js → mermaid-parser.core-CctN5b0z.js} +3 -3
- package/dist/public/assets/{mermaid.core-BWmWf6XO.js → mermaid.core-7ERSdZ4-.js} +4 -4
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-L8HyYUDY.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-zOOyBmxy.js → monaco-B_9hlk78.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-qMf5LkHT.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-CTZKPo0Z.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-DAeT3dFi.js → pieDiagram-J4AKIIQI-CXFHLYTg.js} +1 -1
- package/dist/public/assets/{python-C984gt98.js → python-e-JK0s5M.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2--PXxwV1Z.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-BYcFfrCa.js → railroad-abnf-LNEFI6M7-CDOSPZwX.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-Cd33qxAm.js → railroad-ebnf-DWYD2UWJ-BTrNQ0DX.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-C5TpzaU8.js → railroad-peg-JR7BVNR7-B7NtVofS.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-DlWwjbhH.js → railroadDiagram-MRQ6NCDL-DsDrT0Jf.js} +1 -1
- package/dist/public/assets/{razor-BBqMR1Qn.js → razor-DtSPwumi.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-CsYBy9HS.js → requirementDiagram-Y7LWUY3S-BQh0hFuA.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-Baxyb5p9.js → sankeyDiagram-WGJFYUXA-BUXNAQEF.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-Cq6VeBT_.js → sequenceDiagram-5NDRBG5M-05f-N5V_.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-O60WKaE7.js → stateDiagram-v2-FJ4FJNEA-D6V1fGWV.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-C2nf1-Cc.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-DEfUG6YH.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-Gtq7f0aU.js → typescript-65jNyipU.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Gw9DyJcx.js → usecaseDiagram-AFA6YXN4-BQTHUX1f.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-Clb3MLWF.js → vennDiagram-NNMJR3RB-BULkVTfA.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-DfSjKzbJ.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-BrTRpwu2.js → wardleyDiagram-S7YFUSEH-Cek6l8lz.js} +1 -1
- package/dist/public/assets/{xml-Bx3nk7iG.js → xml-DWBejfu-.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-BfjTcIsb.js → xychartDiagram-GGNKY7IX-ujnZQTWA.js} +1 -1
- package/dist/public/assets/{yaml-dFLE_rSl.js → yaml-CwRCT7q1.js} +1 -1
- package/dist/public/index.html +1 -1
- package/dist/public/launch.svg +46 -42
- package/dist/serve/index.mjs +8244 -3756
- package/package.json +33 -26
- package/dist/pi/dist/bundle/chunks/anthropic-messages-BWGCKOF4.js +0 -6
- package/dist/pi/dist/bundle/chunks/chunk-44DLKSKE.js +0 -1232
- package/dist/pi/dist/bundle/chunks/chunk-62VOPMLK.js +0 -65
- package/dist/pi/dist/bundle/chunks/chunk-7O7QKK6A.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-CHWNPHIS.js +0 -82
- package/dist/pi/dist/bundle/chunks/chunk-NL4X6LBY.js +0 -4
- package/dist/pi/dist/bundle/chunks/chunk-NZY7EIPA.js +0 -4
- package/dist/pi/dist/bundle/chunks/chunk-R2EGYMOO.js +0 -7
- package/dist/pi/dist/bundle/chunks/chunk-UKVNB6C4.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-USJZMAIR.js +0 -2
- package/dist/pi/dist/bundle/chunks/chunk-VOLAXWGI.js +0 -2
- package/dist/pi/dist/bundle/chunks/openai-codex-responses-QAWLOQSN.js +0 -10
- package/dist/pi/dist/bundle/chunks/openai-responses-MD3562FB.js +0 -4
- package/dist/pi/dist/bundle/chunks/virtual-modules-O76XM3OB.js +0 -2
- package/dist/public/assets/browser-y6EDNUmc.js +0 -12
- package/dist/public/assets/cynefin-EF2NZ3EQ-CoY4CrZu.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CATkJShO.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-g4yHXXxx.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-CKADJjz4.js +0 -1
- package/dist/public/assets/module-CH7IXa5L.js +0 -1781
- package/dist/public/assets/module-DNAasuMC.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-CpKMhX4K.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-CW-zGDRd.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Cg8W433p.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DriMt2PQ.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-B46JxqS8.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-1LhEWwC9.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-D3t3N7nS.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-D3sAsd8p.js +0 -1
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
// web-src/extensions-util.ts
|
|
2
2
|
var ExtensionsUtil;
|
|
3
3
|
((ExtensionsUtil) => {
|
|
4
|
+
function request(text, ask) {
|
|
5
|
+
const typed = text.trim();
|
|
6
|
+
const command = /^(\/\S+)\s*([\s\S]*)$/.exec(typed);
|
|
7
|
+
return command ? `${command[1]} ${ask(command[2].trim())}` : ask(typed);
|
|
8
|
+
}
|
|
9
|
+
ExtensionsUtil.request = request;
|
|
4
10
|
function group(packages) {
|
|
5
11
|
const byName = (a, b) => a.name.localeCompare(b.name);
|
|
6
12
|
return {
|
|
@@ -40,6 +46,14 @@ var EN = {
|
|
|
40
46
|
placeholder: "Describe the extension, for example: a pomodoro timer beside the conversation",
|
|
41
47
|
makePrompt: "Make an extension: {text}",
|
|
42
48
|
changePrompt: "Change the extension {name} (in {root}): {text}",
|
|
49
|
+
fromChat: "Make an extension",
|
|
50
|
+
fromChatDetail: "Of what this conversation did",
|
|
51
|
+
fromChatAsk: "Make what this conversation did an extension, to do it again in a click",
|
|
52
|
+
fromChatModel: "In a new conversation, on {model}",
|
|
53
|
+
settingsTitle: "Making extensions",
|
|
54
|
+
modelLabel: "Model",
|
|
55
|
+
modelHint: "The new conversations that make or change an extension use it (the Extensions page, Make an extension of a scheduled task, and of a conversation, which then goes on in a copy of it); unset, the default model",
|
|
56
|
+
modelFailed: "The model for making extensions ({model}) cannot be used, so the default one is: {message}",
|
|
43
57
|
changeTitle: "Change {name}",
|
|
44
58
|
changePlaceholder: "What should it do differently?",
|
|
45
59
|
mine: "Yours",
|
|
@@ -89,6 +103,7 @@ var EN = {
|
|
|
89
103
|
change: "Change",
|
|
90
104
|
remove: "Remove",
|
|
91
105
|
copySource: "Copy the source",
|
|
106
|
+
more: "More",
|
|
92
107
|
copied: "Copied {source}",
|
|
93
108
|
removeTitle: "Remove {name}?",
|
|
94
109
|
removeDetail: "Its pages, cards and commands go with it.",
|
|
@@ -160,6 +175,14 @@ var ZH = {
|
|
|
160
175
|
placeholder: "描述你想要的扩展,例如:在对话旁放一个番茄钟",
|
|
161
176
|
makePrompt: "做一个扩展:{text}",
|
|
162
177
|
changePrompt: "修改扩展 {name}(在 {root}):{text}",
|
|
178
|
+
fromChat: "做成扩展",
|
|
179
|
+
fromChatDetail: "把这次对话做成工具",
|
|
180
|
+
fromChatAsk: "把这次对话做的事做成扩展,以后一键就能再用",
|
|
181
|
+
fromChatModel: "用 {model} 在新对话里做",
|
|
182
|
+
settingsTitle: "做扩展",
|
|
183
|
+
modelLabel: "模型",
|
|
184
|
+
modelHint: "扩展页和各处“做成扩展”开的对话用这个模型;不选就跟随默认模型",
|
|
185
|
+
modelFailed: "做扩展的模型({model})现在用不了,已改用默认模型:{message}",
|
|
163
186
|
changeTitle: "修改 {name}",
|
|
164
187
|
changePlaceholder: "想让它有什么不同?",
|
|
165
188
|
mine: "我的扩展",
|
|
@@ -209,6 +232,7 @@ var ZH = {
|
|
|
209
232
|
change: "修改",
|
|
210
233
|
remove: "移除",
|
|
211
234
|
copySource: "复制来源",
|
|
235
|
+
more: "更多",
|
|
212
236
|
copied: "已复制 {source}",
|
|
213
237
|
removeTitle: "移除扩展 {name}?",
|
|
214
238
|
removeDetail: "它的页面、卡片和命令也会一起移除。",
|
|
@@ -270,6 +294,36 @@ var ExtensionWords;
|
|
|
270
294
|
ExtensionWords.fill = fill;
|
|
271
295
|
})(ExtensionWords ||= {});
|
|
272
296
|
|
|
297
|
+
// web-src/make-model.ts
|
|
298
|
+
var MAKE_MODEL_KEY = "makeModel";
|
|
299
|
+
var MakeModel;
|
|
300
|
+
((MakeModel) => {
|
|
301
|
+
async function get(pi) {
|
|
302
|
+
const value = await pi.storage.get(MAKE_MODEL_KEY).catch(() => {
|
|
303
|
+
return;
|
|
304
|
+
});
|
|
305
|
+
return typeof value === "string" && value ? value : undefined;
|
|
306
|
+
}
|
|
307
|
+
MakeModel.get = get;
|
|
308
|
+
function set(pi, model) {
|
|
309
|
+
return pi.storage.set(MAKE_MODEL_KEY, model || null);
|
|
310
|
+
}
|
|
311
|
+
MakeModel.set = set;
|
|
312
|
+
async function open(pi, options) {
|
|
313
|
+
const model = await get(pi);
|
|
314
|
+
if (model) {
|
|
315
|
+
try {
|
|
316
|
+
return (await pi.server.openSession({ ...options, model })).sessionId;
|
|
317
|
+
} catch (error) {
|
|
318
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
319
|
+
pi.ui.notify(ExtensionWords.fill(ExtensionWords.of(pi.ui.language).modelFailed, { model, message }), "warning");
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
return (await pi.server.openSession(options)).sessionId;
|
|
323
|
+
}
|
|
324
|
+
MakeModel.open = open;
|
|
325
|
+
})(MakeModel ||= {});
|
|
326
|
+
|
|
273
327
|
// web-src/actions.ts
|
|
274
328
|
class PackagesStore {
|
|
275
329
|
pi;
|
|
@@ -286,14 +340,19 @@ class PackagesStore {
|
|
|
286
340
|
return () => this.listeners.delete(listener);
|
|
287
341
|
}
|
|
288
342
|
patch(id, change) {
|
|
289
|
-
this.current = { packages: this.current.packages?.map((pkg) => pkg.id === id ? { ...pkg, ...change } : pkg) };
|
|
343
|
+
this.current = { ...this.current, packages: this.current.packages?.map((pkg) => pkg.id === id ? { ...pkg, ...change } : pkg) };
|
|
344
|
+
this.publish();
|
|
345
|
+
}
|
|
346
|
+
setRemoving(id, on) {
|
|
347
|
+
const others = (this.current.removing ?? []).filter((other) => other !== id);
|
|
348
|
+
this.current = { ...this.current, removing: on ? [...others, id] : others };
|
|
290
349
|
this.publish();
|
|
291
350
|
}
|
|
292
351
|
async load() {
|
|
293
352
|
try {
|
|
294
|
-
this.current = { packages: (await this.pi.packages.listPackages()).filter((pkg) => pkg.origin !== "temporary") };
|
|
353
|
+
this.current = { ...this.current, packages: (await this.pi.packages.listPackages()).filter((pkg) => pkg.origin !== "temporary") };
|
|
295
354
|
} catch (error) {
|
|
296
|
-
this.current = { packages: this.current.packages ?? [] };
|
|
355
|
+
this.current = { ...this.current, packages: this.current.packages ?? [] };
|
|
297
356
|
this.pi.ui.notify(error instanceof Error ? error.message : String(error), "error");
|
|
298
357
|
}
|
|
299
358
|
this.publish();
|
|
@@ -318,7 +377,7 @@ class ExtensionActions {
|
|
|
318
377
|
return ExtensionWords.of(this.pi.ui.language);
|
|
319
378
|
}
|
|
320
379
|
make(text) {
|
|
321
|
-
return this.converse(ExtensionWords.fill(this.words.makePrompt, { text:
|
|
380
|
+
return this.converse(ExtensionsUtil.request(text, (request) => ExtensionWords.fill(this.words.makePrompt, { text: request })));
|
|
322
381
|
}
|
|
323
382
|
async change(pkg) {
|
|
324
383
|
const words = this.words;
|
|
@@ -348,11 +407,13 @@ class ExtensionActions {
|
|
|
348
407
|
danger: true
|
|
349
408
|
});
|
|
350
409
|
if (confirmed) {
|
|
410
|
+
this.store.setRemoving(pkg.id, true);
|
|
351
411
|
await this.guard(async () => {
|
|
352
412
|
await this.pi.packages.removePackage(pkg.id);
|
|
353
413
|
await this.changed();
|
|
354
414
|
this.pi.ui.notify(ExtensionWords.fill(words.removed, { name: pkg.name }));
|
|
355
415
|
});
|
|
416
|
+
this.store.setRemoving(pkg.id, false);
|
|
356
417
|
}
|
|
357
418
|
}
|
|
358
419
|
async setEnabled(pkg, enabled) {
|
|
@@ -434,7 +495,7 @@ class ExtensionActions {
|
|
|
434
495
|
async converse(text) {
|
|
435
496
|
await this.guard(async () => {
|
|
436
497
|
const { cwd } = await this.pi.server.getServerInfo();
|
|
437
|
-
const
|
|
498
|
+
const sessionId = await MakeModel.open(this.pi, { cwd });
|
|
438
499
|
await this.pi.switchSession(sessionId);
|
|
439
500
|
await this.pi.sendUserMessage(text);
|
|
440
501
|
});
|
|
@@ -450,6 +511,90 @@ class ExtensionActions {
|
|
|
450
511
|
}
|
|
451
512
|
}
|
|
452
513
|
|
|
514
|
+
// web-src/context.ts
|
|
515
|
+
function icon(pi, name, fallback = "Square") {
|
|
516
|
+
return pi.ui.icons[name] ?? pi.ui.icons[fallback] ?? (() => null);
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
// web-src/react.ts
|
|
520
|
+
var React;
|
|
521
|
+
function bind(react) {
|
|
522
|
+
React = react;
|
|
523
|
+
}
|
|
524
|
+
var idle = () => [false, async (action) => await action()];
|
|
525
|
+
function useBusy(ui) {
|
|
526
|
+
return (ui.useBusy ?? idle)();
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
// web-src/composer.tsx
|
|
530
|
+
var ConversationExtension;
|
|
531
|
+
((ConversationExtension) => {
|
|
532
|
+
ConversationExtension.CONTEXT = [
|
|
533
|
+
"The user wants what was done in this conversation made into an extension of Ta, with the ta-package skill, kept in extensions/: a tool that does it again without it being explained again.",
|
|
534
|
+
"- Look back over the conversation for what is worth keeping: the task, the steps that worked, the inputs that change from one time to the next, and what came out.",
|
|
535
|
+
"- The inputs become a form or a few buttons, the steps a command or a tool of its pi extension (or a prompt it sends), and the results a view that suits them: a page, a card of the board, or the view of a message, rather than plain text.",
|
|
536
|
+
"- Leave out what was only tried and dropped. When the conversation holds nothing to make a tool of, say so and ask what the extension should do."
|
|
537
|
+
].join(`
|
|
538
|
+
`);
|
|
539
|
+
function message(language) {
|
|
540
|
+
return `<context>
|
|
541
|
+
${ConversationExtension.CONTEXT}
|
|
542
|
+
</context>
|
|
543
|
+
${ExtensionWords.of(language).fromChatAsk}`;
|
|
544
|
+
}
|
|
545
|
+
ConversationExtension.message = message;
|
|
546
|
+
})(ConversationExtension ||= {});
|
|
547
|
+
function composerAddon(pi) {
|
|
548
|
+
let model;
|
|
549
|
+
const listeners = new Set;
|
|
550
|
+
const read = () => void MakeModel.get(pi).then((next) => {
|
|
551
|
+
if (next !== model) {
|
|
552
|
+
model = next;
|
|
553
|
+
for (const listener of listeners) {
|
|
554
|
+
listener();
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
});
|
|
558
|
+
read();
|
|
559
|
+
pi.storage.onChange((keys) => keys.includes(MAKE_MODEL_KEY) && read());
|
|
560
|
+
const failed = (error) => pi.ui.notify(error instanceof Error ? error.message : String(error), "error");
|
|
561
|
+
const ask = () => ({ clientMessageId: `ta-extensions:conversation:${Date.now()}`, message: ConversationExtension.message(pi.ui.language) });
|
|
562
|
+
const send = async (conversation) => {
|
|
563
|
+
if (!await MakeModel.get(pi)) {
|
|
564
|
+
await pi.server.prompt(conversation.sessionId, { ...ask(), streamingBehavior: "followUp" });
|
|
565
|
+
return;
|
|
566
|
+
}
|
|
567
|
+
const cwd = conversation.cwd ?? (await pi.server.getServerInfo()).cwd;
|
|
568
|
+
const { entries } = await pi.server.getEntries(conversation.sessionId);
|
|
569
|
+
const last = entries.at(-1)?.id;
|
|
570
|
+
const { sessionFile } = last ? await pi.server.forkToFile(conversation.sessionId, last, "at") : { sessionFile: undefined };
|
|
571
|
+
const sessionId = MakeModel.open(pi, { cwd, sessionFile });
|
|
572
|
+
await pi.switchSession(sessionId, { title: ExtensionWords.of(pi.ui.language).fromChat, cwd });
|
|
573
|
+
await pi.server.prompt(await sessionId, ask());
|
|
574
|
+
};
|
|
575
|
+
return {
|
|
576
|
+
subscribe: (listener) => {
|
|
577
|
+
listeners.add(listener);
|
|
578
|
+
return () => listeners.delete(listener);
|
|
579
|
+
},
|
|
580
|
+
actions: (conversation) => {
|
|
581
|
+
const words = ExtensionWords.of(pi.ui.language);
|
|
582
|
+
const Sparkles = icon(pi, "Sparkles");
|
|
583
|
+
return [
|
|
584
|
+
{
|
|
585
|
+
key: "make-extension",
|
|
586
|
+
label: words.fromChat,
|
|
587
|
+
detail: model ? ExtensionWords.fill(words.fromChatModel, { model: model.slice(model.indexOf("/") + 1) }) : words.fromChatDetail,
|
|
588
|
+
icon: /* @__PURE__ */ React.createElement(Sparkles, {
|
|
589
|
+
size: 16
|
|
590
|
+
}),
|
|
591
|
+
run: () => void send(conversation).catch(failed)
|
|
592
|
+
}
|
|
593
|
+
];
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
|
|
453
598
|
// web-src/market-store.ts
|
|
454
599
|
class MarketStore {
|
|
455
600
|
pi;
|
|
@@ -672,6 +817,21 @@ var TaLocation;
|
|
|
672
817
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
673
818
|
}
|
|
674
819
|
TaLocation2.basename = basename;
|
|
820
|
+
function homeRelative(location) {
|
|
821
|
+
var _a;
|
|
822
|
+
const remote = parse(location);
|
|
823
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
824
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
825
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
826
|
+
}
|
|
827
|
+
TaLocation2.homeRelative = homeRelative;
|
|
828
|
+
function isAbsolute(location) {
|
|
829
|
+
if (homeRelative(location) !== undefined) {
|
|
830
|
+
return false;
|
|
831
|
+
}
|
|
832
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
833
|
+
}
|
|
834
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
675
835
|
function parentPath(path2) {
|
|
676
836
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
677
837
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -707,8 +867,64 @@ var TaPackageTextUtil;
|
|
|
707
867
|
var TaRelayServer = Symbol("TaRelayServer");
|
|
708
868
|
// ../ta-protocol/esm/common/remote-protocol.js
|
|
709
869
|
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
870
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
871
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
872
|
+
var TaRoomWatchUtil;
|
|
873
|
+
(function(TaRoomWatchUtil2) {
|
|
874
|
+
function of(messages, state) {
|
|
875
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
876
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
877
|
+
}
|
|
878
|
+
TaRoomWatchUtil2.of = of;
|
|
879
|
+
function union(watches) {
|
|
880
|
+
let messages = false;
|
|
881
|
+
const state = [];
|
|
882
|
+
for (const watch of watches) {
|
|
883
|
+
messages || (messages = watch.messages);
|
|
884
|
+
state.push(...watch.state);
|
|
885
|
+
}
|
|
886
|
+
return of(messages, messages ? [] : state);
|
|
887
|
+
}
|
|
888
|
+
TaRoomWatchUtil2.union = union;
|
|
889
|
+
function same(a, b) {
|
|
890
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
891
|
+
`) === b.state.join(`
|
|
892
|
+
`);
|
|
893
|
+
}
|
|
894
|
+
TaRoomWatchUtil2.same = same;
|
|
895
|
+
function hears(watch, event) {
|
|
896
|
+
if (event.type === "message") {
|
|
897
|
+
return watch.messages;
|
|
898
|
+
}
|
|
899
|
+
if (event.type === "state") {
|
|
900
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
901
|
+
}
|
|
902
|
+
return true;
|
|
903
|
+
}
|
|
904
|
+
TaRoomWatchUtil2.hears = hears;
|
|
905
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
710
906
|
// ../ta-protocol/esm/common/settings-protocol.js
|
|
711
907
|
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
908
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
909
|
+
var TA_HOST_EVENT = "ta:host";
|
|
910
|
+
var TaHostUtil;
|
|
911
|
+
(function(TaHostUtil2) {
|
|
912
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
913
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
914
|
+
return new Promise((resolve) => {
|
|
915
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
916
|
+
const request = {
|
|
917
|
+
name,
|
|
918
|
+
resolve: (answer) => {
|
|
919
|
+
clearTimeout(timer);
|
|
920
|
+
resolve(answer);
|
|
921
|
+
}
|
|
922
|
+
};
|
|
923
|
+
events.emit(TA_HOST_EVENT, request);
|
|
924
|
+
});
|
|
925
|
+
}
|
|
926
|
+
TaHostUtil2.reach = reach;
|
|
927
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
712
928
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
713
929
|
var TaServer = Symbol("TaServer");
|
|
714
930
|
var TaClient = Symbol("TaClient");
|
|
@@ -723,6 +939,15 @@ var TaErrorUtil;
|
|
|
723
939
|
}
|
|
724
940
|
TaErrorUtil2.code = code;
|
|
725
941
|
})(TaErrorUtil || (TaErrorUtil = {}));
|
|
942
|
+
var TaSlashCommandUtil;
|
|
943
|
+
(function(TaSlashCommandUtil2) {
|
|
944
|
+
function description(command, language) {
|
|
945
|
+
var _a, _b;
|
|
946
|
+
const { descriptions } = command;
|
|
947
|
+
return (_b = (_a = descriptions === null || descriptions === undefined ? undefined : descriptions[language]) !== null && _a !== undefined ? _a : descriptions === null || descriptions === undefined ? undefined : descriptions[language.split("-")[0]]) !== null && _b !== undefined ? _b : command.description;
|
|
948
|
+
}
|
|
949
|
+
TaSlashCommandUtil2.description = description;
|
|
950
|
+
})(TaSlashCommandUtil || (TaSlashCommandUtil = {}));
|
|
726
951
|
var TaMessageContext;
|
|
727
952
|
(function(TaMessageContext2) {
|
|
728
953
|
const BLOCK = /^<context>\n?[\s\S]*?\n?<\/context>\n?/;
|
|
@@ -738,6 +963,109 @@ ${message}`;
|
|
|
738
963
|
}
|
|
739
964
|
TaMessageContext2.strip = strip;
|
|
740
965
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
966
|
+
var TaImageNote;
|
|
967
|
+
(function(TaImageNote2) {
|
|
968
|
+
const NOTE = /^\[Image: original \d+x\d+, displayed at \d+x\d+\. Multiply coordinates by [\d.]+ to map to original image\.\]$|^\[Image converted from [^\]]+ to [^\]]+\.\]$/;
|
|
969
|
+
function strip(text) {
|
|
970
|
+
const lines = text.split(`
|
|
971
|
+
`);
|
|
972
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
973
|
+
if (kept.length === lines.length) {
|
|
974
|
+
return text;
|
|
975
|
+
}
|
|
976
|
+
return kept.join(`
|
|
977
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
978
|
+
}
|
|
979
|
+
TaImageNote2.strip = strip;
|
|
980
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
981
|
+
var TaImageSize;
|
|
982
|
+
(function(TaImageSize2) {
|
|
983
|
+
const JPEG_BYTES = 256 * 1024;
|
|
984
|
+
function of(base64) {
|
|
985
|
+
var _a, _b, _c;
|
|
986
|
+
let bytes;
|
|
987
|
+
try {
|
|
988
|
+
const binary = atob(base64.slice(0, Math.ceil(JPEG_BYTES * 4 / 3 / 4) * 4));
|
|
989
|
+
bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));
|
|
990
|
+
} catch (_d) {
|
|
991
|
+
return;
|
|
992
|
+
}
|
|
993
|
+
const size = (_c = (_b = (_a = png(bytes)) !== null && _a !== undefined ? _a : gif(bytes)) !== null && _b !== undefined ? _b : webp(bytes)) !== null && _c !== undefined ? _c : jpeg(bytes);
|
|
994
|
+
return size && size.width > 0 && size.height > 0 ? size : undefined;
|
|
995
|
+
}
|
|
996
|
+
TaImageSize2.of = of;
|
|
997
|
+
function u16be(bytes, at) {
|
|
998
|
+
return bytes[at] << 8 | bytes[at + 1];
|
|
999
|
+
}
|
|
1000
|
+
function u16le(bytes, at) {
|
|
1001
|
+
return bytes[at] | bytes[at + 1] << 8;
|
|
1002
|
+
}
|
|
1003
|
+
function u24le(bytes, at) {
|
|
1004
|
+
return bytes[at] | bytes[at + 1] << 8 | bytes[at + 2] << 16;
|
|
1005
|
+
}
|
|
1006
|
+
function u32be(bytes, at) {
|
|
1007
|
+
return (bytes[at] << 24 | bytes[at + 1] << 16 | bytes[at + 2] << 8 | bytes[at + 3]) >>> 0;
|
|
1008
|
+
}
|
|
1009
|
+
function text(bytes, at, length) {
|
|
1010
|
+
return String.fromCharCode(...bytes.subarray(at, at + length));
|
|
1011
|
+
}
|
|
1012
|
+
function png(bytes) {
|
|
1013
|
+
return bytes.length >= 24 && bytes[0] === 137 && text(bytes, 1, 3) === "PNG" ? { width: u32be(bytes, 16), height: u32be(bytes, 20) } : undefined;
|
|
1014
|
+
}
|
|
1015
|
+
function gif(bytes) {
|
|
1016
|
+
return bytes.length >= 10 && text(bytes, 0, 3) === "GIF" ? { width: u16le(bytes, 6), height: u16le(bytes, 8) } : undefined;
|
|
1017
|
+
}
|
|
1018
|
+
function webp(bytes) {
|
|
1019
|
+
if (bytes.length < 30 || text(bytes, 0, 4) !== "RIFF" || text(bytes, 8, 4) !== "WEBP") {
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
switch (text(bytes, 12, 4)) {
|
|
1023
|
+
case "VP8 ":
|
|
1024
|
+
return { width: u16le(bytes, 26) & 16383, height: u16le(bytes, 28) & 16383 };
|
|
1025
|
+
case "VP8L": {
|
|
1026
|
+
const bits = bytes[21] | bytes[22] << 8 | bytes[23] << 16 | bytes[24] << 24;
|
|
1027
|
+
return { width: (bits & 16383) + 1, height: (bits >> 14 & 16383) + 1 };
|
|
1028
|
+
}
|
|
1029
|
+
case "VP8X":
|
|
1030
|
+
return { width: u24le(bytes, 24) + 1, height: u24le(bytes, 27) + 1 };
|
|
1031
|
+
default:
|
|
1032
|
+
return;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
function jpeg(bytes) {
|
|
1036
|
+
if (bytes[0] !== 255 || bytes[1] !== 216) {
|
|
1037
|
+
return;
|
|
1038
|
+
}
|
|
1039
|
+
let at = 2;
|
|
1040
|
+
while (at + 9 < bytes.length) {
|
|
1041
|
+
if (bytes[at] !== 255) {
|
|
1042
|
+
return;
|
|
1043
|
+
}
|
|
1044
|
+
const marker = bytes[at + 1];
|
|
1045
|
+
if (marker >= 192 && marker <= 207 && marker !== 196 && marker !== 200 && marker !== 204) {
|
|
1046
|
+
return { width: u16be(bytes, at + 7), height: u16be(bytes, at + 5) };
|
|
1047
|
+
}
|
|
1048
|
+
at += 2 + u16be(bytes, at + 2);
|
|
1049
|
+
}
|
|
1050
|
+
return;
|
|
1051
|
+
}
|
|
1052
|
+
})(TaImageSize || (TaImageSize = {}));
|
|
1053
|
+
var TaAgentSummary;
|
|
1054
|
+
(function(TaAgentSummary2) {
|
|
1055
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
1056
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
1057
|
+
function read(text) {
|
|
1058
|
+
if (!START.test(text)) {
|
|
1059
|
+
return;
|
|
1060
|
+
}
|
|
1061
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
1062
|
+
}
|
|
1063
|
+
TaAgentSummary2.read = read;
|
|
1064
|
+
function strip(text) {
|
|
1065
|
+
return text.replace(BLOCK, "");
|
|
1066
|
+
}
|
|
1067
|
+
TaAgentSummary2.strip = strip;
|
|
1068
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
741
1069
|
var TaSkillUse;
|
|
742
1070
|
(function(TaSkillUse2) {
|
|
743
1071
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -771,17 +1099,6 @@ var TaExcludedFiles;
|
|
|
771
1099
|
TaExcludedFiles2.filter = filter;
|
|
772
1100
|
})(TaExcludedFiles || (TaExcludedFiles = {}));
|
|
773
1101
|
var TA_UPLOAD_PART_BYTES = 4 * 1024 * 1024;
|
|
774
|
-
// web-src/context.ts
|
|
775
|
-
function icon(pi, name, fallback = "Square") {
|
|
776
|
-
return pi.ui.icons[name] ?? pi.ui.icons[fallback] ?? (() => null);
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
// web-src/react.ts
|
|
780
|
-
var React;
|
|
781
|
-
function bind(react) {
|
|
782
|
-
React = react;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
1102
|
// web-src/import-dialog.tsx
|
|
786
1103
|
function ImportDialog({ pi, actions, onClose }) {
|
|
787
1104
|
const words = actions.words;
|
|
@@ -941,7 +1258,7 @@ var MarketUtil;
|
|
|
941
1258
|
for (let i = 0;i < name.length; i++) {
|
|
942
1259
|
hash = hash * 31 + name.charCodeAt(i) | 0;
|
|
943
1260
|
}
|
|
944
|
-
return { letters,
|
|
1261
|
+
return { letters, tint: Math.abs(hash) % 9 };
|
|
945
1262
|
}
|
|
946
1263
|
MarketUtil.monogram = monogram;
|
|
947
1264
|
function repositoryUrl(repository) {
|
|
@@ -1021,11 +1338,17 @@ function useMarketStatus(context, name) {
|
|
|
1021
1338
|
return !pkg ? { kind: "none" } : pkg.origin === "builtin" ? { kind: "builtin" } : { kind: "installed", pkg };
|
|
1022
1339
|
}
|
|
1023
1340
|
function PackageFace({ name, size }) {
|
|
1024
|
-
const { letters,
|
|
1341
|
+
const { letters, tint } = MarketUtil.monogram(name);
|
|
1025
1342
|
return /* @__PURE__ */ React.createElement("span", {
|
|
1026
1343
|
className: "tax-face",
|
|
1027
1344
|
"aria-hidden": "true",
|
|
1028
|
-
style: {
|
|
1345
|
+
style: {
|
|
1346
|
+
width: size,
|
|
1347
|
+
height: size,
|
|
1348
|
+
fontSize: Math.round(size * 0.36),
|
|
1349
|
+
["--tax-tint"]: `var(--ta-tint-${tint})`,
|
|
1350
|
+
["--tax-ink"]: `var(--ta-tint-ink-${tint})`
|
|
1351
|
+
}
|
|
1029
1352
|
}, letters);
|
|
1030
1353
|
}
|
|
1031
1354
|
function PackageName({ name }) {
|
|
@@ -1673,7 +1996,7 @@ function ExtensionsPage({ context }) {
|
|
|
1673
1996
|
function MineView({ context }) {
|
|
1674
1997
|
const { pi, store, actions, importing } = context;
|
|
1675
1998
|
const words = actions.words;
|
|
1676
|
-
const { packages } = React.useSyncExternalStore((listener) => store.subscribe(listener), () => store.state);
|
|
1999
|
+
const { packages, removing } = React.useSyncExternalStore((listener) => store.subscribe(listener), () => store.state);
|
|
1677
2000
|
const [starting, setStarting] = React.useState(false);
|
|
1678
2001
|
const groups = ExtensionsUtil.group(packages ?? []);
|
|
1679
2002
|
const Composer = pi.ui.Composer;
|
|
@@ -1696,7 +2019,8 @@ function MineView({ context }) {
|
|
|
1696
2019
|
size: 20
|
|
1697
2020
|
}), " ", words.heroTitle), /* @__PURE__ */ React.createElement("p", null, words.heroText), /* @__PURE__ */ React.createElement(Composer, {
|
|
1698
2021
|
placeholder: words.placeholder,
|
|
1699
|
-
onSend: make
|
|
2022
|
+
onSend: make,
|
|
2023
|
+
commands: true
|
|
1700
2024
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
1701
2025
|
className: "tax-kinds"
|
|
1702
2026
|
}, /* @__PURE__ */ React.createElement(PictureCards, {
|
|
@@ -1743,7 +2067,8 @@ function MineView({ context }) {
|
|
|
1743
2067
|
key: pkg.id,
|
|
1744
2068
|
pi,
|
|
1745
2069
|
actions,
|
|
1746
|
-
pkg
|
|
2070
|
+
pkg,
|
|
2071
|
+
removing: !!removing?.includes(pkg.id)
|
|
1747
2072
|
})))), groups.installed.length > 0 && /* @__PURE__ */ React.createElement("section", {
|
|
1748
2073
|
className: "tax-section"
|
|
1749
2074
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -1756,7 +2081,8 @@ function MineView({ context }) {
|
|
|
1756
2081
|
key: pkg.id,
|
|
1757
2082
|
pi,
|
|
1758
2083
|
actions,
|
|
1759
|
-
pkg
|
|
2084
|
+
pkg,
|
|
2085
|
+
removing: !!removing?.includes(pkg.id)
|
|
1760
2086
|
})))), /* @__PURE__ */ React.createElement("section", {
|
|
1761
2087
|
className: "tax-section"
|
|
1762
2088
|
}, /* @__PURE__ */ React.createElement("div", {
|
|
@@ -1790,26 +2116,50 @@ function ShareSteps({ pi, actions }) {
|
|
|
1790
2116
|
className: "tax-note"
|
|
1791
2117
|
}, words.shareMore));
|
|
1792
2118
|
}
|
|
1793
|
-
function PackageRow({ pi, actions, pkg }) {
|
|
2119
|
+
function PackageRow({ pi, actions, pkg, removing }) {
|
|
1794
2120
|
const words = actions.words;
|
|
2121
|
+
const [switching, run] = useBusy(pi.ui);
|
|
2122
|
+
const { touch, handheld } = pi.ui.useDevice();
|
|
2123
|
+
const [menu, openMenu] = pi.ui.useContextMenu();
|
|
1795
2124
|
const mine = pkg.origin === "directory";
|
|
1796
2125
|
const Icon = icon(pi, pkg.icon ?? (mine ? "Puzzle" : "PackageOpen"), mine ? "Puzzle" : "PackageOpen");
|
|
2126
|
+
const More = icon(pi, "Ellipsis");
|
|
1797
2127
|
const title = TaPackageTextUtil.pick(pkg.title, pi.ui.language) ?? pkg.name;
|
|
1798
2128
|
const summary = TaPackageTextUtil.pick(pkg.summary, pi.ui.language) ?? pkg.description;
|
|
1799
2129
|
const tags = [...pkg.resources.map((type) => words.kinds[type]), ...pkg.scope === "project" ? [words.project] : []];
|
|
1800
2130
|
const share = () => pi.ui.shareExtension({ title, source: mine ? undefined : pkg.source, packageId: pkg.id });
|
|
2131
|
+
const remove = { key: "remove", label: words.remove, icon: "Trash2", danger: true, run: () => actions.remove(pkg) };
|
|
1801
2132
|
const buttons = mine ? [
|
|
1802
2133
|
{ key: "change", label: words.change, icon: "Pencil", run: () => actions.change(pkg) },
|
|
1803
2134
|
{ key: "export", label: words.export, icon: "Download", run: () => actions.exportPackage(pkg) },
|
|
1804
2135
|
{ key: "share", label: words.share, icon: "QrCode", run: async () => share() },
|
|
1805
|
-
|
|
2136
|
+
remove
|
|
1806
2137
|
] : [
|
|
1807
2138
|
{ key: "copy", label: words.copySource, icon: "Copy", run: () => actions.copySource(pkg) },
|
|
1808
2139
|
{ key: "share", label: words.share, icon: "QrCode", run: async () => share() },
|
|
1809
|
-
|
|
2140
|
+
remove
|
|
1810
2141
|
];
|
|
1811
|
-
|
|
1812
|
-
|
|
2142
|
+
const item = (button) => ({
|
|
2143
|
+
key: button.key,
|
|
2144
|
+
label: button.label,
|
|
2145
|
+
icon: icon(pi, button.icon),
|
|
2146
|
+
danger: button.danger,
|
|
2147
|
+
run: () => void button.run()
|
|
2148
|
+
});
|
|
2149
|
+
const items = [buttons.filter((button) => button !== remove).map(item), [item(remove)]];
|
|
2150
|
+
const tagList = tags.map((tag) => /* @__PURE__ */ React.createElement("span", {
|
|
2151
|
+
key: tag,
|
|
2152
|
+
className: "tax-tag"
|
|
2153
|
+
}, tag));
|
|
2154
|
+
const description = summary || (mine ? undefined : pkg.source);
|
|
2155
|
+
const SwipeRow = pi.ui.SwipeRow;
|
|
2156
|
+
return /* @__PURE__ */ React.createElement(SwipeRow, {
|
|
2157
|
+
className: "tax-item",
|
|
2158
|
+
actions: [{ key: "remove", label: words.remove, danger: true, run: () => void remove.run() }]
|
|
2159
|
+
}, /* @__PURE__ */ React.createElement("div", {
|
|
2160
|
+
className: `tax-row${pkg.enabled ? "" : " tax-off"}${removing ? " ta-pending" : ""}`,
|
|
2161
|
+
"aria-busy": removing || undefined,
|
|
2162
|
+
onContextMenu: (event) => openMenu(event, items)
|
|
1813
2163
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
1814
2164
|
className: "tax-icon"
|
|
1815
2165
|
}, /* @__PURE__ */ React.createElement(Icon, {
|
|
@@ -1822,12 +2172,20 @@ function PackageRow({ pi, actions, pkg }) {
|
|
|
1822
2172
|
title: title === pkg.name ? undefined : pkg.name
|
|
1823
2173
|
}, title), pkg.version && /* @__PURE__ */ React.createElement("span", {
|
|
1824
2174
|
className: "tax-version"
|
|
1825
|
-
}, pkg.version), tags.
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
}, tag))), (summary || !mine) && /* @__PURE__ */ React.createElement("div", {
|
|
2175
|
+
}, pkg.version), !handheld && tagList), (description || handheld && tags.length > 0) && /* @__PURE__ */ React.createElement("div", {
|
|
2176
|
+
className: "tax-meta"
|
|
2177
|
+
}, handheld && tagList, description && /* @__PURE__ */ React.createElement("span", {
|
|
1829
2178
|
className: "tax-description"
|
|
1830
|
-
},
|
|
2179
|
+
}, description))), touch ? /* @__PURE__ */ React.createElement("button", {
|
|
2180
|
+
type: "button",
|
|
2181
|
+
className: "tax-action tax-more",
|
|
2182
|
+
title: words.more,
|
|
2183
|
+
"aria-label": words.more,
|
|
2184
|
+
"aria-haspopup": "menu",
|
|
2185
|
+
onClick: (event) => openMenu(event, items)
|
|
2186
|
+
}, /* @__PURE__ */ React.createElement(More, {
|
|
2187
|
+
size: 17
|
|
2188
|
+
})) : /* @__PURE__ */ React.createElement("div", {
|
|
1831
2189
|
className: "tax-actions"
|
|
1832
2190
|
}, buttons.map((button) => {
|
|
1833
2191
|
const ButtonIcon = icon(pi, button.icon);
|
|
@@ -1844,12 +2202,16 @@ function PackageRow({ pi, actions, pkg }) {
|
|
|
1844
2202
|
})), /* @__PURE__ */ React.createElement("input", {
|
|
1845
2203
|
type: "checkbox",
|
|
1846
2204
|
role: "switch",
|
|
1847
|
-
className:
|
|
2205
|
+
className: `ta-switch tax-switch${switching || removing ? " ta-busy" : ""}`,
|
|
1848
2206
|
"aria-label": ExtensionWords.fill(words.turnOn, { name: title }),
|
|
1849
2207
|
"aria-checked": pkg.enabled,
|
|
2208
|
+
"aria-busy": switching || undefined,
|
|
1850
2209
|
checked: pkg.enabled,
|
|
1851
|
-
onChange: (event) =>
|
|
1852
|
-
|
|
2210
|
+
onChange: (event) => {
|
|
2211
|
+
const on = event.target.checked;
|
|
2212
|
+
run(() => actions.setEnabled(pkg, on));
|
|
2213
|
+
}
|
|
2214
|
+
})), menu);
|
|
1853
2215
|
}
|
|
1854
2216
|
|
|
1855
2217
|
// web-src/search.ts
|
|
@@ -1957,6 +2319,48 @@ function registerSearches(context) {
|
|
|
1957
2319
|
});
|
|
1958
2320
|
}
|
|
1959
2321
|
|
|
2322
|
+
// web-src/settings.tsx
|
|
2323
|
+
function ModelSetting({ pi }) {
|
|
2324
|
+
const [value, setValue] = React.useState("");
|
|
2325
|
+
React.useEffect(() => {
|
|
2326
|
+
let live = true;
|
|
2327
|
+
const read = () => void MakeModel.get(pi).then((model) => live && setValue(model ?? ""));
|
|
2328
|
+
read();
|
|
2329
|
+
const stop = pi.storage.onChange((keys) => keys.includes(MAKE_MODEL_KEY) && read());
|
|
2330
|
+
return () => {
|
|
2331
|
+
live = false;
|
|
2332
|
+
stop();
|
|
2333
|
+
};
|
|
2334
|
+
}, [pi]);
|
|
2335
|
+
const ModelPicker = pi.ui.ModelPicker;
|
|
2336
|
+
return /* @__PURE__ */ React.createElement(ModelPicker, {
|
|
2337
|
+
value,
|
|
2338
|
+
label: ExtensionWords.of(pi.ui.language).modelLabel,
|
|
2339
|
+
onChange: (model) => {
|
|
2340
|
+
setValue(model);
|
|
2341
|
+
MakeModel.set(pi, model).catch((error) => pi.ui.notify(error instanceof Error ? error.message : String(error), "error"));
|
|
2342
|
+
}
|
|
2343
|
+
});
|
|
2344
|
+
}
|
|
2345
|
+
function makeSettings(pi) {
|
|
2346
|
+
const words = () => ExtensionWords.of(pi.ui.language);
|
|
2347
|
+
return {
|
|
2348
|
+
title: () => words().settingsTitle,
|
|
2349
|
+
icon: icon(pi, "Sparkles", "Puzzle"),
|
|
2350
|
+
rows: [
|
|
2351
|
+
{
|
|
2352
|
+
key: "model",
|
|
2353
|
+
label: () => words().modelLabel,
|
|
2354
|
+
description: () => words().modelHint,
|
|
2355
|
+
stacked: true,
|
|
2356
|
+
render: () => /* @__PURE__ */ React.createElement(ModelSetting, {
|
|
2357
|
+
pi
|
|
2358
|
+
})
|
|
2359
|
+
}
|
|
2360
|
+
]
|
|
2361
|
+
};
|
|
2362
|
+
}
|
|
2363
|
+
|
|
1960
2364
|
// web-src/signal.ts
|
|
1961
2365
|
class Signal {
|
|
1962
2366
|
value;
|
|
@@ -1986,11 +2390,11 @@ class Signal {
|
|
|
1986
2390
|
|
|
1987
2391
|
// web-src/market-style.ts
|
|
1988
2392
|
var MARKET_STYLE = `
|
|
1989
|
-
.tax-tabs { display: inline-flex; align-self: flex-start; gap: 2px; margin-bottom: -10px; padding: 3px; border-radius: 10px; background: var(--ta-
|
|
2393
|
+
.tax-tabs { display: inline-flex; align-self: flex-start; gap: 2px; margin-bottom: -10px; padding: 3px; border-radius: 10px; background: var(--ta-raised); }
|
|
1990
2394
|
.tax-tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 14px 0 11px; border: 0; border-radius: 7px; background: none; color: var(--ta-secondary); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; cursor: pointer; transition: background 140ms, color 140ms, box-shadow 140ms; }
|
|
1991
2395
|
.tax-tab:hover { color: var(--ta-text); }
|
|
1992
|
-
|
|
1993
|
-
|
|
2396
|
+
/* As the segmented controls of the page (its settings). */
|
|
2397
|
+
.tax-tab.tax-active { background: var(--ta-segment, var(--ta-card)); color: var(--ta-text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--ta-border); }
|
|
1994
2398
|
.tax-tab:focus-visible { outline: 2px solid var(--ta-border-focus); outline-offset: 1px; }
|
|
1995
2399
|
.tax-empty-action { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 16px; }
|
|
1996
2400
|
.tax-market { display: flex; flex-direction: column; gap: 14px; }
|
|
@@ -2024,8 +2428,7 @@ var MARKET_STYLE = `
|
|
|
2024
2428
|
.tax-card-description { display: -webkit-box; margin: 0; overflow: hidden; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
|
|
2025
2429
|
.tax-card-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; min-height: 17px; }
|
|
2026
2430
|
.tax-card-time { margin-left: auto; color: var(--ta-muted); font-size: calc(11.5px * var(--ta-font-scale)); white-space: nowrap; }
|
|
2027
|
-
.tax-face { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 26%; background:
|
|
2028
|
-
:root:not([data-theme='light']) .tax-face { background: hsl(var(--tax-hue) 60% 55% / .17); color: hsl(var(--tax-hue) 75% 74%); }
|
|
2431
|
+
.tax-face { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 26%; background: var(--tax-tint); color: var(--tax-ink); font-weight: 700; letter-spacing: -.02em; user-select: none; }
|
|
2029
2432
|
.tax-install { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex: none; height: 28px; padding: 0 14px; border: 0; border-radius: 14px; background: color-mix(in srgb, var(--ta-green) 14%, transparent); color: color-mix(in srgb, var(--ta-green) 82%, var(--ta-text)); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; white-space: nowrap; cursor: pointer; transition: background 140ms, color 140ms, transform 120ms var(--ta-ease), filter 140ms; }
|
|
2030
2433
|
.tax-install:hover { background: color-mix(in srgb, var(--ta-green) 24%, transparent); }
|
|
2031
2434
|
.tax-install:active { transform: scale(.95); }
|
|
@@ -2092,12 +2495,13 @@ var STYLE = `
|
|
|
2092
2495
|
.tax-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }
|
|
2093
2496
|
.tax-section-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 600; }
|
|
2094
2497
|
.tax-count { padding: 0 6px; border-radius: 8px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 500; line-height: calc(16px * var(--ta-font-scale)); }
|
|
2095
|
-
|
|
2096
|
-
.tax-button
|
|
2498
|
+
/* As the buttons of the page (.ta-button). */
|
|
2499
|
+
.tax-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--ta-border); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); font-weight: 500; white-space: nowrap; cursor: pointer; transition: background 120ms, border-color 120ms; }
|
|
2500
|
+
.tax-button:hover:not(:disabled) { background: var(--ta-hover); }
|
|
2097
2501
|
.tax-button:disabled { opacity: .55; cursor: default; }
|
|
2098
|
-
.tax-list { border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }
|
|
2502
|
+
.tax-list { --ta-swipe-bg: var(--ta-main); border: 1px solid var(--ta-border-muted); border-radius: 12px; overflow: hidden; }
|
|
2099
2503
|
.tax-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; }
|
|
2100
|
-
.tax-
|
|
2504
|
+
.tax-item + .tax-item { border-top: 1px solid var(--ta-border-muted); }
|
|
2101
2505
|
.tax-row:hover { background: var(--ta-hover); }
|
|
2102
2506
|
.tax-row:hover .tax-icon, .tax-row:hover .tax-tag { background: var(--ta-hover-strong); }
|
|
2103
2507
|
.tax-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--ta-chip); color: var(--tax-accent); transition: color 160ms; }
|
|
@@ -2105,16 +2509,22 @@ var STYLE = `
|
|
|
2105
2509
|
.tax-name { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
|
|
2106
2510
|
.tax-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
2107
2511
|
.tax-version { flex: none; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-weight: 400; }
|
|
2108
|
-
.tax-
|
|
2512
|
+
.tax-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
|
|
2513
|
+
.tax-description { flex: 1; min-width: 0; overflow: hidden; color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); text-overflow: ellipsis; white-space: nowrap; }
|
|
2109
2514
|
.tax-tag { flex: none; padding: 0 6px; border-radius: 5px; background: var(--ta-chip); color: var(--ta-muted); font-size: calc(11px * var(--ta-font-scale)); font-weight: 400; line-height: calc(17px * var(--ta-font-scale)); }
|
|
2110
2515
|
.tax-off .tax-main { opacity: .5; }
|
|
2111
2516
|
.tax-off .tax-icon { color: var(--ta-muted); }
|
|
2112
2517
|
.tax-actions { display: flex; gap: 2px; flex: none; opacity: 0; transition: opacity 120ms; }
|
|
2113
2518
|
.tax-row:hover .tax-actions, .tax-row:focus-within .tax-actions { opacity: 1; }
|
|
2114
|
-
@media (hover: none) { .tax-actions { opacity: 1; } }
|
|
2115
2519
|
.tax-action { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--ta-muted); cursor: pointer; }
|
|
2116
2520
|
.tax-action:hover { background: var(--ta-hover-strong); color: var(--ta-text); }
|
|
2117
2521
|
.tax-action.tax-danger:hover { color: var(--ta-red); }
|
|
2522
|
+
/* A finger: one … for the menu instead of a row of icons, and a target of a finger's size */
|
|
2523
|
+
.tax-more { flex: none; width: 36px; height: 36px; margin-right: -4px; }
|
|
2524
|
+
:root[data-handheld] .tax-body { gap: 24px; padding: 16px 12px 40px; }
|
|
2525
|
+
:root[data-handheld] .tax-row { gap: 10px; padding: 10px 12px; }
|
|
2526
|
+
:root[data-handheld] .tax-steps { gap: 4px; }
|
|
2527
|
+
:root[data-handheld] .tax-step { flex: 1; width: auto; min-width: 0; }
|
|
2118
2528
|
.tax-switch { appearance: none; -webkit-appearance: none; position: relative; width: 36px; height: 20px; flex: none; margin: 0 0 0 4px; border-radius: 10px; background: var(--ta-hover-strong); cursor: pointer; transition: background 160ms; }
|
|
2119
2529
|
.tax-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform 180ms var(--ta-ease); }
|
|
2120
2530
|
.tax-switch:checked { background: var(--ta-green); }
|
|
@@ -2184,6 +2594,8 @@ function activate(pi) {
|
|
|
2184
2594
|
order: 90
|
|
2185
2595
|
});
|
|
2186
2596
|
registerSearches(context);
|
|
2597
|
+
pi.registerComposerAddon(composerAddon(pi));
|
|
2598
|
+
pi.registerSettings(makeSettings(pi));
|
|
2187
2599
|
pi.on("agent_end", () => void store.load());
|
|
2188
2600
|
return removeStyle;
|
|
2189
2601
|
}
|