@celljs/ta 4.14.0 → 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 +29 -4
- package/dist/gateway.mjs +156 -46
- package/dist/pi/CHANGELOG.md +6 -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 +7 -3
- package/dist/pi/packages/ta-bots/extension/index.mjs +81 -10
- package/dist/pi/packages/ta-bots/host/index.mjs +132 -49
- 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 +7 -3
- package/dist/pi/packages/ta-bots/web/index.js +203 -1
- package/dist/pi/packages/ta-changes/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-changes/lib/i18n.js +51 -2
- package/dist/pi/packages/ta-changes/package.json +7 -3
- package/dist/pi/packages/ta-changes/web/index.js +87 -1
- package/dist/pi/packages/ta-channels/extension/index.mjs +78 -13
- package/dist/pi/packages/ta-channels/host/index.mjs +121 -56
- package/dist/pi/packages/ta-channels/lib/agent-cards.d.ts +2 -1
- package/dist/pi/packages/ta-channels/lib/agent-cards.js +4 -3
- package/dist/pi/packages/ta-channels/lib/handoff.d.ts +5 -4
- package/dist/pi/packages/ta-channels/lib/handoff.js +22 -6
- package/dist/pi/packages/ta-channels/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-channels/lib/i18n.js +361 -2
- package/dist/pi/packages/ta-channels/lib/team-ask.d.ts +2 -1
- package/dist/pi/packages/ta-channels/lib/team-ask.js +19 -7
- package/dist/pi/packages/ta-channels/lib/team.d.ts +2 -2
- package/dist/pi/packages/ta-channels/lib/team.js +1 -1
- package/dist/pi/packages/ta-channels/package.json +7 -3
- package/dist/pi/packages/ta-channels/web/index.js +482 -47
- package/dist/pi/packages/ta-computer-use/extension/index.mjs +11 -1
- package/dist/pi/packages/ta-computer-use/lib/cua-driver-access.js +20 -2
- package/dist/pi/packages/ta-computer-use/package.json +7 -3
- package/dist/pi/packages/ta-cron/extension/index.mjs +82 -8
- package/dist/pi/packages/ta-cron/host/index.mjs +67 -3
- package/dist/pi/packages/ta-cron/lib/editor.js +1 -1
- package/dist/pi/packages/ta-cron/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-cron/lib/i18n.js +217 -2
- package/dist/pi/packages/ta-cron/lib/page.js +14 -4
- package/dist/pi/packages/ta-cron/lib/schedule-util.js +29 -3
- package/dist/pi/packages/ta-cron/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-cron/lib/server-texts.js +16 -9
- package/dist/pi/packages/ta-cron/package.json +7 -3
- package/dist/pi/packages/ta-cron/web/index.js +294 -10
- package/dist/pi/packages/ta-extensions/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-extensions/lib/i18n.js +240 -2
- package/dist/pi/packages/ta-extensions/package.json +7 -3
- package/dist/pi/packages/ta-extensions/skills/ta-package/SKILL.md +1 -0
- package/dist/pi/packages/ta-extensions/web/index.js +329 -42
- package/dist/pi/packages/ta-games/README.en.md +1 -1
- package/dist/pi/packages/ta-games/README.md +1 -1
- package/dist/pi/packages/ta-games/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-games/lib/i18n.js +61 -2
- package/dist/pi/packages/ta-games/package.json +7 -3
- package/dist/pi/packages/ta-games/skills/ta-game/SKILL.md +41 -3
- package/dist/pi/packages/ta-games/web/index.js +97 -1
- package/dist/pi/packages/ta-glance/extension/index.mjs +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 +7 -3
- package/dist/pi/packages/ta-glance/web/index.js +98 -14
- package/dist/pi/packages/ta-initiative/extension/index.mjs +89 -9
- package/dist/pi/packages/ta-initiative/host/index.mjs +120 -19
- package/dist/pi/packages/ta-initiative/lib/chat-kinds.js +15 -3
- package/dist/pi/packages/ta-initiative/lib/cron-proposals.js +20 -3
- package/dist/pi/packages/ta-initiative/lib/event-proposals.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/event-proposals.js +20 -6
- package/dist/pi/packages/ta-initiative/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-initiative/lib/i18n.js +151 -2
- package/dist/pi/packages/ta-initiative/lib/inbox.js +2 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.d.ts +13 -4
- package/dist/pi/packages/ta-initiative/lib/initiative-protocol.js +11 -1
- package/dist/pi/packages/ta-initiative/lib/initiative-service.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/material-util.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/material-util.js +9 -3
- package/dist/pi/packages/ta-initiative/lib/review-service.js +1 -1
- package/dist/pi/packages/ta-initiative/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-initiative/lib/server-texts.js +11 -4
- package/dist/pi/packages/ta-initiative/lib/settings.js +2 -3
- package/dist/pi/packages/ta-initiative/package.json +7 -3
- package/dist/pi/packages/ta-initiative/web/index.js +197 -5
- package/dist/pi/packages/ta-launcher/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-launcher/lib/i18n.js +71 -2
- package/dist/pi/packages/ta-launcher/package.json +7 -3
- package/dist/pi/packages/ta-launcher/web/index.js +107 -1
- package/dist/pi/packages/ta-manual/README.en.md +1 -1
- package/dist/pi/packages/ta-manual/README.md +1 -1
- package/dist/pi/packages/ta-manual/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-manual/lib/i18n.js +21 -2
- package/dist/pi/packages/ta-manual/lib/manual-util.js +2 -1
- package/dist/pi/packages/ta-manual/lib/pictures-c.js +30 -0
- package/dist/pi/packages/ta-manual/lib/topics.d.ts +4 -0
- package/dist/pi/packages/ta-manual/lib/topics.js +188 -71
- package/dist/pi/packages/ta-manual/package.json +7 -3
- package/dist/pi/packages/ta-manual/skills/ta-manual/SKILL.md +9 -0
- package/dist/pi/packages/ta-manual/web/index.js +405 -119
- package/dist/pi/packages/ta-moments/extension/index.mjs +242 -102
- package/dist/pi/packages/ta-moments/host/index.mjs +268 -115
- package/dist/pi/packages/ta-moments/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-moments/lib/i18n.js +170 -3
- package/dist/pi/packages/ta-moments/lib/moments-host.js +24 -11
- package/dist/pi/packages/ta-moments/lib/page.js +4 -2
- package/dist/pi/packages/ta-moments/lib/server-texts.d.ts +10 -12
- package/dist/pi/packages/ta-moments/lib/server-texts.js +128 -62
- package/dist/pi/packages/ta-moments/lib/talk-host.js +29 -8
- package/dist/pi/packages/ta-moments/package.json +7 -3
- package/dist/pi/packages/ta-moments/web/index.js +260 -43
- package/dist/pi/packages/ta-nearby/extension/index.mjs +229 -32
- package/dist/pi/packages/ta-nearby/host/index.mjs +248 -35
- package/dist/pi/packages/ta-nearby/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-nearby/lib/i18n.js +173 -2
- package/dist/pi/packages/ta-nearby/lib/nearby-service.d.ts +2 -4
- package/dist/pi/packages/ta-nearby/lib/nearby-service.js +21 -3
- package/dist/pi/packages/ta-nearby/lib/page.js +5 -4
- package/dist/pi/packages/ta-nearby/lib/server-texts.d.ts +5 -13
- package/dist/pi/packages/ta-nearby/lib/server-texts.js +194 -42
- package/dist/pi/packages/ta-nearby/package.json +7 -3
- package/dist/pi/packages/ta-nearby/web/index.js +213 -5
- package/dist/pi/packages/ta-notify/extension/index.mjs +54 -5
- package/dist/pi/packages/ta-notify/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-notify/lib/i18n.js +53 -2
- package/dist/pi/packages/ta-notify/lib/server-texts.d.ts +2 -1
- package/dist/pi/packages/ta-notify/lib/server-texts.js +16 -5
- package/dist/pi/packages/ta-notify/package.json +7 -3
- package/dist/pi/packages/ta-notify/web/index.js +89 -1
- package/dist/pi/packages/ta-recall/extension/index.mjs +52 -2
- package/dist/pi/packages/ta-recall/host/index.mjs +136 -55
- package/dist/pi/packages/ta-recall/lib/brief-util.d.ts +6 -3
- package/dist/pi/packages/ta-recall/lib/brief-util.js +26 -5
- package/dist/pi/packages/ta-recall/lib/extension-util.d.ts +2 -1
- package/dist/pi/packages/ta-recall/lib/extension-util.js +7 -1
- package/dist/pi/packages/ta-recall/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-recall/lib/i18n.js +89 -2
- package/dist/pi/packages/ta-recall/lib/keep-util.d.ts +2 -1
- package/dist/pi/packages/ta-recall/lib/keep-util.js +8 -1
- package/dist/pi/packages/ta-recall/lib/recall-service.js +5 -3
- package/dist/pi/packages/ta-recall/lib/server-texts.d.ts +2 -3
- package/dist/pi/packages/ta-recall/lib/server-texts.js +15 -8
- package/dist/pi/packages/ta-recall/package.json +7 -3
- package/dist/pi/packages/ta-recall/web/index.js +164 -9
- package/dist/pi/packages/ta-rooms/extension/index.mjs +60 -3
- package/dist/pi/packages/ta-rooms/host/index.mjs +284 -37
- package/dist/pi/packages/ta-rooms/lib/dialogs.js +2 -1
- package/dist/pi/packages/ta-rooms/lib/double-agents.js +31 -7
- package/dist/pi/packages/ta-rooms/lib/double-grants.js +57 -13
- package/dist/pi/packages/ta-rooms/lib/double-host.js +31 -5
- package/dist/pi/packages/ta-rooms/lib/double-i18n.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/double-i18n.js +201 -2
- package/dist/pi/packages/ta-rooms/lib/double-tasks.d.ts +2 -1
- package/dist/pi/packages/ta-rooms/lib/double-tasks.js +93 -21
- package/dist/pi/packages/ta-rooms/lib/double-user.js +1 -1
- package/dist/pi/packages/ta-rooms/lib/double-util.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/double-util.js +22 -3
- package/dist/pi/packages/ta-rooms/lib/doubles-store.js +2 -1
- package/dist/pi/packages/ta-rooms/lib/friend-notices.js +27 -8
- package/dist/pi/packages/ta-rooms/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-rooms/lib/i18n.js +243 -2
- package/dist/pi/packages/ta-rooms/package.json +7 -3
- package/dist/pi/packages/ta-rooms/web/index.js +479 -4
- 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 +7 -3
- 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 +173 -2
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.d.ts +3 -0
- package/dist/pi/packages/ta-sync/lib/migrate-i18n.js +183 -2
- package/dist/pi/packages/ta-sync/lib/server-texts.d.ts +0 -1
- package/dist/pi/packages/ta-sync/lib/server-texts.js +132 -35
- package/dist/pi/packages/ta-sync/package.json +7 -3
- package/dist/pi/packages/ta-sync/web/index.js +389 -2
- package/dist/pi/packages/ta-sync-cloud/host/index.mjs +52 -23
- package/dist/pi/packages/ta-sync-cloud/lib/host.js +49 -20
- package/dist/pi/packages/ta-sync-cloud/package.json +7 -3
- package/dist/pi/packages/ta-team/README.en.md +1 -1
- package/dist/pi/packages/ta-team/README.md +1 -1
- package/dist/pi/packages/ta-team/extension/index.mjs +86 -37
- package/dist/pi/packages/ta-team/host/index.mjs +130 -43
- package/dist/pi/packages/ta-team/lib/dialogs.js +62 -6
- package/dist/pi/packages/ta-team/lib/i18n.d.ts +7 -1
- package/dist/pi/packages/ta-team/lib/i18n.js +431 -8
- package/dist/pi/packages/ta-team/lib/member-dialog.js +30 -25
- package/dist/pi/packages/ta-team/lib/page.js +5 -1
- package/dist/pi/packages/ta-team/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-team/lib/style.js +11 -4
- package/dist/pi/packages/ta-team/lib/team-invites.d.ts +14 -8
- package/dist/pi/packages/ta-team/lib/team-invites.js +38 -6
- package/dist/pi/packages/ta-team/package.json +7 -3
- package/dist/pi/packages/ta-team/web/index.js +677 -96
- package/dist/pi/packages/ta-workspace/lib/i18n.d.ts +3 -0
- package/dist/pi/packages/ta-workspace/lib/i18n.js +417 -1
- package/dist/pi/packages/ta-workspace/package.json +7 -3
- package/dist/pi/packages/ta-workspace/web/index.js +504 -40
- package/dist/public/assets/GLTFLoader-C8PT6dAj.js +1 -0
- package/dist/public/assets/SkeletonUtils-BBAzQdty.js +1 -0
- package/dist/public/assets/{abnfDiagram-S7VZAUFO-DMceNIR5.js → abnfDiagram-S7VZAUFO-sclOP11q.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-5AdYeEv8.js → architecture-WOLXFQ4H-Bitg4Dpy.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-CqkJHg0A.js → architectureDiagram-YGSQEFNW-Hc0W5khF.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BtuHdIjQ.js → blockDiagram-APKKGZFW-D2ZWatLV.js} +1 -1
- package/dist/public/assets/{browser-Ds5TwWWr.js → browser-D-etIMuL.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-eebbjTgZ.js → c4Diagram-KJ2TOQU5-CWEcyfwV.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-BjMKSfTf.js → chunk-6MUBBAK2-CWbrJHxK.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-BElluw_7.js → chunk-AXFCVDMN-DJQdD4iX.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CUDwpWNL.js → chunk-BG4553SI-CYiiJcBj.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-B-92o8Uj.js → chunk-DQASFODM-NrNC1UeX.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-pveEMcXK.js → chunk-HFQBQIA3-BIHXOwS2.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-m7DKNjYW.js → chunk-KQLB2F66-CcU_AFwQ.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CnSSETdj.js → chunk-KS47KZWR-DGfNbbcL.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Ds7OnJrC.js → chunk-LEVMRMFU-B4PSS_Pp.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-PJSYCuUh.js → chunk-M57EVK23-1555_mm4.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-C3ygRwSC.js → chunk-OY52VR5R-zbNEbYJ8.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DcFtmZh7.js → chunk-QB3YPZ4I-C-nNDGuN.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-B4BOidE6.js → chunk-R3KSYZAL-DcXXuhbl.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DcXfwN7k.js → chunk-STOXU5M4-Bb77QkUj.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-B-rpQQxX.js → chunk-TU62E6Q5-D8IJkNq5.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BBtlFSw1.js → chunk-X4PVCEUW-BzejexgB.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Do8BIocv.js → chunk-XXDRQBXY-D2GPHyll.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-bhGAODMS.js → classDiagram-v2-L25IHNXF-CUEzxxI8.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-B7Qv6Hv_.js → cose-bilkent-JH36ORCC-CJdgJyUw.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-DBnkPRHn.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BX-R5Z6L.js → cynefinDiagram-L36ESFBY-D0F_9jN8.js} +1 -1
- package/dist/public/assets/{d3-selection-D3xgEEla.js → d3-selection-BoARy1rP.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-MfJ9yO0v.js → dagre-SPEB5RXH-CzI5gZOv.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DxFRc2vC.js → diagram-3B7GL73J-BCtNcE7M.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BcBwOLbM.js → diagram-DNEMPZML-DV9U4KeH.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN--Rw-isPI.js → diagram-L3MUGCDN-DHU45Sd4.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DXkY85UN.js → diagram-LA4NIPWU-Ba5oVP56.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-CbNmfAid.js → diagram-MHCOC4E2-B1Nk6qet.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-D1nGQjzf.js → diagram-XPFHEONP-DFwA3q09.js} +1 -1
- package/dist/public/assets/{dist-B1JMTrET.js → dist-Col1xVDT.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-DGXbVfke.js → ebnfDiagram-UZSYDL2S-BuBgxBJ2.js} +1 -1
- package/dist/public/assets/{editor.api-e3yQoo1r.js → editor.api-BLlyFz5x.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-pA-iT6fg.js → elk-XV6XMXQE-BPEI--zX.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BpgBun7y.js → erDiagram-EYBAPDEH-Cci0kYUw.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CVfyCcul.js → eventmodeling-K75KTNOO-B0eT5X1_.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-CmMdmAxj.js +1 -0
- package/dist/public/assets/{freemarker2-dYGec-fT.js → freemarker2-CAZGFA3W.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DjLTTWwA.js → ganttDiagram-23REXITY-DEm85e1I.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-DKo3OVhR.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-D9m7IVyJ.js → gitGraphDiagram-STJD7YCW-DJAZD2LR.js} +1 -1
- package/dist/public/assets/{handlebars-Bxerz7ci.js → handlebars-Agkl4nGr.js} +1 -1
- package/dist/public/assets/{html-DlVnGsdp.js → html-Cu-CsqZI.js} +1 -1
- package/dist/public/assets/{index-CZmGe9gc.js → index-TeLHaE4u.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-tKl26QqM.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DoYdhkAy.js → infoDiagram-KBXO4MBG-4zHsBnIy.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bc0GAInW.js → ishikawaDiagram-M35NCXHK-Bg8OYLGr.js} +1 -1
- package/dist/public/assets/ja-BHBiml1x.js +12 -0
- package/dist/public/assets/{javascript-DZrowo_I.js → javascript-BdMDRX8l.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BM7Dwstu.js → journeyDiagram-OPLOXDXO-B2xtzmpE.js} +1 -1
- package/dist/public/assets/{jsonMode-Bs30wPr5.js → jsonMode-Dg92qQvX.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CO-Crrdu.js → kanban-definition-BZKZHSQY-DQ4N7t_w.js} +1 -1
- package/dist/public/assets/{liquid-dLz9d3ax.js → liquid-BydEnYkh.js} +1 -1
- package/dist/public/assets/{mdx-DO0x92Kn.js → mdx-XZXeM7ll.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BXwArNvw.js → mermaid-parser.core-H24--uw9.js} +3 -3
- package/dist/public/assets/{mermaid.core-C6mppfDC.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-vcQ2EU4T.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/{monaco-J_Pr5zjk.js → monaco-DP8M_Ttp.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-CnBx3hR7.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DPDrbtS2.js → pegDiagram-FD4XPPHP-CXKRGFUs.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-hogxgeR2.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DXuaepGJ.js → pieDiagram-J4AKIIQI-9XEDP1wR.js} +1 -1
- package/dist/public/assets/{python-nnmIOv4s.js → python-C-0PA82u.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BuD_-coZ.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-CkCl68xY.js → railroad-abnf-LNEFI6M7-CTft_ST0.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DO3GiRv6.js → railroad-ebnf-DWYD2UWJ-DfRJhL7G.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DZBsKy4P.js → railroad-peg-JR7BVNR7-DFePx4YD.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BeLq7Mqp.js → railroadDiagram-MRQ6NCDL-BmK1KUsT.js} +1 -1
- package/dist/public/assets/{razor-l2rRITgB.js → razor-DEKNSiT7.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BBizkrON.js → requirementDiagram-Y7LWUY3S-Ds27pS9Y.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-tyo-p7oc.js → sankeyDiagram-WGJFYUXA-e2OTzBma.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BSGPbeJX.js → sequenceDiagram-5NDRBG5M-BcoIpxF6.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js → stateDiagram-v2-FJ4FJNEA-CNr67mC9.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BJfgQyQo.js → swimlanes-UMQ2AFYF-DKPgHCev.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-U0uzjboz.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-Ch8aQwF6.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-LasX-M7S.js → typescript-B1Uk3m6A.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BzlSB4R4.js → usecaseDiagram-AFA6YXN4-BpCD8dP7.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-4xaWLrMk.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-C-iK1p-O.js → wardleyDiagram-S7YFUSEH-D7gYo9fV.js} +1 -1
- package/dist/public/assets/{xml-CGhYQUqn.js → xml-DBh_LekU.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-CFsnisdM.js → xychartDiagram-GGNKY7IX-B_1aOZKU.js} +1 -1
- package/dist/public/assets/{yaml-BcOaPfuH.js → yaml-BE55tHva.js} +1 -1
- package/dist/public/assets/zh-tw-7q-tizR0.js +12 -0
- package/dist/public/index.html +1 -1
- package/dist/serve/index.mjs +814 -160
- package/package.json +37 -37
- package/dist/public/assets/cynefin-EF2NZ3EQ-Dfu5k3iG.js +0 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-BHlXeeVG.js +0 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-CFVSDv3q.js +0 -1
- package/dist/public/assets/info-OHQRW6UA-C_Db4yjo.js +0 -1
- package/dist/public/assets/module-C0tELrcJ.js +0 -1
- package/dist/public/assets/module-CteT9pTP.js +0 -2405
- package/dist/public/assets/packet-JDAUHWVQ-Bw7hmDUU.js +0 -1
- package/dist/public/assets/pie-XZMESJXO-cb_eq1B6.js +0 -1
- package/dist/public/assets/radar-ABXABTNO-Dqy-xoY_.js +0 -1
- package/dist/public/assets/railroad-I3PHUGI6-CBPVCTd3.js +0 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-BWvcVkFg.js +0 -8
- package/dist/public/assets/treeView-D4JQ5SDB--XUqgqA6.js +0 -1
- package/dist/public/assets/treemap-SAJKECNS-CfrNtG7H.js +0 -1
- package/dist/public/assets/wardley-7MLQ67FV-BXBG-txR.js +0 -1
|
@@ -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() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type BriefSettings, type BriefSummary, type Conversation } from './recall-protocol';
|
|
2
3
|
/** A notice of ta-notify, as its host gives it (`notices`): only what a brief reads. */
|
|
3
4
|
export interface BriefNotice {
|
|
@@ -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 = {}));
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type ExtensionDraft, type ExtensionKind } from './recall-protocol';
|
|
2
3
|
/** An extension Ta offers: its fenced block, the draft checked, the package of steps, and what asks Ta to make the rest. */
|
|
3
4
|
export declare namespace ExtensionUtil {
|
|
@@ -16,6 +17,6 @@ export declare namespace ExtensionUtil {
|
|
|
16
17
|
/** The SKILL.md of an extension of steps: its frontmatter, the description quoted as YAML reads JSON strings. */
|
|
17
18
|
function skill(draft: ExtensionDraft): string;
|
|
18
19
|
/** What Make it of the card sends, for an extension that is not steps: a line the user sees, after what the model reads. */
|
|
19
|
-
function make(draft: ExtensionDraft, language:
|
|
20
|
+
function make(draft: ExtensionDraft, language: TaLanguage): string;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=extension-util.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExtensionUtil = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const block_util_1 = require("./block-util");
|
|
5
6
|
const recall_protocol_1 = require("./recall-protocol");
|
|
6
7
|
const FENCE = '```';
|
|
@@ -96,7 +97,12 @@ var ExtensionUtil;
|
|
|
96
97
|
'- Put it in extensions/ of the agent directory, as the skill says. Give it the title and summary above, in the language of the user and English.',
|
|
97
98
|
'- Once it is made, say in one line where the user finds it.',
|
|
98
99
|
].join('\n');
|
|
99
|
-
const said =
|
|
100
|
+
const said = language_1.TaLanguageUtil.pick(language, {
|
|
101
|
+
'zh-CN': `做出来:${draft.title}`,
|
|
102
|
+
'zh-TW': `做出來:${draft.title}`,
|
|
103
|
+
'en-US': `Make it: ${draft.title}`,
|
|
104
|
+
'ja-JP': `作成:${draft.title}`,
|
|
105
|
+
});
|
|
100
106
|
return `<context>\n${context}\n</context>\n${said}`;
|
|
101
107
|
}
|
|
102
108
|
ExtensionUtil.make = make;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
declare const en: {
|
|
2
3
|
settingsTitle: string;
|
|
3
4
|
briefLabel: string;
|
|
@@ -41,6 +42,8 @@ declare const en: {
|
|
|
41
42
|
failed: string;
|
|
42
43
|
};
|
|
43
44
|
export type Words = typeof en;
|
|
45
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
46
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
44
47
|
export declare namespace RecallWords {
|
|
45
48
|
function of(language: string): Words;
|
|
46
49
|
function format(text: string, values: Record<string, string>): string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RecallWords = void 0;
|
|
3
|
+
exports.RecallWords = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const en = {
|
|
5
6
|
settingsTitle: 'Recall',
|
|
6
7
|
briefLabel: 'Daily brief',
|
|
@@ -43,6 +44,48 @@ const en = {
|
|
|
43
44
|
toolExtension: 'Offer to keep',
|
|
44
45
|
failed: 'Could not do it: {message}',
|
|
45
46
|
};
|
|
47
|
+
const ja = {
|
|
48
|
+
settingsTitle: '振り返り',
|
|
49
|
+
briefLabel: '毎日のブリーフ',
|
|
50
|
+
briefHint: '毎日この時間に、何かが起きると、Ta は「毎日のブリーフ」会話に何が完了したか、何があなたを待っているか、次は何かを書きます。',
|
|
51
|
+
briefTime: 'ブリーフの時刻',
|
|
52
|
+
briefNow: '今書く',
|
|
53
|
+
briefNowButton: '書く',
|
|
54
|
+
briefNothing: '前回のブリーフ以降何も起きていません。',
|
|
55
|
+
suggestLabel: '保存を提案',
|
|
56
|
+
suggestHint: 'ほかの会話で求めたことをもう一度求めると、Ta はそれを行う方法を覚えているか、カードまたはページまたはコマンドを作成することを提案します。',
|
|
57
|
+
keep: '保存',
|
|
58
|
+
keepDetail: 'Ta が選択:ステップを覚えているか、カード、ページまたはコマンドを作成するか、スケジュールで実行',
|
|
59
|
+
askSteps: 'これを行う方法を覚えていますか?',
|
|
60
|
+
askBoard: 'ボードのカードを作成しますか?',
|
|
61
|
+
askPage: 'ページを作成しますか?',
|
|
62
|
+
askCommand: 'コマンドを作成しますか?',
|
|
63
|
+
askPanel: '会話の隣のツールを作成しますか?',
|
|
64
|
+
showSteps: 'ステップを表示',
|
|
65
|
+
hideSteps: 'ステップを非表示',
|
|
66
|
+
showPlan: 'プランを表示',
|
|
67
|
+
hidePlan: 'プランを非表示',
|
|
68
|
+
keepSteps: '覚えています',
|
|
69
|
+
keepMake: 'それを作成',
|
|
70
|
+
keepNo: 'ありがとうございません',
|
|
71
|
+
keptSteps: '{title} として記憶:新しい会話はこの方法で行うか、/skill:{name} を入力します。拡張機能の下にあります。',
|
|
72
|
+
keptMade: 'Ta はこの会話で {title} を作成しています。',
|
|
73
|
+
keptDeclined: '保存されていません。Ta は同様の提供をもう一度しません。',
|
|
74
|
+
searchTitle: 'Ta に問い合わせ',
|
|
75
|
+
searchAsk: 'Ta に問い合わせ:{query}',
|
|
76
|
+
searchAskDetail: 'Ta はあなたの会話と回答を調べて、どこで見つけたかを示します',
|
|
77
|
+
briefCounts: '{done} 完了 · {waiting} あなたを待っています',
|
|
78
|
+
briefCountsDone: '{done} 完了',
|
|
79
|
+
briefCardEmpty: '最初のブリーフは {time} に来ます',
|
|
80
|
+
briefNoneWaiting: 'あなたを待っているものはありません',
|
|
81
|
+
briefTick: '処理済みとしてマーク',
|
|
82
|
+
briefUntick: '未処理としてマーク',
|
|
83
|
+
briefMore: 'ブリーフにはあと {count} 個',
|
|
84
|
+
briefToday: '今日',
|
|
85
|
+
toolSearch: '会話を検索',
|
|
86
|
+
toolExtension: '保存を提案',
|
|
87
|
+
failed: 'それはできませんでした:{message}',
|
|
88
|
+
};
|
|
46
89
|
const zh = {
|
|
47
90
|
settingsTitle: '回顾',
|
|
48
91
|
briefLabel: '每日简报',
|
|
@@ -85,10 +128,54 @@ const zh = {
|
|
|
85
128
|
toolExtension: '提议存下来',
|
|
86
129
|
failed: '没有做成:{message}',
|
|
87
130
|
};
|
|
131
|
+
const zhTw = {
|
|
132
|
+
settingsTitle: '回顧',
|
|
133
|
+
briefLabel: '每日簡報',
|
|
134
|
+
briefHint: '每天這個時間,只要有新動靜,Ta 就把做完的、等你定的和下一步寫進「每日簡報」對話。',
|
|
135
|
+
briefTime: '簡報時間',
|
|
136
|
+
briefNow: '現在寫一份',
|
|
137
|
+
briefNowButton: '生成',
|
|
138
|
+
briefNothing: '上次簡報以來沒有新的動靜。',
|
|
139
|
+
suggestLabel: '建議存下來',
|
|
140
|
+
suggestHint: '在別的對話裡交代過的事又交代一次時,Ta 會問要不要記住這套做法,或做成卡片、頁面、命令。',
|
|
141
|
+
keep: '存下來',
|
|
142
|
+
keepDetail: 'Ta 判斷:記住步驟,做成卡片、頁面、命令,或定時自動做',
|
|
143
|
+
askSteps: '記住這套做法?',
|
|
144
|
+
askBoard: '做成小元件卡片?',
|
|
145
|
+
askPage: '做成一個頁面?',
|
|
146
|
+
askCommand: '做成一個命令?',
|
|
147
|
+
askPanel: '做成對話旁的工具?',
|
|
148
|
+
showSteps: '檢視步驟',
|
|
149
|
+
hideSteps: '收起步驟',
|
|
150
|
+
showPlan: '檢視做法',
|
|
151
|
+
hidePlan: '收起做法',
|
|
152
|
+
keepSteps: '記住',
|
|
153
|
+
keepMake: '做出來',
|
|
154
|
+
keepNo: '不用',
|
|
155
|
+
keptSteps: '已記住「{title}」:新對話會照著做,也可以輸入 /skill:{name};在擴充功能頁能找到它。',
|
|
156
|
+
keptMade: 'Ta 正在這個對話裡做「{title}」。',
|
|
157
|
+
keptDeclined: '沒有儲存,類似的事不會再問。',
|
|
158
|
+
searchTitle: '問 Ta',
|
|
159
|
+
searchAsk: '問 Ta:{query}',
|
|
160
|
+
searchAskDetail: 'Ta 翻一遍你的對話再回答,並給出出處',
|
|
161
|
+
briefCounts: '做完 {done} · 等你定 {waiting}',
|
|
162
|
+
briefCountsDone: '做完 {done}',
|
|
163
|
+
briefCardEmpty: '每天 {time} 寫第一份簡報',
|
|
164
|
+
briefNoneWaiting: '沒有等你定的事',
|
|
165
|
+
briefTick: '標為已處理',
|
|
166
|
+
briefUntick: '標為未處理',
|
|
167
|
+
briefMore: '簡報裡還有 {count} 項',
|
|
168
|
+
briefToday: '今天',
|
|
169
|
+
toolSearch: '搜尋對話',
|
|
170
|
+
toolExtension: '提議存下來',
|
|
171
|
+
failed: '沒有做成:{message}',
|
|
172
|
+
};
|
|
173
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
174
|
+
exports.WORDS = { 'zh-CN': zh, 'zh-TW': zhTw, 'en-US': en, 'ja-JP': ja };
|
|
88
175
|
var RecallWords;
|
|
89
176
|
(function (RecallWords) {
|
|
90
177
|
function of(language) {
|
|
91
|
-
return
|
|
178
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
92
179
|
}
|
|
93
180
|
RecallWords.of = of;
|
|
94
181
|
function format(text, values) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type SimilarAsk } from './recall-protocol';
|
|
2
3
|
/**
|
|
3
4
|
* Keeping how work got done, so that it need not be told again: an extension of Ta of the kind that fits (steps Ta
|
|
@@ -8,7 +9,7 @@ export declare namespace KeepUtil {
|
|
|
8
9
|
/** How to offer it, for the model; the scheduled task as the section of ta-cron says, when it is there. */
|
|
9
10
|
function forms(): string;
|
|
10
11
|
/** What Keep of the + of the message box sends: a line the user sees, after what the model reads. */
|
|
11
|
-
function ask(language:
|
|
12
|
+
function ask(language: TaLanguage): string;
|
|
12
13
|
/** The section `<ta-recall-repeat>` of the system prompt of a turn whose request the user made before in other conversations. */
|
|
13
14
|
function hint(asks: readonly SimilarAsk[]): string;
|
|
14
15
|
}
|