@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
|
@@ -63,6 +63,45 @@ var MomentsBrief;
|
|
|
63
63
|
}
|
|
64
64
|
})(MomentsBrief ||= {});
|
|
65
65
|
|
|
66
|
+
// ../ta-protocol/esm/common/language.js
|
|
67
|
+
var TaLanguageUtil;
|
|
68
|
+
(function(TaLanguageUtil2) {
|
|
69
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
70
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
71
|
+
function of(tag) {
|
|
72
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
73
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
74
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
75
|
+
}
|
|
76
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
77
|
+
}
|
|
78
|
+
TaLanguageUtil2.of = of;
|
|
79
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
80
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
81
|
+
}
|
|
82
|
+
TaLanguageUtil2.server = server;
|
|
83
|
+
function pick(language, words) {
|
|
84
|
+
return words[of(language)];
|
|
85
|
+
}
|
|
86
|
+
TaLanguageUtil2.pick = pick;
|
|
87
|
+
function say(words) {
|
|
88
|
+
return words[server()];
|
|
89
|
+
}
|
|
90
|
+
TaLanguageUtil2.say = say;
|
|
91
|
+
function chinese(language) {
|
|
92
|
+
return of(language).startsWith("zh");
|
|
93
|
+
}
|
|
94
|
+
TaLanguageUtil2.chinese = chinese;
|
|
95
|
+
function cjk(language) {
|
|
96
|
+
return of(language) !== "en-US";
|
|
97
|
+
}
|
|
98
|
+
TaLanguageUtil2.cjk = cjk;
|
|
99
|
+
function list(language, items) {
|
|
100
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
101
|
+
}
|
|
102
|
+
TaLanguageUtil2.list = list;
|
|
103
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
104
|
+
|
|
66
105
|
// web-src/i18n.ts
|
|
67
106
|
var zh = {
|
|
68
107
|
title: "动态",
|
|
@@ -146,6 +185,88 @@ var zh = {
|
|
|
146
185
|
deleteAnswerBody: "也可以点它回复,补充或纠正。",
|
|
147
186
|
deleteTalk: "删除"
|
|
148
187
|
};
|
|
188
|
+
var zhTw = {
|
|
189
|
+
title: "動態",
|
|
190
|
+
post: "發動態",
|
|
191
|
+
addFriend: "加好友",
|
|
192
|
+
friends: "好友",
|
|
193
|
+
friendsCount: "{n} 位",
|
|
194
|
+
friendsNone: "還沒有",
|
|
195
|
+
emptyTitle: "還沒有好友",
|
|
196
|
+
emptyHint: "加好友後,你們互相看到對方用 Ta 做出來的東西,也能拿去用。",
|
|
197
|
+
noPosts: "還沒有動態",
|
|
198
|
+
noPostsHint: "做出滿意的東西時,Ta 會問要不要發;也可以點右上角自己發。",
|
|
199
|
+
send: "傳送",
|
|
200
|
+
waiting: "等對方同意",
|
|
201
|
+
remove: "刪除好友",
|
|
202
|
+
like: "贊",
|
|
203
|
+
unlike: "取消贊",
|
|
204
|
+
take: "拿去用",
|
|
205
|
+
open: "開啟",
|
|
206
|
+
takeAgain: "再拿一次",
|
|
207
|
+
tookBy: "{names} 拿去用了",
|
|
208
|
+
deletePost: "刪除",
|
|
209
|
+
deleteTitle: "刪除這條動態?",
|
|
210
|
+
deleteBody: "好友那裡也會一起消失。",
|
|
211
|
+
expires: "{days} 天后消失",
|
|
212
|
+
expiresSoon: "今天消失",
|
|
213
|
+
justNow: "剛剛",
|
|
214
|
+
minutes: "{n} 分鐘前",
|
|
215
|
+
hours: "{n} 小時前",
|
|
216
|
+
yesterday: "昨天",
|
|
217
|
+
days: "{n} 天前",
|
|
218
|
+
packageKind: "擴充功能",
|
|
219
|
+
linkKind: "連結",
|
|
220
|
+
packageHint: "拿去用時,Ta 先讀一遍程式碼、說清它會做什麼,你同意了才裝",
|
|
221
|
+
expired: "已過期",
|
|
222
|
+
whyHint: "每日簡報為你挑的",
|
|
223
|
+
postGone: "這條動態已經不在了",
|
|
224
|
+
waitPictures: "原圖在{name}的電腦上,等它上線後顯示",
|
|
225
|
+
takeOffline: "在{name}的電腦上,等它上線後才能拿",
|
|
226
|
+
placeholder: "說說你用 Ta 做了什麼…",
|
|
227
|
+
addImage: "新增圖片",
|
|
228
|
+
removeImage: "移除圖片",
|
|
229
|
+
attach: "附帶",
|
|
230
|
+
attachNone: "不附帶",
|
|
231
|
+
keep: "保留",
|
|
232
|
+
keep3: "3 天",
|
|
233
|
+
keep30: "1 個月",
|
|
234
|
+
keep180: "半年",
|
|
235
|
+
keep0: "長期",
|
|
236
|
+
publish: "發表",
|
|
237
|
+
publishing: "正在發表…",
|
|
238
|
+
cancel: "取消",
|
|
239
|
+
notNow: "不發了",
|
|
240
|
+
draftHead: "發到動態?",
|
|
241
|
+
draftHint: "只有你的好友看得到。",
|
|
242
|
+
draftPosted: "已發到動態",
|
|
243
|
+
draftDeclined: "沒有發。",
|
|
244
|
+
viewPost: "去看看",
|
|
245
|
+
failed: "沒成功:{message}",
|
|
246
|
+
toolDraft: "起草動態",
|
|
247
|
+
oldApp: "這個功能需要更新的 Ta",
|
|
248
|
+
noFriendsPage: "好友在「房間」裡管理,請先在擴充功能裡開啟「房間」",
|
|
249
|
+
me: "我",
|
|
250
|
+
imageAlt: "{name} 的圖片",
|
|
251
|
+
allowAsk: "好友可以問 Ta",
|
|
252
|
+
allowAskHint: "Ta 只憑這條動態回答,你都看得到",
|
|
253
|
+
comment: "評論",
|
|
254
|
+
askTa: "問 Ta",
|
|
255
|
+
askTaHint: "{name}的 Ta 會按這條動態回答你",
|
|
256
|
+
commentPlaceholder: "評論",
|
|
257
|
+
replyPlaceholder: "回覆{name}",
|
|
258
|
+
askPlaceholder: "問{name}的 Ta,比如怎麼做的",
|
|
259
|
+
theirTa: "{name}的 Ta",
|
|
260
|
+
replyWord: "回覆",
|
|
261
|
+
answerWord: "回答",
|
|
262
|
+
askWord: "問",
|
|
263
|
+
pending: "等{name}上線後送到",
|
|
264
|
+
sending: "送出中",
|
|
265
|
+
deleteTalkTitle: "刪除這條評論?",
|
|
266
|
+
deleteAnswerTitle: "刪除 Ta 的這條回答?",
|
|
267
|
+
deleteAnswerBody: "也可以點它回覆,補充或糾正。",
|
|
268
|
+
deleteTalk: "刪除"
|
|
269
|
+
};
|
|
149
270
|
var en = {
|
|
150
271
|
title: "Moments",
|
|
151
272
|
post: "Post",
|
|
@@ -228,10 +349,93 @@ var en = {
|
|
|
228
349
|
deleteAnswerBody: "Or tap it to reply, adding to it or putting it right.",
|
|
229
350
|
deleteTalk: "Delete"
|
|
230
351
|
};
|
|
352
|
+
var ja = {
|
|
353
|
+
title: "モーメンツ",
|
|
354
|
+
post: "投稿",
|
|
355
|
+
addFriend: "友だちを追加",
|
|
356
|
+
friends: "友だち",
|
|
357
|
+
friendsCount: "{n}",
|
|
358
|
+
friendsNone: "まだありません",
|
|
359
|
+
emptyTitle: "まだ友だちがいません",
|
|
360
|
+
emptyHint: "友だちを追加すると、互いに Ta で作ったものが見えます。",
|
|
361
|
+
noPosts: "まだ投稿がありません",
|
|
362
|
+
noPostsHint: "気に入ったものを作成すると、Ta が投稿を提案します。またはトップから自分で投稿できます。",
|
|
363
|
+
send: "送信",
|
|
364
|
+
waiting: "彼らの返信を待っています",
|
|
365
|
+
remove: "削除",
|
|
366
|
+
like: "いいね",
|
|
367
|
+
unlike: "いいねを外す",
|
|
368
|
+
take: "拿去用",
|
|
369
|
+
open: "開く",
|
|
370
|
+
takeAgain: "もう一度",
|
|
371
|
+
tookBy: "{names} が拿去用しました",
|
|
372
|
+
deletePost: "削除",
|
|
373
|
+
deleteTitle: "この投稿を削除しますか?",
|
|
374
|
+
deleteBody: "あなたの友だちにも削除されます。",
|
|
375
|
+
expires: "{days} 日後に削除",
|
|
376
|
+
expiresSoon: "今日削除",
|
|
377
|
+
justNow: "たった今",
|
|
378
|
+
minutes: "{n} 分前",
|
|
379
|
+
hours: "{n} 時間前",
|
|
380
|
+
yesterday: "昨日",
|
|
381
|
+
days: "{n} 日前",
|
|
382
|
+
packageKind: "拡張機能",
|
|
383
|
+
linkKind: "リンク",
|
|
384
|
+
packageHint: "拿去用すると、Ta がコードをまず読み、あなたが同意すれば インストールします",
|
|
385
|
+
expired: "有効期限切れ",
|
|
386
|
+
whyHint: "毎日のブリーフに選ばれた",
|
|
387
|
+
postGone: "この投稿はなくなりました",
|
|
388
|
+
waitPictures: "画像は {name} のコンピュータにあります。オンラインになると表示されます",
|
|
389
|
+
takeOffline: "{name} のコンピュータにあります。オンラインになると拿去用できます",
|
|
390
|
+
placeholder: "Ta で何を作ったか…",
|
|
391
|
+
addImage: "画像を追加",
|
|
392
|
+
removeImage: "画像を削除",
|
|
393
|
+
attach: "添付",
|
|
394
|
+
attachNone: "なし",
|
|
395
|
+
keep: "保留",
|
|
396
|
+
keep3: "3 日",
|
|
397
|
+
keep30: "1 か月",
|
|
398
|
+
keep180: "半年",
|
|
399
|
+
keep0: "永久",
|
|
400
|
+
publish: "投稿",
|
|
401
|
+
publishing: "投稿中…",
|
|
402
|
+
cancel: "キャンセル",
|
|
403
|
+
notNow: "あとで",
|
|
404
|
+
draftHead: "モーメンツに投稿しますか?",
|
|
405
|
+
draftHint: "あなたの友だちだけが見ます。",
|
|
406
|
+
draftPosted: "モーメンツに投稿されました",
|
|
407
|
+
draftDeclined: "投稿されていません。",
|
|
408
|
+
viewPost: "見る",
|
|
409
|
+
failed: "うまくいきませんでした:{message}",
|
|
410
|
+
toolDraft: "投稿を下書き",
|
|
411
|
+
oldApp: "これには新しい Ta が必要です",
|
|
412
|
+
noFriendsPage: "友だちはルームで管理されます。先に拡張機能でルームをオンにしてください",
|
|
413
|
+
me: "私",
|
|
414
|
+
imageAlt: "{name} の画像",
|
|
415
|
+
allowAsk: "友だちが Ta に問い合わせできます",
|
|
416
|
+
allowAskHint: "Ta はこの投稿からのみ回答します。すべてが見えます",
|
|
417
|
+
comment: "コメント",
|
|
418
|
+
askTa: "Ta に問い合わせ",
|
|
419
|
+
askTaHint: "{name} の Ta がこの投稿から回答します",
|
|
420
|
+
commentPlaceholder: "コメント",
|
|
421
|
+
replyPlaceholder: "{name} に返信",
|
|
422
|
+
askPlaceholder: "{name} の Ta に問い合わせ、作り方を言う",
|
|
423
|
+
theirTa: "{name} の Ta",
|
|
424
|
+
replyWord: "返信",
|
|
425
|
+
answerWord: "回答",
|
|
426
|
+
askWord: "問い合わせ",
|
|
427
|
+
pending: "{name} がオンラインになると送信",
|
|
428
|
+
sending: "送信中",
|
|
429
|
+
deleteTalkTitle: "このコメントを削除しますか?",
|
|
430
|
+
deleteAnswerTitle: "Ta の回答を削除しますか?",
|
|
431
|
+
deleteAnswerBody: "またはタップして返信し、追加または修正できます。",
|
|
432
|
+
deleteTalk: "削除"
|
|
433
|
+
};
|
|
434
|
+
var WORDS = { "zh-CN": zh, "zh-TW": zhTw, "en-US": en, "ja-JP": ja };
|
|
231
435
|
var MomentsWords;
|
|
232
436
|
((MomentsWords) => {
|
|
233
437
|
function of(language) {
|
|
234
|
-
return
|
|
438
|
+
return TaLanguageUtil.pick(language, WORDS);
|
|
235
439
|
}
|
|
236
440
|
MomentsWords.of = of;
|
|
237
441
|
function format(text, values = {}) {
|
|
@@ -256,7 +460,7 @@ var MomentsWords;
|
|
|
256
460
|
if (days < 7) {
|
|
257
461
|
return format(words.days, { n: days });
|
|
258
462
|
}
|
|
259
|
-
return new Date(at).toLocaleDateString(
|
|
463
|
+
return new Date(at).toLocaleDateString(language, { month: "numeric", day: "numeric" });
|
|
260
464
|
}
|
|
261
465
|
MomentsWords.ago = ago;
|
|
262
466
|
})(MomentsWords ||= {});
|
|
@@ -460,148 +664,16 @@ var TaPackageServer = Symbol("TaPackageServer");
|
|
|
460
664
|
var TaPackageTextUtil;
|
|
461
665
|
(function(TaPackageTextUtil2) {
|
|
462
666
|
function pick(text, language) {
|
|
463
|
-
var _a, _b, _c, _d;
|
|
667
|
+
var _a, _b, _c, _d, _e;
|
|
464
668
|
if (text === undefined || typeof text === "string") {
|
|
465
669
|
return text;
|
|
466
670
|
}
|
|
467
|
-
|
|
671
|
+
const base = language.split("-")[0];
|
|
672
|
+
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
673
|
+
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];
|
|
468
674
|
}
|
|
469
675
|
TaPackageTextUtil2.pick = pick;
|
|
470
676
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
471
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
472
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
473
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
474
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
475
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
476
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
477
|
-
var TaRoomWatchUtil;
|
|
478
|
-
(function(TaRoomWatchUtil2) {
|
|
479
|
-
function of(messages, state) {
|
|
480
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
481
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
482
|
-
}
|
|
483
|
-
TaRoomWatchUtil2.of = of;
|
|
484
|
-
function union(watches) {
|
|
485
|
-
let messages = false;
|
|
486
|
-
const state = [];
|
|
487
|
-
for (const watch of watches) {
|
|
488
|
-
messages || (messages = watch.messages);
|
|
489
|
-
state.push(...watch.state);
|
|
490
|
-
}
|
|
491
|
-
return of(messages, messages ? [] : state);
|
|
492
|
-
}
|
|
493
|
-
TaRoomWatchUtil2.union = union;
|
|
494
|
-
function same(a, b) {
|
|
495
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
496
|
-
`) === b.state.join(`
|
|
497
|
-
`);
|
|
498
|
-
}
|
|
499
|
-
TaRoomWatchUtil2.same = same;
|
|
500
|
-
function hears(watch, event) {
|
|
501
|
-
if (event.type === "message") {
|
|
502
|
-
return watch.messages;
|
|
503
|
-
}
|
|
504
|
-
if (event.type === "state") {
|
|
505
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
506
|
-
}
|
|
507
|
-
return true;
|
|
508
|
-
}
|
|
509
|
-
TaRoomWatchUtil2.hears = hears;
|
|
510
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
511
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
512
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
513
|
-
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
514
|
-
var TA_HOST_EVENT = "ta:host";
|
|
515
|
-
var TaHostUtil;
|
|
516
|
-
(function(TaHostUtil2) {
|
|
517
|
-
TaHostUtil2.WAIT_MS = 1000;
|
|
518
|
-
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
519
|
-
return new Promise((resolve) => {
|
|
520
|
-
let heard = false;
|
|
521
|
-
let answered = false;
|
|
522
|
-
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
523
|
-
const request = {
|
|
524
|
-
name,
|
|
525
|
-
heard: () => {
|
|
526
|
-
heard = true;
|
|
527
|
-
},
|
|
528
|
-
resolve: (answer) => {
|
|
529
|
-
answered = true;
|
|
530
|
-
clearTimeout(timer);
|
|
531
|
-
resolve(answer);
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
events.emit(TA_HOST_EVENT, request);
|
|
535
|
-
if (!heard && !answered) {
|
|
536
|
-
clearTimeout(timer);
|
|
537
|
-
resolve(undefined);
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
TaHostUtil2.reach = reach;
|
|
542
|
-
function marked(systemPrompt, mark) {
|
|
543
|
-
return role(systemPrompt).includes(mark);
|
|
544
|
-
}
|
|
545
|
-
TaHostUtil2.marked = marked;
|
|
546
|
-
function role(systemPrompt) {
|
|
547
|
-
if (!systemPrompt) {
|
|
548
|
-
return "";
|
|
549
|
-
}
|
|
550
|
-
const open = `<addendum>
|
|
551
|
-
`;
|
|
552
|
-
const start = systemPrompt.indexOf(open);
|
|
553
|
-
const context = systemPrompt.indexOf(`<project_context>
|
|
554
|
-
`);
|
|
555
|
-
if (start < 0 || context >= 0 && context < start) {
|
|
556
|
-
return "";
|
|
557
|
-
}
|
|
558
|
-
const end = systemPrompt.indexOf(`
|
|
559
|
-
</addendum>`, start);
|
|
560
|
-
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
561
|
-
}
|
|
562
|
-
TaHostUtil2.role = role;
|
|
563
|
-
})(TaHostUtil || (TaHostUtil = {}));
|
|
564
|
-
var TA_ASK_ENTRY = "ta-ask";
|
|
565
|
-
var TaAskUtil;
|
|
566
|
-
(function(TaAskUtil2) {
|
|
567
|
-
const LENGTH = 120;
|
|
568
|
-
function entry(question) {
|
|
569
|
-
const line = question.replace(/\s+/g, " ").trim();
|
|
570
|
-
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
571
|
-
}
|
|
572
|
-
TaAskUtil2.entry = entry;
|
|
573
|
-
function asking(entries) {
|
|
574
|
-
var _a;
|
|
575
|
-
for (let i = entries.length - 1;i >= 0; i--) {
|
|
576
|
-
const entry2 = entries[i];
|
|
577
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
581
|
-
return read(entry2);
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return;
|
|
585
|
-
}
|
|
586
|
-
TaAskUtil2.asking = asking;
|
|
587
|
-
function next(asked, entry2) {
|
|
588
|
-
var _a;
|
|
589
|
-
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
590
|
-
return;
|
|
591
|
-
}
|
|
592
|
-
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
593
|
-
}
|
|
594
|
-
TaAskUtil2.next = next;
|
|
595
|
-
function read(found) {
|
|
596
|
-
var _a;
|
|
597
|
-
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
598
|
-
if (typeof question !== "string" || !question.trim()) {
|
|
599
|
-
return;
|
|
600
|
-
}
|
|
601
|
-
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
602
|
-
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
603
|
-
}
|
|
604
|
-
})(TaAskUtil || (TaAskUtil = {}));
|
|
605
677
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
606
678
|
var TaServer = Symbol("TaServer");
|
|
607
679
|
var TaClient = Symbol("TaClient");
|
|
@@ -787,6 +859,176 @@ var TaSkillUse;
|
|
|
787
859
|
}
|
|
788
860
|
TaSkillUse2.command = command;
|
|
789
861
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
862
|
+
|
|
863
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
864
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
865
|
+
var TaMessageAuthor;
|
|
866
|
+
(function(TaMessageAuthor2) {
|
|
867
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
868
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
869
|
+
function strip(message2) {
|
|
870
|
+
const context = TaMessageContext.read(message2);
|
|
871
|
+
if (context === undefined || !LINE.test(context)) {
|
|
872
|
+
return message2;
|
|
873
|
+
}
|
|
874
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
875
|
+
const body = TaMessageContext.strip(message2);
|
|
876
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
877
|
+
}
|
|
878
|
+
TaMessageAuthor2.strip = strip;
|
|
879
|
+
function mark(message2, id, name) {
|
|
880
|
+
const plain = strip(message2);
|
|
881
|
+
if (/^[/!]/.test(plain)) {
|
|
882
|
+
return plain;
|
|
883
|
+
}
|
|
884
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
885
|
+
const context = TaMessageContext.read(plain);
|
|
886
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
887
|
+
${line}`, TaMessageContext.strip(plain));
|
|
888
|
+
}
|
|
889
|
+
TaMessageAuthor2.mark = mark;
|
|
890
|
+
function of(message2) {
|
|
891
|
+
var _a;
|
|
892
|
+
const context = TaMessageContext.read(message2);
|
|
893
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
894
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
895
|
+
}
|
|
896
|
+
TaMessageAuthor2.of = of;
|
|
897
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
898
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
899
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
900
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
901
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
902
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
903
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
904
|
+
var TaRoomWatchUtil;
|
|
905
|
+
(function(TaRoomWatchUtil2) {
|
|
906
|
+
function of(messages, state) {
|
|
907
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
908
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
909
|
+
}
|
|
910
|
+
TaRoomWatchUtil2.of = of;
|
|
911
|
+
function union(watches) {
|
|
912
|
+
let messages = false;
|
|
913
|
+
const state = [];
|
|
914
|
+
for (const watch of watches) {
|
|
915
|
+
messages || (messages = watch.messages);
|
|
916
|
+
state.push(...watch.state);
|
|
917
|
+
}
|
|
918
|
+
return of(messages, messages ? [] : state);
|
|
919
|
+
}
|
|
920
|
+
TaRoomWatchUtil2.union = union;
|
|
921
|
+
function same(a, b) {
|
|
922
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
923
|
+
`) === b.state.join(`
|
|
924
|
+
`);
|
|
925
|
+
}
|
|
926
|
+
TaRoomWatchUtil2.same = same;
|
|
927
|
+
function hears(watch, event) {
|
|
928
|
+
if (event.type === "message") {
|
|
929
|
+
return watch.messages;
|
|
930
|
+
}
|
|
931
|
+
if (event.type === "state") {
|
|
932
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
933
|
+
}
|
|
934
|
+
return true;
|
|
935
|
+
}
|
|
936
|
+
TaRoomWatchUtil2.hears = hears;
|
|
937
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
938
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
939
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
940
|
+
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
941
|
+
var TA_HOST_EVENT = "ta:host";
|
|
942
|
+
var TaHostUtil;
|
|
943
|
+
(function(TaHostUtil2) {
|
|
944
|
+
TaHostUtil2.WAIT_MS = 1000;
|
|
945
|
+
function reach(events, name, waitMs = TaHostUtil2.WAIT_MS) {
|
|
946
|
+
return new Promise((resolve) => {
|
|
947
|
+
let heard = false;
|
|
948
|
+
let answered = false;
|
|
949
|
+
const timer = setTimeout(() => resolve(undefined), waitMs);
|
|
950
|
+
const request = {
|
|
951
|
+
name,
|
|
952
|
+
heard: () => {
|
|
953
|
+
heard = true;
|
|
954
|
+
},
|
|
955
|
+
resolve: (answer) => {
|
|
956
|
+
answered = true;
|
|
957
|
+
clearTimeout(timer);
|
|
958
|
+
resolve(answer);
|
|
959
|
+
}
|
|
960
|
+
};
|
|
961
|
+
events.emit(TA_HOST_EVENT, request);
|
|
962
|
+
if (!heard && !answered) {
|
|
963
|
+
clearTimeout(timer);
|
|
964
|
+
resolve(undefined);
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
TaHostUtil2.reach = reach;
|
|
969
|
+
function marked(systemPrompt, mark) {
|
|
970
|
+
return role(systemPrompt).includes(mark);
|
|
971
|
+
}
|
|
972
|
+
TaHostUtil2.marked = marked;
|
|
973
|
+
function role(systemPrompt) {
|
|
974
|
+
if (!systemPrompt) {
|
|
975
|
+
return "";
|
|
976
|
+
}
|
|
977
|
+
const open = `<addendum>
|
|
978
|
+
`;
|
|
979
|
+
const start = systemPrompt.indexOf(open);
|
|
980
|
+
const context = systemPrompt.indexOf(`<project_context>
|
|
981
|
+
`);
|
|
982
|
+
if (start < 0 || context >= 0 && context < start) {
|
|
983
|
+
return "";
|
|
984
|
+
}
|
|
985
|
+
const end = systemPrompt.indexOf(`
|
|
986
|
+
</addendum>`, start);
|
|
987
|
+
return systemPrompt.slice(start + open.length, end < 0 ? undefined : end);
|
|
988
|
+
}
|
|
989
|
+
TaHostUtil2.role = role;
|
|
990
|
+
})(TaHostUtil || (TaHostUtil = {}));
|
|
991
|
+
var TA_ASK_ENTRY = "ta-ask";
|
|
992
|
+
var TaAskUtil;
|
|
993
|
+
(function(TaAskUtil2) {
|
|
994
|
+
const LENGTH = 120;
|
|
995
|
+
function entry(question) {
|
|
996
|
+
const line = question.replace(/\s+/g, " ").trim();
|
|
997
|
+
return { question: line.length > LENGTH ? `${line.slice(0, LENGTH - 1)}…` : line };
|
|
998
|
+
}
|
|
999
|
+
TaAskUtil2.entry = entry;
|
|
1000
|
+
function asking(entries) {
|
|
1001
|
+
var _a;
|
|
1002
|
+
for (let i = entries.length - 1;i >= 0; i--) {
|
|
1003
|
+
const entry2 = entries[i];
|
|
1004
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1005
|
+
return;
|
|
1006
|
+
}
|
|
1007
|
+
if (entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY) {
|
|
1008
|
+
return read(entry2);
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
return;
|
|
1012
|
+
}
|
|
1013
|
+
TaAskUtil2.asking = asking;
|
|
1014
|
+
function next(asked, entry2) {
|
|
1015
|
+
var _a;
|
|
1016
|
+
if (entry2.type === "message" && ((_a = entry2.message) === null || _a === undefined ? undefined : _a.role) === "user") {
|
|
1017
|
+
return;
|
|
1018
|
+
}
|
|
1019
|
+
return entry2.type === "custom" && entry2.customType === TA_ASK_ENTRY ? read(entry2) : asked;
|
|
1020
|
+
}
|
|
1021
|
+
TaAskUtil2.next = next;
|
|
1022
|
+
function read(found) {
|
|
1023
|
+
var _a;
|
|
1024
|
+
const question = (_a = found.data) === null || _a === undefined ? undefined : _a.question;
|
|
1025
|
+
if (typeof question !== "string" || !question.trim()) {
|
|
1026
|
+
return;
|
|
1027
|
+
}
|
|
1028
|
+
const at = found.timestamp ? Date.parse(found.timestamp) : Number.NaN;
|
|
1029
|
+
return { question: entry(question).question, at: Number.isNaN(at) ? 0 : at };
|
|
1030
|
+
}
|
|
1031
|
+
})(TaAskUtil || (TaAskUtil = {}));
|
|
790
1032
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
791
1033
|
var TA_UNDECLARED = "extensions.install";
|
|
792
1034
|
var TaPermissionUtil;
|
|
@@ -807,46 +1049,46 @@ var TaPermissionUtil;
|
|
|
807
1049
|
}
|
|
808
1050
|
TaPermissionUtil2.host = host;
|
|
809
1051
|
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
810
|
-
var action = (id, en2, zh2, more = {}) => ({
|
|
1052
|
+
var action = (id, en2, zh2, tw, ja2, more = {}) => ({
|
|
811
1053
|
id,
|
|
812
1054
|
area: id.split(".")[0],
|
|
813
|
-
title: { en: en2, "zh-CN": zh2 },
|
|
1055
|
+
title: { en: en2, "zh-CN": zh2, ...tw ? { "zh-TW": tw } : {}, ...ja2 ? { "ja-JP": ja2 } : {} },
|
|
814
1056
|
...more
|
|
815
1057
|
});
|
|
816
1058
|
var TA_ACTIONS = [
|
|
817
|
-
action("chat.view", "See conversations", "查看对话"),
|
|
818
|
-
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
819
|
-
action("chat.create", "Start conversations", "新建对话"),
|
|
820
|
-
action("chat.stop", "Stop a reply", "停止回复"),
|
|
821
|
-
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
822
|
-
action("chat.share", "Share by a link", "生成分享链接"),
|
|
823
|
-
action("agent.view", "See agents", "查看智能体"),
|
|
824
|
-
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
825
|
-
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
826
|
-
action("channel.view", "See channels", "查看频道"),
|
|
827
|
-
action("channel.post", "Post in channels", "在频道里发言"),
|
|
828
|
-
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
829
|
-
action("task.view", "See tasks", "查看任务"),
|
|
830
|
-
action("task.create", "Hand out tasks", "派任务"),
|
|
831
|
-
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
832
|
-
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
833
|
-
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
834
|
-
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
835
|
-
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
836
|
-
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
837
|
-
action("models.use", "Use the models", "使用模型"),
|
|
838
|
-
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
839
|
-
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
840
|
-
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
841
|
-
action("extensions.use", "Use extensions", "使用扩展"),
|
|
842
|
-
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
843
|
-
action("settings.view", "See settings", "查看设置"),
|
|
844
|
-
action("settings.manage", "Change settings", "修改设置"),
|
|
845
|
-
action("members.view", "See members", "查看成员"),
|
|
846
|
-
action("members.invite", "Invite people", "邀请别人"),
|
|
847
|
-
action("members.approve", "Answer requests", "处理申请"),
|
|
848
|
-
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
849
|
-
action("audit.view", "See the record", "查看记录")
|
|
1059
|
+
action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
|
|
1060
|
+
action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
|
|
1061
|
+
action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
|
|
1062
|
+
action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
|
|
1063
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
|
|
1064
|
+
action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
|
|
1065
|
+
action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
|
|
1066
|
+
action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
|
|
1067
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
|
|
1068
|
+
action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
|
|
1069
|
+
action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
|
|
1070
|
+
action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
|
|
1071
|
+
action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
|
|
1072
|
+
action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
|
|
1073
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
|
|
1074
|
+
action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
|
|
1075
|
+
action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
|
|
1076
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
|
|
1077
|
+
action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
|
|
1078
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
|
|
1079
|
+
action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
|
|
1080
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
|
|
1081
|
+
action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
|
|
1082
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
|
|
1083
|
+
action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
|
|
1084
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
|
|
1085
|
+
action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
|
|
1086
|
+
action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
|
|
1087
|
+
action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
|
|
1088
|
+
action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
|
|
1089
|
+
action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
|
|
1090
|
+
action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
|
|
1091
|
+
action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
|
|
850
1092
|
];
|
|
851
1093
|
var TaActionUtil;
|
|
852
1094
|
(function(TaActionUtil2) {
|
|
@@ -856,8 +1098,18 @@ var TaActionUtil;
|
|
|
856
1098
|
}
|
|
857
1099
|
TaActionUtil2.info = info;
|
|
858
1100
|
function title(id, language) {
|
|
859
|
-
|
|
860
|
-
|
|
1101
|
+
var _a;
|
|
1102
|
+
var _b, _c;
|
|
1103
|
+
const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
|
|
1104
|
+
if (!title2) {
|
|
1105
|
+
return id;
|
|
1106
|
+
}
|
|
1107
|
+
return TaLanguageUtil.pick(language, {
|
|
1108
|
+
"zh-CN": title2["zh-CN"],
|
|
1109
|
+
"zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
|
|
1110
|
+
"en-US": title2.en,
|
|
1111
|
+
"ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
|
|
1112
|
+
});
|
|
861
1113
|
}
|
|
862
1114
|
TaActionUtil2.title = title;
|
|
863
1115
|
function inside(dir, path) {
|
|
@@ -1149,12 +1401,12 @@ function PostEditor({ text: first, images, attach: firstAttach, pickPackage, onP
|
|
|
1149
1401
|
}, /* @__PURE__ */ React.createElement("span", {
|
|
1150
1402
|
className: "tmo-editor-label"
|
|
1151
1403
|
}, t("keep")), /* @__PURE__ */ React.createElement("div", {
|
|
1152
|
-
className: "tmo-segments"
|
|
1404
|
+
className: "ta-segmented tmo-segments"
|
|
1153
1405
|
}, Limits.DAYS.map((value) => /* @__PURE__ */ React.createElement("button", {
|
|
1154
1406
|
key: value,
|
|
1155
1407
|
type: "button",
|
|
1156
1408
|
"aria-pressed": days === value,
|
|
1157
|
-
className:
|
|
1409
|
+
className: days === value ? "ta-on" : undefined,
|
|
1158
1410
|
onClick: () => setDays(value)
|
|
1159
1411
|
}, t(KEEP[value]))))), /* @__PURE__ */ React.createElement("label", {
|
|
1160
1412
|
className: "tmo-editor-row tmo-editor-check"
|
|
@@ -1250,6 +1502,13 @@ class MomentsStore {
|
|
|
1250
1502
|
if (latest > this.seen) {
|
|
1251
1503
|
this.seen = latest;
|
|
1252
1504
|
this.emit();
|
|
1505
|
+
const kept = await pi.storage.get(Keys.SEEN).catch(() => {
|
|
1506
|
+
return;
|
|
1507
|
+
});
|
|
1508
|
+
if (typeof kept === "number" && kept >= latest) {
|
|
1509
|
+
await this.readSeen();
|
|
1510
|
+
return;
|
|
1511
|
+
}
|
|
1253
1512
|
await pi.storage.set(Keys.SEEN, latest);
|
|
1254
1513
|
}
|
|
1255
1514
|
}
|
|
@@ -1356,10 +1615,12 @@ function show(component) {
|
|
|
1356
1615
|
}
|
|
1357
1616
|
pi.ui.custom(component);
|
|
1358
1617
|
}
|
|
1359
|
-
function Face({ id, size = 40 }) {
|
|
1618
|
+
function Face({ id, look, mine, size = 40 }) {
|
|
1360
1619
|
const Face2 = pi.ui.Face;
|
|
1361
1620
|
return Face2 ? /* @__PURE__ */ React.createElement(Face2, {
|
|
1362
1621
|
seed: id,
|
|
1622
|
+
look,
|
|
1623
|
+
double: mine || undefined,
|
|
1363
1624
|
size
|
|
1364
1625
|
}) : /* @__PURE__ */ React.createElement("span", {
|
|
1365
1626
|
className: "tmo-face",
|
|
@@ -1549,7 +1810,8 @@ function AttachCard({ post, attach }) {
|
|
|
1549
1810
|
}
|
|
1550
1811
|
function names(people, me) {
|
|
1551
1812
|
const words = MomentsWords.of(pi.ui.language);
|
|
1552
|
-
|
|
1813
|
+
const separator = TaLanguageUtil.list(pi.ui.language, ["", ""]).slice(1, -1) || ", ";
|
|
1814
|
+
return people.map((person) => person.id === me ? words.me : person.name).join(separator);
|
|
1553
1815
|
}
|
|
1554
1816
|
function TalkLine({ post, entry, me, onReply }) {
|
|
1555
1817
|
const own = entry.by.id === me && !entry.double;
|
|
@@ -1584,7 +1846,7 @@ function TalkLine({ post, entry, me, onReply }) {
|
|
|
1584
1846
|
className: "tmo-talk-word"
|
|
1585
1847
|
}, entry.double ? t("answerWord") : t("replyWord")), /* @__PURE__ */ React.createElement("b", null, names([entry.to], me))), /* @__PURE__ */ React.createElement("span", {
|
|
1586
1848
|
className: "tmo-talk-colon"
|
|
1587
|
-
},
|
|
1849
|
+
}, TaLanguageUtil.cjk(pi.ui.language) ? ":" : ": "), /* @__PURE__ */ React.createElement("span", {
|
|
1588
1850
|
className: "tmo-talk-text"
|
|
1589
1851
|
}, entry.text), entry.pending && /* @__PURE__ */ React.createElement("span", {
|
|
1590
1852
|
className: "tmo-talk-wait"
|
|
@@ -1625,6 +1887,8 @@ function PostView({ post, me, now }) {
|
|
|
1625
1887
|
"data-post": `${post.room}:${post.id}`
|
|
1626
1888
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
1627
1889
|
id: post.author.id,
|
|
1890
|
+
look: post.author.look,
|
|
1891
|
+
mine: post.mine,
|
|
1628
1892
|
size: 42
|
|
1629
1893
|
}), /* @__PURE__ */ React.createElement("div", {
|
|
1630
1894
|
className: "tmo-post-body"
|
|
@@ -1726,7 +1990,7 @@ function FriendsRow() {
|
|
|
1726
1990
|
}) : null, /* @__PURE__ */ React.createElement("span", {
|
|
1727
1991
|
className: "tmo-grow"
|
|
1728
1992
|
}), friends.length > 0 && GroupFace && /* @__PURE__ */ React.createElement(GroupFace, {
|
|
1729
|
-
members: friends.slice(0, 4).map((friend) => ({ seed: friend.id })),
|
|
1993
|
+
members: friends.slice(0, 4).map((friend) => ({ seed: friend.id, look: friend.look })),
|
|
1730
1994
|
size: 24
|
|
1731
1995
|
}), /* @__PURE__ */ React.createElement("span", {
|
|
1732
1996
|
className: "tmo-quiet"
|
|
@@ -1788,13 +2052,10 @@ function MomentsPage() {
|
|
|
1788
2052
|
})) : state.friends.length ? /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
1789
2053
|
title: t("noPosts"),
|
|
1790
2054
|
hint: t("noPostsHint")
|
|
1791
|
-
}) : /* @__PURE__ */ React.createElement(
|
|
1792
|
-
className: "tmo-empty"
|
|
1793
|
-
}, /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
2055
|
+
}) : /* @__PURE__ */ React.createElement(pi.ui.Empty, {
|
|
1794
2056
|
title: t("emptyTitle"),
|
|
1795
|
-
hint: t("emptyHint")
|
|
1796
|
-
|
|
1797
|
-
}), /* @__PURE__ */ React.createElement("button", {
|
|
2057
|
+
hint: t("emptyHint")
|
|
2058
|
+
}, /* @__PURE__ */ React.createElement("button", {
|
|
1798
2059
|
type: "button",
|
|
1799
2060
|
className: "ta-button ta-primary",
|
|
1800
2061
|
onClick: openFriends
|
|
@@ -1813,6 +2074,7 @@ function MomentsMark() {
|
|
|
1813
2074
|
className: "tmo-mark"
|
|
1814
2075
|
}, /* @__PURE__ */ React.createElement(Face, {
|
|
1815
2076
|
id: latest.author.id,
|
|
2077
|
+
look: latest.author.look,
|
|
1816
2078
|
size: 26
|
|
1817
2079
|
}), /* @__PURE__ */ React.createElement("i", {
|
|
1818
2080
|
className: "tmo-mark-dot"
|
|
@@ -1838,14 +2100,13 @@ var STYLE = `
|
|
|
1838
2100
|
.tmo-head-end { position: absolute; right: 0; top: 50%; transform: translateY(-50%); display: flex; gap: 2px; }
|
|
1839
2101
|
/* The page: one column, as WeChat's Moments */
|
|
1840
2102
|
.tmo-page { flex: 1; min-height: 0; height: 100%; overflow-y: auto; overscroll-behavior: none; background: var(--ta-main); color: var(--ta-text); }
|
|
1841
|
-
.tmo-feed { display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
2103
|
+
.tmo-feed { display: flex; flex-direction: column; min-height: 100%; max-width: 640px; margin: 0 auto; padding: 6px 14px calc(28px + env(safe-area-inset-bottom)); box-sizing: border-box; }
|
|
1842
2104
|
.tmo-card { margin: 4px 0 8px; padding: 2px 8px; border-radius: 14px; background: var(--ta-raised); }
|
|
1843
2105
|
.tmo-friends-row { display: flex; align-items: center; gap: 8px; min-height: 48px; margin: 2px 0 6px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--ta-raised); color: var(--ta-text); font: inherit; font-size: calc(14px * var(--ta-font-scale)); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
|
|
1844
2106
|
.tmo-friends-row:hover, .tmo-friends-row:active { background: var(--ta-hover); }
|
|
1845
2107
|
.tmo-friends-label { font-weight: 500; }
|
|
1846
2108
|
.tmo-friends-row .ta-face { --ta-face-ring: var(--ta-raised); }
|
|
1847
2109
|
.tmo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ta-yellow); }
|
|
1848
|
-
.tmo-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 0 24px; text-align: center; }
|
|
1849
2110
|
/* A post: the face, then the name, words, pictures, what to take, when and the heart */
|
|
1850
2111
|
.tmo-post { display: flex; gap: 12px; padding: 16px 2px 14px; border-bottom: 1px solid var(--ta-border-muted); }
|
|
1851
2112
|
.tmo-post .ta-face { --ta-face-ring: var(--ta-main); }
|
|
@@ -1941,9 +2202,9 @@ var STYLE = `
|
|
|
1941
2202
|
.tmo-editor-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
|
|
1942
2203
|
.tmo-editor-label { flex: none; min-width: 34px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
1943
2204
|
.tmo-select { flex: 1; min-width: 0; max-width: 320px; height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: var(--ta-main); color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }
|
|
1944
|
-
|
|
1945
|
-
.tmo-
|
|
1946
|
-
.tmo-
|
|
2205
|
+
/* How long a post stays: the page's segmented control (.ta-segmented), sized to its labels */
|
|
2206
|
+
.tmo-segments { max-width: 100%; }
|
|
2207
|
+
.tmo-segments button { padding: 0 10px; white-space: nowrap; cursor: pointer; }
|
|
1947
2208
|
.tmo-chip { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 5px 6px 5px 10px; border-radius: 8px; background: var(--ta-raised); color: var(--ta-secondary); font-size: calc(12.5px * var(--ta-font-scale)); }
|
|
1948
2209
|
.tmo-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ta-text); }
|
|
1949
2210
|
.tmo-chip-x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ta-muted); cursor: pointer; }
|