@celljs/ta 4.14.0 → 4.15.1
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 +106 -7
- package/dist/gateway.mjs +156 -46
- package/dist/pi/CHANGELOG.md +13 -0
- package/dist/pi/package.json +1 -1
- package/dist/pi/packages/ta-3d/README.en.md +11 -0
- package/dist/pi/packages/ta-3d/README.md +11 -0
- package/dist/pi/packages/ta-3d/extension/index.mjs +120 -0
- package/dist/pi/packages/ta-3d/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-3d/lib/extension.js +24 -0
- package/dist/pi/packages/ta-3d/lib/i18n.d.ts +19 -0
- package/dist/pi/packages/ta-3d/lib/i18n.js +50 -0
- package/dist/pi/packages/ta-3d/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/index.js +22 -0
- package/dist/pi/packages/ta-3d/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-3d/lib/react.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/scene-card.js +60 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-3d/lib/scene-prompt.js +15 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.d.ts +5 -0
- package/dist/pi/packages/ta-3d/lib/scene-protocol.js +8 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.d.ts +59 -0
- package/dist/pi/packages/ta-3d/lib/scene-spec.js +141 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.d.ts +57 -0
- package/dist/pi/packages/ta-3d/lib/scene-view.js +339 -0
- package/dist/pi/packages/ta-3d/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-3d/lib/style.js +33 -0
- package/dist/pi/packages/ta-3d/package.json +58 -0
- package/dist/pi/packages/ta-3d/web/index.js +660 -0
- package/dist/pi/packages/ta-agents/README.en.md +2 -2
- package/dist/pi/packages/ta-agents/README.md +2 -2
- package/dist/pi/packages/ta-agents/extension/index.mjs +248 -27
- package/dist/pi/packages/ta-agents/lib/acp-agent.d.ts +4 -0
- package/dist/pi/packages/ta-agents/lib/acp-agent.js +20 -2
- package/dist/pi/packages/ta-agents/lib/acp-protocol.d.ts +14 -5
- package/dist/pi/packages/ta-agents/lib/acp-protocol.js +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.d.ts +13 -0
- package/dist/pi/packages/ta-agents/lib/agent-bindings.js +29 -4
- package/dist/pi/packages/ta-agents/lib/agent-prompt.d.ts +2 -0
- package/dist/pi/packages/ta-agents/lib/agent-prompt.js +5 -0
- package/dist/pi/packages/ta-agents/lib/agent-session.d.ts +16 -4
- package/dist/pi/packages/ta-agents/lib/agent-session.js +34 -4
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.d.ts +28 -0
- package/dist/pi/packages/ta-agents/lib/agent-sign-in.js +62 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.d.ts +7 -0
- package/dist/pi/packages/ta-agents/lib/agent-streamer.js +40 -3
- package/dist/pi/packages/ta-agents/lib/extension.js +12 -0
- package/dist/pi/packages/ta-agents/lib/texts.d.ts +86 -22
- package/dist/pi/packages/ta-agents/lib/texts.js +101 -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 +165 -53
- package/dist/pi/packages/ta-bots/lib/bot-service.d.ts +6 -0
- package/dist/pi/packages/ta-bots/lib/bot-service.js +27 -2
- package/dist/pi/packages/ta-bots/lib/bot-store.d.ts +8 -1
- package/dist/pi/packages/ta-bots/lib/bot-store.js +16 -2
- 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/lib/weixin-channel.js +3 -1
- 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/lib/tasks-view.js +4 -2
- package/dist/pi/packages/ta-cron/package.json +7 -3
- package/dist/pi/packages/ta-cron/web/index.js +302 -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 +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 +32 -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/glance-prompt.d.ts +1 -1
- package/dist/pi/packages/ta-glance/lib/glance-prompt.js +1 -0
- 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 +49 -30
- 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/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-initiative/lib/style.js +27 -14
- package/dist/pi/packages/ta-initiative/package.json +7 -3
- package/dist/pi/packages/ta-initiative/web/index.js +289 -55
- 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 +6 -5
- 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 +216 -9
- 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/lib/settings.js +9 -2
- package/dist/pi/packages/ta-notify/package.json +7 -3
- package/dist/pi/packages/ta-notify/web/index.js +107 -7
- package/dist/pi/packages/ta-plot/README.en.md +12 -0
- package/dist/pi/packages/ta-plot/README.md +12 -0
- package/dist/pi/packages/ta-plot/extension/index.mjs +121 -0
- package/dist/pi/packages/ta-plot/lib/extension.d.ts +15 -0
- package/dist/pi/packages/ta-plot/lib/extension.js +24 -0
- package/dist/pi/packages/ta-plot/lib/i18n.d.ts +14 -0
- package/dist/pi/packages/ta-plot/lib/i18n.js +30 -0
- package/dist/pi/packages/ta-plot/lib/index.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/index.js +25 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.d.ts +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-expression.js +209 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.d.ts +28 -0
- package/dist/pi/packages/ta-plot/lib/plot-painter.js +208 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-prompt.js +16 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.d.ts +7 -0
- package/dist/pi/packages/ta-plot/lib/plot-protocol.js +10 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.d.ts +65 -0
- package/dist/pi/packages/ta-plot/lib/plot-scene.js +427 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.d.ts +86 -0
- package/dist/pi/packages/ta-plot/lib/plot-spec.js +165 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/plot-view.js +205 -0
- package/dist/pi/packages/ta-plot/lib/react.d.ts +8 -0
- package/dist/pi/packages/ta-plot/lib/react.js +8 -0
- package/dist/pi/packages/ta-plot/lib/style.d.ts +4 -0
- package/dist/pi/packages/ta-plot/lib/style.js +47 -0
- package/dist/pi/packages/ta-plot/package.json +57 -0
- package/dist/pi/packages/ta-plot/web/index.js +1320 -0
- 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/doubles-view.js +8 -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/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-rooms/lib/style.js +1 -0
- package/dist/pi/packages/ta-rooms/package.json +7 -3
- package/dist/pi/packages/ta-rooms/web/index.js +496 -9
- 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/lib/share-dialog.js +3 -1
- package/dist/pi/packages/ta-share/lib/style.d.ts +1 -1
- package/dist/pi/packages/ta-share/lib/style.js +1 -0
- package/dist/pi/packages/ta-share/package.json +7 -3
- package/dist/pi/packages/ta-share/web/index.js +246 -4
- 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/panel.js +4 -1
- 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 -0
- package/dist/pi/packages/ta-sync/package.json +7 -3
- package/dist/pi/packages/ta-sync/web/index.js +398 -5
- 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 +68 -9
- 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 +688 -102
- 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-CD8CaArq.js} +1 -1
- package/dist/public/assets/{architecture-WOLXFQ4H-5AdYeEv8.js → architecture-WOLXFQ4H-f2a9bodL.js} +1 -1
- package/dist/public/assets/{architectureDiagram-YGSQEFNW-CqkJHg0A.js → architectureDiagram-YGSQEFNW-BCWH9CwO.js} +1 -1
- package/dist/public/assets/{blockDiagram-APKKGZFW-BtuHdIjQ.js → blockDiagram-APKKGZFW-fUamQMeJ.js} +1 -1
- package/dist/public/assets/{browser-Ds5TwWWr.js → browser-CrMa174j.js} +1 -1
- package/dist/public/assets/{c4Diagram-KJ2TOQU5-eebbjTgZ.js → c4Diagram-KJ2TOQU5-CkLtnwp1.js} +1 -1
- package/dist/public/assets/{chunk-6MUBBAK2-BjMKSfTf.js → chunk-6MUBBAK2-cwcGPuAH.js} +1 -1
- package/dist/public/assets/{chunk-AXFCVDMN-BElluw_7.js → chunk-AXFCVDMN-DNkmkYfC.js} +1 -1
- package/dist/public/assets/{chunk-BG4553SI-CUDwpWNL.js → chunk-BG4553SI-C8qbbr2Z.js} +1 -1
- package/dist/public/assets/{chunk-DQASFODM-B-92o8Uj.js → chunk-DQASFODM-C-PJ2CrJ.js} +1 -1
- package/dist/public/assets/{chunk-HFQBQIA3-pveEMcXK.js → chunk-HFQBQIA3-BYcgxNEL.js} +1 -1
- package/dist/public/assets/{chunk-KQLB2F66-m7DKNjYW.js → chunk-KQLB2F66-BTDNzrRl.js} +1 -1
- package/dist/public/assets/{chunk-KS47KZWR-CnSSETdj.js → chunk-KS47KZWR-1sGg1pKP.js} +1 -1
- package/dist/public/assets/{chunk-LEVMRMFU-Ds7OnJrC.js → chunk-LEVMRMFU-7lAsFwHT.js} +1 -1
- package/dist/public/assets/{chunk-M57EVK23-PJSYCuUh.js → chunk-M57EVK23-C8K-ltig.js} +1 -1
- package/dist/public/assets/{chunk-OY52VR5R-C3ygRwSC.js → chunk-OY52VR5R-CBe1QL_V.js} +1 -1
- package/dist/public/assets/{chunk-QB3YPZ4I-DcFtmZh7.js → chunk-QB3YPZ4I-COhYyyE_.js} +1 -1
- package/dist/public/assets/{chunk-R3KSYZAL-B4BOidE6.js → chunk-R3KSYZAL-CREAgaSS.js} +1 -1
- package/dist/public/assets/{chunk-STOXU5M4-DcXfwN7k.js → chunk-STOXU5M4-CTl0P8_C.js} +1 -1
- package/dist/public/assets/{chunk-TU62E6Q5-B-rpQQxX.js → chunk-TU62E6Q5-B_GG7baF.js} +1 -1
- package/dist/public/assets/{chunk-X4PVCEUW-BBtlFSw1.js → chunk-X4PVCEUW-CDrSpVOj.js} +1 -1
- package/dist/public/assets/{chunk-XXDRQBXY-Do8BIocv.js → chunk-XXDRQBXY-sKeiDEnC.js} +1 -1
- package/dist/public/assets/{classDiagram-v2-L25IHNXF-bhGAODMS.js → classDiagram-v2-L25IHNXF-Cqo1O5FQ.js} +1 -1
- package/dist/public/assets/{cose-bilkent-JH36ORCC-B7Qv6Hv_.js → cose-bilkent-JH36ORCC-CTSKeRBe.js} +1 -1
- package/dist/public/assets/cynefin-EF2NZ3EQ-CP12ndt7.js +1 -0
- package/dist/public/assets/{cynefinDiagram-L36ESFBY-BX-R5Z6L.js → cynefinDiagram-L36ESFBY-67xEPyP9.js} +1 -1
- package/dist/public/assets/{d3-selection-D3xgEEla.js → d3-selection-BUiX-3qh.js} +1 -1
- package/dist/public/assets/{dagre-SPEB5RXH-MfJ9yO0v.js → dagre-SPEB5RXH-DDw-u3Kg.js} +1 -1
- package/dist/public/assets/{diagram-3B7GL73J-DxFRc2vC.js → diagram-3B7GL73J-BBFInaCs.js} +1 -1
- package/dist/public/assets/{diagram-DNEMPZML-BcBwOLbM.js → diagram-DNEMPZML-ZdnFKM7-.js} +1 -1
- package/dist/public/assets/{diagram-L3MUGCDN--Rw-isPI.js → diagram-L3MUGCDN-CPb04hOv.js} +1 -1
- package/dist/public/assets/{diagram-LA4NIPWU-DXkY85UN.js → diagram-LA4NIPWU-P9wHFGDS.js} +1 -1
- package/dist/public/assets/{diagram-MHCOC4E2-CbNmfAid.js → diagram-MHCOC4E2-Ce_Cr-t6.js} +1 -1
- package/dist/public/assets/{diagram-XPFHEONP-D1nGQjzf.js → diagram-XPFHEONP-CfS34OHW.js} +1 -1
- package/dist/public/assets/{dist-B1JMTrET.js → dist-6pZqZEaM.js} +1 -1
- package/dist/public/assets/{ebnfDiagram-UZSYDL2S-DGXbVfke.js → ebnfDiagram-UZSYDL2S-BkHabCn2.js} +1 -1
- package/dist/public/assets/{editor.api-e3yQoo1r.js → editor.api-CO4Q0NKb.js} +1 -1
- package/dist/public/assets/{elk-XV6XMXQE-pA-iT6fg.js → elk-XV6XMXQE-JpreOVeR.js} +1 -1
- package/dist/public/assets/{erDiagram-EYBAPDEH-BpgBun7y.js → erDiagram-EYBAPDEH-DDFJwzHx.js} +1 -1
- package/dist/public/assets/{eventmodeling-K75KTNOO-CVfyCcul.js → eventmodeling-K75KTNOO-DsnkF6Zc.js} +1 -1
- package/dist/public/assets/flowDiagram-MALGAFMO-Djxeacjw.js +1 -0
- package/dist/public/assets/{freemarker2-dYGec-fT.js → freemarker2-Cm4NK652.js} +1 -1
- package/dist/public/assets/{ganttDiagram-23REXITY-DjLTTWwA.js → ganttDiagram-23REXITY-C7eedoYb.js} +1 -1
- package/dist/public/assets/gitGraph-VSP46ZUC-qlWN7ijl.js +1 -0
- package/dist/public/assets/{gitGraphDiagram-STJD7YCW-D9m7IVyJ.js → gitGraphDiagram-STJD7YCW-Cuh3ih-z.js} +1 -1
- package/dist/public/assets/{handlebars-Bxerz7ci.js → handlebars-BnE51DUi.js} +1 -1
- package/dist/public/assets/{html-DlVnGsdp.js → html-7koekDfa.js} +1 -1
- package/dist/public/assets/{index-CZmGe9gc.js → index-CQG1XddL.js} +2 -2
- package/dist/public/assets/info-OHQRW6UA-jN69V28z.js +1 -0
- package/dist/public/assets/{infoDiagram-KBXO4MBG-DoYdhkAy.js → infoDiagram-KBXO4MBG-BY3iq7I8.js} +1 -1
- package/dist/public/assets/{ishikawaDiagram-M35NCXHK-Bc0GAInW.js → ishikawaDiagram-M35NCXHK-COjlz24y.js} +1 -1
- package/dist/public/assets/ja-BHBiml1x.js +12 -0
- package/dist/public/assets/{javascript-DZrowo_I.js → javascript-BUZgUhdn.js} +1 -1
- package/dist/public/assets/{journeyDiagram-OPLOXDXO-BM7Dwstu.js → journeyDiagram-OPLOXDXO-DReJE04Q.js} +1 -1
- package/dist/public/assets/{jsonMode-Bs30wPr5.js → jsonMode-qPeVDBDp.js} +1 -1
- package/dist/public/assets/{kanban-definition-BZKZHSQY-CO-Crrdu.js → kanban-definition-BZKZHSQY-BB0_ePvg.js} +1 -1
- package/dist/public/assets/{liquid-dLz9d3ax.js → liquid-CNKL9dLX.js} +1 -1
- package/dist/public/assets/{mdx-DO0x92Kn.js → mdx-D1_UzrBc.js} +1 -1
- package/dist/public/assets/{mermaid-parser.core-BXwArNvw.js → mermaid-parser.core-DiE3z_tV.js} +3 -3
- package/dist/public/assets/{mermaid.core-C6mppfDC.js → mermaid.core-CBCRrLdl.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-D-Y5fKl1.js} +1 -1
- package/dist/public/assets/module-BEbKICB1.js +2475 -0
- package/dist/public/assets/module-Egyx6Otv.js +1 -0
- package/dist/public/assets/{monaco-J_Pr5zjk.js → monaco--czRbHhk.js} +3 -3
- package/dist/public/assets/packet-JDAUHWVQ-Cl8QuXQJ.js +1 -0
- package/dist/public/assets/{pegDiagram-FD4XPPHP-DPDrbtS2.js → pegDiagram-FD4XPPHP-1jx5jc73.js} +1 -1
- package/dist/public/assets/pie-XZMESJXO-kVGJsGZe.js +1 -0
- package/dist/public/assets/{pieDiagram-J4AKIIQI-DXuaepGJ.js → pieDiagram-J4AKIIQI-DGv_WCCu.js} +1 -1
- package/dist/public/assets/{python-nnmIOv4s.js → python-DNZu5LjV.js} +1 -1
- package/dist/public/assets/{quadrantDiagram-XTYBLID2-BuD_-coZ.js → quadrantDiagram-XTYBLID2-BgY0lf8V.js} +1 -1
- package/dist/public/assets/radar-ABXABTNO-Dw71L-n8.js +1 -0
- package/dist/public/assets/railroad-I3PHUGI6-DkaUvI4_.js +1 -0
- package/dist/public/assets/{railroad-abnf-LNEFI6M7-CkCl68xY.js → railroad-abnf-LNEFI6M7-tZ7rJxwM.js} +1 -1
- package/dist/public/assets/{railroad-ebnf-DWYD2UWJ-DO3GiRv6.js → railroad-ebnf-DWYD2UWJ-JO6n_1TK.js} +1 -1
- package/dist/public/assets/{railroad-peg-JR7BVNR7-DZBsKy4P.js → railroad-peg-JR7BVNR7-Bf0PG2YJ.js} +1 -1
- package/dist/public/assets/{railroadDiagram-MRQ6NCDL-BeLq7Mqp.js → railroadDiagram-MRQ6NCDL-BMjog84X.js} +1 -1
- package/dist/public/assets/{razor-l2rRITgB.js → razor-DU-x8qSP.js} +1 -1
- package/dist/public/assets/{requirementDiagram-Y7LWUY3S-BBizkrON.js → requirementDiagram-Y7LWUY3S-CktbbWjr.js} +1 -1
- package/dist/public/assets/{sankeyDiagram-WGJFYUXA-tyo-p7oc.js → sankeyDiagram-WGJFYUXA-CQonOre7.js} +1 -1
- package/dist/public/assets/{sequenceDiagram-5NDRBG5M-BSGPbeJX.js → sequenceDiagram-5NDRBG5M-CAe8-JvA.js} +1 -1
- package/dist/public/assets/{stateDiagram-v2-FJ4FJNEA-Dcdy66MQ.js → stateDiagram-v2-FJ4FJNEA-BrkqOuRm.js} +1 -1
- package/dist/public/assets/{swimlanes-UMQ2AFYF-BJfgQyQo.js → swimlanes-UMQ2AFYF-sLpgHBKo.js} +1 -1
- package/dist/public/assets/swimlanesDiagram-OMPLPG4O-amBdr5Wc.js +8 -0
- package/dist/public/assets/{timeline-definition-SEUHKTQE-Ch8aQwF6.js → timeline-definition-SEUHKTQE-CHE0x-WN.js} +1 -1
- package/dist/public/assets/treeView-D4JQ5SDB-DKLyFqZk.js +1 -0
- package/dist/public/assets/treemap-SAJKECNS-CRG6ogj8.js +1 -0
- package/dist/public/assets/{typescript-LasX-M7S.js → typescript-BrNT2oWW.js} +1 -1
- package/dist/public/assets/{usecaseDiagram-AFA6YXN4-BzlSB4R4.js → usecaseDiagram-AFA6YXN4-DwkFRI5R.js} +1 -1
- package/dist/public/assets/{vennDiagram-NNMJR3RB-4xaWLrMk.js → vennDiagram-NNMJR3RB-BquQVmJq.js} +1 -1
- package/dist/public/assets/wardley-7MLQ67FV-D2jQfflX.js +1 -0
- package/dist/public/assets/{wardleyDiagram-S7YFUSEH-C-iK1p-O.js → wardleyDiagram-S7YFUSEH-sNYFUfMe.js} +1 -1
- package/dist/public/assets/{xml-CGhYQUqn.js → xml-BY65QKv7.js} +1 -1
- package/dist/public/assets/{xychartDiagram-GGNKY7IX-CFsnisdM.js → xychartDiagram-GGNKY7IX-CnWEYuid.js} +1 -1
- package/dist/public/assets/{yaml-BcOaPfuH.js → yaml-BMovUwzO.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 +2773 -626
- package/package.json +39 -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
|
@@ -4,6 +4,44 @@ var TaAccessServer = Symbol("TaAccessServer");
|
|
|
4
4
|
var TaAuthServer = Symbol("TaAuthServer");
|
|
5
5
|
// ../ta-protocol/esm/common/gateway-protocol.js
|
|
6
6
|
var TaGatewayServer = Symbol("TaGatewayServer");
|
|
7
|
+
// ../ta-protocol/esm/common/language.js
|
|
8
|
+
var TaLanguageUtil;
|
|
9
|
+
(function(TaLanguageUtil2) {
|
|
10
|
+
TaLanguageUtil2.ALL = ["zh-CN", "zh-TW", "en-US", "ja-JP"];
|
|
11
|
+
TaLanguageUtil2.NAMES = { "zh-CN": "简体中文", "zh-TW": "繁體中文", "en-US": "English", "ja-JP": "日本語" };
|
|
12
|
+
function of(tag) {
|
|
13
|
+
const said = (tag !== null && tag !== undefined ? tag : "").toLowerCase().replace(/_/g, "-");
|
|
14
|
+
if (/^zh(\b|-)/.test(said)) {
|
|
15
|
+
return /-hant\b/.test(said) || !/-hans\b/.test(said) && /-(tw|hk|mo)\b/.test(said) ? "zh-TW" : "zh-CN";
|
|
16
|
+
}
|
|
17
|
+
return /^ja(\b|-)/.test(said) ? "ja-JP" : "en-US";
|
|
18
|
+
}
|
|
19
|
+
TaLanguageUtil2.of = of;
|
|
20
|
+
function server(env = typeof process === "undefined" ? {} : process.env) {
|
|
21
|
+
return of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG);
|
|
22
|
+
}
|
|
23
|
+
TaLanguageUtil2.server = server;
|
|
24
|
+
function pick(language, words) {
|
|
25
|
+
return words[of(language)];
|
|
26
|
+
}
|
|
27
|
+
TaLanguageUtil2.pick = pick;
|
|
28
|
+
function say(words) {
|
|
29
|
+
return words[server()];
|
|
30
|
+
}
|
|
31
|
+
TaLanguageUtil2.say = say;
|
|
32
|
+
function chinese(language) {
|
|
33
|
+
return of(language).startsWith("zh");
|
|
34
|
+
}
|
|
35
|
+
TaLanguageUtil2.chinese = chinese;
|
|
36
|
+
function cjk(language) {
|
|
37
|
+
return of(language) !== "en-US";
|
|
38
|
+
}
|
|
39
|
+
TaLanguageUtil2.cjk = cjk;
|
|
40
|
+
function list(language, items) {
|
|
41
|
+
return items.join(cjk(language) ? "、" : ", ");
|
|
42
|
+
}
|
|
43
|
+
TaLanguageUtil2.list = list;
|
|
44
|
+
})(TaLanguageUtil || (TaLanguageUtil = {}));
|
|
7
45
|
// ../ta-protocol/esm/common/location.js
|
|
8
46
|
var TaLocation;
|
|
9
47
|
(function(TaLocation2) {
|
|
@@ -173,11 +211,13 @@ var TaPackageServer = Symbol("TaPackageServer");
|
|
|
173
211
|
var TaPackageTextUtil;
|
|
174
212
|
(function(TaPackageTextUtil2) {
|
|
175
213
|
function pick(text, language) {
|
|
176
|
-
var _a, _b, _c, _d;
|
|
214
|
+
var _a, _b, _c, _d, _e;
|
|
177
215
|
if (text === undefined || typeof text === "string") {
|
|
178
216
|
return text;
|
|
179
217
|
}
|
|
180
|
-
|
|
218
|
+
const base = language.split("-")[0];
|
|
219
|
+
const kin = Object.keys(text).find((key) => key.split("-")[0] === base);
|
|
220
|
+
return (_e = (_d = (_c = (_b = (_a = text[language]) !== null && _a !== undefined ? _a : text[base]) !== null && _b !== undefined ? _b : kin === undefined ? undefined : text[kin]) !== null && _c !== undefined ? _c : text.en) !== null && _d !== undefined ? _d : text["en-US"]) !== null && _e !== undefined ? _e : Object.values(text)[0];
|
|
181
221
|
}
|
|
182
222
|
TaPackageTextUtil2.pick = pick;
|
|
183
223
|
})(TaPackageTextUtil || (TaPackageTextUtil = {}));
|
|
@@ -575,46 +615,46 @@ var TaPermissionUtil;
|
|
|
575
615
|
}
|
|
576
616
|
TaPermissionUtil2.host = host;
|
|
577
617
|
})(TaPermissionUtil || (TaPermissionUtil = {}));
|
|
578
|
-
var action = (id, en, zh, more = {}) => ({
|
|
618
|
+
var action = (id, en, zh, tw, ja, more = {}) => ({
|
|
579
619
|
id,
|
|
580
620
|
area: id.split(".")[0],
|
|
581
|
-
title: { en, "zh-CN": zh },
|
|
621
|
+
title: { en, "zh-CN": zh, ...tw ? { "zh-TW": tw } : {}, ...ja ? { "ja-JP": ja } : {} },
|
|
582
622
|
...more
|
|
583
623
|
});
|
|
584
624
|
var TA_ACTIONS = [
|
|
585
|
-
action("chat.view", "See conversations", "查看对话"),
|
|
586
|
-
action("chat.send", "Send in conversations", "在对话里发消息"),
|
|
587
|
-
action("chat.create", "Start conversations", "新建对话"),
|
|
588
|
-
action("chat.stop", "Stop a reply", "停止回复"),
|
|
589
|
-
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话"),
|
|
590
|
-
action("chat.share", "Share by a link", "生成分享链接"),
|
|
591
|
-
action("agent.view", "See agents", "查看智能体"),
|
|
592
|
-
action("agent.use", "Talk with agents", "和智能体对话"),
|
|
593
|
-
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体"),
|
|
594
|
-
action("channel.view", "See channels", "查看频道"),
|
|
595
|
-
action("channel.post", "Post in channels", "在频道里发言"),
|
|
596
|
-
action("channel.manage", "Create and change channels", "新建、管理频道"),
|
|
597
|
-
action("task.view", "See tasks", "查看任务"),
|
|
598
|
-
action("task.create", "Hand out tasks", "派任务"),
|
|
599
|
-
action("task.manage", "Take over and stop tasks", "接管、停止任务"),
|
|
600
|
-
action("files.read", "Read files", "读文件", { scoped: true }),
|
|
601
|
-
action("files.write", "Change files", "改文件", { scoped: true }),
|
|
602
|
-
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", { scoped: true, risky: true }),
|
|
603
|
-
action("commands.terminal", "Open terminals", "打开终端", { scoped: true, risky: true }),
|
|
604
|
-
action("hosts.use", "Use remote hosts", "使用远程主机", { risky: true }),
|
|
605
|
-
action("models.use", "Use the models", "使用模型"),
|
|
606
|
-
action("models.manage", "Sign in to models", "登录和更换模型账号"),
|
|
607
|
-
action("cron.view", "See scheduled tasks", "查看定时任务"),
|
|
608
|
-
action("cron.manage", "Change scheduled tasks", "管理定时任务"),
|
|
609
|
-
action("extensions.use", "Use extensions", "使用扩展"),
|
|
610
|
-
action("extensions.install", "Install and turn off extensions", "安装、停用扩展"),
|
|
611
|
-
action("settings.view", "See settings", "查看设置"),
|
|
612
|
-
action("settings.manage", "Change settings", "修改设置"),
|
|
613
|
-
action("members.view", "See members", "查看成员"),
|
|
614
|
-
action("members.invite", "Invite people", "邀请别人"),
|
|
615
|
-
action("members.approve", "Answer requests", "处理申请"),
|
|
616
|
-
action("members.roles", "Change roles and members", "管理角色和成员"),
|
|
617
|
-
action("audit.view", "See the record", "查看记录")
|
|
625
|
+
action("chat.view", "See conversations", "查看对话", "檢視對話", "会話を確認"),
|
|
626
|
+
action("chat.send", "Send in conversations", "在对话里发消息", "在對話裡發訊息", "会話にメッセージを送信"),
|
|
627
|
+
action("chat.create", "Start conversations", "新建对话", "新建對話", "新しい会話を開始"),
|
|
628
|
+
action("chat.stop", "Stop a reply", "停止回复", "停止回覆", "返信を停止"),
|
|
629
|
+
action("chat.manage", "Rename, archive and close conversations", "改名、归档、关闭对话", "改名、歸檔、關閉對話", "会話の名前変更、アーカイブ、クローズ"),
|
|
630
|
+
action("chat.share", "Share by a link", "生成分享链接", "生成分享連結", "共有リンクで共有"),
|
|
631
|
+
action("agent.view", "See agents", "查看智能体", "檢視智慧體", "エージェントを確認"),
|
|
632
|
+
action("agent.use", "Talk with agents", "和智能体对话", "和智慧體對話", "エージェントと対話"),
|
|
633
|
+
action("agent.edit", "Create, change and remove agents", "新建、修改、删除智能体", "新建、修改、刪除智慧體", "エージェントを作成・変更・削除"),
|
|
634
|
+
action("channel.view", "See channels", "查看频道", "檢視頻道", "チャネルを確認"),
|
|
635
|
+
action("channel.post", "Post in channels", "在频道里发言", "在頻道里發言", "チャネルに投稿"),
|
|
636
|
+
action("channel.manage", "Create and change channels", "新建、管理频道", "新建、管理頻道", "チャネルを作成・管理"),
|
|
637
|
+
action("task.view", "See tasks", "查看任务", "檢視任務", "タスクを確認"),
|
|
638
|
+
action("task.create", "Hand out tasks", "派任务", "派任務", "タスクを割り当て"),
|
|
639
|
+
action("task.manage", "Take over and stop tasks", "接管、停止任务", "接管、停止任務", "タスクを引き継ぎ・停止"),
|
|
640
|
+
action("files.read", "Read files", "读文件", "讀檔案", "ファイルを読取", { scoped: true }),
|
|
641
|
+
action("files.write", "Change files", "改文件", "改檔案", "ファイルを変更", { scoped: true }),
|
|
642
|
+
action("commands.run", "Let Ta run commands", "让 Ta 运行命令", "讓 Ta 執行命令", "Ta にコマンド実行を許可", { scoped: true, risky: true }),
|
|
643
|
+
action("commands.terminal", "Open terminals", "打开终端", "開啟終端機", "ターミナルを開く", { scoped: true, risky: true }),
|
|
644
|
+
action("hosts.use", "Use remote hosts", "使用远程主机", "使用遠端主機", "リモートホストを使用", { risky: true }),
|
|
645
|
+
action("models.use", "Use the models", "使用模型", "使用模型", "モデルを使用"),
|
|
646
|
+
action("models.manage", "Sign in to models", "登录和更换模型账号", "登入和更換模型帳號", "モデルアカウントにサインイン・変更"),
|
|
647
|
+
action("cron.view", "See scheduled tasks", "查看定时任务", "檢視定時任務", "スケジュールタスクを確認"),
|
|
648
|
+
action("cron.manage", "Change scheduled tasks", "管理定时任务", "管理定時任務", "スケジュールタスクを管理"),
|
|
649
|
+
action("extensions.use", "Use extensions", "使用扩展", "使用擴充功能", "拡張機能を使用"),
|
|
650
|
+
action("extensions.install", "Install and turn off extensions", "安装、停用扩展", "安裝、停用擴充功能", "拡張機能をインストール・無効化"),
|
|
651
|
+
action("settings.view", "See settings", "查看设置", "檢視設定", "設定を確認"),
|
|
652
|
+
action("settings.manage", "Change settings", "修改设置", "修改設定", "設定を変更"),
|
|
653
|
+
action("members.view", "See members", "查看成员", "檢視成員", "メンバーを確認"),
|
|
654
|
+
action("members.invite", "Invite people", "邀请别人", "邀請別人", "メンバーを招待"),
|
|
655
|
+
action("members.approve", "Answer requests", "处理申请", "處理申請", "リクエストに対応"),
|
|
656
|
+
action("members.roles", "Change roles and members", "管理角色和成员", "管理角色和成員", "ロールとメンバーを管理"),
|
|
657
|
+
action("audit.view", "See the record", "查看记录", "檢視記錄", "レコードを確認")
|
|
618
658
|
];
|
|
619
659
|
var TaActionUtil;
|
|
620
660
|
(function(TaActionUtil2) {
|
|
@@ -624,8 +664,18 @@ var TaActionUtil;
|
|
|
624
664
|
}
|
|
625
665
|
TaActionUtil2.info = info;
|
|
626
666
|
function title(id, language) {
|
|
627
|
-
|
|
628
|
-
|
|
667
|
+
var _a;
|
|
668
|
+
var _b, _c;
|
|
669
|
+
const title2 = (_a = byId.get(id)) === null || _a === undefined ? undefined : _a.title;
|
|
670
|
+
if (!title2) {
|
|
671
|
+
return id;
|
|
672
|
+
}
|
|
673
|
+
return TaLanguageUtil.pick(language, {
|
|
674
|
+
"zh-CN": title2["zh-CN"],
|
|
675
|
+
"zh-TW": (_b = title2["zh-TW"]) !== null && _b !== undefined ? _b : title2["zh-CN"],
|
|
676
|
+
"en-US": title2.en,
|
|
677
|
+
"ja-JP": (_c = title2["ja-JP"]) !== null && _c !== undefined ? _c : title2.en
|
|
678
|
+
});
|
|
629
679
|
}
|
|
630
680
|
TaActionUtil2.title = title;
|
|
631
681
|
function inside(dir, path) {
|
|
@@ -1379,16 +1429,16 @@ var AgentCards;
|
|
|
1379
1429
|
}
|
|
1380
1430
|
}
|
|
1381
1431
|
AgentCards.freeName = freeName;
|
|
1382
|
-
function adapt(cwd,
|
|
1432
|
+
function adapt(cwd, language2) {
|
|
1383
1433
|
const context = [
|
|
1384
1434
|
AgentCards.MARK,
|
|
1385
|
-
`You were just added to this Ta from a card someone shared: the role in your instructions is theirs, written for their own work. Fit it to the project of your directory (${cwd}): look at it first (its README, manifests such as package.json, its layout, how it builds and tests), then rewrite your role for it, keeping what you are for, and save it with update_my_role. Then tell the user in a few sentences, in ${zh
|
|
1435
|
+
`You were just added to this Ta from a card someone shared: the role in your instructions is theirs, written for their own work. Fit it to the project of your directory (${cwd}): look at it first (its README, manifests such as package.json, its layout, how it builds and tests), then rewrite your role for it, keeping what you are for, and save it with update_my_role. Then tell the user in a few sentences, in ${TaLanguageUtil.pick(language2, { "zh-CN": "Chinese", "zh-TW": "Traditional Chinese", "en-US": "English", "ja-JP": "Japanese" })}, what you changed and what you can do here. Change no files.`
|
|
1386
1436
|
].join(`
|
|
1387
1437
|
`);
|
|
1388
1438
|
return `<context>
|
|
1389
1439
|
${context}
|
|
1390
1440
|
</context>
|
|
1391
|
-
${
|
|
1441
|
+
${TaLanguageUtil.pick(language2, { "zh-CN": "看看这个项目,把你的职责调整得贴合这里", "zh-TW": "看看這個專案,把你的職責調整得貼合這裡", "en-US": "Look at this project and fit your role to it", "ja-JP": "このプロジェクトを見て、ロールをそれに適応させてください" })}`;
|
|
1392
1442
|
}
|
|
1393
1443
|
AgentCards.adapt = adapt;
|
|
1394
1444
|
})(AgentCards ||= {});
|
|
@@ -1418,7 +1468,7 @@ var HandOff;
|
|
|
1418
1468
|
return `${target.kind === "agent" ? "@" : "#"}${target.name}`;
|
|
1419
1469
|
}
|
|
1420
1470
|
HandOff.ref = ref;
|
|
1421
|
-
function ask(
|
|
1471
|
+
function ask(language2, to) {
|
|
1422
1472
|
const fence = "```";
|
|
1423
1473
|
const context = [
|
|
1424
1474
|
`[ta-handoff:${to}]`,
|
|
@@ -1432,7 +1482,12 @@ var HandOff;
|
|
|
1432
1482
|
`- When the conversation holds nothing to hand over yet, say so and ask what ${to} should do.`
|
|
1433
1483
|
].join(`
|
|
1434
1484
|
`);
|
|
1435
|
-
const line =
|
|
1485
|
+
const line = TaLanguageUtil.pick(language2, {
|
|
1486
|
+
"zh-CN": `把这件事交给 ${to}`,
|
|
1487
|
+
"zh-TW": `把這件事交給 ${to}`,
|
|
1488
|
+
"en-US": `Hand this over to ${to}`,
|
|
1489
|
+
"ja-JP": `これを ${to} に引き継ぐ`
|
|
1490
|
+
});
|
|
1436
1491
|
return `<context>
|
|
1437
1492
|
${context}
|
|
1438
1493
|
</context>
|
|
@@ -1461,9 +1516,14 @@ ${line}`;
|
|
|
1461
1516
|
return brief || undefined;
|
|
1462
1517
|
}
|
|
1463
1518
|
HandOff.find = find;
|
|
1464
|
-
function message(origin, brief,
|
|
1465
|
-
const title = origin.title?.trim() || (
|
|
1466
|
-
const head =
|
|
1519
|
+
function message(origin, brief, language2) {
|
|
1520
|
+
const title = origin.title?.trim() || TaLanguageUtil.pick(language2, { "zh-CN": "一个对话", "zh-TW": "一個對話", "en-US": "a conversation", "ja-JP": "ある会話" });
|
|
1521
|
+
const head = TaLanguageUtil.pick(language2, {
|
|
1522
|
+
"zh-CN": `(交接自“${title}”)`,
|
|
1523
|
+
"zh-TW": `(交接自「${title}」)`,
|
|
1524
|
+
"en-US": `(Handed over from “${title}”)`,
|
|
1525
|
+
"ja-JP": `(“${title}” から引き継ぎました)`
|
|
1526
|
+
});
|
|
1467
1527
|
const context = [
|
|
1468
1528
|
"The user handed you this work from another conversation of theirs, which you do not see; the brief below is all it says. Go on from there in this conversation, which the user follows; ask them when the brief leaves out something you need.",
|
|
1469
1529
|
origin.sessionFile ? `That conversation is pi's session file ${origin.sessionFile}${origin.cwd ? `, working in ${origin.cwd}` : ""}: read it only when the brief is not enough.` : ""
|
|
@@ -1477,15 +1537,20 @@ ${head}
|
|
|
1477
1537
|
${brief.trim()}`;
|
|
1478
1538
|
}
|
|
1479
1539
|
HandOff.message = message;
|
|
1480
|
-
function channelText(origin, brief,
|
|
1481
|
-
const title = origin.title?.trim() || (
|
|
1482
|
-
return `${
|
|
1540
|
+
function channelText(origin, brief, language2) {
|
|
1541
|
+
const title = origin.title?.trim() || TaLanguageUtil.pick(language2, { "zh-CN": "一个对话", "zh-TW": "一個對話", "en-US": "a conversation", "ja-JP": "ある会話" });
|
|
1542
|
+
return `${TaLanguageUtil.pick(language2, {
|
|
1543
|
+
"zh-CN": `(交接自“${title}”)`,
|
|
1544
|
+
"zh-TW": `(交接自「${title}」)`,
|
|
1545
|
+
"en-US": `(Handed over from “${title}”)`,
|
|
1546
|
+
"ja-JP": `(“${title}” から引き継ぎました)`
|
|
1547
|
+
})}
|
|
1483
1548
|
|
|
1484
1549
|
${brief.trim()}`;
|
|
1485
1550
|
}
|
|
1486
1551
|
HandOff.channelText = channelText;
|
|
1487
1552
|
function serverLanguage(env = typeof process === "undefined" ? {} : process.env) {
|
|
1488
|
-
return
|
|
1553
|
+
return TaLanguageUtil.of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || "");
|
|
1489
1554
|
}
|
|
1490
1555
|
HandOff.serverLanguage = serverLanguage;
|
|
1491
1556
|
function result(target) {
|
|
@@ -1686,13 +1751,13 @@ class TeamService {
|
|
|
1686
1751
|
}
|
|
1687
1752
|
return card;
|
|
1688
1753
|
}
|
|
1689
|
-
async addFromCard(input,
|
|
1754
|
+
async addFromCard(input, language2 = HandOff.serverLanguage()) {
|
|
1690
1755
|
const card = await this.openCard(input.link, input.password);
|
|
1691
1756
|
const agent = await this.createAgent({ name: AgentCards.freeName(this.team, card.name), role: card.role, cwd: input.cwd, face: card.face });
|
|
1692
1757
|
const sessionId = await this.session(agent);
|
|
1693
1758
|
await this.host.prompt(sessionId, {
|
|
1694
1759
|
clientMessageId: ChannelsUtil.newId("card"),
|
|
1695
|
-
message: AgentCards.adapt(agent.cwd ?? (await this.host.getServerInfo()).cwd,
|
|
1760
|
+
message: AgentCards.adapt(agent.cwd ?? (await this.host.getServerInfo()).cwd, language2)
|
|
1696
1761
|
});
|
|
1697
1762
|
return { agent, sessionId };
|
|
1698
1763
|
}
|
|
@@ -1754,7 +1819,7 @@ class TeamService {
|
|
|
1754
1819
|
await this.settle(message.id);
|
|
1755
1820
|
return { channel, message, done };
|
|
1756
1821
|
}
|
|
1757
|
-
async handOff(to, brief, origin,
|
|
1822
|
+
async handOff(to, brief, origin, language2 = HandOff.serverLanguage()) {
|
|
1758
1823
|
const text = brief.trim();
|
|
1759
1824
|
if (!text) {
|
|
1760
1825
|
throw new Error("The brief is empty: write what the receiver needs to go on.");
|
|
@@ -1766,7 +1831,7 @@ class TeamService {
|
|
|
1766
1831
|
const sessionId = await this.session(agent);
|
|
1767
1832
|
await this.host.prompt(sessionId, {
|
|
1768
1833
|
clientMessageId: ChannelsUtil.newId("handoff"),
|
|
1769
|
-
message: HandOff.message(where, text,
|
|
1834
|
+
message: HandOff.message(where, text, language2),
|
|
1770
1835
|
streamingBehavior: "followUp"
|
|
1771
1836
|
});
|
|
1772
1837
|
return { kind: "agent", id: agent.id, name: agent.name };
|
|
@@ -1776,7 +1841,7 @@ class TeamService {
|
|
|
1776
1841
|
const known = [...this.team.agents.map((item) => `@${item.name}`), ...this.team.channels.map((item) => `#${item.name}`)].join(", ");
|
|
1777
1842
|
throw new Error(`No agent or channel is named ${to}. The team: ${known || "nobody yet; create an agent first"}.`);
|
|
1778
1843
|
}
|
|
1779
|
-
await this.post(channel.id, TA, HandOff.channelText(where, text,
|
|
1844
|
+
await this.post(channel.id, TA, HandOff.channelText(where, text, language2));
|
|
1780
1845
|
await this.focus(channel.id);
|
|
1781
1846
|
return { kind: "channel", id: channel.id, name: channel.name };
|
|
1782
1847
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
import { type RelayAgentCard } from '@celljs/ta-relay/lib/common/relay-card';
|
|
2
3
|
import { type Agent, type Team } from './channels-util';
|
|
3
4
|
/**
|
|
@@ -14,6 +15,6 @@ export declare namespace AgentCards {
|
|
|
14
15
|
/** The name of the card, or with `-2`, `-3`… when an agent has it: what `@` names here. */
|
|
15
16
|
function freeName(team: Team, name: string): string;
|
|
16
17
|
/** What an agent added from a card is told first: look at the project, fit the role, save it, say what changed. */
|
|
17
|
-
function adapt(cwd: string,
|
|
18
|
+
function adapt(cwd: string, language: TaLanguage): string;
|
|
18
19
|
}
|
|
19
20
|
//# sourceMappingURL=agent-cards.d.ts.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentCards = void 0;
|
|
4
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
4
5
|
const redactor_1 = require("@celljs/ta-protocol/lib/common/redactor");
|
|
5
6
|
const relay_card_1 = require("@celljs/ta-relay/lib/common/relay-card");
|
|
6
7
|
const channels_util_1 = require("./channels-util");
|
|
@@ -46,12 +47,12 @@ var AgentCards;
|
|
|
46
47
|
}
|
|
47
48
|
AgentCards.freeName = freeName;
|
|
48
49
|
/** What an agent added from a card is told first: look at the project, fit the role, save it, say what changed. */
|
|
49
|
-
function adapt(cwd,
|
|
50
|
+
function adapt(cwd, language) {
|
|
50
51
|
const context = [
|
|
51
52
|
AgentCards.MARK,
|
|
52
|
-
`You were just added to this Ta from a card someone shared: the role in your instructions is theirs, written for their own work. Fit it to the project of your directory (${cwd}): look at it first (its README, manifests such as package.json, its layout, how it builds and tests), then rewrite your role for it, keeping what you are for, and save it with update_my_role. Then tell the user in a few sentences, in ${zh
|
|
53
|
+
`You were just added to this Ta from a card someone shared: the role in your instructions is theirs, written for their own work. Fit it to the project of your directory (${cwd}): look at it first (its README, manifests such as package.json, its layout, how it builds and tests), then rewrite your role for it, keeping what you are for, and save it with update_my_role. Then tell the user in a few sentences, in ${language_1.TaLanguageUtil.pick(language, { 'zh-CN': 'Chinese', 'zh-TW': 'Traditional Chinese', 'en-US': 'English', 'ja-JP': 'Japanese' })}, what you changed and what you can do here. Change no files.`,
|
|
53
54
|
].join('\n');
|
|
54
|
-
return `<context>\n${context}\n</context>\n${
|
|
55
|
+
return `<context>\n${context}\n</context>\n${language_1.TaLanguageUtil.pick(language, { 'zh-CN': '看看这个项目,把你的职责调整得贴合这里', 'zh-TW': '看看這個專案,把你的職責調整得貼合這裡', 'en-US': 'Look at this project and fit your role to it', 'ja-JP': 'このプロジェクトを見て、ロールをそれに適応させてください' })}`;
|
|
55
56
|
}
|
|
56
57
|
AgentCards.adapt = adapt;
|
|
57
58
|
})(AgentCards || (exports.AgentCards = AgentCards = {}));
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* them. With the tool hand_off, or, for a model without Ta's tools (another coding agent), in a `ta-handoff`
|
|
5
5
|
* block the pi extension reads at the end of the turn the + of the message box asked for.
|
|
6
6
|
*/
|
|
7
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
7
8
|
export declare namespace HandOff {
|
|
8
9
|
const TOOL = "hand_off";
|
|
9
10
|
/** The custom message of a hand-off in the conversation it came from: the page draws it as a card. */
|
|
@@ -50,17 +51,17 @@ export declare namespace HandOff {
|
|
|
50
51
|
/** `@name` of an agent, `#name` of a channel. */
|
|
51
52
|
function ref(target: Pick<Target, 'kind' | 'name'>): string;
|
|
52
53
|
/** What the + of the message box sends to the conversation: a line for the user, the way for the model in a `<context>` block. */
|
|
53
|
-
function ask(language:
|
|
54
|
+
function ask(language: TaLanguage, to: string): string;
|
|
54
55
|
/** To whom the user asked to hand it over, from the text of their message; undefined when it is not such an ask. */
|
|
55
56
|
function asked(text: string): string | undefined;
|
|
56
57
|
/** The brief of the last `ta-handoff` block of an answer; undefined when it has none or it is empty. */
|
|
57
58
|
function find(text: string): string | undefined;
|
|
58
59
|
/** What the receiver reads: a line of where it comes from, which the user sees too, then the brief; the rest for the model. */
|
|
59
|
-
function message(origin: Origin, brief: string, language:
|
|
60
|
+
function message(origin: Origin, brief: string, language: TaLanguage): string;
|
|
60
61
|
/** What a channel shows of it, and its agents read: where it comes from, then the brief. */
|
|
61
|
-
function channelText(origin: Origin, brief: string, language:
|
|
62
|
+
function channelText(origin: Origin, brief: string, language: TaLanguage): string;
|
|
62
63
|
/** The language of Ta's pages (`TA_LANGUAGE`) or the computer's, for what the server writes. */
|
|
63
|
-
function serverLanguage(env?: Record<string, string | undefined>):
|
|
64
|
+
function serverLanguage(env?: Record<string, string | undefined>): TaLanguage;
|
|
64
65
|
/** What the model reads back from the tool. */
|
|
65
66
|
function result(target: Target): string;
|
|
66
67
|
}
|
|
@@ -7,6 +7,7 @@ exports.HandOff = void 0;
|
|
|
7
7
|
* them. With the tool hand_off, or, for a model without Ta's tools (another coding agent), in a `ta-handoff`
|
|
8
8
|
* block the pi extension reads at the end of the turn the + of the message box asked for.
|
|
9
9
|
*/
|
|
10
|
+
const language_1 = require("@celljs/ta-protocol/lib/common/language");
|
|
10
11
|
var HandOff;
|
|
11
12
|
(function (HandOff) {
|
|
12
13
|
HandOff.TOOL = 'hand_off';
|
|
@@ -49,7 +50,12 @@ var HandOff;
|
|
|
49
50
|
fence,
|
|
50
51
|
`- When the conversation holds nothing to hand over yet, say so and ask what ${to} should do.`,
|
|
51
52
|
].join('\n');
|
|
52
|
-
const line = language
|
|
53
|
+
const line = language_1.TaLanguageUtil.pick(language, {
|
|
54
|
+
'zh-CN': `把这件事交给 ${to}`,
|
|
55
|
+
'zh-TW': `把這件事交給 ${to}`,
|
|
56
|
+
'en-US': `Hand this over to ${to}`,
|
|
57
|
+
'ja-JP': `これを ${to} に引き継ぐ`,
|
|
58
|
+
});
|
|
53
59
|
return `<context>\n${context}\n</context>\n${line}`;
|
|
54
60
|
}
|
|
55
61
|
HandOff.ask = ask;
|
|
@@ -80,8 +86,13 @@ var HandOff;
|
|
|
80
86
|
/** What the receiver reads: a line of where it comes from, which the user sees too, then the brief; the rest for the model. */
|
|
81
87
|
function message(origin, brief, language) {
|
|
82
88
|
var _a;
|
|
83
|
-
const title = ((_a = origin.title) === null || _a === void 0 ? void 0 : _a.trim()) || (language
|
|
84
|
-
const head = language
|
|
89
|
+
const title = ((_a = origin.title) === null || _a === void 0 ? void 0 : _a.trim()) || language_1.TaLanguageUtil.pick(language, { 'zh-CN': '一个对话', 'zh-TW': '一個對話', 'en-US': 'a conversation', 'ja-JP': 'ある会話' });
|
|
90
|
+
const head = language_1.TaLanguageUtil.pick(language, {
|
|
91
|
+
'zh-CN': `(交接自“${title}”)`,
|
|
92
|
+
'zh-TW': `(交接自「${title}」)`,
|
|
93
|
+
'en-US': `(Handed over from “${title}”)`,
|
|
94
|
+
'ja-JP': `(“${title}” から引き継ぎました)`,
|
|
95
|
+
});
|
|
85
96
|
const context = [
|
|
86
97
|
'The user handed you this work from another conversation of theirs, which you do not see; the brief below is all it says. Go on from there in this conversation, which the user follows; ask them when the brief leaves out something you need.',
|
|
87
98
|
origin.sessionFile
|
|
@@ -96,13 +107,18 @@ var HandOff;
|
|
|
96
107
|
/** What a channel shows of it, and its agents read: where it comes from, then the brief. */
|
|
97
108
|
function channelText(origin, brief, language) {
|
|
98
109
|
var _a;
|
|
99
|
-
const title = ((_a = origin.title) === null || _a === void 0 ? void 0 : _a.trim()) || (language
|
|
100
|
-
return `${language
|
|
110
|
+
const title = ((_a = origin.title) === null || _a === void 0 ? void 0 : _a.trim()) || language_1.TaLanguageUtil.pick(language, { 'zh-CN': '一个对话', 'zh-TW': '一個對話', 'en-US': 'a conversation', 'ja-JP': 'ある会話' });
|
|
111
|
+
return `${language_1.TaLanguageUtil.pick(language, {
|
|
112
|
+
'zh-CN': `(交接自“${title}”)`,
|
|
113
|
+
'zh-TW': `(交接自「${title}」)`,
|
|
114
|
+
'en-US': `(Handed over from “${title}”)`,
|
|
115
|
+
'ja-JP': `(“${title}” から引き継ぎました)`,
|
|
116
|
+
})}\n\n${brief.trim()}`;
|
|
101
117
|
}
|
|
102
118
|
HandOff.channelText = channelText;
|
|
103
119
|
/** The language of Ta's pages (`TA_LANGUAGE`) or the computer's, for what the server writes. */
|
|
104
120
|
function serverLanguage(env = typeof process === 'undefined' ? {} : process.env) {
|
|
105
|
-
return
|
|
121
|
+
return language_1.TaLanguageUtil.of(env.TA_LANGUAGE || env.LC_ALL || env.LC_MESSAGES || env.LANG || '');
|
|
106
122
|
}
|
|
107
123
|
HandOff.serverLanguage = serverLanguage;
|
|
108
124
|
/** What the model reads back from the tool. */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type TaLanguage } from '@celljs/ta-protocol/lib/common/language';
|
|
1
2
|
declare const EN: {
|
|
2
3
|
readonly title: 'Double';
|
|
3
4
|
readonly channels: 'Channels';
|
|
@@ -179,6 +180,8 @@ declare const EN: {
|
|
|
179
180
|
export type Words = {
|
|
180
181
|
readonly [K in keyof typeof EN]: string;
|
|
181
182
|
};
|
|
183
|
+
/** The words of each language of Ta, checked by scripts/check-i18n.ts. */
|
|
184
|
+
export declare const WORDS: Readonly<Record<TaLanguage, Words>>;
|
|
182
185
|
export declare namespace ChannelWords {
|
|
183
186
|
function of(language: string): Words;
|
|
184
187
|
function format(text: string, values: Record<string, string>): string;
|