@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
|
@@ -38,6 +38,45 @@ var ExtensionsUtil;
|
|
|
38
38
|
ExtensionsUtil.fromBase64 = fromBase64;
|
|
39
39
|
})(ExtensionsUtil ||= {});
|
|
40
40
|
|
|
41
|
+
// ../ta-protocol/esm/common/language.js
|
|
42
|
+
var TaLanguageUtil;
|
|
43
|
+
(function(TaLanguageUtil2) {
|
|
44
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
45
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
46
|
+
function of(tag) {
|
|
47
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
48
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
49
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
50
|
+
}
|
|
51
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
52
|
+
}
|
|
53
|
+
TaLanguageUtil2.of = of;
|
|
54
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
55
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
56
|
+
}
|
|
57
|
+
TaLanguageUtil2.server = server;
|
|
58
|
+
function pick(language, words) {
|
|
59
|
+
return words[of(language)];
|
|
60
|
+
}
|
|
61
|
+
TaLanguageUtil2.pick = pick;
|
|
62
|
+
function say(words) {
|
|
63
|
+
return words[server()];
|
|
64
|
+
}
|
|
65
|
+
TaLanguageUtil2.say = say;
|
|
66
|
+
function chinese(language) {
|
|
67
|
+
return of(language).startsWith("zh");
|
|
68
|
+
}
|
|
69
|
+
TaLanguageUtil2.chinese = chinese;
|
|
70
|
+
function cjk(language) {
|
|
71
|
+
return of(language) !== "en-US";
|
|
72
|
+
}
|
|
73
|
+
TaLanguageUtil2.cjk = cjk;
|
|
74
|
+
function list(language, items) {
|
|
75
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
76
|
+
}
|
|
77
|
+
TaLanguageUtil2.list = list;
|
|
78
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
79
|
+
|
|
41
80
|
// web-src/i18n.ts
|
|
42
81
|
var EN = {
|
|
43
82
|
title: "Extensions",
|
|
@@ -274,10 +313,246 @@ var ZH = {
|
|
|
274
313
|
{ kind: "skill", label: "技能", example: "翻成英文", text: "加一个技能,我说“翻成英文”时,把上一条回复翻成地道的英文" }
|
|
275
314
|
]
|
|
276
315
|
};
|
|
316
|
+
var ZH_TW = {
|
|
317
|
+
title: "擴充功能",
|
|
318
|
+
heroTitle: "用一句話做一個擴充功能",
|
|
319
|
+
heroText: "回答結束就生效,不用重啟。",
|
|
320
|
+
placeholder: "描述你想要的擴充功能,例如:在對話旁放一個番茄鍾",
|
|
321
|
+
makePrompt: "做一個擴充功能:{text}",
|
|
322
|
+
changePrompt: "修改擴充功能 {name}(在 {root}):{text}",
|
|
323
|
+
settingsTitle: "做擴充功能",
|
|
324
|
+
modelLabel: "模型",
|
|
325
|
+
modelHint: "擴充功能頁和定時任務的「做成擴充功能」開的對話用這個模型;不選就跟隨預設模型",
|
|
326
|
+
modelFailed: "做擴充功能的模型({model})現在用不了,已改用預設模型:{message}",
|
|
327
|
+
changeTitle: "修改 {name}",
|
|
328
|
+
changePlaceholder: "想讓它有什麼不同?",
|
|
329
|
+
mine: "我的擴充功能",
|
|
330
|
+
mineEmpty: "還沒有擴充功能",
|
|
331
|
+
mineEmptyHint: "在上面說一句就能做一個,也可以去市場找找",
|
|
332
|
+
tabMine: "我的",
|
|
333
|
+
tabMarket: "市場",
|
|
334
|
+
browseMarket: "去市場看看",
|
|
335
|
+
marketSearch: "用英文搜尋擴充功能,例如 web search、mcp",
|
|
336
|
+
marketClear: "清除",
|
|
337
|
+
marketPopular: "最常用",
|
|
338
|
+
marketResults: "搜尋結果",
|
|
339
|
+
marketCount: "共 {count} 個",
|
|
340
|
+
marketNote: "來自 npm 上的 pi 包。擴充功能會在這台電腦上執行程式碼,安裝前可以先看看介紹。",
|
|
341
|
+
marketEmpty: "沒有找到「{query}」相關的擴充功能,換個詞試試。",
|
|
342
|
+
marketError: "暫時連不上擴充功能市場",
|
|
343
|
+
retry: "重試",
|
|
344
|
+
installing: "安裝中…",
|
|
345
|
+
installedTag: "已安裝",
|
|
346
|
+
builtinTag: "內建",
|
|
347
|
+
perMonth: "{count}/月",
|
|
348
|
+
by: "{name}",
|
|
349
|
+
back: "返回",
|
|
350
|
+
source: "原始碼",
|
|
351
|
+
homepage: "主頁",
|
|
352
|
+
noReadme: "作者沒有寫更多介紹。",
|
|
353
|
+
readmeTitle: "介紹",
|
|
354
|
+
loadingMore: "正在載入更多…",
|
|
355
|
+
allShown: "已經到底了",
|
|
356
|
+
topics: [
|
|
357
|
+
{ label: "網頁搜尋", query: "web search" },
|
|
358
|
+
{ label: "MCP", query: "mcp" },
|
|
359
|
+
{ label: "子 Agent", query: "subagent" },
|
|
360
|
+
{ label: "記憶", query: "memory" },
|
|
361
|
+
{ label: "瀏覽器", query: "browser" },
|
|
362
|
+
{ label: "主題", query: "theme" }
|
|
363
|
+
],
|
|
364
|
+
marketKinds: {
|
|
365
|
+
extensions: "擴充功能",
|
|
366
|
+
skills: "技能",
|
|
367
|
+
prompts: "提示模板",
|
|
368
|
+
themes: "主題"
|
|
369
|
+
},
|
|
370
|
+
installed: "安裝的擴充功能",
|
|
371
|
+
import: "匯入",
|
|
372
|
+
export: "匯出",
|
|
373
|
+
change: "修改",
|
|
374
|
+
remove: "移除",
|
|
375
|
+
copySource: "複製來源",
|
|
376
|
+
more: "更多",
|
|
377
|
+
copied: "已複製 {source}",
|
|
378
|
+
removeTitle: "移除擴充功能 {name}?",
|
|
379
|
+
removeDetail: "它的頁面、卡片和命令也會一起移除。",
|
|
380
|
+
removed: "已移除 {name}",
|
|
381
|
+
exported: "已匯出 {file}",
|
|
382
|
+
imported: "已匯入 {name},已經生效",
|
|
383
|
+
installedOk: "已安裝 {name},已經生效",
|
|
384
|
+
existsTitle: "已有擴充功能 {name},要替換嗎?",
|
|
385
|
+
existsDetail: "現有的檔案會換成匯入的版本。",
|
|
386
|
+
replace: "替換",
|
|
387
|
+
project: "本專案",
|
|
388
|
+
turnOn: "啟用 {name}",
|
|
389
|
+
turnedOn: "已啟用 {name}",
|
|
390
|
+
turnedOff: "已停用 {name}",
|
|
391
|
+
shareTitle: "分享給別人",
|
|
392
|
+
shareSteps: ["匯出", "傳送 .tgz 檔案", "對方匯入"],
|
|
393
|
+
shareMore: "也可以點擴充功能的分享按鈕,生成連結和QR 碼;也支援 npm、Git 來源,或者直接對 Ta 說。",
|
|
394
|
+
importTitle: "匯入擴充功能",
|
|
395
|
+
dropHere: "把 .tgz 檔案拖到這裡,或",
|
|
396
|
+
chooseFile: "選擇檔案",
|
|
397
|
+
orSource: "或者從 npm、Git 安裝",
|
|
398
|
+
sourcePlaceholder: "npm:@scope/name 或 https://github.com/you/repo",
|
|
399
|
+
install: "安裝",
|
|
400
|
+
share: "分享",
|
|
401
|
+
installedTitle: "已安裝",
|
|
402
|
+
builtinTitle: "內建",
|
|
403
|
+
madeHere: "本機的擴充功能",
|
|
404
|
+
openNow: "開啟",
|
|
405
|
+
openingNow: "正在開啟…",
|
|
406
|
+
openNowHint: "不安裝,直接執行:只執行它的頁面,一段時間不用會被清除",
|
|
407
|
+
working: "正在處理…",
|
|
408
|
+
trust: "擴充功能會在這台電腦上執行程式碼:只匯入你信任的人給的擴充功能。",
|
|
409
|
+
dropToImport: "鬆開即可匯入",
|
|
410
|
+
notArchive: "只能匯入擴充功能的 .tgz 檔案。",
|
|
411
|
+
loading: "正在載入…",
|
|
412
|
+
kinds: {
|
|
413
|
+
extensions: "命令",
|
|
414
|
+
web: "介面",
|
|
415
|
+
skills: "技能",
|
|
416
|
+
prompts: "提示模板",
|
|
417
|
+
themes: "主題"
|
|
418
|
+
},
|
|
419
|
+
examples: [
|
|
420
|
+
{ kind: "card", label: "卡片", example: "番茄鍾", text: "在對話旁放一個番茄鍾卡片:專注 25 分鐘、休息 5 分鐘,每段結束時提醒我" },
|
|
421
|
+
{ kind: "page", label: "頁面", example: "提交統計", text: "加一個頁面,按天顯示這個儲存庫最近 30 天的提交數和改動行數" },
|
|
422
|
+
{ kind: "command", label: "命令", example: "/standup", text: "加一個 /standup 命令:總結我今天在這個儲存庫裡的提交和改動,寫成站會發言" },
|
|
423
|
+
{ kind: "skill", label: "技能", example: "翻成英文", text: "加一個技能,我說「翻成英文」時,把上一條回覆翻成地道的英文" }
|
|
424
|
+
]
|
|
425
|
+
};
|
|
426
|
+
var JA = {
|
|
427
|
+
title: "拡張機能",
|
|
428
|
+
heroTitle: "1 文で拡張機能を作る",
|
|
429
|
+
heroText: "回答が終わったら有効になり、再起動は不要です。",
|
|
430
|
+
placeholder: "拡張機能の説明を書いてください。例:会話の横にポモドーロタイマーを置く",
|
|
431
|
+
makePrompt: "拡張機能を作成:{text}",
|
|
432
|
+
changePrompt: "拡張機能 {name} を変更({root} 内):{text}",
|
|
433
|
+
settingsTitle: "拡張機能を作成",
|
|
434
|
+
modelLabel: "モデル",
|
|
435
|
+
modelHint: "拡張機能ページとスケジュールタスクの「拡張機能を作成」で開く会話はこのモデルを使用します。選択しない場合はデフォルトモデルに従います",
|
|
436
|
+
modelFailed: "拡張機能を作成するモデル({model})は現在使用できません。デフォルトモデルに変更しました:{message}",
|
|
437
|
+
changeTitle: "{name} を変更",
|
|
438
|
+
changePlaceholder: "どのように変更したいですか?",
|
|
439
|
+
mine: "私の拡張機能",
|
|
440
|
+
mineEmpty: "まだ拡張機能がありません",
|
|
441
|
+
mineEmptyHint: "上で 1 文を言うだけで作成できます。マーケットプレイスで探すこともできます",
|
|
442
|
+
tabMine: "自分のもの",
|
|
443
|
+
tabMarket: "マーケット",
|
|
444
|
+
browseMarket: "マーケットを見に行く",
|
|
445
|
+
marketSearch: "英語で拡張機能を検索してください。例:web search、mcp",
|
|
446
|
+
marketClear: "クリア",
|
|
447
|
+
marketPopular: "よく使われているもの",
|
|
448
|
+
marketResults: "検索結果",
|
|
449
|
+
marketCount: "全部で {count} 個",
|
|
450
|
+
marketNote: "npm の pi パッケージから。拡張機能はこのコンピュータ上でコードを実行します。インストール前に説明を確認してください。",
|
|
451
|
+
marketEmpty: "「{query}」に関連する拡張機能が見つかりません。別の言葉を試してください。",
|
|
452
|
+
marketError: "拡張機能マーケットプレイスに一時的に接続できません",
|
|
453
|
+
retry: "もう一度試す",
|
|
454
|
+
installing: "インストール中…",
|
|
455
|
+
installedTag: "インストール済み",
|
|
456
|
+
builtinTag: "組み込み",
|
|
457
|
+
perMonth: "{count}/月",
|
|
458
|
+
by: "{name}",
|
|
459
|
+
back: "戻る",
|
|
460
|
+
source: "ソースコード",
|
|
461
|
+
homepage: "ホームページ",
|
|
462
|
+
noReadme: "作者はこれ以上の説明を書いていません。",
|
|
463
|
+
readmeTitle: "詳細",
|
|
464
|
+
loadingMore: "さらに読み込み中…",
|
|
465
|
+
allShown: "これがすべてです",
|
|
466
|
+
topics: [
|
|
467
|
+
{ label: "ウェブ検索", query: "web search" },
|
|
468
|
+
{ label: "MCP", query: "mcp" },
|
|
469
|
+
{ label: "サブエージェント", query: "subagent" },
|
|
470
|
+
{ label: "メモリ", query: "memory" },
|
|
471
|
+
{ label: "ブラウザ", query: "browser" },
|
|
472
|
+
{ label: "テーマ", query: "theme" }
|
|
473
|
+
],
|
|
474
|
+
marketKinds: {
|
|
475
|
+
extensions: "拡張機能",
|
|
476
|
+
skills: "スキル",
|
|
477
|
+
prompts: "プロンプト",
|
|
478
|
+
themes: "テーマ"
|
|
479
|
+
},
|
|
480
|
+
installed: "インストール済みの拡張機能",
|
|
481
|
+
import: "インポート",
|
|
482
|
+
export: "エクスポート",
|
|
483
|
+
change: "変更",
|
|
484
|
+
remove: "削除",
|
|
485
|
+
copySource: "ソースをコピー",
|
|
486
|
+
more: "さらに",
|
|
487
|
+
copied: "{source} をコピーしました",
|
|
488
|
+
removeTitle: "拡張機能 {name} を削除しますか?",
|
|
489
|
+
removeDetail: "ページ、カード、コマンドも一緒に削除されます。",
|
|
490
|
+
removed: "{name} を削除しました",
|
|
491
|
+
exported: "{file} をエクスポートしました",
|
|
492
|
+
imported: "{name} をインポートしました。有効になっています",
|
|
493
|
+
installedOk: "{name} をインストールしました。有効になっています",
|
|
494
|
+
existsTitle: "拡張機能 {name} はすでに存在します。置き換えますか?",
|
|
495
|
+
existsDetail: "既存のファイルがインポートされたバージョンに置き換わります。",
|
|
496
|
+
replace: "置き換える",
|
|
497
|
+
project: "このプロジェクト",
|
|
498
|
+
turnOn: "{name} をオンにする",
|
|
499
|
+
turnedOn: "{name} はオンです",
|
|
500
|
+
turnedOff: "{name} はオフです",
|
|
501
|
+
shareTitle: "他の人と共有",
|
|
502
|
+
shareSteps: ["エクスポート", ".tgz ファイルを送信", "相手がインポート"],
|
|
503
|
+
shareMore: "または拡張機能の共有ボタンをタップして、リンクと QR コードを生成することもできます。npm と Git ソースもインポートでき、または Ta に直接伝えることもできます。",
|
|
504
|
+
importTitle: "拡張機能をインポート",
|
|
505
|
+
dropHere: ".tgz ファイルをここにドラッグするか、",
|
|
506
|
+
chooseFile: "ファイルを選択",
|
|
507
|
+
orSource: "または npm や Git からインストール",
|
|
508
|
+
sourcePlaceholder: "npm:@scope/name または https://github.com/you/repo",
|
|
509
|
+
install: "インストール",
|
|
510
|
+
share: "共有",
|
|
511
|
+
installedTitle: "インストール済み",
|
|
512
|
+
builtinTitle: "組み込み",
|
|
513
|
+
madeHere: "このパソコンの拡張機能",
|
|
514
|
+
openNow: "開く",
|
|
515
|
+
openingNow: "開いています…",
|
|
516
|
+
openNowHint: "インストールなしで直接実行:ページのみ実行され、一定期間未使用の場合は削除されます",
|
|
517
|
+
working: "処理中…",
|
|
518
|
+
trust: "拡張機能はこのコンピュータ上でコードを実行します。信頼できる人から提供された拡張機能のみをインポートしてください。",
|
|
519
|
+
dropToImport: "ドロップしてインポート",
|
|
520
|
+
notArchive: "拡張機能の .tgz ファイルのみインポートできます。",
|
|
521
|
+
loading: "読み込み中…",
|
|
522
|
+
kinds: {
|
|
523
|
+
extensions: "コマンド",
|
|
524
|
+
web: "ページ",
|
|
525
|
+
skills: "スキル",
|
|
526
|
+
prompts: "プロンプト",
|
|
527
|
+
themes: "テーマ"
|
|
528
|
+
},
|
|
529
|
+
examples: [
|
|
530
|
+
{
|
|
531
|
+
kind: "card",
|
|
532
|
+
label: "カード",
|
|
533
|
+
example: "ポモドーロ",
|
|
534
|
+
text: "会話の横にポモドーロタイマーカード:25 分間作業、5 分間休憩、各セッション終了時に通知"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
kind: "page",
|
|
538
|
+
label: "ページ",
|
|
539
|
+
example: "日別コミット",
|
|
540
|
+
text: "このリポジトリの過去 30 日間のコミット数と変更行数を日別に表示するページ"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
kind: "command",
|
|
544
|
+
label: "コマンド",
|
|
545
|
+
example: "/standup",
|
|
546
|
+
text: "/standup コマンド:今日このリポジトリで行ったコミットと変更内容をまとめ、スタンドアップの発言にする"
|
|
547
|
+
},
|
|
548
|
+
{ kind: "skill", label: "スキル", example: "英語に翻訳", text: "スキル:「英語に翻訳」と言うと、前の回答を自然な英語に翻訳します" }
|
|
549
|
+
]
|
|
550
|
+
};
|
|
551
|
+
var WORDS = { "zh-CN": ZH, "zh-TW": ZH_TW, "en-US": EN, "ja-JP": JA };
|
|
277
552
|
var ExtensionWords;
|
|
278
553
|
((ExtensionWords) => {
|
|
279
554
|
function of(language) {
|
|
280
|
-
return language
|
|
555
|
+
return TaLanguageUtil.pick(language, WORDS);
|
|
281
556
|
}
|
|
282
557
|
ExtensionWords.of = of;
|
|
283
558
|
function fill(template, values) {
|
|
@@ -763,11 +1038,13 @@ var TaPackageServer = Symbol("TaPackageServer");
|
|
|
763
1038
|
var TaPackageTextUtil;
|
|
764
1039
|
(function(TaPackageTextUtil2) {
|
|
765
1040
|
function pick(text, language) {
|
|
766
|
-
var _a, _b, _c, _d;
|
|
1041
|
+
var _a, _b, _c, _d, _e;
|
|
767
1042
|
if (text === undefined || typeof text === "string") {
|
|
768
1043
|
return text;
|
|
769
1044
|
}
|
|
770
|
-
|
|
1045
|
+
const base = language.split("-")[0];
|
|
1046
|
+
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
1047
|
+
return (_e = (_d = (_c = (_b = (_a = text[language]) !== null && _a !== undefined ? _a : text[base]) !== null && _b !== undefined ? _b : kin === undefined ? undefined : text[kin]) !== null && _c !== undefined ? _c : text.en) !== null && _d !== undefined ? _d : text["en-US"]) !== null && _e !== undefined ? _e : Object.values(text)[0];
|
|
771
1048
|
}
|
|
772
1049
|
TaPackageTextUtil2.pick = pick;
|
|
773
1050
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
@@ -1146,46 +1423,46 @@ var TaPermissionUtil;
|
|
|
1146
1423
|
}
|
|
1147
1424
|
TaPermissionUtil2.host = host;
|
|
1148
1425
|
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
1149
|
-
var action = (id, en, zh, more = {}) => ({
|
|
1426
|
+
var action = (id, en, zh, tw, ja, more = {}) => ({
|
|
1150
1427
|
id,
|
|
1151
1428
|
area: id.split(".")[0],
|
|
1152
|
-
title: { en, "zh-CN": zh },
|
|
1429
|
+
title: { en, "zh-CN": zh, ...tw ? { "zh-TW": tw } : {}, ...ja ? { "ja-JP": ja } : {} },
|
|
1153
1430
|
...more
|
|
1154
1431
|
});
|
|
1155
1432
|
var TA_ACTIONS = [
|
|
1156
|
-
action("chat.view", "See conversations", "查看对话"),
|
|
1157
|
-
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
1158
|
-
action("chat.create", "Start conversations", "新建对话"),
|
|
1159
|
-
action("chat.stop", "Stop a reply", "停止回复"),
|
|
1160
|
-
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
1161
|
-
action("chat.share", "Share by a link", "生成分享链接"),
|
|
1162
|
-
action("agent.view", "See agents", "查看智能体"),
|
|
1163
|
-
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
1164
|
-
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
1165
|
-
action("channel.view", "See channels", "查看频道"),
|
|
1166
|
-
action("channel.post", "Post in channels", "在频道里发言"),
|
|
1167
|
-
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
1168
|
-
action("task.view", "See tasks", "查看任务"),
|
|
1169
|
-
action("task.create", "Hand out tasks", "派任务"),
|
|
1170
|
-
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
1171
|
-
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
1172
|
-
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
1173
|
-
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
1174
|
-
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
1175
|
-
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
1176
|
-
action("models.use", "Use the models", "使用模型"),
|
|
1177
|
-
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
1178
|
-
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
1179
|
-
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
1180
|
-
action("extensions.use", "Use extensions", "使用扩展"),
|
|
1181
|
-
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
1182
|
-
action("settings.view", "See settings", "查看设置"),
|
|
1183
|
-
action("settings.manage", "Change settings", "修改设置"),
|
|
1184
|
-
action("members.view", "See members", "查看成员"),
|
|
1185
|
-
action("members.invite", "Invite people", "邀请别人"),
|
|
1186
|
-
action("members.approve", "Answer requests", "处理申请"),
|
|
1187
|
-
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
1188
|
-
action("audit.view", "See the record", "查看记录")
|
|
1433
|
+
action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
|
|
1434
|
+
action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
|
|
1435
|
+
action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
|
|
1436
|
+
action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
|
|
1437
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
|
|
1438
|
+
action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
|
|
1439
|
+
action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
|
|
1440
|
+
action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
|
|
1441
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
|
|
1442
|
+
action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
|
|
1443
|
+
action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
|
|
1444
|
+
action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
|
|
1445
|
+
action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
|
|
1446
|
+
action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
|
|
1447
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
|
|
1448
|
+
action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
|
|
1449
|
+
action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
|
|
1450
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
|
|
1451
|
+
action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
|
|
1452
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
|
|
1453
|
+
action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
|
|
1454
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
|
|
1455
|
+
action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
|
|
1456
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
|
|
1457
|
+
action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
|
|
1458
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
|
|
1459
|
+
action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
|
|
1460
|
+
action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
|
|
1461
|
+
action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
|
|
1462
|
+
action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
|
|
1463
|
+
action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
|
|
1464
|
+
action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
|
|
1465
|
+
action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
|
|
1189
1466
|
];
|
|
1190
1467
|
var TaActionUtil;
|
|
1191
1468
|
(function(TaActionUtil2) {
|
|
@@ -1195,8 +1472,18 @@ var TaActionUtil;
|
|
|
1195
1472
|
}
|
|
1196
1473
|
TaActionUtil2.info = info;
|
|
1197
1474
|
function title(id, language) {
|
|
1198
|
-
|
|
1199
|
-
|
|
1475
|
+
var _a;
|
|
1476
|
+
var _b, _c;
|
|
1477
|
+
const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
|
|
1478
|
+
if (!title2) {
|
|
1479
|
+
return id;
|
|
1480
|
+
}
|
|
1481
|
+
return TaLanguageUtil.pick(language, {
|
|
1482
|
+
"zh-CN": title2["zh-CN"],
|
|
1483
|
+
"zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
|
|
1484
|
+
"en-US": title2.en,
|
|
1485
|
+
"ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
|
|
1486
|
+
});
|
|
1200
1487
|
}
|
|
1201
1488
|
TaActionUtil2.title = title;
|
|
1202
1489
|
function inside(dir, path) {
|
|
@@ -1356,7 +1643,7 @@ var MarketUtil;
|
|
|
1356
1643
|
return String(count);
|
|
1357
1644
|
}
|
|
1358
1645
|
MarketUtil.compact = compact;
|
|
1359
|
-
function ago(iso,
|
|
1646
|
+
function ago(iso, language2, now = Date.now()) {
|
|
1360
1647
|
const time = iso ? Date.parse(iso) : Number.NaN;
|
|
1361
1648
|
if (Number.isNaN(time)) {
|
|
1362
1649
|
return;
|
|
@@ -1370,7 +1657,7 @@ var MarketUtil;
|
|
|
1370
1657
|
["hour", 3600],
|
|
1371
1658
|
["minute", 60]
|
|
1372
1659
|
];
|
|
1373
|
-
const format = new Intl.RelativeTimeFormat(
|
|
1660
|
+
const format = new Intl.RelativeTimeFormat(language2, { numeric: "auto" });
|
|
1374
1661
|
for (const [unit, size] of steps) {
|
|
1375
1662
|
if (Math.abs(seconds) >= size) {
|
|
1376
1663
|
return format.format(Math.round(seconds / size), unit);
|
|
@@ -42,6 +42,6 @@ The choice of the engines and the design: docs/design/ta-games.md. The package h
|
|
|
42
42
|
|
|
43
43
|
## Limits
|
|
44
44
|
|
|
45
|
-
- 3D is Three.js itself and
|
|
45
|
+
- 3D is Three.js itself, OrbitControls, and GLTFLoader with SkeletonUtils for models of glTF kept in the package (pi.fileUrl): no post-processing or physics.
|
|
46
46
|
- Browsers allow a few WebGL contexts at once (Chrome some 16): with many games shown at once, the first ones lose their picture.
|
|
47
47
|
- Other coding agents (`@celljs/ta-agents`) do not see pi's skills: the message of "Have Ta make one" names the files of both SKILL.md; when asking in a conversation, tell it to read them.
|
|
@@ -42,6 +42,6 @@ const setup = ({ THREE, scene, camera, page }) => {
|
|
|
42
42
|
|
|
43
43
|
## 限制
|
|
44
44
|
|
|
45
|
-
- 3D
|
|
45
|
+
- 3D 有 Three.js 本体、OrbitControls,以及加载包内 glTF 模型的 GLTFLoader 和 SkeletonUtils(pi.fileUrl):没有后期处理和物理引擎。
|
|
46
46
|
- 浏览器同时能用的 WebGL 上下文有限(Chrome 约 16 个),同时显示很多游戏时最早的会丢失画面。
|
|
47
47
|
- 外部 Agent(`@celljs/ta-agents`)看不到 pi 的技能:"让 Ta 做一个"的消息里写明了两份 SKILL.md 的路径;在对话里直接说时,可以提醒它读这两份文件。
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
declare const EN: {
|
|
2
3
|
page: string;
|
|
3
4
|
games: string;
|
|
@@ -26,6 +27,8 @@ declare const EN: {
|
|
|
26
27
|
makeAnother: string;
|
|
27
28
|
failed: string;
|
|
28
29
|
};
|
|
30
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
31
|
+
export declare const WORDS: Readonly<Record<TaLanguage, typeof EN>>;
|
|
29
32
|
export type GamesWords = typeof EN;
|
|
30
33
|
export declare namespace GamesText {
|
|
31
34
|
function of(language: string): GamesWords;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GamesText = void 0;
|
|
3
|
+
exports.GamesText = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const EN = {
|
|
5
6
|
page: 'Games',
|
|
6
7
|
games: 'Your games',
|
|
@@ -57,10 +58,68 @@ const ZH = {
|
|
|
57
58
|
makeAnother: '再做一个',
|
|
58
59
|
failed: '没能开始:{message}',
|
|
59
60
|
};
|
|
61
|
+
const ZH_TW = {
|
|
62
|
+
page: '遊戲',
|
|
63
|
+
games: '我的遊戲',
|
|
64
|
+
installExamples: '安裝示例遊戲',
|
|
65
|
+
noGames: '還沒有遊戲',
|
|
66
|
+
noGamesHint: '在下面讓 Ta 做一個,或者去市場裝一個',
|
|
67
|
+
makeTitle: '讓 Ta 做一個',
|
|
68
|
+
makeHint: '也可以直接在對話裡說想玩什麼',
|
|
69
|
+
snake: '貪吃蛇',
|
|
70
|
+
snakeHint: '方向鍵或滑動操作',
|
|
71
|
+
snakeAsk: '做一個貪吃蛇小遊戲擴充功能:電腦上用方向鍵,手機上滑動操作,記下最高分。',
|
|
72
|
+
breakout: '打磚塊',
|
|
73
|
+
breakoutHint: '擋板跟著手指走',
|
|
74
|
+
breakoutAsk: '做一個打磚塊小遊戲擴充功能:擋板跟隨滑鼠或手指移動,磚塊用 Ta 主題的顏色。',
|
|
75
|
+
board: '幹活的恐龍',
|
|
76
|
+
boardHint: '把定時任務變成小世界',
|
|
77
|
+
boardAsk: '做一張看板卡片,把我的定時任務畫成一個畫素小世界:每個任務是草地上的一隻小恐龍,正在執行時奔跑,上次執行失敗時趴下。',
|
|
78
|
+
maze: '3D 迷宮',
|
|
79
|
+
mazeHint: '滾著小球找出口',
|
|
80
|
+
mazeAsk: '用 ui.Game3D 做一個 3D 迷宮小遊戲擴充功能:方向鍵或拖動傾斜迷宮,讓小球滾到出口,每局一個新迷宮,記下最快用時。',
|
|
81
|
+
making: '做遊戲',
|
|
82
|
+
makeTitleOf: '讓 Ta 做{name}?',
|
|
83
|
+
makeAgainTitle: '再做一個{name}?',
|
|
84
|
+
madeBefore: '之前已經讓 Ta 做過,這會再開一個新對話。',
|
|
85
|
+
startMaking: '開始做',
|
|
86
|
+
makeAnother: '再做一個',
|
|
87
|
+
failed: '沒能開始:{message}',
|
|
88
|
+
};
|
|
89
|
+
const JA = {
|
|
90
|
+
page: 'ゲーム',
|
|
91
|
+
games: 'マイゲーム',
|
|
92
|
+
installExamples: 'サンプルゲームをインストール',
|
|
93
|
+
noGames: 'ゲームがまだありません',
|
|
94
|
+
noGamesHint: '下で Ta に作成させるか、マーケットからインストール',
|
|
95
|
+
makeTitle: 'Ta に作成させる',
|
|
96
|
+
makeHint: 'または会話でプレイしたいゲームを直接指定',
|
|
97
|
+
snake: 'スネーク',
|
|
98
|
+
snakeHint: '矢印キーまたはスワイプ',
|
|
99
|
+
snakeAsk: 'Ta の拡張機能として Snake ゲームを作成:パソコンではアローキー、スマホではスワイプで操作、最高スコアを保存。',
|
|
100
|
+
breakout: 'ブレイクアウト',
|
|
101
|
+
breakoutHint: 'パドルが指に付いてくる',
|
|
102
|
+
breakoutAsk: 'Ta の拡張機能として Breakout ゲームを作成:パドルがマウスまたは指に追従、ブロックは Ta テーマの色。',
|
|
103
|
+
board: '働く恐竜',
|
|
104
|
+
boardHint: 'スケジュール タスクを小世界に',
|
|
105
|
+
boardAsk: 'スケジュール タスクをピクセル小世界として表示するボードカードを作成:各タスクが草地上の恐竜で、実行中は走り、最後の実行が失敗したら寝ている。',
|
|
106
|
+
maze: '3D 迷路',
|
|
107
|
+
mazeHint: 'ボールを転がして通抜ける',
|
|
108
|
+
mazeAsk: 'ui.Game3D を使用して Ta の拡張機能として 3D 迷路ゲームを作成:矢印キーまたはドラッグで迷路を傾ける、ボールをゴールに転がす、毎回新しい迷路、最速時間を保存。',
|
|
109
|
+
making: 'ゲームを作成',
|
|
110
|
+
makeTitleOf: 'Ta に {name} を作成させますか?',
|
|
111
|
+
makeAgainTitle: '別の {name} を作成しますか?',
|
|
112
|
+
madeBefore: 'Ta には以前作成するよう指示されました。これにより別の会話が開きます。',
|
|
113
|
+
startMaking: '作成',
|
|
114
|
+
makeAnother: '別のゲームを作成',
|
|
115
|
+
failed: '開始できませんでした:{message}',
|
|
116
|
+
};
|
|
117
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
118
|
+
exports.WORDS = { 'zh-CN': ZH, 'zh-TW': ZH_TW, 'en-US': EN, 'ja-JP': JA };
|
|
60
119
|
var GamesText;
|
|
61
120
|
(function (GamesText) {
|
|
62
121
|
function of(language) {
|
|
63
|
-
return language.
|
|
122
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
64
123
|
}
|
|
65
124
|
GamesText.of = of;
|
|
66
125
|
function format(text, values) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-games",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.1",
|
|
4
4
|
"description": "A pi package for Ta: games and game-like extensions on Phaser and Three.js, the game engines of Ta's web page, with the ta-game skill and the Games page",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
@@ -38,11 +38,15 @@
|
|
|
38
38
|
"pi": {
|
|
39
39
|
"title": {
|
|
40
40
|
"en": "Games",
|
|
41
|
-
"zh-CN": "游戏"
|
|
41
|
+
"zh-CN": "游戏",
|
|
42
|
+
"zh-TW": "遊戲",
|
|
43
|
+
"ja-JP": "ゲーム"
|
|
42
44
|
},
|
|
43
45
|
"summary": {
|
|
44
46
|
"en": "The Games page lists the extensions that are games and has Ta make more, on the game engines of the page (Phaser for 2D, Three.js for 3D); Dino Run and Stack come as examples.",
|
|
45
|
-
"zh-CN": "\"游戏\"页列出所有游戏扩展,也能让 Ta 再做;游戏用页面内置的引擎(2D 是 Phaser,3D 是 Three.js),自带恐龙快跑和叠方块两个示例。"
|
|
47
|
+
"zh-CN": "\"游戏\"页列出所有游戏扩展,也能让 Ta 再做;游戏用页面内置的引擎(2D 是 Phaser,3D 是 Three.js),自带恐龙快跑和叠方块两个示例。",
|
|
48
|
+
"zh-TW": "「遊戲」頁列出所有遊戲擴充功能,也能讓 Ta 再做;遊戲用頁面內建的引擎(2D 是 Phaser,3D 是 Three.js),自帶恐龍快跑和疊方塊兩個示例。",
|
|
49
|
+
"ja-JP": "「ゲーム」ページにゲームの拡張機能を一覧し、Ta にさらに作らせます。ページ内蔵のエンジン(2D は Phaser、3D は Three.js)を使い、恐竜ラン と 積み木 のサンプル付き。"
|
|
46
50
|
},
|
|
47
51
|
"icon": "Gamepad2",
|
|
48
52
|
"webActivation": "open",
|
|
@@ -85,21 +85,59 @@ export default function (pi) {
|
|
|
85
85
|
}
|
|
86
86
|
```
|
|
87
87
|
|
|
88
|
-
- `context` has `THREE` (the whole of `three`, r187), `OrbitControls` (
|
|
88
|
+
- `context` has `THREE` (the whole of `three`, r187), its addons here `OrbitControls`, `GLTFLoader` and `SkeletonUtils` (for models, below), `renderer` (a WebGLRenderer, antialiased, transparent over the page until `scene.background` is set, at the pixel ratio of the screen up to 2), `scene`, `camera` (a PerspectiveCamera of 50° at (0, 0, 5) looking at the origin; set `context.camera` to another one to use it), `element` (for pointer and key events), `page` (as for Phaser, the latest) and `width` / `height`.
|
|
89
89
|
- The loop: `update(seconds, elapsed)` each frame while it can be seen (`seconds` at most 0.1, time asleep not counted), then the page renders `scene` with `camera`, or calls `render()` if the loop has one. `resize(width, height)` when the element changes size (the renderer and a PerspectiveCamera already have it), `page(page)` when the theme or motion changes, `dispose()` before it ends. Move by `seconds`, never by frames; never `requestAnimationFrame`, `setInterval` or `THREE.Clock` of your own.
|
|
90
|
-
- The same rules as for Phaser: a parent with a size (a 3D view wants `aspect-ratio` or the height of a page), listeners on `element` only (`pointerdown` / `pointermove` / `pointerup` for mouse and finger; `keydown` while it has the focus), the colors of `page.colors` (numbers for `color`, `setHex`),
|
|
90
|
+
- The same rules as for Phaser: a parent with a size (a 3D view wants `aspect-ratio` or the height of a page), listeners on `element` only (`pointerdown` / `pointermove` / `pointerup` for mouse and finger; `keydown` while it has the focus), the colors of `page.colors` (numbers for `color`, `setHex`), nothing loaded from the internet (shapes in code: `BoxGeometry`, `SphereGeometry`, `CylinderGeometry`, `CapsuleGeometry`, `TorusGeometry`, `ExtrudeGeometry` of a `Shape`, textures drawn on a canvas with `CanvasTexture`; or a model kept in the package, below), scores in `pi.storage`, less motion with `reduceMotion`.
|
|
91
91
|
- What the scene holds when it ends (geometries, materials, their textures, `scene.background`) the page disposes, and it gives the WebGL context back; dispose yourself only what you take out of the scene before, and stop what is not in it (`controls.dispose()` in `dispose`).
|
|
92
92
|
- On a phone: a few hundred meshes at most; share one geometry and one material between meshes alike (or an `InstancedMesh`), `MeshLambertMaterial` or `MeshStandardMaterial`, no shadows unless they matter (`renderer.shadowMap.enabled` and one light that casts them).
|
|
93
93
|
- Text and scores are best drawn by React over the game (an element of `position: absolute` over the parent, `pointer-events: none`), told by the setup through a callback: sharp, in the font of the page, in its language.
|
|
94
94
|
- Collisions by hand: `THREE.Box3` / `Sphere` and `intersectsBox`, a `Raycaster` for what the pointer is on (`raycaster.setFromCamera(ndc, camera)`, `ndc` from the pointer and `element.getBoundingClientRect()`). There is no physics engine.
|
|
95
95
|
|
|
96
|
+
Models. Shapes in code are enough for most games; a creature or a thing that must look real up close (an animal, a person, a vehicle) is a model of glTF instead, a file kept in the package:
|
|
97
|
+
|
|
98
|
+
```js
|
|
99
|
+
function setup(context) {
|
|
100
|
+
const { THREE, scene } = context;
|
|
101
|
+
let mixer;
|
|
102
|
+
let ended = false;
|
|
103
|
+
// The setup returns at once; the model comes when it has loaded.
|
|
104
|
+
pi.fileUrl('models/rex.glb')
|
|
105
|
+
.then(url => new context.GLTFLoader().loadAsync(url))
|
|
106
|
+
.then(gltf => {
|
|
107
|
+
if (ended) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
scene.add(gltf.scene);
|
|
111
|
+
mixer = new THREE.AnimationMixer(gltf.scene);
|
|
112
|
+
const walk = gltf.animations.find(clip => /walk/i.test(clip.name)) ?? gltf.animations[0];
|
|
113
|
+
if (walk) {
|
|
114
|
+
mixer.clipAction(walk).play();
|
|
115
|
+
}
|
|
116
|
+
})
|
|
117
|
+
.catch(error => console.error('The model did not load:', error));
|
|
118
|
+
return {
|
|
119
|
+
update: seconds => mixer?.update(seconds),
|
|
120
|
+
dispose: () => {
|
|
121
|
+
ended = true;
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
- `pi.fileUrl(path)` is a URL of a file of the extension's own package, by its path there, that loads on a phone and through a relay too; a path outside the package throws. It is newer than some Ta apps: `pi.fileUrl?.(…)`, and shapes in code without it.
|
|
128
|
+
- One `.glb` file per model (a `.gltf` with its files beside it loads only on the computer of ta serve). Meshes compressed by meshopt load (what `gltfpack` and `gltf-transform meshopt` write); Draco and KTX2 do not: `npx @gltf-transform/cli inspect model.glb` lists the extensions a file uses.
|
|
129
|
+
- On a phone a model is a few MB at most, some tens of thousands of triangles, textures of 2048 pixels at most. Scale and place it by its box (`new THREE.Box3().setFromObject(gltf.scene)`), not by guessing its units. A model of `MeshStandardMaterial` wants more light than Lambert: a hemisphere light and a directional one of about 2 to 3.
|
|
130
|
+
- Its animations by name (`gltf.animations`, `mixer.clipAction(clip)`, `fadeIn` / `crossFadeTo` between them), the mixer moved by `seconds` in `update`. The same model shown several times: `context.SkeletonUtils.clone(gltf.scene)` for each, never `clone()` of a model with bones.
|
|
131
|
+
- Where it comes from: one the user gave, or one downloaded once into the package (`models/`) from a source whose license lets the user use it (CC0, or CC BY with the credit in the package's README); tell the user which. Never one fetched from the internet as the game runs.
|
|
132
|
+
- What is in the scene when the game ends the page disposes; a model loaded but not added, or taken out, dispose yourself.
|
|
133
|
+
|
|
96
134
|
What most often goes wrong from older Three.js:
|
|
97
135
|
|
|
98
136
|
- Only `BufferGeometry`: `THREE.Geometry`, `Face3` and `vertices` are gone.
|
|
99
137
|
- Colors are managed: `renderer.outputEncoding` and `sRGBEncoding` are gone (`outputColorSpace`, `SRGBColorSpace`; a texture of colors drawn on a canvas sets `texture.colorSpace = THREE.SRGBColorSpace`).
|
|
100
138
|
- Lights are physical, `useLegacyLights` and `physicallyCorrectLights` are gone: a hemisphere light of about 1.5 to 2 and a directional one of about 1.5 light a scene of Lambert materials; values of old examples (0.5, 1) leave it dark.
|
|
101
139
|
- `THREE.Clock` is deprecated (r183): the loop gives the time.
|
|
102
|
-
- Addons are not importable (`three/addons/...`): only `context.OrbitControls`; no
|
|
140
|
+
- Addons are not importable (`three/addons/...`): only `context.OrbitControls`, `context.GLTFLoader` and `context.SkeletonUtils`; no other loader (FBX, OBJ), no post-processing, no WebGPU renderer or TSL.
|
|
103
141
|
|
|
104
142
|
## Where a game shows
|
|
105
143
|
|