@celljs/ta 4.14.0 → 4.15.1
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/dist/cli.mjs +106 -7
- package/dist/gateway.mjs +156 -46
- package/dist/pi/CHANGELOG.md +13 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-3d/README.en.md +11 -0
- package/dist/pi/packages/ta-3d/README.md +11 -0
- package/dist/pi/packages/ta-3d/extension/index.mjs +120 -0
- package/dist/pi/packages/ta-3d/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-3d/lib/extension.js +24 -0
- package/dist/pi/packages/ta-3d/lib/i18n.d.ts +19 -0
- package/dist/pi/packages/ta-3d/lib/i18n.js +50 -0
- package/dist/pi/packages/ta-3d/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/index.js +22 -0
- package/dist/pi/packages/ta-3d/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-3d/lib/react.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.js +60 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.js +15 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.d.ts +5 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.d.ts +59 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.js +141 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.d.ts +57 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.js +339 -0
- package/dist/pi/packages/ta-3d/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/style.js +33 -0
- package/dist/pi/packages/ta-3d/package.json +58 -0
- package/dist/pi/packages/ta-3d/web/index.js +660 -0
- package/dist/pi/packages/ta-agents/README.en.md +2 -2
- package/dist/pi/packages/ta-agents/README.md +2 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +248 -27
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +20 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +14 -5
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +13 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +29 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +16 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.js +34 -4
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.d.ts +28 -0
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.js +62 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +40 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +86 -22
- package/dist/pi/packages/ta-agents/lib/texts.js +101 -21
- package/dist/pi/packages/ta-agents/package.json +7 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
- package/dist/pi/packages/ta-bots/host/index.mjs +165 -53
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +6 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.js +27 -2
- package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +8 -1
- package/dist/pi/packages/ta-bots/lib/bot-store.js +16 -2
- package/dist/pi/packages/ta-bots/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-bots/lib/i18n.js +167 -2
- package/dist/pi/packages/ta-bots/lib/server-texts.d.ts +0 -1
- package/dist/pi/packages/ta-bots/lib/server-texts.js +45 -12
- package/dist/pi/packages/ta-bots/lib/weixin-channel.js +3 -1
- package/dist/pi/packages/ta-bots/package.json +7 -3
- package/dist/pi/packages/ta-bots/web/index.js +203 -1
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-changes/lib/i18n.js +51 -2
- package/dist/pi/packages/ta-changes/package.json +7 -3
- package/dist/pi/packages/ta-changes/web/index.js +87 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +78 -13
- package/dist/pi/packages/ta-channels/host/index.mjs +121 -56
- package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +2 -1
- package/dist/pi/packages/ta-channels/lib/agent-cards.js +4 -3
- package/dist/pi/packages/ta-channels/lib/handoff.d.ts +5 -4
- package/dist/pi/packages/ta-channels/lib/handoff.js +22 -6
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +361 -2
- package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +2 -1
- package/dist/pi/packages/ta-channels/lib/team-ask.js +19 -7
- package/dist/pi/packages/ta-channels/lib/team.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/team.js +1 -1
- package/dist/pi/packages/ta-channels/package.json +7 -3
- package/dist/pi/packages/ta-channels/web/index.js +482 -47
- package/dist/pi/packages/ta-computer-use/extension/index.mjs +11 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +20 -2
- package/dist/pi/packages/ta-computer-use/package.json +7 -3
- package/dist/pi/packages/ta-cron/extension/index.mjs +82 -8
- package/dist/pi/packages/ta-cron/host/index.mjs +67 -3
- package/dist/pi/packages/ta-cron/lib/editor.js +1 -1
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +217 -2
- package/dist/pi/packages/ta-cron/lib/page.js +14 -4
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +29 -3
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-cron/lib/server-texts.js +16 -9
- package/dist/pi/packages/ta-cron/lib/tasks-view.js +4 -2
- package/dist/pi/packages/ta-cron/package.json +7 -3
- package/dist/pi/packages/ta-cron/web/index.js +302 -14
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +240 -2
- package/dist/pi/packages/ta-extensions/package.json +7 -3
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -0
- package/dist/pi/packages/ta-extensions/web/index.js +329 -42
- package/dist/pi/packages/ta-games/README.en.md +1 -1
- package/dist/pi/packages/ta-games/README.md +1 -1
- package/dist/pi/packages/ta-games/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-games/lib/i18n.js +61 -2
- package/dist/pi/packages/ta-games/package.json +7 -3
- package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +41 -3
- package/dist/pi/packages/ta-games/web/index.js +97 -1
- package/dist/pi/packages/ta-glance/extension/index.mjs +32 -13
- package/dist/pi/packages/ta-glance/lib/glance-json.d.ts +2 -0
- package/dist/pi/packages/ta-glance/lib/glance-json.js +38 -16
- package/dist/pi/packages/ta-glance/lib/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +1 -0
- package/dist/pi/packages/ta-glance/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +31 -2
- package/dist/pi/packages/ta-glance/package.json +7 -3
- package/dist/pi/packages/ta-glance/web/index.js +98 -14
- package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
- package/dist/pi/packages/ta-initiative/host/index.mjs +120 -19
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +15 -3
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +20 -3
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +20 -6
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +151 -2
- package/dist/pi/packages/ta-initiative/lib/inbox.js +49 -30
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +13 -4
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/material-util.js +9 -3
- package/dist/pi/packages/ta-initiative/lib/review-service.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +11 -4
- package/dist/pi/packages/ta-initiative/lib/settings.js +2 -3
- package/dist/pi/packages/ta-initiative/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +27 -14
- package/dist/pi/packages/ta-initiative/package.json +7 -3
- package/dist/pi/packages/ta-initiative/web/index.js +289 -55
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +71 -2
- package/dist/pi/packages/ta-launcher/package.json +7 -3
- package/dist/pi/packages/ta-launcher/web/index.js +107 -1
- package/dist/pi/packages/ta-manual/README.en.md +1 -1
- package/dist/pi/packages/ta-manual/README.md +1 -1
- package/dist/pi/packages/ta-manual/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-manual/lib/i18n.js +21 -2
- package/dist/pi/packages/ta-manual/lib/manual-util.js +2 -1
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +30 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +188 -71
- package/dist/pi/packages/ta-manual/package.json +7 -3
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +9 -0
- package/dist/pi/packages/ta-manual/web/index.js +405 -119
- package/dist/pi/packages/ta-moments/extension/index.mjs +242 -102
- package/dist/pi/packages/ta-moments/host/index.mjs +268 -115
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +170 -3
- package/dist/pi/packages/ta-moments/lib/moments-host.js +24 -11
- package/dist/pi/packages/ta-moments/lib/page.js +4 -2
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +10 -12
- package/dist/pi/packages/ta-moments/lib/server-texts.js +128 -62
- package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
- package/dist/pi/packages/ta-moments/package.json +7 -3
- package/dist/pi/packages/ta-moments/web/index.js +260 -43
- package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
- package/dist/pi/packages/ta-nearby/host/index.mjs +248 -35
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +173 -2
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +2 -4
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +21 -3
- package/dist/pi/packages/ta-nearby/lib/page.js +6 -5
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +5 -13
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +194 -42
- package/dist/pi/packages/ta-nearby/package.json +7 -3
- package/dist/pi/packages/ta-nearby/web/index.js +216 -9
- package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
- package/dist/pi/packages/ta-notify/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-notify/lib/i18n.js +53 -2
- package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-notify/lib/server-texts.js +16 -5
- package/dist/pi/packages/ta-notify/lib/settings.js +9 -2
- package/dist/pi/packages/ta-notify/package.json +7 -3
- package/dist/pi/packages/ta-notify/web/index.js +107 -7
- package/dist/pi/packages/ta-plot/README.en.md +12 -0
- package/dist/pi/packages/ta-plot/README.md +12 -0
- package/dist/pi/packages/ta-plot/extension/index.mjs +121 -0
- package/dist/pi/packages/ta-plot/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-plot/lib/extension.js +24 -0
- package/dist/pi/packages/ta-plot/lib/i18n.d.ts +14 -0
- package/dist/pi/packages/ta-plot/lib/i18n.js +30 -0
- package/dist/pi/packages/ta-plot/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/index.js +25 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.d.ts +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.js +209 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.d.ts +28 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.js +208 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.js +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.js +10 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.d.ts +65 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.js +427 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.d.ts +86 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.js +165 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.js +205 -0
- package/dist/pi/packages/ta-plot/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-plot/lib/react.js +8 -0
- package/dist/pi/packages/ta-plot/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/style.js +47 -0
- package/dist/pi/packages/ta-plot/package.json +57 -0
- package/dist/pi/packages/ta-plot/web/index.js +1320 -0
- package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
- package/dist/pi/packages/ta-recall/host/index.mjs +136 -55
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +6 -3
- package/dist/pi/packages/ta-recall/lib/brief-util.js +26 -5
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +2 -1
- package/dist/pi/packages/ta-recall/lib/extension-util.js +7 -1
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-recall/lib/i18n.js +89 -2
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +2 -1
- package/dist/pi/packages/ta-recall/lib/keep-util.js +8 -1
- package/dist/pi/packages/ta-recall/lib/recall-service.js +5 -3
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -3
- package/dist/pi/packages/ta-recall/lib/server-texts.js +15 -8
- package/dist/pi/packages/ta-recall/package.json +7 -3
- package/dist/pi/packages/ta-recall/web/index.js +164 -9
- package/dist/pi/packages/ta-rooms/extension/index.mjs +60 -3
- package/dist/pi/packages/ta-rooms/host/index.mjs +284 -37
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +2 -1
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +31 -7
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +57 -13
- package/dist/pi/packages/ta-rooms/lib/double-host.js +31 -5
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +201 -2
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +2 -1
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +93 -21
- package/dist/pi/packages/ta-rooms/lib/double-user.js +1 -1
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/double-util.js +22 -3
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +2 -1
- package/dist/pi/packages/ta-rooms/lib/doubles-view.js +8 -1
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +27 -8
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +243 -2
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -0
- package/dist/pi/packages/ta-rooms/package.json +7 -3
- package/dist/pi/packages/ta-rooms/web/index.js +496 -9
- package/dist/pi/packages/ta-share/extension/index.mjs +98 -23
- package/dist/pi/packages/ta-share/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-share/lib/i18n.js +203 -2
- package/dist/pi/packages/ta-share/lib/page.js +1 -1
- package/dist/pi/packages/ta-share/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-share/lib/server-texts.js +60 -29
- package/dist/pi/packages/ta-share/lib/share-dialog.js +3 -1
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +1 -0
- package/dist/pi/packages/ta-share/package.json +7 -3
- package/dist/pi/packages/ta-share/web/index.js +246 -4
- package/dist/pi/packages/ta-sync/host/index.mjs +170 -25
- package/dist/pi/packages/ta-sync/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-sync/lib/i18n.js +173 -2
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +183 -2
- package/dist/pi/packages/ta-sync/lib/panel.js +4 -1
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +0 -1
- package/dist/pi/packages/ta-sync/lib/server-texts.js +132 -35
- package/dist/pi/packages/ta-sync/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-sync/lib/style.js +1 -0
- package/dist/pi/packages/ta-sync/package.json +7 -3
- package/dist/pi/packages/ta-sync/web/index.js +398 -5
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +52 -23
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +49 -20
- package/dist/pi/packages/ta-sync-cloud/package.json +7 -3
- package/dist/pi/packages/ta-team/README.en.md +1 -1
- package/dist/pi/packages/ta-team/README.md +1 -1
- package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
- package/dist/pi/packages/ta-team/host/index.mjs +130 -43
- package/dist/pi/packages/ta-team/lib/dialogs.js +68 -9
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +7 -1
- package/dist/pi/packages/ta-team/lib/i18n.js +431 -8
- package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
- package/dist/pi/packages/ta-team/lib/page.js +5 -1
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +11 -4
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +14 -8
- package/dist/pi/packages/ta-team/lib/team-invites.js +38 -6
- package/dist/pi/packages/ta-team/package.json +7 -3
- package/dist/pi/packages/ta-team/web/index.js +688 -102
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js +417 -1
- package/dist/pi/packages/ta-workspace/package.json +7 -3
- package/dist/pi/packages/ta-workspace/web/index.js +504 -40
- package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
- package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-DMceNIR5.js → abnfDiagram-S7VZAUFO-CD8CaArq.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-5AdYeEv8.js → architecture-WOLXFQ4H-f2a9bodL.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-CqkJHg0A.js → architectureDiagram-YGSQEFNW-BCWH9CwO.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BtuHdIjQ.js → blockDiagram-APKKGZFW-fUamQMeJ.js} +1 -1
- package/dist/public/assets/{browser-Ds5TwWWr.js → browser-CrMa174j.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-eebbjTgZ.js → c4Diagram-KJ2TOQU5-CkLtnwp1.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-BjMKSfTf.js → chunk-6MUBBAK2-cwcGPuAH.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-BElluw_7.js → chunk-AXFCVDMN-DNkmkYfC.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CUDwpWNL.js → chunk-BG4553SI-C8qbbr2Z.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-B-92o8Uj.js → chunk-DQASFODM-C-PJ2CrJ.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-pveEMcXK.js → chunk-HFQBQIA3-BYcgxNEL.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-m7DKNjYW.js → chunk-KQLB2F66-BTDNzrRl.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CnSSETdj.js → chunk-KS47KZWR-1sGg1pKP.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Ds7OnJrC.js → chunk-LEVMRMFU-7lAsFwHT.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-PJSYCuUh.js → chunk-M57EVK23-C8K-ltig.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-C3ygRwSC.js → chunk-OY52VR5R-CBe1QL_V.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DcFtmZh7.js → chunk-QB3YPZ4I-COhYyyE_.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-B4BOidE6.js → chunk-R3KSYZAL-CREAgaSS.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DcXfwN7k.js → chunk-STOXU5M4-CTl0P8_C.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-B-rpQQxX.js → chunk-TU62E6Q5-B_GG7baF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BBtlFSw1.js → chunk-X4PVCEUW-CDrSpVOj.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Do8BIocv.js → chunk-XXDRQBXY-sKeiDEnC.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-bhGAODMS.js → classDiagram-v2-L25IHNXF-Cqo1O5FQ.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-B7Qv6Hv_.js → cose-bilkent-JH36ORCC-CTSKeRBe.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CP12ndt7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BX-R5Z6L.js → cynefinDiagram-L36ESFBY-67xEPyP9.js} +1 -1
- package/dist/public/assets/{d3-selection-D3xgEEla.js → d3-selection-BUiX-3qh.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-MfJ9yO0v.js → dagre-SPEB5RXH-DDw-u3Kg.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DxFRc2vC.js → diagram-3B7GL73J-BBFInaCs.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BcBwOLbM.js → diagram-DNEMPZML-ZdnFKM7-.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN--Rw-isPI.js → diagram-L3MUGCDN-CPb04hOv.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DXkY85UN.js → diagram-LA4NIPWU-P9wHFGDS.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-CbNmfAid.js → diagram-MHCOC4E2-Ce_Cr-t6.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-D1nGQjzf.js → diagram-XPFHEONP-CfS34OHW.js} +1 -1
- package/dist/public/assets/{dist-B1JMTrET.js → dist-6pZqZEaM.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-DGXbVfke.js → ebnfDiagram-UZSYDL2S-BkHabCn2.js} +1 -1
- package/dist/public/assets/{editor.api-e3yQoo1r.js → editor.api-CO4Q0NKb.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-pA-iT6fg.js → elk-XV6XMXQE-JpreOVeR.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BpgBun7y.js → erDiagram-EYBAPDEH-DDFJwzHx.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CVfyCcul.js → eventmodeling-K75KTNOO-DsnkF6Zc.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Djxeacjw.js +1 -0
- package/dist/public/assets/{freemarker2-dYGec-fT.js → freemarker2-Cm4NK652.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DjLTTWwA.js → ganttDiagram-23REXITY-C7eedoYb.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-qlWN7ijl.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-D9m7IVyJ.js → gitGraphDiagram-STJD7YCW-Cuh3ih-z.js} +1 -1
- package/dist/public/assets/{handlebars-Bxerz7ci.js → handlebars-BnE51DUi.js} +1 -1
- package/dist/public/assets/{html-DlVnGsdp.js → html-7koekDfa.js} +1 -1
- package/dist/public/assets/{index-CZmGe9gc.js → index-CQG1XddL.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-jN69V28z.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DoYdhkAy.js → infoDiagram-KBXO4MBG-BY3iq7I8.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bc0GAInW.js → ishikawaDiagram-M35NCXHK-COjlz24y.js} +1 -1
- package/dist/public/assets/ja-BHBiml1x.js +12 -0
- package/dist/public/assets/{javascript-DZrowo_I.js → javascript-BUZgUhdn.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BM7Dwstu.js → journeyDiagram-OPLOXDXO-DReJE04Q.js} +1 -1
- package/dist/public/assets/{jsonMode-Bs30wPr5.js → jsonMode-qPeVDBDp.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CO-Crrdu.js → kanban-definition-BZKZHSQY-BB0_ePvg.js} +1 -1
- package/dist/public/assets/{liquid-dLz9d3ax.js → liquid-CNKL9dLX.js} +1 -1
- package/dist/public/assets/{mdx-DO0x92Kn.js → mdx-D1_UzrBc.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BXwArNvw.js → mermaid-parser.core-DiE3z_tV.js} +3 -3
- package/dist/public/assets/{mermaid.core-C6mppfDC.js → mermaid.core-CBCRrLdl.js} +4 -4
- package/dist/public/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-vcQ2EU4T.js → mindmap-definition-I2QAS2VK-D-Y5fKl1.js} +1 -1
- package/dist/public/assets/module-BEbKICB1.js +2475 -0
- package/dist/public/assets/module-Egyx6Otv.js +1 -0
- package/dist/public/assets/{monaco-J_Pr5zjk.js → monaco--czRbHhk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Cl8QuXQJ.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DPDrbtS2.js → pegDiagram-FD4XPPHP-1jx5jc73.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-kVGJsGZe.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DXuaepGJ.js → pieDiagram-J4AKIIQI-DGv_WCCu.js} +1 -1
- package/dist/public/assets/{python-nnmIOv4s.js → python-DNZu5LjV.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BuD_-coZ.js → quadrantDiagram-XTYBLID2-BgY0lf8V.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dw71L-n8.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DkaUvI4_.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CkCl68xY.js → railroad-abnf-LNEFI6M7-tZ7rJxwM.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DO3GiRv6.js → railroad-ebnf-DWYD2UWJ-JO6n_1TK.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DZBsKy4P.js → railroad-peg-JR7BVNR7-Bf0PG2YJ.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BeLq7Mqp.js → railroadDiagram-MRQ6NCDL-BMjog84X.js} +1 -1
- package/dist/public/assets/{razor-l2rRITgB.js → razor-DU-x8qSP.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BBizkrON.js → requirementDiagram-Y7LWUY3S-CktbbWjr.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-tyo-p7oc.js → sankeyDiagram-WGJFYUXA-CQonOre7.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BSGPbeJX.js → sequenceDiagram-5NDRBG5M-CAe8-JvA.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js → stateDiagram-v2-FJ4FJNEA-BrkqOuRm.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BJfgQyQo.js → swimlanes-UMQ2AFYF-sLpgHBKo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-amBdr5Wc.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-Ch8aQwF6.js → timeline-definition-SEUHKTQE-CHE0x-WN.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-DKLyFqZk.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CRG6ogj8.js +1 -0
- package/dist/public/assets/{typescript-LasX-M7S.js → typescript-BrNT2oWW.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BzlSB4R4.js → usecaseDiagram-AFA6YXN4-DwkFRI5R.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-4xaWLrMk.js → vennDiagram-NNMJR3RB-BquQVmJq.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-D2jQfflX.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-C-iK1p-O.js → wardleyDiagram-S7YFUSEH-sNYFUfMe.js} +1 -1
- package/dist/public/assets/{xml-CGhYQUqn.js → xml-BY65QKv7.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-CFsnisdM.js → xychartDiagram-GGNKY7IX-CnWEYuid.js} +1 -1
- package/dist/public/assets/{yaml-BcOaPfuH.js → yaml-BMovUwzO.js} +1 -1
- package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +2773 -626
- package/package.json +39 -37
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +0 -1
- package/dist/public/assets/module-C0tELrcJ.js +0 -1
- package/dist/public/assets/module-CteT9pTP.js +0 -2405
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +0 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const ta_extension_host_1 = require("@celljs/ta-protocol/lib/common/ta-extension-host");
|
|
5
|
+
const scene_prompt_1 = require("./scene-prompt");
|
|
6
|
+
const scene_protocol_1 = require("./scene-protocol");
|
|
7
|
+
/**
|
|
8
|
+
* The pi extension, in every session: tells the model to show what is best seen in 3D as a `ta-3d` block
|
|
9
|
+
* (SCENE_PROMPT), a section of pi's system prompt of its own. Only under ta serve, whose pages draw the scenes; under
|
|
10
|
+
* `ta` alone, in a terminal, the prompt stays as pi's.
|
|
11
|
+
*/
|
|
12
|
+
function activate(pi) {
|
|
13
|
+
let served;
|
|
14
|
+
const underServe = () => (served !== null && served !== void 0 ? served : (served = ta_extension_host_1.TaHostUtil.reach(pi.events, scene_protocol_1.NAME).then(answer => answer !== undefined)));
|
|
15
|
+
pi.on('session_start', () => {
|
|
16
|
+
void underServe();
|
|
17
|
+
});
|
|
18
|
+
pi.on('before_agent_start', async (event) => {
|
|
19
|
+
if (await underServe()) {
|
|
20
|
+
event.systemPromptOptions.sections = { ...event.systemPromptOptions.sections, [scene_protocol_1.LANGUAGE]: scene_prompt_1.SCENE_PROMPT };
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=extension.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
2
|
+
import type { Language } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
3
|
+
declare const EN: {
|
|
4
|
+
building: string;
|
|
5
|
+
failed: string;
|
|
6
|
+
model: string;
|
|
7
|
+
missing: string;
|
|
8
|
+
unreadable: string;
|
|
9
|
+
hint: string;
|
|
10
|
+
};
|
|
11
|
+
type Words = typeof EN;
|
|
12
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
13
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
14
|
+
export declare namespace SceneWords {
|
|
15
|
+
function of(language: Language): Words;
|
|
16
|
+
function format(text: string, values: Record<string, string>): string;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=i18n.d.ts.map
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SceneWords = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
5
|
+
const EN = {
|
|
6
|
+
building: 'Building the scene…',
|
|
7
|
+
failed: 'This scene cannot be shown: {reason}',
|
|
8
|
+
model: '{path} did not load: {reason}',
|
|
9
|
+
missing: 'no such file',
|
|
10
|
+
unreadable: 'not a glTF model it can read',
|
|
11
|
+
hint: 'Drag to turn · pinch to zoom',
|
|
12
|
+
};
|
|
13
|
+
const ZH = {
|
|
14
|
+
building: '正在搭建场景…',
|
|
15
|
+
failed: '这个场景显示不出来:{reason}',
|
|
16
|
+
model: '{path} 没能加载:{reason}',
|
|
17
|
+
missing: '文件不存在',
|
|
18
|
+
unreadable: '不是能读取的 glTF 模型',
|
|
19
|
+
hint: '拖动旋转 · 双指缩放',
|
|
20
|
+
};
|
|
21
|
+
const ZH_TW = {
|
|
22
|
+
building: '正在搭建場景…',
|
|
23
|
+
failed: '這個場景顯示不出來:{reason}',
|
|
24
|
+
model: '{path} 沒能載入:{reason}',
|
|
25
|
+
missing: '檔案不存在',
|
|
26
|
+
unreadable: '不是能讀取的 glTF 模型',
|
|
27
|
+
hint: '拖動旋轉 · 雙指縮放',
|
|
28
|
+
};
|
|
29
|
+
const JA = {
|
|
30
|
+
building: 'シーンを組み立て中…',
|
|
31
|
+
failed: 'このシーンは表示できません:{reason}',
|
|
32
|
+
model: '{path} を読み込めませんでした:{reason}',
|
|
33
|
+
missing: 'ファイルがありません',
|
|
34
|
+
unreadable: '読み込める glTF モデルではありません',
|
|
35
|
+
hint: 'ドラッグで回転 · ピンチで拡大縮小',
|
|
36
|
+
};
|
|
37
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
38
|
+
exports.WORDS = { 'zh-CN': ZH, 'zh-TW': ZH_TW, 'en-US': EN, 'ja-JP': JA };
|
|
39
|
+
var SceneWords;
|
|
40
|
+
(function (SceneWords) {
|
|
41
|
+
function of(language) {
|
|
42
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
43
|
+
}
|
|
44
|
+
SceneWords.of = of;
|
|
45
|
+
function format(text, values) {
|
|
46
|
+
return text.replace(/\{(\w+)\}/g, (all, name) => { var _a; return (_a = values[name]) !== null && _a !== void 0 ? _a : all; });
|
|
47
|
+
}
|
|
48
|
+
SceneWords.format = format;
|
|
49
|
+
})(SceneWords || (exports.SceneWords = SceneWords = {}));
|
|
50
|
+
//# sourceMappingURL=i18n.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/**
|
|
3
|
+
* The page side of 3D view: a `ta-3d` block of a reply drawn as a scene on the 3D engine of the page. The pi
|
|
4
|
+
* extension (extension.ts) tells the model to write such a block for what is best seen in 3D.
|
|
5
|
+
*/
|
|
6
|
+
export default function activate(pi: WebExtensionAPI): () => void;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = activate;
|
|
4
|
+
const react_1 = require("./react");
|
|
5
|
+
const scene_card_1 = require("./scene-card");
|
|
6
|
+
const scene_protocol_1 = require("./scene-protocol");
|
|
7
|
+
const style_1 = require("./style");
|
|
8
|
+
/**
|
|
9
|
+
* The page side of 3D view: a `ta-3d` block of a reply drawn as a scene on the 3D engine of the page. The pi
|
|
10
|
+
* extension (extension.ts) tells the model to write such a block for what is best seen in 3D.
|
|
11
|
+
*/
|
|
12
|
+
function activate(pi) {
|
|
13
|
+
(0, react_1.bind)(pi.React);
|
|
14
|
+
// An older app shows the block as code.
|
|
15
|
+
if (!pi.registerCodeRenderer || !pi.ui.Game3D) {
|
|
16
|
+
return () => undefined;
|
|
17
|
+
}
|
|
18
|
+
const removeStyle = (0, style_1.injectStyle)();
|
|
19
|
+
pi.registerCodeRenderer(scene_protocol_1.LANGUAGE, (0, scene_card_1.sceneCard)(pi));
|
|
20
|
+
return removeStyle;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as ReactModule from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* The React of the page, which a web extension cannot import: `activate` binds it before anything
|
|
4
|
+
* renders. The JSX of this package compiles to `React.createElement` (tsconfig.json).
|
|
5
|
+
*/
|
|
6
|
+
export declare let React: typeof ReactModule;
|
|
7
|
+
export declare function bind(react: typeof ReactModule): void;
|
|
8
|
+
//# sourceMappingURL=react.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { WebCodeRendererProps, WebExtensionAPI } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
/** The renderer of a `ta-3d` block: the scene once the block is closed, what is wrong with it when it cannot be shown. */
|
|
3
|
+
export declare function sceneCard(pi: WebExtensionAPI): React.ComponentType<WebCodeRendererProps>;
|
|
4
|
+
//# sourceMappingURL=scene-card.d.ts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sceneCard = sceneCard;
|
|
4
|
+
const i18n_1 = require("./i18n");
|
|
5
|
+
const react_1 = require("./react");
|
|
6
|
+
const scene_spec_1 = require("./scene-spec");
|
|
7
|
+
const scene_view_1 = require("./scene-view");
|
|
8
|
+
/** The renderer of a `ta-3d` block: the scene once the block is closed, what is wrong with it when it cannot be shown. */
|
|
9
|
+
function sceneCard(pi) {
|
|
10
|
+
const Markdown = pi.ui.Markdown;
|
|
11
|
+
function View({ scene }) {
|
|
12
|
+
const words = i18n_1.SceneWords.of(pi.ui.language);
|
|
13
|
+
const cwd = pi.ui.useCwd();
|
|
14
|
+
const [failed, setFailed] = react_1.React.useState([]);
|
|
15
|
+
const host = react_1.React.useMemo(() => ({
|
|
16
|
+
// A file of the directory of the conversation, as the page loads it (a blob: of its bytes through a relay).
|
|
17
|
+
modelUrl: async (src) => pi.files.loadable(await pi.workspace.fileUrl(src, cwd)),
|
|
18
|
+
failed: (src, error) => {
|
|
19
|
+
var _a;
|
|
20
|
+
// Never the URL it was loaded by: it holds the secret part that serves the files.
|
|
21
|
+
const reason = /\b404\b|not found|ENOENT/i.test(String((_a = error === null || error === void 0 ? void 0 : error.message) !== null && _a !== void 0 ? _a : error)) ? words.missing : words.unreadable;
|
|
22
|
+
setFailed(list => [...list, i18n_1.SceneWords.format(words.model, { path: src, reason })]);
|
|
23
|
+
},
|
|
24
|
+
}), [cwd, words]);
|
|
25
|
+
const setup = react_1.React.useCallback((context) => new scene_view_1.SceneView(context, scene, host), [scene, host]);
|
|
26
|
+
const Game3D = pi.ui.Game3D;
|
|
27
|
+
return (react_1.React.createElement("div", { className: "t3d-card" },
|
|
28
|
+
scene.title ? react_1.React.createElement("div", { className: "t3d-title" }, scene.title) : null,
|
|
29
|
+
react_1.React.createElement("div", { className: "t3d-view" }, Game3D ? react_1.React.createElement(Game3D, { setup: setup }) : null),
|
|
30
|
+
failed.map(text => (react_1.React.createElement("div", { key: text, className: "t3d-failed" }, text))),
|
|
31
|
+
react_1.React.createElement("div", { className: "t3d-hint" }, words.hint)));
|
|
32
|
+
}
|
|
33
|
+
return function SceneBlock({ code, closed }) {
|
|
34
|
+
var _a;
|
|
35
|
+
const words = i18n_1.SceneWords.of(pi.ui.language);
|
|
36
|
+
const read = react_1.React.useMemo(() => {
|
|
37
|
+
if (!closed) {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
return { scene: scene_spec_1.SceneSpec.read(code) };
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
return { error: error instanceof Error ? error.message : String(error) };
|
|
45
|
+
}
|
|
46
|
+
}, [code, closed]);
|
|
47
|
+
if (!read) {
|
|
48
|
+
return (react_1.React.createElement("div", { className: "t3d-card t3d-writing" },
|
|
49
|
+
react_1.React.createElement("span", { className: "ta-spinner" }),
|
|
50
|
+
react_1.React.createElement("span", null, words.building)));
|
|
51
|
+
}
|
|
52
|
+
if (!read.scene) {
|
|
53
|
+
return (react_1.React.createElement("div", null,
|
|
54
|
+
react_1.React.createElement("div", { className: "t3d-failed" }, i18n_1.SceneWords.format(words.failed, { reason: (_a = read.error) !== null && _a !== void 0 ? _a : '' })),
|
|
55
|
+
react_1.React.createElement(Markdown, { text: `\`\`\`json\n${code}\n\`\`\`` })));
|
|
56
|
+
}
|
|
57
|
+
return react_1.React.createElement(View, { scene: read.scene });
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=scene-card.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the model is told on every turn under ta serve, the section `<ta-3d>` of the system prompt: show what is best
|
|
3
|
+
* seen in 3D as a `ta-3d` block, which the web extension draws. In English, as the rest of the system prompt; kept the
|
|
4
|
+
* same from turn to turn, so that the cache of the prompt holds.
|
|
5
|
+
*/
|
|
6
|
+
export declare const SCENE_PROMPT = "To show the user something in 3D (a 3D model of the workspace, a structure, a layout, a molecule, an object made of shapes, how parts fit together), write a fenced block of language ta-3d holding JSON rather than describing it; Ta draws it, lit, with a shadow, turning slowly; the user turns it by dragging. Functions and surfaces z = f(x, y) go in a ta-plot block instead.\n{\"title\"?: string, \"objects\": [...], \"camera\"?: {\"position\": [x, y, z], \"target\"?: [x, y, z]}, \"rotate\"?: false, \"ground\"?: false, \"background\"?: color}\nAn object: {\"shape\": \"box\" | \"sphere\" | \"cylinder\" | \"cone\" | \"torus\" | \"plane\" | \"capsule\" | \"line\" | \"arrow\" | \"model\" | \"group\", \"position\"?: [x, y, z], \"rotation\"?: [degrees about x, y, z], \"scale\"?: number | [x, y, z], \"color\"?: CSS color, \"opacity\"?, \"metal\"?: 0..1, \"rough\"?: 0..1, \"wireframe\"?, \"label\"?: short text over it, \"spin\"?: [degrees a second about x, y, z], \"bob\"?: height it bobs, \"children\"?: [objects, placed relative to it]}.\nSizes: box and plane \"size\": [width, height, depth] (or a number); sphere \"radius\"; cylinder, cone, capsule \"radius\" and \"height\"; torus \"radius\" and \"tube\"; line \"points\" (through them) and arrow \"points\" (from the first to the last), with a thin \"radius\"?.\nA model is {\"shape\": \"model\", \"src\": \"path/in/the/workspace.glb\", \"size\"?: its largest side, default 1}: glTF 2.0, a .glb or a .gltf with embedded files, centered at its position, its first animation playing; check the file exists first. Y is up; keep the scene within a few units of the origin; the camera fits it when not given. Labels and title in the user's language, short.";
|
|
7
|
+
//# sourceMappingURL=scene-prompt.d.ts.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SCENE_PROMPT = void 0;
|
|
4
|
+
const scene_protocol_1 = require("./scene-protocol");
|
|
5
|
+
/**
|
|
6
|
+
* What the model is told on every turn under ta serve, the section `<ta-3d>` of the system prompt: show what is best
|
|
7
|
+
* seen in 3D as a `ta-3d` block, which the web extension draws. In English, as the rest of the system prompt; kept the
|
|
8
|
+
* same from turn to turn, so that the cache of the prompt holds.
|
|
9
|
+
*/
|
|
10
|
+
exports.SCENE_PROMPT = `To show the user something in 3D (a 3D model of the workspace, a structure, a layout, a molecule, an object made of shapes, how parts fit together), write a fenced block of language ${scene_protocol_1.LANGUAGE} holding JSON rather than describing it; Ta draws it, lit, with a shadow, turning slowly; the user turns it by dragging. Functions and surfaces z = f(x, y) go in a ta-plot block instead.
|
|
11
|
+
{"title"?: string, "objects": [...], "camera"?: {"position": [x, y, z], "target"?: [x, y, z]}, "rotate"?: false, "ground"?: false, "background"?: color}
|
|
12
|
+
An object: {"shape": "box" | "sphere" | "cylinder" | "cone" | "torus" | "plane" | "capsule" | "line" | "arrow" | "model" | "group", "position"?: [x, y, z], "rotation"?: [degrees about x, y, z], "scale"?: number | [x, y, z], "color"?: CSS color, "opacity"?, "metal"?: 0..1, "rough"?: 0..1, "wireframe"?, "label"?: short text over it, "spin"?: [degrees a second about x, y, z], "bob"?: height it bobs, "children"?: [objects, placed relative to it]}.
|
|
13
|
+
Sizes: box and plane "size": [width, height, depth] (or a number); sphere "radius"; cylinder, cone, capsule "radius" and "height"; torus "radius" and "tube"; line "points" (through them) and arrow "points" (from the first to the last), with a thin "radius"?.
|
|
14
|
+
A model is {"shape": "model", "src": "path/in/the/workspace.glb", "size"?: its largest side, default 1}: glTF 2.0, a .glb or a .gltf with embedded files, centered at its position, its first animation playing; check the file exists first. Y is up; keep the scene within a few units of the origin; the camera fits it when not given. Labels and title in the user's language, short.`;
|
|
15
|
+
//# sourceMappingURL=scene-prompt.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LANGUAGE = exports.NAME = void 0;
|
|
4
|
+
/** The name of the package. */
|
|
5
|
+
exports.NAME = '@celljs/ta-3d';
|
|
6
|
+
/** The language of the fenced block of a scene in a reply: ```ta-3d, with JSON in it. */
|
|
7
|
+
exports.LANGUAGE = 'ta-3d';
|
|
8
|
+
//# sourceMappingURL=scene-protocol.js.map
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
export type Vec3 = readonly [number, number, number];
|
|
2
|
+
export declare const SHAPES: readonly ['box', 'sphere', 'cylinder', 'cone', 'torus', 'plane', 'capsule', 'line', 'arrow', 'model', 'group'];
|
|
3
|
+
export type SceneShape = (typeof SHAPES)[number];
|
|
4
|
+
/** A thing of a scene: a shape, a line, a model of the workspace, or a group of things. */
|
|
5
|
+
export interface SceneObject {
|
|
6
|
+
shape: SceneShape;
|
|
7
|
+
/** Width, height and depth of a box or a plane; of the bounding box a model is fit into. */
|
|
8
|
+
size: Vec3;
|
|
9
|
+
radius: number;
|
|
10
|
+
/** Of a cylinder, a cone, a capsule. */
|
|
11
|
+
height: number;
|
|
12
|
+
/** Of a torus, its tube. */
|
|
13
|
+
tube: number;
|
|
14
|
+
position: Vec3;
|
|
15
|
+
/** In degrees, about x, y and z. */
|
|
16
|
+
rotation: Vec3;
|
|
17
|
+
scale: Vec3;
|
|
18
|
+
color?: string;
|
|
19
|
+
opacity: number;
|
|
20
|
+
metal: number;
|
|
21
|
+
rough: number;
|
|
22
|
+
wireframe: boolean;
|
|
23
|
+
/** A word over it, facing the camera. */
|
|
24
|
+
label?: string;
|
|
25
|
+
/** Of a line (through them) and an arrow (from the first to the last). */
|
|
26
|
+
points: Vec3[];
|
|
27
|
+
/** Of a model: its path in the workspace, a .glb, or a .gltf of embedded files. */
|
|
28
|
+
src?: string;
|
|
29
|
+
/** Degrees a second it turns about x, y and z. */
|
|
30
|
+
spin: Vec3;
|
|
31
|
+
/** How high it bobs up and down, in units of the scene. */
|
|
32
|
+
bob: number;
|
|
33
|
+
children: SceneObject[];
|
|
34
|
+
}
|
|
35
|
+
/** What the renderer draws of a `ta-3d` block. */
|
|
36
|
+
export interface Scene {
|
|
37
|
+
title?: string;
|
|
38
|
+
background?: string;
|
|
39
|
+
/** Where the camera is and what it looks at; fit to what is shown when none was written. */
|
|
40
|
+
camera?: {
|
|
41
|
+
position: Vec3;
|
|
42
|
+
target: Vec3;
|
|
43
|
+
};
|
|
44
|
+
/** The scene turns slowly until the user drags it. */
|
|
45
|
+
rotate: boolean;
|
|
46
|
+
/** A soft shadow under it. */
|
|
47
|
+
ground: boolean;
|
|
48
|
+
objects: SceneObject[];
|
|
49
|
+
/** Whether anything moves of itself (spin, bob, an animation of a model, rotate). */
|
|
50
|
+
moving: boolean;
|
|
51
|
+
/** The paths of the models it loads. */
|
|
52
|
+
models: string[];
|
|
53
|
+
}
|
|
54
|
+
export declare namespace SceneSpec {
|
|
55
|
+
/** Throws an Error that says what is wrong for a block it cannot draw. */
|
|
56
|
+
function read(code: string): Scene;
|
|
57
|
+
function walk(objects: readonly SceneObject[], visit: (thing: SceneObject) => void): void;
|
|
58
|
+
}
|
|
59
|
+
//# sourceMappingURL=scene-spec.d.ts.map
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SceneSpec = exports.SHAPES = void 0;
|
|
4
|
+
exports.SHAPES = ['box', 'sphere', 'cylinder', 'cone', 'torus', 'plane', 'capsule', 'line', 'arrow', 'model', 'group'];
|
|
5
|
+
const MAX_OBJECTS = 400;
|
|
6
|
+
const MAX_DEPTH = 6;
|
|
7
|
+
const MAX_POINTS = 500;
|
|
8
|
+
var SceneSpec;
|
|
9
|
+
(function (SceneSpec) {
|
|
10
|
+
/** Throws an Error that says what is wrong for a block it cannot draw. */
|
|
11
|
+
function read(code) {
|
|
12
|
+
var _a;
|
|
13
|
+
const spec = object(JSON.parse(code));
|
|
14
|
+
if (!spec) {
|
|
15
|
+
throw new Error('A scene is a JSON object');
|
|
16
|
+
}
|
|
17
|
+
const count = { objects: 0 };
|
|
18
|
+
const objects = things(spec.objects, 0, count);
|
|
19
|
+
if (!objects.length) {
|
|
20
|
+
throw new Error('A scene has no objects');
|
|
21
|
+
}
|
|
22
|
+
const camera = object(spec.camera);
|
|
23
|
+
const position = camera ? vec(camera.position) : undefined;
|
|
24
|
+
const models = [];
|
|
25
|
+
let moving = false;
|
|
26
|
+
walk(objects, thing => {
|
|
27
|
+
if (thing.src) {
|
|
28
|
+
models.push(thing.src);
|
|
29
|
+
moving = true;
|
|
30
|
+
}
|
|
31
|
+
moving || (moving = thing.bob > 0 || thing.spin.some(Boolean));
|
|
32
|
+
});
|
|
33
|
+
const rotate = spec.rotate !== false;
|
|
34
|
+
return {
|
|
35
|
+
title: text(spec.title),
|
|
36
|
+
background: color(spec.background),
|
|
37
|
+
camera: position ? { position, target: (_a = vec(camera === null || camera === void 0 ? void 0 : camera.target)) !== null && _a !== void 0 ? _a : [0, 0, 0] } : undefined,
|
|
38
|
+
rotate,
|
|
39
|
+
ground: spec.ground !== false,
|
|
40
|
+
objects,
|
|
41
|
+
moving: moving || rotate,
|
|
42
|
+
models,
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
SceneSpec.read = read;
|
|
46
|
+
function walk(objects, visit) {
|
|
47
|
+
for (const thing of objects) {
|
|
48
|
+
visit(thing);
|
|
49
|
+
walk(thing.children, visit);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
SceneSpec.walk = walk;
|
|
53
|
+
})(SceneSpec || (exports.SceneSpec = SceneSpec = {}));
|
|
54
|
+
function things(value, depth, count) {
|
|
55
|
+
if (!Array.isArray(value) || depth > MAX_DEPTH) {
|
|
56
|
+
return [];
|
|
57
|
+
}
|
|
58
|
+
const read = [];
|
|
59
|
+
for (const item of value) {
|
|
60
|
+
const spec = object(item);
|
|
61
|
+
if (!spec || count.objects >= MAX_OBJECTS) {
|
|
62
|
+
continue;
|
|
63
|
+
}
|
|
64
|
+
count.objects++;
|
|
65
|
+
read.push(thing(spec, depth, count));
|
|
66
|
+
}
|
|
67
|
+
return read;
|
|
68
|
+
}
|
|
69
|
+
function thing(spec, depth, count) {
|
|
70
|
+
var _a, _b, _c, _d, _e;
|
|
71
|
+
const children = things(spec.children, depth + 1, count);
|
|
72
|
+
const src = path((_a = spec.src) !== null && _a !== void 0 ? _a : spec.model);
|
|
73
|
+
const named = exports.SHAPES.find(shape => shape === spec.shape);
|
|
74
|
+
const shape = named !== null && named !== void 0 ? named : (src ? 'model' : children.length ? 'group' : 'box');
|
|
75
|
+
if (shape === 'model' && !src) {
|
|
76
|
+
throw new Error('A model has no src');
|
|
77
|
+
}
|
|
78
|
+
const points = (Array.isArray(spec.points) ? spec.points : [])
|
|
79
|
+
.slice(0, MAX_POINTS)
|
|
80
|
+
.map(vec)
|
|
81
|
+
.filter((point) => !!point);
|
|
82
|
+
if ((shape === 'line' || shape === 'arrow') && points.length < 2) {
|
|
83
|
+
throw new Error(`A ${shape} needs two points`);
|
|
84
|
+
}
|
|
85
|
+
const scale = typeof spec.scale === 'number' && spec.scale > 0 ? [spec.scale, spec.scale, spec.scale] : ((_b = vec(spec.scale)) !== null && _b !== void 0 ? _b : [1, 1, 1]);
|
|
86
|
+
return {
|
|
87
|
+
shape,
|
|
88
|
+
size: size(spec.size),
|
|
89
|
+
radius: positive(spec.radius, 0.5),
|
|
90
|
+
height: positive(spec.height, 1),
|
|
91
|
+
tube: positive(spec.tube, 0.15),
|
|
92
|
+
position: (_c = vec(spec.position)) !== null && _c !== void 0 ? _c : [0, 0, 0],
|
|
93
|
+
rotation: (_d = vec(spec.rotation)) !== null && _d !== void 0 ? _d : [0, 0, 0],
|
|
94
|
+
scale,
|
|
95
|
+
color: color(spec.color),
|
|
96
|
+
opacity: Number.isFinite(spec.opacity) ? Math.min(Math.max(spec.opacity, 0.05), 1) : 1,
|
|
97
|
+
metal: unit(spec.metal, 0.1),
|
|
98
|
+
rough: unit(spec.rough, 0.5),
|
|
99
|
+
wireframe: !!spec.wireframe,
|
|
100
|
+
label: text(spec.label),
|
|
101
|
+
points,
|
|
102
|
+
src: shape === 'model' ? src : undefined,
|
|
103
|
+
spin: (_e = vec(spec.spin)) !== null && _e !== void 0 ? _e : [0, 0, 0],
|
|
104
|
+
bob: Number.isFinite(spec.bob) ? Math.min(Math.max(spec.bob, 0), 100) : 0,
|
|
105
|
+
children,
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function object(value) {
|
|
109
|
+
return value && typeof value === 'object' && !Array.isArray(value) ? value : undefined;
|
|
110
|
+
}
|
|
111
|
+
function text(value) {
|
|
112
|
+
return typeof value === 'string' && value ? value.slice(0, 80) : undefined;
|
|
113
|
+
}
|
|
114
|
+
/** A CSS color of a few characters: a name, #hex, rgb() or hsl(); anything else is left out. */
|
|
115
|
+
function color(value) {
|
|
116
|
+
return typeof value === 'string' && /^(#[0-9a-f]{3,8}|[a-z]{3,20}|(rgb|hsl)a?\([\d\s.,%]+\))$/i.test(value.trim()) ? value.trim() : undefined;
|
|
117
|
+
}
|
|
118
|
+
/** A path of the workspace, relative or absolute; not a URL of the web. */
|
|
119
|
+
function path(value) {
|
|
120
|
+
return typeof value === 'string' && value && value.length < 500 && !/^[a-z][\w+.-]*:/i.test(value) ? value : undefined;
|
|
121
|
+
}
|
|
122
|
+
function vec(value) {
|
|
123
|
+
if (Array.isArray(value) && value.length === 3 && value.every(Number.isFinite)) {
|
|
124
|
+
return [value[0], value[1], value[2]];
|
|
125
|
+
}
|
|
126
|
+
return undefined;
|
|
127
|
+
}
|
|
128
|
+
function size(value) {
|
|
129
|
+
if (typeof value === 'number' && value > 0) {
|
|
130
|
+
return [value, value, value];
|
|
131
|
+
}
|
|
132
|
+
const read = vec(value);
|
|
133
|
+
return read && read.every(part => part > 0) ? read : [1, 1, 1];
|
|
134
|
+
}
|
|
135
|
+
function positive(value, fallback) {
|
|
136
|
+
return typeof value === 'number' && value > 0 && Number.isFinite(value) ? value : fallback;
|
|
137
|
+
}
|
|
138
|
+
function unit(value, fallback) {
|
|
139
|
+
return typeof value === 'number' && Number.isFinite(value) ? Math.min(Math.max(value, 0), 1) : fallback;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=scene-spec.js.map
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Game3DContext, Game3DLoop, GamePage } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
|
+
import type * as Three from 'three';
|
|
3
|
+
import type { Scene, SceneObject, Vec3 } from './scene-spec';
|
|
4
|
+
export declare const PALETTE: string[];
|
|
5
|
+
/** What a scene asks of the card: the URL of a model of the workspace, and where to say one did not load. */
|
|
6
|
+
export interface SceneHost {
|
|
7
|
+
modelUrl(src: string): Promise<string>;
|
|
8
|
+
failed(src: string, error: unknown): void;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* A scene of a `ta-3d` block, built with the Three.js of the page (`ui.Game3D`): its shapes, lines, arrows and models
|
|
12
|
+
* of the workspace, lit, with a soft shadow under it, the camera fit to it unless the block placed it; it turns
|
|
13
|
+
* slowly until the user drags it. Models load after the shapes are shown, and the camera fits again then.
|
|
14
|
+
*/
|
|
15
|
+
export declare class SceneView implements Game3DLoop {
|
|
16
|
+
protected readonly context: Game3DContext;
|
|
17
|
+
protected readonly scene: Scene;
|
|
18
|
+
protected readonly host: SceneHost;
|
|
19
|
+
protected readonly THREE: typeof Three;
|
|
20
|
+
protected readonly root: Three.Group;
|
|
21
|
+
protected readonly controls: InstanceType<Game3DContext['OrbitControls']>;
|
|
22
|
+
protected readonly sun: Three.DirectionalLight;
|
|
23
|
+
protected readonly ground: Three.Mesh;
|
|
24
|
+
protected readonly moving: {
|
|
25
|
+
object: Three.Object3D;
|
|
26
|
+
spin: Vec3;
|
|
27
|
+
bob: number;
|
|
28
|
+
y: number;
|
|
29
|
+
phase: number;
|
|
30
|
+
}[];
|
|
31
|
+
protected readonly mixers: Three.AnimationMixer[];
|
|
32
|
+
protected readonly labels: Three.Sprite[];
|
|
33
|
+
/** Until the user turns it: the camera follows what loads. */
|
|
34
|
+
protected fitted: boolean;
|
|
35
|
+
protected disposed: boolean;
|
|
36
|
+
constructor(context: Game3DContext, scene: Scene, host: SceneHost);
|
|
37
|
+
protected build(thing: SceneObject, inherited: string): Three.Object3D;
|
|
38
|
+
protected geometry(thing: SceneObject): Three.BufferGeometry;
|
|
39
|
+
protected material(thing: SceneObject, color: string): Three.Material;
|
|
40
|
+
/** A line through its points as a thin tube; an arrow, a shaft and a head from the first point to the last. */
|
|
41
|
+
protected path(thing: SceneObject, color: string): Three.Object3D;
|
|
42
|
+
/** How high over its middle a label of a thing goes. */
|
|
43
|
+
protected top(thing: SceneObject): number;
|
|
44
|
+
/** A model of the workspace into `holder`: fit into the largest side of its size, centered, its first animation playing. */
|
|
45
|
+
protected load(thing: SceneObject, holder: Three.Group): Promise<void>;
|
|
46
|
+
/** The camera and the shadow fit to what is shown. */
|
|
47
|
+
protected fit(): void;
|
|
48
|
+
update(seconds: number, elapsed: number): void;
|
|
49
|
+
page(page: GamePage): void;
|
|
50
|
+
dispose(): void;
|
|
51
|
+
/** A wheel scrolls the conversation; a pinch (Ctrl with the wheel, as a trackpad sends it) zooms. */
|
|
52
|
+
protected readonly wheel: (event: WheelEvent) => void;
|
|
53
|
+
/** A word that always faces the camera, over what it names. */
|
|
54
|
+
static label(THREE: typeof Three, text: string): Three.Sprite;
|
|
55
|
+
static texture(THREE: typeof Three, text: string, color: string): Three.CanvasTexture;
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=scene-view.d.ts.map
|