@michengai/dsh-btw 1.3.7 → 1.3.10
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/CHANGELOG.md +12 -0
- package/CHANGELOG.zh-CN.md +12 -0
- package/README.de.md +3 -3
- package/README.en.md +3 -3
- package/README.es.md +3 -3
- package/README.fr.md +3 -3
- package/README.ja.md +3 -3
- package/README.md +3 -3
- package/README.pt.md +3 -3
- package/README.ru.md +3 -3
- package/README.zh-CN.md +3 -3
- package/lib/client.js +28 -28
- package/lib/index.js +129 -38
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/locales/zh.d.ts +2 -2
- package/lib/types/server/tool-guard.d.ts +16 -1
- package/package.json +34 -33
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.3.10] - 2026-11-12
|
|
4
|
+
|
|
5
|
+
- **Full compatibility with latest DeepSeek Harness host releases**: Integrates smoothly with the latest host session lifecycle and message delivery mechanisms, resolving an issue where side-ask requests could fail to start on newer host environments.
|
|
6
|
+
- **Accurate and reliable answer delivery back to caller conversations**: Enhances side-ask conclusion delivery so that answers returned to the main conversation reliably reach the exact conversation that initiated the side ask, preventing cross-session delivery confusion in nested agent structures; conversation prompts and delivery hints automatically match the active host version.
|
|
7
|
+
- **Extended host compatibility matrix**: Verified full compatibility with DeepSeek Harness `0.2.2-rc.2`, supporting the complete `0.2.x` RC release spectrum (`0.2.0-rc.1` through `0.2.2-rc.2`).
|
|
8
|
+
|
|
9
|
+
## [1.3.8] - 2026-11-10
|
|
10
|
+
|
|
11
|
+
- **Align side-ask bubble and dock styling with native conversation dock tokens**: Adapts the outer dock layout to match host drawer inset geometry, eliminating horizontal width mismatch when task lists or plan status bars are active; upgrades bubble surface to native frosted menu material and soft elevation styling for seamless visual integration (#26).
|
|
12
|
+
- **Refine collapsed header compactness and action touch targets**: Tightens header minimum height to 36px and standardizes circular 28px action buttons with matching gap rhythms to match native host toolbar primitives.
|
|
13
|
+
- **Polish multiline question typography**: Corrects viewport clipping on multiline side-questions to smoothly accommodate full 3-line question headers without baseline truncation or unwanted scrollbars.
|
|
14
|
+
|
|
3
15
|
## [1.3.7] - 2026-11-09
|
|
4
16
|
|
|
5
17
|
- **Package size refinement and legacy asset pruning**: Eliminates redundant legacy components and unused multilingual dictionary keys across all supported languages, resulting in a cleaner and faster loading package.
|
package/CHANGELOG.zh-CN.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# 更新日志
|
|
2
2
|
|
|
3
|
+
## [1.3.10] - 2026-11-12
|
|
4
|
+
|
|
5
|
+
- **全面适配 DeepSeek Harness 官方最新宿主环境**:深度兼容最新宿主的会话生命周期与消息投递机制,修复在新版宿主下发起 `/btw` 旁问可能异常中断的问题。
|
|
6
|
+
- **跨层级会话答案回传更精准可靠**:优化将旁问结论回传至主对话的通道逻辑,在复杂任务树或多层协作会话中,旁问答案始终精准回传至直接触发旁问的所属会话,避免跨层混淆;提示词也动态对齐当前宿主的投递规范。
|
|
7
|
+
- **宿主兼容矩阵扩展**:全面通过 `0.2.2-rc.2` 兼容性回归,支持范围覆盖全部 `0.2.x` RC 宿主环境(`0.2.0-rc.1`~`0.2.2-rc.2`)。
|
|
8
|
+
|
|
9
|
+
## [1.3.8] - 2026-11-10
|
|
10
|
+
|
|
11
|
+
- **旁问气泡外观全面对齐原生会话悬浮坞规范**:旁问坞(Dock)外层版心全面适配宿主抽屉内嵌边距规范,彻底消除在会话中同时存在任务清单或目标信息栏时的上下宽度参差错层;气泡背景与投影升级为原生微磨砂菜单材质与柔光微描边,呈现浑然一体的轻灵质感(#26)。
|
|
12
|
+
- **折叠态紧凑度与触控体验提升**:气泡头部高度由 44px 精简至 36px,动作按钮统一采用 28px 圆形热区并拉平间距,保持与宿主原生工具按钮语言严格一致。
|
|
13
|
+
- **长问句多行排版优化**:修正多行提问在特定行高下的视口计算,确保长标题完整容纳三行文字,消除字形边缘裁切与多余滚动条。
|
|
14
|
+
|
|
3
15
|
## [1.3.7] - 2026-11-09
|
|
4
16
|
|
|
5
17
|
- **深度精简安装包体积并消除历史残留**:彻底清理历史迭代中遗留的孤岛组件与冗余多语言词条,使插件运行时与安装包制品更加轻量、纯粹与高效。
|
package/README.de.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Änderungsprotokoll](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@ Für eine vollwertige Desktop-Workbench laden Sie [DSH Codex Desktop](https://gi
|
|
|
83
83
|
## Voraussetzungen
|
|
84
84
|
|
|
85
85
|
- DeepSeek Harness installiert.
|
|
86
|
-
- Host-Kompatibilitätsbereich: DeepSeek Harness `0.2.x`-Gesamtreihe (`>=0.2.0-rc.1 <0.3.0-0`), verifiziert mit `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`. Upgrades innerhalb derselben Generation erfordern keine neuen Plugin-Releases.
|
|
86
|
+
- Host-Kompatibilitätsbereich: DeepSeek Harness `0.2.x`-Gesamtreihe (`>=0.2.0-rc.1 <0.3.0-0`), verifiziert mit `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`. Upgrades innerhalb derselben Generation erfordern keine neuen Plugin-Releases.
|
|
87
87
|
- Sprachunterstützung: Ab DeepSeek Harness `0.2.2-rc.1` sind alle 8 integrierten Sprachen nativ auswählbar. Auf `0.2.0`〜`0.2.1`-Hosts bleiben zusätzlich registrierte Sprachwörterbücher inaktiv und die Oberfläche fällt sicher auf Chinesisch und Englisch zurück.
|
|
88
88
|
- Ältere Hosts vor `0.2.0-rc.1` werden nicht mehr unterstützt. Destruktive Änderungen der `0.3.0`-Generation werden durch die Versionsschranke abgefangen. Benutzer von `0.1.x` sollten Version `0.1.24` installieren.
|
|
89
89
|
- Node.js 22+, Befehl `dsh` im Terminal verfügbar.
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` führt Typprüfung, Tests und den Build aus.
|
|
212
212
|
|
|
213
|
-
Die Entwicklungs- und Build-Basislinie ist `0.2.2-rc.
|
|
213
|
+
Die Entwicklungs- und Build-Basislinie ist `0.2.2-rc.2`. `npm run test:compat` kompiliert mit dieser Basislinie und führt die Testsuite auf den isolierten Host-Versionen aus. DOM-Komponententests ersetzen keine manuelle Browserabnahme.
|
|
214
214
|
|
|
215
215
|
Sowohl GitHub als auch npm enthalten das ausführbare Verzeichnis `lib`; führen Sie nach Änderungen am Quellcode vor dem Commit `npm run build` aus.
|
|
216
216
|
|
package/README.en.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Changelog](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@ For a desktop workbench, download [DSH Codex Desktop](https://github.com/Micheng
|
|
|
83
83
|
## Prerequisites
|
|
84
84
|
|
|
85
85
|
- An installed copy of DeepSeek Harness.
|
|
86
|
-
- Host compatibility: Full DeepSeek Harness `0.2.x` line (`>=0.2.0-rc.1 <0.3.0-0`), verified with `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, and `0.2.2-rc.
|
|
86
|
+
- Host compatibility: Full DeepSeek Harness `0.2.x` line (`>=0.2.0-rc.1 <0.3.0-0`), verified with `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`–`0.2.1-rc.5`, `0.2.2-rc.1`, and `0.2.2-rc.2`, and forwards-compatible with subsequent `0.2.x` RC releases without requiring routine plugin version bumps.
|
|
87
87
|
- Language support: all 8 built-in languages are natively selectable from DeepSeek Harness `0.2.2-rc.1` onwards; on `0.2.0`–`0.2.1` hosts, extra registered locale dictionaries stay dormant and the UI safely falls back to English and Chinese.
|
|
88
88
|
- Legacy hosts prior to `0.2.0-rc.1` are no longer supported. The version gate cleanly intercepts breaking changes in the `0.3.0` generation. Users on `0.1.x` hosts should install `0.1.24`.
|
|
89
89
|
- Node.js 22+ and `dsh` available in your terminal.
|
|
@@ -211,7 +211,7 @@ npm run check
|
|
|
211
211
|
|
|
212
212
|
`npm run check` runs type checking, tests, and a build.
|
|
213
213
|
|
|
214
|
-
Development and builds target `0.2.2-rc.
|
|
214
|
+
Development and builds target `0.2.2-rc.2`. `npm run test:compat` builds with that baseline and runs the test suite on each isolated host version, using a test model adapter. DOM component tests do not replace live-browser acceptance.
|
|
215
215
|
|
|
216
216
|
GitHub and npm both include a ready-to-run `lib`; after changing source, run `npm run build` before committing.
|
|
217
217
|
|
package/README.es.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Registro de cambios](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@ Si desea utilizar la estación de trabajo de escritorio, descargue [DSH Codex De
|
|
|
83
83
|
## Requisitos previos
|
|
84
84
|
|
|
85
85
|
- DeepSeek Harness instalado.
|
|
86
|
-
- Rango de compatibilidad del host: serie completa DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), verificado con `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`. Las actualizaciones dentro de la misma generación no requieren esperar nuevos lanzamientos del plugin.
|
|
86
|
+
- Rango de compatibilidad del host: serie completa DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), verificado con `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`. Las actualizaciones dentro de la misma generación no requieren esperar nuevos lanzamientos del plugin.
|
|
87
87
|
- Rango de compatibilidad de idiomas: los 8 idiomas integrados son seleccionables de forma nativa a partir de DeepSeek Harness `0.2.2-rc.1`. En hosts `0.2.0`〜`0.2.1`, los diccionarios adicionales registrados permanecen inactivos y la interfaz recurre de manera segura al chino e inglés.
|
|
88
88
|
- Los hosts anteriores a `0.2.0-rc.1` ya no son compatibles. Las modificaciones destructivas de la generación `0.3.0` serán interceptadas por la barrera de versión. Los usuarios de `0.1.x` deben instalar la versión `0.1.24`.
|
|
89
89
|
- Node.js 22+, capaz de ejecutar el comando `dsh` en la terminal.
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` ejecuta la comprobación de tipos, las pruebas y la compilación.
|
|
212
212
|
|
|
213
|
-
La línea base de desarrollo y compilación es `0.2.2-rc.
|
|
213
|
+
La línea base de desarrollo y compilación es `0.2.2-rc.2`. `npm run test:compat` compila con dicha línea base y ejecuta el conjunto de pruebas en cada una de las versiones de host aisladas. Los modelos emplean adaptadores de prueba. Las pruebas de componentes DOM no sustituyen la verificación real en navegadores.
|
|
214
214
|
|
|
215
215
|
Tanto GitHub como npm contienen el directorio `lib` ejecutable; tras modificar el código fuente ejecute `npm run build` antes de realizar una confirmación (commit).
|
|
216
216
|
|
package/README.fr.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Journal des modifications](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@ Pour utiliser l'espace de travail sur bureau, téléchargez [DSH Codex Desktop](
|
|
|
83
83
|
## Prérequis
|
|
84
84
|
|
|
85
85
|
- DeepSeek Harness installé.
|
|
86
|
-
- Compatibilité de l'hôte : série complète DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), validée sur `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`. Les mises à niveau de la même génération ne nécessitent pas de nouvelles versions du plugin.
|
|
86
|
+
- Compatibilité de l'hôte : série complète DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), validée sur `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`. Les mises à niveau de la même génération ne nécessitent pas de nouvelles versions du plugin.
|
|
87
87
|
- Support linguistique : l'ensemble des 8 langues intégrées est nativement sélectionnable à partir de DeepSeek Harness `0.2.2-rc.1`. Sur les hôtes `0.2.0`〜`0.2.1`, les dictionnaires supplémentaires enregistrés restent dormants et l'interface bascule de façon sécurisée en chinois et anglais.
|
|
88
88
|
- Les hôtes antérieurs à `0.2.0-rc.1` ne sont plus pris en charge. Les modifications destructives de la génération `0.3.0` sont interceptées par la barrière de version. Les utilisateurs de versions `0.1.x` doivent installer la version `0.1.24`.
|
|
89
89
|
- Node.js 22+, avec la commande `dsh` disponible dans le terminal.
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` exécute la vérification de types, les tests et le build.
|
|
212
212
|
|
|
213
|
-
La version de référence pour le développement est `0.2.2-rc.
|
|
213
|
+
La version de référence pour le développement est `0.2.2-rc.2`. `npm run test:compat` compile avec cette référence et exécute la suite de tests sur chaque version isolée de l'hôte. Les tests de composants DOM ne remplacent pas la validation sur un navigateur réel.
|
|
214
214
|
|
|
215
215
|
GitHub et npm contiennent tous deux le dossier `lib` directement exécutable ; après modification du code source, exécutez `npm run build` avant de valider votre commit.
|
|
216
216
|
|
package/README.ja.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[更新履歴](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
## 前提条件
|
|
84
84
|
|
|
85
85
|
- DeepSeek Harness がインストールされていること。
|
|
86
|
-
- ホスト対応バージョン:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`)、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`〜`0.2.1-rc.5`、`0.2.2-rc.1` で検証済み。同代ホストのアップグレードはプラグインの再リリースを待つ必要がありません。
|
|
86
|
+
- ホスト対応バージョン:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`)、`0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`〜`0.2.1-rc.5`、`0.2.2-rc.1`、`0.2.2-rc.2` で検証済み。同代ホストのアップグレードはプラグインの再リリースを待つ必要がありません。
|
|
87
87
|
- 言語サポート範囲:DeepSeek Harness `0.2.2-rc.1` 以降で全 8 門の組み込み言語がネイティブに選択可能。`0.2.0`〜`0.2.1` ホストでは追加登録された言語は不活性のままとなり、UI は安全に中英 2 言語にフォールバックします。
|
|
88
88
|
- `0.2.0-rc.1` より前の旧ホストはサポートしていません。`0.3.0` 世代の破壊的変更はバージョンゲートで遮断されます。`0.1.x` ユーザーは `0.1.24` をインストールしてください。
|
|
89
89
|
- Node.js 22+、ターミナルで `dsh` コマンドが実行できること。
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` は型チェック、テスト、ビルドを実行します。
|
|
212
212
|
|
|
213
|
-
開発およびビルドのベースラインは `0.2.2-rc.
|
|
213
|
+
開発およびビルドのベースラインは `0.2.2-rc.2` です。`npm run test:compat` はそのベースラインでコンパイルし、各隔離ホストバージョンでテストスイートを実行します。モデルはテストアダプタを使用します。DOM コンポーネントテストはブラウザによる実機検証を代替するものではありません。
|
|
214
214
|
|
|
215
215
|
GitHub と npm の両方にそのまま実行可能な `lib` が含まれています。ソースコードを変更した場合はコミット前に `npm run build` を実行してください。
|
|
216
216
|
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[更新日志](CHANGELOG.zh-CN.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
## 前置条件
|
|
84
84
|
|
|
85
85
|
- 已安装 DeepSeek Harness。
|
|
86
|
-
- 宿主支持范围:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`),已验证兼容 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`,并自动支持后续 `0.2.x` 的全部 0.2.x RC 版本,同代宿主升级无需重复等待发版。
|
|
86
|
+
- 宿主支持范围:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`),已验证兼容 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`、`0.2.2-rc.2`,并自动支持后续 `0.2.x` 的全部 0.2.x RC 版本,同代宿主升级无需重复等待发版。
|
|
87
87
|
- 语言支持范围:自 DeepSeek Harness `0.2.2-rc.1` 起原生可选全部 8 门内置语言;在 `0.2.0`~`0.2.1` 宿主下额外注册的语言保持惰性,界面安全回退为中文与英文。
|
|
88
88
|
- 不再支持 `0.2.0-rc.1` 之前的早期宿主,遇到 `0.3.0` 代际破坏性更新时将被版本门安全拦截。仍在使用 `0.1.x` 的用户请安装插件 `0.1.24`。
|
|
89
89
|
- Node.js 22+,可在终端执行 `dsh`。
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` 执行类型检查、测试和构建。
|
|
212
212
|
|
|
213
|
-
开发与构建基线为 `0.2.2-rc.
|
|
213
|
+
开发与构建基线为 `0.2.2-rc.2`。`npm run test:compat` 用该基线编译,再在各隔离宿主版本中分别运行测试集,模型使用测试适配器。DOM 组件测试不替代真实浏览器验收。
|
|
214
214
|
|
|
215
215
|
GitHub 与 npm 都包含可直接运行的 `lib`;改了源码后,提交前运行 `npm run build`。
|
|
216
216
|
|
package/README.pt.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[Registro de alterações](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@ Para obter um ambiente de trabalho completo em desktop, baixe o [DSH Codex Deskt
|
|
|
83
83
|
## Pré-requisitos
|
|
84
84
|
|
|
85
85
|
- DeepSeek Harness instalado.
|
|
86
|
-
- Intervalo de suporte do host: linha completa DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), verificado em `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`. Atualizações dentro da mesma geração não requerem aguardar novas versões do plugin.
|
|
86
|
+
- Intervalo de suporte do host: linha completa DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), verificado em `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`. Atualizações dentro da mesma geração não requerem aguardar novas versões do plugin.
|
|
87
87
|
- Suporte a idiomas: todos os 8 idiomas integrados são selecionáveis nativamente a partir do DeepSeek Harness `0.2.2-rc.1`. Em hosts `0.2.0`〜`0.2.1`, dicionários registrados adicionais permanecem inativos e a interface recorre de forma segura ao chinês e inglês.
|
|
88
88
|
- Hosts anteriores a `0.2.0-rc.1` não são mais suportados. Modificações destrutivas da geração `0.3.0` serão interceptadas pela barreira de versão. Usuários da versão `0.1.x` devem instalar a versão `0.1.24`.
|
|
89
89
|
- Node.js 22+, comando `dsh` funcional no terminal.
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
O comando `npm run check` executa verificação de tipos, testes e compilação.
|
|
212
212
|
|
|
213
|
-
A base de referência de desenvolvimento e compilação é `0.2.2-rc.
|
|
213
|
+
A base de referência de desenvolvimento e compilação é `0.2.2-rc.2`. O comando `npm run test:compat` compila com essa base e executa a suíte de testes nas versões isoladas do host. Testes de componentes DOM não substituem a validação real em navegadores.
|
|
214
214
|
|
|
215
215
|
Tanto o GitHub quanto o npm contêm a pasta executável `lib`; após modificar o código-fonte, execute `npm run build` antes de fazer o commit.
|
|
216
216
|
|
package/README.ru.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[История изменений](CHANGELOG.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
## Предварительные требования
|
|
84
84
|
|
|
85
85
|
- Установленный DeepSeek Harness.
|
|
86
|
-
- Поддерживаемые версии хоста: полная линейка DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), проверено на `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`. Обновления в рамках поколения не требуют ожидания нового релиза плагина.
|
|
86
|
+
- Поддерживаемые версии хоста: полная линейка DeepSeek Harness `0.2.x` (`>=0.2.0-rc.1 <0.3.0-0`), проверено на `0.2.0-rc.1`, `0.2.0-rc.2`, `0.2.1-rc.1`〜`0.2.1-rc.5`, `0.2.2-rc.1`, `0.2.2-rc.2`. Обновления в рамках поколения не требуют ожидания нового релиза плагина.
|
|
87
87
|
- Поддержка языков: все 8 встроенных языков доступны для выбора начиная с DeepSeek Harness `0.2.2-rc.1`. На хостах `0.2.0`〜`0.2.1` дополнительные языковые словари остаются неактивными, а интерфейс безопасно переключается на китайский и английский.
|
|
88
88
|
- Ранние версии до `0.2.0-rc.1` не поддерживаются. Критические изменения ветки `0.3.0` блокируются барьером версий. Пользователям `0.1.x` следует установить версию `0.1.24`.
|
|
89
89
|
- Node.js 22+, доступная в консоли команда `dsh`.
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
Команда `npm run check` запускает проверку типов, тесты и сборку.
|
|
212
212
|
|
|
213
|
-
Базовой версией для разработки и сборки является `0.2.2-rc.
|
|
213
|
+
Базовой версией для разработки и сборки является `0.2.2-rc.2`. Команда `npm run test:compat` компилирует проект на этой базе и запускает набор тестов в изолированных средах поддерживаемых версий хоста. Тесты компонентов DOM не заменяют проверку в реальном браузере.
|
|
214
214
|
|
|
215
215
|
GitHub и npm содержат готовый исполняемый каталог `lib`; после изменения исходного кода перед коммитом выполните `npm run build`.
|
|
216
216
|
|
package/README.zh-CN.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
[简体中文](README.zh-CN.md) · [English](README.en.md) · [日本語](README.ja.md) · [Español](README.es.md) · [Français](README.fr.md) · [Deutsch](README.de.md) · [Русский](README.ru.md) · [Português](README.pt.md)
|
|
12
12
|
|
|
13
|
-
[
|
|
13
|
+
[更新日志](CHANGELOG.zh-CN.md) · [Apache-2.0](LICENSE)
|
|
14
14
|
|
|
15
15
|
[](LICENSE)
|
|
16
16
|
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
## 前置条件
|
|
84
84
|
|
|
85
85
|
- 已安装 DeepSeek Harness。
|
|
86
|
-
- 宿主支持范围:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`),已验证兼容 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`,并自动支持后续 `0.2.x` 的全部 0.2.x RC 版本,同代宿主升级无需重复等待发版。
|
|
86
|
+
- 宿主支持范围:DeepSeek Harness `0.2.x` 全系列(`>=0.2.0-rc.1 <0.3.0-0`),已验证兼容 `0.2.0-rc.1`、`0.2.0-rc.2`、`0.2.1-rc.1`~`0.2.1-rc.5`、`0.2.2-rc.1`、`0.2.2-rc.2`,并自动支持后续 `0.2.x` 的全部 0.2.x RC 版本,同代宿主升级无需重复等待发版。
|
|
87
87
|
- 语言支持范围:自 DeepSeek Harness `0.2.2-rc.1` 起原生可选全部 8 门内置语言;在 `0.2.0`~`0.2.1` 宿主下额外注册的语言保持惰性,界面安全回退为中文与英文。
|
|
88
88
|
- 不再支持 `0.2.0-rc.1` 之前的早期宿主,遇到 `0.3.0` 代际破坏性更新时将被版本门安全拦截。仍在使用 `0.1.x` 的用户请安装插件 `0.1.24`。
|
|
89
89
|
- Node.js 22+,可在终端执行 `dsh`。
|
|
@@ -210,7 +210,7 @@ npm run check
|
|
|
210
210
|
|
|
211
211
|
`npm run check` 执行类型检查、测试和构建。
|
|
212
212
|
|
|
213
|
-
开发与构建基线为 `0.2.2-rc.
|
|
213
|
+
开发与构建基线为 `0.2.2-rc.2`。`npm run test:compat` 用该基线编译,再在各隔离宿主版本中分别运行测试集,模型使用测试适配器。DOM 组件测试不替代真实浏览器验收。
|
|
214
214
|
|
|
215
215
|
GitHub 与 npm 都包含可直接运行的 `lib`;改了源码后,提交前运行 `npm run build`。
|
|
216
216
|
|
package/lib/client.js
CHANGED
|
@@ -497,8 +497,8 @@ var zh = {
|
|
|
497
497
|
"action.retryClose": "\u91CD\u8BD5\u5173\u95ED",
|
|
498
498
|
"action.stop": "\u505C\u6B62\u56DE\u7B54",
|
|
499
499
|
"agent.name": "\u65C1\u95EE\u4E13\u5BB6",
|
|
500
|
-
"agent.promptPrefix": "\u4F60\u662F\u4E13\u6CE8\u89E3\u7B54\u65C1\u95EE\u7684\u72EC\u7ACB\u4E13\u5BB6\uFF0C\u8FD9\u662F\u4E3B\u4EFB\u52A1\u4E4B\u5916\u7684\u4E00\u6B21\u6027\u65C1\u95EE\u3002\u4EE5\u4E0B\u662F\u7528\u6237\u9488\u5BF9\u5F53\u524D\u4E0A\u4E0B\u6587\u63D0\u51FA\u7684\u95EE\u9898\uFF0C\u8BF7\u76F4\u63A5\u7ED9\u51FA\u4E13\u6CE8\u3001\u51C6\u786E\u7684\u56DE\u7B54\uFF1B\u5148\u524D\u4F1A\u8BDD\u5386\u53F2\uFF08\u5305\u62EC\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u53CA\u5176\u7ED3\u679C\uFF09\u4EC5\u4F5C\u4E3A\u53EA\u8BFB\u7406\u89E3\u80CC\u666F\u7684\u53C2\u8003\uFF0C\u4E0D\u662F\u9700\u8981\u4F60\u7EE7\u7EED\u6267\u884C\u7684\u4EFB\u52A1\uFF0C\u4E0D\u8981\u6267\u884C\u6216\u7EE7\u7EED\u5386\u53F2\u4E2D\u7684\u8BA1\u5212\u3001\u547D\u4EE4\u548C\u4FEE\u6539\u3002\u8BF7\u6C42\u4E2D\u4ECD\u5217\u51FA\u7684\u5DE5\u5177\u5B9A\u4E49\u53EA\u4E3A\u4E0E\u4E3B\u4F1A\u8BDD\u4FDD\u6301\u4E00\u81F4\uFF0C\u672C\u6B21\u65C1\u95EE\u4E2D\u9664 send_message \u4E4B\u5916\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u90FD\u4F1A\u88AB\u62D2\u7EDD\uFF1B\u800C send_message \u4E5F\u53EA\u80FD\u7528\u6765\u628A\u7B54\u6848\u53D1\u56DE\u672C\u65C1\u95EE\u6240\u5C5E\u7684\
|
|
501
|
-
"agent.replyHint": "\u56DE\u7B54\u9ED8\u8BA4\u53EA\u7559\u5728\u8FD9\u4E2A\u65C1\u95EE\u6C14\u6CE1\u91CC\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u56DE\u5230\u4E3B\u5BF9\u8BDD\u3002\u53EA\u6709\u5F53\u7528\u6237\u5728\u8FD9\u6B21\u63D0\u95EE\u4E2D\u660E\u786E\u8981\u6C42\u628A\u7B54\u6848\u53D1\u56DE\u4E3B\u5BF9\u8BDD\u65F6\uFF0C\u624D\u8C03\u7528 send_message \u628A\u4E00\u4EFD\u81EA\u8DB3\u7684\u5B8C\u6574\u7B54\u6848\u53D1\u7ED9\u4E3B\u4F1A\u8BDD\
|
|
500
|
+
"agent.promptPrefix": "\u4F60\u662F\u4E13\u6CE8\u89E3\u7B54\u65C1\u95EE\u7684\u72EC\u7ACB\u4E13\u5BB6\uFF0C\u8FD9\u662F\u4E3B\u4EFB\u52A1\u4E4B\u5916\u7684\u4E00\u6B21\u6027\u65C1\u95EE\u3002\u4EE5\u4E0B\u662F\u7528\u6237\u9488\u5BF9\u5F53\u524D\u4E0A\u4E0B\u6587\u63D0\u51FA\u7684\u95EE\u9898\uFF0C\u8BF7\u76F4\u63A5\u7ED9\u51FA\u4E13\u6CE8\u3001\u51C6\u786E\u7684\u56DE\u7B54\uFF1B\u5148\u524D\u4F1A\u8BDD\u5386\u53F2\uFF08\u5305\u62EC\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u53CA\u5176\u7ED3\u679C\uFF09\u4EC5\u4F5C\u4E3A\u53EA\u8BFB\u7406\u89E3\u80CC\u666F\u7684\u53C2\u8003\uFF0C\u4E0D\u662F\u9700\u8981\u4F60\u7EE7\u7EED\u6267\u884C\u7684\u4EFB\u52A1\uFF0C\u4E0D\u8981\u6267\u884C\u6216\u7EE7\u7EED\u5386\u53F2\u4E2D\u7684\u8BA1\u5212\u3001\u547D\u4EE4\u548C\u4FEE\u6539\u3002\u8BF7\u6C42\u4E2D\u4ECD\u5217\u51FA\u7684\u5DE5\u5177\u5B9A\u4E49\u53EA\u4E3A\u4E0E\u4E3B\u4F1A\u8BDD\u4FDD\u6301\u4E00\u81F4\uFF0C\u672C\u6B21\u65C1\u95EE\u4E2D\u9664 send_message \u4E4B\u5916\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u90FD\u4F1A\u88AB\u62D2\u7EDD\uFF1B\u800C send_message \u4E5F\u53EA\u80FD\u7528\u6765\u628A\u7B54\u6848\u53D1\u56DE\u672C\u65C1\u95EE\u6240\u5C5E\u7684\u76F4\u63A5\u4E3B\u4F1A\u8BDD\uFF0C\u4E0D\u80FD\u53D1\u7ED9\u4EFB\u4F55\u5176\u4ED6\u4EE3\u7406\u3002\u4E25\u7981\u5C1D\u8BD5\u53D1\u8D77\u5176\u5B83\u5DE5\u5177\u8C03\u7528\u6216\u8F93\u51FA <tool_call> \u7B49\u8C03\u7528\u6807\u8BB0\uFF0C\u4FE1\u606F\u4E0D\u8DB3\u65F6\u76F4\u63A5\u8BF4\u660E\uFF0C\u8BF7\u76F4\u63A5\u4F7F\u7528\u7EAF\u6587\u5B57\u6216 Markdown \u7ED9\u51FA\u6700\u7EC8\u56DE\u7B54\u3002\u56DE\u7B54\u8BED\u8A00\u4E0E\u95EE\u9898\u4E00\u81F4\uFF0C\u4E0D\u8981\u5728\u56DE\u7B54\u4E2D\u91CD\u590D\u65E0\u5173\u7684\u4E3B\u4F1A\u8BDD\u5185\u5BB9\u3002",
|
|
501
|
+
"agent.replyHint": "\u56DE\u7B54\u9ED8\u8BA4\u53EA\u7559\u5728\u8FD9\u4E2A\u65C1\u95EE\u6C14\u6CE1\u91CC\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u56DE\u5230\u4E3B\u5BF9\u8BDD\u3002\u53EA\u6709\u5F53\u7528\u6237\u5728\u8FD9\u6B21\u63D0\u95EE\u4E2D\u660E\u786E\u8981\u6C42\u628A\u7B54\u6848\u53D1\u56DE\u4E3B\u5BF9\u8BDD\u65F6\uFF0C\u624D\u8C03\u7528 send_message \u628A\u4E00\u4EFD\u81EA\u8DB3\u7684\u5B8C\u6574\u7B54\u6848\u53D1\u7ED9\u4E3B\u4F1A\u8BDD\uFF08{field} \u4E3A {parent}\uFF0C\u4E3B\u5BF9\u8BDD\u770B\u4E0D\u5230\u8FD9\u6BB5\u65C1\u95EE\u5BF9\u8BDD\uFF09\u3002\u7528\u6237\u6CA1\u6709\u8981\u6C42\u65F6\u4E0D\u8981\u8C03\u7528\u5B83\u3002",
|
|
502
502
|
"agent.toolsAllowed": "\u672C\u6B21\u65C1\u95EE\u989D\u5916\u653E\u884C\u8FD9\u4E9B\u5DE5\u5177\uFF08\u5176\u4F59\u4ECD\u7136\u4E00\u5F8B\u62D2\u7EDD\uFF09\uFF1A{tools}\u3002",
|
|
503
503
|
"bubble.footnotes": "\u811A\u6CE8",
|
|
504
504
|
"bubble.image": "\u56FE\u7247",
|
|
@@ -586,8 +586,8 @@ var en = {
|
|
|
586
586
|
"action.retryClose": "Retry closing",
|
|
587
587
|
"action.stop": "Stop answering",
|
|
588
588
|
"agent.name": "Side Question Expert",
|
|
589
|
-
"agent.promptPrefix": "You are a focused side-question expert answering a one-off side question outside the main task. Answer the following question directly and specifically based on the context. Prior conversation history (including tool calls and results) is strictly read-only background context, not a task to continue; do not execute or continue its plans, commands, or modifications. Tool definitions still listed in this request are kept only so the request matches the main session, and in this side question every tool call is rejected except send_message; even send_message may only deliver the answer back to the main session this side ask belongs to
|
|
590
|
-
"agent.replyHint": "Your answer stays in this side-ask bubble by default and does not return to the main conversation. Only when the user explicitly asks in this very question for the answer to be sent back to the main conversation, call send_message with one self-contained complete answer addressed to the main session (
|
|
589
|
+
"agent.promptPrefix": "You are a focused side-question expert answering a one-off side question outside the main task. Answer the following question directly and specifically based on the context. Prior conversation history (including tool calls and results) is strictly read-only background context, not a task to continue; do not execute or continue its plans, commands, or modifications. Tool definitions still listed in this request are kept only so the request matches the main session, and in this side question every tool call is rejected except send_message; even send_message may only deliver the answer back to the direct main session this side ask belongs to, never to any other agent. Do not attempt other tool calls or output tool-call tags/blocks like <tool_call>. If the context is insufficient, say so. Answer directly in plain text or Markdown, in the same language as the question. Do not include unrelated main-session content.",
|
|
590
|
+
"agent.replyHint": "Your answer stays in this side-ask bubble by default and does not return to the main conversation. Only when the user explicitly asks in this very question for the answer to be sent back to the main conversation, call send_message with one self-contained complete answer addressed to the main session ({field} = {parent}; the main conversation cannot see this side-ask conversation). Do not call it when the user did not ask.",
|
|
591
591
|
"agent.toolsAllowed": "In this side question these tools are additionally allowed (everything else is still rejected): {tools}.",
|
|
592
592
|
"bubble.footnotes": "Footnotes",
|
|
593
593
|
"bubble.image": "Image",
|
|
@@ -675,8 +675,8 @@ var ja = {
|
|
|
675
675
|
"action.retryClose": "\u7D42\u4E86\u3092\u518D\u8A66\u884C",
|
|
676
676
|
"action.stop": "\u56DE\u7B54\u3092\u505C\u6B62",
|
|
677
677
|
"agent.name": "\u30B5\u30A4\u30C9\u8CEA\u554F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8",
|
|
678
|
-
"agent.promptPrefix": "\u3042\u306A\u305F\u306F\u30B5\u30A4\u30C9\u8CEA\u554F\u306E\u56DE\u7B54\u306B\u7279\u5316\u3057\u305F\u72EC\u7ACB\u3057\u305F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8\u3067\u3042\u308A\u3001\u3053\u308C\u306F\u30E1\u30A4\u30F3\u30BF\u30B9\u30AF\u5916\u306E\u5358\u767A\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u3059\u3002\u4EE5\u4E0B\u306F\u73FE\u5728\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306B\u95A2\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u306E\u8CEA\u554F\u3067\u3059\u3002\u7684\u78BA\u304B\u3064\u6B63\u78BA\u306A\u56DE\u7B54\u3092\u76F4\u63A5\u63D0\u4F9B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4EE5\u524D\u306E\u4F1A\u8A71\u5C65\u6B74\uFF08\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3068\u305D\u306E\u7D50\u679C\u3092\u542B\u3080\uFF09\u306F\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u80CC\u666F\u53C2\u7167\u306B\u904E\u304E\u305A\u3001\u7D99\u7D9A\u3059\u3079\u304D\u30BF\u30B9\u30AF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5C65\u6B74\u5185\u306E\u8A08\u753B\u3001\u30B3\u30DE\u30F3\u30C9\u3001\u30B3\u30FC\u30C9\u5909\u66F4\u3092\u5B9F\u884C\u3057\u305F\u308A\u7D9A\u884C\u3057\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002\u30EA\u30AF\u30A8\u30B9\u30C8\u5185\u306B\u6B8B\u3063\u3066\u3044\u308B\u30C4\u30FC\u30EB\u5B9A\u7FA9\u306F\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u3068\u306E\u6574\u5408\u6027\u3092\u4FDD\u3064\u305F\u3081\u306E\u3082\u306E\u3067\u3042\u308A\u3001\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F send_message \u4EE5\u5916\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u306F\u3059\u3079\u3066\u62D2\u5426\u3055\u308C\u307E\u3059\u3002\u307E\u305F send_message \u3082\u3001\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u5C5E\u3059\u308B\
|
|
679
|
-
"agent.replyHint": "\u56DE\u7B54\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u30D0\u30D6\u30EB\u5185\u306B\u306E\u307F\u4FDD\u6301\u3055\u308C\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u306B\u306F\u81EA\u52D5\u7684\u306B\u623B\u308A\u307E\u305B\u3093\u3002\u30E6\u30FC\u30B6\u30FC\u304C\u4ECA\u56DE\u306E\u8CEA\u554F\u3067\u30E1\u30A4\u30F3\u4F1A\u8A71\u3078\u306E\u56DE\u7B54\u9001\u4FE1\u3092\u660E\u793A\u7684\u306B\u8981\u6C42\u3057\u305F\u5834\u5408\u306B\u306E\u307F\u3001send_message \u3092\u547C\u3073\u51FA\u3057\u3066\u81EA\u5DF1\u5B8C\u7D50\u3057\u305F\u5B8C\u5168\u306A\u56DE\u7B54\u3092\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\
|
|
678
|
+
"agent.promptPrefix": "\u3042\u306A\u305F\u306F\u30B5\u30A4\u30C9\u8CEA\u554F\u306E\u56DE\u7B54\u306B\u7279\u5316\u3057\u305F\u72EC\u7ACB\u3057\u305F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8\u3067\u3042\u308A\u3001\u3053\u308C\u306F\u30E1\u30A4\u30F3\u30BF\u30B9\u30AF\u5916\u306E\u5358\u767A\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u3059\u3002\u4EE5\u4E0B\u306F\u73FE\u5728\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306B\u95A2\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u306E\u8CEA\u554F\u3067\u3059\u3002\u7684\u78BA\u304B\u3064\u6B63\u78BA\u306A\u56DE\u7B54\u3092\u76F4\u63A5\u63D0\u4F9B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4EE5\u524D\u306E\u4F1A\u8A71\u5C65\u6B74\uFF08\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3068\u305D\u306E\u7D50\u679C\u3092\u542B\u3080\uFF09\u306F\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u80CC\u666F\u53C2\u7167\u306B\u904E\u304E\u305A\u3001\u7D99\u7D9A\u3059\u3079\u304D\u30BF\u30B9\u30AF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5C65\u6B74\u5185\u306E\u8A08\u753B\u3001\u30B3\u30DE\u30F3\u30C9\u3001\u30B3\u30FC\u30C9\u5909\u66F4\u3092\u5B9F\u884C\u3057\u305F\u308A\u7D9A\u884C\u3057\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002\u30EA\u30AF\u30A8\u30B9\u30C8\u5185\u306B\u6B8B\u3063\u3066\u3044\u308B\u30C4\u30FC\u30EB\u5B9A\u7FA9\u306F\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u3068\u306E\u6574\u5408\u6027\u3092\u4FDD\u3064\u305F\u3081\u306E\u3082\u306E\u3067\u3042\u308A\u3001\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F send_message \u4EE5\u5916\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u306F\u3059\u3079\u3066\u62D2\u5426\u3055\u308C\u307E\u3059\u3002\u307E\u305F send_message \u3082\u3001\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u5C5E\u3059\u308B\u76F4\u63A5\u306E\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u306B\u56DE\u7B54\u3092\u8FD4\u9001\u3059\u308B\u305F\u3081\u306B\u306E\u307F\u4F7F\u7528\u3067\u304D\u3001\u4ED6\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u9001\u4FE1\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002<tool_call> \u306A\u3069\u306E\u547C\u3073\u51FA\u3057\u30BF\u30B0\u3092\u51FA\u529B\u3057\u305F\u308A\u3001\u4ED6\u306E\u30C4\u30FC\u30EB\u3092\u547C\u3073\u51FA\u305D\u3046\u3068\u3057\u305F\u308A\u3059\u308B\u3053\u3068\u306F\u56FA\u304F\u7981\u3058\u3089\u308C\u3066\u3044\u307E\u3059\u3002\u60C5\u5831\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u305D\u306E\u65E8\u3092\u8AAC\u660E\u3057\u3001\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u307E\u305F\u306F Markdown \u3067\u76F4\u63A5\u56DE\u7B54\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u8CEA\u554F\u3068\u540C\u3058\u8A00\u8A9E\u3067\u56DE\u7B54\u3057\u3001\u7121\u95A2\u4FC2\u306A\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u5185\u5BB9\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
679
|
+
"agent.replyHint": "\u56DE\u7B54\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u30D0\u30D6\u30EB\u5185\u306B\u306E\u307F\u4FDD\u6301\u3055\u308C\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u306B\u306F\u81EA\u52D5\u7684\u306B\u623B\u308A\u307E\u305B\u3093\u3002\u30E6\u30FC\u30B6\u30FC\u304C\u4ECA\u56DE\u306E\u8CEA\u554F\u3067\u30E1\u30A4\u30F3\u4F1A\u8A71\u3078\u306E\u56DE\u7B54\u9001\u4FE1\u3092\u660E\u793A\u7684\u306B\u8981\u6C42\u3057\u305F\u5834\u5408\u306B\u306E\u307F\u3001send_message \u3092\u547C\u3073\u51FA\u3057\u3066\u81EA\u5DF1\u5B8C\u7D50\u3057\u305F\u5B8C\u5168\u306A\u56DE\u7B54\u3092\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\uFF08{field} = {parent}\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u304B\u3089\u306F\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u898B\u3048\u307E\u305B\u3093\uFF09\u306B\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u8981\u6C42\u304C\u306A\u3044\u5834\u5408\u306F\u547C\u3073\u51FA\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
680
680
|
"agent.toolsAllowed": "\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F\u4EE5\u4E0B\u306E\u30C4\u30FC\u30EB\u304C\u8FFD\u52A0\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u3059\uFF08\u305D\u306E\u4ED6\u306E\u30C4\u30FC\u30EB\u306F\u62D2\u5426\u3055\u308C\u307E\u3059\uFF09\uFF1A{tools}\u3002",
|
|
681
681
|
"bubble.footnotes": "\u811A\u6CE8",
|
|
682
682
|
"bubble.image": "\u753B\u50CF",
|
|
@@ -764,8 +764,8 @@ var es = {
|
|
|
764
764
|
"action.retryClose": "Reintentar cierre",
|
|
765
765
|
"action.stop": "Detener respuesta",
|
|
766
766
|
"agent.name": "Experto en preguntas secundarias",
|
|
767
|
-
"agent.promptPrefix": "Usted es un experto enfocado en responder preguntas secundarias puntuales fuera de la tarea principal. A continuaci\xF3n se presenta la pregunta del usuario sobre el contexto actual. Proporcione directamente una respuesta precisa y enfocada. El historial previo de la conversaci\xF3n (incluidas llamadas a herramientas y sus resultados) sirve \xFAnicamente como contexto de lectura de fondo, no como una tarea a continuar; no ejecute ni contin\xFAe planes, comandos o modificaciones de ese historial. Las definiciones de herramientas que a\xFAn figuran en esta solicitud se mantienen \xFAnicamente para coincidir con la sesi\xF3n principal, y en esta pregunta secundaria cualquier llamada a herramientas es rechazada salvo send_message; e incluso send_message solo se permite para devolver la respuesta a la sesi\xF3n principal a la que pertenece esta consulta
|
|
768
|
-
"agent.replyHint": "Su respuesta permanece por defecto en esta burbuja de consulta lateral y no regresa autom\xE1ticamente a la conversaci\xF3n principal. Solo cuando el usuario pida expl\xEDcitamente en esta misma pregunta que la respuesta se env\xEDe a la conversaci\xF3n principal, invoque send_message con una respuesta completa y autosuficiente dirigida a la sesi\xF3n principal (
|
|
767
|
+
"agent.promptPrefix": "Usted es un experto enfocado en responder preguntas secundarias puntuales fuera de la tarea principal. A continuaci\xF3n se presenta la pregunta del usuario sobre el contexto actual. Proporcione directamente una respuesta precisa y enfocada. El historial previo de la conversaci\xF3n (incluidas llamadas a herramientas y sus resultados) sirve \xFAnicamente como contexto de lectura de fondo, no como una tarea a continuar; no ejecute ni contin\xFAe planes, comandos o modificaciones de ese historial. Las definiciones de herramientas que a\xFAn figuran en esta solicitud se mantienen \xFAnicamente para coincidir con la sesi\xF3n principal, y en esta pregunta secundaria cualquier llamada a herramientas es rechazada salvo send_message; e incluso send_message solo se permite para devolver la respuesta a la sesi\xF3n principal directa a la que pertenece esta consulta, nunca a ning\xFAn otro agente. No intente invocar otras herramientas ni generar etiquetas como <tool_call>. Si la informaci\xF3n es insuficiente, ind\xEDquelo. Responda directamente en texto plano o Markdown, en el mismo idioma de la pregunta. No repita contenido irrelevante de la sesi\xF3n principal.",
|
|
768
|
+
"agent.replyHint": "Su respuesta permanece por defecto en esta burbuja de consulta lateral y no regresa autom\xE1ticamente a la conversaci\xF3n principal. Solo cuando el usuario pida expl\xEDcitamente en esta misma pregunta que la respuesta se env\xEDe a la conversaci\xF3n principal, invoque send_message con una respuesta completa y autosuficiente dirigida a la sesi\xF3n principal ({field} = {parent}; la conversaci\xF3n principal no puede ver esta charla lateral). No lo invoque si el usuario no lo pidi\xF3.",
|
|
769
769
|
"agent.toolsAllowed": "En esta pregunta secundaria se permiten adem\xE1s estas herramientas (el resto sigue rechazado): {tools}.",
|
|
770
770
|
"bubble.footnotes": "Notas al pie",
|
|
771
771
|
"bubble.image": "Imagen",
|
|
@@ -853,8 +853,8 @@ var fr = {
|
|
|
853
853
|
"action.retryClose": "R\xE9essayer la fermeture",
|
|
854
854
|
"action.stop": "Arr\xEAter la r\xE9ponse",
|
|
855
855
|
"agent.name": "Expert en questions secondaires",
|
|
856
|
-
"agent.promptPrefix": "Vous \xEAtes un expert d\xE9di\xE9 \xE0 la r\xE9ponse aux questions secondaires ponctuelles en dehors de la t\xE2che principale. Voici la question de l'utilisateur relative au contexte actuel. Fournissez directement une r\xE9ponse pr\xE9cise et cibl\xE9e. L'historique ant\xE9rieur (y compris les appels d'outils et leurs r\xE9sultats) sert uniquement de contexte de lecture en arri\xE8re-plan, et non d'une t\xE2che \xE0 poursuivre ; n'ex\xE9cutez ni ne continuez les plans, commandes ou modifications de cet historique. Les d\xE9finitions d'outils encore r\xE9pertori\xE9es dans cette requ\xEAte sont conserv\xE9es uniquement pour correspondre \xE0 la session principale, et dans cette question secondaire, tout appel d'outil est rejet\xE9 sauf send_message ; et m\xEAme send_message ne peut \xEAtre utilis\xE9 que pour renvoyer la r\xE9ponse \xE0 la session principale d'origine
|
|
857
|
-
"agent.replyHint": "Votre r\xE9ponse reste par d\xE9faut dans cette bulle de question secondaire et ne retourne pas automatiquement \xE0 la conversation principale. Uniquement lorsque l'utilisateur demande explicitement dans cette question pr\xE9cise de renvoyer la r\xE9ponse \xE0 la conversation principale, appelez send_message avec une r\xE9ponse compl\xE8te et autonome adress\xE9e \xE0 la session principale (
|
|
856
|
+
"agent.promptPrefix": "Vous \xEAtes un expert d\xE9di\xE9 \xE0 la r\xE9ponse aux questions secondaires ponctuelles en dehors de la t\xE2che principale. Voici la question de l'utilisateur relative au contexte actuel. Fournissez directement une r\xE9ponse pr\xE9cise et cibl\xE9e. L'historique ant\xE9rieur (y compris les appels d'outils et leurs r\xE9sultats) sert uniquement de contexte de lecture en arri\xE8re-plan, et non d'une t\xE2che \xE0 poursuivre ; n'ex\xE9cutez ni ne continuez les plans, commandes ou modifications de cet historique. Les d\xE9finitions d'outils encore r\xE9pertori\xE9es dans cette requ\xEAte sont conserv\xE9es uniquement pour correspondre \xE0 la session principale, et dans cette question secondaire, tout appel d'outil est rejet\xE9 sauf send_message ; et m\xEAme send_message ne peut \xEAtre utilis\xE9 que pour renvoyer la r\xE9ponse \xE0 la session principale directe d'origine, jamais \xE0 un autre agent. N'essayez pas de faire d'autres appels d'outils ou d'\xE9mettre des balises comme <tool_call>. Si le contexte est insuffisant, signalez-le. R\xE9pondez directement en texte brut ou Markdown, dans la m\xEAme langue que la question. Ne r\xE9p\xE9tez pas de contenu sans rapport avec la t\xE2che principale.",
|
|
857
|
+
"agent.replyHint": "Votre r\xE9ponse reste par d\xE9faut dans cette bulle de question secondaire et ne retourne pas automatiquement \xE0 la conversation principale. Uniquement lorsque l'utilisateur demande explicitement dans cette question pr\xE9cise de renvoyer la r\xE9ponse \xE0 la conversation principale, appelez send_message avec une r\xE9ponse compl\xE8te et autonome adress\xE9e \xE0 la session principale ({field} = {parent} ; la conversation principale ne peut pas voir cet \xE9change secondaire). Ne l'appelez pas si l'utilisateur ne l'a pas demand\xE9.",
|
|
858
858
|
"agent.toolsAllowed": "Dans cette question secondaire, ces outils sont \xE9galement autoris\xE9s (tous les autres restent refus\xE9s) : {tools}.",
|
|
859
859
|
"bubble.footnotes": "Notes de bas de page",
|
|
860
860
|
"bubble.image": "Image",
|
|
@@ -942,8 +942,8 @@ var de = {
|
|
|
942
942
|
"action.retryClose": "Schlie\xDFen wiederholen",
|
|
943
943
|
"action.stop": "Beantwortung stoppen",
|
|
944
944
|
"agent.name": "Experte f\xFCr Nebenfragen",
|
|
945
|
-
"agent.promptPrefix": "Sie sind ein fokussierter Experte f\xFCr Nebenfragen, der eine einmalige Frage au\xDFerhalb der Hauptaufgabe beantwortet. Im Folgenden finden Sie die Frage des Benutzers zum aktuellen Kontext. Geben Sie direkt eine pr\xE4zise und zielgerichtete Antwort. Der bisherige Konversationsverlauf (einschlie\xDFlich Tool-Aufrufen und Ergebnissen) dient ausschlie\xDFlich als Hintergrundkontext zum Lesen, nicht als fortzuf\xFChrende Aufgabe; f\xFChren Sie keine Pl\xE4ne, Befehle oder \xC4nderungen daraus fort. Die in dieser Anfrage noch aufgef\xFChrten Tool-Definitionen dienen nur der \xDCbereinstimmung mit der Hauptsitzung, und in dieser Nebenfrage wird jeder Tool-Aufruf au\xDFer send_message abgelehnt; und selbst send_message darf nur verwendet werden, um die Antwort an die \xFCbergeordnete Hauptsitzung zur\xFCckzusenden
|
|
946
|
-
"agent.replyHint": "Ihre Antwort verbleibt standardm\xE4\xDFig in dieser Nebenfrage-Blase und kehrt nicht automatisch zur Hauptkonversation zur\xFCck. Rufen Sie send_message nur dann auf, wenn der Benutzer in dieser konkreten Frage ausdr\xFCcklich verlangt, die Antwort an die Hauptkonversation zu senden, um eine in sich geschlossene vollst\xE4ndige Antwort an die Hauptsitzung zu \xFCbermitteln (
|
|
945
|
+
"agent.promptPrefix": "Sie sind ein fokussierter Experte f\xFCr Nebenfragen, der eine einmalige Frage au\xDFerhalb der Hauptaufgabe beantwortet. Im Folgenden finden Sie die Frage des Benutzers zum aktuellen Kontext. Geben Sie direkt eine pr\xE4zise und zielgerichtete Antwort. Der bisherige Konversationsverlauf (einschlie\xDFlich Tool-Aufrufen und Ergebnissen) dient ausschlie\xDFlich als Hintergrundkontext zum Lesen, nicht als fortzuf\xFChrende Aufgabe; f\xFChren Sie keine Pl\xE4ne, Befehle oder \xC4nderungen daraus fort. Die in dieser Anfrage noch aufgef\xFChrten Tool-Definitionen dienen nur der \xDCbereinstimmung mit der Hauptsitzung, und in dieser Nebenfrage wird jeder Tool-Aufruf au\xDFer send_message abgelehnt; und selbst send_message darf nur verwendet werden, um die Antwort an die direkte \xFCbergeordnete Hauptsitzung zur\xFCckzusenden, niemals an einen anderen Agenten. Versuchen Sie nicht, andere Tools aufzurufen oder Tags wie <tool_call> auszugeben. Reicht der Kontext nicht aus, weisen Sie darauf hin. Antworten Sie direkt in einfachem Text oder Markdown in der Sprache der Frage. Wiederholen Sie keine irrelevanten Inhalte der Hauptsitzung.",
|
|
946
|
+
"agent.replyHint": "Ihre Antwort verbleibt standardm\xE4\xDFig in dieser Nebenfrage-Blase und kehrt nicht automatisch zur Hauptkonversation zur\xFCck. Rufen Sie send_message nur dann auf, wenn der Benutzer in dieser konkreten Frage ausdr\xFCcklich verlangt, die Antwort an die Hauptkonversation zu senden, um eine in sich geschlossene vollst\xE4ndige Antwort an die Hauptsitzung zu \xFCbermitteln ({field} = {parent}; die Hauptkonversation kann diesen Nebendialog nicht sehen). Rufen Sie es nicht auf, wenn der Benutzer dies nicht angefordert hat.",
|
|
947
947
|
"agent.toolsAllowed": "In dieser Nebenfrage sind diese Tools zus\xE4tzlich erlaubt (alles andere wird abgelehnt): {tools}.",
|
|
948
948
|
"bubble.footnotes": "Fu\xDFnoten",
|
|
949
949
|
"bubble.image": "Bild",
|
|
@@ -1031,8 +1031,8 @@ var ru = {
|
|
|
1031
1031
|
"action.retryClose": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u0435",
|
|
1032
1032
|
"action.stop": "\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442",
|
|
1033
1033
|
"agent.name": "\u042D\u043A\u0441\u043F\u0435\u0440\u0442 \u043F\u043E \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C",
|
|
1034
|
-
"agent.promptPrefix": "\u0412\u044B \u2014 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u044B\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0442, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E\u0449\u0438\u0439\u0441\u044F \u043D\u0430 \u043E\u0442\u0432\u0435\u0442\u0430\u0445 \u043D\u0430 \u0440\u0430\u0437\u043E\u0432\u044B\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0432\u043D\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041D\u0438\u0436\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D \u0432\u043E\u043F\u0440\u043E\u0441 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E \u0442\u0435\u043A\u0443\u0449\u0435\u043C\u0443 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0443. \u0414\u0430\u0439\u0442\u0435 \u043F\u0440\u044F\u043C\u043E\u0439, \u0442\u043E\u0447\u043D\u044B\u0439 \u0438 \u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0438\u0441\u0442\u043E\u0440\u0438\u044F \u0434\u0438\u0430\u043B\u043E\u0433\u0430 (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u0445 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B) \u0441\u043B\u0443\u0436\u0438\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u043C \u0444\u043E\u043D\u043E\u043C \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F, \u0430 \u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F; \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0439\u0442\u0435 \u0438 \u043D\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u043F\u043B\u0430\u043D\u044B, \u043A\u043E\u043C\u0430\u043D\u0434\u044B \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438\u0437 \u043D\u0435\u0435. \u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0435 \u0432 \u0437\u0430\u043F\u0440\u043E\u0441\u0435, \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0441\u0442\u0438 \u0441 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0435\u0439, \u0438 \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F, \u043A\u0440\u043E\u043C\u0435 send_message; \u043F\u0440\u0438 \u044D\u0442\u043E\u043C send_message \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043E\u0442\u0432\u0435\u0442\u0430 \u0432 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0443\u044E \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E
|
|
1035
|
-
"agent.replyHint": "\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F \u0438\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432 \u044D\u0442\u043E\u043C \u043F\u0443\u0437\u044B\u0440\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430 \u0438 \u043D\u0435 \u043F\u043E\u043F\u0430\u0434\u0430\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433. \u0422\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043F\u0440\u044F\u043C\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433, \u0432\u044B\u0437\u043E\u0432\u0438\u0442\u0435 send_message \u0441 \u043F\u043E\u043B\u043D\u044B\u043C \u0438 \u0438\u0441\u0447\u0435\u0440\u043F\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u043E\u043C, \u0430\u0434\u0440\u0435\u0441\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 (
|
|
1034
|
+
"agent.promptPrefix": "\u0412\u044B \u2014 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u044B\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0442, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E\u0449\u0438\u0439\u0441\u044F \u043D\u0430 \u043E\u0442\u0432\u0435\u0442\u0430\u0445 \u043D\u0430 \u0440\u0430\u0437\u043E\u0432\u044B\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0432\u043D\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041D\u0438\u0436\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D \u0432\u043E\u043F\u0440\u043E\u0441 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E \u0442\u0435\u043A\u0443\u0449\u0435\u043C\u0443 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0443. \u0414\u0430\u0439\u0442\u0435 \u043F\u0440\u044F\u043C\u043E\u0439, \u0442\u043E\u0447\u043D\u044B\u0439 \u0438 \u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0438\u0441\u0442\u043E\u0440\u0438\u044F \u0434\u0438\u0430\u043B\u043E\u0433\u0430 (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u0445 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B) \u0441\u043B\u0443\u0436\u0438\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u043C \u0444\u043E\u043D\u043E\u043C \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F, \u0430 \u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F; \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0439\u0442\u0435 \u0438 \u043D\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u043F\u043B\u0430\u043D\u044B, \u043A\u043E\u043C\u0430\u043D\u0434\u044B \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438\u0437 \u043D\u0435\u0435. \u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0435 \u0432 \u0437\u0430\u043F\u0440\u043E\u0441\u0435, \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0441\u0442\u0438 \u0441 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0435\u0439, \u0438 \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F, \u043A\u0440\u043E\u043C\u0435 send_message; \u043F\u0440\u0438 \u044D\u0442\u043E\u043C send_message \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043E\u0442\u0432\u0435\u0442\u0430 \u0432 \u043F\u0440\u044F\u043C\u0443\u044E \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0443\u044E \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E, \u043D\u043E \u043D\u0438 \u0432 \u043A\u043E\u0435\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043D\u0435 \u0434\u0440\u0443\u0433\u0438\u043C \u0430\u0433\u0435\u043D\u0442\u0430\u043C. \u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E \u043F\u044B\u0442\u0430\u0442\u044C\u0441\u044F \u0432\u044B\u0437\u044B\u0432\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B \u0438\u043B\u0438 \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0442\u0435\u0433\u0438 \u0432\u044B\u0437\u043E\u0432\u0430 \u0432\u0440\u043E\u0434\u0435 <tool_call>. \u0415\u0441\u043B\u0438 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E, \u043F\u0440\u044F\u043C\u043E \u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u043D\u0430 \u044D\u0442\u043E. \u041E\u0442\u0432\u0435\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u043E\u0441\u0442\u044B\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u043C \u0438\u043B\u0438 Markdown \u043D\u0430 \u044F\u0437\u044B\u043A\u0435 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430. \u041D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0435\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438.",
|
|
1035
|
+
"agent.replyHint": "\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F \u0438\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432 \u044D\u0442\u043E\u043C \u043F\u0443\u0437\u044B\u0440\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430 \u0438 \u043D\u0435 \u043F\u043E\u043F\u0430\u0434\u0430\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433. \u0422\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043F\u0440\u044F\u043C\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433, \u0432\u044B\u0437\u043E\u0432\u0438\u0442\u0435 send_message \u0441 \u043F\u043E\u043B\u043D\u044B\u043C \u0438 \u0438\u0441\u0447\u0435\u0440\u043F\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u043E\u043C, \u0430\u0434\u0440\u0435\u0441\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 ({field} = {parent}; \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u043C \u0434\u0438\u0430\u043B\u043E\u0433\u0435 \u044D\u0442\u0430 \u0432\u0435\u0442\u043A\u0430 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432 \u043D\u0435 \u0432\u0438\u0434\u043D\u0430). \u0415\u0441\u043B\u0438 \u0442\u0430\u043A\u043E\u0433\u043E \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043D\u0435 \u0431\u044B\u043B\u043E, \u043D\u0435 \u0432\u044B\u0437\u044B\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043E.",
|
|
1036
1036
|
"agent.toolsAllowed": "\u0412 \u044D\u0442\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u044B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B (\u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F): {tools}.",
|
|
1037
1037
|
"bubble.footnotes": "\u0421\u043D\u043E\u0441\u043A\u0438",
|
|
1038
1038
|
"bubble.image": "\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",
|
|
@@ -1120,8 +1120,8 @@ var pt = {
|
|
|
1120
1120
|
"action.retryClose": "Tentar fechar novamente",
|
|
1121
1121
|
"action.stop": "Parar resposta",
|
|
1122
1122
|
"agent.name": "Especialista em perguntas secund\xE1rias",
|
|
1123
|
-
"agent.promptPrefix": "Voc\xEA \xE9 um especialista dedicado a responder perguntas secund\xE1rias pontuais fora da tarefa principal. A seguir est\xE1 a pergunta do usu\xE1rio com base no contexto atual. Forne\xE7a diretamente uma resposta focada e precisa. O hist\xF3rico anterior da conversa (incluindo chamadas de ferramentas e seus resultados) serve apenas como contexto de leitura em segundo plano, n\xE3o como uma tarefa a continuar; n\xE3o execute nem continue planos, comandos ou modifica\xE7\xF5es desse hist\xF3rico. As defini\xE7\xF5es de ferramentas ainda listadas nesta solicita\xE7\xE3o s\xE3o mantidas apenas para corresponder \xE0 sess\xE3o principal e, nesta pergunta secund\xE1ria, todas as chamadas de ferramentas s\xE3o rejeitadas, exceto send_message; e mesmo send_message s\xF3 pode ser usado para enviar a resposta de volta \xE0 sess\xE3o principal de origem
|
|
1124
|
-
"agent.replyHint": "Sua resposta permanece por padr\xE3o somente neste bal\xE3o de pergunta secund\xE1ria e n\xE3o retorna automaticamente para a conversa principal. Somente quando o usu\xE1rio solicitar explicitamente nesta pergunta que a resposta seja enviada para a conversa principal, chame send_message com uma resposta completa e autossuficiente endere\xE7ada \xE0 sess\xE3o principal (
|
|
1123
|
+
"agent.promptPrefix": "Voc\xEA \xE9 um especialista dedicado a responder perguntas secund\xE1rias pontuais fora da tarefa principal. A seguir est\xE1 a pergunta do usu\xE1rio com base no contexto atual. Forne\xE7a diretamente uma resposta focada e precisa. O hist\xF3rico anterior da conversa (incluindo chamadas de ferramentas e seus resultados) serve apenas como contexto de leitura em segundo plano, n\xE3o como uma tarefa a continuar; n\xE3o execute nem continue planos, comandos ou modifica\xE7\xF5es desse hist\xF3rico. As defini\xE7\xF5es de ferramentas ainda listadas nesta solicita\xE7\xE3o s\xE3o mantidas apenas para corresponder \xE0 sess\xE3o principal e, nesta pergunta secund\xE1ria, todas as chamadas de ferramentas s\xE3o rejeitadas, exceto send_message; e mesmo send_message s\xF3 pode ser usado para enviar a resposta de volta \xE0 sess\xE3o principal direta de origem, nunca para qualquer outro agente. \xC9 estritamente proibido tentar invocar outras ferramentas ou gerar tags como <tool_call>. Se as informa\xE7\xF5es forem insuficientes, informe diretamente. Responda diretamente em texto simples ou Markdown, no mesmo idioma da pergunta. N\xE3o repita conte\xFAdo irrelevante da sess\xE3o principal.",
|
|
1124
|
+
"agent.replyHint": "Sua resposta permanece por padr\xE3o somente neste bal\xE3o de pergunta secund\xE1ria e n\xE3o retorna automaticamente para a conversa principal. Somente quando o usu\xE1rio solicitar explicitamente nesta pergunta que a resposta seja enviada para a conversa principal, chame send_message com uma resposta completa e autossuficiente endere\xE7ada \xE0 sess\xE3o principal ({field} = {parent}; a conversa principal n\xE3o v\xEA este di\xE1logo secund\xE1rio). N\xE3o a invoque se o usu\xE1rio n\xE3o tiver solicitado.",
|
|
1125
1125
|
"agent.toolsAllowed": "Nesta pergunta secund\xE1ria, essas ferramentas s\xE3o adicionalmente permitidas (todas as outras continuam rejeitadas): {tools}.",
|
|
1126
1126
|
"bubble.footnotes": "Notas de rodap\xE9",
|
|
1127
1127
|
"bubble.image": "Imagem",
|
|
@@ -15211,33 +15211,33 @@ var CSS = `
|
|
|
15211
15211
|
.btw-selection-modal textarea:focus{border-color:var(--dsw-alias-state-business-primary);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}
|
|
15212
15212
|
.btw-selection-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}
|
|
15213
15213
|
.btw-selection-hint{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.6;margin:10px 4px}
|
|
15214
|
-
.btw-reference{padding:0
|
|
15214
|
+
.btw-reference{padding:0 12px 8px;font-size:12px}
|
|
15215
15215
|
.btw-reference summary{cursor:pointer;color:var(--dsw-alias-label-secondary)}
|
|
15216
15216
|
.btw-reference blockquote{margin:8px 0 0;padding:8px;border-left:2px solid var(--dsw-alias-border-l2);white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}
|
|
15217
15217
|
.btw-selection-modal .btw-reference{padding:0}
|
|
15218
15218
|
.btw-reference-tag{display:inline-flex;align-items:center;font-size:11px;font-weight:500;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);padding:1px 6px;border-radius:4px;border:1px solid var(--dsw-alias-border-l3);margin-right:4px}
|
|
15219
|
-
.btw-dock{display:flex;flex:none;flex-direction:column;gap:
|
|
15220
|
-
.btw-bubble{background:var(--dsw-
|
|
15221
|
-
.btw-header{display:flex;align-items:center;gap:
|
|
15222
|
-
.btw-symbol{display:flex;align-items:center;color:var(--dsw-alias-label-
|
|
15223
|
-
.btw-question{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:
|
|
15224
|
-
.btw-actions{display:flex;gap:
|
|
15225
|
-
.btw-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:
|
|
15219
|
+
.btw-dock{display:flex;flex:none;flex-direction:column;gap:6px;width:calc(100% - var(--dsh-composer-side-clearance,0px) - var(--dsh-composer-side-clearance,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px));max-width:calc(var(--dsh-composer-card-max-width,100%) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px));margin:0 auto;max-height:440px;overflow:auto;padding:2px 0 6px;box-sizing:border-box;letter-spacing:0}
|
|
15220
|
+
.btw-bubble{background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);box-shadow:inset 0 0 0 .5px var(--dsw-elevation-stroke-color),var(--dsw-elevation-panel);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border:0;border-radius:var(--dsw-radius-lg,12px);color:var(--dsw-alias-label-primary);min-width:0;flex-shrink:0;font-size:13px;line-height:1.6;font-family:var(--dsw-font-family,inherit);letter-spacing:0;overflow:hidden}
|
|
15221
|
+
.btw-header{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 12px;min-height:36px;box-sizing:border-box}
|
|
15222
|
+
.btw-symbol{display:flex;align-items:center;color:var(--dsw-alias-label-tertiary);height:28px;flex-shrink:0}
|
|
15223
|
+
.btw-question{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:24px;max-height:72px;overflow:auto}
|
|
15224
|
+
.btw-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
|
|
15225
|
+
.btw-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer;flex:none;transition:background-color 120ms ease,color 120ms ease}
|
|
15226
15226
|
.btw-actions button:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}
|
|
15227
15227
|
.btw-actions button:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,var(--dsw-alias-label-primary));outline-offset:-2px}
|
|
15228
15228
|
.btw-actions button.btw-action-stop{color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}
|
|
15229
15229
|
.btw-actions button.btw-action-stop:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}
|
|
15230
15230
|
.btw-actions button:disabled{cursor:wait;opacity:.5}
|
|
15231
|
-
.btw-status{display:flex;align-items:center;gap:8px;padding:0
|
|
15231
|
+
.btw-status{display:flex;align-items:center;gap:8px;padding:0 12px 8px;color:var(--dsw-alias-label-secondary);font-size:13px}
|
|
15232
15232
|
.btw-spinner{animation:btw-spin 1.2s linear infinite}@keyframes btw-spin{to{transform:rotate(360deg)}}
|
|
15233
|
-
.btw-answer{padding:0
|
|
15233
|
+
.btw-answer{padding:0 12px 12px;max-height:300px;overflow:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
|
|
15234
15234
|
.btw-answer>*:first-child{margin-top:0}.btw-answer>*:last-child{margin-bottom:0}
|
|
15235
15235
|
.btw-answer p{margin:8px 0}.btw-answer h1,.btw-answer h2,.btw-answer h3{font-size:15px;line-height:1.5;margin:12px 0 6px;font-weight:600}
|
|
15236
15236
|
.btw-answer pre{max-width:100%;overflow:auto;background:var(--dsw-alias-markdown-code-block);padding:10px;border-radius:8px;white-space:pre;font-size:12px}.btw-answer .katex-display{max-width:100%;overflow:auto}
|
|
15237
15237
|
.btw-answer code{font-family:Consolas,monospace;font-size:12px}.btw-answer :not(pre)>code{background:var(--dsw-alias-markdown-code-block);border-radius:4px;padding:1px 3px}.btw-answer a{color:var(--dsw-alias-label-primary);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
|
|
15238
15238
|
.btw-answer table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.btw-answer th,.btw-answer td{border:1px solid var(--dsw-alias-border-l2);padding:5px 9px}
|
|
15239
15239
|
.btw-answer ul,.btw-answer ol{padding-left:22px}.btw-answer blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-secondary)}
|
|
15240
|
-
.btw-error{margin:0;padding:0
|
|
15240
|
+
.btw-error{margin:0;padding:0 12px 8px;font-size:13px;color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere}
|
|
15241
15241
|
.btw-anchor-highlight{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px;animation:btw-pulse 1.6s ease-out}
|
|
15242
15242
|
@keyframes btw-pulse{0%{background-color:var(--dsw-alias-interactive-bg-hover-accent,rgba(59,130,246,0.2))}100%{background-color:transparent}}
|
|
15243
15243
|
.btw-settings{display:flex;flex-direction:column;gap:12px;padding:12px 0;max-width:640px}
|
|
@@ -15256,7 +15256,7 @@ var CSS = `
|
|
|
15256
15256
|
.btw-settings-error{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}
|
|
15257
15257
|
.btw-settings-actions{display:flex;align-items:center;gap:8px}
|
|
15258
15258
|
.btw-settings-saved{font-size:11px;color:var(--dsw-alias-state-success-primary,var(--dsw-alias-label-secondary))}
|
|
15259
|
-
@media(max-width:480px){.btw-dock{max-height:330px}.btw-header{padding:
|
|
15259
|
+
@media(max-width:480px){.btw-dock{max-height:330px}.btw-header{padding:4px 8px 4px 12px;gap:6px;min-height:36px;box-sizing:border-box}.btw-answer{padding:0 12px 12px;max-height:230px}.btw-status,.btw-error{padding-left:12px}.btw-actions{gap:2px}.btw-actions button{width:28px;height:28px}}
|
|
15260
15260
|
@media(prefers-reduced-motion:reduce){.btw-spinner{animation:none}.btw-actions button{transition:none}}
|
|
15261
15261
|
.btw-native-ask-action{corner-shape:round;background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;border:none;border-radius:999px;padding:5px 10px;display:inline-flex;align-items:center}
|
|
15262
15262
|
.btw-native-ask-action:focus-visible{background:var(--dsw-alias-button-floating-hover)}
|
package/lib/index.js
CHANGED
|
@@ -21,8 +21,8 @@ var zh = {
|
|
|
21
21
|
"action.retryClose": "\u91CD\u8BD5\u5173\u95ED",
|
|
22
22
|
"action.stop": "\u505C\u6B62\u56DE\u7B54",
|
|
23
23
|
"agent.name": "\u65C1\u95EE\u4E13\u5BB6",
|
|
24
|
-
"agent.promptPrefix": "\u4F60\u662F\u4E13\u6CE8\u89E3\u7B54\u65C1\u95EE\u7684\u72EC\u7ACB\u4E13\u5BB6\uFF0C\u8FD9\u662F\u4E3B\u4EFB\u52A1\u4E4B\u5916\u7684\u4E00\u6B21\u6027\u65C1\u95EE\u3002\u4EE5\u4E0B\u662F\u7528\u6237\u9488\u5BF9\u5F53\u524D\u4E0A\u4E0B\u6587\u63D0\u51FA\u7684\u95EE\u9898\uFF0C\u8BF7\u76F4\u63A5\u7ED9\u51FA\u4E13\u6CE8\u3001\u51C6\u786E\u7684\u56DE\u7B54\uFF1B\u5148\u524D\u4F1A\u8BDD\u5386\u53F2\uFF08\u5305\u62EC\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u53CA\u5176\u7ED3\u679C\uFF09\u4EC5\u4F5C\u4E3A\u53EA\u8BFB\u7406\u89E3\u80CC\u666F\u7684\u53C2\u8003\uFF0C\u4E0D\u662F\u9700\u8981\u4F60\u7EE7\u7EED\u6267\u884C\u7684\u4EFB\u52A1\uFF0C\u4E0D\u8981\u6267\u884C\u6216\u7EE7\u7EED\u5386\u53F2\u4E2D\u7684\u8BA1\u5212\u3001\u547D\u4EE4\u548C\u4FEE\u6539\u3002\u8BF7\u6C42\u4E2D\u4ECD\u5217\u51FA\u7684\u5DE5\u5177\u5B9A\u4E49\u53EA\u4E3A\u4E0E\u4E3B\u4F1A\u8BDD\u4FDD\u6301\u4E00\u81F4\uFF0C\u672C\u6B21\u65C1\u95EE\u4E2D\u9664 send_message \u4E4B\u5916\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u90FD\u4F1A\u88AB\u62D2\u7EDD\uFF1B\u800C send_message \u4E5F\u53EA\u80FD\u7528\u6765\u628A\u7B54\u6848\u53D1\u56DE\u672C\u65C1\u95EE\u6240\u5C5E\u7684\
|
|
25
|
-
"agent.replyHint": "\u56DE\u7B54\u9ED8\u8BA4\u53EA\u7559\u5728\u8FD9\u4E2A\u65C1\u95EE\u6C14\u6CE1\u91CC\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u56DE\u5230\u4E3B\u5BF9\u8BDD\u3002\u53EA\u6709\u5F53\u7528\u6237\u5728\u8FD9\u6B21\u63D0\u95EE\u4E2D\u660E\u786E\u8981\u6C42\u628A\u7B54\u6848\u53D1\u56DE\u4E3B\u5BF9\u8BDD\u65F6\uFF0C\u624D\u8C03\u7528 send_message \u628A\u4E00\u4EFD\u81EA\u8DB3\u7684\u5B8C\u6574\u7B54\u6848\u53D1\u7ED9\u4E3B\u4F1A\u8BDD\
|
|
24
|
+
"agent.promptPrefix": "\u4F60\u662F\u4E13\u6CE8\u89E3\u7B54\u65C1\u95EE\u7684\u72EC\u7ACB\u4E13\u5BB6\uFF0C\u8FD9\u662F\u4E3B\u4EFB\u52A1\u4E4B\u5916\u7684\u4E00\u6B21\u6027\u65C1\u95EE\u3002\u4EE5\u4E0B\u662F\u7528\u6237\u9488\u5BF9\u5F53\u524D\u4E0A\u4E0B\u6587\u63D0\u51FA\u7684\u95EE\u9898\uFF0C\u8BF7\u76F4\u63A5\u7ED9\u51FA\u4E13\u6CE8\u3001\u51C6\u786E\u7684\u56DE\u7B54\uFF1B\u5148\u524D\u4F1A\u8BDD\u5386\u53F2\uFF08\u5305\u62EC\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u53CA\u5176\u7ED3\u679C\uFF09\u4EC5\u4F5C\u4E3A\u53EA\u8BFB\u7406\u89E3\u80CC\u666F\u7684\u53C2\u8003\uFF0C\u4E0D\u662F\u9700\u8981\u4F60\u7EE7\u7EED\u6267\u884C\u7684\u4EFB\u52A1\uFF0C\u4E0D\u8981\u6267\u884C\u6216\u7EE7\u7EED\u5386\u53F2\u4E2D\u7684\u8BA1\u5212\u3001\u547D\u4EE4\u548C\u4FEE\u6539\u3002\u8BF7\u6C42\u4E2D\u4ECD\u5217\u51FA\u7684\u5DE5\u5177\u5B9A\u4E49\u53EA\u4E3A\u4E0E\u4E3B\u4F1A\u8BDD\u4FDD\u6301\u4E00\u81F4\uFF0C\u672C\u6B21\u65C1\u95EE\u4E2D\u9664 send_message \u4E4B\u5916\u4EFB\u4F55\u5DE5\u5177\u8C03\u7528\u90FD\u4F1A\u88AB\u62D2\u7EDD\uFF1B\u800C send_message \u4E5F\u53EA\u80FD\u7528\u6765\u628A\u7B54\u6848\u53D1\u56DE\u672C\u65C1\u95EE\u6240\u5C5E\u7684\u76F4\u63A5\u4E3B\u4F1A\u8BDD\uFF0C\u4E0D\u80FD\u53D1\u7ED9\u4EFB\u4F55\u5176\u4ED6\u4EE3\u7406\u3002\u4E25\u7981\u5C1D\u8BD5\u53D1\u8D77\u5176\u5B83\u5DE5\u5177\u8C03\u7528\u6216\u8F93\u51FA <tool_call> \u7B49\u8C03\u7528\u6807\u8BB0\uFF0C\u4FE1\u606F\u4E0D\u8DB3\u65F6\u76F4\u63A5\u8BF4\u660E\uFF0C\u8BF7\u76F4\u63A5\u4F7F\u7528\u7EAF\u6587\u5B57\u6216 Markdown \u7ED9\u51FA\u6700\u7EC8\u56DE\u7B54\u3002\u56DE\u7B54\u8BED\u8A00\u4E0E\u95EE\u9898\u4E00\u81F4\uFF0C\u4E0D\u8981\u5728\u56DE\u7B54\u4E2D\u91CD\u590D\u65E0\u5173\u7684\u4E3B\u4F1A\u8BDD\u5185\u5BB9\u3002",
|
|
25
|
+
"agent.replyHint": "\u56DE\u7B54\u9ED8\u8BA4\u53EA\u7559\u5728\u8FD9\u4E2A\u65C1\u95EE\u6C14\u6CE1\u91CC\uFF0C\u4E0D\u4F1A\u81EA\u52A8\u56DE\u5230\u4E3B\u5BF9\u8BDD\u3002\u53EA\u6709\u5F53\u7528\u6237\u5728\u8FD9\u6B21\u63D0\u95EE\u4E2D\u660E\u786E\u8981\u6C42\u628A\u7B54\u6848\u53D1\u56DE\u4E3B\u5BF9\u8BDD\u65F6\uFF0C\u624D\u8C03\u7528 send_message \u628A\u4E00\u4EFD\u81EA\u8DB3\u7684\u5B8C\u6574\u7B54\u6848\u53D1\u7ED9\u4E3B\u4F1A\u8BDD\uFF08{field} \u4E3A {parent}\uFF0C\u4E3B\u5BF9\u8BDD\u770B\u4E0D\u5230\u8FD9\u6BB5\u65C1\u95EE\u5BF9\u8BDD\uFF09\u3002\u7528\u6237\u6CA1\u6709\u8981\u6C42\u65F6\u4E0D\u8981\u8C03\u7528\u5B83\u3002",
|
|
26
26
|
"agent.toolsAllowed": "\u672C\u6B21\u65C1\u95EE\u989D\u5916\u653E\u884C\u8FD9\u4E9B\u5DE5\u5177\uFF08\u5176\u4F59\u4ECD\u7136\u4E00\u5F8B\u62D2\u7EDD\uFF09\uFF1A{tools}\u3002",
|
|
27
27
|
"bubble.footnotes": "\u811A\u6CE8",
|
|
28
28
|
"bubble.image": "\u56FE\u7247",
|
|
@@ -110,8 +110,8 @@ var en = {
|
|
|
110
110
|
"action.retryClose": "Retry closing",
|
|
111
111
|
"action.stop": "Stop answering",
|
|
112
112
|
"agent.name": "Side Question Expert",
|
|
113
|
-
"agent.promptPrefix": "You are a focused side-question expert answering a one-off side question outside the main task. Answer the following question directly and specifically based on the context. Prior conversation history (including tool calls and results) is strictly read-only background context, not a task to continue; do not execute or continue its plans, commands, or modifications. Tool definitions still listed in this request are kept only so the request matches the main session, and in this side question every tool call is rejected except send_message; even send_message may only deliver the answer back to the main session this side ask belongs to
|
|
114
|
-
"agent.replyHint": "Your answer stays in this side-ask bubble by default and does not return to the main conversation. Only when the user explicitly asks in this very question for the answer to be sent back to the main conversation, call send_message with one self-contained complete answer addressed to the main session (
|
|
113
|
+
"agent.promptPrefix": "You are a focused side-question expert answering a one-off side question outside the main task. Answer the following question directly and specifically based on the context. Prior conversation history (including tool calls and results) is strictly read-only background context, not a task to continue; do not execute or continue its plans, commands, or modifications. Tool definitions still listed in this request are kept only so the request matches the main session, and in this side question every tool call is rejected except send_message; even send_message may only deliver the answer back to the direct main session this side ask belongs to, never to any other agent. Do not attempt other tool calls or output tool-call tags/blocks like <tool_call>. If the context is insufficient, say so. Answer directly in plain text or Markdown, in the same language as the question. Do not include unrelated main-session content.",
|
|
114
|
+
"agent.replyHint": "Your answer stays in this side-ask bubble by default and does not return to the main conversation. Only when the user explicitly asks in this very question for the answer to be sent back to the main conversation, call send_message with one self-contained complete answer addressed to the main session ({field} = {parent}; the main conversation cannot see this side-ask conversation). Do not call it when the user did not ask.",
|
|
115
115
|
"agent.toolsAllowed": "In this side question these tools are additionally allowed (everything else is still rejected): {tools}.",
|
|
116
116
|
"bubble.footnotes": "Footnotes",
|
|
117
117
|
"bubble.image": "Image",
|
|
@@ -199,8 +199,8 @@ var ja = {
|
|
|
199
199
|
"action.retryClose": "\u7D42\u4E86\u3092\u518D\u8A66\u884C",
|
|
200
200
|
"action.stop": "\u56DE\u7B54\u3092\u505C\u6B62",
|
|
201
201
|
"agent.name": "\u30B5\u30A4\u30C9\u8CEA\u554F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8",
|
|
202
|
-
"agent.promptPrefix": "\u3042\u306A\u305F\u306F\u30B5\u30A4\u30C9\u8CEA\u554F\u306E\u56DE\u7B54\u306B\u7279\u5316\u3057\u305F\u72EC\u7ACB\u3057\u305F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8\u3067\u3042\u308A\u3001\u3053\u308C\u306F\u30E1\u30A4\u30F3\u30BF\u30B9\u30AF\u5916\u306E\u5358\u767A\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u3059\u3002\u4EE5\u4E0B\u306F\u73FE\u5728\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306B\u95A2\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u306E\u8CEA\u554F\u3067\u3059\u3002\u7684\u78BA\u304B\u3064\u6B63\u78BA\u306A\u56DE\u7B54\u3092\u76F4\u63A5\u63D0\u4F9B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4EE5\u524D\u306E\u4F1A\u8A71\u5C65\u6B74\uFF08\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3068\u305D\u306E\u7D50\u679C\u3092\u542B\u3080\uFF09\u306F\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u80CC\u666F\u53C2\u7167\u306B\u904E\u304E\u305A\u3001\u7D99\u7D9A\u3059\u3079\u304D\u30BF\u30B9\u30AF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5C65\u6B74\u5185\u306E\u8A08\u753B\u3001\u30B3\u30DE\u30F3\u30C9\u3001\u30B3\u30FC\u30C9\u5909\u66F4\u3092\u5B9F\u884C\u3057\u305F\u308A\u7D9A\u884C\u3057\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002\u30EA\u30AF\u30A8\u30B9\u30C8\u5185\u306B\u6B8B\u3063\u3066\u3044\u308B\u30C4\u30FC\u30EB\u5B9A\u7FA9\u306F\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u3068\u306E\u6574\u5408\u6027\u3092\u4FDD\u3064\u305F\u3081\u306E\u3082\u306E\u3067\u3042\u308A\u3001\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F send_message \u4EE5\u5916\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u306F\u3059\u3079\u3066\u62D2\u5426\u3055\u308C\u307E\u3059\u3002\u307E\u305F send_message \u3082\u3001\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u5C5E\u3059\u308B\
|
|
203
|
-
"agent.replyHint": "\u56DE\u7B54\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u30D0\u30D6\u30EB\u5185\u306B\u306E\u307F\u4FDD\u6301\u3055\u308C\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u306B\u306F\u81EA\u52D5\u7684\u306B\u623B\u308A\u307E\u305B\u3093\u3002\u30E6\u30FC\u30B6\u30FC\u304C\u4ECA\u56DE\u306E\u8CEA\u554F\u3067\u30E1\u30A4\u30F3\u4F1A\u8A71\u3078\u306E\u56DE\u7B54\u9001\u4FE1\u3092\u660E\u793A\u7684\u306B\u8981\u6C42\u3057\u305F\u5834\u5408\u306B\u306E\u307F\u3001send_message \u3092\u547C\u3073\u51FA\u3057\u3066\u81EA\u5DF1\u5B8C\u7D50\u3057\u305F\u5B8C\u5168\u306A\u56DE\u7B54\u3092\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\
|
|
202
|
+
"agent.promptPrefix": "\u3042\u306A\u305F\u306F\u30B5\u30A4\u30C9\u8CEA\u554F\u306E\u56DE\u7B54\u306B\u7279\u5316\u3057\u305F\u72EC\u7ACB\u3057\u305F\u30A8\u30AD\u30B9\u30D1\u30FC\u30C8\u3067\u3042\u308A\u3001\u3053\u308C\u306F\u30E1\u30A4\u30F3\u30BF\u30B9\u30AF\u5916\u306E\u5358\u767A\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u3059\u3002\u4EE5\u4E0B\u306F\u73FE\u5728\u306E\u30B3\u30F3\u30C6\u30AD\u30B9\u30C8\u306B\u95A2\u3059\u308B\u30E6\u30FC\u30B6\u30FC\u306E\u8CEA\u554F\u3067\u3059\u3002\u7684\u78BA\u304B\u3064\u6B63\u78BA\u306A\u56DE\u7B54\u3092\u76F4\u63A5\u63D0\u4F9B\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u4EE5\u524D\u306E\u4F1A\u8A71\u5C65\u6B74\uFF08\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u3068\u305D\u306E\u7D50\u679C\u3092\u542B\u3080\uFF09\u306F\u8AAD\u307F\u53D6\u308A\u5C02\u7528\u306E\u80CC\u666F\u53C2\u7167\u306B\u904E\u304E\u305A\u3001\u7D99\u7D9A\u3059\u3079\u304D\u30BF\u30B9\u30AF\u3067\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u5C65\u6B74\u5185\u306E\u8A08\u753B\u3001\u30B3\u30DE\u30F3\u30C9\u3001\u30B3\u30FC\u30C9\u5909\u66F4\u3092\u5B9F\u884C\u3057\u305F\u308A\u7D9A\u884C\u3057\u305F\u308A\u3057\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002\u30EA\u30AF\u30A8\u30B9\u30C8\u5185\u306B\u6B8B\u3063\u3066\u3044\u308B\u30C4\u30FC\u30EB\u5B9A\u7FA9\u306F\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u3068\u306E\u6574\u5408\u6027\u3092\u4FDD\u3064\u305F\u3081\u306E\u3082\u306E\u3067\u3042\u308A\u3001\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F send_message \u4EE5\u5916\u306E\u30C4\u30FC\u30EB\u547C\u3073\u51FA\u3057\u306F\u3059\u3079\u3066\u62D2\u5426\u3055\u308C\u307E\u3059\u3002\u307E\u305F send_message \u3082\u3001\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u5C5E\u3059\u308B\u76F4\u63A5\u306E\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u306B\u56DE\u7B54\u3092\u8FD4\u9001\u3059\u308B\u305F\u3081\u306B\u306E\u307F\u4F7F\u7528\u3067\u304D\u3001\u4ED6\u306E\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306B\u9001\u4FE1\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002<tool_call> \u306A\u3069\u306E\u547C\u3073\u51FA\u3057\u30BF\u30B0\u3092\u51FA\u529B\u3057\u305F\u308A\u3001\u4ED6\u306E\u30C4\u30FC\u30EB\u3092\u547C\u3073\u51FA\u305D\u3046\u3068\u3057\u305F\u308A\u3059\u308B\u3053\u3068\u306F\u56FA\u304F\u7981\u3058\u3089\u308C\u3066\u3044\u307E\u3059\u3002\u60C5\u5831\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u305D\u306E\u65E8\u3092\u8AAC\u660E\u3057\u3001\u30D7\u30EC\u30FC\u30F3\u30C6\u30AD\u30B9\u30C8\u307E\u305F\u306F Markdown \u3067\u76F4\u63A5\u56DE\u7B54\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u8CEA\u554F\u3068\u540C\u3058\u8A00\u8A9E\u3067\u56DE\u7B54\u3057\u3001\u7121\u95A2\u4FC2\u306A\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\u306E\u5185\u5BB9\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
203
|
+
"agent.replyHint": "\u56DE\u7B54\u306F\u30C7\u30D5\u30A9\u30EB\u30C8\u3067\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u30D0\u30D6\u30EB\u5185\u306B\u306E\u307F\u4FDD\u6301\u3055\u308C\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u306B\u306F\u81EA\u52D5\u7684\u306B\u623B\u308A\u307E\u305B\u3093\u3002\u30E6\u30FC\u30B6\u30FC\u304C\u4ECA\u56DE\u306E\u8CEA\u554F\u3067\u30E1\u30A4\u30F3\u4F1A\u8A71\u3078\u306E\u56DE\u7B54\u9001\u4FE1\u3092\u660E\u793A\u7684\u306B\u8981\u6C42\u3057\u305F\u5834\u5408\u306B\u306E\u307F\u3001send_message \u3092\u547C\u3073\u51FA\u3057\u3066\u81EA\u5DF1\u5B8C\u7D50\u3057\u305F\u5B8C\u5168\u306A\u56DE\u7B54\u3092\u30E1\u30A4\u30F3\u30BB\u30C3\u30B7\u30E7\u30F3\uFF08{field} = {parent}\u3001\u30E1\u30A4\u30F3\u4F1A\u8A71\u304B\u3089\u306F\u3053\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u304C\u898B\u3048\u307E\u305B\u3093\uFF09\u306B\u9001\u4FE1\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u8981\u6C42\u304C\u306A\u3044\u5834\u5408\u306F\u547C\u3073\u51FA\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044\u3002",
|
|
204
204
|
"agent.toolsAllowed": "\u4ECA\u56DE\u306E\u30B5\u30A4\u30C9\u8CEA\u554F\u3067\u306F\u4EE5\u4E0B\u306E\u30C4\u30FC\u30EB\u304C\u8FFD\u52A0\u3067\u8A31\u53EF\u3055\u308C\u3066\u3044\u307E\u3059\uFF08\u305D\u306E\u4ED6\u306E\u30C4\u30FC\u30EB\u306F\u62D2\u5426\u3055\u308C\u307E\u3059\uFF09\uFF1A{tools}\u3002",
|
|
205
205
|
"bubble.footnotes": "\u811A\u6CE8",
|
|
206
206
|
"bubble.image": "\u753B\u50CF",
|
|
@@ -288,8 +288,8 @@ var es = {
|
|
|
288
288
|
"action.retryClose": "Reintentar cierre",
|
|
289
289
|
"action.stop": "Detener respuesta",
|
|
290
290
|
"agent.name": "Experto en preguntas secundarias",
|
|
291
|
-
"agent.promptPrefix": "Usted es un experto enfocado en responder preguntas secundarias puntuales fuera de la tarea principal. A continuaci\xF3n se presenta la pregunta del usuario sobre el contexto actual. Proporcione directamente una respuesta precisa y enfocada. El historial previo de la conversaci\xF3n (incluidas llamadas a herramientas y sus resultados) sirve \xFAnicamente como contexto de lectura de fondo, no como una tarea a continuar; no ejecute ni contin\xFAe planes, comandos o modificaciones de ese historial. Las definiciones de herramientas que a\xFAn figuran en esta solicitud se mantienen \xFAnicamente para coincidir con la sesi\xF3n principal, y en esta pregunta secundaria cualquier llamada a herramientas es rechazada salvo send_message; e incluso send_message solo se permite para devolver la respuesta a la sesi\xF3n principal a la que pertenece esta consulta
|
|
292
|
-
"agent.replyHint": "Su respuesta permanece por defecto en esta burbuja de consulta lateral y no regresa autom\xE1ticamente a la conversaci\xF3n principal. Solo cuando el usuario pida expl\xEDcitamente en esta misma pregunta que la respuesta se env\xEDe a la conversaci\xF3n principal, invoque send_message con una respuesta completa y autosuficiente dirigida a la sesi\xF3n principal (
|
|
291
|
+
"agent.promptPrefix": "Usted es un experto enfocado en responder preguntas secundarias puntuales fuera de la tarea principal. A continuaci\xF3n se presenta la pregunta del usuario sobre el contexto actual. Proporcione directamente una respuesta precisa y enfocada. El historial previo de la conversaci\xF3n (incluidas llamadas a herramientas y sus resultados) sirve \xFAnicamente como contexto de lectura de fondo, no como una tarea a continuar; no ejecute ni contin\xFAe planes, comandos o modificaciones de ese historial. Las definiciones de herramientas que a\xFAn figuran en esta solicitud se mantienen \xFAnicamente para coincidir con la sesi\xF3n principal, y en esta pregunta secundaria cualquier llamada a herramientas es rechazada salvo send_message; e incluso send_message solo se permite para devolver la respuesta a la sesi\xF3n principal directa a la que pertenece esta consulta, nunca a ning\xFAn otro agente. No intente invocar otras herramientas ni generar etiquetas como <tool_call>. Si la informaci\xF3n es insuficiente, ind\xEDquelo. Responda directamente en texto plano o Markdown, en el mismo idioma de la pregunta. No repita contenido irrelevante de la sesi\xF3n principal.",
|
|
292
|
+
"agent.replyHint": "Su respuesta permanece por defecto en esta burbuja de consulta lateral y no regresa autom\xE1ticamente a la conversaci\xF3n principal. Solo cuando el usuario pida expl\xEDcitamente en esta misma pregunta que la respuesta se env\xEDe a la conversaci\xF3n principal, invoque send_message con una respuesta completa y autosuficiente dirigida a la sesi\xF3n principal ({field} = {parent}; la conversaci\xF3n principal no puede ver esta charla lateral). No lo invoque si el usuario no lo pidi\xF3.",
|
|
293
293
|
"agent.toolsAllowed": "En esta pregunta secundaria se permiten adem\xE1s estas herramientas (el resto sigue rechazado): {tools}.",
|
|
294
294
|
"bubble.footnotes": "Notas al pie",
|
|
295
295
|
"bubble.image": "Imagen",
|
|
@@ -377,8 +377,8 @@ var fr = {
|
|
|
377
377
|
"action.retryClose": "R\xE9essayer la fermeture",
|
|
378
378
|
"action.stop": "Arr\xEAter la r\xE9ponse",
|
|
379
379
|
"agent.name": "Expert en questions secondaires",
|
|
380
|
-
"agent.promptPrefix": "Vous \xEAtes un expert d\xE9di\xE9 \xE0 la r\xE9ponse aux questions secondaires ponctuelles en dehors de la t\xE2che principale. Voici la question de l'utilisateur relative au contexte actuel. Fournissez directement une r\xE9ponse pr\xE9cise et cibl\xE9e. L'historique ant\xE9rieur (y compris les appels d'outils et leurs r\xE9sultats) sert uniquement de contexte de lecture en arri\xE8re-plan, et non d'une t\xE2che \xE0 poursuivre ; n'ex\xE9cutez ni ne continuez les plans, commandes ou modifications de cet historique. Les d\xE9finitions d'outils encore r\xE9pertori\xE9es dans cette requ\xEAte sont conserv\xE9es uniquement pour correspondre \xE0 la session principale, et dans cette question secondaire, tout appel d'outil est rejet\xE9 sauf send_message ; et m\xEAme send_message ne peut \xEAtre utilis\xE9 que pour renvoyer la r\xE9ponse \xE0 la session principale d'origine
|
|
381
|
-
"agent.replyHint": "Votre r\xE9ponse reste par d\xE9faut dans cette bulle de question secondaire et ne retourne pas automatiquement \xE0 la conversation principale. Uniquement lorsque l'utilisateur demande explicitement dans cette question pr\xE9cise de renvoyer la r\xE9ponse \xE0 la conversation principale, appelez send_message avec une r\xE9ponse compl\xE8te et autonome adress\xE9e \xE0 la session principale (
|
|
380
|
+
"agent.promptPrefix": "Vous \xEAtes un expert d\xE9di\xE9 \xE0 la r\xE9ponse aux questions secondaires ponctuelles en dehors de la t\xE2che principale. Voici la question de l'utilisateur relative au contexte actuel. Fournissez directement une r\xE9ponse pr\xE9cise et cibl\xE9e. L'historique ant\xE9rieur (y compris les appels d'outils et leurs r\xE9sultats) sert uniquement de contexte de lecture en arri\xE8re-plan, et non d'une t\xE2che \xE0 poursuivre ; n'ex\xE9cutez ni ne continuez les plans, commandes ou modifications de cet historique. Les d\xE9finitions d'outils encore r\xE9pertori\xE9es dans cette requ\xEAte sont conserv\xE9es uniquement pour correspondre \xE0 la session principale, et dans cette question secondaire, tout appel d'outil est rejet\xE9 sauf send_message ; et m\xEAme send_message ne peut \xEAtre utilis\xE9 que pour renvoyer la r\xE9ponse \xE0 la session principale directe d'origine, jamais \xE0 un autre agent. N'essayez pas de faire d'autres appels d'outils ou d'\xE9mettre des balises comme <tool_call>. Si le contexte est insuffisant, signalez-le. R\xE9pondez directement en texte brut ou Markdown, dans la m\xEAme langue que la question. Ne r\xE9p\xE9tez pas de contenu sans rapport avec la t\xE2che principale.",
|
|
381
|
+
"agent.replyHint": "Votre r\xE9ponse reste par d\xE9faut dans cette bulle de question secondaire et ne retourne pas automatiquement \xE0 la conversation principale. Uniquement lorsque l'utilisateur demande explicitement dans cette question pr\xE9cise de renvoyer la r\xE9ponse \xE0 la conversation principale, appelez send_message avec une r\xE9ponse compl\xE8te et autonome adress\xE9e \xE0 la session principale ({field} = {parent} ; la conversation principale ne peut pas voir cet \xE9change secondaire). Ne l'appelez pas si l'utilisateur ne l'a pas demand\xE9.",
|
|
382
382
|
"agent.toolsAllowed": "Dans cette question secondaire, ces outils sont \xE9galement autoris\xE9s (tous les autres restent refus\xE9s) : {tools}.",
|
|
383
383
|
"bubble.footnotes": "Notes de bas de page",
|
|
384
384
|
"bubble.image": "Image",
|
|
@@ -466,8 +466,8 @@ var de = {
|
|
|
466
466
|
"action.retryClose": "Schlie\xDFen wiederholen",
|
|
467
467
|
"action.stop": "Beantwortung stoppen",
|
|
468
468
|
"agent.name": "Experte f\xFCr Nebenfragen",
|
|
469
|
-
"agent.promptPrefix": "Sie sind ein fokussierter Experte f\xFCr Nebenfragen, der eine einmalige Frage au\xDFerhalb der Hauptaufgabe beantwortet. Im Folgenden finden Sie die Frage des Benutzers zum aktuellen Kontext. Geben Sie direkt eine pr\xE4zise und zielgerichtete Antwort. Der bisherige Konversationsverlauf (einschlie\xDFlich Tool-Aufrufen und Ergebnissen) dient ausschlie\xDFlich als Hintergrundkontext zum Lesen, nicht als fortzuf\xFChrende Aufgabe; f\xFChren Sie keine Pl\xE4ne, Befehle oder \xC4nderungen daraus fort. Die in dieser Anfrage noch aufgef\xFChrten Tool-Definitionen dienen nur der \xDCbereinstimmung mit der Hauptsitzung, und in dieser Nebenfrage wird jeder Tool-Aufruf au\xDFer send_message abgelehnt; und selbst send_message darf nur verwendet werden, um die Antwort an die \xFCbergeordnete Hauptsitzung zur\xFCckzusenden
|
|
470
|
-
"agent.replyHint": "Ihre Antwort verbleibt standardm\xE4\xDFig in dieser Nebenfrage-Blase und kehrt nicht automatisch zur Hauptkonversation zur\xFCck. Rufen Sie send_message nur dann auf, wenn der Benutzer in dieser konkreten Frage ausdr\xFCcklich verlangt, die Antwort an die Hauptkonversation zu senden, um eine in sich geschlossene vollst\xE4ndige Antwort an die Hauptsitzung zu \xFCbermitteln (
|
|
469
|
+
"agent.promptPrefix": "Sie sind ein fokussierter Experte f\xFCr Nebenfragen, der eine einmalige Frage au\xDFerhalb der Hauptaufgabe beantwortet. Im Folgenden finden Sie die Frage des Benutzers zum aktuellen Kontext. Geben Sie direkt eine pr\xE4zise und zielgerichtete Antwort. Der bisherige Konversationsverlauf (einschlie\xDFlich Tool-Aufrufen und Ergebnissen) dient ausschlie\xDFlich als Hintergrundkontext zum Lesen, nicht als fortzuf\xFChrende Aufgabe; f\xFChren Sie keine Pl\xE4ne, Befehle oder \xC4nderungen daraus fort. Die in dieser Anfrage noch aufgef\xFChrten Tool-Definitionen dienen nur der \xDCbereinstimmung mit der Hauptsitzung, und in dieser Nebenfrage wird jeder Tool-Aufruf au\xDFer send_message abgelehnt; und selbst send_message darf nur verwendet werden, um die Antwort an die direkte \xFCbergeordnete Hauptsitzung zur\xFCckzusenden, niemals an einen anderen Agenten. Versuchen Sie nicht, andere Tools aufzurufen oder Tags wie <tool_call> auszugeben. Reicht der Kontext nicht aus, weisen Sie darauf hin. Antworten Sie direkt in einfachem Text oder Markdown in der Sprache der Frage. Wiederholen Sie keine irrelevanten Inhalte der Hauptsitzung.",
|
|
470
|
+
"agent.replyHint": "Ihre Antwort verbleibt standardm\xE4\xDFig in dieser Nebenfrage-Blase und kehrt nicht automatisch zur Hauptkonversation zur\xFCck. Rufen Sie send_message nur dann auf, wenn der Benutzer in dieser konkreten Frage ausdr\xFCcklich verlangt, die Antwort an die Hauptkonversation zu senden, um eine in sich geschlossene vollst\xE4ndige Antwort an die Hauptsitzung zu \xFCbermitteln ({field} = {parent}; die Hauptkonversation kann diesen Nebendialog nicht sehen). Rufen Sie es nicht auf, wenn der Benutzer dies nicht angefordert hat.",
|
|
471
471
|
"agent.toolsAllowed": "In dieser Nebenfrage sind diese Tools zus\xE4tzlich erlaubt (alles andere wird abgelehnt): {tools}.",
|
|
472
472
|
"bubble.footnotes": "Fu\xDFnoten",
|
|
473
473
|
"bubble.image": "Bild",
|
|
@@ -555,8 +555,8 @@ var ru = {
|
|
|
555
555
|
"action.retryClose": "\u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u044C \u0437\u0430\u043A\u0440\u044B\u0442\u0438\u0435",
|
|
556
556
|
"action.stop": "\u041E\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u044C \u043E\u0442\u0432\u0435\u0442",
|
|
557
557
|
"agent.name": "\u042D\u043A\u0441\u043F\u0435\u0440\u0442 \u043F\u043E \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0430\u043C",
|
|
558
|
-
"agent.promptPrefix": "\u0412\u044B \u2014 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u044B\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0442, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E\u0449\u0438\u0439\u0441\u044F \u043D\u0430 \u043E\u0442\u0432\u0435\u0442\u0430\u0445 \u043D\u0430 \u0440\u0430\u0437\u043E\u0432\u044B\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0432\u043D\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041D\u0438\u0436\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D \u0432\u043E\u043F\u0440\u043E\u0441 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E \u0442\u0435\u043A\u0443\u0449\u0435\u043C\u0443 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0443. \u0414\u0430\u0439\u0442\u0435 \u043F\u0440\u044F\u043C\u043E\u0439, \u0442\u043E\u0447\u043D\u044B\u0439 \u0438 \u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0438\u0441\u0442\u043E\u0440\u0438\u044F \u0434\u0438\u0430\u043B\u043E\u0433\u0430 (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u0445 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B) \u0441\u043B\u0443\u0436\u0438\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u043C \u0444\u043E\u043D\u043E\u043C \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F, \u0430 \u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F; \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0439\u0442\u0435 \u0438 \u043D\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u043F\u043B\u0430\u043D\u044B, \u043A\u043E\u043C\u0430\u043D\u0434\u044B \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438\u0437 \u043D\u0435\u0435. \u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0435 \u0432 \u0437\u0430\u043F\u0440\u043E\u0441\u0435, \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0441\u0442\u0438 \u0441 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0435\u0439, \u0438 \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F, \u043A\u0440\u043E\u043C\u0435 send_message; \u043F\u0440\u0438 \u044D\u0442\u043E\u043C send_message \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043E\u0442\u0432\u0435\u0442\u0430 \u0432 \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0443\u044E \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E
|
|
559
|
-
"agent.replyHint": "\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F \u0438\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432 \u044D\u0442\u043E\u043C \u043F\u0443\u0437\u044B\u0440\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430 \u0438 \u043D\u0435 \u043F\u043E\u043F\u0430\u0434\u0430\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433. \u0422\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043F\u0440\u044F\u043C\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433, \u0432\u044B\u0437\u043E\u0432\u0438\u0442\u0435 send_message \u0441 \u043F\u043E\u043B\u043D\u044B\u043C \u0438 \u0438\u0441\u0447\u0435\u0440\u043F\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u043E\u043C, \u0430\u0434\u0440\u0435\u0441\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 (
|
|
558
|
+
"agent.promptPrefix": "\u0412\u044B \u2014 \u043D\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043C\u044B\u0439 \u044D\u043A\u0441\u043F\u0435\u0440\u0442, \u0441\u043F\u0435\u0446\u0438\u0430\u043B\u0438\u0437\u0438\u0440\u0443\u044E\u0449\u0438\u0439\u0441\u044F \u043D\u0430 \u043E\u0442\u0432\u0435\u0442\u0430\u0445 \u043D\u0430 \u0440\u0430\u0437\u043E\u0432\u044B\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u044B\u0435 \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u0432\u043D\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0437\u0430\u0434\u0430\u0447\u0438. \u041D\u0438\u0436\u0435 \u043F\u0440\u0438\u0432\u0435\u0434\u0435\u043D \u0432\u043E\u043F\u0440\u043E\u0441 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044F \u043F\u043E \u0442\u0435\u043A\u0443\u0449\u0435\u043C\u0443 \u043A\u043E\u043D\u0442\u0435\u043A\u0441\u0442\u0443. \u0414\u0430\u0439\u0442\u0435 \u043F\u0440\u044F\u043C\u043E\u0439, \u0442\u043E\u0447\u043D\u044B\u0439 \u0438 \u0441\u0444\u043E\u043A\u0443\u0441\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u043E\u0442\u0432\u0435\u0442. \u041F\u0440\u0435\u0434\u044B\u0434\u0443\u0449\u0430\u044F \u0438\u0441\u0442\u043E\u0440\u0438\u044F \u0434\u0438\u0430\u043B\u043E\u0433\u0430 (\u0432\u043A\u043B\u044E\u0447\u0430\u044F \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u0438 \u0438\u0445 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u044B) \u0441\u043B\u0443\u0436\u0438\u0442 \u0442\u043E\u043B\u044C\u043A\u043E \u0441\u043F\u0440\u0430\u0432\u043E\u0447\u043D\u044B\u043C \u0444\u043E\u043D\u043E\u043C \u0434\u043B\u044F \u0447\u0442\u0435\u043D\u0438\u044F, \u0430 \u043D\u0435 \u0437\u0430\u0434\u0430\u0447\u0435\u0439 \u0434\u043B\u044F \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0435\u043D\u0438\u044F; \u043D\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0439\u0442\u0435 \u0438 \u043D\u0435 \u043F\u0440\u043E\u0434\u043E\u043B\u0436\u0430\u0439\u0442\u0435 \u043F\u043B\u0430\u043D\u044B, \u043A\u043E\u043C\u0430\u043D\u0434\u044B \u0438\u043B\u0438 \u0438\u0437\u043C\u0435\u043D\u0435\u043D\u0438\u044F \u0438\u0437 \u043D\u0435\u0435. \u041E\u043F\u0440\u0435\u0434\u0435\u043B\u0435\u043D\u0438\u044F \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432, \u0443\u043A\u0430\u0437\u0430\u043D\u043D\u044B\u0435 \u0432 \u0437\u0430\u043F\u0440\u043E\u0441\u0435, \u0441\u043E\u0445\u0440\u0430\u043D\u0435\u043D\u044B \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u0441\u043E\u0433\u043B\u0430\u0441\u043E\u0432\u0430\u043D\u043D\u043E\u0441\u0442\u0438 \u0441 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0435\u0439, \u0438 \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043B\u044E\u0431\u044B\u0435 \u0432\u044B\u0437\u043E\u0432\u044B \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u043E\u0432 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F, \u043A\u0440\u043E\u043C\u0435 send_message; \u043F\u0440\u0438 \u044D\u0442\u043E\u043C send_message \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u043E \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0442\u043E\u043B\u044C\u043A\u043E \u0434\u043B\u044F \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0438 \u043E\u0442\u0432\u0435\u0442\u0430 \u0432 \u043F\u0440\u044F\u043C\u0443\u044E \u0440\u043E\u0434\u0438\u0442\u0435\u043B\u044C\u0441\u043A\u0443\u044E \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0441\u0435\u0441\u0441\u0438\u044E, \u043D\u043E \u043D\u0438 \u0432 \u043A\u043E\u0435\u043C \u0441\u043B\u0443\u0447\u0430\u0435 \u043D\u0435 \u0434\u0440\u0443\u0433\u0438\u043C \u0430\u0433\u0435\u043D\u0442\u0430\u043C. \u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0447\u0435\u0441\u043A\u0438 \u0437\u0430\u043F\u0440\u0435\u0449\u0435\u043D\u043E \u043F\u044B\u0442\u0430\u0442\u044C\u0441\u044F \u0432\u044B\u0437\u044B\u0432\u0430\u0442\u044C \u0434\u0440\u0443\u0433\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B \u0438\u043B\u0438 \u0432\u044B\u0432\u043E\u0434\u0438\u0442\u044C \u0442\u0435\u0433\u0438 \u0432\u044B\u0437\u043E\u0432\u0430 \u0432\u0440\u043E\u0434\u0435 <tool_call>. \u0415\u0441\u043B\u0438 \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0430\u0442\u043E\u0447\u043D\u043E, \u043F\u0440\u044F\u043C\u043E \u0443\u043A\u0430\u0436\u0438\u0442\u0435 \u043D\u0430 \u044D\u0442\u043E. \u041E\u0442\u0432\u0435\u0447\u0430\u0439\u0442\u0435 \u043F\u0440\u043E\u0441\u0442\u044B\u043C \u0442\u0435\u043A\u0441\u0442\u043E\u043C \u0438\u043B\u0438 Markdown \u043D\u0430 \u044F\u0437\u044B\u043A\u0435 \u0437\u0430\u0434\u0430\u043D\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430. \u041D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043F\u043E\u0441\u0442\u043E\u0440\u043E\u043D\u043D\u0435\u0435 \u0441\u043E\u0434\u0435\u0440\u0436\u0438\u043C\u043E\u0435 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438.",
|
|
559
|
+
"agent.replyHint": "\u041F\u043E \u0443\u043C\u043E\u043B\u0447\u0430\u043D\u0438\u044E \u0432\u0430\u0448 \u043E\u0442\u0432\u0435\u0442 \u043E\u0441\u0442\u0430\u0435\u0442\u0441\u044F \u0438\u0441\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0432 \u044D\u0442\u043E\u043C \u043F\u0443\u0437\u044B\u0440\u0435 \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u0433\u043E \u0432\u043E\u043F\u0440\u043E\u0441\u0430 \u0438 \u043D\u0435 \u043F\u043E\u043F\u0430\u0434\u0430\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433. \u0422\u043E\u043B\u044C\u043A\u043E \u0435\u0441\u043B\u0438 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u0435\u043B\u044C \u0432 \u0434\u0430\u043D\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u043F\u0440\u044F\u043C\u043E \u043F\u043E\u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u044C \u043E\u0442\u0432\u0435\u0442 \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0434\u0438\u0430\u043B\u043E\u0433, \u0432\u044B\u0437\u043E\u0432\u0438\u0442\u0435 send_message \u0441 \u043F\u043E\u043B\u043D\u044B\u043C \u0438 \u0438\u0441\u0447\u0435\u0440\u043F\u044B\u0432\u0430\u044E\u0449\u0438\u043C \u043E\u0442\u0432\u0435\u0442\u043E\u043C, \u0430\u0434\u0440\u0435\u0441\u043E\u0432\u0430\u043D\u043D\u044B\u043C \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u0439 \u0441\u0435\u0441\u0441\u0438\u0438 ({field} = {parent}; \u0432 \u043E\u0441\u043D\u043E\u0432\u043D\u043E\u043C \u0434\u0438\u0430\u043B\u043E\u0433\u0435 \u044D\u0442\u0430 \u0432\u0435\u0442\u043A\u0430 \u0432\u043E\u043F\u0440\u043E\u0441\u043E\u0432 \u043D\u0435 \u0432\u0438\u0434\u043D\u0430). \u0415\u0441\u043B\u0438 \u0442\u0430\u043A\u043E\u0433\u043E \u0442\u0440\u0435\u0431\u043E\u0432\u0430\u043D\u0438\u044F \u043D\u0435 \u0431\u044B\u043B\u043E, \u043D\u0435 \u0432\u044B\u0437\u044B\u0432\u0430\u0439\u0442\u0435 \u0435\u0433\u043E.",
|
|
560
560
|
"agent.toolsAllowed": "\u0412 \u044D\u0442\u043E\u043C \u043F\u043E\u0431\u043E\u0447\u043D\u043E\u043C \u0432\u043E\u043F\u0440\u043E\u0441\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0438\u0442\u0435\u043B\u044C\u043D\u043E \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043D\u044B \u0441\u043B\u0435\u0434\u0443\u044E\u0449\u0438\u0435 \u0438\u043D\u0441\u0442\u0440\u0443\u043C\u0435\u043D\u0442\u044B (\u043E\u0441\u0442\u0430\u043B\u044C\u043D\u044B\u0435 \u043E\u0442\u043A\u043B\u043E\u043D\u044F\u044E\u0442\u0441\u044F): {tools}.",
|
|
561
561
|
"bubble.footnotes": "\u0421\u043D\u043E\u0441\u043A\u0438",
|
|
562
562
|
"bubble.image": "\u0418\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435",
|
|
@@ -644,8 +644,8 @@ var pt = {
|
|
|
644
644
|
"action.retryClose": "Tentar fechar novamente",
|
|
645
645
|
"action.stop": "Parar resposta",
|
|
646
646
|
"agent.name": "Especialista em perguntas secund\xE1rias",
|
|
647
|
-
"agent.promptPrefix": "Voc\xEA \xE9 um especialista dedicado a responder perguntas secund\xE1rias pontuais fora da tarefa principal. A seguir est\xE1 a pergunta do usu\xE1rio com base no contexto atual. Forne\xE7a diretamente uma resposta focada e precisa. O hist\xF3rico anterior da conversa (incluindo chamadas de ferramentas e seus resultados) serve apenas como contexto de leitura em segundo plano, n\xE3o como uma tarefa a continuar; n\xE3o execute nem continue planos, comandos ou modifica\xE7\xF5es desse hist\xF3rico. As defini\xE7\xF5es de ferramentas ainda listadas nesta solicita\xE7\xE3o s\xE3o mantidas apenas para corresponder \xE0 sess\xE3o principal e, nesta pergunta secund\xE1ria, todas as chamadas de ferramentas s\xE3o rejeitadas, exceto send_message; e mesmo send_message s\xF3 pode ser usado para enviar a resposta de volta \xE0 sess\xE3o principal de origem
|
|
648
|
-
"agent.replyHint": "Sua resposta permanece por padr\xE3o somente neste bal\xE3o de pergunta secund\xE1ria e n\xE3o retorna automaticamente para a conversa principal. Somente quando o usu\xE1rio solicitar explicitamente nesta pergunta que a resposta seja enviada para a conversa principal, chame send_message com uma resposta completa e autossuficiente endere\xE7ada \xE0 sess\xE3o principal (
|
|
647
|
+
"agent.promptPrefix": "Voc\xEA \xE9 um especialista dedicado a responder perguntas secund\xE1rias pontuais fora da tarefa principal. A seguir est\xE1 a pergunta do usu\xE1rio com base no contexto atual. Forne\xE7a diretamente uma resposta focada e precisa. O hist\xF3rico anterior da conversa (incluindo chamadas de ferramentas e seus resultados) serve apenas como contexto de leitura em segundo plano, n\xE3o como uma tarefa a continuar; n\xE3o execute nem continue planos, comandos ou modifica\xE7\xF5es desse hist\xF3rico. As defini\xE7\xF5es de ferramentas ainda listadas nesta solicita\xE7\xE3o s\xE3o mantidas apenas para corresponder \xE0 sess\xE3o principal e, nesta pergunta secund\xE1ria, todas as chamadas de ferramentas s\xE3o rejeitadas, exceto send_message; e mesmo send_message s\xF3 pode ser usado para enviar a resposta de volta \xE0 sess\xE3o principal direta de origem, nunca para qualquer outro agente. \xC9 estritamente proibido tentar invocar outras ferramentas ou gerar tags como <tool_call>. Se as informa\xE7\xF5es forem insuficientes, informe diretamente. Responda diretamente em texto simples ou Markdown, no mesmo idioma da pergunta. N\xE3o repita conte\xFAdo irrelevante da sess\xE3o principal.",
|
|
648
|
+
"agent.replyHint": "Sua resposta permanece por padr\xE3o somente neste bal\xE3o de pergunta secund\xE1ria e n\xE3o retorna automaticamente para a conversa principal. Somente quando o usu\xE1rio solicitar explicitamente nesta pergunta que a resposta seja enviada para a conversa principal, chame send_message com uma resposta completa e autossuficiente endere\xE7ada \xE0 sess\xE3o principal ({field} = {parent}; a conversa principal n\xE3o v\xEA este di\xE1logo secund\xE1rio). N\xE3o a invoque se o usu\xE1rio n\xE3o tiver solicitado.",
|
|
649
649
|
"agent.toolsAllowed": "Nesta pergunta secund\xE1ria, essas ferramentas s\xE3o adicionalmente permitidas (todas as outras continuam rejeitadas): {tools}.",
|
|
650
650
|
"bubble.footnotes": "Notas de rodap\xE9",
|
|
651
651
|
"bubble.image": "Imagem",
|
|
@@ -1011,13 +1011,29 @@ function denyFor(allowed) {
|
|
|
1011
1011
|
var REPLY_TOOL = "send_message";
|
|
1012
1012
|
function parentSessionOf(agent) {
|
|
1013
1013
|
const parent = agent?.session?.header?.parentSession;
|
|
1014
|
-
return typeof parent === "string" ? parent : void 0;
|
|
1014
|
+
return typeof parent === "string" && parent.length > 0 ? parent : void 0;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function replyTargetOf(args) {
|
|
1017
|
+
if (typeof args !== "object" || args === null) return void 0;
|
|
1018
|
+
const record = args;
|
|
1019
|
+
const hasAgent = record.agent !== void 0;
|
|
1020
|
+
const hasAgentId = record.agent_id !== void 0;
|
|
1021
|
+
if (hasAgent && typeof record.agent !== "string") return void 0;
|
|
1022
|
+
if (hasAgentId && typeof record.agent_id !== "string") return void 0;
|
|
1023
|
+
if (hasAgent && hasAgentId && record.agent !== record.agent_id) return void 0;
|
|
1024
|
+
const target = hasAgent ? record.agent : record.agent_id;
|
|
1025
|
+
return typeof target === "string" && target.length > 0 ? target : void 0;
|
|
1026
|
+
}
|
|
1027
|
+
function isReplyToParent(name2, args, agent, parentNameOf) {
|
|
1017
1028
|
if (name2 !== REPLY_TOOL) return false;
|
|
1018
|
-
const target = args
|
|
1029
|
+
const target = replyTargetOf(args);
|
|
1030
|
+
if (target === void 0) return false;
|
|
1019
1031
|
const parent = parentSessionOf(agent);
|
|
1020
|
-
|
|
1032
|
+
if (parent === void 0) return false;
|
|
1033
|
+
if (target === parent) return true;
|
|
1034
|
+
if (!parentNameOf || !agent) return false;
|
|
1035
|
+
const parentName = parentNameOf(agent, parent);
|
|
1036
|
+
return typeof parentName === "string" && parentName.length > 0 && target === parentName;
|
|
1021
1037
|
}
|
|
1022
1038
|
function descriptorLabel(data) {
|
|
1023
1039
|
if (typeof data !== "object" || data === null || !("label" in data) || typeof data.label !== "string") return void 0;
|
|
@@ -1053,7 +1069,37 @@ function identityOfFromContext(ctx) {
|
|
|
1053
1069
|
return void 0;
|
|
1054
1070
|
}
|
|
1055
1071
|
}
|
|
1056
|
-
function
|
|
1072
|
+
function parentNameOfFromContext(ctx) {
|
|
1073
|
+
try {
|
|
1074
|
+
const subagents = ctx.get("subagents");
|
|
1075
|
+
if (!subagents || typeof subagents.namesOf !== "function" && typeof subagents.rootOf !== "function") {
|
|
1076
|
+
return void 0;
|
|
1077
|
+
}
|
|
1078
|
+
return (agent, parentSession) => {
|
|
1079
|
+
if (typeof subagents.namesOf === "function") {
|
|
1080
|
+
try {
|
|
1081
|
+
const names = subagents.namesOf(agent);
|
|
1082
|
+
if (typeof names?.parent === "string" && names.parent.length > 0) return names.parent;
|
|
1083
|
+
} catch {
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
if (typeof subagents.rootOf === "function") {
|
|
1087
|
+
try {
|
|
1088
|
+
const root = subagents.rootOf(agent);
|
|
1089
|
+
if (root && root !== agent && typeof root.id === "string" && root.id === parentSession) {
|
|
1090
|
+
return "lead";
|
|
1091
|
+
}
|
|
1092
|
+
} catch {
|
|
1093
|
+
return void 0;
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
return void 0;
|
|
1097
|
+
};
|
|
1098
|
+
} catch {
|
|
1099
|
+
return void 0;
|
|
1100
|
+
}
|
|
1101
|
+
}
|
|
1102
|
+
function createAnswerOnlyGuard(labels, identityOf, allowedTools = () => [], parentNameOf) {
|
|
1057
1103
|
const allowedNow = () => {
|
|
1058
1104
|
const names = allowedTools();
|
|
1059
1105
|
if (!Array.isArray(names)) return [];
|
|
@@ -1084,7 +1130,7 @@ function createAnswerOnlyGuard(labels, identityOf, allowedTools = () => []) {
|
|
|
1084
1130
|
const guard = ({ agent, name: name2, arguments: args }) => {
|
|
1085
1131
|
if (!agent) return void 0;
|
|
1086
1132
|
const allowed = allowedNow();
|
|
1087
|
-
const permitted = isReplyToParent(name2, args, agent) || name2 !== void 0 && allowed.includes(name2);
|
|
1133
|
+
const permitted = isReplyToParent(name2, args, agent, parentNameOf) || name2 !== void 0 && allowed.includes(name2);
|
|
1088
1134
|
const verdict = permitted ? void 0 : denyFor(allowed);
|
|
1089
1135
|
if (isOwnedId(agent)) return verdict;
|
|
1090
1136
|
if (owned.has(agent) || agent.session !== void 0 && owned.has(agent.session)) return verdict;
|
|
@@ -1181,7 +1227,12 @@ function apply(ctx, config) {
|
|
|
1181
1227
|
ctx.effect(() => hideInternalCommands(ctx.commands));
|
|
1182
1228
|
const labels = /* @__PURE__ */ new Set();
|
|
1183
1229
|
const settingsNow = () => readSettings(config);
|
|
1184
|
-
const protection = createAnswerOnlyGuard(
|
|
1230
|
+
const protection = createAnswerOnlyGuard(
|
|
1231
|
+
labels,
|
|
1232
|
+
identityOfFromContext(ctx),
|
|
1233
|
+
() => settingsNow().allowedTools,
|
|
1234
|
+
parentNameOfFromContext(ctx)
|
|
1235
|
+
);
|
|
1185
1236
|
const releasePluginGuard = ctx.tools.guard(protection);
|
|
1186
1237
|
const childGuards = /* @__PURE__ */ new WeakMap();
|
|
1187
1238
|
const arm = (agent) => {
|
|
@@ -1218,11 +1269,42 @@ function apply(ctx, config) {
|
|
|
1218
1269
|
}
|
|
1219
1270
|
const label = t("agent.name");
|
|
1220
1271
|
retainLabel(label);
|
|
1221
|
-
const
|
|
1272
|
+
const parentAgent = request.context;
|
|
1273
|
+
const parentId = parentAgent?.session?.header?.id;
|
|
1274
|
+
const subagents = ctx.subagents;
|
|
1275
|
+
const isFlatActivation = typeof subagents.rootOf === "function";
|
|
1276
|
+
let replyField = isFlatActivation ? "agent" : "agent_id";
|
|
1277
|
+
try {
|
|
1278
|
+
const sendTool = ctx.tools.get?.("send_message", parentAgent);
|
|
1279
|
+
const props = sendTool?.parameters?.properties;
|
|
1280
|
+
if (props && typeof props === "object") {
|
|
1281
|
+
if ("agent" in props && !("agent_id" in props)) replyField = "agent";
|
|
1282
|
+
else if ("agent_id" in props) replyField = "agent_id";
|
|
1283
|
+
}
|
|
1284
|
+
} catch {
|
|
1285
|
+
}
|
|
1286
|
+
let replyTarget = parentId;
|
|
1287
|
+
if (parentId !== void 0 && replyField === "agent" && parentAgent) {
|
|
1288
|
+
let resolvedName;
|
|
1289
|
+
if (typeof subagents.namesOf === "function") {
|
|
1290
|
+
try {
|
|
1291
|
+
const self = subagents.namesOf(parentAgent)?.self;
|
|
1292
|
+
if (typeof self === "string" && self.length > 0) resolvedName = self;
|
|
1293
|
+
} catch {
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (resolvedName === void 0 && typeof subagents.rootOf === "function") {
|
|
1297
|
+
try {
|
|
1298
|
+
if (subagents.rootOf(parentAgent) === parentAgent) resolvedName = "lead";
|
|
1299
|
+
} catch {
|
|
1300
|
+
}
|
|
1301
|
+
}
|
|
1302
|
+
if (resolvedName !== void 0) replyTarget = resolvedName;
|
|
1303
|
+
}
|
|
1222
1304
|
const settings = settingsNow();
|
|
1223
|
-
const replyHint =
|
|
1305
|
+
const replyHint = replyTarget === void 0 ? "" : `
|
|
1224
1306
|
|
|
1225
|
-
${t("agent.replyHint", { parent: JSON.stringify(
|
|
1307
|
+
${t("agent.replyHint", { field: replyField, parent: JSON.stringify(replyTarget) })}`;
|
|
1226
1308
|
const permissions = settings.allowedTools.length === 0 ? "" : `
|
|
1227
1309
|
|
|
1228
1310
|
${t("agent.toolsAllowed", { tools: settings.allowedTools.join(", ") })}`;
|
|
@@ -1230,8 +1312,6 @@ ${t("agent.toolsAllowed", { tools: settings.allowedTools.join(", ") })}`;
|
|
|
1230
1312
|
const promptText = `${prefix}${permissions}${replyHint}
|
|
1231
1313
|
|
|
1232
1314
|
${request.question}`;
|
|
1233
|
-
const subagents = ctx.subagents;
|
|
1234
|
-
const parentAgent = request.context;
|
|
1235
1315
|
const parentMaxTokens = parentAgent?.options?.maxTokens;
|
|
1236
1316
|
const maxTokens = typeof parentMaxTokens === "number" && parentMaxTokens > 0 ? Math.min(SIDE_MAX_OUTPUT_TOKENS, parentMaxTokens) : SIDE_MAX_OUTPUT_TOKENS;
|
|
1237
1317
|
if (typeof subagents.startActivation === "function") {
|
|
@@ -1247,20 +1327,31 @@ ${request.question}`;
|
|
|
1247
1327
|
});
|
|
1248
1328
|
let activation;
|
|
1249
1329
|
try {
|
|
1250
|
-
activation = await subagents.startActivation(
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1330
|
+
activation = await subagents.startActivation(
|
|
1331
|
+
isFlatActivation ? {
|
|
1332
|
+
provider: "fork",
|
|
1333
|
+
label,
|
|
1334
|
+
childId,
|
|
1255
1335
|
parent: request.context,
|
|
1256
1336
|
// 旁问只需一次性只读回答:收紧继承来的过大输出预算,避免长会话溢出;
|
|
1257
1337
|
// 同时取 min 避免反向抬高小预算路由。
|
|
1258
1338
|
agentOptions: { maxTokens },
|
|
1259
|
-
prompt: [{ type: "text", text: promptText }]
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1339
|
+
prompt: [{ type: "text", text: promptText }],
|
|
1340
|
+
signal: request.signal,
|
|
1341
|
+
delivery: "caller"
|
|
1342
|
+
} : {
|
|
1343
|
+
provider: "fork",
|
|
1344
|
+
label,
|
|
1345
|
+
childId,
|
|
1346
|
+
request: {
|
|
1347
|
+
parent: request.context,
|
|
1348
|
+
agentOptions: { maxTokens },
|
|
1349
|
+
prompt: [{ type: "text", text: promptText }]
|
|
1350
|
+
},
|
|
1351
|
+
signal: request.signal,
|
|
1352
|
+
delivery: "caller"
|
|
1353
|
+
}
|
|
1354
|
+
);
|
|
1264
1355
|
} finally {
|
|
1265
1356
|
stopCreated();
|
|
1266
1357
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const CSS = "\n.btw-reference-preview{display:block;margin-top:6px;max-height:3.2em;overflow:hidden;overflow-wrap:anywhere;line-height:1.6;color:var(--dsw-alias-label-primary)}\n.btw-selection-dialog{position:fixed;box-sizing:border-box;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary)}\n.btw-selection-menu{position:fixed;display:inline-flex;align-items:center;gap:6px;margin:0;width:max-content;max-width:calc(100vw - 16px);padding:0;inset:auto;border:none;background:transparent;box-shadow:none;pointer-events:auto;z-index:1000}\n.btw-selection-menu button{display:inline-flex;align-items:center;justify-content:center;corner-shape:round;background:var(--dsw-alias-button-floating-fill);border:1px solid var(--dsw-alias-border-l3,rgba(0,0,0,0.1));box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;border-radius:999px;padding:5px 12px;min-height:28px;white-space:nowrap;user-select:none;transition:background-color 120ms ease}\n.btw-selection-menu button:hover{background:var(--dsw-alias-button-floating-hover)}\n.btw-selection-menu button:focus-visible{background:var(--dsw-alias-button-floating-hover);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}\n.btw-selection-modal{max-width:min(520px,calc(100vw - 32px))!important}\n.btw-selection-label{display:flex;flex-direction:column;gap:8px;margin-top:12px;font-size:13px;font-weight:500;color:var(--dsw-alias-label-primary)}\n.btw-selection-modal textarea{box-sizing:border-box;width:100%;min-height:96px;resize:vertical;font:inherit;font-size:13px;line-height:1.5;padding:10px 12px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,8px);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary)}\n.btw-selection-modal textarea:focus{border-color:var(--dsw-alias-state-business-primary);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}\n.btw-selection-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}\n.btw-selection-hint{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.6;margin:10px 4px}\n.btw-reference{padding:0 14px 10px;font-size:12px}\n.btw-reference summary{cursor:pointer;color:var(--dsw-alias-label-secondary)}\n.btw-reference blockquote{margin:8px 0 0;padding:8px;border-left:2px solid var(--dsw-alias-border-l2);white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}\n.btw-selection-modal .btw-reference{padding:0}\n.btw-reference-tag{display:inline-flex;align-items:center;font-size:11px;font-weight:500;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);padding:1px 6px;border-radius:4px;border:1px solid var(--dsw-alias-border-l3);margin-right:4px}\n.btw-dock{display:flex;flex:none;flex-direction:column;gap:8px;width:calc(100% - var(--dsh-composer-side-clearance,0px) - var(--dsh-composer-side-clearance,0px));max-width:var(--dsh-composer-card-max-width,100%);margin:0 auto;max-height:440px;overflow:auto;padding:4px 0 10px;box-sizing:border-box;letter-spacing:0}\n.btw-bubble{background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary);border:1px solid var(--dsw-alias-border-l2);border-radius:12px;min-width:0;flex-shrink:0;font-size:13px;line-height:1.6;font-family:var(--dsw-font-family,inherit);letter-spacing:0}\n.btw-header{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 14px;min-width:0;min-height:44px}\n.btw-symbol{display:flex;align-items:center;color:var(--dsw-alias-label-secondary);height:28px;flex-shrink:0}\n.btw-question{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:22px;max-height:66px;overflow:auto}\n.btw-actions{display:flex;gap:4px;flex-shrink:0}\n.btw-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--dsw-alias-label-secondary);cursor:pointer;flex:none;transition:background-color 120ms ease}\n.btw-actions button:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}\n.btw-actions button:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,var(--dsw-alias-label-primary));outline-offset:-2px}\n.btw-actions button.btw-action-stop{color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-actions button.btw-action-stop:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-actions button:disabled{cursor:wait;opacity:.5}\n.btw-status{display:flex;align-items:center;gap:8px;padding:0 14px 12px;color:var(--dsw-alias-label-secondary);font-size:13px}\n.btw-spinner{animation:btw-spin 1.2s linear infinite}@keyframes btw-spin{to{transform:rotate(360deg)}}\n.btw-answer{padding:0 14px 14px;max-height:300px;overflow:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.7}\n.btw-answer>*:first-child{margin-top:0}.btw-answer>*:last-child{margin-bottom:0}\n.btw-answer p{margin:8px 0}.btw-answer h1,.btw-answer h2,.btw-answer h3{font-size:15px;line-height:1.5;margin:12px 0 6px;font-weight:600}\n.btw-answer pre{max-width:100%;overflow:auto;background:var(--dsw-alias-markdown-code-block);padding:10px;border-radius:8px;white-space:pre;font-size:12px}.btw-answer .katex-display{max-width:100%;overflow:auto}\n.btw-answer code{font-family:Consolas,monospace;font-size:12px}.btw-answer :not(pre)>code{background:var(--dsw-alias-markdown-code-block);border-radius:4px;padding:1px 3px}.btw-answer a{color:var(--dsw-alias-label-primary);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}\n.btw-answer table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.btw-answer th,.btw-answer td{border:1px solid var(--dsw-alias-border-l2);padding:5px 9px}\n.btw-answer ul,.btw-answer ol{padding-left:22px}.btw-answer blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-secondary)}\n.btw-error{margin:0;padding:0 14px 12px;font-size:13px;color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere}\n.btw-anchor-highlight{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px;animation:btw-pulse 1.6s ease-out}\n@keyframes btw-pulse{0%{background-color:var(--dsw-alias-interactive-bg-hover-accent,rgba(59,130,246,0.2))}100%{background-color:transparent}}\n.btw-settings{display:flex;flex-direction:column;gap:12px;padding:12px 0;max-width:640px}\n.btw-settings[data-btw-settings=\"loading\"]{font-size:12px;color:var(--dsw-alias-label-secondary)}\n.btw-settings-title{margin:0;font-size:14px;font-weight:600;color:var(--dsw-alias-label-primary);line-height:1.4}\n.btw-settings-description{margin:0;font-size:12px;line-height:1.6;color:var(--dsw-alias-label-secondary)}\n.btw-settings-summary{margin:0;font-size:12px;line-height:1.6;color:var(--dsw-alias-label-secondary)}\n.btw-settings-warning{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-label-secondary))}\n.btw-settings-field{display:flex;flex-direction:column;gap:6px}\n.btw-settings-label{font-size:12px;font-weight:600;color:var(--dsw-alias-label-primary)}\n.btw-settings-textarea{font:inherit;font-size:12px;line-height:1.6;padding:8px 10px;border-radius:8px;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);resize:vertical;box-sizing:border-box}\n.btw-settings-prompt{min-height:120px}\n.btw-settings-textarea:focus{outline:none;border-color:var(--dsw-alias-state-business-primary)}\n.btw-settings-textarea:disabled{opacity:0.6;cursor:not-allowed}\n.btw-settings-hint{font-size:11px;line-height:1.5;color:var(--dsw-alias-label-secondary)}\n.btw-settings-error{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-settings-actions{display:flex;align-items:center;gap:8px}\n.btw-settings-saved{font-size:11px;color:var(--dsw-alias-state-success-primary,var(--dsw-alias-label-secondary))}\n@media(max-width:480px){.btw-dock{max-height:330px}.btw-header{padding:6px 8px 6px 12px;gap:6px}.btw-answer{padding:0 12px 12px;max-height:230px}.btw-status,.btw-error{padding-left:12px}.btw-actions{gap:0}.btw-actions button{width:36px;height:36px}}\n@media(prefers-reduced-motion:reduce){.btw-spinner{animation:none}.btw-actions button{transition:none}}\n.btw-native-ask-action{corner-shape:round;background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;border:none;border-radius:999px;padding:5px 10px;display:inline-flex;align-items:center}\n.btw-native-ask-action:focus-visible{background:var(--dsw-alias-button-floating-hover)}\n@media(hover:hover){.btw-native-ask-action:hover{background:var(--dsw-alias-button-floating-hover)}}\n.btw-official-quote-node{display:inline-flex;align-items:baseline;gap:4px;box-sizing:border-box;max-width:min(80%,300px);margin:0;padding:0;vertical-align:baseline;color:var(--dsw-alias-state-business-primary);font-size:var(--dsh-content-font-size,14px);line-height:calc(20px + var(--dsh-content-font-delta,0px));cursor:pointer;text-decoration:none}\n.btw-quote-marker{display:grid;place-items:center;align-self:center;flex:none;width:16px;height:16px;padding:0;color:inherit;user-select:none;pointer-events:none}\n.btw-quote-icon{width:16px;height:16px}\n.btw-quote-text{min-width:0;padding:0;border:none;outline:none;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.btw-quote-popover-text{display:block;padding:8px 10px;color:var(--dsw-alias-label-primary);font-size:14px;line-height:20px;overflow-wrap:anywhere;white-space:pre-wrap;max-width:min(520px,calc(100vw - 32px))}\n.btw-official-quote-group{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 6px 0;padding:0;max-width:100%}\n[data-text-interaction-surface]{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important}\n[data-text-interaction-surface] button:not(.btw-native-ask-button){order:1!important;margin:0!important}\n[data-text-interaction-surface] button.btw-native-ask-button{order:2!important;margin:0!important}\n.btw-selection-menu button:first-child{order:1!important}\n.btw-selection-menu button:last-child{order:2!important}\n";
|
|
1
|
+
export declare const CSS = "\n.btw-reference-preview{display:block;margin-top:6px;max-height:3.2em;overflow:hidden;overflow-wrap:anywhere;line-height:1.6;color:var(--dsw-alias-label-primary)}\n.btw-selection-dialog{position:fixed;box-sizing:border-box;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-primary)}\n.btw-selection-menu{position:fixed;display:inline-flex;align-items:center;gap:6px;margin:0;width:max-content;max-width:calc(100vw - 16px);padding:0;inset:auto;border:none;background:transparent;box-shadow:none;pointer-events:auto;z-index:1000}\n.btw-selection-menu button{display:inline-flex;align-items:center;justify-content:center;corner-shape:round;background:var(--dsw-alias-button-floating-fill);border:1px solid var(--dsw-alias-border-l3,rgba(0,0,0,0.1));box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;border-radius:999px;padding:5px 12px;min-height:28px;white-space:nowrap;user-select:none;transition:background-color 120ms ease}\n.btw-selection-menu button:hover{background:var(--dsw-alias-button-floating-hover)}\n.btw-selection-menu button:focus-visible{background:var(--dsw-alias-button-floating-hover);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}\n.btw-selection-modal{max-width:min(520px,calc(100vw - 32px))!important}\n.btw-selection-label{display:flex;flex-direction:column;gap:8px;margin-top:12px;font-size:13px;font-weight:500;color:var(--dsw-alias-label-primary)}\n.btw-selection-modal textarea{box-sizing:border-box;width:100%;min-height:96px;resize:vertical;font:inherit;font-size:13px;line-height:1.5;padding:10px 12px;border:1px solid var(--dsw-alias-border-l2);border-radius:var(--dsw-radius-md,8px);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary)}\n.btw-selection-modal textarea:focus{border-color:var(--dsw-alias-state-business-primary);outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:-1px}\n.btw-selection-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px}\n.btw-selection-hint{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:1.6;margin:10px 4px}\n.btw-reference{padding:0 12px 8px;font-size:12px}\n.btw-reference summary{cursor:pointer;color:var(--dsw-alias-label-secondary)}\n.btw-reference blockquote{margin:8px 0 0;padding:8px;border-left:2px solid var(--dsw-alias-border-l2);white-space:pre-wrap;overflow-wrap:anywhere;max-height:150px;overflow:auto}\n.btw-selection-modal .btw-reference{padding:0}\n.btw-reference-tag{display:inline-flex;align-items:center;font-size:11px;font-weight:500;color:var(--dsw-alias-label-secondary);background:var(--dsw-alias-interactive-bg-hover);padding:1px 6px;border-radius:4px;border:1px solid var(--dsw-alias-border-l3);margin-right:4px}\n.btw-dock{display:flex;flex:none;flex-direction:column;gap:6px;width:calc(100% - var(--dsh-composer-side-clearance,0px) - var(--dsh-composer-side-clearance,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px));max-width:calc(var(--dsh-composer-card-max-width,100%) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px) - var(--dsh-composer-dock-inset,0px));margin:0 auto;max-height:440px;overflow:auto;padding:2px 0 6px;box-sizing:border-box;letter-spacing:0}\n.btw-bubble{background:var(--dsw-specific-menu);backdrop-filter:var(--dsw-menu-backdrop-filter);box-shadow:inset 0 0 0 .5px var(--dsw-elevation-stroke-color),var(--dsw-elevation-panel);--dsw-elevation-stroke-color:var(--dsw-alias-border-l1);--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border:0;border-radius:var(--dsw-radius-lg,12px);color:var(--dsw-alias-label-primary);min-width:0;flex-shrink:0;font-size:13px;line-height:1.6;font-family:var(--dsw-font-family,inherit);letter-spacing:0;overflow:hidden}\n.btw-header{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 12px;min-height:36px;box-sizing:border-box}\n.btw-symbol{display:flex;align-items:center;color:var(--dsw-alias-label-tertiary);height:28px;flex-shrink:0}\n.btw-question{flex:1;min-width:0;overflow-wrap:anywhere;font-size:13px;font-weight:500;line-height:24px;max-height:72px;overflow:auto}\n.btw-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}\n.btw-actions button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--dsw-alias-label-tertiary);cursor:pointer;flex:none;transition:background-color 120ms ease,color 120ms ease}\n.btw-actions button:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary)}\n.btw-actions button:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary,var(--dsw-alias-label-primary));outline-offset:-2px}\n.btw-actions button.btw-action-stop{color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-actions button.btw-action-stop:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-actions button:disabled{cursor:wait;opacity:.5}\n.btw-status{display:flex;align-items:center;gap:8px;padding:0 12px 8px;color:var(--dsw-alias-label-secondary);font-size:13px}\n.btw-spinner{animation:btw-spin 1.2s linear infinite}@keyframes btw-spin{to{transform:rotate(360deg)}}\n.btw-answer{padding:0 12px 12px;max-height:300px;overflow:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.7}\n.btw-answer>*:first-child{margin-top:0}.btw-answer>*:last-child{margin-bottom:0}\n.btw-answer p{margin:8px 0}.btw-answer h1,.btw-answer h2,.btw-answer h3{font-size:15px;line-height:1.5;margin:12px 0 6px;font-weight:600}\n.btw-answer pre{max-width:100%;overflow:auto;background:var(--dsw-alias-markdown-code-block);padding:10px;border-radius:8px;white-space:pre;font-size:12px}.btw-answer .katex-display{max-width:100%;overflow:auto}\n.btw-answer code{font-family:Consolas,monospace;font-size:12px}.btw-answer :not(pre)>code{background:var(--dsw-alias-markdown-code-block);border-radius:4px;padding:1px 3px}.btw-answer a{color:var(--dsw-alias-label-primary);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}\n.btw-answer table{display:block;max-width:100%;overflow:auto;border-collapse:collapse}.btw-answer th,.btw-answer td{border:1px solid var(--dsw-alias-border-l2);padding:5px 9px}\n.btw-answer ul,.btw-answer ol{padding-left:22px}.btw-answer blockquote{margin:8px 0;padding-left:10px;border-left:2px solid var(--dsw-alias-border-l4);color:var(--dsw-alias-label-secondary)}\n.btw-error{margin:0;padding:0 12px 8px;font-size:13px;color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere}\n.btw-anchor-highlight{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:2px;animation:btw-pulse 1.6s ease-out}\n@keyframes btw-pulse{0%{background-color:var(--dsw-alias-interactive-bg-hover-accent,rgba(59,130,246,0.2))}100%{background-color:transparent}}\n.btw-settings{display:flex;flex-direction:column;gap:12px;padding:12px 0;max-width:640px}\n.btw-settings[data-btw-settings=\"loading\"]{font-size:12px;color:var(--dsw-alias-label-secondary)}\n.btw-settings-title{margin:0;font-size:14px;font-weight:600;color:var(--dsw-alias-label-primary);line-height:1.4}\n.btw-settings-description{margin:0;font-size:12px;line-height:1.6;color:var(--dsw-alias-label-secondary)}\n.btw-settings-summary{margin:0;font-size:12px;line-height:1.6;color:var(--dsw-alias-label-secondary)}\n.btw-settings-warning{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-label-secondary))}\n.btw-settings-field{display:flex;flex-direction:column;gap:6px}\n.btw-settings-label{font-size:12px;font-weight:600;color:var(--dsw-alias-label-primary)}\n.btw-settings-textarea{font:inherit;font-size:12px;line-height:1.6;padding:8px 10px;border-radius:8px;border:1px solid var(--dsw-alias-border-l3);background:var(--dsw-alias-bg-base);color:var(--dsw-alias-label-primary);resize:vertical;box-sizing:border-box}\n.btw-settings-prompt{min-height:120px}\n.btw-settings-textarea:focus{outline:none;border-color:var(--dsw-alias-state-business-primary)}\n.btw-settings-textarea:disabled{opacity:0.6;cursor:not-allowed}\n.btw-settings-hint{font-size:11px;line-height:1.5;color:var(--dsw-alias-label-secondary)}\n.btw-settings-error{margin:0;font-size:12px;line-height:1.5;color:var(--dsw-alias-state-error-primary,var(--dsw-alias-label-primary))}\n.btw-settings-actions{display:flex;align-items:center;gap:8px}\n.btw-settings-saved{font-size:11px;color:var(--dsw-alias-state-success-primary,var(--dsw-alias-label-secondary))}\n@media(max-width:480px){.btw-dock{max-height:330px}.btw-header{padding:4px 8px 4px 12px;gap:6px;min-height:36px;box-sizing:border-box}.btw-answer{padding:0 12px 12px;max-height:230px}.btw-status,.btw-error{padding-left:12px}.btw-actions{gap:2px}.btw-actions button{width:28px;height:28px}}\n@media(prefers-reduced-motion:reduce){.btw-spinner{animation:none}.btw-actions button{transition:none}}\n.btw-native-ask-action{corner-shape:round;background:var(--dsw-alias-button-floating-fill);box-shadow:var(--dsw-elevation-panel);color:var(--dsw-alias-label-primary);font:var(--dsw-font-xs-13);cursor:pointer;border:none;border-radius:999px;padding:5px 10px;display:inline-flex;align-items:center}\n.btw-native-ask-action:focus-visible{background:var(--dsw-alias-button-floating-hover)}\n@media(hover:hover){.btw-native-ask-action:hover{background:var(--dsw-alias-button-floating-hover)}}\n.btw-official-quote-node{display:inline-flex;align-items:baseline;gap:4px;box-sizing:border-box;max-width:min(80%,300px);margin:0;padding:0;vertical-align:baseline;color:var(--dsw-alias-state-business-primary);font-size:var(--dsh-content-font-size,14px);line-height:calc(20px + var(--dsh-content-font-delta,0px));cursor:pointer;text-decoration:none}\n.btw-quote-marker{display:grid;place-items:center;align-self:center;flex:none;width:16px;height:16px;padding:0;color:inherit;user-select:none;pointer-events:none}\n.btw-quote-icon{width:16px;height:16px}\n.btw-quote-text{min-width:0;padding:0;border:none;outline:none;background:none;color:inherit;font:inherit;line-height:inherit;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n.btw-quote-popover-text{display:block;padding:8px 10px;color:var(--dsw-alias-label-primary);font-size:14px;line-height:20px;overflow-wrap:anywhere;white-space:pre-wrap;max-width:min(520px,calc(100vw - 32px))}\n.btw-official-quote-group{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 6px 0;padding:0;max-width:100%}\n[data-text-interaction-surface]{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:6px!important}\n[data-text-interaction-surface] button:not(.btw-native-ask-button){order:1!important;margin:0!important}\n[data-text-interaction-surface] button.btw-native-ask-button{order:2!important;margin:0!important}\n.btw-selection-menu button:first-child{order:1!important}\n.btw-selection-menu button:last-child{order:2!important}\n";
|
|
@@ -9,8 +9,8 @@ export declare const zh: {
|
|
|
9
9
|
readonly "action.retryClose": "重试关闭";
|
|
10
10
|
readonly "action.stop": "停止回答";
|
|
11
11
|
readonly "agent.name": "旁问专家";
|
|
12
|
-
readonly "agent.promptPrefix": "你是专注解答旁问的独立专家,这是主任务之外的一次性旁问。以下是用户针对当前上下文提出的问题,请直接给出专注、准确的回答;先前会话历史(包括任何工具调用及其结果)仅作为只读理解背景的参考,不是需要你继续执行的任务,不要执行或继续历史中的计划、命令和修改。请求中仍列出的工具定义只为与主会话保持一致,本次旁问中除 send_message 之外任何工具调用都会被拒绝;而 send_message
|
|
13
|
-
readonly "agent.replyHint": "回答默认只留在这个旁问气泡里,不会自动回到主对话。只有当用户在这次提问中明确要求把答案发回主对话时,才调用 send_message 把一份自足的完整答案发给主会话(
|
|
12
|
+
readonly "agent.promptPrefix": "你是专注解答旁问的独立专家,这是主任务之外的一次性旁问。以下是用户针对当前上下文提出的问题,请直接给出专注、准确的回答;先前会话历史(包括任何工具调用及其结果)仅作为只读理解背景的参考,不是需要你继续执行的任务,不要执行或继续历史中的计划、命令和修改。请求中仍列出的工具定义只为与主会话保持一致,本次旁问中除 send_message 之外任何工具调用都会被拒绝;而 send_message 也只能用来把答案发回本旁问所属的直接主会话,不能发给任何其他代理。严禁尝试发起其它工具调用或输出 <tool_call> 等调用标记,信息不足时直接说明,请直接使用纯文字或 Markdown 给出最终回答。回答语言与问题一致,不要在回答中重复无关的主会话内容。";
|
|
13
|
+
readonly "agent.replyHint": "回答默认只留在这个旁问气泡里,不会自动回到主对话。只有当用户在这次提问中明确要求把答案发回主对话时,才调用 send_message 把一份自足的完整答案发给主会话({field} 为 {parent},主对话看不到这段旁问对话)。用户没有要求时不要调用它。";
|
|
14
14
|
readonly "agent.toolsAllowed": "本次旁问额外放行这些工具(其余仍然一律拒绝):{tools}。";
|
|
15
15
|
readonly "bubble.footnotes": "脚注";
|
|
16
16
|
readonly "bubble.image": "图片";
|
|
@@ -19,6 +19,12 @@ export interface SubagentIdentityHint {
|
|
|
19
19
|
readonly label?: string;
|
|
20
20
|
}
|
|
21
21
|
export type IdentityOf = (session: object) => SubagentIdentityHint | null | undefined;
|
|
22
|
+
/** 读取当前旁问在协作树中的直接父代理名(如 `'lead'` 或路径名),仅在宿主提供命名路由时存在。 */
|
|
23
|
+
export type ParentNameOf = (agent: AgentIdentity, parentSession: string) => string | undefined;
|
|
24
|
+
export interface SubagentMemberNamesLike {
|
|
25
|
+
readonly self?: unknown;
|
|
26
|
+
readonly parent?: unknown;
|
|
27
|
+
}
|
|
22
28
|
export interface AnswerOnlyGuard {
|
|
23
29
|
(execution: {
|
|
24
30
|
agent?: AgentIdentity;
|
|
@@ -40,5 +46,14 @@ export type AllowedToolsOf = () => readonly string[];
|
|
|
40
46
|
export declare function identityOfFromContext(ctx: {
|
|
41
47
|
get(name: string): unknown;
|
|
42
48
|
}): IdentityOf | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* 从宿主 `subagents` 服务读取旁问直接父会话的模型侧名称(0.2.2-rc.2+)。
|
|
51
|
+
* 必须通过服务实例方法调用以保留 Cordis 代理的 `this` 上下文;当 `namesOf` 不可用时,
|
|
52
|
+
* 仅在 `rootOf(agent)` 确认为直接父会话(`root !== agent && root.id === parentSession`)时返回 `'lead'`,
|
|
53
|
+
* 避免二级子代理误将 `'lead'` 解析到祖父/树根。
|
|
54
|
+
*/
|
|
55
|
+
export declare function parentNameOfFromContext(ctx: {
|
|
56
|
+
get(name: string): unknown;
|
|
57
|
+
}): ParentNameOf | undefined;
|
|
43
58
|
/** 空白名单过滤继承工具;本保护额外拒绝 PTC 及子作用域自注册工具。 */
|
|
44
|
-
export declare function createAnswerOnlyGuard(labels: ReadonlySet<string>, identityOf?: IdentityOf, allowedTools?: AllowedToolsOf): AnswerOnlyGuard;
|
|
59
|
+
export declare function createAnswerOnlyGuard(labels: ReadonlySet<string>, identityOf?: IdentityOf, allowedTools?: AllowedToolsOf, parentNameOf?: ParentNameOf): AnswerOnlyGuard;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@michengai/dsh-btw",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10",
|
|
4
4
|
"description": "DSH 一次性只读旁问插件:基于当前上下文回答,独立气泡,不执行工具 · One-shot read-only side-ask plugin: answers from current context in an independent bubble, no tool execution",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -111,38 +111,39 @@
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
"devDependencies": {
|
|
114
|
-
"@deepseek-ai/cordis": "4.0
|
|
115
|
-
"@deepseek-ai/dsh-agent": "0.2.2-rc.
|
|
116
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.
|
|
117
|
-
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.
|
|
118
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.
|
|
119
|
-
"@deepseek-ai/dsh-attachment": "0.2.2-rc.
|
|
120
|
-
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.
|
|
121
|
-
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.
|
|
122
|
-
"@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.
|
|
123
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.
|
|
124
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.
|
|
125
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.
|
|
126
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.
|
|
127
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.
|
|
128
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.2-rc.
|
|
129
|
-
"@deepseek-ai/dsh-commands": "0.2.2-rc.
|
|
130
|
-
"@deepseek-ai/dsh-
|
|
131
|
-
"@deepseek-ai/dsh-
|
|
132
|
-
"@deepseek-ai/dsh-
|
|
133
|
-
"@deepseek-ai/dsh-sandbox
|
|
134
|
-
"@deepseek-ai/dsh-
|
|
135
|
-
"@deepseek-ai/dsh-
|
|
136
|
-
"@deepseek-ai/dsh-session
|
|
137
|
-
"@deepseek-ai/dsh-session-
|
|
138
|
-
"@deepseek-ai/dsh-
|
|
139
|
-
"@deepseek-ai/dsh-subagent
|
|
140
|
-
"@deepseek-ai/dsh-
|
|
141
|
-
"@deepseek-ai/dsh-
|
|
142
|
-
"@deepseek-ai/dsh-
|
|
143
|
-
"@deepseek-ai/dsh-typert-
|
|
144
|
-
"@deepseek-ai/dsh-
|
|
145
|
-
"@deepseek-ai/dsh-
|
|
114
|
+
"@deepseek-ai/cordis": "4.1.0",
|
|
115
|
+
"@deepseek-ai/dsh-agent": "0.2.2-rc.2",
|
|
116
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.2-rc.2",
|
|
117
|
+
"@deepseek-ai/dsh-api-gateway": "0.2.2-rc.2",
|
|
118
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.2",
|
|
119
|
+
"@deepseek-ai/dsh-attachment": "0.2.2-rc.2",
|
|
120
|
+
"@deepseek-ai/dsh-client-connection": "0.2.2-rc.2",
|
|
121
|
+
"@deepseek-ai/dsh-client-locale": "0.2.2-rc.2",
|
|
122
|
+
"@deepseek-ai/dsh-client-ui-chat": "0.2.2-rc.2",
|
|
123
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.2",
|
|
124
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.2-rc.2",
|
|
125
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.2",
|
|
126
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.2",
|
|
127
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.2",
|
|
128
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.2-rc.2",
|
|
129
|
+
"@deepseek-ai/dsh-commands": "0.2.2-rc.2",
|
|
130
|
+
"@deepseek-ai/dsh-error": "0.2.2-rc.2",
|
|
131
|
+
"@deepseek-ai/dsh-llm": "0.2.2-rc.2",
|
|
132
|
+
"@deepseek-ai/dsh-ptc-runtime": "0.2.2-rc.2",
|
|
133
|
+
"@deepseek-ai/dsh-sandbox": "0.2.2-rc.2",
|
|
134
|
+
"@deepseek-ai/dsh-sandbox-policy": "0.2.2-rc.2",
|
|
135
|
+
"@deepseek-ai/dsh-scope": "0.2.2-rc.2",
|
|
136
|
+
"@deepseek-ai/dsh-session": "0.2.2-rc.2",
|
|
137
|
+
"@deepseek-ai/dsh-session-persistence": "0.2.2-rc.2",
|
|
138
|
+
"@deepseek-ai/dsh-session-projection": "0.2.2-rc.2",
|
|
139
|
+
"@deepseek-ai/dsh-subagent": "0.2.2-rc.2",
|
|
140
|
+
"@deepseek-ai/dsh-subagent-fork-in-process": "0.2.2-rc.2",
|
|
141
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.2-rc.2",
|
|
142
|
+
"@deepseek-ai/dsh-tools": "0.2.2-rc.2",
|
|
143
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.2",
|
|
144
|
+
"@deepseek-ai/dsh-typert-registry": "0.2.2-rc.2",
|
|
145
|
+
"@deepseek-ai/dsh-user-approval": "0.2.2-rc.2",
|
|
146
|
+
"@deepseek-ai/dsh-util-time": "0.2.2-rc.2",
|
|
146
147
|
"@types/node": "^22.0.0",
|
|
147
148
|
"@types/react": "^18.3.1",
|
|
148
149
|
"@types/react-dom": "^18.3.7",
|