dsh-codex-subscription 3.2.30 → 3.2.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.de.md +4 -4
- package/README.en.md +4 -4
- package/README.es.md +4 -4
- package/README.fr.md +4 -4
- package/README.ja.md +4 -4
- package/README.md +4 -4
- package/README.pt.md +4 -4
- package/README.ru.md +4 -4
- package/README.zh-CN.md +4 -4
- package/lib/client.js +324 -22
- package/lib/index.js +166 -57
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -2271,6 +2271,21 @@ window.__ModuleLoader__.load({
|
|
|
2271
2271
|
connectors_read: "只读",
|
|
2272
2272
|
connectors_ask: "询问后写入",
|
|
2273
2273
|
connectors_write: "直接写入",
|
|
2274
|
+
connectorSettingsLoading: "正在读取连接器设置…",
|
|
2275
|
+
connectorSettingsUnavailable: "无法读取连接器设置。",
|
|
2276
|
+
connectorSettingsSaving: "正在保存设置…",
|
|
2277
|
+
connectorAccountTitle: "使用账号",
|
|
2278
|
+
connectorAccountFollow: "跟随当前账号",
|
|
2279
|
+
connectorAccountOrdinal: "{label}(账号 {number})",
|
|
2280
|
+
connectorAccountActiveOption: "{label}(当前 Codex 账号)",
|
|
2281
|
+
connectorAccountCurrent: "当前 Codex 推理账号:{account}",
|
|
2282
|
+
connectorAccountUnknown: "未知",
|
|
2283
|
+
connectorAccountSaved: "已保存的固定账号",
|
|
2284
|
+
connectorAccountMissing: "固定账号不可用",
|
|
2285
|
+
connectorAccountMissingHint: "找不到固定账号。已保留选择,不会回退到其他账号。可改为跟随当前账号,或另选一个账号。",
|
|
2286
|
+
connectorAccountUnknownHint: "暂时无法确认固定账号的状态。已保留选择;也可改为跟随当前账号。",
|
|
2287
|
+
connectorAccountDisclosure: "固定账号只影响连接器。该账号返回的数据可能进入当前对话所用模型的上下文(包括其他账号或模型服务商),并写入 DSH 会话记录。仅在相关工作区及数据处理政策均允许时使用。",
|
|
2288
|
+
connectorAccountWriteDestination: "写操作只会作用于所选连接器账号已连接的应用,即使 Codex 使用其他账号推理。",
|
|
2274
2289
|
defaultReasoningEffort: "默认推理等级",
|
|
2275
2290
|
defaultReasoningEffortHint: "未手动选档时使用;模型不支持时跟随该模型默认值。",
|
|
2276
2291
|
composerPredictions: "输入预测",
|
|
@@ -3245,6 +3260,21 @@ window.__ModuleLoader__.load({
|
|
|
3245
3260
|
connectors_read: "Read-only",
|
|
3246
3261
|
connectors_ask: "Write after asking",
|
|
3247
3262
|
connectors_write: "Write directly",
|
|
3263
|
+
connectorSettingsLoading: "Loading connector settings…",
|
|
3264
|
+
connectorSettingsUnavailable: "Could not load connector settings.",
|
|
3265
|
+
connectorSettingsSaving: "Saving settings…",
|
|
3266
|
+
connectorAccountTitle: "Account to use",
|
|
3267
|
+
connectorAccountFollow: "Follow the current account",
|
|
3268
|
+
connectorAccountOrdinal: "{label} (account {number})",
|
|
3269
|
+
connectorAccountActiveOption: "{label} (current Codex account)",
|
|
3270
|
+
connectorAccountCurrent: "Current Codex inference account: {account}",
|
|
3271
|
+
connectorAccountUnknown: "Unknown",
|
|
3272
|
+
connectorAccountSaved: "Saved fixed account",
|
|
3273
|
+
connectorAccountMissing: "Fixed account unavailable",
|
|
3274
|
+
connectorAccountMissingHint: "The fixed account was not found. Your selection is kept; connectors will not fall back to another account. Choose Follow the current account or select another account.",
|
|
3275
|
+
connectorAccountUnknownHint: "Could not verify the fixed account. Your selection is kept, or you can choose Follow the current account.",
|
|
3276
|
+
connectorAccountDisclosure: "Fixing an account only affects connectors. Data from its apps may be sent to the model used in this chat (even under a different account or provider) and saved in the DSH conversation history. Only use this if the relevant workspace and data-handling policies allow it.",
|
|
3277
|
+
connectorAccountWriteDestination: "Writes go only to apps connected to the selected connector account, even if the Codex inference account is different.",
|
|
3248
3278
|
defaultReasoningEffort: "Default reasoning effort",
|
|
3249
3279
|
defaultReasoningEffortHint: "Used when no effort is selected manually. Unsupported levels fall back to the model default.",
|
|
3250
3280
|
composerPredictions: "Input predictions",
|
|
@@ -4064,6 +4094,21 @@ window.__ModuleLoader__.load({
|
|
|
4064
4094
|
imageRemoveAnnotation: "Remove note"
|
|
4065
4095
|
},
|
|
4066
4096
|
ja: {
|
|
4097
|
+
"connectorSettingsLoading": "接続アプリの設定を読込中…",
|
|
4098
|
+
"connectorSettingsUnavailable": "接続アプリの設定を読み込めません。",
|
|
4099
|
+
"connectorSettingsSaving": "設定を保存中…",
|
|
4100
|
+
"connectorAccountTitle": "使用するアカウント",
|
|
4101
|
+
"connectorAccountFollow": "現在のアカウントに従う",
|
|
4102
|
+
"connectorAccountOrdinal": "{label}(アカウント {number})",
|
|
4103
|
+
"connectorAccountActiveOption": "{label}(現在の Codex)",
|
|
4104
|
+
"connectorAccountCurrent": "Codex の推論アカウント:{account}",
|
|
4105
|
+
"connectorAccountUnknown": "不明",
|
|
4106
|
+
"connectorAccountSaved": "保存済みの固定アカウント",
|
|
4107
|
+
"connectorAccountMissing": "固定アカウントを利用できません",
|
|
4108
|
+
"connectorAccountMissingHint": "固定アカウントが見つかりません。選択は保持し、別のアカウントへ自動では切り替えません。アカウントを選び直してください。",
|
|
4109
|
+
"connectorAccountUnknownHint": "固定アカウントを確認できません。選択は保持しています。必要なら「現在のアカウントに従う」に変更できます。",
|
|
4110
|
+
"connectorAccountDisclosure": "固定の対象は接続アプリだけです。取得したデータは、このチャットのモデル(別アカウント・別サービスを含む)へ渡され、DSH の会話履歴に保存される場合があります。所属組織のデータ取扱方針で許可されている場合のみ使用してください。",
|
|
4111
|
+
"connectorAccountWriteDestination": "書き込み先は、推論アカウントに関係なく、選んだ接続アプリ用アカウントのアプリです。",
|
|
4067
4112
|
"catalogTimeout": "モデル一覧の取得がタイムアウトしました。ネットワークやプロキシを確認して再試行してください。",
|
|
4068
4113
|
"catalogCachedTimeout": "取得済みのモデル一覧を使用中です。オンライン更新がタイムアウトしました。ネットワークやプロキシを確認して再試行してください。",
|
|
4069
4114
|
"openSubscriptionSettings": "サブスクリプション設定",
|
|
@@ -5038,6 +5083,21 @@ window.__ModuleLoader__.load({
|
|
|
5038
5083
|
"imageRemoveAnnotation": "メモを削除"
|
|
5039
5084
|
},
|
|
5040
5085
|
es: {
|
|
5086
|
+
"connectorSettingsLoading": "Cargando ajustes de conectores…",
|
|
5087
|
+
"connectorSettingsUnavailable": "No se pudieron cargar los ajustes.",
|
|
5088
|
+
"connectorSettingsSaving": "Guardando ajustes…",
|
|
5089
|
+
"connectorAccountTitle": "Cuenta para conectores",
|
|
5090
|
+
"connectorAccountFollow": "Seguir la cuenta actual",
|
|
5091
|
+
"connectorAccountOrdinal": "{label} (cuenta {number})",
|
|
5092
|
+
"connectorAccountActiveOption": "{label} (Codex actual)",
|
|
5093
|
+
"connectorAccountCurrent": "Cuenta de inferencia de Codex: {account}",
|
|
5094
|
+
"connectorAccountUnknown": "Desconocida",
|
|
5095
|
+
"connectorAccountSaved": "Cuenta fija guardada",
|
|
5096
|
+
"connectorAccountMissing": "Cuenta fija no disponible",
|
|
5097
|
+
"connectorAccountMissingHint": "No se encontró la cuenta fija. Se conserva la selección sin usar otra cuenta. Selecciona una cuenta disponible.",
|
|
5098
|
+
"connectorAccountUnknownHint": "No se pudo verificar la cuenta fija. Se conserva la selección; puedes elegir seguir la cuenta actual.",
|
|
5099
|
+
"connectorAccountDisclosure": "La cuenta fija solo afecta a los conectores. Sus datos pueden enviarse al modelo de este chat, incluso de otra cuenta o proveedor, y guardarse en el historial de DSH. Úsala solo si lo permiten las políticas de tratamiento de datos de los espacios de trabajo.",
|
|
5100
|
+
"connectorAccountWriteDestination": "Las escrituras usan las apps de la cuenta elegida para conectores, aunque la cuenta de inferencia sea distinta.",
|
|
5041
5101
|
"speedShortcutTitle": "Atajo de velocidad en el cuadro de entrada",
|
|
5042
5102
|
"speedShortcut_off": "Como antes",
|
|
5043
5103
|
"speedShortcut_icon": "Rayo",
|
|
@@ -6012,6 +6072,21 @@ window.__ModuleLoader__.load({
|
|
|
6012
6072
|
"imageRemoveAnnotation": "Eliminar nota"
|
|
6013
6073
|
},
|
|
6014
6074
|
fr: {
|
|
6075
|
+
"connectorSettingsLoading": "Chargement des réglages des connecteurs…",
|
|
6076
|
+
"connectorSettingsUnavailable": "Impossible de charger les réglages.",
|
|
6077
|
+
"connectorSettingsSaving": "Enregistrement…",
|
|
6078
|
+
"connectorAccountTitle": "Compte des connecteurs",
|
|
6079
|
+
"connectorAccountFollow": "Suivre le compte actuel",
|
|
6080
|
+
"connectorAccountOrdinal": "{label} (compte {number})",
|
|
6081
|
+
"connectorAccountActiveOption": "{label} (Codex actuel)",
|
|
6082
|
+
"connectorAccountCurrent": "Compte d’inférence Codex : {account}",
|
|
6083
|
+
"connectorAccountUnknown": "Inconnu",
|
|
6084
|
+
"connectorAccountSaved": "Compte fixe enregistré",
|
|
6085
|
+
"connectorAccountMissing": "Compte fixe indisponible",
|
|
6086
|
+
"connectorAccountMissingHint": "Le compte fixe est introuvable. Le choix est conservé sans utiliser un autre compte. Sélectionnez un compte disponible.",
|
|
6087
|
+
"connectorAccountUnknownHint": "Impossible de vérifier le compte fixe. Le choix est conservé ; vous pouvez suivre le compte actuel.",
|
|
6088
|
+
"connectorAccountDisclosure": "Le compte fixe concerne uniquement les connecteurs. Leurs données peuvent être transmises au modèle de ce chat, même d’un autre compte ou fournisseur, et enregistrées dans l’historique DSH. Utilisez cette option uniquement si les politiques de traitement des données des espaces de travail le permettent.",
|
|
6089
|
+
"connectorAccountWriteDestination": "Les écritures utilisent les apps du compte choisi pour les connecteurs, indépendamment du compte d’inférence.",
|
|
6015
6090
|
"speedShortcutTitle": "Raccourci de vitesse dans la zone de saisie",
|
|
6016
6091
|
"speedShortcut_off": "Comme avant",
|
|
6017
6092
|
"speedShortcut_icon": "Éclair",
|
|
@@ -6986,6 +7061,21 @@ window.__ModuleLoader__.load({
|
|
|
6986
7061
|
"imageRemoveAnnotation": "Supprimer la note"
|
|
6987
7062
|
},
|
|
6988
7063
|
de: {
|
|
7064
|
+
"connectorSettingsLoading": "Konnektor-Einstellungen werden geladen…",
|
|
7065
|
+
"connectorSettingsUnavailable": "Einstellungen konnten nicht geladen werden.",
|
|
7066
|
+
"connectorSettingsSaving": "Einstellungen werden gespeichert…",
|
|
7067
|
+
"connectorAccountTitle": "Konto für Konnektoren",
|
|
7068
|
+
"connectorAccountFollow": "Aktuellem Konto folgen",
|
|
7069
|
+
"connectorAccountOrdinal": "{label} (Konto {number})",
|
|
7070
|
+
"connectorAccountActiveOption": "{label} (aktuelles Codex-Konto)",
|
|
7071
|
+
"connectorAccountCurrent": "Codex-Inferenzkonto: {account}",
|
|
7072
|
+
"connectorAccountUnknown": "Unbekannt",
|
|
7073
|
+
"connectorAccountSaved": "Gespeichertes festes Konto",
|
|
7074
|
+
"connectorAccountMissing": "Festes Konto nicht verfügbar",
|
|
7075
|
+
"connectorAccountMissingHint": "Das feste Konto wurde nicht gefunden. Die Auswahl bleibt erhalten; es wird kein anderes Konto verwendet. Bitte ein verfügbares Konto auswählen.",
|
|
7076
|
+
"connectorAccountUnknownHint": "Das feste Konto konnte nicht geprüft werden. Die Auswahl bleibt erhalten; alternativ dem aktuellen Konto folgen.",
|
|
7077
|
+
"connectorAccountDisclosure": "Das feste Konto gilt nur für Konnektoren. Deren Daten können an das Modell dieses Chats (auch eines anderen Kontos oder Anbieters) gesendet und im DSH-Verlauf gespeichert werden. Nur verwenden, wenn die Datenrichtlinien der Arbeitsbereiche dies erlauben.",
|
|
7078
|
+
"connectorAccountWriteDestination": "Schreibzugriffe verwenden die Apps des ausgewählten Konnektorkontos, unabhängig vom Inferenzkonto.",
|
|
6989
7079
|
"speedShortcutTitle": "Tempo-Kürzel im Eingabefeld",
|
|
6990
7080
|
"speedShortcut_off": "Wie bisher",
|
|
6991
7081
|
"speedShortcut_icon": "Blitzsymbol",
|
|
@@ -7960,6 +8050,21 @@ window.__ModuleLoader__.load({
|
|
|
7960
8050
|
"imageRemoveAnnotation": "Notiz entfernen"
|
|
7961
8051
|
},
|
|
7962
8052
|
ru: {
|
|
8053
|
+
"connectorSettingsLoading": "Загрузка настроек коннекторов…",
|
|
8054
|
+
"connectorSettingsUnavailable": "Не удалось загрузить настройки.",
|
|
8055
|
+
"connectorSettingsSaving": "Сохранение настроек…",
|
|
8056
|
+
"connectorAccountTitle": "Аккаунт коннекторов",
|
|
8057
|
+
"connectorAccountFollow": "Следовать текущему аккаунту",
|
|
8058
|
+
"connectorAccountOrdinal": "{label} (аккаунт {number})",
|
|
8059
|
+
"connectorAccountActiveOption": "{label} (текущий Codex)",
|
|
8060
|
+
"connectorAccountCurrent": "Аккаунт модели Codex: {account}",
|
|
8061
|
+
"connectorAccountUnknown": "Неизвестен",
|
|
8062
|
+
"connectorAccountSaved": "Сохранённый аккаунт",
|
|
8063
|
+
"connectorAccountMissing": "Закреплённый аккаунт недоступен",
|
|
8064
|
+
"connectorAccountMissingHint": "Закреплённый аккаунт не найден. Выбор сохранён, другой аккаунт не используется. Выберите доступный аккаунт.",
|
|
8065
|
+
"connectorAccountUnknownHint": "Не удалось проверить закреплённый аккаунт. Выбор сохранён; можно выбрать текущий аккаунт.",
|
|
8066
|
+
"connectorAccountDisclosure": "Закрепление касается только коннекторов. Их данные могут передаваться модели этого чата, включая другой аккаунт или сервис, и сохраняться в истории DSH. Используйте только при разрешении политик обработки данных рабочих пространств.",
|
|
8067
|
+
"connectorAccountWriteDestination": "Запись выполняется в приложения выбранного аккаунта коннекторов независимо от аккаунта модели.",
|
|
7963
8068
|
"speedShortcutTitle": "Переключатель скорости в поле ввода",
|
|
7964
8069
|
"speedShortcut_off": "Как раньше",
|
|
7965
8070
|
"speedShortcut_icon": "Молния",
|
|
@@ -8934,6 +9039,21 @@ window.__ModuleLoader__.load({
|
|
|
8934
9039
|
"imageRemoveAnnotation": "Удалить примечание"
|
|
8935
9040
|
},
|
|
8936
9041
|
pt: {
|
|
9042
|
+
"connectorSettingsLoading": "Carregando ajustes dos conectores…",
|
|
9043
|
+
"connectorSettingsUnavailable": "Não foi possível carregar os ajustes.",
|
|
9044
|
+
"connectorSettingsSaving": "Salvando ajustes…",
|
|
9045
|
+
"connectorAccountTitle": "Conta dos conectores",
|
|
9046
|
+
"connectorAccountFollow": "Seguir a conta atual",
|
|
9047
|
+
"connectorAccountOrdinal": "{label} (conta {number})",
|
|
9048
|
+
"connectorAccountActiveOption": "{label} (Codex atual)",
|
|
9049
|
+
"connectorAccountCurrent": "Conta de inferência do Codex: {account}",
|
|
9050
|
+
"connectorAccountUnknown": "Desconhecida",
|
|
9051
|
+
"connectorAccountSaved": "Conta fixa salva",
|
|
9052
|
+
"connectorAccountMissing": "Conta fixa indisponível",
|
|
9053
|
+
"connectorAccountMissingHint": "A conta fixa não foi encontrada. A seleção é mantida sem usar outra conta. Selecione uma conta disponível.",
|
|
9054
|
+
"connectorAccountUnknownHint": "Não foi possível verificar a conta fixa. A seleção é mantida; você pode seguir a conta atual.",
|
|
9055
|
+
"connectorAccountDisclosure": "A conta fixa afeta apenas os conectores. Seus dados podem ser enviados ao modelo deste chat, mesmo de outra conta ou provedor, e salvos no histórico do DSH. Use apenas se as políticas de tratamento de dados dos espaços de trabalho permitirem.",
|
|
9056
|
+
"connectorAccountWriteDestination": "As gravações usam os apps da conta escolhida para conectores, independentemente da conta de inferência.",
|
|
8937
9057
|
"speedShortcutTitle": "Atalho de velocidade no campo de mensagem",
|
|
8938
9058
|
"speedShortcut_off": "Como antes",
|
|
8939
9059
|
"speedShortcut_icon": "Raio",
|
|
@@ -10250,6 +10370,13 @@ window.__ModuleLoader__.load({
|
|
|
10250
10370
|
.codexSubscriptionConnectors .codexSubscriptionQuotaMode{min-height:28px;padding:0 10px;white-space:nowrap}
|
|
10251
10371
|
.codexSubscriptionConnectors>.codexSubscriptionModeNote{padding:0;background:none;font-size:12px;line-height:18px}
|
|
10252
10372
|
.codexSubscriptionConnectors>.codexSubscriptionModeNote[data-danger=true]{background:none}
|
|
10373
|
+
.codexConnectorAccount>.codexSubscriptionContextTrigger{max-width:100%;min-width:0}
|
|
10374
|
+
.codexConnectorAccount>.codexSubscriptionContextTrigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
10375
|
+
.codexConnectorAccount>.codexSubscriptionContextTrigger>svg{flex:none}
|
|
10376
|
+
.codexConnectorAccount>.codexSubscriptionPreferenceCopy{overflow-wrap:anywhere}
|
|
10377
|
+
.codexConnectorAccount>.codexSubscriptionPreferenceHint{flex-basis:100%}
|
|
10378
|
+
.codexConnectorAccount>.codexSubscriptionContextTrigger[aria-disabled=true]{opacity:.65;cursor:progress}
|
|
10379
|
+
.codexConnectorRecovery{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;font-size:12px;line-height:18px;color:var(--dsw-alias-label-secondary)}
|
|
10253
10380
|
@container (max-width:520px){.codexSubscriptionConnectors>.codexSubscriptionQuotaModes{flex:1 1 100%;margin-left:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}.codexSubscriptionConnectors .codexSubscriptionQuotaMode{padding:0 4px;white-space:normal;text-align:center}}
|
|
10254
10381
|
.codexVoiceChoice{display:flex;align-items:center;gap:8px}
|
|
10255
10382
|
.codexVoiceChoice .codexSubscriptionContextTrigger{min-width:150px;justify-content:space-between}
|
|
@@ -10949,6 +11076,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
10949
11076
|
"ask",
|
|
10950
11077
|
"write"
|
|
10951
11078
|
]);
|
|
11079
|
+
const CONNECTOR_ACCOUNT_FIELD = "connectorAccount";
|
|
10952
11080
|
const INPUT_IMAGE_DETAIL_FIELD = "inputImageDetail";
|
|
10953
11081
|
const INPUT_IMAGE_DETAILS = Object.freeze([
|
|
10954
11082
|
"low",
|
|
@@ -11216,7 +11344,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11216
11344
|
function createPreferenceController(rpc) {
|
|
11217
11345
|
let updating = false;
|
|
11218
11346
|
let error = false;
|
|
11219
|
-
let fallback;
|
|
11347
|
+
let fallback = { status: "loading" };
|
|
11220
11348
|
let pendingPatch;
|
|
11221
11349
|
let failedPatch;
|
|
11222
11350
|
let generation = 0;
|
|
@@ -11286,6 +11414,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11286
11414
|
voiceLanguage: normalizeVoiceLanguage(value?.[VOICE_LANGUAGE_FIELD]),
|
|
11287
11415
|
retryPolicy: normalizeRetryPolicy(value?.[RETRY_POLICY_FIELD]),
|
|
11288
11416
|
connectors: normalizeConnectorMode(value?.[CONNECTORS_FIELD]),
|
|
11417
|
+
[CONNECTOR_ACCOUNT_FIELD]: value?.["connectorAccount"] ?? "",
|
|
11289
11418
|
streamIdleTimeoutMinutes: normalizeStreamIdleTimeoutMinutes(value?.[STREAM_IDLE_TIMEOUT_MINUTES_FIELD]),
|
|
11290
11419
|
contextMode: normalizeContextMode(value?.[CONTEXT_MODE_FIELD]),
|
|
11291
11420
|
customContextWindow: normalizeCustomContextWindow(value?.[CUSTOM_CONTEXT_WINDOW_FIELD]),
|
|
@@ -11371,6 +11500,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11371
11500
|
[VOICE_LANGUAGE_FIELD]: normalizeVoiceLanguage(value?.[VOICE_LANGUAGE_FIELD]),
|
|
11372
11501
|
[RETRY_POLICY_FIELD]: normalizeRetryPolicy(value?.[RETRY_POLICY_FIELD]),
|
|
11373
11502
|
[CONNECTORS_FIELD]: normalizeConnectorMode(value?.[CONNECTORS_FIELD]),
|
|
11503
|
+
[CONNECTOR_ACCOUNT_FIELD]: value?.["connectorAccount"] ?? "",
|
|
11374
11504
|
[STREAM_IDLE_TIMEOUT_MINUTES_FIELD]: normalizeStreamIdleTimeoutMinutes(value?.[STREAM_IDLE_TIMEOUT_MINUTES_FIELD]),
|
|
11375
11505
|
[CONTEXT_MODE_FIELD]: normalizeContextMode(value?.[CONTEXT_MODE_FIELD]),
|
|
11376
11506
|
[CUSTOM_CONTEXT_WINDOW_FIELD]: normalizeCustomContextWindow(value?.[CUSTOM_CONTEXT_WINDOW_FIELD]),
|
|
@@ -11384,7 +11514,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11384
11514
|
const current = ++generation;
|
|
11385
11515
|
updating = false;
|
|
11386
11516
|
pendingPatch = void 0;
|
|
11387
|
-
fallback =
|
|
11517
|
+
fallback = { status: "loading" };
|
|
11518
|
+
failedPatch = void 0;
|
|
11388
11519
|
error = false;
|
|
11389
11520
|
publish();
|
|
11390
11521
|
if (disposed || current !== generation) return;
|
|
@@ -11395,6 +11526,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
11395
11526
|
publish();
|
|
11396
11527
|
} catch {
|
|
11397
11528
|
if (current !== generation || disposed) return;
|
|
11529
|
+
fallback = { status: "unavailable" };
|
|
11398
11530
|
publish();
|
|
11399
11531
|
}
|
|
11400
11532
|
};
|
|
@@ -12159,7 +12291,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
12159
12291
|
}
|
|
12160
12292
|
//#endregion
|
|
12161
12293
|
//#region src/version.js
|
|
12162
|
-
const PACKAGE_VERSION = "3.2.
|
|
12294
|
+
const PACKAGE_VERSION = "3.2.32";
|
|
12163
12295
|
//#endregion
|
|
12164
12296
|
//#region src/client-recovery.js
|
|
12165
12297
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
|
|
@@ -18587,19 +18719,168 @@ void main(){
|
|
|
18587
18719
|
})]
|
|
18588
18720
|
});
|
|
18589
18721
|
}
|
|
18590
|
-
function
|
|
18722
|
+
function ConnectorAccountPreference({ preference, t, value, accountSnapshot, retryAccount, writable, saving, active }) {
|
|
18723
|
+
const [open, setOpen] = (0, react.useState)(false);
|
|
18724
|
+
const id = (0, react.useId)();
|
|
18725
|
+
const account = accountSnapshot.status === "ready" ? accountSnapshot.account : void 0;
|
|
18726
|
+
const hasRoster = Array.isArray(account?.accounts);
|
|
18727
|
+
const accounts = hasRoster ? account.accounts.filter((candidate) => typeof candidate?.id === "string" && candidate.id !== "") : [];
|
|
18728
|
+
const labels = accounts.map((candidate) => candidate.label || t("connectorAccountUnknown"));
|
|
18729
|
+
const counts = /* @__PURE__ */ new Map();
|
|
18730
|
+
for (const label of labels) counts.set(label, (counts.get(label) ?? 0) + 1);
|
|
18731
|
+
const choices = accounts.map((candidate, index) => {
|
|
18732
|
+
const label = labels[index];
|
|
18733
|
+
const name = counts.get(label) > 1 ? t("connectorAccountOrdinal").replace("{number}", String(index + 1)).replace("{label}", () => label) : label;
|
|
18734
|
+
return {
|
|
18735
|
+
id: candidate.id,
|
|
18736
|
+
active: candidate.active === true,
|
|
18737
|
+
label: candidate.email ? `${name} · ${maskEmail(candidate.email)}` : name
|
|
18738
|
+
};
|
|
18739
|
+
});
|
|
18740
|
+
const activeAccount = choices.find((candidate) => candidate.active);
|
|
18741
|
+
const fixedAccount = value === "" ? void 0 : choices.find((candidate) => candidate.id === value);
|
|
18742
|
+
const missing = value !== "" && !fixedAccount && (hasRoster || account?.authenticated === false);
|
|
18743
|
+
const rosterError = accountSnapshot.status === "error";
|
|
18744
|
+
const retrying = rosterError && accountSnapshot.retrying === true;
|
|
18745
|
+
const pending = accountSnapshot.status === "loading" || retrying;
|
|
18746
|
+
const unknown = value !== "" && !fixedAccount && !missing && !pending && !rosterError;
|
|
18747
|
+
const current = activeAccount?.label ?? t(pending ? "featureLoading" : account?.authenticated === false ? "disconnected" : "connectorAccountUnknown");
|
|
18748
|
+
const title = t("connectorAccountTitle");
|
|
18749
|
+
const follow = t("connectorAccountFollow");
|
|
18750
|
+
const selected = value === "" ? follow : fixedAccount?.label ?? t(missing ? "connectorAccountMissing" : "connectorAccountSaved");
|
|
18751
|
+
const items = [{
|
|
18752
|
+
id: "",
|
|
18753
|
+
label: follow
|
|
18754
|
+
}, ...choices.map((candidate) => ({
|
|
18755
|
+
id: candidate.id,
|
|
18756
|
+
label: candidate.active ? t("connectorAccountActiveOption").replace("{label}", () => candidate.label) : candidate.label
|
|
18757
|
+
}))];
|
|
18758
|
+
if (value !== "" && !fixedAccount) items.push({
|
|
18759
|
+
id: value,
|
|
18760
|
+
label: selected,
|
|
18761
|
+
disabled: true
|
|
18762
|
+
});
|
|
18763
|
+
const status = missing ? t("connectorAccountMissingHint") : unknown ? t("connectorAccountUnknownHint") : void 0;
|
|
18764
|
+
(0, react.useEffect)(() => {
|
|
18765
|
+
if (!active || !writable) setOpen(false);
|
|
18766
|
+
}, [active, writable]);
|
|
18767
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18768
|
+
className: "codexSubscriptionPreference codexConnectorAccount",
|
|
18769
|
+
children: [
|
|
18770
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18771
|
+
className: "codexSubscriptionPreferenceCopy",
|
|
18772
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, { children: title }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18773
|
+
id: `${id}-current`,
|
|
18774
|
+
className: "codexSubscriptionPreferenceHint",
|
|
18775
|
+
children: t("connectorAccountCurrent").replace("{account}", () => current)
|
|
18776
|
+
})]
|
|
18777
|
+
}),
|
|
18778
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
18779
|
+
open: open && active && writable,
|
|
18780
|
+
items,
|
|
18781
|
+
selectedId: value,
|
|
18782
|
+
onClose: () => setOpen(false),
|
|
18783
|
+
align: "end",
|
|
18784
|
+
onSelect: (next) => {
|
|
18785
|
+
setOpen(false);
|
|
18786
|
+
if (active && writable && next !== value && (next === "" || choices.some((candidate) => candidate.id === next))) preference.set({ [CONNECTOR_ACCOUNT_FIELD]: next });
|
|
18787
|
+
},
|
|
18788
|
+
anchor: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
18789
|
+
type: "button",
|
|
18790
|
+
className: "codexSubscriptionContextTrigger",
|
|
18791
|
+
"aria-label": `${title}: ${selected}`,
|
|
18792
|
+
"aria-expanded": open && active && writable,
|
|
18793
|
+
"aria-describedby": [
|
|
18794
|
+
`${id}-current`,
|
|
18795
|
+
(status || rosterError) && `${id}-status`,
|
|
18796
|
+
`${id}-disclosure`
|
|
18797
|
+
].filter(Boolean).join(" "),
|
|
18798
|
+
"aria-busy": saving || void 0,
|
|
18799
|
+
"aria-disabled": saving || void 0,
|
|
18800
|
+
disabled: !writable && !saving,
|
|
18801
|
+
onClick: (event) => {
|
|
18802
|
+
if (!active || !writable) {
|
|
18803
|
+
event.preventDefault();
|
|
18804
|
+
return;
|
|
18805
|
+
}
|
|
18806
|
+
setOpen((previous) => !previous);
|
|
18807
|
+
},
|
|
18808
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: selected }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronDownOutline14, {})]
|
|
18809
|
+
})
|
|
18810
|
+
}),
|
|
18811
|
+
status ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18812
|
+
id: `${id}-status`,
|
|
18813
|
+
className: "codexSubscriptionModeNote",
|
|
18814
|
+
role: "status",
|
|
18815
|
+
children: status
|
|
18816
|
+
}) : null,
|
|
18817
|
+
rosterError ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18818
|
+
className: "codexConnectorRecovery",
|
|
18819
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18820
|
+
id: `${id}-status`,
|
|
18821
|
+
role: retrying ? "status" : "alert",
|
|
18822
|
+
children: retrying ? t("accountRetrying") : accountStatusErrorText(accountSnapshot.error, t)
|
|
18823
|
+
}), retryAccount ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
18824
|
+
type: "button",
|
|
18825
|
+
variant: "outline",
|
|
18826
|
+
size: "sm",
|
|
18827
|
+
"aria-busy": retrying || void 0,
|
|
18828
|
+
disabled: retrying,
|
|
18829
|
+
onClick: () => {
|
|
18830
|
+
retryAccount();
|
|
18831
|
+
},
|
|
18832
|
+
children: t("accountRetry")
|
|
18833
|
+
}) : null]
|
|
18834
|
+
}) : null,
|
|
18835
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18836
|
+
id: `${id}-disclosure`,
|
|
18837
|
+
className: "codexSubscriptionPreferenceHint",
|
|
18838
|
+
children: t("connectorAccountDisclosure")
|
|
18839
|
+
})
|
|
18840
|
+
]
|
|
18841
|
+
});
|
|
18842
|
+
}
|
|
18843
|
+
function ConnectorsPreference({ preference, t, accountSnapshot, retryAccount, active = true }) {
|
|
18591
18844
|
const radioId = (0, react.useId)();
|
|
18592
18845
|
const snapshot = usePreferenceSnapshot(preference);
|
|
18593
|
-
const
|
|
18594
|
-
|
|
18846
|
+
const label = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
18847
|
+
description: t("connectorsHint"),
|
|
18848
|
+
children: t("connectors")
|
|
18849
|
+
});
|
|
18850
|
+
if (snapshot.status !== "ready") {
|
|
18851
|
+
const loading = snapshot.status === "loading";
|
|
18852
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18853
|
+
className: "codexSubscriptionPreference codexSubscriptionConnectors",
|
|
18854
|
+
"aria-busy": loading || void 0,
|
|
18855
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18856
|
+
className: "codexSubscriptionPreferenceCopy",
|
|
18857
|
+
children: [label, /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18858
|
+
className: "codexSubscriptionPreferenceHint",
|
|
18859
|
+
role: loading ? "status" : "alert",
|
|
18860
|
+
children: t(loading ? "connectorSettingsLoading" : "connectorSettingsUnavailable")
|
|
18861
|
+
})]
|
|
18862
|
+
}), loading ? null : /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
18863
|
+
type: "button",
|
|
18864
|
+
variant: "outline",
|
|
18865
|
+
size: "sm",
|
|
18866
|
+
onClick: () => {
|
|
18867
|
+
preference.retry();
|
|
18868
|
+
},
|
|
18869
|
+
children: t("preferenceRetry")
|
|
18870
|
+
})]
|
|
18871
|
+
});
|
|
18872
|
+
}
|
|
18873
|
+
const writable = snapshot.writable === true && !snapshot.saving;
|
|
18874
|
+
const value = snapshot["connectorAccount"] ?? "";
|
|
18875
|
+
const mode = snapshot[CONNECTORS_FIELD];
|
|
18876
|
+
const modeNote = t(`connectorsMode_${mode}`);
|
|
18877
|
+
const modeDescription = value !== "" && (mode === "ask" || mode === "write") ? `${modeNote} ${t("connectorAccountWriteDestination")}` : modeNote;
|
|
18878
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
18595
18879
|
className: "codexSubscriptionPreference codexSubscriptionConnectors",
|
|
18596
18880
|
children: [
|
|
18597
18881
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
18598
18882
|
className: "codexSubscriptionPreferenceCopy",
|
|
18599
|
-
children:
|
|
18600
|
-
description: t("connectorsHint"),
|
|
18601
|
-
children: t("connectors")
|
|
18602
|
-
})
|
|
18883
|
+
children: label
|
|
18603
18884
|
}),
|
|
18604
18885
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
18605
18886
|
className: "codexSubscriptionQuotaModes",
|
|
@@ -18607,27 +18888,43 @@ void main(){
|
|
|
18607
18888
|
"aria-busy": snapshot.saving || void 0,
|
|
18608
18889
|
role: "radiogroup",
|
|
18609
18890
|
"aria-label": t("connectors"),
|
|
18610
|
-
|
|
18891
|
+
"aria-describedby": `${radioId}-mode`,
|
|
18892
|
+
children: CONNECTOR_MODES.map((choice) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
18611
18893
|
className: "codexSubscriptionQuotaMode",
|
|
18612
18894
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
18613
18895
|
type: "radio",
|
|
18614
18896
|
name: `${radioId}-codex-connectors`,
|
|
18615
|
-
checked:
|
|
18897
|
+
checked: mode === choice,
|
|
18616
18898
|
disabled: !writable,
|
|
18617
18899
|
onChange: () => {
|
|
18618
|
-
preference.set({ [CONNECTORS_FIELD]:
|
|
18900
|
+
if (writable && choice !== mode) preference.set({ [CONNECTORS_FIELD]: choice });
|
|
18619
18901
|
}
|
|
18620
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(`connectors_${
|
|
18621
|
-
},
|
|
18902
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: t(`connectors_${choice}`) })]
|
|
18903
|
+
}, choice))
|
|
18622
18904
|
}),
|
|
18623
18905
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18906
|
+
id: `${radioId}-mode`,
|
|
18624
18907
|
className: "codexSubscriptionModeNote",
|
|
18625
|
-
"data-danger":
|
|
18908
|
+
"data-danger": mode === "write" || void 0,
|
|
18626
18909
|
role: "status",
|
|
18627
|
-
children:
|
|
18628
|
-
})
|
|
18910
|
+
children: modeDescription
|
|
18911
|
+
}),
|
|
18912
|
+
snapshot.saving ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
18913
|
+
className: "codexSubscriptionModeNote",
|
|
18914
|
+
role: "status",
|
|
18915
|
+
children: t("connectorSettingsSaving")
|
|
18916
|
+
}) : null
|
|
18629
18917
|
]
|
|
18630
|
-
})
|
|
18918
|
+
}), accountSnapshot ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConnectorAccountPreference, {
|
|
18919
|
+
preference,
|
|
18920
|
+
t,
|
|
18921
|
+
value,
|
|
18922
|
+
accountSnapshot,
|
|
18923
|
+
retryAccount,
|
|
18924
|
+
writable,
|
|
18925
|
+
saving: snapshot.saving,
|
|
18926
|
+
active
|
|
18927
|
+
}) : null] });
|
|
18631
18928
|
}
|
|
18632
18929
|
function StreamIdleTimeoutPreference({ preference, t }) {
|
|
18633
18930
|
const radioId = (0, react.useId)();
|
|
@@ -18995,7 +19292,7 @@ void main(){
|
|
|
18995
19292
|
t,
|
|
18996
19293
|
title: t("featureConnectorsTitle"),
|
|
18997
19294
|
summary: t("featureConnectorsSummary"),
|
|
18998
|
-
checked: snapshot.connectors !== "off",
|
|
19295
|
+
checked: snapshot.status === "ready" ? snapshot.connectors !== "off" : void 0,
|
|
18999
19296
|
disabled: !writable,
|
|
19000
19297
|
onChange: (next) => set({ connectors: next ? "read" : "off" }),
|
|
19001
19298
|
onMore: () => go("tools")
|
|
@@ -19449,7 +19746,7 @@ void main(){
|
|
|
19449
19746
|
model !== "" && !selected ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("subagentDefaultUnavailable") }) : null
|
|
19450
19747
|
] });
|
|
19451
19748
|
}
|
|
19452
|
-
function ToolsPage({ preference, rpc, t, active = true, openSubagentBundle, webSettingsContext }) {
|
|
19749
|
+
function ToolsPage({ preference, rpc, t, active = true, accountSnapshot, retryAccount, openSubagentBundle, webSettingsContext }) {
|
|
19453
19750
|
const snapshot = usePreferenceSnapshot(preference);
|
|
19454
19751
|
const writable = ready(snapshot);
|
|
19455
19752
|
const others = snapshot.otherModels !== "off";
|
|
@@ -19487,7 +19784,10 @@ void main(){
|
|
|
19487
19784
|
"aria-label": t("connectors"),
|
|
19488
19785
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ConnectorsPreference, {
|
|
19489
19786
|
preference,
|
|
19490
|
-
t
|
|
19787
|
+
t,
|
|
19788
|
+
accountSnapshot,
|
|
19789
|
+
retryAccount,
|
|
19790
|
+
active
|
|
19491
19791
|
})
|
|
19492
19792
|
}),
|
|
19493
19793
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
@@ -21621,6 +21921,8 @@ void main(){
|
|
|
21621
21921
|
preference,
|
|
21622
21922
|
rpc,
|
|
21623
21923
|
t,
|
|
21924
|
+
accountSnapshot,
|
|
21925
|
+
retryAccount: accountStatus.retry,
|
|
21624
21926
|
active: tab === "tools",
|
|
21625
21927
|
webSettingsContext,
|
|
21626
21928
|
openSubagentBundle: openSubagentBundle && (() => {
|