@celljs/ta 4.13.1 → 4.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +1025 -814
- package/dist/gateway.mjs +471 -196
- package/dist/pi/CHANGELOG.md +13 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-agents/extension/index.mjs +50 -21
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +43 -22
- package/dist/pi/packages/ta-agents/lib/texts.js +54 -21
- package/dist/pi/packages/ta-agents/package.json +9 -5
- package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
- package/dist/pi/packages/ta-bots/host/index.mjs +303 -184
- 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/package.json +9 -5
- 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 +9 -5
- 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 +291 -190
- 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/room.js +3 -3
- 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 +9 -5
- package/dist/pi/packages/ta-channels/web/index.js +483 -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 +9 -5
- package/dist/pi/packages/ta-cron/README.en.md +1 -1
- package/dist/pi/packages/ta-cron/README.md +1 -1
- 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.d.ts +2 -0
- package/dist/pi/packages/ta-cron/lib/page.js +22 -8
- 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/package.json +9 -5
- package/dist/pi/packages/ta-cron/web/index.js +303 -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 +9 -5
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +2 -1
- package/dist/pi/packages/ta-extensions/web/index.js +499 -176
- 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 +9 -5
- 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 +31 -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/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-glance/lib/i18n.js +31 -2
- package/dist/pi/packages/ta-glance/package.json +9 -5
- package/dist/pi/packages/ta-glance/web/index.js +98 -14
- package/dist/pi/packages/ta-initiative/README.en.md +1 -0
- package/dist/pi/packages/ta-initiative/README.md +1 -0
- package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
- package/dist/pi/packages/ta-initiative/host/index.mjs +123 -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 +4 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +155 -4
- package/dist/pi/packages/ta-initiative/lib/inbox.js +3 -2
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +15 -4
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-service.d.ts +1 -0
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +4 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-store.js +5 -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 +1 -1
- package/dist/pi/packages/ta-initiative/package.json +9 -5
- package/dist/pi/packages/ta-initiative/web/index.js +207 -12
- 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 +9 -5
- 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 +9 -5
- 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 +323 -147
- package/dist/pi/packages/ta-moments/host/index.mjs +350 -161
- package/dist/pi/packages/ta-moments/lib/editor.js +1 -1
- package/dist/pi/packages/ta-moments/lib/friends.d.ts +4 -1
- package/dist/pi/packages/ta-moments/lib/friends.js +3 -2
- 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 +25 -12
- package/dist/pi/packages/ta-moments/lib/moments-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-moments/lib/page.js +8 -7
- package/dist/pi/packages/ta-moments/lib/post-util.js +2 -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/store.js +6 -0
- package/dist/pi/packages/ta-moments/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-moments/lib/style.js +4 -5
- package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
- package/dist/pi/packages/ta-moments/package.json +9 -5
- package/dist/pi/packages/ta-moments/web/index.js +453 -192
- package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
- package/dist/pi/packages/ta-nearby/host/index.mjs +437 -39
- 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-net.js +2 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-protocol.d.ts +11 -0
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +5 -4
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +53 -10
- package/dist/pi/packages/ta-nearby/lib/page.js +15 -13
- 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/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-nearby/lib/style.js +1 -1
- package/dist/pi/packages/ta-nearby/package.json +9 -5
- package/dist/pi/packages/ta-nearby/web/index.js +223 -7
- package/dist/pi/packages/ta-notify/README.en.md +1 -0
- package/dist/pi/packages/ta-notify/README.md +1 -0
- package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
- package/dist/pi/packages/ta-notify/host/index.mjs +3 -0
- 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/notify-protocol.d.ts +2 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.d.ts +1 -0
- package/dist/pi/packages/ta-notify/lib/notify-service.js +3 -0
- 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/package.json +9 -5
- package/dist/pi/packages/ta-notify/web/index.js +89 -1
- package/dist/pi/packages/ta-recall/README.en.md +1 -1
- package/dist/pi/packages/ta-recall/README.md +1 -1
- package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
- package/dist/pi/packages/ta-recall/host/index.mjs +145 -67
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +9 -6
- 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.d.ts +5 -3
- package/dist/pi/packages/ta-recall/lib/recall-service.js +16 -10
- 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 +9 -5
- 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/friend-notices.js +27 -8
- package/dist/pi/packages/ta-rooms/lib/friends-view.js +7 -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/page.d.ts +12 -0
- package/dist/pi/packages/ta-rooms/lib/page.js +38 -3
- package/dist/pi/packages/ta-rooms/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -2
- package/dist/pi/packages/ta-rooms/package.json +9 -5
- package/dist/pi/packages/ta-rooms/web/index.js +537 -21
- 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/package.json +9 -5
- package/dist/pi/packages/ta-share/web/index.js +240 -2
- 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 +175 -4
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +185 -4
- 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 -1
- package/dist/pi/packages/ta-sync/package.json +9 -5
- package/dist/pi/packages/ta-sync/web/index.js +394 -7
- 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 +9 -5
- package/dist/pi/packages/ta-team/README.en.md +3 -1
- package/dist/pi/packages/ta-team/README.md +3 -1
- package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
- package/dist/pi/packages/ta-team/host/index.mjs +694 -85
- package/dist/pi/packages/ta-team/lib/dialogs.js +140 -17
- package/dist/pi/packages/ta-team/lib/host.js +4 -0
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +18 -1
- package/dist/pi/packages/ta-team/lib/i18n.js +455 -10
- package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
- package/dist/pi/packages/ta-team/lib/members-tab.js +55 -8
- package/dist/pi/packages/ta-team/lib/page.d.ts +5 -0
- package/dist/pi/packages/ta-team/lib/page.js +19 -0
- package/dist/pi/packages/ta-team/lib/parts.d.ts +3 -1
- package/dist/pi/packages/ta-team/lib/parts.js +4 -3
- package/dist/pi/packages/ta-team/lib/policy.d.ts +24 -0
- package/dist/pi/packages/ta-team/lib/policy.js +32 -0
- package/dist/pi/packages/ta-team/lib/protocol.d.ts +22 -15
- package/dist/pi/packages/ta-team/lib/protocol.js +1 -3
- package/dist/pi/packages/ta-team/lib/shared-home.js +2 -2
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +19 -8
- package/dist/pi/packages/ta-team/lib/team-admin.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-core.js +1 -0
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +80 -6
- package/dist/pi/packages/ta-team/lib/team-invites.js +239 -10
- package/dist/pi/packages/ta-team/lib/team-people.js +2 -0
- package/dist/pi/packages/ta-team/package.json +13 -5
- package/dist/pi/packages/ta-team/web/index.js +1028 -224
- 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/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-workspace/lib/style.js +2 -2
- package/dist/pi/packages/ta-workspace/package.json +10 -6
- package/dist/pi/packages/ta-workspace/web/index.js +714 -200
- package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
- package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-C30pzFN3.js → abnfDiagram-S7VZAUFO-sclOP11q.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-wfYFQl2u.js → architecture-WOLXFQ4H-Bitg4Dpy.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-B05zgxyT.js → architectureDiagram-YGSQEFNW-Hc0W5khF.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BhN8Bsu0.js → blockDiagram-APKKGZFW-D2ZWatLV.js} +1 -1
- package/dist/public/assets/{browser-DteLjv_-.js → browser-D-etIMuL.js} +1 -1
- package/dist/public/assets/{browser-D2CY3Lfb.js → browser-D2BcOPKG.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-DvdF3qCV.js → c4Diagram-KJ2TOQU5-CWEcyfwV.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-DNavkrnr.js → chunk-6MUBBAK2-CWbrJHxK.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-DplVEqp_.js → chunk-AXFCVDMN-DJQdD4iX.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-BazOaHvw.js → chunk-BG4553SI-CYiiJcBj.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-DmoQWa8b.js → chunk-DQASFODM-NrNC1UeX.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-Cj1m9ccz.js → chunk-HFQBQIA3-BIHXOwS2.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-_jbilrLX.js → chunk-KQLB2F66-CcU_AFwQ.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CWU16Lut.js → chunk-KS47KZWR-DGfNbbcL.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-wsbxWEZE.js → chunk-LEVMRMFU-B4PSS_Pp.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-BGvmwwTv.js → chunk-M57EVK23-1555_mm4.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-Bp3hJ4kT.js → chunk-OY52VR5R-zbNEbYJ8.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-C1rQVxsJ.js → chunk-QB3YPZ4I-C-nNDGuN.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-CEy0dKWn.js → chunk-R3KSYZAL-DcXXuhbl.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-akqvafwH.js → chunk-STOXU5M4-Bb77QkUj.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-CVXAS4DS.js → chunk-TU62E6Q5-D8IJkNq5.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-DT_bEMvQ.js → chunk-X4PVCEUW-BzejexgB.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Bgv_n5Qh.js → chunk-XXDRQBXY-D2GPHyll.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-BtjQChpS.js → classDiagram-v2-L25IHNXF-CUEzxxI8.js} +1 -1
- package/dist/public/assets/{client-sUFoEC5s.js → client-C8gi9Fk2.js} +1 -1
- package/dist/public/assets/{common-CGQN5htF.js → common-DrZR0tgm.js} +2 -2
- package/dist/public/assets/{cose-bilkent-JH36ORCC-DSrOY8Uk.js → cose-bilkent-JH36ORCC-CJdgJyUw.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DBnkPRHn.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-DTy7FNFS.js → cynefinDiagram-L36ESFBY-D0F_9jN8.js} +1 -1
- package/dist/public/assets/{d3-selection-ip6rDUzY.js → d3-selection-BoARy1rP.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-CHrks7Jb.js → dagre-SPEB5RXH-CzI5gZOv.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-eUJ7STAr.js → diagram-3B7GL73J-BCtNcE7M.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-B_fptNkg.js → diagram-DNEMPZML-DV9U4KeH.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN-C15owCSG.js → diagram-L3MUGCDN-DHU45Sd4.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-Bfa1qEgY.js → diagram-LA4NIPWU-Ba5oVP56.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-Bwxsih_Q.js → diagram-MHCOC4E2-B1Nk6qet.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-DKZ_lwah.js → diagram-XPFHEONP-DFwA3q09.js} +1 -1
- package/dist/public/assets/{dist-VHGBaby6.js → dist-Col1xVDT.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-CCkttvYi.js → ebnfDiagram-UZSYDL2S-BuBgxBJ2.js} +1 -1
- package/dist/public/assets/{editor.api-a2gC0dVD.js → editor.api-BLlyFz5x.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-DcikW39e.js → elk-XV6XMXQE-BPEI--zX.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BE3TV5lU.js → erDiagram-EYBAPDEH-Cci0kYUw.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-C2s1kutf.js → eventmodeling-K75KTNOO-B0eT5X1_.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CmMdmAxj.js +1 -0
- package/dist/public/assets/{freemarker2-2e8pZojb.js → freemarker2-CAZGFA3W.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-rGnJptii.js → ganttDiagram-23REXITY-DEm85e1I.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-DKo3OVhR.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-CNnsDjQA.js → gitGraphDiagram-STJD7YCW-DJAZD2LR.js} +1 -1
- package/dist/public/assets/{handlebars-CMKN6E37.js → handlebars-Agkl4nGr.js} +1 -1
- package/dist/public/assets/{html-0AjXQhkQ.js → html-Cu-CsqZI.js} +1 -1
- package/dist/public/assets/{index-TUtoc8CW.js → index-TeLHaE4u.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-tKl26QqM.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DMKs8cuE.js → infoDiagram-KBXO4MBG-4zHsBnIy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Dg_IbA0G.js → ishikawaDiagram-M35NCXHK-Bg8OYLGr.js} +1 -1
- package/dist/public/assets/ja-BHBiml1x.js +12 -0
- package/dist/public/assets/{javascript-CqYOqPjw.js → javascript-BdMDRX8l.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-ohAOfoEY.js → journeyDiagram-OPLOXDXO-B2xtzmpE.js} +1 -1
- package/dist/public/assets/{jsonMode-D-gI-S5H.js → jsonMode-Dg92qQvX.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-w-aKZS_U.js → kanban-definition-BZKZHSQY-DQ4N7t_w.js} +1 -1
- package/dist/public/assets/{liquid-oBN7c8NZ.js → liquid-BydEnYkh.js} +1 -1
- package/dist/public/assets/{mdx-CnwhgGjX.js → mdx-XZXeM7ll.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-CfFkSR0t.js → mermaid-parser.core-H24--uw9.js} +3 -3
- package/dist/public/assets/{mermaid.core-apiVCSBY.js → mermaid.core-BmCrSjUU.js} +4 -4
- package/dist/public/assets/meshopt_decoder.module-DXTYc6wn.js +1 -0
- package/dist/public/assets/{mindmap-definition-I2QAS2VK-E7vqVWB0.js → mindmap-definition-I2QAS2VK-CGQXKItp.js} +1 -1
- package/dist/public/assets/module-1mERtQ0Z.js +1 -0
- package/dist/public/assets/module-BxIQdJqY.js +2449 -0
- package/dist/public/assets/{module-B8jze-Tx.js → module-Cm_mLwAQ.js} +1 -1
- package/dist/public/assets/module-DDH-aU6z.js +1 -0
- package/dist/public/assets/module-DRofmFJn.js +1 -0
- package/dist/public/assets/{module-ZhkaqrNe.js → module-DUYj4E8T.js} +1 -1
- package/dist/public/assets/module-MaD4hvv4.js +1 -0
- package/dist/public/assets/module-ZDJutm0b.js +1 -0
- package/dist/public/assets/module-qoBVcE5h.js +1 -0
- package/dist/public/assets/{monaco-C0ByxW3l.js → monaco-DP8M_Ttp.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-CnBx3hR7.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP--RpwCE7x.js → pegDiagram-FD4XPPHP-CXKRGFUs.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-hogxgeR2.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DxSbPaRZ.js → pieDiagram-J4AKIIQI-9XEDP1wR.js} +1 -1
- package/dist/public/assets/{python-vNPe_Fao.js → python-C-0PA82u.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-CR_eeYXi.js → quadrantDiagram-XTYBLID2-C-uxTp-5.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-CdWiN8Cw.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DnYOBI5V.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-D6I2HxIC.js → railroad-abnf-LNEFI6M7-CTft_ST0.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-BuhDRGo3.js → railroad-ebnf-DWYD2UWJ-DfRJhL7G.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-n15PB7Sb.js → railroad-peg-JR7BVNR7-DFePx4YD.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-Bbe5bNap.js → railroadDiagram-MRQ6NCDL-BmK1KUsT.js} +1 -1
- package/dist/public/assets/{razor-CnKbF0Yz.js → razor-DEKNSiT7.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-Beuygh9j.js → requirementDiagram-Y7LWUY3S-Ds27pS9Y.js} +1 -1
- package/dist/public/assets/{resolver-B7c_-amj.js → resolver-0zC31mg5.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-jwWPgnrS.js → sankeyDiagram-WGJFYUXA-e2OTzBma.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-CmU-HYQI.js → sequenceDiagram-5NDRBG5M-BcoIpxF6.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Bo7BEi-m.js → stateDiagram-v2-FJ4FJNEA-CNr67mC9.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-PSKyZN_b.js → swimlanes-UMQ2AFYF-DKPgHCev.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-U0uzjboz.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-BuRxLScZ.js → timeline-definition-SEUHKTQE-BcCmuE6C.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-4ppY0Rs5.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CAvLAs7q.js +1 -0
- package/dist/public/assets/{typescript-C00ztMLg.js → typescript-B1Uk3m6A.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-Dlvyos8r.js → usecaseDiagram-AFA6YXN4-BpCD8dP7.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-CuLZubJH.js → vennDiagram-NNMJR3RB-CQjX5_-8.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-D_F3qmRJ.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-WOGGTs4y.js → wardleyDiagram-S7YFUSEH-D7gYo9fV.js} +1 -1
- package/dist/public/assets/{xml-CHBFuf5n.js → xml-DBh_LekU.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-DwW9eifP.js → xychartDiagram-GGNKY7IX-B_1aOZKU.js} +1 -1
- package/dist/public/assets/{yaml-C4qkqzcL.js → yaml-BE55tHva.js} +1 -1
- package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
- package/dist/public/index.html +2 -2
- package/dist/serve/index.mjs +3115 -1400
- package/package.json +39 -39
- package/dist/pi/packages/ta-team/lib/join.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/join.js +0 -48
- package/dist/pi/packages/ta-team/lib/remote.d.ts +0 -31
- package/dist/pi/packages/ta-team/lib/remote.js +0 -128
- package/dist/pi/packages/ta-team/lib/seal.d.ts +0 -28
- package/dist/pi/packages/ta-team/lib/seal.js +0 -75
- package/dist/public/assets/cynefin-EF2NZ3EQ-DYlwwGUb.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Bufgn1OL.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-D_tzR9z9.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-C5Pwv-6e.js +0 -1
- package/dist/public/assets/module-Blc8dqbf.js +0 -1
- package/dist/public/assets/module-C2jtFD0v.js +0 -2365
- package/dist/public/assets/module-C9WFrzAc.js +0 -1
- package/dist/public/assets/module-CouMtASh.js +0 -1
- package/dist/public/assets/module-EGdAhoOx.js +0 -1
- package/dist/public/assets/module-EeaigZHL.js +0 -1
- package/dist/public/assets/module-xT4L5yYw.js +0 -1
- package/dist/public/assets/packet-JDAUHWVQ-xozI7a9T.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-BkHXIzDi.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-CaUh9zV3.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-DckPvlDe.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-z_0ABNQq.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB-BN38Jg9j.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CKdz7u7W.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-B0cvM1zV.js +0 -1
|
@@ -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,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-games",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
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"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -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
|
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
// ../ta-protocol/esm/common/language.js
|
|
2
|
+
var TaLanguageUtil;
|
|
3
|
+
(function(TaLanguageUtil2) {
|
|
4
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
5
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
6
|
+
function of(tag) {
|
|
7
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
8
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
9
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
10
|
+
}
|
|
11
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
12
|
+
}
|
|
13
|
+
TaLanguageUtil2.of = of;
|
|
14
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
15
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
16
|
+
}
|
|
17
|
+
TaLanguageUtil2.server = server;
|
|
18
|
+
function pick(language, words) {
|
|
19
|
+
return words[of(language)];
|
|
20
|
+
}
|
|
21
|
+
TaLanguageUtil2.pick = pick;
|
|
22
|
+
function say(words) {
|
|
23
|
+
return words[server()];
|
|
24
|
+
}
|
|
25
|
+
TaLanguageUtil2.say = say;
|
|
26
|
+
function chinese(language) {
|
|
27
|
+
return of(language).startsWith("zh");
|
|
28
|
+
}
|
|
29
|
+
TaLanguageUtil2.chinese = chinese;
|
|
30
|
+
function cjk(language) {
|
|
31
|
+
return of(language) !== "en-US";
|
|
32
|
+
}
|
|
33
|
+
TaLanguageUtil2.cjk = cjk;
|
|
34
|
+
function list(language, items) {
|
|
35
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
36
|
+
}
|
|
37
|
+
TaLanguageUtil2.list = list;
|
|
38
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
39
|
+
|
|
1
40
|
// web-src/i18n.ts
|
|
2
41
|
var EN = {
|
|
3
42
|
page: "Games",
|
|
@@ -55,10 +94,67 @@ var ZH = {
|
|
|
55
94
|
makeAnother: "再做一个",
|
|
56
95
|
failed: "没能开始:{message}"
|
|
57
96
|
};
|
|
97
|
+
var ZH_TW = {
|
|
98
|
+
page: "遊戲",
|
|
99
|
+
games: "我的遊戲",
|
|
100
|
+
installExamples: "安裝示例遊戲",
|
|
101
|
+
noGames: "還沒有遊戲",
|
|
102
|
+
noGamesHint: "在下面讓 Ta 做一個,或者去市場裝一個",
|
|
103
|
+
makeTitle: "讓 Ta 做一個",
|
|
104
|
+
makeHint: "也可以直接在對話裡說想玩什麼",
|
|
105
|
+
snake: "貪吃蛇",
|
|
106
|
+
snakeHint: "方向鍵或滑動操作",
|
|
107
|
+
snakeAsk: "做一個貪吃蛇小遊戲擴充功能:電腦上用方向鍵,手機上滑動操作,記下最高分。",
|
|
108
|
+
breakout: "打磚塊",
|
|
109
|
+
breakoutHint: "擋板跟著手指走",
|
|
110
|
+
breakoutAsk: "做一個打磚塊小遊戲擴充功能:擋板跟隨滑鼠或手指移動,磚塊用 Ta 主題的顏色。",
|
|
111
|
+
board: "幹活的恐龍",
|
|
112
|
+
boardHint: "把定時任務變成小世界",
|
|
113
|
+
boardAsk: "做一張看板卡片,把我的定時任務畫成一個畫素小世界:每個任務是草地上的一隻小恐龍,正在執行時奔跑,上次執行失敗時趴下。",
|
|
114
|
+
maze: "3D 迷宮",
|
|
115
|
+
mazeHint: "滾著小球找出口",
|
|
116
|
+
mazeAsk: "用 ui.Game3D 做一個 3D 迷宮小遊戲擴充功能:方向鍵或拖動傾斜迷宮,讓小球滾到出口,每局一個新迷宮,記下最快用時。",
|
|
117
|
+
making: "做遊戲",
|
|
118
|
+
makeTitleOf: "讓 Ta 做{name}?",
|
|
119
|
+
makeAgainTitle: "再做一個{name}?",
|
|
120
|
+
madeBefore: "之前已經讓 Ta 做過,這會再開一個新對話。",
|
|
121
|
+
startMaking: "開始做",
|
|
122
|
+
makeAnother: "再做一個",
|
|
123
|
+
failed: "沒能開始:{message}"
|
|
124
|
+
};
|
|
125
|
+
var JA = {
|
|
126
|
+
page: "ゲーム",
|
|
127
|
+
games: "マイゲーム",
|
|
128
|
+
installExamples: "サンプルゲームをインストール",
|
|
129
|
+
noGames: "ゲームがまだありません",
|
|
130
|
+
noGamesHint: "下で Ta に作成させるか、マーケットからインストール",
|
|
131
|
+
makeTitle: "Ta に作成させる",
|
|
132
|
+
makeHint: "または会話でプレイしたいゲームを直接指定",
|
|
133
|
+
snake: "スネーク",
|
|
134
|
+
snakeHint: "矢印キーまたはスワイプ",
|
|
135
|
+
snakeAsk: "Ta の拡張機能として Snake ゲームを作成:パソコンではアローキー、スマホではスワイプで操作、最高スコアを保存。",
|
|
136
|
+
breakout: "ブレイクアウト",
|
|
137
|
+
breakoutHint: "パドルが指に付いてくる",
|
|
138
|
+
breakoutAsk: "Ta の拡張機能として Breakout ゲームを作成:パドルがマウスまたは指に追従、ブロックは Ta テーマの色。",
|
|
139
|
+
board: "働く恐竜",
|
|
140
|
+
boardHint: "スケジュール タスクを小世界に",
|
|
141
|
+
boardAsk: "スケジュール タスクをピクセル小世界として表示するボードカードを作成:各タスクが草地上の恐竜で、実行中は走り、最後の実行が失敗したら寝ている。",
|
|
142
|
+
maze: "3D 迷路",
|
|
143
|
+
mazeHint: "ボールを転がして通抜ける",
|
|
144
|
+
mazeAsk: "ui.Game3D を使用して Ta の拡張機能として 3D 迷路ゲームを作成:矢印キーまたはドラッグで迷路を傾ける、ボールをゴールに転がす、毎回新しい迷路、最速時間を保存。",
|
|
145
|
+
making: "ゲームを作成",
|
|
146
|
+
makeTitleOf: "Ta に {name} を作成させますか?",
|
|
147
|
+
makeAgainTitle: "別の {name} を作成しますか?",
|
|
148
|
+
madeBefore: "Ta には以前作成するよう指示されました。これにより別の会話が開きます。",
|
|
149
|
+
startMaking: "作成",
|
|
150
|
+
makeAnother: "別のゲームを作成",
|
|
151
|
+
failed: "開始できませんでした:{message}"
|
|
152
|
+
};
|
|
153
|
+
var WORDS = { "zh-CN": ZH, "zh-TW": ZH_TW, "en-US": EN, "ja-JP": JA };
|
|
58
154
|
var GamesText;
|
|
59
155
|
((GamesText) => {
|
|
60
156
|
function of(language) {
|
|
61
|
-
return
|
|
157
|
+
return TaLanguageUtil.pick(language, WORDS);
|
|
62
158
|
}
|
|
63
159
|
GamesText.of = of;
|
|
64
160
|
function format(text, values) {
|
|
@@ -104,7 +104,15 @@ var GlanceJson;
|
|
|
104
104
|
return JSON.parse(source);
|
|
105
105
|
} catch {
|
|
106
106
|
if (!partial) {
|
|
107
|
-
|
|
107
|
+
const balanced = balance(source);
|
|
108
|
+
if (balanced === undefined || balanced.open.length || balanced.inString) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
try {
|
|
112
|
+
return JSON.parse(balanced.text);
|
|
113
|
+
} catch {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
108
116
|
}
|
|
109
117
|
}
|
|
110
118
|
let end = source.length;
|
|
@@ -121,9 +129,26 @@ var GlanceJson;
|
|
|
121
129
|
}
|
|
122
130
|
GlanceJson.parse = parse;
|
|
123
131
|
function close(text) {
|
|
132
|
+
const balanced = balance(text);
|
|
133
|
+
if (!balanced || !balanced.open.length && !balanced.inString && balanced.text === text) {
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
const { open, inString, escaped } = balanced;
|
|
137
|
+
let body = balanced.text;
|
|
138
|
+
if (inString) {
|
|
139
|
+
body = `${escaped ? body.slice(0, -1) : body}"`;
|
|
140
|
+
}
|
|
141
|
+
body = body.replace(/[\s,:]+$/, "");
|
|
142
|
+
if (open[open.length - 1] === "}" && /[{,]\s*"(?:[^"\\]|\\.)*"$/.test(body)) {
|
|
143
|
+
body = body.replace(/,?\s*"(?:[^"\\]|\\.)*"$/, "");
|
|
144
|
+
}
|
|
145
|
+
return body + open.reverse().join("");
|
|
146
|
+
}
|
|
147
|
+
function balance(text) {
|
|
124
148
|
const open = [];
|
|
125
149
|
let inString = false;
|
|
126
150
|
let escaped = false;
|
|
151
|
+
let out = "";
|
|
127
152
|
for (const char of text) {
|
|
128
153
|
if (inString) {
|
|
129
154
|
if (escaped) {
|
|
@@ -138,21 +163,14 @@ var GlanceJson;
|
|
|
138
163
|
} else if (char === "{" || char === "[") {
|
|
139
164
|
open.push(char === "{" ? "}" : "]");
|
|
140
165
|
} else if (char === "}" || char === "]") {
|
|
166
|
+
if (open[open.length - 1] !== char) {
|
|
167
|
+
continue;
|
|
168
|
+
}
|
|
141
169
|
open.pop();
|
|
142
170
|
}
|
|
171
|
+
out += char;
|
|
143
172
|
}
|
|
144
|
-
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
let body = text;
|
|
148
|
-
if (inString) {
|
|
149
|
-
body = `${escaped ? body.slice(0, -1) : body}"`;
|
|
150
|
-
}
|
|
151
|
-
body = body.replace(/[\s,:]+$/, "");
|
|
152
|
-
if (open[open.length - 1] === "}" && /[{,]\s*"(?:[^"\\]|\\.)*"$/.test(body)) {
|
|
153
|
-
body = body.replace(/,?\s*"(?:[^"\\]|\\.)*"$/, "");
|
|
154
|
-
}
|
|
155
|
-
return body + open.reverse().join("");
|
|
173
|
+
return { text: out, open, inString, escaped };
|
|
156
174
|
}
|
|
157
175
|
})(GlanceJson ||= {});
|
|
158
176
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* JSON as a model writes it, while it streams too: what was written so far as a value, the strings and the
|
|
3
3
|
* arrays and objects not closed yet closed, what cannot be a value yet (a key without its value) left out.
|
|
4
|
+
* A bracket that closes nothing open, or not what is open (`["a"]]` in an object), as a model sometimes
|
|
5
|
+
* writes, is left out.
|
|
4
6
|
*/
|
|
5
7
|
export declare namespace GlanceJson {
|
|
6
8
|
/** The value of `text`; undefined when there is none yet, or it is not JSON. */
|
|
@@ -4,6 +4,8 @@ exports.GlanceJson = void 0;
|
|
|
4
4
|
/**
|
|
5
5
|
* JSON as a model writes it, while it streams too: what was written so far as a value, the strings and the
|
|
6
6
|
* arrays and objects not closed yet closed, what cannot be a value yet (a key without its value) left out.
|
|
7
|
+
* A bracket that closes nothing open, or not what is open (`["a"]]` in an object), as a model sometimes
|
|
8
|
+
* writes, is left out.
|
|
7
9
|
*/
|
|
8
10
|
var GlanceJson;
|
|
9
11
|
(function (GlanceJson) {
|
|
@@ -20,7 +22,16 @@ var GlanceJson;
|
|
|
20
22
|
}
|
|
21
23
|
catch (_a) {
|
|
22
24
|
if (!partial) {
|
|
23
|
-
|
|
25
|
+
const balanced = balance(source);
|
|
26
|
+
if (balanced === undefined || balanced.open.length || balanced.inString) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
try {
|
|
30
|
+
return JSON.parse(balanced.text);
|
|
31
|
+
}
|
|
32
|
+
catch (_b) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
24
35
|
}
|
|
25
36
|
}
|
|
26
37
|
let end = source.length;
|
|
@@ -30,7 +41,7 @@ var GlanceJson;
|
|
|
30
41
|
try {
|
|
31
42
|
return JSON.parse(closed);
|
|
32
43
|
}
|
|
33
|
-
catch (
|
|
44
|
+
catch (_c) {
|
|
34
45
|
// An earlier place, below.
|
|
35
46
|
}
|
|
36
47
|
}
|
|
@@ -41,9 +52,29 @@ var GlanceJson;
|
|
|
41
52
|
GlanceJson.parse = parse;
|
|
42
53
|
/** `text` with what it opened closed, without a comma or a colon at its end; undefined when it opened nothing. */
|
|
43
54
|
function close(text) {
|
|
55
|
+
const balanced = balance(text);
|
|
56
|
+
if (!balanced || (!balanced.open.length && !balanced.inString && balanced.text === text)) {
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
const { open, inString, escaped } = balanced;
|
|
60
|
+
let body = balanced.text;
|
|
61
|
+
if (inString) {
|
|
62
|
+
// A string cut after a backslash.
|
|
63
|
+
body = `${escaped ? body.slice(0, -1) : body}"`;
|
|
64
|
+
}
|
|
65
|
+
body = body.replace(/[\s,:]+$/, '');
|
|
66
|
+
// A key whose value has not come: the object as it was before it.
|
|
67
|
+
if (open[open.length - 1] === '}' && /[{,]\s*"(?:[^"\\]|\\.)*"$/.test(body)) {
|
|
68
|
+
body = body.replace(/,?\s*"(?:[^"\\]|\\.)*"$/, '');
|
|
69
|
+
}
|
|
70
|
+
return body + open.reverse().join('');
|
|
71
|
+
}
|
|
72
|
+
/** `text` without the brackets that close nothing open or not what is open, and what is still open in it. */
|
|
73
|
+
function balance(text) {
|
|
44
74
|
const open = [];
|
|
45
75
|
let inString = false;
|
|
46
76
|
let escaped = false;
|
|
77
|
+
let out = '';
|
|
47
78
|
for (const char of text) {
|
|
48
79
|
if (inString) {
|
|
49
80
|
if (escaped) {
|
|
@@ -63,23 +94,14 @@ var GlanceJson;
|
|
|
63
94
|
open.push(char === '{' ? '}' : ']');
|
|
64
95
|
}
|
|
65
96
|
else if (char === '}' || char === ']') {
|
|
97
|
+
if (open[open.length - 1] !== char) {
|
|
98
|
+
continue;
|
|
99
|
+
}
|
|
66
100
|
open.pop();
|
|
67
101
|
}
|
|
102
|
+
out += char;
|
|
68
103
|
}
|
|
69
|
-
|
|
70
|
-
return undefined;
|
|
71
|
-
}
|
|
72
|
-
let body = text;
|
|
73
|
-
if (inString) {
|
|
74
|
-
// A string cut after a backslash.
|
|
75
|
-
body = `${escaped ? body.slice(0, -1) : body}"`;
|
|
76
|
-
}
|
|
77
|
-
body = body.replace(/[\s,:]+$/, '');
|
|
78
|
-
// A key whose value has not come: the object as it was before it.
|
|
79
|
-
if (open[open.length - 1] === '}' && /[{,]\s*"(?:[^"\\]|\\.)*"$/.test(body)) {
|
|
80
|
-
body = body.replace(/,?\s*"(?:[^"\\]|\\.)*"$/, '');
|
|
81
|
-
}
|
|
82
|
-
return body + open.reverse().join('');
|
|
104
|
+
return { text: out, open, inString, escaped };
|
|
83
105
|
}
|
|
84
106
|
})(GlanceJson || (exports.GlanceJson = GlanceJson = {}));
|
|
85
107
|
//# sourceMappingURL=glance-json.js.map
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import type { Language } from '@celljs/ta-web/lib/browser/extension/web-extension-api';
|
|
2
3
|
import type { GlanceStatus } from './glance-protocol';
|
|
3
4
|
declare const EN: {
|
|
@@ -14,6 +15,8 @@ declare const EN: {
|
|
|
14
15
|
writing: string;
|
|
15
16
|
};
|
|
16
17
|
type Words = typeof EN;
|
|
18
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
19
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
17
20
|
export declare namespace GlanceWords {
|
|
18
21
|
function of(language: Language): Words;
|
|
19
22
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GlanceWords = void 0;
|
|
3
|
+
exports.GlanceWords = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const EN = {
|
|
5
6
|
status: { done: 'Done', partial: 'Partly done', failed: 'Failed', blocked: 'Needs you', info: '' },
|
|
6
7
|
before: 'Before',
|
|
@@ -27,10 +28,38 @@ const ZH = {
|
|
|
27
28
|
files: '{count} 个文件',
|
|
28
29
|
writing: '正在整理摘要…',
|
|
29
30
|
};
|
|
31
|
+
const ZH_TW = {
|
|
32
|
+
status: { done: '已完成', partial: '部分完成', failed: '失敗', blocked: '需要你', info: '' },
|
|
33
|
+
before: '之前',
|
|
34
|
+
after: '之後',
|
|
35
|
+
recommended: '推薦',
|
|
36
|
+
choose: '選這個',
|
|
37
|
+
chosen: '已選',
|
|
38
|
+
pick: '我選:{label}',
|
|
39
|
+
details: '詳情',
|
|
40
|
+
hide: '收起',
|
|
41
|
+
files: '{count} 個檔案',
|
|
42
|
+
writing: '正在整理摘要…',
|
|
43
|
+
};
|
|
44
|
+
const JA = {
|
|
45
|
+
status: { done: '完了', partial: '部分完了', failed: '失敗', blocked: '要対応', info: '' },
|
|
46
|
+
before: '前',
|
|
47
|
+
after: '後',
|
|
48
|
+
recommended: 'オススメ',
|
|
49
|
+
choose: 'これを選ぶ',
|
|
50
|
+
chosen: '選択済み',
|
|
51
|
+
pick: '私が選んだ:{label}',
|
|
52
|
+
details: '詳細',
|
|
53
|
+
hide: '隠す',
|
|
54
|
+
files: '{count} 個のファイル',
|
|
55
|
+
writing: 'サマリーを作成中…',
|
|
56
|
+
};
|
|
57
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
58
|
+
exports.WORDS = { 'zh-CN': ZH, 'zh-TW': ZH_TW, 'en-US': EN, 'ja-JP': JA };
|
|
30
59
|
var GlanceWords;
|
|
31
60
|
(function (GlanceWords) {
|
|
32
61
|
function of(language) {
|
|
33
|
-
return language
|
|
62
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
34
63
|
}
|
|
35
64
|
GlanceWords.of = of;
|
|
36
65
|
/**
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-glance",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"description": "A pi package for Ta: replies lead with the answer, short, and show results as cards (key numbers, files, steps, comparisons, choices) rather than paragraphs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -36,11 +36,15 @@
|
|
|
36
36
|
"pi": {
|
|
37
37
|
"title": {
|
|
38
38
|
"en": "Glance",
|
|
39
|
-
"zh-CN": "速览"
|
|
39
|
+
"zh-CN": "速览",
|
|
40
|
+
"zh-TW": "速覽",
|
|
41
|
+
"ja-JP": "速読"
|
|
40
42
|
},
|
|
41
43
|
"summary": {
|
|
42
44
|
"en": "Replies lead with the answer and show results as cards: key numbers, files, steps, before and after, choices to tap.",
|
|
43
|
-
"zh-CN": "回复先说结论,结果画成卡片:关键数字、改了哪些文件、步骤、前后对比、点一下就能选的方案。"
|
|
45
|
+
"zh-CN": "回复先说结论,结果画成卡片:关键数字、改了哪些文件、步骤、前后对比、点一下就能选的方案。",
|
|
46
|
+
"zh-TW": "回覆先說結論,結果畫成卡片:關鍵數字、改了哪些檔案、步驟、前後對比、點一下就能選的方案。",
|
|
47
|
+
"ja-JP": "返信は結論から始め、結果をカードで表示します:主要な数値、変更したファイル、手順、前後の比較、タップで選べる案。"
|
|
44
48
|
},
|
|
45
49
|
"icon": "LayoutDashboard",
|
|
46
50
|
"web": [
|