@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
|
@@ -163,6 +163,44 @@ var TaAccessServer = Symbol("TaAccessServer");
|
|
|
163
163
|
var TaAuthServer = Symbol("TaAuthServer");
|
|
164
164
|
// ../ta-protocol/esm/common/gateway-protocol.js
|
|
165
165
|
var TaGatewayServer = Symbol("TaGatewayServer");
|
|
166
|
+
// ../ta-protocol/esm/common/language.js
|
|
167
|
+
var TaLanguageUtil;
|
|
168
|
+
(function(TaLanguageUtil2) {
|
|
169
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
170
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
171
|
+
function of(tag) {
|
|
172
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
173
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
174
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
175
|
+
}
|
|
176
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
177
|
+
}
|
|
178
|
+
TaLanguageUtil2.of = of;
|
|
179
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
180
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
181
|
+
}
|
|
182
|
+
TaLanguageUtil2.server = server;
|
|
183
|
+
function pick(language, words) {
|
|
184
|
+
return words[of(language)];
|
|
185
|
+
}
|
|
186
|
+
TaLanguageUtil2.pick = pick;
|
|
187
|
+
function say(words) {
|
|
188
|
+
return words[server()];
|
|
189
|
+
}
|
|
190
|
+
TaLanguageUtil2.say = say;
|
|
191
|
+
function chinese(language) {
|
|
192
|
+
return of(language).startsWith("zh");
|
|
193
|
+
}
|
|
194
|
+
TaLanguageUtil2.chinese = chinese;
|
|
195
|
+
function cjk(language) {
|
|
196
|
+
return of(language) !== "en-US";
|
|
197
|
+
}
|
|
198
|
+
TaLanguageUtil2.cjk = cjk;
|
|
199
|
+
function list(language, items) {
|
|
200
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
201
|
+
}
|
|
202
|
+
TaLanguageUtil2.list = list;
|
|
203
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
166
204
|
// ../ta-protocol/esm/common/location.js
|
|
167
205
|
var TaLocation;
|
|
168
206
|
(function(TaLocation2) {
|
|
@@ -332,57 +370,16 @@ var TaPackageServer = Symbol("TaPackageServer");
|
|
|
332
370
|
var TaPackageTextUtil;
|
|
333
371
|
(function(TaPackageTextUtil2) {
|
|
334
372
|
function pick(text, language) {
|
|
335
|
-
var _a, _b, _c, _d;
|
|
373
|
+
var _a, _b, _c, _d, _e;
|
|
336
374
|
if (text === undefined || typeof text === "string") {
|
|
337
375
|
return text;
|
|
338
376
|
}
|
|
339
|
-
|
|
377
|
+
const base = language.split("-")[0];
|
|
378
|
+
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
379
|
+
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];
|
|
340
380
|
}
|
|
341
381
|
TaPackageTextUtil2.pick = pick;
|
|
342
382
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
343
|
-
// ../ta-protocol/esm/common/relay-protocol.js
|
|
344
|
-
var TaRelayServer = Symbol("TaRelayServer");
|
|
345
|
-
// ../ta-protocol/esm/common/remote-protocol.js
|
|
346
|
-
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
347
|
-
// ../ta-protocol/esm/common/room-protocol.js
|
|
348
|
-
var TaRoomServer = Symbol("TaRoomServer");
|
|
349
|
-
var TA_FRIENDS_KIND = "ta-friends";
|
|
350
|
-
var TaRoomWatchUtil;
|
|
351
|
-
(function(TaRoomWatchUtil2) {
|
|
352
|
-
function of(messages, state) {
|
|
353
|
-
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
354
|
-
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
355
|
-
}
|
|
356
|
-
TaRoomWatchUtil2.of = of;
|
|
357
|
-
function union(watches) {
|
|
358
|
-
let messages = false;
|
|
359
|
-
const state = [];
|
|
360
|
-
for (const watch of watches) {
|
|
361
|
-
messages || (messages = watch.messages);
|
|
362
|
-
state.push(...watch.state);
|
|
363
|
-
}
|
|
364
|
-
return of(messages, messages ? [] : state);
|
|
365
|
-
}
|
|
366
|
-
TaRoomWatchUtil2.union = union;
|
|
367
|
-
function same(a, b) {
|
|
368
|
-
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
369
|
-
`) === b.state.join(`
|
|
370
|
-
`);
|
|
371
|
-
}
|
|
372
|
-
TaRoomWatchUtil2.same = same;
|
|
373
|
-
function hears(watch, event) {
|
|
374
|
-
if (event.type === "message") {
|
|
375
|
-
return watch.messages;
|
|
376
|
-
}
|
|
377
|
-
if (event.type === "state") {
|
|
378
|
-
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
379
|
-
}
|
|
380
|
-
return true;
|
|
381
|
-
}
|
|
382
|
-
TaRoomWatchUtil2.hears = hears;
|
|
383
|
-
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
384
|
-
// ../ta-protocol/esm/common/settings-protocol.js
|
|
385
|
-
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
386
383
|
// ../ta-protocol/esm/common/ta-protocol.js
|
|
387
384
|
var TaServer = Symbol("TaServer");
|
|
388
385
|
var TaClient = Symbol("TaClient");
|
|
@@ -568,6 +565,85 @@ var TaSkillUse;
|
|
|
568
565
|
}
|
|
569
566
|
TaSkillUse2.command = command;
|
|
570
567
|
})(TaSkillUse || (TaSkillUse = {}));
|
|
568
|
+
|
|
569
|
+
// ../ta-protocol/esm/common/presence-protocol.js
|
|
570
|
+
var TaPresenceServer = Symbol("TaPresenceServer");
|
|
571
|
+
var TaMessageAuthor;
|
|
572
|
+
(function(TaMessageAuthor2) {
|
|
573
|
+
const LINE = /^\[ta:by ([^\s\]]+)(?: ([^\]\n]+))?\]$/m;
|
|
574
|
+
const LINES = /^\[ta:by [^\]\n]*\]$\n?/gm;
|
|
575
|
+
function strip(message) {
|
|
576
|
+
const context = TaMessageContext.read(message);
|
|
577
|
+
if (context === undefined || !LINE.test(context)) {
|
|
578
|
+
return message;
|
|
579
|
+
}
|
|
580
|
+
const kept = context.replace(LINES, "").replace(/\n+$/, "");
|
|
581
|
+
const body = TaMessageContext.strip(message);
|
|
582
|
+
return kept.trim() ? TaMessageContext.wrap(kept, body) : body;
|
|
583
|
+
}
|
|
584
|
+
TaMessageAuthor2.strip = strip;
|
|
585
|
+
function mark(message, id, name) {
|
|
586
|
+
const plain = strip(message);
|
|
587
|
+
if (/^[/!]/.test(plain)) {
|
|
588
|
+
return plain;
|
|
589
|
+
}
|
|
590
|
+
const line = `[ta:by ${id.replace(/[\s\]]/g, "")} ${name.replace(/[\]\n]/g, " ").trim() || id}]`;
|
|
591
|
+
const context = TaMessageContext.read(plain);
|
|
592
|
+
return TaMessageContext.wrap(context === undefined ? line : `${context}
|
|
593
|
+
${line}`, TaMessageContext.strip(plain));
|
|
594
|
+
}
|
|
595
|
+
TaMessageAuthor2.mark = mark;
|
|
596
|
+
function of(message) {
|
|
597
|
+
var _a;
|
|
598
|
+
const context = TaMessageContext.read(message);
|
|
599
|
+
const match = context === undefined ? null : LINE.exec(context);
|
|
600
|
+
return match ? { id: match[1], name: ((_a = match[2]) !== null && _a !== undefined ? _a : match[1]).trim() } : undefined;
|
|
601
|
+
}
|
|
602
|
+
TaMessageAuthor2.of = of;
|
|
603
|
+
})(TaMessageAuthor || (TaMessageAuthor = {}));
|
|
604
|
+
// ../ta-protocol/esm/common/relay-protocol.js
|
|
605
|
+
var TaRelayServer = Symbol("TaRelayServer");
|
|
606
|
+
// ../ta-protocol/esm/common/remote-protocol.js
|
|
607
|
+
var TaRemoteServer = Symbol("TaRemoteServer");
|
|
608
|
+
// ../ta-protocol/esm/common/room-protocol.js
|
|
609
|
+
var TaRoomServer = Symbol("TaRoomServer");
|
|
610
|
+
var TA_FRIENDS_KIND = "ta-friends";
|
|
611
|
+
var TaRoomWatchUtil;
|
|
612
|
+
(function(TaRoomWatchUtil2) {
|
|
613
|
+
function of(messages, state) {
|
|
614
|
+
const prefixes = Array.isArray(state) ? state.filter((prefix) => typeof prefix === "string" && prefix.length > 0) : [];
|
|
615
|
+
return { messages: messages !== false, state: [...new Set(prefixes)].sort() };
|
|
616
|
+
}
|
|
617
|
+
TaRoomWatchUtil2.of = of;
|
|
618
|
+
function union(watches) {
|
|
619
|
+
let messages = false;
|
|
620
|
+
const state = [];
|
|
621
|
+
for (const watch of watches) {
|
|
622
|
+
messages || (messages = watch.messages);
|
|
623
|
+
state.push(...watch.state);
|
|
624
|
+
}
|
|
625
|
+
return of(messages, messages ? [] : state);
|
|
626
|
+
}
|
|
627
|
+
TaRoomWatchUtil2.union = union;
|
|
628
|
+
function same(a, b) {
|
|
629
|
+
return a === b || !!a && !!b && a.messages === b.messages && a.state.join(`
|
|
630
|
+
`) === b.state.join(`
|
|
631
|
+
`);
|
|
632
|
+
}
|
|
633
|
+
TaRoomWatchUtil2.same = same;
|
|
634
|
+
function hears(watch, event) {
|
|
635
|
+
if (event.type === "message") {
|
|
636
|
+
return watch.messages;
|
|
637
|
+
}
|
|
638
|
+
if (event.type === "state") {
|
|
639
|
+
return watch.messages || watch.state.some((prefix) => event.key.startsWith(prefix));
|
|
640
|
+
}
|
|
641
|
+
return true;
|
|
642
|
+
}
|
|
643
|
+
TaRoomWatchUtil2.hears = hears;
|
|
644
|
+
})(TaRoomWatchUtil || (TaRoomWatchUtil = {}));
|
|
645
|
+
// ../ta-protocol/esm/common/settings-protocol.js
|
|
646
|
+
var TaSettingsServer = Symbol("TaSettingsServer");
|
|
571
647
|
// ../ta-protocol/esm/common/team-protocol.js
|
|
572
648
|
var TA_UNDECLARED = "extensions.install";
|
|
573
649
|
var TaPermissionUtil;
|
|
@@ -588,46 +664,46 @@ var TaPermissionUtil;
|
|
|
588
664
|
}
|
|
589
665
|
TaPermissionUtil2.host = host;
|
|
590
666
|
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
591
|
-
var action = (id, en, zh, more = {}) => ({
|
|
667
|
+
var action = (id, en, zh, tw, ja, more = {}) => ({
|
|
592
668
|
id,
|
|
593
669
|
area: id.split(".")[0],
|
|
594
|
-
title: { en, "zh-CN": zh },
|
|
670
|
+
title: { en, "zh-CN": zh, ...tw ? { "zh-TW": tw } : {}, ...ja ? { "ja-JP": ja } : {} },
|
|
595
671
|
...more
|
|
596
672
|
});
|
|
597
673
|
var TA_ACTIONS = [
|
|
598
|
-
action("chat.view", "See conversations", "查看对话"),
|
|
599
|
-
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
600
|
-
action("chat.create", "Start conversations", "新建对话"),
|
|
601
|
-
action("chat.stop", "Stop a reply", "停止回复"),
|
|
602
|
-
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
603
|
-
action("chat.share", "Share by a link", "生成分享链接"),
|
|
604
|
-
action("agent.view", "See agents", "查看智能体"),
|
|
605
|
-
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
606
|
-
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
607
|
-
action("channel.view", "See channels", "查看频道"),
|
|
608
|
-
action("channel.post", "Post in channels", "在频道里发言"),
|
|
609
|
-
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
610
|
-
action("task.view", "See tasks", "查看任务"),
|
|
611
|
-
action("task.create", "Hand out tasks", "派任务"),
|
|
612
|
-
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
613
|
-
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
614
|
-
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
615
|
-
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
616
|
-
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
617
|
-
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
618
|
-
action("models.use", "Use the models", "使用模型"),
|
|
619
|
-
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
620
|
-
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
621
|
-
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
622
|
-
action("extensions.use", "Use extensions", "使用扩展"),
|
|
623
|
-
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
624
|
-
action("settings.view", "See settings", "查看设置"),
|
|
625
|
-
action("settings.manage", "Change settings", "修改设置"),
|
|
626
|
-
action("members.view", "See members", "查看成员"),
|
|
627
|
-
action("members.invite", "Invite people", "邀请别人"),
|
|
628
|
-
action("members.approve", "Answer requests", "处理申请"),
|
|
629
|
-
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
630
|
-
action("audit.view", "See the record", "查看记录")
|
|
674
|
+
action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
|
|
675
|
+
action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
|
|
676
|
+
action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
|
|
677
|
+
action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
|
|
678
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
|
|
679
|
+
action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
|
|
680
|
+
action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
|
|
681
|
+
action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
|
|
682
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
|
|
683
|
+
action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
|
|
684
|
+
action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
|
|
685
|
+
action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
|
|
686
|
+
action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
|
|
687
|
+
action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
|
|
688
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
|
|
689
|
+
action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
|
|
690
|
+
action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
|
|
691
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
|
|
692
|
+
action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
|
|
693
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
|
|
694
|
+
action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
|
|
695
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
|
|
696
|
+
action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
|
|
697
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
|
|
698
|
+
action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
|
|
699
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
|
|
700
|
+
action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
|
|
701
|
+
action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
|
|
702
|
+
action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
|
|
703
|
+
action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
|
|
704
|
+
action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
|
|
705
|
+
action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
|
|
706
|
+
action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
|
|
631
707
|
];
|
|
632
708
|
var TaActionUtil;
|
|
633
709
|
(function(TaActionUtil2) {
|
|
@@ -637,8 +713,18 @@ var TaActionUtil;
|
|
|
637
713
|
}
|
|
638
714
|
TaActionUtil2.info = info;
|
|
639
715
|
function title(id, language) {
|
|
640
|
-
|
|
641
|
-
|
|
716
|
+
var _a;
|
|
717
|
+
var _b, _c;
|
|
718
|
+
const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
|
|
719
|
+
if (!title2) {
|
|
720
|
+
return id;
|
|
721
|
+
}
|
|
722
|
+
return TaLanguageUtil.pick(language, {
|
|
723
|
+
"zh-CN": title2["zh-CN"],
|
|
724
|
+
"zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
|
|
725
|
+
"en-US": title2.en,
|
|
726
|
+
"ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
|
|
727
|
+
});
|
|
642
728
|
}
|
|
643
729
|
TaActionUtil2.title = title;
|
|
644
730
|
function inside(dir, path) {
|
|
@@ -832,7 +918,7 @@ var PostUtil;
|
|
|
832
918
|
return [];
|
|
833
919
|
}
|
|
834
920
|
const online = owner.self || owner.online;
|
|
835
|
-
const author = { id: owner.id, name: owner.name || room.ownerName };
|
|
921
|
+
const author = { id: owner.id, name: owner.name || room.ownerName, ...owner.look ? { look: owner.look } : {} };
|
|
836
922
|
const byMember = new Map(room.members.map((member) => [member.member, member]));
|
|
837
923
|
const self = room.members.find((member) => member.self);
|
|
838
924
|
const marks = (prefix, id) => {
|
|
@@ -851,7 +937,7 @@ var PostUtil;
|
|
|
851
937
|
mine = true;
|
|
852
938
|
}
|
|
853
939
|
if (who.id === me || who.id === owner.id || owner.id === me || friends.has(who.id)) {
|
|
854
|
-
people.push({ id: who.id, name: who.name });
|
|
940
|
+
people.push({ id: who.id, name: who.name, ...who.look ? { look: who.look } : {} });
|
|
855
941
|
}
|
|
856
942
|
}
|
|
857
943
|
return { people, mine };
|
|
@@ -895,89 +981,161 @@ var PostUtil;
|
|
|
895
981
|
// web-src/server-texts.ts
|
|
896
982
|
var MomentsServerTexts;
|
|
897
983
|
((MomentsServerTexts) => {
|
|
898
|
-
function
|
|
899
|
-
return
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
984
|
+
function roomTitle(language2 = TaLanguageUtil.server()) {
|
|
985
|
+
return TaLanguageUtil.pick(language2, {
|
|
986
|
+
"zh-CN": "动态",
|
|
987
|
+
"zh-TW": "動態",
|
|
988
|
+
"en-US": "Moments",
|
|
989
|
+
"ja-JP": "モーメンツ"
|
|
990
|
+
});
|
|
904
991
|
}
|
|
905
992
|
MomentsServerTexts.roomTitle = roomTitle;
|
|
906
|
-
function takeTitle(title) {
|
|
907
|
-
return
|
|
993
|
+
function takeTitle(title, language2 = TaLanguageUtil.server()) {
|
|
994
|
+
return TaLanguageUtil.pick(language2, {
|
|
995
|
+
"zh-CN": `拿来用:${title}`,
|
|
996
|
+
"zh-TW": `拿來用:${title}`,
|
|
997
|
+
"en-US": `Take: ${title}`,
|
|
998
|
+
"ja-JP": `使用する:${title}`
|
|
999
|
+
});
|
|
908
1000
|
}
|
|
909
1001
|
MomentsServerTexts.takeTitle = takeTitle;
|
|
910
|
-
function notFound() {
|
|
911
|
-
return
|
|
1002
|
+
function notFound(language2 = TaLanguageUtil.server()) {
|
|
1003
|
+
return TaLanguageUtil.pick(language2, {
|
|
1004
|
+
"zh-CN": "这条动态已经不在了",
|
|
1005
|
+
"zh-TW": "這條動態已經不在了",
|
|
1006
|
+
"en-US": "This post is gone",
|
|
1007
|
+
"ja-JP": "この投稿はありません"
|
|
1008
|
+
});
|
|
912
1009
|
}
|
|
913
1010
|
MomentsServerTexts.notFound = notFound;
|
|
914
|
-
function noPackage(name) {
|
|
915
|
-
return
|
|
1011
|
+
function noPackage(name, language2 = TaLanguageUtil.server()) {
|
|
1012
|
+
return TaLanguageUtil.pick(language2, {
|
|
1013
|
+
"zh-CN": `没找到扩展 ${name},或它是 Ta 自带的`,
|
|
1014
|
+
"zh-TW": `沒找到擴充功能 ${name},或它是 Ta 自帶的`,
|
|
1015
|
+
"en-US": `No extension ${name} of yours (one that comes with Ta everyone has)`,
|
|
1016
|
+
"ja-JP": `拡張機能 ${name} が見つかりません(または Ta の組み込み機能)`
|
|
1017
|
+
});
|
|
916
1018
|
}
|
|
917
1019
|
MomentsServerTexts.noPackage = noPackage;
|
|
918
|
-
function response(took, names, what) {
|
|
1020
|
+
function response(took, names, what, language2 = TaLanguageUtil.server()) {
|
|
919
1021
|
const short = what.replace(/\s+/g, " ").trim().slice(0, 40);
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1022
|
+
return TaLanguageUtil.pick(language2, {
|
|
1023
|
+
"zh-CN": took ? `${names.join("、")} 拿去用了你的「${short}」` : `${names.join("、")} 赞了你的动态${short ? `:${short}` : ""}`,
|
|
1024
|
+
"zh-TW": took ? `${names.join("、")} 拿去用了你的「${short}」` : `${names.join("、")} 讚了你的動態${short ? `:${short}` : ""}`,
|
|
1025
|
+
"en-US": took ? `${names.join(", ")} took your "${short}"` : `${names.join(", ")} liked your post${short ? `: ${short}` : ""}`,
|
|
1026
|
+
"ja-JP": took ? `${names.join("、")} があなたの「${short}」を使用しました` : `${names.join("、")} があなたの投稿を高く評価しました${short ? `:${short}` : ""}`
|
|
1027
|
+
});
|
|
926
1028
|
}
|
|
927
1029
|
MomentsServerTexts.response = response;
|
|
928
|
-
function talk(kind, name, text2) {
|
|
1030
|
+
function talk(kind, name, text2, language2 = TaLanguageUtil.server()) {
|
|
929
1031
|
const short = text2.replace(/\s+/g, " ").trim().slice(0, 60);
|
|
930
|
-
|
|
931
|
-
|
|
1032
|
+
return TaLanguageUtil.pick(language2, {
|
|
1033
|
+
"zh-CN": {
|
|
932
1034
|
comment: `${name} 评论了你的动态:${short}`,
|
|
933
1035
|
ask: `${name} 问你的 Ta:${short}`,
|
|
934
1036
|
reply: `${name} 回复了你:${short}`,
|
|
935
1037
|
answer: `${name}的 Ta 回答了你:${short}`,
|
|
936
1038
|
answered: `Ta 替你回答了${name}:${short}`
|
|
937
|
-
}[kind]
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
1039
|
+
}[kind],
|
|
1040
|
+
"zh-TW": {
|
|
1041
|
+
comment: `${name} 評論了你的動態:${short}`,
|
|
1042
|
+
ask: `${name} 問你的 Ta:${short}`,
|
|
1043
|
+
reply: `${name} 回覆了你:${short}`,
|
|
1044
|
+
answer: `${name}的 Ta 回答了你:${short}`,
|
|
1045
|
+
answered: `Ta 替你回答了${name}:${short}`
|
|
1046
|
+
}[kind],
|
|
1047
|
+
"en-US": {
|
|
1048
|
+
comment: `${name} commented on your post: ${short}`,
|
|
1049
|
+
ask: `${name} asked your Ta: ${short}`,
|
|
1050
|
+
reply: `${name} replied to you: ${short}`,
|
|
1051
|
+
answer: `The Ta of ${name} answered you: ${short}`,
|
|
1052
|
+
answered: `Your Ta answered ${name}: ${short}`
|
|
1053
|
+
}[kind],
|
|
1054
|
+
"ja-JP": {
|
|
1055
|
+
comment: `${name} があなたの投稿にコメントしました:${short}`,
|
|
1056
|
+
ask: `${name} があなたの Ta に質問しました:${short}`,
|
|
1057
|
+
reply: `${name} があなたに返信しました:${short}`,
|
|
1058
|
+
answer: `${name} の Ta があなたに回答しました:${short}`,
|
|
1059
|
+
answered: `あなたの Ta が ${name} に代わりに回答しました:${short}`
|
|
1060
|
+
}[kind]
|
|
1061
|
+
});
|
|
946
1062
|
}
|
|
947
1063
|
MomentsServerTexts.talk = talk;
|
|
948
|
-
function answersTitle(name, text2) {
|
|
1064
|
+
function answersTitle(name, text2, language2 = TaLanguageUtil.server()) {
|
|
949
1065
|
const short = text2.replace(/\s+/g, " ").trim().slice(0, 24);
|
|
950
|
-
return
|
|
1066
|
+
return TaLanguageUtil.pick(language2, {
|
|
1067
|
+
"zh-CN": `答${name}:${short}`,
|
|
1068
|
+
"zh-TW": `答${name}:${short}`,
|
|
1069
|
+
"en-US": `Answering ${name}: ${short}`,
|
|
1070
|
+
"ja-JP": `${name} に回答:${short}`
|
|
1071
|
+
});
|
|
951
1072
|
}
|
|
952
1073
|
MomentsServerTexts.answersTitle = answersTitle;
|
|
953
|
-
function offline(name) {
|
|
954
|
-
return
|
|
1074
|
+
function offline(name, language2 = TaLanguageUtil.server()) {
|
|
1075
|
+
return TaLanguageUtil.pick(language2, {
|
|
1076
|
+
"zh-CN": `等${name}的电脑上线后才能拿`,
|
|
1077
|
+
"zh-TW": `等${name}的電腦上線後才能拿`,
|
|
1078
|
+
"en-US": `It comes from the computer of ${name}: try once it is online`,
|
|
1079
|
+
"ja-JP": `${name} のコンピュータがオンラインになったら使用してください`
|
|
1080
|
+
});
|
|
955
1081
|
}
|
|
956
1082
|
MomentsServerTexts.offline = offline;
|
|
957
|
-
function expired() {
|
|
958
|
-
return
|
|
1083
|
+
function expired(language2 = TaLanguageUtil.server()) {
|
|
1084
|
+
return TaLanguageUtil.pick(language2, {
|
|
1085
|
+
"zh-CN": "附带的扩展已经过期,请作者重新发一次",
|
|
1086
|
+
"zh-TW": "附帶的擴充功能已經過期,請作者重新發一次",
|
|
1087
|
+
"en-US": "What it held is no longer there: ask its author to post it again",
|
|
1088
|
+
"ja-JP": "添付されていた拡張機能が期限切れです。作者に再投稿を依頼してください"
|
|
1089
|
+
});
|
|
959
1090
|
}
|
|
960
1091
|
MomentsServerTexts.expired = expired;
|
|
961
|
-
function take(input) {
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
1092
|
+
function take(input, language2 = TaLanguageUtil.server()) {
|
|
1093
|
+
return TaLanguageUtil.pick(language2, {
|
|
1094
|
+
"zh-CN": () => {
|
|
1095
|
+
const where = input.file ? `包文件在 \`${input.file}\`` : `来源是 \`${input.source}\``;
|
|
1096
|
+
return [
|
|
1097
|
+
`${input.from} 在动态里分享了扩展「${input.title}」${input.summary ? `:${input.summary}` : ""}。我想拿来用。${where}。`,
|
|
1098
|
+
"",
|
|
1099
|
+
"1. 先别装,也别运行里面的任何东西:把它解到临时目录(来源是 npm 就用 `npm pack`,是 Git 就浅克隆),列出文件,读 package.json 和扩展代码。",
|
|
1100
|
+
"2. 用几句话告诉我:它做什么、会读写哪些文件、会运行哪些命令、会连哪些网络、有没有可疑的地方。",
|
|
1101
|
+
`3. 等我说装,再照 ta-package 技能导入到 \`${input.agentDir}/extensions\`;装完按我的电脑调整(路径、语言、配置),只改装到我这里的副本。`
|
|
1102
|
+
].join(`
|
|
971
1103
|
`);
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1104
|
+
},
|
|
1105
|
+
"zh-TW": () => {
|
|
1106
|
+
const where = input.file ? `包檔案在 \`${input.file}\`` : `來源是 \`${input.source}\``;
|
|
1107
|
+
return [
|
|
1108
|
+
`${input.from} 在動態裡分享了擴充功能「${input.title}」${input.summary ? `:${input.summary}` : ""}。我想拿來用。${where}。`,
|
|
1109
|
+
"",
|
|
1110
|
+
"1. 先別裝,也別執行裡面的任何東西:把它解到臨時目錄(來源是 npm 就用 `npm pack`,是 Git 就淺複製),列出檔案,讀 package.json 和擴充功能程式碼。",
|
|
1111
|
+
"2. 用幾句話告訴我:它做什麼、會讀寫哪些檔案、會執行哪些命令、會連哪些網路、有沒有可疑的地方。",
|
|
1112
|
+
`3. 等我說裝,再照 ta-package 技能匯入到 \`${input.agentDir}/extensions\`;裝完按我的電腦調整(路徑、語言、配置),只改裝到我這裡的副本。`
|
|
1113
|
+
].join(`
|
|
1114
|
+
`);
|
|
1115
|
+
},
|
|
1116
|
+
"en-US": () => {
|
|
1117
|
+
const where = input.file ? `Its package is \`${input.file}\`` : `Its source is \`${input.source}\``;
|
|
1118
|
+
return [
|
|
1119
|
+
`${input.from} posted the extension "${input.title}"${input.summary ? `: ${input.summary}` : ""} in Moments, and I want to use it. ${where}.`,
|
|
1120
|
+
"",
|
|
1121
|
+
"1. Do not install it or run anything in it yet: unpack it in a temporary directory (`npm pack` for a source of npm, a shallow clone for Git), list its files, and read its package.json and the code of its extensions.",
|
|
1122
|
+
"2. Tell me in a few sentences what it does, which files it reads and writes, which commands it runs, what it reaches on the network, and anything that looks wrong.",
|
|
1123
|
+
`3. Once I say install, import it into \`${input.agentDir}/extensions\` as the ta-package skill says; then fit it to my computer (paths, language, settings), changing only the copy installed here.`
|
|
1124
|
+
].join(`
|
|
1125
|
+
`);
|
|
1126
|
+
},
|
|
1127
|
+
"ja-JP": () => {
|
|
1128
|
+
const where = input.file ? `パッケージファイルは \`${input.file}\`` : `ソースは \`${input.source}\``;
|
|
1129
|
+
return [
|
|
1130
|
+
`${input.from} がモーメンツに拡張機能「${input.title}」${input.summary ? `:${input.summary}` : ""} を共有しました。使用したいです。${where}。`,
|
|
1131
|
+
"",
|
|
1132
|
+
"1. まだインストールしないでください。実行前に、テンポラリディレクトリに解凍します(npm は `npm pack` を使い、Git は浅複製を使う)。ファイルをリストして、package.json と拡張機能コードを読む。",
|
|
1133
|
+
"2. 何をするのか、どのファイルを読み書きするのか、どのコマンドを実行するのか、ネットワークに何に接続するのか、または何が疑わしいのかを数文で教えてください。",
|
|
1134
|
+
`3. インストールしてください と言ったら、ta-package スキルが示すように \`${input.agentDir}/extensions\` にインポートします。次に、コンピュータに合わせて調整します(パス、言語、設定)。ここにインストールされたコピーのみを変更します。`
|
|
1135
|
+
].join(`
|
|
980
1136
|
`);
|
|
1137
|
+
}
|
|
1138
|
+
})();
|
|
981
1139
|
}
|
|
982
1140
|
MomentsServerTexts.take = take;
|
|
983
1141
|
})(MomentsServerTexts ||= {});
|
|
@@ -1172,7 +1330,13 @@ class MomentsTalk {
|
|
|
1172
1330
|
const words2 = typeof text2 === "string" ? text2.trim().slice(0, Limits.TALK_TEXT) : "";
|
|
1173
1331
|
const value = await this.postOf(room, post);
|
|
1174
1332
|
if (!words2 || !value) {
|
|
1175
|
-
|
|
1333
|
+
const language2 = TaLanguageUtil.server();
|
|
1334
|
+
throw new Error(words2 ? MomentsServerTexts.notFound(language2) : TaLanguageUtil.pick(language2, {
|
|
1335
|
+
"zh-CN": "写点什么再发",
|
|
1336
|
+
"zh-TW": "寫點什麼再發",
|
|
1337
|
+
"en-US": "Write something first",
|
|
1338
|
+
"ja-JP": "何か書いて投稿してください"
|
|
1339
|
+
}));
|
|
1176
1340
|
}
|
|
1177
1341
|
const me = await this.host.rooms.getIdentity();
|
|
1178
1342
|
const to = typeof options.to === "string" && options.to !== me.id ? options.to : undefined;
|
|
@@ -1187,7 +1351,13 @@ class MomentsTalk {
|
|
|
1187
1351
|
return;
|
|
1188
1352
|
}
|
|
1189
1353
|
if (options.ask && !value.ask) {
|
|
1190
|
-
|
|
1354
|
+
const language2 = TaLanguageUtil.server();
|
|
1355
|
+
throw new Error(TaLanguageUtil.pick(language2, {
|
|
1356
|
+
"zh-CN": '作者没有打开"问问它"',
|
|
1357
|
+
"zh-TW": "作者沒有開啟「問問它」",
|
|
1358
|
+
"en-US": "Its author did not let friends ask their Ta",
|
|
1359
|
+
"ja-JP": "作者は友人に Ta に質問することを許可していません"
|
|
1360
|
+
}));
|
|
1191
1361
|
}
|
|
1192
1362
|
const toName = to ? await this.nameOf(room, post, to) : undefined;
|
|
1193
1363
|
await this.queue(room.id, {
|
|
@@ -1318,7 +1488,7 @@ class MomentsTalk {
|
|
|
1318
1488
|
});
|
|
1319
1489
|
if (added) {
|
|
1320
1490
|
await this.push(room, message.post);
|
|
1321
|
-
await this.notify(`talk:${message.post}`, MomentsServerTexts.talk(message.ask ? "ask" : message.to ? "reply" : "comment", sender.name, message.text));
|
|
1491
|
+
await this.notify(`talk:${message.post}`, MomentsServerTexts.talk(message.ask ? "ask" : message.to ? "reply" : "comment", sender.name, message.text, TaLanguageUtil.server()));
|
|
1322
1492
|
if (message.ask) {
|
|
1323
1493
|
this.answer(room, message.post, value, entry);
|
|
1324
1494
|
}
|
|
@@ -1381,7 +1551,7 @@ class MomentsTalk {
|
|
|
1381
1551
|
await this.write_(Keys.HEARD, [...told].slice(-300));
|
|
1382
1552
|
const last = news[news.length - 1];
|
|
1383
1553
|
const name = last.name || room.ownerName;
|
|
1384
|
-
await this.notify(`reply:${room.id}:${post}`, MomentsServerTexts.talk(last.double ? "answer" : "reply", name, last.text));
|
|
1554
|
+
await this.notify(`reply:${room.id}:${post}`, MomentsServerTexts.talk(last.double ? "answer" : "reply", name, last.text, TaLanguageUtil.server()));
|
|
1385
1555
|
}
|
|
1386
1556
|
answer(room, post, value, question) {
|
|
1387
1557
|
this.answering = this.answering.then(async () => {
|
|
@@ -1415,7 +1585,7 @@ class MomentsTalk {
|
|
|
1415
1585
|
}
|
|
1416
1586
|
] : entries);
|
|
1417
1587
|
await this.push(room, post);
|
|
1418
|
-
await this.notify(`answered:${post}`, MomentsServerTexts.talk("answered", question.name, text2));
|
|
1588
|
+
await this.notify(`answered:${post}`, MomentsServerTexts.talk("answered", question.name, text2, TaLanguageUtil.server()));
|
|
1419
1589
|
this.changed();
|
|
1420
1590
|
}).catch((error) => console.error("ta-moments could not answer a question:", error));
|
|
1421
1591
|
}
|
|
@@ -1438,7 +1608,7 @@ class MomentsTalk {
|
|
|
1438
1608
|
return opened.sessionId;
|
|
1439
1609
|
}
|
|
1440
1610
|
const session = await this.host.openSession({ cwd, appendSystemPrompt: role, group: NAME });
|
|
1441
|
-
await this.host.setSessionName(session.sessionId, MomentsServerTexts.answersTitle(question.name, question.text)).catch(() => {
|
|
1611
|
+
await this.host.setSessionName(session.sessionId, MomentsServerTexts.answersTitle(question.name, question.text, TaLanguageUtil.server())).catch(() => {
|
|
1442
1612
|
return;
|
|
1443
1613
|
});
|
|
1444
1614
|
const sessionFile = session.sessionFile ?? (await this.host.getState(session.sessionId)).sessionFile;
|
|
@@ -1514,7 +1684,13 @@ class MomentsTalk {
|
|
|
1514
1684
|
async queue(room, item) {
|
|
1515
1685
|
const outbox = record(await this.read_(Keys.OUTBOX));
|
|
1516
1686
|
if (Object.values(outbox).flat().length >= Limits.OUTBOX) {
|
|
1517
|
-
|
|
1687
|
+
const language2 = TaLanguageUtil.server();
|
|
1688
|
+
throw new Error(TaLanguageUtil.pick(language2, {
|
|
1689
|
+
"zh-CN": "还有太多话没送到,等对方上线后再说",
|
|
1690
|
+
"zh-TW": "還有太多話沒送到,等對方上線後再說",
|
|
1691
|
+
"en-US": "Too much is waiting for its authors: try once they are online",
|
|
1692
|
+
"ja-JP": "多くの内容が送信されるのを待っています。対方がオンラインになったら試してください"
|
|
1693
|
+
}));
|
|
1518
1694
|
}
|
|
1519
1695
|
outbox[room] = [...outbox[room] ?? [], item];
|
|
1520
1696
|
await this.write_(Keys.OUTBOX, outbox);
|
|
@@ -1541,7 +1717,7 @@ class MomentsTalk {
|
|
|
1541
1717
|
return entries.find((each) => each.by === id)?.name;
|
|
1542
1718
|
}
|
|
1543
1719
|
async notify(id, text2) {
|
|
1544
|
-
await this.host.callPackageHost(NOTIFY, "notify", [{ from: NAME, id, level: "done", title: MomentsServerTexts.roomTitle(), text: text2, view: VIEW }]).catch(() => {
|
|
1720
|
+
await this.host.callPackageHost(NOTIFY, "notify", [{ from: NAME, id, level: "done", title: MomentsServerTexts.roomTitle(TaLanguageUtil.server()), text: text2, view: VIEW }]).catch(() => {
|
|
1545
1721
|
return;
|
|
1546
1722
|
});
|
|
1547
1723
|
}
|