@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
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
// ../ta-protocol/esm/common/language.js
|
|
2
|
+
var TaLanguageUtil;
|
|
3
|
+
(function(TaLanguageUtil2) {
|
|
4
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
5
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
6
|
+
function of(tag) {
|
|
7
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
8
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
9
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
10
|
+
}
|
|
11
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
12
|
+
}
|
|
13
|
+
TaLanguageUtil2.of = of;
|
|
14
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
15
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
16
|
+
}
|
|
17
|
+
TaLanguageUtil2.server = server;
|
|
18
|
+
function pick(language, words) {
|
|
19
|
+
return words[of(language)];
|
|
20
|
+
}
|
|
21
|
+
TaLanguageUtil2.pick = pick;
|
|
22
|
+
function say(words) {
|
|
23
|
+
return words[server()];
|
|
24
|
+
}
|
|
25
|
+
TaLanguageUtil2.say = say;
|
|
26
|
+
function chinese(language) {
|
|
27
|
+
return of(language).startsWith("zh");
|
|
28
|
+
}
|
|
29
|
+
TaLanguageUtil2.chinese = chinese;
|
|
30
|
+
function cjk(language) {
|
|
31
|
+
return of(language) !== "en-US";
|
|
32
|
+
}
|
|
33
|
+
TaLanguageUtil2.cjk = cjk;
|
|
34
|
+
function list(language, items) {
|
|
35
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
36
|
+
}
|
|
37
|
+
TaLanguageUtil2.list = list;
|
|
38
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
39
|
+
|
|
1
40
|
// web-src/i18n.ts
|
|
2
41
|
var EN = {
|
|
3
42
|
settingsTitle: "Notifications",
|
|
@@ -47,10 +86,59 @@ var ZH = {
|
|
|
47
86
|
toolTell: "告诉你",
|
|
48
87
|
askTitle: "Ta 在问你"
|
|
49
88
|
};
|
|
89
|
+
var ZH_TW = {
|
|
90
|
+
settingsTitle: "提醒",
|
|
91
|
+
levelLabel: "提醒我",
|
|
92
|
+
levelHint: "正在看的對話不提醒;分身跟進的任務由分身告訴你。",
|
|
93
|
+
levelAll: "每次回覆",
|
|
94
|
+
levelNeeds: "需要我時",
|
|
95
|
+
levelOff: "關閉",
|
|
96
|
+
systemLabel: "系統通知",
|
|
97
|
+
systemHint: "Ta 不在前台時用系統通知提醒。",
|
|
98
|
+
systemAllow: "允許",
|
|
99
|
+
systemOn: "已開啟",
|
|
100
|
+
systemDenied: "已在瀏覽器設定裡關閉",
|
|
101
|
+
systemNone: "此裝置沒有系統通知:Ta 開啟時用橫幅提醒。手機鎖屏推送尚未接入。",
|
|
102
|
+
mutedLabel: "免打擾的對話",
|
|
103
|
+
mutedHint: "只在需要你時提醒。",
|
|
104
|
+
mutedNone: "沒有",
|
|
105
|
+
unmute: "取消免打擾",
|
|
106
|
+
mute: "免打擾",
|
|
107
|
+
mutedNotice: "已對「{name}」免打擾,需要你時仍會提醒",
|
|
108
|
+
untitled: "這個對話",
|
|
109
|
+
toolAsk: "提醒你",
|
|
110
|
+
toolTell: "告訴你",
|
|
111
|
+
askTitle: "Ta 在問你"
|
|
112
|
+
};
|
|
113
|
+
var JA = {
|
|
114
|
+
settingsTitle: "通知",
|
|
115
|
+
levelLabel: "通知する",
|
|
116
|
+
levelHint: "見ている会話は通知しません。分身が追跡するタスクは分身があなたに通知します。",
|
|
117
|
+
levelAll: "すべての回答",
|
|
118
|
+
levelNeeds: "必要な時",
|
|
119
|
+
levelOff: "オフ",
|
|
120
|
+
systemLabel: "システム通知",
|
|
121
|
+
systemHint: "Ta が前面にない場合、システム通知で通知します。",
|
|
122
|
+
systemAllow: "許可",
|
|
123
|
+
systemOn: "オン",
|
|
124
|
+
systemDenied: "ブラウザの設定で有効になっていません",
|
|
125
|
+
systemNone: "このデバイスにはシステム通知がありません。Ta が開いている時は横幅で通知します。スマホのロック画面プッシュはまだセットアップされていません。",
|
|
126
|
+
mutedLabel: "通知オフの会話",
|
|
127
|
+
mutedHint: "必要な時だけ通知します。",
|
|
128
|
+
mutedNone: "なし",
|
|
129
|
+
unmute: "通知オフを取り消す",
|
|
130
|
+
mute: "通知オフ",
|
|
131
|
+
mutedNotice: "「{name}」を通知オフにしました。必要な時は通知します",
|
|
132
|
+
untitled: "この会話",
|
|
133
|
+
toolAsk: "あなたに尋ねる",
|
|
134
|
+
toolTell: "あなたに伝える",
|
|
135
|
+
askTitle: "Ta があなたに尋ねています"
|
|
136
|
+
};
|
|
137
|
+
var WORDS = { "zh-CN": ZH, "zh-TW": ZH_TW, "en-US": EN, "ja-JP": JA };
|
|
50
138
|
var NotifyWords;
|
|
51
139
|
((NotifyWords) => {
|
|
52
140
|
function of(language) {
|
|
53
|
-
return language
|
|
141
|
+
return TaLanguageUtil.pick(language, WORDS);
|
|
54
142
|
}
|
|
55
143
|
NotifyWords.of = of;
|
|
56
144
|
function format(text, values) {
|
|
@@ -17,7 +17,7 @@ Settings → Recall: the daily brief, its time, one written now, and the offers
|
|
|
17
17
|
|
|
18
18
|
Sessions a package opened for a role of its own (an agent of a channel, a run of a schedule) are offered nothing to keep.
|
|
19
19
|
|
|
20
|
-
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own.
|
|
20
|
+
Offering to keep something is a kind of Initiative (`@celljs/ta-initiative`), `recall.keep`: declined twice in a row it goes down to In the brief and is no longer offered in conversations; what you keep, have made or decline is told to it. The brief tells too what waits in Suggestions and what Ta did on its own. The notices, the runs of scheduled tasks and the suggestions are read by the methods of those packages' hosts (`notices` of ta-notify, `list` / `runs` of ta-cron, `proposals` of ta-initiative), never by their data; a package that is off leaves its part out.
|
|
21
21
|
|
|
22
22
|
## Data and calls
|
|
23
23
|
|
|
@@ -17,7 +17,7 @@ Ta 自带的 pi 包(默认开启,可在 Web 客户端的 设置 → 扩展
|
|
|
17
17
|
|
|
18
18
|
由别的包打开、承担固定角色的会话(频道里的智能体、定时任务的运行)不建议存下来。
|
|
19
19
|
|
|
20
|
-
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta
|
|
20
|
+
建议存下来是"主动"(`@celljs/ta-initiative`)的一类事 `recall.keep`:你连续拒绝两次后它降到"只进简报",就不再在对话里建议;存下、做成扩展或拒绝都会回报给它。简报也写上"Ta 的建议"里等你决定的事和 Ta 自己做了的事。提醒、定时任务的运行和建议都经各包宿主的方法读(`ta-notify` 的 `notices`、`ta-cron` 的 `list` / `runs`、`ta-initiative` 的 `proposals`),不读它们的包数据;包关着时简报就没有那一段。
|
|
21
21
|
|
|
22
22
|
## 数据与调用
|
|
23
23
|
|
|
@@ -248,6 +248,45 @@ class ConversationIndex {
|
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
+
// ../ta-protocol/esm/common/language.js
|
|
252
|
+
var TaLanguageUtil;
|
|
253
|
+
(function(TaLanguageUtil2) {
|
|
254
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
255
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
256
|
+
function of(tag) {
|
|
257
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
258
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
259
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
260
|
+
}
|
|
261
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
262
|
+
}
|
|
263
|
+
TaLanguageUtil2.of = of;
|
|
264
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
265
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
266
|
+
}
|
|
267
|
+
TaLanguageUtil2.server = server;
|
|
268
|
+
function pick(language, words) {
|
|
269
|
+
return words[of(language)];
|
|
270
|
+
}
|
|
271
|
+
TaLanguageUtil2.pick = pick;
|
|
272
|
+
function say(words) {
|
|
273
|
+
return words[server()];
|
|
274
|
+
}
|
|
275
|
+
TaLanguageUtil2.say = say;
|
|
276
|
+
function chinese(language) {
|
|
277
|
+
return of(language).startsWith("zh");
|
|
278
|
+
}
|
|
279
|
+
TaLanguageUtil2.chinese = chinese;
|
|
280
|
+
function cjk(language) {
|
|
281
|
+
return of(language) !== "en-US";
|
|
282
|
+
}
|
|
283
|
+
TaLanguageUtil2.cjk = cjk;
|
|
284
|
+
function list(language, items) {
|
|
285
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
286
|
+
}
|
|
287
|
+
TaLanguageUtil2.list = list;
|
|
288
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
289
|
+
|
|
251
290
|
// web-src/block-util.ts
|
|
252
291
|
var BlockUtil;
|
|
253
292
|
((BlockUtil) => {
|
|
@@ -416,7 +455,12 @@ ${draft.body.trim()}
|
|
|
416
455
|
"- Once it is made, say in one line where the user finds it."
|
|
417
456
|
].join(`
|
|
418
457
|
`);
|
|
419
|
-
const said =
|
|
458
|
+
const said = TaLanguageUtil.pick(language, {
|
|
459
|
+
"zh-CN": `做出来:${draft.title}`,
|
|
460
|
+
"zh-TW": `做出來:${draft.title}`,
|
|
461
|
+
"en-US": `Make it: ${draft.title}`,
|
|
462
|
+
"ja-JP": `作成:${draft.title}`
|
|
463
|
+
});
|
|
420
464
|
return `<context>
|
|
421
465
|
${context}
|
|
422
466
|
</context>
|
|
@@ -451,10 +495,16 @@ var KeepUtil;
|
|
|
451
495
|
"- When the conversation holds nothing worth keeping, say so and offer nothing."
|
|
452
496
|
].join(`
|
|
453
497
|
`);
|
|
498
|
+
const prompt = TaLanguageUtil.pick(language, {
|
|
499
|
+
"zh-CN": "把这个对话里的做法存下来",
|
|
500
|
+
"zh-TW": "把這個對話裡的做法存下來",
|
|
501
|
+
"en-US": "Keep how this was done",
|
|
502
|
+
"ja-JP": "この会話の方法を保存"
|
|
503
|
+
});
|
|
454
504
|
return `<context>
|
|
455
505
|
${context}
|
|
456
506
|
</context>
|
|
457
|
-
${
|
|
507
|
+
${prompt}`;
|
|
458
508
|
}
|
|
459
509
|
KeepUtil.ask = ask;
|
|
460
510
|
function hint(asks) {
|
|
@@ -3,6 +3,45 @@ import { existsSync } from "node:fs";
|
|
|
3
3
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
4
4
|
import { join as join2 } from "node:path";
|
|
5
5
|
|
|
6
|
+
// ../ta-protocol/esm/common/language.js
|
|
7
|
+
var TaLanguageUtil;
|
|
8
|
+
(function(TaLanguageUtil2) {
|
|
9
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
10
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
11
|
+
function of(tag) {
|
|
12
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
13
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
14
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
15
|
+
}
|
|
16
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
17
|
+
}
|
|
18
|
+
TaLanguageUtil2.of = of;
|
|
19
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
20
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
21
|
+
}
|
|
22
|
+
TaLanguageUtil2.server = server;
|
|
23
|
+
function pick(language, words) {
|
|
24
|
+
return words[of(language)];
|
|
25
|
+
}
|
|
26
|
+
TaLanguageUtil2.pick = pick;
|
|
27
|
+
function say(words) {
|
|
28
|
+
return words[server()];
|
|
29
|
+
}
|
|
30
|
+
TaLanguageUtil2.say = say;
|
|
31
|
+
function chinese(language) {
|
|
32
|
+
return of(language).startsWith("zh");
|
|
33
|
+
}
|
|
34
|
+
TaLanguageUtil2.chinese = chinese;
|
|
35
|
+
function cjk(language) {
|
|
36
|
+
return of(language) !== "en-US";
|
|
37
|
+
}
|
|
38
|
+
TaLanguageUtil2.cjk = cjk;
|
|
39
|
+
function list(language, items) {
|
|
40
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
41
|
+
}
|
|
42
|
+
TaLanguageUtil2.list = list;
|
|
43
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
44
|
+
|
|
6
45
|
// ../ta-protocol/esm/common/ta-extension-host.js
|
|
7
46
|
var TA_HOST_EVENT = "ta:host";
|
|
8
47
|
var TaHostUtil;
|
|
@@ -118,46 +157,46 @@ var TaPermissionUtil;
|
|
|
118
157
|
}
|
|
119
158
|
TaPermissionUtil2.host = host;
|
|
120
159
|
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
121
|
-
var action = (id, en, zh, more = {}) => ({
|
|
160
|
+
var action = (id, en, zh, tw, ja, more = {}) => ({
|
|
122
161
|
id,
|
|
123
162
|
area: id.split(".")[0],
|
|
124
|
-
title: { en, "zh-CN": zh },
|
|
163
|
+
title: { en, "zh-CN": zh, ...tw ? { "zh-TW": tw } : {}, ...ja ? { "ja-JP": ja } : {} },
|
|
125
164
|
...more
|
|
126
165
|
});
|
|
127
166
|
var TA_ACTIONS = [
|
|
128
|
-
action("chat.view", "See conversations", "查看对话"),
|
|
129
|
-
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
130
|
-
action("chat.create", "Start conversations", "新建对话"),
|
|
131
|
-
action("chat.stop", "Stop a reply", "停止回复"),
|
|
132
|
-
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
133
|
-
action("chat.share", "Share by a link", "生成分享链接"),
|
|
134
|
-
action("agent.view", "See agents", "查看智能体"),
|
|
135
|
-
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
136
|
-
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
137
|
-
action("channel.view", "See channels", "查看频道"),
|
|
138
|
-
action("channel.post", "Post in channels", "在频道里发言"),
|
|
139
|
-
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
140
|
-
action("task.view", "See tasks", "查看任务"),
|
|
141
|
-
action("task.create", "Hand out tasks", "派任务"),
|
|
142
|
-
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
143
|
-
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
144
|
-
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
145
|
-
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
146
|
-
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
147
|
-
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
148
|
-
action("models.use", "Use the models", "使用模型"),
|
|
149
|
-
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
150
|
-
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
151
|
-
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
152
|
-
action("extensions.use", "Use extensions", "使用扩展"),
|
|
153
|
-
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
154
|
-
action("settings.view", "See settings", "查看设置"),
|
|
155
|
-
action("settings.manage", "Change settings", "修改设置"),
|
|
156
|
-
action("members.view", "See members", "查看成员"),
|
|
157
|
-
action("members.invite", "Invite people", "邀请别人"),
|
|
158
|
-
action("members.approve", "Answer requests", "处理申请"),
|
|
159
|
-
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
160
|
-
action("audit.view", "See the record", "查看记录")
|
|
167
|
+
action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
|
|
168
|
+
action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
|
|
169
|
+
action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
|
|
170
|
+
action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
|
|
171
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
|
|
172
|
+
action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
|
|
173
|
+
action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
|
|
174
|
+
action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
|
|
175
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
|
|
176
|
+
action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
|
|
177
|
+
action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
|
|
178
|
+
action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
|
|
179
|
+
action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
|
|
180
|
+
action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
|
|
181
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
|
|
182
|
+
action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
|
|
183
|
+
action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
|
|
184
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
|
|
185
|
+
action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
|
|
186
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
|
|
187
|
+
action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
|
|
188
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
|
|
189
|
+
action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
|
|
190
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
|
|
191
|
+
action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
|
|
192
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
|
|
193
|
+
action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
|
|
194
|
+
action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
|
|
195
|
+
action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
|
|
196
|
+
action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
|
|
197
|
+
action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
|
|
198
|
+
action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
|
|
199
|
+
action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
|
|
161
200
|
];
|
|
162
201
|
var TaActionUtil;
|
|
163
202
|
(function(TaActionUtil2) {
|
|
@@ -167,8 +206,18 @@ var TaActionUtil;
|
|
|
167
206
|
}
|
|
168
207
|
TaActionUtil2.info = info;
|
|
169
208
|
function title(id, language) {
|
|
170
|
-
|
|
171
|
-
|
|
209
|
+
var _a;
|
|
210
|
+
var _b, _c;
|
|
211
|
+
const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
|
|
212
|
+
if (!title2) {
|
|
213
|
+
return id;
|
|
214
|
+
}
|
|
215
|
+
return TaLanguageUtil.pick(language, {
|
|
216
|
+
"zh-CN": title2["zh-CN"],
|
|
217
|
+
"zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
|
|
218
|
+
"en-US": title2.en,
|
|
219
|
+
"ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
|
|
220
|
+
});
|
|
172
221
|
}
|
|
173
222
|
TaActionUtil2.title = title;
|
|
174
223
|
function inside(dir, path) {
|
|
@@ -336,14 +385,22 @@ var BriefUtil;
|
|
|
336
385
|
const flat = text.replace(/\s+/g, " ").trim();
|
|
337
386
|
return flat.length > chars ? `${flat.slice(0, chars)}…` : flat;
|
|
338
387
|
}
|
|
339
|
-
BriefUtil.HEADINGS = {
|
|
388
|
+
BriefUtil.HEADINGS = {
|
|
389
|
+
"zh-CN": ["做完了", "等你定", "下一步"],
|
|
390
|
+
"zh-TW": ["做完了", "等你定", "下一步"],
|
|
391
|
+
"en-US": ["Done", "Waiting for you", "Next"],
|
|
392
|
+
"ja-JP": ["完了", "あなたの判断待ち", "次のステップ"]
|
|
393
|
+
};
|
|
340
394
|
const PARTS = {
|
|
341
395
|
做完了: "done",
|
|
342
396
|
done: "done",
|
|
343
397
|
等你定: "waiting",
|
|
344
398
|
"waiting for you": "waiting",
|
|
345
399
|
下一步: "next",
|
|
346
|
-
next: "next"
|
|
400
|
+
next: "next",
|
|
401
|
+
完了: "done",
|
|
402
|
+
あなたの判断待ち: "waiting",
|
|
403
|
+
次のステップ: "next"
|
|
347
404
|
};
|
|
348
405
|
function summary(text, file, at) {
|
|
349
406
|
const counts = { done: 0, waiting: 0, next: 0 };
|
|
@@ -380,11 +437,23 @@ var BriefUtil;
|
|
|
380
437
|
return text.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/[*_`~]+/g, "").replace(/\s+/g, " ").trim().slice(0, 160);
|
|
381
438
|
}
|
|
382
439
|
BriefUtil.plain = plain;
|
|
383
|
-
function message(material2, since2,
|
|
384
|
-
const heads =
|
|
440
|
+
function message(material2, since2, language) {
|
|
441
|
+
const heads = BriefUtil.HEADINGS[language] || BriefUtil.HEADINGS["en-US"];
|
|
442
|
+
const langName = TaLanguageUtil.pick(language, {
|
|
443
|
+
"zh-CN": "Simplified Chinese",
|
|
444
|
+
"zh-TW": "Traditional Chinese",
|
|
445
|
+
"en-US": "English",
|
|
446
|
+
"ja-JP": "Japanese"
|
|
447
|
+
});
|
|
448
|
+
const prompt = TaLanguageUtil.pick(language, {
|
|
449
|
+
"zh-CN": "写今天的简报",
|
|
450
|
+
"zh-TW": "寫今天的簡報",
|
|
451
|
+
"en-US": "Write today's brief",
|
|
452
|
+
"ja-JP": "今日のブリーフを書く"
|
|
453
|
+
});
|
|
385
454
|
const context = [
|
|
386
455
|
"[ta-recall:brief]",
|
|
387
|
-
`Write the daily brief of the user from what happened since ${new Date(since2).toISOString()}, below, in ${
|
|
456
|
+
`Write the daily brief of the user from what happened since ${new Date(since2).toISOString()}, below, in ${langName}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
|
|
388
457
|
`- ### ${heads[0]}: what got done;`,
|
|
389
458
|
`- ### ${heads[1]}: what waits for a decision of the user, failed or was left half done, and what they should do, the most pressing first;`,
|
|
390
459
|
`- ### ${heads[2]}: two or three concrete next steps.`,
|
|
@@ -397,7 +466,7 @@ var BriefUtil;
|
|
|
397
466
|
return `<context>
|
|
398
467
|
${context}
|
|
399
468
|
</context>
|
|
400
|
-
${
|
|
469
|
+
${prompt}`;
|
|
401
470
|
}
|
|
402
471
|
BriefUtil.message = message;
|
|
403
472
|
})(BriefUtil ||= {});
|
|
@@ -681,7 +750,12 @@ ${draft.body.trim()}
|
|
|
681
750
|
"- Once it is made, say in one line where the user finds it."
|
|
682
751
|
].join(`
|
|
683
752
|
`);
|
|
684
|
-
const said =
|
|
753
|
+
const said = TaLanguageUtil.pick(language, {
|
|
754
|
+
"zh-CN": `做出来:${draft.title}`,
|
|
755
|
+
"zh-TW": `做出來:${draft.title}`,
|
|
756
|
+
"en-US": `Make it: ${draft.title}`,
|
|
757
|
+
"ja-JP": `作成:${draft.title}`
|
|
758
|
+
});
|
|
685
759
|
return `<context>
|
|
686
760
|
${context}
|
|
687
761
|
</context>
|
|
@@ -852,16 +926,22 @@ var SimilarUtil;
|
|
|
852
926
|
// web-src/server-texts.ts
|
|
853
927
|
var RecallServerTexts;
|
|
854
928
|
((RecallServerTexts) => {
|
|
855
|
-
function
|
|
856
|
-
return
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
929
|
+
function briefTitle(language = TaLanguageUtil.server()) {
|
|
930
|
+
return TaLanguageUtil.pick(language, {
|
|
931
|
+
"zh-CN": "每日简报",
|
|
932
|
+
"zh-TW": "每日簡報",
|
|
933
|
+
"en-US": "Daily brief",
|
|
934
|
+
"ja-JP": "毎日のブリーフ"
|
|
935
|
+
});
|
|
861
936
|
}
|
|
862
937
|
RecallServerTexts.briefTitle = briefTitle;
|
|
863
|
-
function notOpen() {
|
|
864
|
-
return
|
|
938
|
+
function notOpen(language = TaLanguageUtil.server()) {
|
|
939
|
+
return TaLanguageUtil.pick(language, {
|
|
940
|
+
"zh-CN": "这个对话没有打开,打开它再点一次",
|
|
941
|
+
"zh-TW": "這個對話沒有開啟,開啟它再點一次",
|
|
942
|
+
"en-US": "The conversation is not open: open it and tap again",
|
|
943
|
+
"ja-JP": "会話が開かれていません:開いてからもう一度タップしてください"
|
|
944
|
+
});
|
|
865
945
|
}
|
|
866
946
|
RecallServerTexts.notOpen = notOpen;
|
|
867
947
|
})(RecallServerTexts ||= {});
|
|
@@ -976,7 +1056,7 @@ class RecallHost {
|
|
|
976
1056
|
}
|
|
977
1057
|
const open = (await this.host.listSessions()).find((info) => info.piSessionId === session);
|
|
978
1058
|
if (!open) {
|
|
979
|
-
throw new Error(RecallServerTexts.notOpen());
|
|
1059
|
+
throw new Error(RecallServerTexts.notOpen(TaLanguageUtil.server()));
|
|
980
1060
|
}
|
|
981
1061
|
await this.host.prompt(open.sessionId, { clientMessageId: `ta-recall-make:${key}`, message, streamingBehavior: "followUp" });
|
|
982
1062
|
await this.decide(key, { made: true });
|
|
@@ -1058,8 +1138,9 @@ class RecallHost {
|
|
|
1058
1138
|
return;
|
|
1059
1139
|
}
|
|
1060
1140
|
const session = await this.briefSession(sessions, briefFile);
|
|
1141
|
+
const language = TaLanguageUtil.server();
|
|
1061
1142
|
await this.host.prompt(session.sessionId, {
|
|
1062
|
-
message: BriefUtil.message(material, since,
|
|
1143
|
+
message: BriefUtil.message(material, since, language),
|
|
1063
1144
|
clientMessageId: `ta-recall-brief:${now}`,
|
|
1064
1145
|
streamingBehavior: "followUp"
|
|
1065
1146
|
});
|
|
@@ -1080,7 +1161,7 @@ class RecallHost {
|
|
|
1080
1161
|
return this.host.openSession({ cwd: await this.host.sessionCwd(file) ?? cwd, sessionFile: file });
|
|
1081
1162
|
}
|
|
1082
1163
|
const created = await this.host.openSession({ cwd });
|
|
1083
|
-
await this.host.setSessionName(created.sessionId, RecallServerTexts.briefTitle());
|
|
1164
|
+
await this.host.setSessionName(created.sessionId, RecallServerTexts.briefTitle(TaLanguageUtil.server()));
|
|
1084
1165
|
return created;
|
|
1085
1166
|
}
|
|
1086
1167
|
async sources() {
|
|
@@ -1096,23 +1177,17 @@ class RecallHost {
|
|
|
1096
1177
|
return sources.filter((source) => !!source);
|
|
1097
1178
|
}
|
|
1098
1179
|
async notices() {
|
|
1099
|
-
const value = await this.
|
|
1100
|
-
return;
|
|
1101
|
-
});
|
|
1180
|
+
const value = await this.fromPackage(NOTIFY, "notices");
|
|
1102
1181
|
return Array.isArray(value) ? value.filter((notice) => !!notice && typeof notice.at === "number" && typeof notice.text === "string") : [];
|
|
1103
1182
|
}
|
|
1104
1183
|
async runs(since) {
|
|
1105
|
-
const tasks = await this.
|
|
1106
|
-
return;
|
|
1107
|
-
});
|
|
1184
|
+
const tasks = await this.fromPackage(CRON2, "list");
|
|
1108
1185
|
if (!Array.isArray(tasks)) {
|
|
1109
1186
|
return [];
|
|
1110
1187
|
}
|
|
1111
1188
|
const ran = tasks.filter((task) => task && typeof task.id === "string" && Date.parse(task.lastRunAt ?? "") >= since);
|
|
1112
1189
|
return Promise.all(ran.map(async (task) => {
|
|
1113
|
-
const runs = await this.
|
|
1114
|
-
return;
|
|
1115
|
-
});
|
|
1190
|
+
const runs = await this.fromPackage(CRON2, "runs", task.id, 1);
|
|
1116
1191
|
const run = Array.isArray(runs) ? runs[0] : undefined;
|
|
1117
1192
|
return {
|
|
1118
1193
|
name: String(task.name ?? task.id),
|
|
@@ -1123,9 +1198,7 @@ class RecallHost {
|
|
|
1123
1198
|
}));
|
|
1124
1199
|
}
|
|
1125
1200
|
async suggestions() {
|
|
1126
|
-
const value = await this.
|
|
1127
|
-
return;
|
|
1128
|
-
});
|
|
1201
|
+
const value = await this.fromPackage(INITIATIVE, "proposals");
|
|
1129
1202
|
return Array.isArray(value) ? value.filter((one) => !!one && typeof one.title === "string" && typeof one.state === "string" && typeof one.at === "number") : [];
|
|
1130
1203
|
}
|
|
1131
1204
|
async initiative(method, ...params) {
|
|
@@ -1153,6 +1226,11 @@ class RecallHost {
|
|
|
1153
1226
|
return;
|
|
1154
1227
|
});
|
|
1155
1228
|
}
|
|
1229
|
+
fromPackage(name, method, ...params) {
|
|
1230
|
+
return this.host.callPackageHost(name, method, params).catch(() => {
|
|
1231
|
+
return;
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1156
1234
|
serial(work) {
|
|
1157
1235
|
const next = this.queue.then(work, work);
|
|
1158
1236
|
this.queue = next.catch(() => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type BriefSettings, type BriefSummary, type Conversation } from './recall-protocol';
|
|
2
|
-
/** A notice of ta-notify, as its
|
|
3
|
+
/** A notice of ta-notify, as its host gives it (`notices`): only what a brief reads. */
|
|
3
4
|
export interface BriefNotice {
|
|
4
5
|
at: number;
|
|
5
6
|
level: string;
|
|
@@ -7,14 +8,14 @@ export interface BriefNotice {
|
|
|
7
8
|
title?: string;
|
|
8
9
|
sessionFile?: string;
|
|
9
10
|
}
|
|
10
|
-
/** A task of ta-cron and the summary of its last run, as
|
|
11
|
+
/** A task of ta-cron and the summary of its last run, as its host gives them (`list`, `runs`): only what a brief reads. */
|
|
11
12
|
export interface BriefRun {
|
|
12
13
|
name: string;
|
|
13
14
|
at: number;
|
|
14
15
|
status?: string;
|
|
15
16
|
summary?: string;
|
|
16
17
|
}
|
|
17
|
-
/** A proposal of ta-initiative, as its
|
|
18
|
+
/** A proposal of ta-initiative, as its host gives it (`proposals`): only what a brief reads. */
|
|
18
19
|
export interface BriefSuggestion {
|
|
19
20
|
title: string;
|
|
20
21
|
why?: string;
|
|
@@ -73,8 +74,10 @@ export declare namespace BriefUtil {
|
|
|
73
74
|
function source(name: string, value: unknown): BriefSource | undefined;
|
|
74
75
|
/** The headings of the parts of a brief, which the double's home counts the lines of (summary). */
|
|
75
76
|
const HEADINGS: {
|
|
76
|
-
readonly zh: readonly ['做完了', '等你定', '下一步'];
|
|
77
|
-
readonly
|
|
77
|
+
readonly 'zh-CN': readonly ['做完了', '等你定', '下一步'];
|
|
78
|
+
readonly 'zh-TW': readonly ['做完了', '等你定', '下一步'];
|
|
79
|
+
readonly 'en-US': readonly ['Done', 'Waiting for you', 'Next'];
|
|
80
|
+
readonly 'ja-JP': readonly ['完了', 'あなたの判断待ち', '次のステップ'];
|
|
78
81
|
};
|
|
79
82
|
/**
|
|
80
83
|
* How many lines each part of a brief has, and the first that wait with the conversations they link; undefined
|
|
@@ -84,6 +87,6 @@ export declare namespace BriefUtil {
|
|
|
84
87
|
/** Markdown of a line as text: the words of links, without marks of emphasis and code. */
|
|
85
88
|
function plain(text: string): string;
|
|
86
89
|
/** The message that asks for the brief: what the model reads, then the line the user sees. */
|
|
87
|
-
function message(material: string, since: number,
|
|
90
|
+
function message(material: string, since: number, language: TaLanguage): string;
|
|
88
91
|
}
|
|
89
92
|
//# sourceMappingURL=brief-util.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BriefUtil = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const recall_protocol_1 = require("./recall-protocol");
|
|
5
6
|
const DAY_MS = 24 * 60 * 60000;
|
|
6
7
|
const ASKS = 3;
|
|
@@ -135,7 +136,12 @@ var BriefUtil;
|
|
|
135
136
|
return flat.length > chars ? `${flat.slice(0, chars)}…` : flat;
|
|
136
137
|
}
|
|
137
138
|
/** The headings of the parts of a brief, which the double's home counts the lines of (summary). */
|
|
138
|
-
BriefUtil.HEADINGS = {
|
|
139
|
+
BriefUtil.HEADINGS = {
|
|
140
|
+
'zh-CN': ['做完了', '等你定', '下一步'],
|
|
141
|
+
'zh-TW': ['做完了', '等你定', '下一步'],
|
|
142
|
+
'en-US': ['Done', 'Waiting for you', 'Next'],
|
|
143
|
+
'ja-JP': ['完了', 'あなたの判断待ち', '次のステップ'],
|
|
144
|
+
};
|
|
139
145
|
const PARTS = {
|
|
140
146
|
做完了: 'done',
|
|
141
147
|
done: 'done',
|
|
@@ -143,6 +149,9 @@ var BriefUtil;
|
|
|
143
149
|
'waiting for you': 'waiting',
|
|
144
150
|
下一步: 'next',
|
|
145
151
|
next: 'next',
|
|
152
|
+
完了: 'done',
|
|
153
|
+
あなたの判断待ち: 'waiting',
|
|
154
|
+
次のステップ: 'next',
|
|
146
155
|
};
|
|
147
156
|
/**
|
|
148
157
|
* How many lines each part of a brief has, and the first that wait with the conversations they link; undefined
|
|
@@ -196,11 +205,23 @@ var BriefUtil;
|
|
|
196
205
|
}
|
|
197
206
|
BriefUtil.plain = plain;
|
|
198
207
|
/** The message that asks for the brief: what the model reads, then the line the user sees. */
|
|
199
|
-
function message(material, since,
|
|
200
|
-
const heads =
|
|
208
|
+
function message(material, since, language) {
|
|
209
|
+
const heads = BriefUtil.HEADINGS[language] || BriefUtil.HEADINGS['en-US'];
|
|
210
|
+
const langName = language_1.TaLanguageUtil.pick(language, {
|
|
211
|
+
'zh-CN': 'Simplified Chinese',
|
|
212
|
+
'zh-TW': 'Traditional Chinese',
|
|
213
|
+
'en-US': 'English',
|
|
214
|
+
'ja-JP': 'Japanese',
|
|
215
|
+
});
|
|
216
|
+
const prompt = language_1.TaLanguageUtil.pick(language, {
|
|
217
|
+
'zh-CN': '写今天的简报',
|
|
218
|
+
'zh-TW': '寫今天的簡報',
|
|
219
|
+
'en-US': "Write today's brief",
|
|
220
|
+
'ja-JP': '今日のブリーフを書く',
|
|
221
|
+
});
|
|
201
222
|
const context = [
|
|
202
223
|
'[ta-recall:brief]',
|
|
203
|
-
`Write the daily brief of the user from what happened since ${new Date(since).toISOString()}, below, in ${
|
|
224
|
+
`Write the daily brief of the user from what happened since ${new Date(since).toISOString()}, below, in ${langName}. Short, for a phone: up to three parts, each a heading of level 3 with exactly these words, then a list of one line each (Ta counts them),`,
|
|
204
225
|
`- ### ${heads[0]}: what got done;`,
|
|
205
226
|
`- ### ${heads[1]}: what waits for a decision of the user, failed or was left half done, and what they should do, the most pressing first;`,
|
|
206
227
|
`- ### ${heads[2]}: two or three concrete next steps.`,
|
|
@@ -209,7 +230,7 @@ var BriefUtil;
|
|
|
209
230
|
'',
|
|
210
231
|
material,
|
|
211
232
|
].join('\n');
|
|
212
|
-
return `<context>\n${context}\n</context>\n${
|
|
233
|
+
return `<context>\n${context}\n</context>\n${prompt}`;
|
|
213
234
|
}
|
|
214
235
|
BriefUtil.message = message;
|
|
215
236
|
})(BriefUtil || (exports.BriefUtil = BriefUtil = {}));
|