@celljs/ta-web 4.37.0 → 4.39.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/README.en.md +1 -1
- package/README.md +1 -1
- package/esm/browser/assistant/assistant-thread.d.ts +1 -1
- package/esm/browser/assistant/chat-task-source.js +2 -1
- package/esm/browser/components/app-contexts.js +11 -9
- package/esm/browser/components/chat-asks.d.ts +4 -1
- package/esm/browser/components/chat-asks.js +10 -0
- package/esm/browser/components/chat-list-row.js +5 -3
- package/esm/browser/components/cloud-network.d.ts +17 -0
- package/esm/browser/components/cloud-network.js +105 -0
- package/esm/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/esm/browser/components/composer-box-protocol.d.ts +5 -0
- package/esm/browser/components/composer-box.js +11 -14
- package/esm/browser/components/composer-media.d.ts +26 -0
- package/esm/browser/components/composer-media.js +37 -0
- package/esm/browser/components/composer-target.d.ts +2 -2
- package/esm/browser/components/composer-target.js +3 -3
- package/esm/browser/components/composer.js +1 -0
- package/esm/browser/components/folder-picker.d.ts +3 -3
- package/esm/browser/components/folder-picker.js +5 -15
- package/esm/browser/components/host-view.d.ts +1 -1
- package/esm/browser/components/link.d.ts +7 -1
- package/esm/browser/components/link.js +24 -5
- package/esm/browser/components/markdown.d.ts +2 -2
- package/esm/browser/components/markdown.js +77 -5
- package/esm/browser/components/relay-services.d.ts +0 -2
- package/esm/browser/components/relay-services.js +1 -11
- package/esm/browser/components/remote-hosts.d.ts +11 -7
- package/esm/browser/components/remote-hosts.js +94 -50
- package/esm/browser/components/remote-machines.d.ts +21 -0
- package/esm/browser/components/remote-machines.js +56 -0
- package/esm/browser/components/remote-prompts.d.ts +2 -3
- package/esm/browser/components/remote-prompts.js +3 -15
- package/esm/browser/components/remote-steps.d.ts +19 -0
- package/esm/browser/components/remote-steps.js +26 -0
- package/esm/browser/components/session-view.js +10 -6
- package/esm/browser/components/settings-controls.d.ts +3 -1
- package/esm/browser/components/settings-controls.js +2 -2
- package/esm/browser/components/web-composer.d.ts +1 -1
- package/esm/browser/components/web-composer.js +12 -3
- package/esm/browser/device/photo-picker.d.ts +11 -3
- package/esm/browser/device/photo-picker.js +26 -9
- package/esm/browser/device/video-picks.d.ts +24 -0
- package/esm/browser/device/video-picks.js +104 -0
- package/esm/browser/extension/icons.js +3 -1
- package/esm/browser/extension/web-access.js +4 -1
- package/esm/browser/extension/web-api-code.d.ts +36 -0
- package/esm/browser/extension/web-api-code.js +3 -0
- package/esm/browser/extension/web-api-components.d.ts +22 -0
- package/esm/browser/extension/web-api-contributions.d.ts +0 -31
- package/esm/browser/extension/web-api-menus.d.ts +29 -3
- package/esm/browser/extension/web-api-play.d.ts +29 -0
- package/esm/browser/extension/web-api-play.js +2 -0
- package/esm/browser/extension/web-api-services.d.ts +6 -0
- package/esm/browser/extension/web-api-spec.js +5 -0
- package/esm/browser/extension/web-api-terminal.d.ts +20 -0
- package/esm/browser/extension/web-extension-api.d.ts +12 -17
- package/esm/browser/extension/web-extension-context.d.ts +1 -1
- package/esm/browser/extension/web-extension-context.js +6 -3
- package/esm/browser/extension/web-extension-protocol.d.ts +5 -1
- package/esm/browser/extension/web-extension-protocol.js +2 -0
- package/esm/browser/extension/web-extension-run.d.ts +6 -4
- package/esm/browser/extension/web-extension-run.js +18 -9
- package/esm/browser/extension/web-extensions-running.js +38 -7
- package/esm/browser/extension/web-on-demand.d.ts +5 -0
- package/esm/browser/extension/web-on-demand.js +11 -0
- package/esm/browser/i18n/en/assistant.d.ts +3 -0
- package/esm/browser/i18n/en/assistant.js +3 -0
- package/esm/browser/i18n/en/chat.d.ts +1 -0
- package/esm/browser/i18n/en/chat.js +1 -0
- package/esm/browser/i18n/en/common.d.ts +1 -0
- package/esm/browser/i18n/en/common.js +1 -0
- package/esm/browser/i18n/en/discover.d.ts +2 -0
- package/esm/browser/i18n/en/discover.js +2 -0
- package/esm/browser/i18n/en/service.d.ts +26 -2
- package/esm/browser/i18n/en/service.js +34 -10
- package/esm/browser/i18n/ja/assistant.js +3 -0
- package/esm/browser/i18n/ja/chat.js +1 -0
- package/esm/browser/i18n/ja/common.js +1 -0
- package/esm/browser/i18n/ja/discover.js +2 -0
- package/esm/browser/i18n/ja/service.js +34 -10
- package/esm/browser/i18n/locales.d.ts +34 -3
- package/esm/browser/i18n/messages.d.ts +33 -2
- package/esm/browser/i18n/zh/assistant.js +3 -0
- package/esm/browser/i18n/zh/chat.js +1 -0
- package/esm/browser/i18n/zh/common.js +1 -0
- package/esm/browser/i18n/zh/discover.js +2 -0
- package/esm/browser/i18n/zh/service.js +34 -10
- package/esm/browser/i18n/zh-tw/assistant.js +3 -0
- package/esm/browser/i18n/zh-tw/chat.js +1 -0
- package/esm/browser/i18n/zh-tw/common.js +1 -0
- package/esm/browser/i18n/zh-tw/discover.js +2 -0
- package/esm/browser/i18n/zh-tw/service.js +34 -10
- package/esm/browser/markdown/code-renderers.d.ts +6 -1
- package/esm/browser/markdown/code-renderers.js +4 -0
- package/esm/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/esm/browser/sandbox/work/work-api.d.ts +113 -0
- package/esm/browser/sandbox/work/work-api.js +95 -0
- package/esm/browser/sandbox/work/work-docs.d.ts +18 -0
- package/esm/browser/sandbox/work/work-docs.js +66 -0
- package/esm/browser/sandbox/work/work-frame.d.ts +27 -0
- package/esm/browser/sandbox/work/work-frame.js +124 -0
- package/esm/browser/share/shared-extensions.d.ts +2 -1
- package/esm/browser/style/conversation.d.ts +1 -1
- package/esm/browser/style/conversation.js +10 -0
- package/esm/browser/style/dialogs.d.ts +1 -1
- package/esm/browser/style/dialogs.js +1 -4
- package/esm/browser/style/pages.d.ts +1 -1
- package/esm/browser/style/pages.js +10 -1
- package/esm/browser/terminal/terminal-osc.d.ts +15 -0
- package/esm/browser/terminal/terminal-osc.js +91 -0
- package/esm/browser/terminal/web-terminal.d.ts +4 -7
- package/esm/browser/terminal/web-terminal.js +22 -26
- package/esm/browser/util/link.d.ts +6 -1
- package/esm/browser/util/link.js +11 -0
- package/esm/browser/workbench-protocol.d.ts +2 -0
- package/esm/browser/workbench-services.d.ts +2 -0
- package/esm/browser/workbench-services.js +5 -0
- package/esm/browser/workbench.js +3 -0
- package/lib/browser/assistant/assistant-thread.d.ts +1 -1
- package/lib/browser/assistant/chat-task-source.js +2 -1
- package/lib/browser/components/app-contexts.js +10 -8
- package/lib/browser/components/chat-asks.d.ts +4 -1
- package/lib/browser/components/chat-asks.js +10 -0
- package/lib/browser/components/chat-list-row.js +5 -3
- package/lib/browser/components/cloud-network.d.ts +18 -0
- package/lib/browser/components/cloud-network.js +142 -0
- package/lib/browser/components/cloud-sign-in-view.d.ts +1 -1
- package/lib/browser/components/composer-box-protocol.d.ts +5 -0
- package/lib/browser/components/composer-box.js +9 -12
- package/lib/browser/components/composer-media.d.ts +27 -0
- package/lib/browser/components/composer-media.js +74 -0
- package/lib/browser/components/composer-target.d.ts +2 -2
- package/lib/browser/components/composer-target.js +3 -3
- package/lib/browser/components/composer.js +1 -0
- package/lib/browser/components/folder-picker.d.ts +3 -3
- package/lib/browser/components/folder-picker.js +5 -15
- package/lib/browser/components/host-view.d.ts +1 -1
- package/lib/browser/components/link.d.ts +7 -1
- package/lib/browser/components/link.js +25 -6
- package/lib/browser/components/markdown.d.ts +2 -2
- package/lib/browser/components/markdown.js +75 -3
- package/lib/browser/components/relay-services.d.ts +0 -2
- package/lib/browser/components/relay-services.js +1 -11
- package/lib/browser/components/remote-hosts.d.ts +11 -7
- package/lib/browser/components/remote-hosts.js +92 -48
- package/lib/browser/components/remote-machines.d.ts +22 -0
- package/lib/browser/components/remote-machines.js +59 -0
- package/lib/browser/components/remote-prompts.d.ts +2 -3
- package/lib/browser/components/remote-prompts.js +3 -15
- package/lib/browser/components/remote-steps.d.ts +20 -0
- package/lib/browser/components/remote-steps.js +63 -0
- package/lib/browser/components/session-view.js +8 -4
- package/lib/browser/components/settings-controls.d.ts +3 -1
- package/lib/browser/components/settings-controls.js +2 -2
- package/lib/browser/components/web-composer.d.ts +1 -1
- package/lib/browser/components/web-composer.js +12 -3
- package/lib/browser/device/photo-picker.d.ts +11 -3
- package/lib/browser/device/photo-picker.js +26 -9
- package/lib/browser/device/video-picks.d.ts +25 -0
- package/lib/browser/device/video-picks.js +107 -0
- package/lib/browser/extension/icons.js +2 -0
- package/lib/browser/extension/web-access.js +4 -1
- package/lib/browser/extension/web-api-code.d.ts +37 -0
- package/lib/browser/extension/web-api-code.js +4 -0
- package/lib/browser/extension/web-api-components.d.ts +22 -0
- package/lib/browser/extension/web-api-contributions.d.ts +0 -31
- package/lib/browser/extension/web-api-menus.d.ts +29 -3
- package/lib/browser/extension/web-api-play.d.ts +30 -0
- package/lib/browser/extension/web-api-play.js +3 -0
- package/lib/browser/extension/web-api-services.d.ts +6 -0
- package/lib/browser/extension/web-api-spec.js +5 -0
- package/lib/browser/extension/web-api-terminal.d.ts +20 -0
- package/lib/browser/extension/web-extension-api.d.ts +12 -17
- package/lib/browser/extension/web-extension-context.d.ts +1 -1
- package/lib/browser/extension/web-extension-context.js +6 -3
- package/lib/browser/extension/web-extension-protocol.d.ts +5 -1
- package/lib/browser/extension/web-extension-protocol.js +2 -0
- package/lib/browser/extension/web-extension-run.d.ts +6 -4
- package/lib/browser/extension/web-extension-run.js +18 -9
- package/lib/browser/extension/web-extensions-running.js +38 -7
- package/lib/browser/extension/web-on-demand.d.ts +5 -0
- package/lib/browser/extension/web-on-demand.js +11 -0
- package/lib/browser/i18n/en/assistant.d.ts +3 -0
- package/lib/browser/i18n/en/assistant.js +3 -0
- package/lib/browser/i18n/en/chat.d.ts +1 -0
- package/lib/browser/i18n/en/chat.js +1 -0
- package/lib/browser/i18n/en/common.d.ts +1 -0
- package/lib/browser/i18n/en/common.js +1 -0
- package/lib/browser/i18n/en/discover.d.ts +2 -0
- package/lib/browser/i18n/en/discover.js +2 -0
- package/lib/browser/i18n/en/service.d.ts +26 -2
- package/lib/browser/i18n/en/service.js +34 -10
- package/lib/browser/i18n/ja/assistant.js +3 -0
- package/lib/browser/i18n/ja/chat.js +1 -0
- package/lib/browser/i18n/ja/common.js +1 -0
- package/lib/browser/i18n/ja/discover.js +2 -0
- package/lib/browser/i18n/ja/service.js +34 -10
- package/lib/browser/i18n/locales.d.ts +34 -3
- package/lib/browser/i18n/messages.d.ts +33 -2
- package/lib/browser/i18n/zh/assistant.js +3 -0
- package/lib/browser/i18n/zh/chat.js +1 -0
- package/lib/browser/i18n/zh/common.js +1 -0
- package/lib/browser/i18n/zh/discover.js +2 -0
- package/lib/browser/i18n/zh/service.js +34 -10
- package/lib/browser/i18n/zh-tw/assistant.js +3 -0
- package/lib/browser/i18n/zh-tw/chat.js +1 -0
- package/lib/browser/i18n/zh-tw/common.js +1 -0
- package/lib/browser/i18n/zh-tw/discover.js +2 -0
- package/lib/browser/i18n/zh-tw/service.js +34 -10
- package/lib/browser/markdown/code-renderers.d.ts +6 -1
- package/lib/browser/markdown/code-renderers.js +5 -1
- package/lib/browser/sandbox/sandbox-runtime-code.js +1 -1
- package/lib/browser/sandbox/work/work-api.d.ts +114 -0
- package/lib/browser/sandbox/work/work-api.js +99 -0
- package/lib/browser/sandbox/work/work-docs.d.ts +19 -0
- package/lib/browser/sandbox/work/work-docs.js +69 -0
- package/lib/browser/sandbox/work/work-frame.d.ts +28 -0
- package/lib/browser/sandbox/work/work-frame.js +160 -0
- package/lib/browser/share/shared-extensions.d.ts +2 -1
- package/lib/browser/style/conversation.d.ts +1 -1
- package/lib/browser/style/conversation.js +10 -0
- package/lib/browser/style/dialogs.d.ts +1 -1
- package/lib/browser/style/dialogs.js +1 -4
- package/lib/browser/style/pages.d.ts +1 -1
- package/lib/browser/style/pages.js +10 -1
- package/lib/browser/terminal/terminal-osc.d.ts +16 -0
- package/lib/browser/terminal/terminal-osc.js +94 -0
- package/lib/browser/terminal/web-terminal.d.ts +4 -7
- package/lib/browser/terminal/web-terminal.js +25 -29
- package/lib/browser/util/link.d.ts +6 -1
- package/lib/browser/util/link.js +11 -0
- package/lib/browser/workbench-protocol.d.ts +2 -0
- package/lib/browser/workbench-services.d.ts +2 -0
- package/lib/browser/workbench-services.js +5 -0
- package/lib/browser/workbench.js +3 -0
- package/package.json +12 -12
|
@@ -62,22 +62,45 @@ export const SERVICE_ZH = {
|
|
|
62
62
|
'ta.environment.stop': '停止',
|
|
63
63
|
'ta.environment.stopConfirm': '停止 {account} 的运行环境?',
|
|
64
64
|
'ta.environment.stopDetail': '对方再连接时会重新启动;正在运行的会马上停下。',
|
|
65
|
-
'ta.remote.addCloud': '
|
|
66
|
-
'ta.remote.cloudTitle': '
|
|
67
|
-
'ta.remote.cloudDescription': '
|
|
65
|
+
'ta.remote.addCloud': '填写网关',
|
|
66
|
+
'ta.remote.cloudTitle': '用公司的 Ta 网关',
|
|
67
|
+
'ta.remote.cloudDescription': '公司部署了 Ta 网关时才需要,没有就不用管。',
|
|
68
68
|
'ta.remote.cloudUrl': '网关地址',
|
|
69
69
|
'ta.remote.cloudToken': '访问令牌',
|
|
70
|
-
'ta.remote.
|
|
71
|
-
'ta.remote.cloudHint': '在网关的 设置 → 运行环境 → 在其他 Ta 里使用 生成令牌。',
|
|
70
|
+
'ta.remote.cloudHint': '地址就是网关网页的地址;令牌在那个网页的 设置 → 运行环境 → 在其他 Ta 里使用 里生成。',
|
|
72
71
|
'ta.remote.cloudConnect': '连接并添加',
|
|
73
72
|
'ta.remote.cloudAdded': '已添加 {name},可在选择目录时选它',
|
|
74
73
|
'ta.remote.openCloud': '打开云端 Ta',
|
|
75
74
|
'ta.remote.openCloudHint': '整个 Ta 都在云端运行,包括智能体',
|
|
75
|
+
'ta.remote.madeCloud': '已打开:电脑走开时,对话会换到 {host} 接着做',
|
|
76
|
+
'ta.remote.network': '联网',
|
|
77
|
+
'ta.remote.portLocal': '已转发到本机 localhost:{port}',
|
|
78
|
+
'ta.remote.relay': '电脑走开时在这里接着做',
|
|
79
|
+
'ta.remote.relay.off': '打开后在这里常驻 Ta:电脑合盖或没电时,对话换过来接着做。',
|
|
80
|
+
'ta.remote.relay.on': '合盖、睡眠或电量低时,正在跑的对话换到这里继续,回来自动接回。',
|
|
81
|
+
'ta.remote.relay.stopTitle': '不再换到 {host} 接着做?',
|
|
82
|
+
'ta.remote.relay.stopHint': '那台机器上的 Ta 留着不动。已经换过去的对话,请先接回本机。',
|
|
83
|
+
'ta.remote.relay.stop': '关闭',
|
|
84
|
+
'ta.remote.network.off': '断网(推荐)',
|
|
85
|
+
'ta.remote.network.common': '只连常用依赖源',
|
|
86
|
+
'ta.remote.network.open': '不限',
|
|
87
|
+
'ta.remote.network.custom': '自定义…',
|
|
88
|
+
'ta.remote.network.off.hint': '智能体在那边跑的命令连不了网,依赖会在它开始前自动装好。',
|
|
89
|
+
'ta.remote.network.common.hint': '命令只能连 npm、PyPI、GitHub 等常用依赖源。',
|
|
90
|
+
'ta.remote.network.open.hint': '命令可以连任何地址。',
|
|
91
|
+
'ta.remote.network.custom.hint': '命令只能连下面这些地址。',
|
|
92
|
+
'ta.remote.network.soft': '这台机器只能靠代理设置拦住。',
|
|
93
|
+
'ta.remote.network.isolate': '彻底隔离',
|
|
94
|
+
'ta.remote.network.isolateHint': '用 sudo 在那边装上 bubblewrap(Ubuntu 还会启用它自带的 AppArmor 配置)',
|
|
95
|
+
'ta.remote.network.isolated': '那边的智能体已彻底隔离',
|
|
96
|
+
'ta.remote.network.placeholder': '每行一个:registry.npmjs.org、*.example.com、example.com:8443',
|
|
97
|
+
'ta.remote.network.save': '保存',
|
|
98
|
+
'ta.remote.network.saved': '已更新 {name} 的联网设置',
|
|
76
99
|
'ta.environment.elsewhere': '在其他 Ta 里使用',
|
|
77
100
|
'ta.environment.elsewhereHint': '让你电脑上的 Ta 把这个沙箱当作云端工作区,智能体仍在电脑上。',
|
|
78
101
|
'ta.environment.makeToken': '生成令牌',
|
|
79
102
|
'ta.environment.tokenLabel': '其他 Ta',
|
|
80
|
-
'ta.environment.tokenHint': '只显示一次。在电脑上的 Ta:设置 → 远程主机 →
|
|
103
|
+
'ta.environment.tokenHint': '只显示一次。在电脑上的 Ta:设置 → 远程主机 → 用公司的 Ta 网关 → 填写网关。不用时在「访问」里登出它。',
|
|
81
104
|
'ta.environment.quotaHint': '本月免费时长的使用情况',
|
|
82
105
|
'ta.environment.blockedTitle': '你的 Ta 暂停了',
|
|
83
106
|
'ta.environment.blockedSuspended': '网关管理员停用了你的账号,请联系管理员恢复。',
|
|
@@ -88,7 +111,7 @@ export const SERVICE_ZH = {
|
|
|
88
111
|
'ta.remote.local': '本机',
|
|
89
112
|
'ta.remote.add': '添加主机',
|
|
90
113
|
'ta.remote.addConfirm': '添加',
|
|
91
|
-
'ta.remote.addHint': '
|
|
114
|
+
'ta.remote.addHint': '主机名、user@host 或 ssh 命令',
|
|
92
115
|
'ta.remote.connected': '已连接',
|
|
93
116
|
'ta.remote.failed': '连不上 {host}',
|
|
94
117
|
'ta.relays.title': '中继服务',
|
|
@@ -182,19 +205,18 @@ export const SERVICE_ZH = {
|
|
|
182
205
|
'ta.relays.storeNote': 'Ta 会先试一下:写入再删掉一个小文件。同步放进去的内容在本机就已加密;密码只存在这台电脑的 relays.json 里。',
|
|
183
206
|
'ta.relays.storeAdd': '添加并用于同步',
|
|
184
207
|
'ta.remote.title': '远程主机',
|
|
185
|
-
'ta.remote.description': '
|
|
208
|
+
'ta.remote.description': '对话可以在这些机器的目录里工作,也可以在电脑合盖或没电时换过去接着做。',
|
|
186
209
|
'ta.remote.none': '还没有主机',
|
|
187
210
|
'ta.remote.noneHint': '在上面添加一台,对话就能经 ssh 在它的目录里工作',
|
|
188
211
|
'ta.remote.invalid': '{host} 不是主机:写 ~/.ssh/config 里的 Host、user@host:port,或 ssh user@host -p 端口。',
|
|
189
212
|
'ta.remote.options': '这里不支持 {options}:把它写进 ~/.ssh/config 的一个 Host 里,再添加那个 Host。',
|
|
190
213
|
'ta.remote.disconnected': '未连接',
|
|
191
214
|
'ta.remote.fromConfig': '来自 ~/.ssh/config',
|
|
192
|
-
'ta.remote.added': '手动添加',
|
|
193
215
|
'ta.remote.connect': '连接',
|
|
194
216
|
'ta.remote.disconnect': '断开',
|
|
195
217
|
'ta.remote.connectedTo': '已连接 {host}',
|
|
196
218
|
'ta.remote.remove': '移除 {host}',
|
|
197
|
-
'ta.remote.port': '
|
|
219
|
+
'ta.remote.port': '端口 {port}',
|
|
198
220
|
'ta.remote.closePort': '停止转发',
|
|
199
221
|
'ta.remote.connecting': '正在连接 {host}…',
|
|
200
222
|
'ta.remote.step.connecting': '正在连接 {host}…',
|
|
@@ -202,6 +224,8 @@ export const SERVICE_ZH = {
|
|
|
202
224
|
'ta.remote.step.installing-node': '正在为 {host} 安装 Node.js {detail}…',
|
|
203
225
|
'ta.remote.step.copying-server': '正在把 Ta 复制到 {host}…',
|
|
204
226
|
'ta.remote.step.starting': '正在 {host} 上启动…',
|
|
227
|
+
'ta.remote.step.installing-ta': '正在 {host} 上安装 Ta {detail}…',
|
|
228
|
+
'ta.remote.step.starting-ta': '正在 {host} 上启动 Ta…',
|
|
205
229
|
'ta.remote.lost': '与 {host} 的连接断开了,下次操作时会自动重连。',
|
|
206
230
|
'ta.remote.prompt.title': '连接 {host}',
|
|
207
231
|
'ta.remote.prompt.trust': '信任并连接',
|
|
@@ -78,6 +78,9 @@ export const ASSISTANT_ZH_TW = {
|
|
|
78
78
|
'ta.task.branch': '分支 {branch}',
|
|
79
79
|
'ta.task.stopped': '已停止',
|
|
80
80
|
'ta.task.waiting': '等你處理',
|
|
81
|
+
'ta.task.waitingPermission': '等你授權',
|
|
82
|
+
'ta.task.waitingQuestion': '等你回答',
|
|
83
|
+
'ta.task.waitingAuth': '等你登入',
|
|
81
84
|
'ta.task.takenOver': '已由你接管',
|
|
82
85
|
'ta.task.takeOver': '接管',
|
|
83
86
|
'ta.task.takeOverHint': '在主區接著做,分身不再跟進',
|
|
@@ -179,6 +179,7 @@ export const CHAT_ZH_TW = {
|
|
|
179
179
|
'ta.composer.keyboard': '切換到鍵盤',
|
|
180
180
|
'ta.composer.steerTitle': '引導 Ta(Enter);Alt+Enter 排隊追加',
|
|
181
181
|
'ta.composer.addImage': '上傳圖片',
|
|
182
|
+
'ta.composer.addMedia': '上傳圖片或影片',
|
|
182
183
|
'ta.composer.album': '相簿',
|
|
183
184
|
'ta.composer.camera': '拍照',
|
|
184
185
|
'ta.composer.more': '新增與設定',
|
|
@@ -59,6 +59,7 @@ export const DISCOVER_ZH_TW = {
|
|
|
59
59
|
'ta.open.failed': '沒能開啟',
|
|
60
60
|
'ta.access.ask': '允許「{name}」執行?',
|
|
61
61
|
'ta.access.new': '它不是你自己做的,允許後才會執行。',
|
|
62
|
+
'ta.access.agent': '它是 Ta 替你做的,要用到網頁以外的能力,允許後才會執行。',
|
|
62
63
|
'ta.access.updated': '它更新了,新版本要你再允許一次才會執行。',
|
|
63
64
|
'ta.access.full': '它申請 Ta 的全部能力:讀寫這台電腦上的檔案、執行命令、讀你的對話。只允許你信任的來源。',
|
|
64
65
|
'ta.access.app': '它只申請自己的頁面,以及 Ta 的通知、小工具和語音,不申請你的檔案和對話。',
|
|
@@ -66,6 +67,7 @@ export const DISCOVER_ZH_TW = {
|
|
|
66
67
|
'ta.access.from': '來源:{source}。',
|
|
67
68
|
'ta.access.fromLink': '別人分享的連結',
|
|
68
69
|
'ta.access.fromMarket': '擴充功能市場',
|
|
70
|
+
'ta.access.fromAgent': 'Ta 替你做的',
|
|
69
71
|
'ta.access.allow': '允許',
|
|
70
72
|
'ta.access.failed': '沒能允許',
|
|
71
73
|
'ta.search.pages': '頁面',
|
|
@@ -62,22 +62,45 @@ export const SERVICE_ZH_TW = {
|
|
|
62
62
|
'ta.environment.stop': '停止',
|
|
63
63
|
'ta.environment.stopConfirm': '停止 {account} 的執行環境?',
|
|
64
64
|
'ta.environment.stopDetail': '對方再連線時會重新啟動;正在執行的會馬上停下。',
|
|
65
|
-
'ta.remote.addCloud': '
|
|
66
|
-
'ta.remote.cloudTitle': '
|
|
67
|
-
'ta.remote.cloudDescription': '
|
|
65
|
+
'ta.remote.addCloud': '填寫閘道',
|
|
66
|
+
'ta.remote.cloudTitle': '用公司的 Ta 閘道',
|
|
67
|
+
'ta.remote.cloudDescription': '公司部署了 Ta 閘道時才需要,沒有就不用管。',
|
|
68
68
|
'ta.remote.cloudUrl': '閘道位址',
|
|
69
69
|
'ta.remote.cloudToken': '存取權杖',
|
|
70
|
-
'ta.remote.
|
|
71
|
-
'ta.remote.cloudHint': '在閘道的 設定 → 執行環境 → 在其他 Ta 裡使用 產生權杖。',
|
|
70
|
+
'ta.remote.cloudHint': '位址就是閘道網頁的位址;權杖在那個網頁的 設定 → 執行環境 → 在其他 Ta 裡使用 裡產生。',
|
|
72
71
|
'ta.remote.cloudConnect': '連線並新增',
|
|
73
72
|
'ta.remote.cloudAdded': '已新增 {name},可在選擇目錄時選它',
|
|
74
73
|
'ta.remote.openCloud': '開啟雲端 Ta',
|
|
75
74
|
'ta.remote.openCloudHint': '整個 Ta 都在雲端執行,包括智慧體',
|
|
75
|
+
'ta.remote.madeCloud': '已打開:電腦走開時,對話會換到 {host} 接著做',
|
|
76
|
+
'ta.remote.network': '聯網',
|
|
77
|
+
'ta.remote.portLocal': '已轉發到本機 localhost:{port}',
|
|
78
|
+
'ta.remote.relay': '電腦走開時在這裡接著做',
|
|
79
|
+
'ta.remote.relay.off': '打開後在這裡常駐 Ta:電腦闔蓋或沒電時,對話換過來接著做。',
|
|
80
|
+
'ta.remote.relay.on': '闔蓋、睡眠或電量低時,正在跑的對話換到這裡繼續,回來自動接回。',
|
|
81
|
+
'ta.remote.relay.stopTitle': '不再換到 {host} 接著做?',
|
|
82
|
+
'ta.remote.relay.stopHint': '那台機器上的 Ta 留著不動。已經換過去的對話,請先接回本機。',
|
|
83
|
+
'ta.remote.relay.stop': '關閉',
|
|
84
|
+
'ta.remote.network.off': '斷網(推薦)',
|
|
85
|
+
'ta.remote.network.common': '只連常用依賴來源',
|
|
86
|
+
'ta.remote.network.open': '不限',
|
|
87
|
+
'ta.remote.network.custom': '自訂…',
|
|
88
|
+
'ta.remote.network.off.hint': '智慧體在那邊跑的命令連不了網,依賴會在它開始前自動裝好。',
|
|
89
|
+
'ta.remote.network.common.hint': '命令只能連 npm、PyPI、GitHub 等常用依賴來源。',
|
|
90
|
+
'ta.remote.network.open.hint': '命令可以連任何位址。',
|
|
91
|
+
'ta.remote.network.custom.hint': '命令只能連下面這些位址。',
|
|
92
|
+
'ta.remote.network.soft': '這台機器只能靠代理設定攔住。',
|
|
93
|
+
'ta.remote.network.isolate': '徹底隔離',
|
|
94
|
+
'ta.remote.network.isolateHint': '用 sudo 在那邊裝上 bubblewrap(Ubuntu 還會啟用它自帶的 AppArmor 設定)',
|
|
95
|
+
'ta.remote.network.isolated': '那邊的智慧體已徹底隔離',
|
|
96
|
+
'ta.remote.network.placeholder': '每行一個:registry.npmjs.org、*.example.com、example.com:8443',
|
|
97
|
+
'ta.remote.network.save': '儲存',
|
|
98
|
+
'ta.remote.network.saved': '已更新 {name} 的聯網設定',
|
|
76
99
|
'ta.environment.elsewhere': '在其他 Ta 裡使用',
|
|
77
100
|
'ta.environment.elsewhereHint': '讓你電腦上的 Ta 把這個沙箱當作雲端工作區,智慧體仍在電腦上。',
|
|
78
101
|
'ta.environment.makeToken': '產生權杖',
|
|
79
102
|
'ta.environment.tokenLabel': '其他 Ta',
|
|
80
|
-
'ta.environment.tokenHint': '只顯示一次。在電腦上的 Ta:設定 → 遠端主機 →
|
|
103
|
+
'ta.environment.tokenHint': '只顯示一次。在電腦上的 Ta:設定 → 遠端主機 → 用公司的 Ta 閘道 → 填寫閘道。不用時在「存取」裡登出它。',
|
|
81
104
|
'ta.environment.quotaHint': '本月免費時長的使用情況',
|
|
82
105
|
'ta.environment.blockedTitle': '你的 Ta 暫停了',
|
|
83
106
|
'ta.environment.blockedSuspended': '閘道管理員停用了你的帳號,請聯絡管理員恢復。',
|
|
@@ -88,7 +111,7 @@ export const SERVICE_ZH_TW = {
|
|
|
88
111
|
'ta.remote.local': '本機',
|
|
89
112
|
'ta.remote.add': '新增主機',
|
|
90
113
|
'ta.remote.addConfirm': '新增',
|
|
91
|
-
'ta.remote.addHint': '
|
|
114
|
+
'ta.remote.addHint': '主機名、user@host 或 ssh 命令',
|
|
92
115
|
'ta.remote.connected': '已連線',
|
|
93
116
|
'ta.remote.failed': '連不上 {host}',
|
|
94
117
|
'ta.relays.title': '中繼服務',
|
|
@@ -182,19 +205,18 @@ export const SERVICE_ZH_TW = {
|
|
|
182
205
|
'ta.relays.storeNote': 'Ta 會先試一下:寫入再刪掉一個小檔案。同步放進去的內容在本機就已加密;密碼只存在這台電腦的 relays.json 裡。',
|
|
183
206
|
'ta.relays.storeAdd': '新增並用於同步',
|
|
184
207
|
'ta.remote.title': '遠端主機',
|
|
185
|
-
'ta.remote.description': '
|
|
208
|
+
'ta.remote.description': '對話可以在這些機器的目錄裡工作,也可以在電腦闔蓋或沒電時換過去接著做。',
|
|
186
209
|
'ta.remote.none': '還沒有主機',
|
|
187
210
|
'ta.remote.noneHint': '在上面新增一台,對話就能經 ssh 在它的目錄裡工作',
|
|
188
211
|
'ta.remote.invalid': '{host} 不是主機:寫 ~/.ssh/config 裡的 Host、user@host:port,或 ssh user@host -p 埠。',
|
|
189
212
|
'ta.remote.options': '這裡不支援 {options}:把它寫進 ~/.ssh/config 的一個 Host 裡,再新增那個 Host。',
|
|
190
213
|
'ta.remote.disconnected': '未連線',
|
|
191
214
|
'ta.remote.fromConfig': '來自 ~/.ssh/config',
|
|
192
|
-
'ta.remote.added': '手動新增',
|
|
193
215
|
'ta.remote.connect': '連線',
|
|
194
216
|
'ta.remote.disconnect': '斷開',
|
|
195
217
|
'ta.remote.connectedTo': '已連線 {host}',
|
|
196
218
|
'ta.remote.remove': '移除 {host}',
|
|
197
|
-
'ta.remote.port': '
|
|
219
|
+
'ta.remote.port': '埠 {port}',
|
|
198
220
|
'ta.remote.closePort': '停止轉發',
|
|
199
221
|
'ta.remote.connecting': '正在連線 {host}…',
|
|
200
222
|
'ta.remote.step.connecting': '正在連線 {host}…',
|
|
@@ -202,6 +224,8 @@ export const SERVICE_ZH_TW = {
|
|
|
202
224
|
'ta.remote.step.installing-node': '正在為 {host} 安裝 Node.js {detail}…',
|
|
203
225
|
'ta.remote.step.copying-server': '正在把 Ta 複製到 {host}…',
|
|
204
226
|
'ta.remote.step.starting': '正在 {host} 上啟動…',
|
|
227
|
+
'ta.remote.step.installing-ta': '正在 {host} 上安裝 Ta {detail}…',
|
|
228
|
+
'ta.remote.step.starting-ta': '正在 {host} 上啟動 Ta…',
|
|
205
229
|
'ta.remote.lost': '與 {host} 的連線斷開了,下次操作時會自動重連。',
|
|
206
230
|
'ta.remote.prompt.title': '連線 {host}',
|
|
207
231
|
'ta.remote.prompt.trust': '信任並連線',
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { WebCodeRendererProps } from '../extension/web-api-
|
|
2
|
+
import type { WebCodeRendererProps } from '../extension/web-api-code.js';
|
|
3
|
+
import type { WebCodeMenu } from '../extension/web-api-menus.js';
|
|
3
4
|
/** What web extensions draw fenced blocks of their languages with (WebExtensionAPI.registerCodeRenderer), by language in lower case. */
|
|
4
5
|
export declare const CodeRenderers: React.Context<Readonly<Record<string, React.ComponentType<WebCodeRendererProps>>>>;
|
|
6
|
+
/** The languages whose renderers tell the parts of a block apart (WebCodeRendererOptions.pointable). */
|
|
7
|
+
export declare const CodePointable: React.Context<Readonly<Record<string, true>>>;
|
|
8
|
+
/** What web extensions add to a block of code drawn as code (WebExtensionAPI.registerCodeMenu). */
|
|
9
|
+
export declare const CodeMenus: React.Context<readonly WebCodeMenu[]>;
|
|
5
10
|
/** Where the fenced blocks drawn by web extensions send what the user picks in them: the conversation they are in. */
|
|
6
11
|
export declare const CodeReply: React.Context<((text: string) => Promise<void>) | undefined>;
|
|
7
12
|
/** The file of the conversation the blocks are in (WebCodeRendererProps.conversation): none outside one. */
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/** What web extensions draw fenced blocks of their languages with (WebExtensionAPI.registerCodeRenderer), by language in lower case. */
|
|
3
3
|
export const CodeRenderers = React.createContext({});
|
|
4
|
+
/** The languages whose renderers tell the parts of a block apart (WebCodeRendererOptions.pointable). */
|
|
5
|
+
export const CodePointable = React.createContext({});
|
|
6
|
+
/** What web extensions add to a block of code drawn as code (WebExtensionAPI.registerCodeMenu). */
|
|
7
|
+
export const CodeMenus = React.createContext([]);
|
|
4
8
|
/** Where the fenced blocks drawn by web extensions send what the user picks in them: the conversation they are in. */
|
|
5
9
|
export const CodeReply = React.createContext(undefined);
|
|
6
10
|
/** The file of the conversation the blocks are in (WebCodeRendererProps.conversation): none outside one. */
|