@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,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.EventProposals = exports.EVENT_KINDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
6
|
/** The kinds the host proposes from what happens in the sessions (TaExtensionHost.onSessionEvent). */
|
|
6
7
|
exports.EVENT_KINDS = [
|
|
7
8
|
{
|
|
8
9
|
id: 'chat.fix-failure',
|
|
9
10
|
owner: initiative_protocol_1.NAME,
|
|
10
|
-
title: {
|
|
11
|
+
title: {
|
|
12
|
+
en: 'Look into a turn that failed and try again',
|
|
13
|
+
zh: '排查失败的这一轮并重试',
|
|
14
|
+
tw: '排查失敗的這一輪並重試',
|
|
15
|
+
ja: '失敗したターンを調査して再試行',
|
|
16
|
+
},
|
|
11
17
|
// What it sends cannot be taken back: asked at most.
|
|
12
18
|
reversible: false,
|
|
13
19
|
level: 'ask',
|
|
@@ -43,14 +49,19 @@ var EventProposals;
|
|
|
43
49
|
}
|
|
44
50
|
EventProposals.key = key;
|
|
45
51
|
/** A turn that failed in a conversation of the user (not one a package opened for a role of its own): to look into and try again. */
|
|
46
|
-
function failed(event,
|
|
52
|
+
function failed(event, language) {
|
|
47
53
|
if (event.type !== 'turn_end' || !event.error || event.group || !event.sessionFile) {
|
|
48
54
|
return undefined;
|
|
49
55
|
}
|
|
50
56
|
const error = readable(event.error);
|
|
51
57
|
return {
|
|
52
58
|
kind: 'chat.fix-failure',
|
|
53
|
-
title:
|
|
59
|
+
title: language_1.TaLanguageUtil.pick(language, {
|
|
60
|
+
'zh-CN': '排查失败的原因并重试',
|
|
61
|
+
'zh-TW': '排查失敗的原因並重試',
|
|
62
|
+
'en-US': 'Find out why it failed and try again',
|
|
63
|
+
'ja-JP': '失敗した理由を調査して再試行',
|
|
64
|
+
}),
|
|
54
65
|
why: error,
|
|
55
66
|
cwd: event.cwd,
|
|
56
67
|
evidence: [event.sessionFile],
|
|
@@ -60,9 +71,12 @@ var EventProposals;
|
|
|
60
71
|
action: {
|
|
61
72
|
type: 'session',
|
|
62
73
|
sessionFile: event.sessionFile,
|
|
63
|
-
prompt:
|
|
64
|
-
|
|
65
|
-
: '
|
|
74
|
+
prompt: language_1.TaLanguageUtil.pick(language, {
|
|
75
|
+
'zh-CN': '上一轮失败了,查一下原因,能修的先修好,再把刚才要做的事做完。',
|
|
76
|
+
'zh-TW': '上一輪失敗了,查一下原因,能修的先修好,再把剛才要做的事做完。',
|
|
77
|
+
'en-US': 'The last turn failed. Find out why, fix what you can, and do what was asked again.',
|
|
78
|
+
'ja-JP': '前のターンが失敗しました。理由を調査し、修正できるところを修正して、依頼されたことを再度実行してください。',
|
|
79
|
+
}),
|
|
66
80
|
},
|
|
67
81
|
};
|
|
68
82
|
}
|
|
@@ -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
|
modeLabel: string;
|
|
@@ -25,6 +26,7 @@ declare const en: {
|
|
|
25
26
|
inboxWaiting: string;
|
|
26
27
|
inboxDone: string;
|
|
27
28
|
inboxEmpty: string;
|
|
29
|
+
inboxEmptyHint: string;
|
|
28
30
|
accept: string;
|
|
29
31
|
decline: string;
|
|
30
32
|
always: string;
|
|
@@ -71,6 +73,8 @@ declare const en: {
|
|
|
71
73
|
profileSaved: string;
|
|
72
74
|
};
|
|
73
75
|
export type Words = typeof en;
|
|
76
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
77
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
74
78
|
export declare namespace InitiativeWords {
|
|
75
79
|
function of(language: string): Words;
|
|
76
80
|
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.InitiativeWords = void 0;
|
|
3
|
+
exports.InitiativeWords = exports.WORDS = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const en = {
|
|
5
6
|
settingsTitle: 'Initiative',
|
|
6
7
|
modeLabel: 'How much Ta does on its own',
|
|
@@ -27,7 +28,8 @@ const en = {
|
|
|
27
28
|
inboxTitle: 'Suggestions',
|
|
28
29
|
inboxWaiting: 'Waiting for you',
|
|
29
30
|
inboxDone: 'Done on its own',
|
|
30
|
-
inboxEmpty: '
|
|
31
|
+
inboxEmpty: 'No suggestions yet',
|
|
32
|
+
inboxEmptyHint: 'When Ta finds work you ask for again and again, it suggests it here.',
|
|
31
33
|
accept: 'OK',
|
|
32
34
|
decline: 'No',
|
|
33
35
|
always: 'Always do it',
|
|
@@ -99,7 +101,8 @@ const zh = {
|
|
|
99
101
|
inboxTitle: 'Ta 的建议',
|
|
100
102
|
inboxWaiting: '等你决定',
|
|
101
103
|
inboxDone: '已替你做',
|
|
102
|
-
inboxEmpty: '
|
|
104
|
+
inboxEmpty: '暂时没有建议',
|
|
105
|
+
inboxEmptyHint: 'Ta 发现你反复交代的事,会在这里提出。',
|
|
103
106
|
accept: '好',
|
|
104
107
|
decline: '不用',
|
|
105
108
|
always: '以后直接做',
|
|
@@ -145,10 +148,158 @@ const zh = {
|
|
|
145
148
|
profileSave: '保存',
|
|
146
149
|
profileSaved: '已保存',
|
|
147
150
|
};
|
|
151
|
+
const zhTw = {
|
|
152
|
+
settingsTitle: '主動',
|
|
153
|
+
modeLabel: '主動程度',
|
|
154
|
+
modeHint: '決定每類事從哪一檔開始、你接受得多了 Ta 能不能自己直接做,以及一天最多即時提醒幾次:安靜 1 次、適中 3 次、積極不限。',
|
|
155
|
+
quietLabel: '安靜時段',
|
|
156
|
+
quietHint: '這段時間裡 Ta 不即時提醒你,建議都留在「Ta 的建議」和簡報裡。',
|
|
157
|
+
quietFrom: '從',
|
|
158
|
+
quietTo: '到',
|
|
159
|
+
modeQuiet: '安靜',
|
|
160
|
+
modeBalanced: '適中',
|
|
161
|
+
modeActive: '積極',
|
|
162
|
+
kindsLabel: 'Ta 可以做的事',
|
|
163
|
+
kindsHint: '每類事你接受得多就升一檔,拒絕或撤銷就降一檔;手動選了檔位就不再自動變。',
|
|
164
|
+
levelAuto: '自動 · {level}',
|
|
165
|
+
levelAutoPlain: '自動',
|
|
166
|
+
levelOff: '不提',
|
|
167
|
+
levelDigest: '只進簡報',
|
|
168
|
+
levelAsk: '先問我',
|
|
169
|
+
levelAct: '先做後報',
|
|
170
|
+
reasonStart: '初始檔位',
|
|
171
|
+
reasonUp: '{date} 升檔:連續接受 3 次',
|
|
172
|
+
reasonDown: '{date} 降檔:被拒絕或撤銷',
|
|
173
|
+
reasonLocked: '你選定的',
|
|
174
|
+
inboxTitle: 'Ta 的建議',
|
|
175
|
+
inboxWaiting: '等你決定',
|
|
176
|
+
inboxDone: '已替你做',
|
|
177
|
+
inboxEmpty: '暫時沒有建議',
|
|
178
|
+
inboxEmptyHint: 'Ta 發現你反覆交代的事,會在這裡提出。',
|
|
179
|
+
accept: '好',
|
|
180
|
+
decline: '不用',
|
|
181
|
+
always: '以後直接做',
|
|
182
|
+
neverAgain: '別再提這類',
|
|
183
|
+
undo: '撤銷',
|
|
184
|
+
undoneState: '已撤銷',
|
|
185
|
+
failedState: '失敗:{error}',
|
|
186
|
+
inBrief: '來自簡報',
|
|
187
|
+
evidence: '依據 {count} 個對話',
|
|
188
|
+
homeDetail: '等你決定 {waiting} · 已替你做 {done}',
|
|
189
|
+
homeWaiting: '等你決定 {waiting}',
|
|
190
|
+
homeDone: '已替你做 {done}',
|
|
191
|
+
toolPropose: '提議',
|
|
192
|
+
acceptedLine: '已同意',
|
|
193
|
+
declinedLine: '已拒絕',
|
|
194
|
+
expiredLine: '已失效',
|
|
195
|
+
enabledLabel: '定期整理定時任務',
|
|
196
|
+
enabledHint: 'Ta 回顧上次以來你交代過的事:反覆做的工作建成定時任務,總是失敗或已經過時的任務停用;每項改動按上面的檔位直接做,或放進「Ta 的建議」等你點頭。結果寫進「自我進化」對話,你可以在裡面回覆,Ta 會記住你的意見。',
|
|
197
|
+
everyLabel: '多久一次',
|
|
198
|
+
everyDays: '每 {days} 天',
|
|
199
|
+
every1: '每天',
|
|
200
|
+
every7: '每週',
|
|
201
|
+
every14: '每兩週',
|
|
202
|
+
every30: '每月',
|
|
203
|
+
timeLabel: '時間',
|
|
204
|
+
autoLabel: '讓 Ta 決定節奏',
|
|
205
|
+
autoHint: '每次整理後由 Ta 定下一次:工作變化多就勤一點,沒什麼變化就久一點。',
|
|
206
|
+
autoNote: 'Ta:{note}',
|
|
207
|
+
nowLabel: '現在整理一次',
|
|
208
|
+
nowButton: '整理',
|
|
209
|
+
lastNext: '上次 {last} · 下次 {next}',
|
|
210
|
+
nextOnly: '首次 {next}',
|
|
211
|
+
never: '無',
|
|
212
|
+
conversation: '自我進化',
|
|
213
|
+
failed: '沒有成功:{message}',
|
|
214
|
+
toolPace: '調整整理節奏',
|
|
215
|
+
toolProfile: '更新對你的瞭解',
|
|
216
|
+
learnLabel: '瞭解我',
|
|
217
|
+
learnHint: '每次整理時,Ta 記下你的做事方式和你通常接下來想做什麼;所有對話都會參考,你要交代的越來越少,Ta 主動做的越來越多。',
|
|
218
|
+
profileLabel: 'Ta 對你的瞭解',
|
|
219
|
+
profileHint: '可以直接修改,Ta 會保留你的改動並在此基礎上補充。',
|
|
220
|
+
profileEmpty: '還沒有內容,下次整理時 Ta 會寫。',
|
|
221
|
+
profileSave: '儲存',
|
|
222
|
+
profileSaved: '已儲存',
|
|
223
|
+
};
|
|
224
|
+
const ja = {
|
|
225
|
+
settingsTitle: '提案',
|
|
226
|
+
modeLabel: 'Ta の自動実行レベル',
|
|
227
|
+
modeHint: '各カテゴリがどこから始まるか、受け入れることで Ta が自動実行できるか、および 1 日の即座通知の最大回数を決定します:静かモード 1 回、バランス 3 回、アクティブ無制限。',
|
|
228
|
+
quietLabel: '静かモードの時間',
|
|
229
|
+
quietHint: 'この時間帯では Ta は即座に通知しません。提案は「Ta からの提案」と要約に表示されたままになります。',
|
|
230
|
+
quietFrom: '開始',
|
|
231
|
+
quietTo: '終了',
|
|
232
|
+
modeQuiet: '静かモード',
|
|
233
|
+
modeBalanced: 'バランス',
|
|
234
|
+
modeActive: 'アクティブ',
|
|
235
|
+
kindsLabel: 'Ta ができること',
|
|
236
|
+
kindsHint: '各カテゴリは受け入れるとレベルが上がり、拒否または取り消すとレベルが下がります。レベルを手動で選択するとそれ以上変更されません。',
|
|
237
|
+
levelAuto: '自動 · {level}',
|
|
238
|
+
levelAutoPlain: '自動',
|
|
239
|
+
levelOff: '通知しない',
|
|
240
|
+
levelDigest: '要約のみ',
|
|
241
|
+
levelAsk: '相談する',
|
|
242
|
+
levelAct: '実行後に報告',
|
|
243
|
+
reasonStart: '開始時のレベル',
|
|
244
|
+
reasonUp: '{date} レベルアップ:3 回連続で受け入れました',
|
|
245
|
+
reasonDown: '{date} レベルダウン:拒否または取り消されました',
|
|
246
|
+
reasonLocked: 'あなたが選択',
|
|
247
|
+
inboxTitle: 'Ta からの提案',
|
|
248
|
+
inboxWaiting: 'あなたの判断待ち',
|
|
249
|
+
inboxDone: '自動実行済み',
|
|
250
|
+
inboxEmpty: 'まだ提案がありません',
|
|
251
|
+
inboxEmptyHint: 'Ta があなたが繰り返し行う作業を検出すると、ここで提案します。',
|
|
252
|
+
accept: 'OK',
|
|
253
|
+
decline: 'いらない',
|
|
254
|
+
always: '今後は自動実行',
|
|
255
|
+
neverAgain: 'このカテゴリを提案しない',
|
|
256
|
+
undo: '取り消し',
|
|
257
|
+
undoneState: 'キャンセル済み',
|
|
258
|
+
failedState: '失敗:{error}',
|
|
259
|
+
inBrief: '要約から',
|
|
260
|
+
evidence: '{count} 個の会話から',
|
|
261
|
+
homeDetail: 'あなたの判断待ち {waiting} · 自動実行済み {done}',
|
|
262
|
+
homeWaiting: 'あなたの判断待ち {waiting}',
|
|
263
|
+
homeDone: '自動実行済み {done}',
|
|
264
|
+
toolPropose: '提案',
|
|
265
|
+
acceptedLine: '了承済み',
|
|
266
|
+
declinedLine: '拒否済み',
|
|
267
|
+
expiredLine: 'すでに期限切れ',
|
|
268
|
+
enabledLabel: 'スケジュールタスクの定期確認',
|
|
269
|
+
enabledHint: 'Ta は前回以降のあなたの依頼を確認します。繰り返し実行する作業はスケジュールタスクになり、常に失敗するか時代遅れのタスクは無効になります。各変更は上記のレベルに従って自動実行されるか、「Ta からの提案」に入り、あなたの確認を待ちます。結果は「進化」会話に書き込まれ、返信することができます。Ta があなたの意見を覚えています。',
|
|
270
|
+
everyLabel: 'どのくらいの頻度',
|
|
271
|
+
everyDays: '毎 {days} 日',
|
|
272
|
+
every1: '毎日',
|
|
273
|
+
every7: '毎週',
|
|
274
|
+
every14: '2 週間ごと',
|
|
275
|
+
every30: '毎月',
|
|
276
|
+
timeLabel: '時刻',
|
|
277
|
+
autoLabel: 'Ta に頻度を決めさせる',
|
|
278
|
+
autoHint: '各確認後、Ta が次のスケジュールを設定します。作業の変化が多い場合はより頻繁に、変化が少ない場合は間隔が広がります。',
|
|
279
|
+
autoNote: 'Ta:{note}',
|
|
280
|
+
nowLabel: '今すぐ確認',
|
|
281
|
+
nowButton: '確認',
|
|
282
|
+
lastNext: '前回 {last} · 次回 {next}',
|
|
283
|
+
nextOnly: '初回 {next}',
|
|
284
|
+
never: 'なし',
|
|
285
|
+
conversation: '進化',
|
|
286
|
+
failed: '実行できませんでした:{message}',
|
|
287
|
+
toolPace: '確認頻度を調整',
|
|
288
|
+
toolProfile: 'あなたの情報を更新',
|
|
289
|
+
learnLabel: 'あなたを理解する',
|
|
290
|
+
learnHint: '各確認時に、Ta はあなたの作業方法と通常次に何をしたいのかを記録します。すべての会話がこれを参照するため、指示する必要が減り、Ta が自動実行することが増えます。',
|
|
291
|
+
profileLabel: 'Ta があなたについて知っていること',
|
|
292
|
+
profileHint: '自由に編集できます。Ta はあなたの変更を保持し、その上に構築します。',
|
|
293
|
+
profileEmpty: 'まだコンテンツはありません。次の確認時に Ta が書き込みます。',
|
|
294
|
+
profileSave: '保存',
|
|
295
|
+
profileSaved: '保存済み',
|
|
296
|
+
};
|
|
297
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
298
|
+
exports.WORDS = { 'zh-CN': zh, 'zh-TW': zhTw, 'en-US': en, 'ja-JP': ja };
|
|
148
299
|
var InitiativeWords;
|
|
149
300
|
(function (InitiativeWords) {
|
|
150
301
|
function of(language) {
|
|
151
|
-
return
|
|
302
|
+
return language_1.TaLanguageUtil.pick(language, exports.WORDS);
|
|
152
303
|
}
|
|
153
304
|
InitiativeWords.of = of;
|
|
154
305
|
function format(text, values) {
|
|
@@ -6,6 +6,7 @@ exports.ProposalCards = ProposalCards;
|
|
|
6
6
|
const conversation_1 = require("./conversation");
|
|
7
7
|
const i18n_1 = require("./i18n");
|
|
8
8
|
const inbox_util_1 = require("./inbox-util");
|
|
9
|
+
const initiative_protocol_1 = require("./initiative-protocol");
|
|
9
10
|
const initiative_store_1 = require("./initiative-store");
|
|
10
11
|
const notices_1 = require("./notices");
|
|
11
12
|
const react_1 = require("./react");
|
|
@@ -20,7 +21,7 @@ function clock(at) {
|
|
|
20
21
|
function kindTitle(kinds, id, language) {
|
|
21
22
|
var _a;
|
|
22
23
|
const kind = (_a = kinds.find(one => one.kind.id === id)) === null || _a === void 0 ? void 0 : _a.kind;
|
|
23
|
-
return kind ?
|
|
24
|
+
return kind ? initiative_protocol_1.KindTitleUtil.pick(kind.title, language) : id;
|
|
24
25
|
}
|
|
25
26
|
/** A button that waits on the host, with the spinner of the page. */
|
|
26
27
|
function Act({ pi, label, primary, onClick }) {
|
|
@@ -105,7 +106,7 @@ function Inbox({ pi, store }) {
|
|
|
105
106
|
}
|
|
106
107
|
}, [store, state.loaded, state.proposals]);
|
|
107
108
|
return (react_1.React.createElement("div", { className: "tin-inbox" },
|
|
108
|
-
waiting.length === 0 && done.length === 0 && state.loaded && react_1.React.createElement(
|
|
109
|
+
waiting.length === 0 && done.length === 0 && state.loaded && react_1.React.createElement(pi.ui.Empty, { title: words.inboxEmpty, hint: words.inboxEmptyHint }),
|
|
109
110
|
waiting.length > 0 && (react_1.React.createElement("section", null,
|
|
110
111
|
react_1.React.createElement("h3", { className: "tin-head" }, words.inboxWaiting),
|
|
111
112
|
react_1.React.createElement("ul", { className: "tin-list" }, waiting.map(proposal => (react_1.React.createElement(Waiting, { key: proposal.id, pi: pi, store: store, proposal: proposal, kinds: state.kinds, away: true })))))),
|
|
@@ -37,16 +37,25 @@ export declare const LEVELS: readonly Level[];
|
|
|
37
37
|
/** How much Ta takes on itself, as the user set it: where a kind starts, and how far it may climb by itself. */
|
|
38
38
|
export type Mode = 'quiet' | 'balanced' | 'active';
|
|
39
39
|
export declare const MODES: readonly Mode[];
|
|
40
|
+
/** The title of a kind, in English and Simplified Chinese, Traditional Chinese and Japanese if given. */
|
|
41
|
+
export interface KindTitle {
|
|
42
|
+
en: string;
|
|
43
|
+
zh: string;
|
|
44
|
+
tw?: string;
|
|
45
|
+
ja?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare namespace KindTitleUtil {
|
|
48
|
+
/** The title in a language of the page (`zh-TW`, `ja-JP`). */
|
|
49
|
+
function pick(title: KindTitle, language: string): string;
|
|
50
|
+
}
|
|
40
51
|
/** A kind of thing Ta may do on its own, as the package that offers it defines it. */
|
|
41
52
|
export interface InitiativeKind {
|
|
42
53
|
/** `<area>.<verb>`: `cron.add`, `recall.keep`. */
|
|
43
54
|
id: string;
|
|
44
55
|
/** The package that offers it. */
|
|
45
56
|
owner: string;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
zh: string;
|
|
49
|
-
};
|
|
57
|
+
/** Traditional Chinese (`tw`) falls back to `zh`, Japanese (`ja`) to `en`. */
|
|
58
|
+
title: KindTitle;
|
|
50
59
|
/** Whether what it does can be undone: one that cannot never goes past `ask`. */
|
|
51
60
|
reversible: boolean;
|
|
52
61
|
/** Where it starts, in the mode `balanced`. */
|
|
@@ -309,6 +318,8 @@ export interface InitiativeService {
|
|
|
309
318
|
/** The user chose the level of a kind, or gave it back to Ta (null). */
|
|
310
319
|
setLevel(kind: string, level: Level | null): Promise<KindStatus>;
|
|
311
320
|
setMode(mode: Mode): Promise<void>;
|
|
321
|
+
/** The proposals kept and how each ended, newest last: how another package reads them (ta-recall's brief), not by this package's data. */
|
|
322
|
+
proposals(): Promise<Proposal[]>;
|
|
312
323
|
reviewStatus(): Promise<ReviewStatus>;
|
|
313
324
|
/** Starts a review now, whatever the time; resolves with the session file of the conversation of the reviews. */
|
|
314
325
|
reviewNow(): Promise<string | undefined>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Limits = exports.Keys = exports.RESULT_ID = exports.MODES = exports.LEVELS = exports.TURN_PROPOSALS = exports.BLOCK = exports.CARD_TYPE = exports.CHAT_SECTION = exports.PROFILE_SECTION = exports.PROPOSE_TOOL = exports.PROFILE_TOOL = exports.PACE_TOOL = exports.SECTION = exports.REVIEW_MARK = exports.RECALL = exports.CRON = exports.FORMER_NAME = exports.NAME = void 0;
|
|
3
|
+
exports.Limits = exports.Keys = exports.RESULT_ID = exports.KindTitleUtil = exports.MODES = exports.LEVELS = exports.TURN_PROPOSALS = exports.BLOCK = exports.CARD_TYPE = exports.CHAT_SECTION = exports.PROFILE_SECTION = exports.PROPOSE_TOOL = exports.PROFILE_TOOL = exports.PACE_TOOL = exports.SECTION = exports.REVIEW_MARK = exports.RECALL = exports.CRON = exports.FORMER_NAME = exports.NAME = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
/** The name of the package: of its data and its host. */
|
|
5
6
|
exports.NAME = '@celljs/ta-initiative';
|
|
6
7
|
/** The package Evolve was before it became part of this one: its data is taken over once (InitiativeHost.start). */
|
|
@@ -33,6 +34,15 @@ exports.BLOCK = 'ta-propose';
|
|
|
33
34
|
exports.TURN_PROPOSALS = 2;
|
|
34
35
|
exports.LEVELS = ['off', 'digest', 'ask', 'act'];
|
|
35
36
|
exports.MODES = ['quiet', 'balanced', 'active'];
|
|
37
|
+
var KindTitleUtil;
|
|
38
|
+
(function (KindTitleUtil) {
|
|
39
|
+
/** The title in a language of the page (`zh-TW`, `ja-JP`). */
|
|
40
|
+
function pick(title, language) {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
return language_1.TaLanguageUtil.pick(language, { 'zh-CN': title.zh, 'zh-TW': (_a = title.tw) !== null && _a !== void 0 ? _a : title.zh, 'en-US': title.en, 'ja-JP': (_b = title.ja) !== null && _b !== void 0 ? _b : title.en });
|
|
43
|
+
}
|
|
44
|
+
KindTitleUtil.pick = pick;
|
|
45
|
+
})(KindTitleUtil || (exports.KindTitleUtil = KindTitleUtil = {}));
|
|
36
46
|
/** In `HostCall.params` of an undo, the `id` of what the action returned. */
|
|
37
47
|
exports.RESULT_ID = '$result.id';
|
|
38
48
|
var Keys;
|
|
@@ -27,6 +27,7 @@ export declare class InitiativeHost implements InitiativeService, TaPackageServi
|
|
|
27
27
|
undo(id: string): Promise<Proposal>;
|
|
28
28
|
setLevel(kind: string, level: Level | null): Promise<KindStatus>;
|
|
29
29
|
setMode(mode: Mode): Promise<void>;
|
|
30
|
+
proposals(): Promise<Proposal[]>;
|
|
30
31
|
reviewStatus(): Promise<ReviewStatus>;
|
|
31
32
|
reviewNow(): Promise<string | undefined>;
|
|
32
33
|
setPace(days: number, reason: string): Promise<number>;
|
|
@@ -34,7 +34,7 @@ class InitiativeHost {
|
|
|
34
34
|
}
|
|
35
35
|
/** A turn that failed is offered to look into; one that went well since takes that back. */
|
|
36
36
|
async onTurn(event) {
|
|
37
|
-
const failed = event_proposals_1.EventProposals.failed(event, server_texts_1.InitiativeServerTexts.
|
|
37
|
+
const failed = event_proposals_1.EventProposals.failed(event, server_texts_1.InitiativeServerTexts.language());
|
|
38
38
|
if (failed) {
|
|
39
39
|
await this.book.offer(failed);
|
|
40
40
|
return;
|
|
@@ -71,6 +71,9 @@ class InitiativeHost {
|
|
|
71
71
|
setMode(mode) {
|
|
72
72
|
return this.book.setMode(mode);
|
|
73
73
|
}
|
|
74
|
+
async proposals() {
|
|
75
|
+
return this.book.list();
|
|
76
|
+
}
|
|
74
77
|
reviewStatus() {
|
|
75
78
|
return this.review.reviewStatus();
|
|
76
79
|
}
|
|
@@ -76,7 +76,11 @@ class InitiativeStore {
|
|
|
76
76
|
const newest = this.current.proposals.reduce((at, proposal) => { var _a; return Math.max(at, proposal.at, (_a = proposal.decidedAt) !== null && _a !== void 0 ? _a : 0); }, 0);
|
|
77
77
|
if (newest > this.current.seen) {
|
|
78
78
|
this.set({ ...this.current, seen: newest });
|
|
79
|
-
|
|
79
|
+
// Another device may have seen later ones than this page has read yet: what is kept only moves on.
|
|
80
|
+
void this.pi.storage
|
|
81
|
+
.get(initiative_protocol_1.Keys.SEEN)
|
|
82
|
+
.then(kept => (typeof kept === 'number' && kept >= newest ? undefined : this.pi.storage.set(initiative_protocol_1.Keys.SEEN, newest)))
|
|
83
|
+
.catch(() => undefined);
|
|
80
84
|
}
|
|
81
85
|
}
|
|
82
86
|
read() {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type AskedConversation, type CronRun, type CronTask, type Level } from './initiative-protocol';
|
|
2
3
|
/** What the section of a review is made of: undefined for what could not be read (a package turned off). */
|
|
3
4
|
export interface MaterialInput {
|
|
@@ -24,7 +25,7 @@ export interface MaterialInput {
|
|
|
24
25
|
/** The message that asks for a review and the section of the system prompt it reads. Pure functions. */
|
|
25
26
|
export declare namespace MaterialUtil {
|
|
26
27
|
/** The message: what the model reads, then the line the user sees. */
|
|
27
|
-
function message(since: number,
|
|
28
|
+
function message(since: number, language: TaLanguage): string;
|
|
28
29
|
/** The `since` of a message that asks for a review; undefined for another message. */
|
|
29
30
|
function since(prompt: string): number | undefined;
|
|
30
31
|
function section(input: MaterialInput): string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MaterialUtil = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const initiative_protocol_1 = require("./initiative-protocol");
|
|
5
6
|
/** What each level means to the model that proposes. */
|
|
6
7
|
const LEVEL_MEANS = {
|
|
@@ -13,12 +14,17 @@ const LEVEL_MEANS = {
|
|
|
13
14
|
var MaterialUtil;
|
|
14
15
|
(function (MaterialUtil) {
|
|
15
16
|
/** The message: what the model reads, then the line the user sees. */
|
|
16
|
-
function message(since,
|
|
17
|
+
function message(since, language) {
|
|
17
18
|
const context = [
|
|
18
19
|
`${initiative_protocol_1.REVIEW_MARK} since=${since}]`,
|
|
19
|
-
`Review the scheduled tasks of the user now, from the <${initiative_protocol_1.SECTION}> section of your system prompt. Nobody is watching: ask nothing, decide and report; the user reads it later and may answer here. Write the report in ${zh
|
|
20
|
+
`Review the scheduled tasks of the user now, from the <${initiative_protocol_1.SECTION}> section of your system prompt. Nobody is watching: ask nothing, decide and report; the user reads it later and may answer here. Write the report in ${{ 'zh-CN': 'Simplified Chinese', 'zh-TW': 'Traditional Chinese', 'en-US': 'English', 'ja-JP': 'Japanese' }[language_1.TaLanguageUtil.of(language)]}.`,
|
|
20
21
|
].join('\n');
|
|
21
|
-
return `<context>\n${context}\n</context>\n${
|
|
22
|
+
return `<context>\n${context}\n</context>\n${language_1.TaLanguageUtil.pick(language, {
|
|
23
|
+
'zh-CN': '回顾一下最近的工作,整理定时任务',
|
|
24
|
+
'zh-TW': '回顧一下最近的工作,整理定時任務',
|
|
25
|
+
'en-US': 'Look back at the recent work and tidy the scheduled tasks',
|
|
26
|
+
'ja-JP': '最近の作業を見直し、スケジュールタスクを整理',
|
|
27
|
+
})}`;
|
|
22
28
|
}
|
|
23
29
|
MaterialUtil.message = message;
|
|
24
30
|
/** The `since` of a message that asks for a review; undefined for another message. */
|
|
@@ -113,7 +113,7 @@ class ReviewHost {
|
|
|
113
113
|
// Kept before the turn, so that a review that fails is not asked again each minute.
|
|
114
114
|
await this.host.setExtensionData(initiative_protocol_1.NAME, initiative_protocol_1.Keys.LAST, now);
|
|
115
115
|
await this.host.prompt(session.sessionId, {
|
|
116
|
-
message: material_util_1.MaterialUtil.message(pace_util_1.PaceUtil.since(typeof last === 'number' ? last : undefined, now), server_texts_1.InitiativeServerTexts.
|
|
116
|
+
message: material_util_1.MaterialUtil.message(pace_util_1.PaceUtil.since(typeof last === 'number' ? last : undefined, now), server_texts_1.InitiativeServerTexts.language()),
|
|
117
117
|
clientMessageId: `ta-evolve-review:${now}`,
|
|
118
118
|
streamingBehavior: 'followUp',
|
|
119
119
|
});
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
2
3
|
export declare namespace InitiativeServerTexts {
|
|
3
|
-
function
|
|
4
|
+
function language(env?: NodeJS.ProcessEnv): TaLanguage;
|
|
4
5
|
/** The name of the conversation of the reviews. */
|
|
5
6
|
function title(): string;
|
|
6
7
|
}
|
|
@@ -1,16 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.InitiativeServerTexts = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
/** What the package says on the server, in the language of Ta's pages (`TA_LANGUAGE`) or the computer's. */
|
|
5
6
|
var InitiativeServerTexts;
|
|
6
7
|
(function (InitiativeServerTexts) {
|
|
7
|
-
function
|
|
8
|
-
return
|
|
8
|
+
function language(env = process.env) {
|
|
9
|
+
return language_1.TaLanguageUtil.server(env);
|
|
9
10
|
}
|
|
10
|
-
InitiativeServerTexts.
|
|
11
|
+
InitiativeServerTexts.language = language;
|
|
11
12
|
/** The name of the conversation of the reviews. */
|
|
12
13
|
function title() {
|
|
13
|
-
|
|
14
|
+
const lang = language();
|
|
15
|
+
return language_1.TaLanguageUtil.pick(lang, {
|
|
16
|
+
'zh-CN': '自我进化',
|
|
17
|
+
'zh-TW': '自我進化',
|
|
18
|
+
'en-US': 'Evolve',
|
|
19
|
+
'ja-JP': '自己進化',
|
|
20
|
+
});
|
|
14
21
|
}
|
|
15
22
|
InitiativeServerTexts.title = title;
|
|
16
23
|
})(InitiativeServerTexts || (exports.InitiativeServerTexts = InitiativeServerTexts = {}));
|
|
@@ -156,12 +156,11 @@ function Quiet({ pi, store }) {
|
|
|
156
156
|
function Kinds({ pi, store }) {
|
|
157
157
|
const words = i18n_1.InitiativeWords.of(pi.ui.language);
|
|
158
158
|
const { kinds } = (0, initiative_store_1.useInitiative)(react_1.React, store);
|
|
159
|
-
const zh = /^zh/i.test(pi.ui.language);
|
|
160
159
|
return (react_1.React.createElement("ul", { className: "tin-kinds" }, kinds.map(status => { var _a; return (react_1.React.createElement("li", { key: status.kind.id, className: "tin-kind-row" },
|
|
161
160
|
react_1.React.createElement("div", { className: "tin-kind-text" },
|
|
162
|
-
react_1.React.createElement("div", { className: "tin-kind-name" },
|
|
161
|
+
react_1.React.createElement("div", { className: "tin-kind-name" }, initiative_protocol_1.KindTitleUtil.pick(status.kind.title, pi.ui.language)),
|
|
163
162
|
react_1.React.createElement("div", { className: "tin-kind-reason" }, reasonText(words, status))),
|
|
164
|
-
react_1.React.createElement("select", { className: "tev-field", "aria-label":
|
|
163
|
+
react_1.React.createElement("select", { className: "tev-field", "aria-label": initiative_protocol_1.KindTitleUtil.pick(status.kind.title, pi.ui.language), value: (_a = status.locked) !== null && _a !== void 0 ? _a : 'auto', onChange: event => {
|
|
165
164
|
const value = event.target.value;
|
|
166
165
|
void store.setLevel(status.kind.id, value === 'auto' ? null : value).catch(error => notifyFailure(pi, error));
|
|
167
166
|
} },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** The styles of the package; only the --ta-* variables of the page, so they follow its theme. */
|
|
2
|
-
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }\n.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }\n.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }\n.tin-done .tin-title { font-weight: 500; }\n.tin-actions { display: flex; gap: 8px; margin-top: 10px; }\n.tin-actions .ta-button { min-width: 64px; justify-content: center; }\n[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }\n.tin-more { display: flex; gap: 14px; margin-top: 8px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
2
|
+
export declare const STYLE = "\n.tev-field { height: 32px; padding: 0 8px; border: 1px solid var(--ta-border-field); border-radius: 8px; background: transparent; color: var(--ta-text); font: inherit; font-size: calc(13px * var(--ta-font-scale)); }\n.tev-field:disabled { opacity: 0.5; }\n.tev-now { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; }\n.tev-profile { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; width: 100%; }\n.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }\n[data-touch] .tev-profile-text { font-size: 16px; }\n/* The suggestions: a card each, its kind, what and why, the answers */\n.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }\n.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }\n.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }\n.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }\n.tin-kind { display: flex; align-items: center; gap: 8px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tin-kind > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.tin-tag { flex: none; padding: 0 6px; border-radius: 6px; background: var(--ta-hover); }\n.tin-time { flex: none; font-variant-numeric: tabular-nums; }\n.tin-title { margin-top: 6px; color: var(--ta-text); font-size: calc(15px * var(--ta-font-scale)); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }\n.tin-why { margin-top: 4px; color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.55; opacity: 0.85; overflow-wrap: anywhere; }\n.tin-state { margin-top: 6px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); }\n.tin-card[data-state='failed'] .tin-state { color: var(--ta-red, #d33); }\n.tin-done .tin-title { font-weight: 500; }\n.tin-actions { display: flex; gap: 8px; margin-top: 10px; }\n.tin-actions .ta-button { min-width: 64px; justify-content: center; }\n[data-touch] .tin-actions .ta-button { min-height: 38px; flex: 1; }\n.tin-more { display: flex; gap: 14px; margin-top: 8px; }\n.tin-link { padding: 0; border: 0; background: none; color: var(--ta-muted); font: inherit; font-size: calc(12.5px * var(--ta-font-scale)); cursor: pointer; text-align: left; }\n.tin-link:hover { color: var(--ta-text); }\n.tin-card > .tin-link { margin-top: 6px; display: block; }\n.tin-above { margin: 0 0 8px; }\n.tin-above .tin-card { padding: 10px 12px; }\n.tin-in-chat { margin: 4px 0; max-width: 620px; }\n.tin-decided { color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); overflow-wrap: anywhere; }\n.tin-empty { padding: 48px 12px; color: var(--ta-muted); text-align: center; font-size: calc(13.5px * var(--ta-font-scale)); line-height: 1.6; }\n.tin-quiet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }\n/* The kinds, in the settings */\n.tin-kinds { margin: 0; padding: 0; list-style: none; width: 100%; }\n.tin-kind-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ta-border-muted); }\n.tin-kind-row:first-child { border-top: 0; }\n.tin-kind-text { flex: 1; min-width: 0; }\n.tin-kind-name { color: var(--ta-text); font-size: calc(13.5px * var(--ta-font-scale)); }\n.tin-kind-reason { margin-top: 2px; color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); }\n.tev-when { color: var(--ta-muted); font-size: calc(12px * var(--ta-font-scale)); font-variant-numeric: tabular-nums; }\n";
|
|
3
3
|
export declare function injectStyle(): () => void;
|
|
4
4
|
//# sourceMappingURL=style.d.ts.map
|
|
@@ -11,7 +11,7 @@ exports.STYLE = `
|
|
|
11
11
|
.tev-profile-text { width: 100%; height: auto; min-height: 160px; padding: 8px; box-sizing: border-box; line-height: 1.55; resize: vertical; font-size: calc(13px * var(--ta-font-scale)); }
|
|
12
12
|
[data-touch] .tev-profile-text { font-size: 16px; }
|
|
13
13
|
/* The suggestions: a card each, its kind, what and why, the answers */
|
|
14
|
-
.tin-inbox { max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; }
|
|
14
|
+
.tin-inbox { display: flex; flex-direction: column; min-height: 100%; max-width: 680px; margin: 0 auto; padding: 12px 16px 32px; box-sizing: border-box; }
|
|
15
15
|
.tin-head { margin: 16px 2px 8px; color: var(--ta-muted); font-size: calc(12.5px * var(--ta-font-scale)); font-weight: 500; }
|
|
16
16
|
.tin-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
|
|
17
17
|
.tin-card { padding: 12px 14px; border: 1px solid var(--ta-border-muted); border-radius: 12px; background: var(--ta-card); }
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/ta-initiative",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.15.0",
|
|
4
4
|
"description": "A pi package for Ta: what Ta does on its own and how far, by kind and by the user's trust; proposals other packages offer, the user's suggestions to decide or undo, and a weekly review that keeps the scheduled tasks and learns the user",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pi-package"
|
|
7
7
|
],
|
|
8
|
-
"homepage": "https://github.com/cellbang/
|
|
8
|
+
"homepage": "https://github.com/cellbang/ta",
|
|
9
9
|
"bugs": {
|
|
10
|
-
"url": "https://github.com/cellbang/
|
|
10
|
+
"url": "https://github.com/cellbang/ta/issues"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -37,11 +37,15 @@
|
|
|
37
37
|
"pi": {
|
|
38
38
|
"title": {
|
|
39
39
|
"en": "Initiative",
|
|
40
|
-
"zh-CN": "主动"
|
|
40
|
+
"zh-CN": "主动",
|
|
41
|
+
"zh-TW": "主動",
|
|
42
|
+
"ja-JP": "提案"
|
|
41
43
|
},
|
|
42
44
|
"summary": {
|
|
43
45
|
"en": "Ta does more on its own as you accept what it suggests: suggestions to decide or undo, a weekly review of your scheduled tasks, and what it learned of you.",
|
|
44
|
-
"zh-CN": "你接受得越多,Ta 自己做得越多:建议一点即办、可撤销,每周整理定时任务,并记下你的习惯。"
|
|
46
|
+
"zh-CN": "你接受得越多,Ta 自己做得越多:建议一点即办、可撤销,每周整理定时任务,并记下你的习惯。",
|
|
47
|
+
"zh-TW": "你接受得越多,Ta 自己做得越多:建議一點即辦、可撤銷,每週整理定時任務,並記下你的習慣。",
|
|
48
|
+
"ja-JP": "提案を受け入れるほど Ta は自分で動きます:ワンタップで実行・取り消しできる提案、毎週のスケジュールタスクの整理、あなたの習慣の記録。"
|
|
45
49
|
},
|
|
46
50
|
"icon": "Sparkles",
|
|
47
51
|
"web": [
|