@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
package/dist/gateway.mjs
CHANGED
|
@@ -253,6 +253,8 @@ var WaitUntilEvent;
|
|
|
253
253
|
})(WaitUntilEvent || (WaitUntilEvent = {}));
|
|
254
254
|
|
|
255
255
|
// ../../packages/rpc/esm/node/websocket/websocket-frames.js
|
|
256
|
+
import { constants, deflateRawSync, inflateRawSync } from "node:zlib";
|
|
257
|
+
|
|
256
258
|
class WebSocketProtocolError extends Error {
|
|
257
259
|
constructor(code, message) {
|
|
258
260
|
super(message);
|
|
@@ -267,11 +269,11 @@ var WebSocketFrames;
|
|
|
267
269
|
WebSocketFrames2.CLOSE = 8;
|
|
268
270
|
WebSocketFrames2.PING = 9;
|
|
269
271
|
WebSocketFrames2.PONG = 10;
|
|
270
|
-
function encode(opcode, payload = Buffer.alloc(0)) {
|
|
272
|
+
function encode(opcode, payload = Buffer.alloc(0), compressed = false) {
|
|
271
273
|
const length = payload.length;
|
|
272
274
|
const size = length < 126 ? 2 : length < 65536 ? 4 : 10;
|
|
273
275
|
const header = Buffer.alloc(size);
|
|
274
|
-
header[0] = 128 | opcode;
|
|
276
|
+
header[0] = 128 | (compressed ? 64 : 0) | opcode;
|
|
275
277
|
if (length < 126) {
|
|
276
278
|
header[1] = length;
|
|
277
279
|
} else if (length < 65536) {
|
|
@@ -300,8 +302,9 @@ var WebSocketFrames;
|
|
|
300
302
|
})(WebSocketFrames || (WebSocketFrames = {}));
|
|
301
303
|
|
|
302
304
|
class WebSocketFrameParser {
|
|
303
|
-
constructor(maxPayload) {
|
|
305
|
+
constructor(maxPayload, deflate = false) {
|
|
304
306
|
this.maxPayload = maxPayload;
|
|
307
|
+
this.deflate = deflate;
|
|
305
308
|
this.buffer = Buffer.alloc(0);
|
|
306
309
|
}
|
|
307
310
|
push(chunk) {
|
|
@@ -319,7 +322,8 @@ class WebSocketFrameParser {
|
|
|
319
322
|
}
|
|
320
323
|
const fin = (buffer[0] & 128) !== 0;
|
|
321
324
|
const opcode = buffer[0] & 15;
|
|
322
|
-
|
|
325
|
+
const compressed = (buffer[0] & 64) !== 0;
|
|
326
|
+
if ((buffer[0] & (this.deflate ? 48 : 112)) !== 0) {
|
|
323
327
|
throw new WebSocketProtocolError(1002, "Reserved bits are set.");
|
|
324
328
|
}
|
|
325
329
|
if (![0, 1, 2, 8, 9, 10].includes(opcode)) {
|
|
@@ -347,8 +351,11 @@ class WebSocketFrameParser {
|
|
|
347
351
|
length = high * 4294967296 + buffer.readUInt32BE(6);
|
|
348
352
|
offset = 10;
|
|
349
353
|
}
|
|
350
|
-
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin)) {
|
|
351
|
-
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes and not
|
|
354
|
+
if (WebSocketFrames.isControl(opcode) && (length > 125 || !fin || compressed)) {
|
|
355
|
+
throw new WebSocketProtocolError(1002, "Control frames are at most 125 bytes, not fragmented and not compressed.");
|
|
356
|
+
}
|
|
357
|
+
if (compressed && opcode === WebSocketFrames.CONTINUATION) {
|
|
358
|
+
throw new WebSocketProtocolError(1002, "Only the first frame of a message says it is compressed.");
|
|
352
359
|
}
|
|
353
360
|
if (length > this.maxPayload) {
|
|
354
361
|
throw new WebSocketProtocolError(1009, `The message is larger than ${this.maxPayload} bytes.`);
|
|
@@ -362,9 +369,45 @@ class WebSocketFrameParser {
|
|
|
362
369
|
payload[i] ^= mask[i & 3];
|
|
363
370
|
}
|
|
364
371
|
this.buffer = buffer.subarray(offset + 4 + length);
|
|
365
|
-
return { fin, opcode, payload };
|
|
372
|
+
return { fin, compressed, opcode, payload };
|
|
366
373
|
}
|
|
367
374
|
}
|
|
375
|
+
var TAIL = Buffer.from([0, 0, 255, 255]);
|
|
376
|
+
var WebSocketDeflate;
|
|
377
|
+
(function(WebSocketDeflate2) {
|
|
378
|
+
WebSocketDeflate2.RESPONSE = "permessage-deflate; server_no_context_takeover; client_no_context_takeover";
|
|
379
|
+
WebSocketDeflate2.MIN_BYTES = 1024;
|
|
380
|
+
function offered(header) {
|
|
381
|
+
const offers = (Array.isArray(header) ? header.join(",") : header !== null && header !== undefined ? header : "").split(",");
|
|
382
|
+
return offers.some((offer) => {
|
|
383
|
+
const [name, ...params] = offer.split(";").map((part) => part.trim().toLowerCase());
|
|
384
|
+
if (name !== "permessage-deflate") {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
return params.every((param) => {
|
|
388
|
+
const [key, value] = param.split("=").map((part) => part.trim().replace(/^"|"$/g, ""));
|
|
389
|
+
return key !== "server_max_window_bits" || value === "15";
|
|
390
|
+
});
|
|
391
|
+
});
|
|
392
|
+
}
|
|
393
|
+
WebSocketDeflate2.offered = offered;
|
|
394
|
+
function compress(data) {
|
|
395
|
+
const deflated = deflateRawSync(data, { level: 3, finishFlush: constants.Z_SYNC_FLUSH });
|
|
396
|
+
return deflated.subarray(0, deflated.length - TAIL.length);
|
|
397
|
+
}
|
|
398
|
+
WebSocketDeflate2.compress = compress;
|
|
399
|
+
function decompress(data, maxBytes) {
|
|
400
|
+
try {
|
|
401
|
+
return inflateRawSync(Buffer.concat([data, TAIL]), { maxOutputLength: maxBytes, finishFlush: constants.Z_SYNC_FLUSH });
|
|
402
|
+
} catch (error) {
|
|
403
|
+
if (error.code === "ERR_BUFFER_TOO_LARGE") {
|
|
404
|
+
throw new WebSocketProtocolError(1009, `The message is larger than ${maxBytes} bytes.`);
|
|
405
|
+
}
|
|
406
|
+
throw new WebSocketProtocolError(1007, "A compressed message does not inflate.");
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
WebSocketDeflate2.decompress = decompress;
|
|
410
|
+
})(WebSocketDeflate || (WebSocketDeflate = {}));
|
|
368
411
|
|
|
369
412
|
// ../../packages/rpc/esm/node/websocket/websocket-connection.js
|
|
370
413
|
class WebSocketConnection {
|
|
@@ -394,17 +437,20 @@ class WebSocketConnection {
|
|
|
394
437
|
if (typeof key !== "string" || Buffer.from(key, "base64").length !== 16) {
|
|
395
438
|
return { status: 400, message: "Missing or invalid Sec-WebSocket-Key." };
|
|
396
439
|
}
|
|
397
|
-
|
|
440
|
+
const deflate = !!request.headers.origin && WebSocketDeflate.offered(request.headers["sec-websocket-extensions"]);
|
|
441
|
+
return { key, deflate };
|
|
398
442
|
}
|
|
399
443
|
static accept(key) {
|
|
400
444
|
return createHash("sha1").update(key + WebSocketConnection.GUID).digest("base64");
|
|
401
445
|
}
|
|
402
446
|
static open(socket, key, head, options) {
|
|
447
|
+
const extensions = options.deflate ? `Sec-WebSocket-Extensions: ${WebSocketDeflate.RESPONSE}\r
|
|
448
|
+
` : "";
|
|
403
449
|
socket.write(`HTTP/1.1 101 Switching Protocols\r
|
|
404
450
|
Upgrade: websocket\r
|
|
405
451
|
Connection: Upgrade\r
|
|
406
452
|
Sec-WebSocket-Accept: ${WebSocketConnection.accept(key)}\r
|
|
407
|
-
\r
|
|
453
|
+
${extensions}\r
|
|
408
454
|
`);
|
|
409
455
|
const connection = new WebSocketConnection(socket, options);
|
|
410
456
|
connection.start(head);
|
|
@@ -426,10 +472,11 @@ ${message}`);
|
|
|
426
472
|
this.onCloseEmitter = new Emitter;
|
|
427
473
|
this.decoder = new TextDecoder("utf-8", { fatal: true });
|
|
428
474
|
this.fragments = [];
|
|
475
|
+
this.compressed = false;
|
|
429
476
|
this.fragmentsLength = 0;
|
|
430
477
|
this.state = "open";
|
|
431
478
|
this.alive = true;
|
|
432
|
-
this.parser = new WebSocketFrameParser(options.maxPayload);
|
|
479
|
+
this.parser = new WebSocketFrameParser(options.maxPayload, !!options.deflate);
|
|
433
480
|
}
|
|
434
481
|
get onMessage() {
|
|
435
482
|
return this.onMessageEmitter.event;
|
|
@@ -442,7 +489,12 @@ ${message}`);
|
|
|
442
489
|
}
|
|
443
490
|
send(text) {
|
|
444
491
|
if (this.state === "open") {
|
|
445
|
-
|
|
492
|
+
const data = Buffer.from(text);
|
|
493
|
+
if (this.options.deflate && data.length >= WebSocketDeflate.MIN_BYTES) {
|
|
494
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, WebSocketDeflate.compress(data), true));
|
|
495
|
+
} else {
|
|
496
|
+
this.socket.write(WebSocketFrames.encode(WebSocketFrames.TEXT, data));
|
|
497
|
+
}
|
|
446
498
|
}
|
|
447
499
|
}
|
|
448
500
|
close(code = 1000, reason = "") {
|
|
@@ -479,13 +531,13 @@ ${message}`);
|
|
|
479
531
|
try {
|
|
480
532
|
for (const frame of this.parser.push(chunk)) {
|
|
481
533
|
this.alive = true;
|
|
482
|
-
this.handle(frame.opcode, frame.fin, frame.payload);
|
|
534
|
+
this.handle(frame.opcode, frame.fin, frame.payload, frame.compressed);
|
|
483
535
|
}
|
|
484
536
|
} catch (error) {
|
|
485
537
|
this.close(error instanceof WebSocketProtocolError ? error.code : 1011, error instanceof Error ? error.message : "");
|
|
486
538
|
}
|
|
487
539
|
}
|
|
488
|
-
handle(opcode, fin, payload) {
|
|
540
|
+
handle(opcode, fin, payload, compressed = false) {
|
|
489
541
|
switch (opcode) {
|
|
490
542
|
case WebSocketFrames.PING:
|
|
491
543
|
this.socket.write(WebSocketFrames.encode(WebSocketFrames.PONG, payload));
|
|
@@ -509,6 +561,7 @@ ${message}`);
|
|
|
509
561
|
if (this.fragments.length) {
|
|
510
562
|
throw new WebSocketProtocolError(1002, "A new message started inside a fragmented one.");
|
|
511
563
|
}
|
|
564
|
+
this.compressed = compressed;
|
|
512
565
|
break;
|
|
513
566
|
case WebSocketFrames.CONTINUATION:
|
|
514
567
|
if (!this.fragments.length) {
|
|
@@ -522,9 +575,11 @@ ${message}`);
|
|
|
522
575
|
}
|
|
523
576
|
this.fragments.push(payload);
|
|
524
577
|
if (fin) {
|
|
525
|
-
const
|
|
578
|
+
const joined = this.fragments.length === 1 ? this.fragments[0] : Buffer.concat(this.fragments);
|
|
579
|
+
const message = this.compressed ? WebSocketDeflate.decompress(joined, this.options.maxPayload) : joined;
|
|
526
580
|
this.fragments = [];
|
|
527
581
|
this.fragmentsLength = 0;
|
|
582
|
+
this.compressed = false;
|
|
528
583
|
let text;
|
|
529
584
|
try {
|
|
530
585
|
text = this.decoder.decode(message);
|
|
@@ -844,6 +899,21 @@ var TaLocation;
|
|
|
844
899
|
return name || (remote === null || remote === undefined ? undefined : remote.host) || location;
|
|
845
900
|
}
|
|
846
901
|
TaLocation2.basename = basename;
|
|
902
|
+
function homeRelative(location) {
|
|
903
|
+
var _a;
|
|
904
|
+
const remote = parse(location);
|
|
905
|
+
const path2 = remote ? remote.path ? remote.path.slice(1) : "~" : location;
|
|
906
|
+
const match = /^~(?:[\\/]+(.*))?$/.exec(path2);
|
|
907
|
+
return match ? ((_a = match[1]) !== null && _a !== undefined ? _a : "").replace(/[\\/]+$/, "") : undefined;
|
|
908
|
+
}
|
|
909
|
+
TaLocation2.homeRelative = homeRelative;
|
|
910
|
+
function isAbsolute(location) {
|
|
911
|
+
if (homeRelative(location) !== undefined) {
|
|
912
|
+
return false;
|
|
913
|
+
}
|
|
914
|
+
return isRemote(location) || /^([\\/]|[A-Za-z]:)/.test(location);
|
|
915
|
+
}
|
|
916
|
+
TaLocation2.isAbsolute = isAbsolute;
|
|
847
917
|
function parentPath(path2) {
|
|
848
918
|
const trimmed = path2.replace(/[\\/]+$/, "");
|
|
849
919
|
const at = Math.max(trimmed.lastIndexOf("/"), trimmed.lastIndexOf("\\"));
|
|
@@ -879,8 +949,64 @@ var TaPackageTextUtil;
|
|
|
879
949
|
var TaRelayServer = Symbol("TaRelayServer");
|
|
880
950
|
// ../../ta-packages/ta-protocol/esm/common/remote-protocol.js
|
|
881
951
|
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
952
|
+
// ../../ta-packages/ta-protocol/esm/common/room-protocol.js
|
|
953
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
954
|
+
var TaRoomWatchUtil;
|
|
955
|
+
(function(TaRoomWatchUtil2) {
|
|
956
|
+
function of(messages, state) {
|
|
957
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
958
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
959
|
+
}
|
|
960
|
+
TaRoomWatchUtil2.of = of;
|
|
961
|
+
function union(watches) {
|
|
962
|
+
let messages = false;
|
|
963
|
+
const state = [];
|
|
964
|
+
for (const watch of watches) {
|
|
965
|
+
messages || (messages = watch.messages);
|
|
966
|
+
state.push(...watch.state);
|
|
967
|
+
}
|
|
968
|
+
return of(messages, messages ? [] : state);
|
|
969
|
+
}
|
|
970
|
+
TaRoomWatchUtil2.union = union;
|
|
971
|
+
function same(a, b) {
|
|
972
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
973
|
+
`) === b.state.join(`
|
|
974
|
+
`);
|
|
975
|
+
}
|
|
976
|
+
TaRoomWatchUtil2.same = same;
|
|
977
|
+
function hears(watch, event) {
|
|
978
|
+
if (event.type === "message") {
|
|
979
|
+
return watch.messages;
|
|
980
|
+
}
|
|
981
|
+
if (event.type === "state") {
|
|
982
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
983
|
+
}
|
|
984
|
+
return true;
|
|
985
|
+
}
|
|
986
|
+
TaRoomWatchUtil2.hears = hears;
|
|
987
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
882
988
|
// ../../ta-packages/ta-protocol/esm/common/settings-protocol.js
|
|
883
989
|
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
990
|
+
// ../../ta-packages/ta-protocol/esm/common/ta-extension-host.js
|
|
991
|
+
var TA_HOST_EVENT = "ta:host";
|
|
992
|
+
var TaHostUtil;
|
|
993
|
+
(function(TaHostUtil2) {
|
|
994
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
995
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
996
|
+
return new Promise((resolve) => {
|
|
997
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
998
|
+
const request = {
|
|
999
|
+
name,
|
|
1000
|
+
resolve: (answer) => {
|
|
1001
|
+
clearTimeout(timer);
|
|
1002
|
+
resolve(answer);
|
|
1003
|
+
}
|
|
1004
|
+
};
|
|
1005
|
+
events.emit(TA_HOST_EVENT, request);
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
TaHostUtil2.reach = reach;
|
|
1009
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
884
1010
|
// ../../ta-packages/ta-protocol/esm/common/ta-protocol.js
|
|
885
1011
|
var TaServer = Symbol("TaServer");
|
|
886
1012
|
var TaClient = Symbol("TaClient");
|
|
@@ -893,6 +1019,10 @@ var TaErrorCode = {
|
|
|
893
1019
|
MODEL_NOT_FOUND: "CELL_TA_MODEL_NOT_FOUND",
|
|
894
1020
|
INVALID_ARGUMENT: "CELL_TA_INVALID_ARGUMENT",
|
|
895
1021
|
COMMAND_FAILED: "CELL_TA_COMMAND_FAILED",
|
|
1022
|
+
NOTHING_TO_COMPACT: "CELL_TA_NOTHING_TO_COMPACT",
|
|
1023
|
+
ALREADY_COMPACTED: "CELL_TA_ALREADY_COMPACTED",
|
|
1024
|
+
SESSION_BUSY: "CELL_TA_SESSION_BUSY",
|
|
1025
|
+
CANCELLED: "CELL_TA_CANCELLED",
|
|
896
1026
|
NOT_SIGNED_IN: "CELL_TA_NOT_SIGNED_IN",
|
|
897
1027
|
ENVIRONMENT_FAILED: "CELL_TA_ENVIRONMENT_FAILED",
|
|
898
1028
|
CONNECTION_LOST: "CELL_TA_CONNECTION_LOST"
|
|
@@ -909,6 +1039,15 @@ var TaErrorUtil;
|
|
|
909
1039
|
TaErrorUtil2.code = code;
|
|
910
1040
|
})(TaErrorUtil || (TaErrorUtil = {}));
|
|
911
1041
|
var TA_RPC_ERROR_CODE = -32050;
|
|
1042
|
+
var TaSlashCommandUtil;
|
|
1043
|
+
(function(TaSlashCommandUtil2) {
|
|
1044
|
+
function description(command, language) {
|
|
1045
|
+
var _a, _b;
|
|
1046
|
+
const { descriptions } = command;
|
|
1047
|
+
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;
|
|
1048
|
+
}
|
|
1049
|
+
TaSlashCommandUtil2.description = description;
|
|
1050
|
+
})(TaSlashCommandUtil || (TaSlashCommandUtil = {}));
|
|
912
1051
|
var TaMessageContext;
|
|
913
1052
|
(function(TaMessageContext2) {
|
|
914
1053
|
const BLOCK = /^<context>\n?[\s\S]*?\n?<\/context>\n?/;
|
|
@@ -924,6 +1063,109 @@ ${message}`;
|
|
|
924
1063
|
}
|
|
925
1064
|
TaMessageContext2.strip = strip;
|
|
926
1065
|
})(TaMessageContext || (TaMessageContext = {}));
|
|
1066
|
+
var TaImageNote;
|
|
1067
|
+
(function(TaImageNote2) {
|
|
1068
|
+
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 [^\]]+\.\]$/;
|
|
1069
|
+
function strip(text) {
|
|
1070
|
+
const lines = text.split(`
|
|
1071
|
+
`);
|
|
1072
|
+
const kept = lines.filter((line) => !NOTE.test(line.trim()));
|
|
1073
|
+
if (kept.length === lines.length) {
|
|
1074
|
+
return text;
|
|
1075
|
+
}
|
|
1076
|
+
return kept.join(`
|
|
1077
|
+
`).replace(/\n+$/, "").replace(/^\n+/, "");
|
|
1078
|
+
}
|
|
1079
|
+
TaImageNote2.strip = strip;
|
|
1080
|
+
})(TaImageNote || (TaImageNote = {}));
|
|
1081
|
+
var TaImageSize;
|
|
1082
|
+
(function(TaImageSize2) {
|
|
1083
|
+
const JPEG_BYTES = 256 * 1024;
|
|
1084
|
+
function of(base64) {
|
|
1085
|
+
var _a, _b, _c;
|
|
1086
|
+
let bytes;
|
|
1087
|
+
try {
|
|
1088
|
+
const binary = atob(base64.slice(0, Math.ceil(JPEG_BYTES * 4 / 3 / 4) * 4));
|
|
1089
|
+
bytes = Uint8Array.from(binary, (char) => char.charCodeAt(0));
|
|
1090
|
+
} catch (_d) {
|
|
1091
|
+
return;
|
|
1092
|
+
}
|
|
1093
|
+
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);
|
|
1094
|
+
return size && size.width > 0 && size.height > 0 ? size : undefined;
|
|
1095
|
+
}
|
|
1096
|
+
TaImageSize2.of = of;
|
|
1097
|
+
function u16be(bytes, at) {
|
|
1098
|
+
return bytes[at] << 8 | bytes[at + 1];
|
|
1099
|
+
}
|
|
1100
|
+
function u16le(bytes, at) {
|
|
1101
|
+
return bytes[at] | bytes[at + 1] << 8;
|
|
1102
|
+
}
|
|
1103
|
+
function u24le(bytes, at) {
|
|
1104
|
+
return bytes[at] | bytes[at + 1] << 8 | bytes[at + 2] << 16;
|
|
1105
|
+
}
|
|
1106
|
+
function u32be(bytes, at) {
|
|
1107
|
+
return (bytes[at] << 24 | bytes[at + 1] << 16 | bytes[at + 2] << 8 | bytes[at + 3]) >>> 0;
|
|
1108
|
+
}
|
|
1109
|
+
function text(bytes, at, length) {
|
|
1110
|
+
return String.fromCharCode(...bytes.subarray(at, at + length));
|
|
1111
|
+
}
|
|
1112
|
+
function png(bytes) {
|
|
1113
|
+
return bytes.length >= 24 && bytes[0] === 137 && text(bytes, 1, 3) === "PNG" ? { width: u32be(bytes, 16), height: u32be(bytes, 20) } : undefined;
|
|
1114
|
+
}
|
|
1115
|
+
function gif(bytes) {
|
|
1116
|
+
return bytes.length >= 10 && text(bytes, 0, 3) === "GIF" ? { width: u16le(bytes, 6), height: u16le(bytes, 8) } : undefined;
|
|
1117
|
+
}
|
|
1118
|
+
function webp(bytes) {
|
|
1119
|
+
if (bytes.length < 30 || text(bytes, 0, 4) !== "RIFF" || text(bytes, 8, 4) !== "WEBP") {
|
|
1120
|
+
return;
|
|
1121
|
+
}
|
|
1122
|
+
switch (text(bytes, 12, 4)) {
|
|
1123
|
+
case "VP8 ":
|
|
1124
|
+
return { width: u16le(bytes, 26) & 16383, height: u16le(bytes, 28) & 16383 };
|
|
1125
|
+
case "VP8L": {
|
|
1126
|
+
const bits = bytes[21] | bytes[22] << 8 | bytes[23] << 16 | bytes[24] << 24;
|
|
1127
|
+
return { width: (bits & 16383) + 1, height: (bits >> 14 & 16383) + 1 };
|
|
1128
|
+
}
|
|
1129
|
+
case "VP8X":
|
|
1130
|
+
return { width: u24le(bytes, 24) + 1, height: u24le(bytes, 27) + 1 };
|
|
1131
|
+
default:
|
|
1132
|
+
return;
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
function jpeg(bytes) {
|
|
1136
|
+
if (bytes[0] !== 255 || bytes[1] !== 216) {
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
let at = 2;
|
|
1140
|
+
while (at + 9 < bytes.length) {
|
|
1141
|
+
if (bytes[at] !== 255) {
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1144
|
+
const marker = bytes[at + 1];
|
|
1145
|
+
if (marker >= 192 && marker <= 207 && marker !== 196 && marker !== 200 && marker !== 204) {
|
|
1146
|
+
return { width: u16be(bytes, at + 7), height: u16be(bytes, at + 5) };
|
|
1147
|
+
}
|
|
1148
|
+
at += 2 + u16be(bytes, at + 2);
|
|
1149
|
+
}
|
|
1150
|
+
return;
|
|
1151
|
+
}
|
|
1152
|
+
})(TaImageSize || (TaImageSize = {}));
|
|
1153
|
+
var TaAgentSummary;
|
|
1154
|
+
(function(TaAgentSummary2) {
|
|
1155
|
+
const START = /^\s*<conversation_history_summary>/;
|
|
1156
|
+
const BLOCK = /^\s*<conversation_history_summary>[\s\S]*?(?:<\/conversation_history_summary>\s*|$)/;
|
|
1157
|
+
function read(text) {
|
|
1158
|
+
if (!START.test(text)) {
|
|
1159
|
+
return;
|
|
1160
|
+
}
|
|
1161
|
+
return text.replace(/<\/?(?:conversation_history_summary|summary)>/g, "").replace(/<\/?\w*$/, "").trim();
|
|
1162
|
+
}
|
|
1163
|
+
TaAgentSummary2.read = read;
|
|
1164
|
+
function strip(text) {
|
|
1165
|
+
return text.replace(BLOCK, "");
|
|
1166
|
+
}
|
|
1167
|
+
TaAgentSummary2.strip = strip;
|
|
1168
|
+
})(TaAgentSummary || (TaAgentSummary = {}));
|
|
927
1169
|
var TaSkillUse;
|
|
928
1170
|
(function(TaSkillUse2) {
|
|
929
1171
|
const BLOCK = /^<skill name="([^"]+)" location="([^"]+)">\n([\s\S]*?)\n<\/skill>(?:\n\n([\s\S]+))?$/;
|
|
@@ -1082,7 +1324,7 @@ class OidcSignIn {
|
|
|
1082
1324
|
throw new SignInError(`${this.name}: ${(_b = (_a = token.error_description) !== null && _a !== undefined ? _a : token.error) !== null && _b !== undefined ? _b : "no access token"}`);
|
|
1083
1325
|
}
|
|
1084
1326
|
const user = await SignInHttp.json(userinfo_endpoint, { headers: { Authorization: `Bearer ${token.access_token}`, Accept: "application/json" } });
|
|
1085
|
-
const email = user.email && user.email_verified
|
|
1327
|
+
const email = user.email && (user.email_verified === true || user.email_verified === "true") ? user.email : undefined;
|
|
1086
1328
|
if (!email && (this.options.requireEmail || !user.sub)) {
|
|
1087
1329
|
throw new SignInError(`${this.name}: the account has no verified email address`);
|
|
1088
1330
|
}
|
|
@@ -1167,6 +1409,7 @@ var SignInProviders;
|
|
|
1167
1409
|
// ../../ta-packages/ta-host/esm/node/sign-in/sign-in-flow.js
|
|
1168
1410
|
var PENDING_TTL_MS = 10 * 60 * 1000;
|
|
1169
1411
|
var BIND_TTL_MS = 5 * 60 * 1000;
|
|
1412
|
+
var MAX_PENDING_SIGN_INS = 1000;
|
|
1170
1413
|
var SignInUtil;
|
|
1171
1414
|
(function(SignInUtil2) {
|
|
1172
1415
|
function origin(request, publicUrl) {
|
|
@@ -1219,6 +1462,12 @@ class SignInFlow {
|
|
|
1219
1462
|
if (bind) {
|
|
1220
1463
|
this.binds.delete(bind);
|
|
1221
1464
|
}
|
|
1465
|
+
for (const oldest of this.pending.keys()) {
|
|
1466
|
+
if (this.pending.size < MAX_PENDING_SIGN_INS) {
|
|
1467
|
+
break;
|
|
1468
|
+
}
|
|
1469
|
+
this.pending.delete(oldest);
|
|
1470
|
+
}
|
|
1222
1471
|
const state = randomBytes2(18).toString("base64url");
|
|
1223
1472
|
const { verifier, challenge } = SignInUtil.pkce();
|
|
1224
1473
|
const redirectUri = SignInUtil.redirectUri(origin, provider.id);
|
|
@@ -1734,6 +1983,7 @@ class DockerSandbox {
|
|
|
1734
1983
|
Memory: this.options.memory,
|
|
1735
1984
|
NanoCpus: this.options.cpus ? Math.round(this.options.cpus * 1e9) : undefined,
|
|
1736
1985
|
PidsLimit: this.options.pids,
|
|
1986
|
+
CapDrop: ["NET_RAW"],
|
|
1737
1987
|
RestartPolicy: { Name: "unless-stopped" },
|
|
1738
1988
|
Init: false
|
|
1739
1989
|
}
|
|
@@ -2183,6 +2433,7 @@ class GatewayService {
|
|
|
2183
2433
|
|
|
2184
2434
|
// ../../ta-packages/ta-gateway/esm/node/gateway-socket.js
|
|
2185
2435
|
var MAX_QUEUED = 256;
|
|
2436
|
+
var MAX_QUEUED_BYTES = 16 * 1024 * 1024;
|
|
2186
2437
|
|
|
2187
2438
|
class GatewaySocket {
|
|
2188
2439
|
constructor(browser, caller, environments, service) {
|
|
@@ -2191,6 +2442,7 @@ class GatewaySocket {
|
|
|
2191
2442
|
this.environments = environments;
|
|
2192
2443
|
this.service = service;
|
|
2193
2444
|
this.queued = [];
|
|
2445
|
+
this.queuedBytes = 0;
|
|
2194
2446
|
this.closed = false;
|
|
2195
2447
|
this.answering = 0;
|
|
2196
2448
|
this.release = environments.connect(caller.tenant.id);
|
|
@@ -2221,6 +2473,7 @@ class GatewaySocket {
|
|
|
2221
2473
|
const inner = new WebSocket(url);
|
|
2222
2474
|
this.inner = inner;
|
|
2223
2475
|
inner.onopen = () => {
|
|
2476
|
+
this.queuedBytes = 0;
|
|
2224
2477
|
for (const text of this.queued.splice(0)) {
|
|
2225
2478
|
inner.send(text);
|
|
2226
2479
|
}
|
|
@@ -2267,8 +2520,9 @@ class GatewaySocket {
|
|
|
2267
2520
|
var _a;
|
|
2268
2521
|
if (((_a = this.inner) === null || _a === undefined ? undefined : _a.readyState) === WebSocket.OPEN) {
|
|
2269
2522
|
this.inner.send(text);
|
|
2270
|
-
} else if (this.queued.length < MAX_QUEUED) {
|
|
2523
|
+
} else if (this.queued.length < MAX_QUEUED && this.queuedBytes + text.length <= MAX_QUEUED_BYTES) {
|
|
2271
2524
|
this.queued.push(text);
|
|
2525
|
+
this.queuedBytes += text.length;
|
|
2272
2526
|
} else {
|
|
2273
2527
|
this.close(1013, "The environment is still starting.");
|
|
2274
2528
|
}
|
|
@@ -2292,6 +2546,7 @@ class GatewaySocket {
|
|
|
2292
2546
|
}
|
|
2293
2547
|
fail(reason) {
|
|
2294
2548
|
this.failure = reason;
|
|
2549
|
+
this.queuedBytes = 0;
|
|
2295
2550
|
for (const text of this.queued.splice(0)) {
|
|
2296
2551
|
this.fromBrowser(text);
|
|
2297
2552
|
}
|
|
@@ -2312,6 +2567,8 @@ import { spawn as spawn2 } from "node:child_process";
|
|
|
2312
2567
|
import { mkdirSync as mkdirSync2 } from "node:fs";
|
|
2313
2568
|
import { createServer } from "node:net";
|
|
2314
2569
|
import { join as join2 } from "node:path";
|
|
2570
|
+
var STOP_TIMEOUT_MS = 1e4;
|
|
2571
|
+
|
|
2315
2572
|
class LocalSandbox {
|
|
2316
2573
|
constructor(id, config, context) {
|
|
2317
2574
|
this.id = id;
|
|
@@ -2338,13 +2595,18 @@ class LocalSandbox {
|
|
|
2338
2595
|
stdio: "ignore"
|
|
2339
2596
|
});
|
|
2340
2597
|
const url = `http://127.0.0.1:${port}`;
|
|
2341
|
-
|
|
2342
|
-
child.once("exit", () => {
|
|
2598
|
+
const gone = () => {
|
|
2343
2599
|
var _a;
|
|
2344
2600
|
if (((_a = this.running.get(tenant.id)) === null || _a === undefined ? undefined : _a.child) === child) {
|
|
2345
2601
|
this.running.delete(tenant.id);
|
|
2346
2602
|
}
|
|
2603
|
+
};
|
|
2604
|
+
child.once("error", (error) => {
|
|
2605
|
+
console.warn(`ta gateway: the local sandbox of ${tenant.id} did not start: ${error.message}`);
|
|
2606
|
+
gone();
|
|
2347
2607
|
});
|
|
2608
|
+
this.running.set(tenant.id, { child, url });
|
|
2609
|
+
child.once("exit", gone);
|
|
2348
2610
|
return { url, token: tenant.token };
|
|
2349
2611
|
}
|
|
2350
2612
|
async stop(tenant) {
|
|
@@ -2352,7 +2614,11 @@ class LocalSandbox {
|
|
|
2352
2614
|
this.running.delete(tenant.id);
|
|
2353
2615
|
if (running && running.child.exitCode === null) {
|
|
2354
2616
|
await new Promise((done) => {
|
|
2355
|
-
running.child.
|
|
2617
|
+
const kill = setTimeout(() => running.child.kill("SIGKILL"), STOP_TIMEOUT_MS);
|
|
2618
|
+
running.child.once("exit", () => {
|
|
2619
|
+
clearTimeout(kill);
|
|
2620
|
+
done();
|
|
2621
|
+
});
|
|
2356
2622
|
running.child.kill("SIGTERM");
|
|
2357
2623
|
});
|
|
2358
2624
|
}
|
|
@@ -2478,7 +2744,9 @@ class SignInLinks {
|
|
|
2478
2744
|
use(secret, now = Date.now()) {
|
|
2479
2745
|
const links = this.read(now);
|
|
2480
2746
|
const link = links.find((one) => one.hash === hash(secret));
|
|
2481
|
-
|
|
2747
|
+
if (link) {
|
|
2748
|
+
writePrivate(this.file, links.filter((one) => one !== link));
|
|
2749
|
+
}
|
|
2482
2750
|
return link && { account: link.account, name: link.name };
|
|
2483
2751
|
}
|
|
2484
2752
|
read(now) {
|
|
@@ -2529,6 +2797,16 @@ var GatewayServerUtil;
|
|
|
2529
2797
|
return join5(root, "index.html");
|
|
2530
2798
|
}
|
|
2531
2799
|
GatewayServerUtil2.file = file;
|
|
2800
|
+
function filesTarget(requestUrl, endpoint) {
|
|
2801
|
+
const target = new URL(requestUrl, endpoint);
|
|
2802
|
+
return target.origin === new URL(endpoint).origin && target.pathname.startsWith(`${TA_FILES_PATH}/`) ? target : undefined;
|
|
2803
|
+
}
|
|
2804
|
+
GatewayServerUtil2.filesTarget = filesTarget;
|
|
2805
|
+
function filesHeaders(headers) {
|
|
2806
|
+
const { "set-cookie": _cookies, ...rest } = headers;
|
|
2807
|
+
return rest;
|
|
2808
|
+
}
|
|
2809
|
+
GatewayServerUtil2.filesHeaders = filesHeaders;
|
|
2532
2810
|
})(GatewayServerUtil || (GatewayServerUtil = {}));
|
|
2533
2811
|
|
|
2534
2812
|
class GatewayServer {
|
|
@@ -2654,18 +2932,26 @@ class GatewayServer {
|
|
|
2654
2932
|
response.setHeader("Set-Cookie", [...list, `${FILES_COOKIE}=${token}; Path=${TA_FILES_PATH}; Max-Age=31536000; HttpOnly; SameSite=Lax${secure}`]);
|
|
2655
2933
|
}
|
|
2656
2934
|
origin(request2) {
|
|
2657
|
-
|
|
2658
|
-
return (_a = this.flow.publicUrl) !== null && _a !== undefined ? _a : `http://${request2.headers.host}`;
|
|
2935
|
+
return SignInUtil.origin(request2, this.flow.publicUrl);
|
|
2659
2936
|
}
|
|
2660
2937
|
async files(request2, response) {
|
|
2661
2938
|
var _a, _b;
|
|
2939
|
+
if (request2.method !== "GET" && request2.method !== "HEAD") {
|
|
2940
|
+
response.setHeader("Allow", "GET, HEAD");
|
|
2941
|
+
SignInPageUtil.end(response, 405);
|
|
2942
|
+
return;
|
|
2943
|
+
}
|
|
2662
2944
|
const caller = this.caller((_a = SignInPageUtil.cookie(request2.headers.cookie, FILES_COOKIE)) !== null && _a !== undefined ? _a : "");
|
|
2663
2945
|
if (!caller) {
|
|
2664
2946
|
SignInPageUtil.end(response, 404);
|
|
2665
2947
|
return;
|
|
2666
2948
|
}
|
|
2667
2949
|
const endpoint = await this.environments.ensure(caller.tenant);
|
|
2668
|
-
const target =
|
|
2950
|
+
const target = GatewayServerUtil.filesTarget((_b = request2.url) !== null && _b !== undefined ? _b : "/", endpoint.url);
|
|
2951
|
+
if (!target) {
|
|
2952
|
+
SignInPageUtil.end(response, 404);
|
|
2953
|
+
return;
|
|
2954
|
+
}
|
|
2669
2955
|
const headers = {};
|
|
2670
2956
|
for (const name of ["range", "if-none-match", "accept", "accept-encoding", "user-agent"]) {
|
|
2671
2957
|
const value = request2.headers[name];
|
|
@@ -2677,7 +2963,7 @@ class GatewayServer {
|
|
|
2677
2963
|
const send = target.protocol === "https:" ? httpsRequest : httpRequest;
|
|
2678
2964
|
const outgoing = send(target, { method: request2.method, headers }, (incoming) => {
|
|
2679
2965
|
var _a2;
|
|
2680
|
-
response.writeHead((_a2 = incoming.statusCode) !== null && _a2 !== undefined ? _a2 : 502, incoming.headers);
|
|
2966
|
+
response.writeHead((_a2 = incoming.statusCode) !== null && _a2 !== undefined ? _a2 : 502, GatewayServerUtil.filesHeaders(incoming.headers));
|
|
2681
2967
|
pipeline(incoming, response, () => resolve());
|
|
2682
2968
|
});
|
|
2683
2969
|
outgoing.on("error", reject);
|
|
@@ -2726,7 +3012,7 @@ class GatewayServer {
|
|
|
2726
3012
|
return;
|
|
2727
3013
|
}
|
|
2728
3014
|
this.tenants.update(caller.tenant.id, { lastActiveAt: Date.now() });
|
|
2729
|
-
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: 32 * 1024 * 1024, heartbeat: 30000 });
|
|
3015
|
+
const connection = WebSocketConnection.open(socket, checked.key, head, { maxPayload: 32 * 1024 * 1024, heartbeat: 30000, deflate: checked.deflate });
|
|
2730
3016
|
const gatewaySocket = new GatewaySocket(connection, caller, this.environments, this.service);
|
|
2731
3017
|
this.sockets.add(gatewaySocket);
|
|
2732
3018
|
connection.onClose(() => this.sockets.delete(gatewaySocket));
|
package/dist/pi/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @celljs/ta
|
|
2
2
|
|
|
3
|
+
## 4.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 447a869: 3D games in Ta Web: `ui.Game3D` gives a web extension a renderer, a scene and a camera of Three.js, with OrbitControls, and runs what its `setup` returns each frame; loaded the first time a 3D game starts, asleep while out of sight, its scene disposed and its WebGL context given back when it unmounts. The Games page of `@celljs/ta-games` has Stack, a 3D game, and the `ta-game` skill teaches 3D too.
|
|
8
|
+
- 1a5dc4b: Ta Web has a game engine: `ui.Game` draws a game on Phaser 4, loaded the first time a game starts, asleep while out of sight and destroyed when it unmounts, with the colors of the theme in its registry. The new built-in extension `@celljs/ta-games` has the Games page (Dino Run, and games for Ta to make) and the `ta-game` skill, with the topics Phaser writes for coding agents.
|
|
9
|
+
- b15cfbe: Replies lead with the answer and show results as cards, with the new built-in package `@celljs/ta-glance` (Glance). Under the Ta service the model is told to put the conclusion in its first line, leave out the process, and report work done, results, comparisons, choices and relations as a `ta-glance` block of JSON rather than paragraphs; Ta Web draws it as a card that grows as the reply streams: key numbers, files changed, steps, before and after, bars, a flow, a Mermaid diagram, a table, choices that answer with a tap, risks and to-dos, what to ask next, folded details. Web extensions get `registerCodeRenderer`, which draws the fenced blocks of a language in replies and in `ui.Markdown`. The preview of a conversation in the lists leaves fenced blocks out; a turn from a WeChat or WeCom bot is told to write no `ta-` blocks, and any is left out of what the chat gets; external agents of ta-agents get the `<ta-…>` sections of pi's system prompt, once in each session of theirs. Glance, the hint of Recall and the note of a bot's message are sections of their own in pi's system prompt rather than a prompt returned whole, which lost what came after it, the directory of an `ssh://` location among them.
|
|
10
|
+
- 238912c: Work is handed over as a brief, and a message is quoted to ask about that part. Say "give this to @tester", or pick Hand over to… in the + of the message box and an agent or a channel: Ta writes the brief the receiver needs (the goal, what is done and decided, what is left, the files and commands) and hands it over with the new tool `hand_off` (an external agent without it in a `ta-handoff` block): an agent goes on with it in its own conversation, a channel gets it as Ta's message, which its lead answers; the conversation it came from keeps a card with the brief and Open. Quote, in the menu of a held message and in the footer of a reply (what is selected in it first), puts the message into the box as `> ` lines, which the bubble of the user shows apart.
|
|
11
|
+
- cda925c: Ta has a user manual: the new built-in extension `@celljs/ta-manual` puts a User manual page under Discover, a topic for each thing Ta does (conversations, the double, agents and channels, the workbench, extensions, the phone, scheduled tasks, quick open, and more), each step a picture and a sentence, with a button to the page it is about; its `ta-manual` skill tells the model the same, so that Ta answers how to use it in a conversation. Pictures of web extensions get two classes: `ta-pic-pulse`, a ring that spreads where to tap, and `ta-pic-wait`, yellow; `ui.icons` gets `BookOpen`.
|
|
12
|
+
- c9b6cb2: Ta tells the user when a conversation needs them, failed or answered while they look elsewhere, as a messenger does. The new built-in package `@celljs/ta-notify` tells of the end of each turn, of a failure, of a dialog of an extension that waits (pi's `ui_prompt_start`), and gives Ta the tool `notify_user` to ask the user to decide with answers to tap; Settings → Notifications sets of what (every answer, when it needs me, off), allows the notices of the system and lists the conversations muted, which still tell when they need the user. What Ta asks stays in its conversation as a card with the answers to tap. Web extensions get `ui.notifySession`: nothing of the conversation shown or of a task the double follows; on a phone or a tablet nothing that pops up, the Chats tab having the amber dot of its unread rows; on a computer a banner with the face and name of the conversation while the page is in front, its answers sent once from whichever page, a notice of the system while it is not. Pushes to a phone app that is closed are not done yet.
|
|
13
|
+
- cf898df: Ta keeps what was done, with the new built-in package `@celljs/ta-recall` (Recall). Ta gets the tool `search_conversations`, which searches what was said in the conversations of every directory, to answer what was done before with links to the conversations; Quick open gets Ask Ta, which asks in a new conversation, and the conversations with every word typed. When the user asks for what they asked for in another conversation, Ta is told so and drafts a skill with `propose_skill` (or, a model without Ta's tools, a `ta-skill` block), which shows as a card that saves it into the skills of the user with a tap, or not, after which the like is not offered again; + of the message box → Keep as a skill drafts one of the conversation. Each day at its time Ta writes a brief of what got done, what waits for the user and what is next in the conversation Daily brief, when something happened. A link of a reply to a session file of Ta opens its conversation (`TaLinks`). The Daily brief and the conversations of Ask Ta have icons of their own in the lists: web extensions get `registerChatIcon`.
|
|
14
|
+
- 56df773: Rooms shared with other Ta, end to end through the relay (docs/design/ta-link.md 3). Each Ta has an identity (ECDSA and ECDH keys of P-256, a name) and friends: those it was in a room with. A room is a hub on the relay (`RelayHub`; `RelayHubObject` on the Worker) that knows its members by tokens of one room each and keeps the asks to join, the roster the owner signs and the shared state, all sealed with the key of the room; messages and values are signed by their member and set on their version. A link or a scan only asks to join: the owner's Ta asks the user, and the answer gives the key to the one admitted alone (ECDH, signed by the owner the link names). Ta holds the connections (`RelayHubs`, `RoomsBridge`): clients get `TaRoomServer` and `TaClient.onRoomEvent`, web extensions `pi.rooms` and `pi.onRoomEvent` (with `messages: false` for a list), packages `TaExtensionHost.rooms`. The new built-in package @celljs/ta-rooms shows them: the Rooms page under Discover, the dialog of who asks to join, links that invite, the invitation and its QR code. The Ta town plays in rooms: Together in the 3D world makes or enters one, everyone a dinosaur on the owner's map, the blocks built shared by chunks. Links of content may be for chosen Ta friends (`people`), opened in their own Ta only by a key agreed with theirs.
|
|
15
|
+
- 3bd476c: Share a conversation, a page or a file by a link (docs/design/ta-link.md). The new built-in package @celljs/ta-share: Share conversation… in the + of the message box and Share… in the menu of a row of the list open a dialog that shows what goes (secrets hidden, no thinking, images or cards, the outputs of tools only if asked) and asks who may open it (anyone with the link, with a password, only me), for how long and whether a sealed copy stays on the relay for while the computer is off; then the link and its QR code. My shares under Discover lists, shows again and stops them. A link clicked, scanned or pasted opens in the workbench, a conversation to import as one of your own; a browser without Ta opens it in the viewer of the relay (`/s`), which decrypts it on the page and runs a shared HTML page in a sandboxed frame (`/s/frame`). Ta shares when asked with the tool share_link, the user confirming each time. The relay hands content on end to end, the viewer proving its key first so that a password cannot be tried offline (`RelayContentUtil`, the `content` mode of `RelayHost`), and keeps sealed copies (`RelayBlobs`, `RelayBlobObject` on the Worker). `TaExtensionHost` gets `shares`, `sessionMessages` and `createSession`; web extensions get `registerSessionMenu`, `registerOpener(…, { specific: true })` and `ui.custom`.
|
|
16
|
+
- 8167698: Ta Town comes alive: a pond with ducks, a café, a cat, butterflies, fireflies and birds, windows, coffee machines, TVs and tools; the free keep hours (lunch at the café, sleep at night, a party on Friday evenings) under a light that follows the time; residents greet each other, sit in their chairs and type; eggs for a tap (wishes and a rainbow at the fountain, the dinosaur's roar, a party code). Tap a resident to talk to it from its card, by voice (held to talk, its answer read aloud) or typed, or say something in a channel's room; tap twice to open its conversation; keys move, zoom and go through the residents.
|
|
17
|
+
|
|
18
|
+
Ta Web gives web extensions `ui.HoldToTalk` (a button held to talk, with the page's recognizer and overlay) and `ui.voice` (read aloud in the voice of the settings), and a page that is a conversation takes messages from other extensions through `WebView.send`, which the double's page has.
|
|
19
|
+
- f71a48c: Ta Town grows wilds around it: snowy mountains with a waterfall and a lookout, a forest with a lake and a camp by a fire, a river under bridges past a farm, a beach with parasols, a pier, a boat and a lighthouse, and the sea; waves, a sailboat, gulls, fish, the campfire's flames and the lighthouse's beam; the free go to the beach at weekends, to the campfire of an evening, and out for a walk now and then; new eggs (the mountains' echo, marshmallows, a 1UP mushroom and more). Zoom out to see it all. A resident's card talks through the message box of every conversation: hold it to talk as in a chat, or its microphone, Enter to send, the send button stops an agent that answers, `@` names the members of a room; the card keeps a short thread with answers in Markdown, in full, read aloud when said by voice. `ui.Composer` takes `voiceSends`, `onTalkSent`, `onListening`, `working` / `onStop` and `after`, as the double's box.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- 66a9074: One look across the pages of Ta. The title of a page is centred on its head whatever buttons its sides have (on a phone, Extensions had it off by the workbench's button). Segmented controls (the settings, the tabs of Extensions, the editor of a scheduled task) are one control: a track of --ta-raised and the chosen segment on --ta-segment, a new variable lighter than the track in the dark (it was darker). The buttons of the extensions (Extensions, scheduled tasks, channels, Quick open) are those of the page. Cards with a line under their label are two to a row at most on a phone (PictureCards), so that the examples of scheduled tasks no longer break their titles; Chinese of the first page of a conversation breaks between words. A row that leads somewhere drops the … of its menu (Model accounts, Default directory, Navigation settings). The model has the icon of the + menu in the settings, the games installed are Your games under the Games page, and the tables of the Markdown preview have the frame and rows of those of a conversation. `ta --help` lists the commands of Ta (serve, pair, gateway, exec-server, relay).
|
|
24
|
+
- e68cdc5: Web guests of rooms (docs/design/ta-link.md 3.8): a link that invites, opened in a browser, is a page of the relay (`src/guest`, `viewer/room.html`, its one script allowed by its hash, connecting to this relay alone) where one without Ta asks to join and, let in by the owner, chats. `RelayHubs` moved to `common/` with a store of its own (`RelayHubFiles` for Ta, the browser's storage for a guest) and asks as a guest (`guest`), whom the owner admits as one in the roster: the Ta of every member takes only what a guest says (`chat:`), none of its messages nor its other state, and a guest is no Ta friend. `RelayRoomChat` (from ta-rooms) is the chat of both. The Rooms page marks web guests in the asks and the members.
|
|
25
|
+
|
|
26
|
+
## 4.10.0
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- f63f4bb: Dependencies updated within their major versions: pi 1.5.0 → 1.5.2 (`@earendil-works/pi-*`; Ta ships pi's bundle patched again for 1.5.2), vite 8.3.8, winston 3.19.0, @vendia/serverless-express 4.12.6. pi 1.5.1 sends Anthropic requests as message threads, keeps prompt caches warm between runs when it pays (`cacheWarming: "idle"`), streams the read tool and takes grep's context lines from ripgrep; see pi's changelog.
|
|
31
|
+
- 2f474ef: Ta 手机应用打开得更快:启动画面等的是从电脑取回首页列表的网络往返,不是固定时长。现在经中继连上后立即开始取数据,Web 扩展也先按上次的列表和本机缓存的代码启动,从中继握手后只需一次往返;网络较慢时(往返 300ms / 600ms)启动画面的停留从约 1.35 秒 / 3 秒降到约 0.76 秒 / 1.36 秒。启动画面最多停留 2 秒(原来 3 秒),网络再慢就先显示列表骨架。
|
|
32
|
+
|
|
3
33
|
## 4.9.1
|
|
4
34
|
|
|
5
35
|
No changes in this release.
|