dsh-codex-subscription 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +17 -9
- package/README.md +16 -8
- package/compatibility.json +3 -2
- package/lib/client.js +368 -385
- package/lib/client.sketch.js +1 -0
- package/lib/index.js +268 -47
- package/package.json +36 -36
package/lib/client.js
CHANGED
|
@@ -598,6 +598,7 @@ window.__ModuleLoader__.load({
|
|
|
598
598
|
"preferences/update",
|
|
599
599
|
"default-model/status",
|
|
600
600
|
"default-model/select",
|
|
601
|
+
"default-model/reset",
|
|
601
602
|
"predictions/generate",
|
|
602
603
|
"runtime/status",
|
|
603
604
|
"runtime/install",
|
|
@@ -1478,12 +1479,14 @@ window.__ModuleLoader__.load({
|
|
|
1478
1479
|
otherModelsTitle: "在 DeepSeek 等其他模型的对话里使用订阅功能",
|
|
1479
1480
|
otherModels_on: "开",
|
|
1480
1481
|
otherModels_off: "关",
|
|
1481
|
-
otherModelsHint: "关闭后,用 DeepSeek 等非 Codex 模型对话时不再使用订阅的联网搜索(改用 DSH 搜索)、图片生成和 ChatGPT 连接器;Codex
|
|
1482
|
+
otherModelsHint: "关闭后,用 DeepSeek 等非 Codex 模型对话时不再使用订阅的联网搜索(改用 DSH 搜索)、图片生成和 ChatGPT 连接器;Codex 订阅模型不受影响。手机远程控制和语音对话由你主动开启或发起,不受这个开关影响,可在“手机与更多”页单独设置。",
|
|
1482
1483
|
advancedModelSearch: "模型与搜索",
|
|
1483
1484
|
modelsSectionTitle: "模型",
|
|
1484
1485
|
searchSectionTitle: "搜索",
|
|
1485
1486
|
defaultModelTitle: "默认模型",
|
|
1486
1487
|
defaultModelHint: "新建会话时默认使用的模型,与在对话里切换模型写的是同一处 DSH 默认模型设置。",
|
|
1488
|
+
defaultModelReset: "恢复 DSH 默认",
|
|
1489
|
+
defaultModelResetHint: "选择“恢复 DSH 默认”可清除保存的模型选择,恢复上层配置中的默认值,不影响已有会话。",
|
|
1487
1490
|
defaultModelFollow: "跟随 DSH 默认",
|
|
1488
1491
|
defaultModelFollowHint: "当前跟随 DSH 默认模型:{value}。选择一个 Codex 模型,之后每次新建会话都用它。",
|
|
1489
1492
|
defaultModelUnknown: "未知",
|
|
@@ -1502,8 +1505,6 @@ window.__ModuleLoader__.load({
|
|
|
1502
1505
|
connectorsMode_read: "模型只能读取(搜邮件、读文件、查 PR),不会修改任何数据。",
|
|
1503
1506
|
connectorsMode_ask: "发邮件、改文件等写操作每次都会弹出确认,你批准后才执行。",
|
|
1504
1507
|
connectorsMode_write: "写操作直接执行,不再弹出确认,误操作无法撤回,请谨慎使用。",
|
|
1505
|
-
hintMore: "展开",
|
|
1506
|
-
hintLess: "收起",
|
|
1507
1508
|
connectors_off: "关闭",
|
|
1508
1509
|
connectors_read: "只读",
|
|
1509
1510
|
connectors_ask: "询问后写入",
|
|
@@ -1550,6 +1551,7 @@ window.__ModuleLoader__.load({
|
|
|
1550
1551
|
subagentBackend_dsh: "DSH",
|
|
1551
1552
|
subagentBackend_codex: "Codex",
|
|
1552
1553
|
connectionTitle: "连接方式",
|
|
1554
|
+
state_connection_cloud: "已开启云端压缩,本次请求实际使用 SSE。",
|
|
1553
1555
|
diagnosticsLog: "运行日志",
|
|
1554
1556
|
diagnosticsLogHint: "按时间记录运行中发生的事,错误和警告在最上面的筛选里。内容已去掉令牌、邮箱和路径。",
|
|
1555
1557
|
logLevel_all: "全部",
|
|
@@ -1621,7 +1623,7 @@ window.__ModuleLoader__.load({
|
|
|
1621
1623
|
reviewModel_session: "当前模型",
|
|
1622
1624
|
reviewModel_official: "Codex 官方审查模型",
|
|
1623
1625
|
reviewModelHint: "默认使用当前模型。选择官方后,DSH Auto review 用 Codex 自带的审查模型判断工具调用(账号目录提供时),审查规则与放行、拒绝流程仍由 DSH 负责;不可用时沿用当前模型。",
|
|
1624
|
-
connectionHint: "默认 SSE。WebSocket
|
|
1626
|
+
connectionHint: "默认 SSE。WebSocket 实验性复用连接与上下文传输;开始输出前连接失败可回退 SSE。开启云端压缩时实际使用 SSE。下次请求生效,不扩大上下文容量。",
|
|
1625
1627
|
streamIdleTimeoutTitle: "流无响应超时",
|
|
1626
1628
|
streamIdleTimeoutHint: "连续多久没有收到任何流式数据时中断本次请求,不是整体回答时限。调低可能中断较慢但仍在推理的回答,并交由 DSH 重试处理。默认 10 分钟。",
|
|
1627
1629
|
streamIdleTimeout_2: "2 分钟",
|
|
@@ -2055,11 +2057,11 @@ window.__ModuleLoader__.load({
|
|
|
2055
2057
|
quickQuotaForecastHint: "输入框仅显示剩余额度,悬浮或点击查看预测。按最近两小时用量估算何时用完;未来用量变化会影响结果,仅供参考。历史保存在本机。",
|
|
2056
2058
|
contextTitle: "上下文窗口",
|
|
2057
2059
|
contextStandard: "标准",
|
|
2058
|
-
contextStandardHint: "
|
|
2060
|
+
contextStandardHint: "使用当前账号模型目录的默认窗口。实际对话预算会按官方系数预留安全空间(未提供时为 5%),再由 DSH 管理输出预留和压缩。",
|
|
2059
2061
|
contextExtended: "扩展",
|
|
2060
|
-
contextExtendedHint: "
|
|
2062
|
+
contextExtendedHint: "使用当前账号模型目录允许的最大窗口,实际可用性由服务端决定。设置值为原始容量;对话预算会预留与标准档相同的安全空间。",
|
|
2061
2063
|
contextCustom: "自定义",
|
|
2062
|
-
contextCustomHint: "输入完整 Token
|
|
2064
|
+
contextCustomHint: "输入完整 Token 数值,不超过当前模型上限;安全空间会自动预留,无需手动扣除。较低数值会更早触发压缩。",
|
|
2063
2065
|
contextTokens: "Token 上限",
|
|
2064
2066
|
contextFixed: "固定 {value}",
|
|
2065
2067
|
contextMaximum: "范围 {minimum}–{value}",
|
|
@@ -2085,24 +2087,41 @@ window.__ModuleLoader__.load({
|
|
|
2085
2087
|
pacePart_afternoon: "下午",
|
|
2086
2088
|
pacePart_evening: "晚上",
|
|
2087
2089
|
pacePart_night: "夜里",
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2090
|
+
state_predictions_on: "已开启,建议可用时按 Tab 填入草稿。",
|
|
2091
|
+
state_predictions_off: "已关闭,不会发起输入预测请求。",
|
|
2092
|
+
state_autoQuotaRetry_on: "额度耗尽后可自动等待短时额度恢复并重试。",
|
|
2093
|
+
state_autoQuotaRetry_off: "额度耗尽后不自动等待恢复并重试。",
|
|
2094
|
+
state_compaction_on: "已开启,长上下文由 Codex 自动压缩。",
|
|
2095
|
+
state_compaction_off: "已关闭云端压缩,继续使用 DSH 压缩。",
|
|
2096
|
+
state_reasoningCache_on: "已开启,支持的模型尽量复用推理缓存。",
|
|
2097
|
+
state_reasoningCache_off: "已关闭此优化,普通缓存仍可使用。",
|
|
2098
|
+
searchState_auto: "按当前模型自动选择搜索来源。",
|
|
2099
|
+
searchState_dsh: "当前选择 DSH;失败时不切换 Codex。",
|
|
2100
|
+
searchState_codex: "当前选择 Codex;失败时不切换 DSH。",
|
|
2101
|
+
fetchState_dsh: "使用 DSH 读取网页正文。",
|
|
2102
|
+
fetchState_codex: "使用 Codex 读取网页正文。",
|
|
2103
|
+
contextState_standard: "跟随各模型的默认上下文预算。",
|
|
2104
|
+
contextState_extended: "使用各模型支持的扩展上下文预算。",
|
|
2105
|
+
contextState_custom: "使用下方为各模型设置的自定义预算。",
|
|
2106
|
+
defaultModelCurrent: "当前默认模型:{value}",
|
|
2107
|
+
state_otherModels_on: "已允许 DeepSeek 等模型使用订阅工具。",
|
|
2108
|
+
state_otherModels_off: "订阅工具仅供 GPT / Codex 模型使用。",
|
|
2109
|
+
state_imageGeneration_on: "已开启,可在对话中生成新图片。",
|
|
2110
|
+
state_imageGeneration_off: "已关闭,不提供新图片生成。",
|
|
2111
|
+
state_imageEditing_on: "已开启,可按参考图或标注区域编辑图片。",
|
|
2112
|
+
state_imageEditing_off: "已关闭,不提供参考图编辑。",
|
|
2113
|
+
state_imageShortcut_on: "已开启,@ 菜单显示“生成图片”入口。",
|
|
2114
|
+
state_imageShortcut_off: "已关闭,@ 菜单不显示生图入口。",
|
|
2115
|
+
state_imageViewer_on: "已开启增强图片查看与标注。",
|
|
2116
|
+
state_imageViewer_off: "增强图片查看与标注未同时开启。",
|
|
2117
|
+
state_sketchBoard_on: "已开启,输入框旁显示画笔入口。",
|
|
2118
|
+
state_sketchBoard_off: "已关闭,输入框旁不显示画笔入口。",
|
|
2119
|
+
state_sketchAgent_on: "已开启,可用 @sketch 发起绘制。",
|
|
2120
|
+
state_sketchAgent_off: "已关闭,@sketch 绘图不可用。",
|
|
2121
|
+
state_voice_on: "语音入口已开启,空草稿时可发起通话。",
|
|
2122
|
+
state_voice_off: "语音入口已关闭,使用普通发送键。",
|
|
2123
|
+
state_remote_on: "已开启,手机可连接这台 DSH。",
|
|
2124
|
+
state_remote_off: "已关闭,手机无法连接这台 DSH。",
|
|
2106
2125
|
diagnosticsAttention: "有 {count} 项需要注意",
|
|
2107
2126
|
diagnosticsNotes: "{count} 条提示信息",
|
|
2108
2127
|
diagnosticsAdvanced: "完整诊断(高级)",
|
|
@@ -2378,12 +2397,14 @@ window.__ModuleLoader__.load({
|
|
|
2378
2397
|
otherModelsTitle: "Use subscription features in conversations on other models (DeepSeek, …)",
|
|
2379
2398
|
otherModels_on: "On",
|
|
2380
2399
|
otherModels_off: "Off",
|
|
2381
|
-
otherModelsHint: "When off, conversations on DeepSeek and other non-Codex models no longer use subscription web search (DSH search is used instead), image generation or ChatGPT connectors; Codex subscription models are not affected. Phone remote control and voice calls are started by you and are not affected by this switch; set them separately
|
|
2400
|
+
otherModelsHint: "When off, conversations on DeepSeek and other non-Codex models no longer use subscription web search (DSH search is used instead), image generation or ChatGPT connectors; Codex subscription models are not affected. Phone remote control and voice calls are started by you and are not affected by this switch; set them separately under Phone & more.",
|
|
2382
2401
|
advancedModelSearch: "Models and search",
|
|
2383
2402
|
modelsSectionTitle: "Models",
|
|
2384
2403
|
searchSectionTitle: "Search",
|
|
2385
2404
|
defaultModelTitle: "Default model",
|
|
2386
2405
|
defaultModelHint: "The model a new conversation opens with. This writes the same DSH default model setting as switching the model inside a chat.",
|
|
2406
|
+
defaultModelReset: "Restore DSH default",
|
|
2407
|
+
defaultModelResetHint: "Choose “Restore DSH default” to clear the saved selection and use the inherited DSH configuration. Existing conversations are unchanged.",
|
|
2387
2408
|
defaultModelFollow: "Follow DSH default",
|
|
2388
2409
|
defaultModelFollowHint: "Following the DSH default: {value}. Pick a Codex model to make every new conversation start with it.",
|
|
2389
2410
|
defaultModelUnknown: "unknown",
|
|
@@ -2402,8 +2423,6 @@ window.__ModuleLoader__.load({
|
|
|
2402
2423
|
connectorsMode_read: "Models can only read (search mail, read files, look up pull requests) and never change data.",
|
|
2403
2424
|
connectorsMode_ask: "Anything that changes data, such as sending mail or editing files, asks for your approval every time.",
|
|
2404
2425
|
connectorsMode_write: "Changing actions run immediately without a prompt and cannot be undone, so use this carefully.",
|
|
2405
|
-
hintMore: "More",
|
|
2406
|
-
hintLess: "Less",
|
|
2407
2426
|
connectors_off: "Off",
|
|
2408
2427
|
connectors_read: "Read-only",
|
|
2409
2428
|
connectors_ask: "Write after asking",
|
|
@@ -2521,7 +2540,8 @@ window.__ModuleLoader__.load({
|
|
|
2521
2540
|
reviewModel_session: "Current model",
|
|
2522
2541
|
reviewModel_official: "Codex reviewer",
|
|
2523
2542
|
reviewModelHint: "Uses the current model by default. With Codex reviewer, DSH Auto review judges tool calls with Codex's own review model when your account catalog offers it. DSH keeps its review policy and allow/deny flow; otherwise the current model is used.",
|
|
2524
|
-
connectionHint: "SSE by default. Experimental WebSocket reuses connections and context transfers
|
|
2543
|
+
connectionHint: "SSE by default. Experimental WebSocket reuses connections and context transfers; connection failure before output can fall back to SSE. Cloud compaction uses SSE even when WebSocket is selected. Applies to the next request; context limits stay the same.",
|
|
2544
|
+
state_connection_cloud: "Cloud compaction is on; this request uses SSE.",
|
|
2525
2545
|
streamIdleTimeoutTitle: "Stream inactivity timeout",
|
|
2526
2546
|
streamIdleTimeoutHint: "How long a request may receive no streamed data before it is aborted. This is not an overall response deadline. Lower values can abort slow but valid reasoning and hand the request to DSH retry handling. Default: 10 minutes.",
|
|
2527
2547
|
streamIdleTimeout_2: "2 min",
|
|
@@ -2955,11 +2975,11 @@ window.__ModuleLoader__.load({
|
|
|
2955
2975
|
quickQuotaForecastHint: "Shows remaining quota in the composer; hover or click for the forecast. Estimates run-out time from recent two-hour usage. Future usage affects the result. History stays local.",
|
|
2956
2976
|
contextTitle: "Context window",
|
|
2957
2977
|
contextStandard: "Standard",
|
|
2958
|
-
contextStandardHint: "Use the
|
|
2978
|
+
contextStandardHint: "Use the current account catalog default. The conversation budget reserves headroom using the official percentage (5% when omitted); DSH then manages output reservations and compaction.",
|
|
2959
2979
|
contextExtended: "Extended",
|
|
2960
|
-
contextExtendedHint: "
|
|
2980
|
+
contextExtendedHint: "Use the maximum window allowed by the current account catalog; availability depends on the service. Settings show raw capacity; conversations reserve the same headroom as Standard.",
|
|
2961
2981
|
contextCustom: "Custom",
|
|
2962
|
-
contextCustomHint: "Enter the full token count;
|
|
2982
|
+
contextCustomHint: "Enter the full token count within the model limit. Headroom is reserved automatically; do not subtract it manually. Lower values trigger compaction sooner.",
|
|
2963
2983
|
contextTokens: "Token limit",
|
|
2964
2984
|
contextFixed: "Fixed {value}",
|
|
2965
2985
|
contextMaximum: "{minimum}–{value}",
|
|
@@ -2985,24 +3005,41 @@ window.__ModuleLoader__.load({
|
|
|
2985
3005
|
pacePart_afternoon: "afternoon",
|
|
2986
3006
|
pacePart_evening: "evening",
|
|
2987
3007
|
pacePart_night: "night",
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3008
|
+
state_predictions_on: "On: press Tab when a suggestion is available.",
|
|
3009
|
+
state_predictions_off: "Off: no input-prediction requests are made.",
|
|
3010
|
+
state_autoQuotaRetry_on: "Waits for confirmed short-window quota recovery and retries.",
|
|
3011
|
+
state_autoQuotaRetry_off: "Does not wait and retry automatically after quota exhaustion.",
|
|
3012
|
+
state_compaction_on: "On: Codex handles long-context compaction.",
|
|
3013
|
+
state_compaction_off: "Cloud compaction is off; DSH compaction is used.",
|
|
3014
|
+
state_reasoningCache_on: "On: supported models may reuse reasoning context.",
|
|
3015
|
+
state_reasoningCache_off: "This optimization is off; normal caching remains available.",
|
|
3016
|
+
searchState_auto: "Search routing follows the current model.",
|
|
3017
|
+
searchState_dsh: "Uses DSH search without falling back to Codex.",
|
|
3018
|
+
searchState_codex: "Uses Codex search without falling back to DSH.",
|
|
3019
|
+
fetchState_dsh: "Reads webpage content through DSH.",
|
|
3020
|
+
fetchState_codex: "Reads webpage content through Codex.",
|
|
3021
|
+
contextState_standard: "Uses each model’s default context budget.",
|
|
3022
|
+
contextState_extended: "Uses the extended context budget supported by each model.",
|
|
3023
|
+
contextState_custom: "Uses the per-model budgets configured below.",
|
|
3024
|
+
defaultModelCurrent: "Current default: {value}",
|
|
3025
|
+
state_otherModels_on: "Non-Codex models may use subscription tools.",
|
|
3026
|
+
state_otherModels_off: "Subscription tools are limited to GPT / Codex models.",
|
|
3027
|
+
state_imageGeneration_on: "On: new images can be generated in conversations.",
|
|
3028
|
+
state_imageGeneration_off: "Off: new-image generation is unavailable.",
|
|
3029
|
+
state_imageEditing_on: "On: edit pictures from references or annotated regions.",
|
|
3030
|
+
state_imageEditing_off: "Off: reference-image editing is unavailable.",
|
|
3031
|
+
state_imageShortcut_on: "On: “Generate image” appears in the @ menu.",
|
|
3032
|
+
state_imageShortcut_off: "Off: image generation is hidden from the @ menu.",
|
|
3033
|
+
state_imageViewer_on: "Enhanced image viewing and annotation are on.",
|
|
3034
|
+
state_imageViewer_off: "Enhanced viewing and annotation are not both enabled.",
|
|
3035
|
+
state_sketchBoard_on: "On: the pen button appears beside the composer.",
|
|
3036
|
+
state_sketchBoard_off: "Off: the pen button is hidden from the composer.",
|
|
3037
|
+
state_sketchAgent_on: "On: use @sketch to ask the agent to draw.",
|
|
3038
|
+
state_sketchAgent_off: "Off: @sketch drawing is unavailable.",
|
|
3039
|
+
state_voice_on: "Voice is on; start a call when the draft is empty.",
|
|
3040
|
+
state_voice_off: "Voice is off; the normal send button is used.",
|
|
3041
|
+
state_remote_on: "On: this DSH is available to your phone.",
|
|
3042
|
+
state_remote_off: "Off: this DSH is unavailable to your phone.",
|
|
3006
3043
|
diagnosticsAttention: "{count} item(s) need attention",
|
|
3007
3044
|
diagnosticsNotes: "{count} note(s)",
|
|
3008
3045
|
diagnosticsAdvanced: "Full report (advanced)",
|
|
@@ -3205,13 +3242,6 @@ window.__ModuleLoader__.load({
|
|
|
3205
3242
|
.codexSubscriptionPreferenceLabel{display:flex;align-items:center;gap:6px}
|
|
3206
3243
|
.codexSubscriptionPreference>.codexSubscriptionPreferenceCopy{flex:1 1 240px}
|
|
3207
3244
|
.codexSubscriptionPreferenceHint{max-width:none;font-size:11px;line-height:17px;color:var(--dsw-alias-label-tertiary)}
|
|
3208
|
-
.codexSubscriptionHintText{display:block}
|
|
3209
|
-
.codexSubscriptionHintFold[data-fold=true] .codexSubscriptionHintText{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
|
|
3210
|
-
.codexSubscriptionHintToggle{display:inline-flex;align-items:center;gap:3px;margin-top:2px;padding:0;border:0;background:none;font:inherit;font-size:11px;line-height:17px;color:var(--dsw-alias-label-secondary);cursor:pointer}
|
|
3211
|
-
.codexSubscriptionHintToggle::after{content:"";width:5px;height:5px;margin-top:-2px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg);transition:transform .15s}
|
|
3212
|
-
.codexSubscriptionHintFold[data-open=true] .codexSubscriptionHintToggle::after{margin-top:2px;transform:rotate(-135deg)}
|
|
3213
|
-
.codexSubscriptionHintToggle:hover{color:var(--dsw-alias-label-primary)}
|
|
3214
|
-
.codexSubscriptionHintToggle:focus-visible{outline:2px solid var(--dsw-alias-border-l3);outline-offset:1px;border-radius:3px}
|
|
3215
3245
|
.codexSubscriptionPreferenceStack{margin-top:6px;padding-top:10px;border-top:1px solid var(--dsw-alias-border-l2)}
|
|
3216
3246
|
.codexSubscriptionPreferenceStack>.codexSubscriptionQuotaModes{flex:1 1 100%;margin-left:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
|
|
3217
3247
|
.codexSubscriptionPreferenceStack .codexSubscriptionQuotaMode{min-height:30px;padding:4px 8px;text-align:center;white-space:normal;line-height:16px}
|
|
@@ -3455,6 +3485,9 @@ window.__ModuleLoader__.load({
|
|
|
3455
3485
|
@container (max-width:480px){.codexSubscriptionAccountRow,.codexSubscriptionSectionHead{align-items:flex-start;flex-direction:column}
|
|
3456
3486
|
.codexSubscriptionActions{width:100%}
|
|
3457
3487
|
.codexSubscriptionSearchChoices{grid-template-columns:1fr}}
|
|
3488
|
+
/* Reserve the account buttons' natural width and let email/quota text shrink.
|
|
3489
|
+
Match the narrow layout's boundary exactly, including fractional CSS widths. */
|
|
3490
|
+
@container (width > 480px){.codexSubscriptionAccount>.codexSubscriptionActions{flex-wrap:nowrap;flex:0 0 auto}}
|
|
3458
3491
|
.codexSubscriptionRuntime{font-size:12px;line-height:1.6;margin-top:12px;color:var(--dsw-alias-label-secondary)}
|
|
3459
3492
|
.codexSubscriptionRuntime summary{cursor:pointer;width:fit-content;color:var(--dsw-alias-label-primary);border-radius:6px}
|
|
3460
3493
|
.codexSubscriptionRuntime summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
|
|
@@ -3470,7 +3503,7 @@ window.__ModuleLoader__.load({
|
|
|
3470
3503
|
.codexSubscriptionSettingRows>.codexImagePreference+.codexImagePreference{border-top:1px solid var(--dsw-alias-border-l2)}
|
|
3471
3504
|
.codexSubscriptionDiagnostics .codexSubscriptionSectionHead{align-items:flex-start;flex-direction:column;gap:12px}
|
|
3472
3505
|
.codexSubscriptionDiagnostics .codexSubscriptionSectionTitle{display:flex;flex-direction:column;gap:5px}
|
|
3473
|
-
.codexSubscriptionRemotePair{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.codexSubscriptionRemoteQr{width:168px;height:168px;flex:none;border-radius:12px;overflow:hidden;background:#fff}.codexSubscriptionRemoteQr svg{display:block;width:100%;height:100%}.codexSubscriptionRemoteCode{margin:6px 0;font:600 20px/28px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;user-select:all}
|
|
3506
|
+
.codexSubscriptionRemotePair{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin-top:8px}.codexSubscriptionRemotePair>div:not(.codexSubscriptionRemoteQr){flex:1 1 220px;min-width:0}.codexSubscriptionRemoteQr{width:168px;height:168px;flex:none;border-radius:12px;overflow:hidden;background:#fff}.codexSubscriptionRemoteQr svg{display:block;width:100%;height:100%}.codexSubscriptionRemoteCode{margin:6px 0;font:600 20px/28px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em;user-select:all}
|
|
3474
3507
|
.codexSubscriptionStorageMeter{display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:10px;background:var(--dsw-alias-bg-module-platform)}
|
|
3475
3508
|
.codexSubscriptionStorageHead{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
|
|
3476
3509
|
.codexSubscriptionStorageTitle{display:flex;align-items:baseline;gap:6px 12px;flex-wrap:wrap;min-width:0}
|
|
@@ -3540,9 +3573,6 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
3540
3573
|
.codexSubscriptionSearchOptions>summary>span{float:none;margin-left:auto;font-weight:400}
|
|
3541
3574
|
.codexSubscriptionSearchOptions>summary::after{margin-left:6px}
|
|
3542
3575
|
.codexSubscriptionRuntime summary{font-size:12px}
|
|
3543
|
-
.codexSubscriptionHintToggle{margin:2px 0 0 -6px;padding:1px 6px;border-radius:6px;font-size:12px;font-weight:500;color:var(--dsw-alias-label-primary);transition:background .12s}
|
|
3544
|
-
.codexSubscriptionHintToggle::after{width:6px;height:6px}
|
|
3545
|
-
.codexSubscriptionHintToggle:hover{background:var(--dsw-alias-interactive-bg-hover)}
|
|
3546
3576
|
|
|
3547
3577
|
/* Feature overview: one row per feature, a sentence, a switch and optional options */
|
|
3548
3578
|
.codexFeatureOverview{display:flex;flex-direction:column;gap:0}
|
|
@@ -3585,7 +3615,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
3585
3615
|
.codexFlat section>.codexSubscriptionPreference:last-child,.codexFlat .codexSubscriptionCard>.codexSubscriptionPreference:last-child,.codexFlat section>.codexFeatureRow:last-of-type,.codexFlat section>div:last-child>.codexSubscriptionPreference:last-child,.codexFlat .codexAdvancedBody>.codexSubscriptionPreference:last-child{border-bottom:0}
|
|
3586
3616
|
.codexFlat .codexSubscriptionPreferenceLabel,.codexFlat .codexFeatureTitle{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:400;line-height:20px;min-height:20px;color:var(--dsw-alias-label-primary)}
|
|
3587
3617
|
.codexFlat .codexSubscriptionPreferenceLabel small,.codexFlat .codexFeatureTitle small{line-height:16px;height:16px;display:inline-flex;align-items:center}
|
|
3588
|
-
.codexFlat .codexSubscriptionPreferenceHint,.codexFlat .codexFeatureSummary
|
|
3618
|
+
.codexFlat .codexSubscriptionPreferenceHint,.codexFlat .codexFeatureSummary{font-size:12px;line-height:18px;color:var(--dsw-alias-label-tertiary)}
|
|
3589
3619
|
.codexFlat .codexSubscriptionPreferenceCopy{gap:0}
|
|
3590
3620
|
.codexFlat .codexSubscriptionDivider{display:none}
|
|
3591
3621
|
.codexFlat .codexSubscriptionQuotaModes{background:var(--dsw-alias-bg-module-platform);border-radius:10px;padding:2px;gap:2px;min-height:32px;box-sizing:border-box}
|
|
@@ -4616,6 +4646,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
4616
4646
|
const INITIAL = Object.freeze({
|
|
4617
4647
|
status: "loading",
|
|
4618
4648
|
available: false,
|
|
4649
|
+
resetAvailable: false,
|
|
4619
4650
|
managed: false,
|
|
4620
4651
|
provider: void 0,
|
|
4621
4652
|
model: void 0,
|
|
@@ -4627,6 +4658,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
4627
4658
|
status: "ready",
|
|
4628
4659
|
error: false,
|
|
4629
4660
|
available: value?.available === true,
|
|
4661
|
+
resetAvailable: value?.resetAvailable === true,
|
|
4630
4662
|
managed: value?.managed === true,
|
|
4631
4663
|
provider: value?.provider,
|
|
4632
4664
|
model: value?.model,
|
|
@@ -4668,7 +4700,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
4668
4700
|
});
|
|
4669
4701
|
}
|
|
4670
4702
|
};
|
|
4671
|
-
const
|
|
4703
|
+
const save = async (endpoint, payload) => {
|
|
4672
4704
|
if (disposed) return false;
|
|
4673
4705
|
const current = ++generation;
|
|
4674
4706
|
publish({
|
|
@@ -4677,7 +4709,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
4677
4709
|
});
|
|
4678
4710
|
if (disposed || current !== generation) return false;
|
|
4679
4711
|
try {
|
|
4680
|
-
const value = unwrap(await rpc.call(CHANNEL,
|
|
4712
|
+
const value = unwrap(await rpc.call(CHANNEL, endpoint, payload));
|
|
4681
4713
|
if (disposed || current !== generation) return false;
|
|
4682
4714
|
publish({
|
|
4683
4715
|
...adopt(value),
|
|
@@ -4701,7 +4733,8 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
4701
4733
|
return () => listeners.delete(listener);
|
|
4702
4734
|
},
|
|
4703
4735
|
load,
|
|
4704
|
-
select,
|
|
4736
|
+
select: (model) => save("default-model/select", { model }),
|
|
4737
|
+
reset: () => save("default-model/reset", {}),
|
|
4705
4738
|
dispose: () => {
|
|
4706
4739
|
if (disposed) return;
|
|
4707
4740
|
disposed = true;
|
|
@@ -5097,7 +5130,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
5097
5130
|
}
|
|
5098
5131
|
//#endregion
|
|
5099
5132
|
//#region src/version.js
|
|
5100
|
-
const PACKAGE_VERSION = "3.2.
|
|
5133
|
+
const PACKAGE_VERSION = "3.2.2";
|
|
5101
5134
|
//#endregion
|
|
5102
5135
|
//#region src/client-recovery.js
|
|
5103
5136
|
async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = 1e4) {
|
|
@@ -5898,45 +5931,33 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
|
|
|
5898
5931
|
}), menu]
|
|
5899
5932
|
});
|
|
5900
5933
|
}
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
|
|
5905
|
-
const
|
|
5906
|
-
const
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
measure();
|
|
5913
|
-
if (typeof ResizeObserver !== "function") return;
|
|
5914
|
-
const observer = new ResizeObserver(measure);
|
|
5915
|
-
observer.observe(node);
|
|
5916
|
-
return () => observer.disconnect();
|
|
5917
|
-
}, [children, foldable]);
|
|
5918
|
-
if (!foldable) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
5919
|
-
className: "codexSubscriptionPreferenceHint",
|
|
5934
|
+
//#endregion
|
|
5935
|
+
//#region src/client-hint.jsx
|
|
5936
|
+
/** Keep the setting's own label as the help target; reuse host hover, focus and touch behaviour. */
|
|
5937
|
+
function SettingsLabel({ children, description, as: Tag = "span", className = "codexSubscriptionPreferenceLabel", openOnClick = true, ...props }) {
|
|
5938
|
+
const hasHelp = typeof description === "string" && description.trim() !== "";
|
|
5939
|
+
const label = /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
5940
|
+
...props,
|
|
5941
|
+
className: className || void 0,
|
|
5942
|
+
tabIndex: hasHelp ? 0 : void 0,
|
|
5943
|
+
title: hasHelp && !Tooltip ? description : void 0,
|
|
5944
|
+
"aria-description": hasHelp && !Tooltip ? description : void 0,
|
|
5920
5945
|
children
|
|
5921
5946
|
});
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
"aria-controls": id,
|
|
5937
|
-
onClick: () => setOpen((value) => !value),
|
|
5938
|
-
children: t(open ? "hintLess" : "hintMore")
|
|
5939
|
-
}) : null]
|
|
5947
|
+
return hasHelp && Tooltip ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tooltip, {
|
|
5948
|
+
label: description,
|
|
5949
|
+
side: "bottom",
|
|
5950
|
+
portal: true,
|
|
5951
|
+
maxWidth: 360,
|
|
5952
|
+
openOnClick,
|
|
5953
|
+
children: label
|
|
5954
|
+
}) : label;
|
|
5955
|
+
}
|
|
5956
|
+
/** Live status, blocked reasons and confirmations remain readable without opening help. */
|
|
5957
|
+
function Hint({ children, as: Tag = "span" }) {
|
|
5958
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Tag, {
|
|
5959
|
+
className: "codexSubscriptionPreferenceHint",
|
|
5960
|
+
children
|
|
5940
5961
|
});
|
|
5941
5962
|
}
|
|
5942
5963
|
//#endregion
|
|
@@ -7439,17 +7460,18 @@ void main(){
|
|
|
7439
7460
|
className: "codexSubscriptionPreference",
|
|
7440
7461
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7441
7462
|
className: "codexSubscriptionPreferenceCopy",
|
|
7442
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
7443
|
-
|
|
7463
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
7464
|
+
description: [
|
|
7465
|
+
t("voiceHint"),
|
|
7466
|
+
t("voicePreviewHint"),
|
|
7467
|
+
t("voiceMediaHint")
|
|
7468
|
+
].join(" "),
|
|
7444
7469
|
children: [
|
|
7445
7470
|
t("voiceTitle"),
|
|
7446
7471
|
" ",
|
|
7447
7472
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
7448
7473
|
]
|
|
7449
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
7450
|
-
t,
|
|
7451
|
-
children: t(on ? "state_voice_on" : "state_voice_off")
|
|
7452
|
-
})]
|
|
7474
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(on ? "state_voice_on" : "state_voice_off") }) : null]
|
|
7453
7475
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
7454
7476
|
checked: on,
|
|
7455
7477
|
label: t("voiceTitle"),
|
|
@@ -7499,14 +7521,6 @@ void main(){
|
|
|
7499
7521
|
preference.set({ [VOICE_LANGUAGE_FIELD]: value });
|
|
7500
7522
|
playVoice(snapshot.voiceVoice, value);
|
|
7501
7523
|
}
|
|
7502
|
-
}),
|
|
7503
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("p", {
|
|
7504
|
-
className: "codexSubscriptionHelp",
|
|
7505
|
-
children: [
|
|
7506
|
-
t("voicePreviewHint"),
|
|
7507
|
-
" ",
|
|
7508
|
-
t("voiceMediaHint")
|
|
7509
|
-
]
|
|
7510
7524
|
})
|
|
7511
7525
|
] }) : null]
|
|
7512
7526
|
});
|
|
@@ -7541,15 +7555,12 @@ void main(){
|
|
|
7541
7555
|
});
|
|
7542
7556
|
if (section === "quota") return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7543
7557
|
className: "codexSubscriptionPreference",
|
|
7544
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
7558
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7545
7559
|
className: "codexSubscriptionPreferenceCopy",
|
|
7546
|
-
children:
|
|
7547
|
-
|
|
7560
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7561
|
+
description: t("quotaAlertsHint"),
|
|
7548
7562
|
children: t("quotaAlerts")
|
|
7549
|
-
})
|
|
7550
|
-
t,
|
|
7551
|
-
children: t("quotaAlertsHint")
|
|
7552
|
-
})]
|
|
7563
|
+
})
|
|
7553
7564
|
}), choices("quotaAlerts", QUOTA_ALERT_MODES)]
|
|
7554
7565
|
}), snapshot.quotaAlerts === "custom" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7555
7566
|
className: "codexQuotaThresholds",
|
|
@@ -7576,37 +7587,28 @@ void main(){
|
|
|
7576
7587
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("summary", { children: [t("searchOptions"), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", { children: [t(`searchMode_${snapshot.searchMode}`), snapshot.searchDomains.length > 0 ? ` · ${snapshot.searchDomains.length} ${t("searchDomainCount")}` : ""] })] }),
|
|
7577
7588
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7578
7589
|
className: "codexSubscriptionPreference",
|
|
7579
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
7580
|
-
|
|
7590
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7591
|
+
description: t("searchModeHint"),
|
|
7581
7592
|
children: t("searchMode")
|
|
7582
7593
|
}), choices("searchMode", SEARCH_MODES)]
|
|
7583
7594
|
}),
|
|
7584
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
7585
|
-
t,
|
|
7586
|
-
as: "p",
|
|
7587
|
-
children: t("searchModeHint")
|
|
7588
|
-
}),
|
|
7589
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
7595
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7590
7596
|
className: "codexSubscriptionPreferenceCopy",
|
|
7591
|
-
children: [
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
}
|
|
7605
|
-
|
|
7606
|
-
t,
|
|
7607
|
-
children: t("searchDomainsHint")
|
|
7608
|
-
})
|
|
7609
|
-
]
|
|
7597
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7598
|
+
description: t("searchDomainsHint"),
|
|
7599
|
+
children: t("searchDomains")
|
|
7600
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Input, {
|
|
7601
|
+
"aria-label": t("searchDomains"),
|
|
7602
|
+
"aria-invalid": invalid,
|
|
7603
|
+
value: domains,
|
|
7604
|
+
disabled: !snapshot.writable,
|
|
7605
|
+
placeholder: "example.com, example.org",
|
|
7606
|
+
onChange: (event) => setDomains(event.currentTarget.value),
|
|
7607
|
+
onBlur: save,
|
|
7608
|
+
onKeyDown: (event) => {
|
|
7609
|
+
if (event.key === "Enter") event.currentTarget.blur();
|
|
7610
|
+
}
|
|
7611
|
+
})]
|
|
7610
7612
|
}),
|
|
7611
7613
|
invalid ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
7612
7614
|
role: "alert",
|
|
@@ -7675,24 +7677,30 @@ void main(){
|
|
|
7675
7677
|
const label = snapshot.managed ? selected?.name ?? snapshot.model : t("defaultModelFollow");
|
|
7676
7678
|
const current = snapshot.provider === void 0 ? t("defaultModelUnknown") : `${snapshot.provider} / ${snapshot.model ?? t("defaultModelUnknown")}`;
|
|
7677
7679
|
const hint = snapshot.status === "error" ? t("defaultModelFailed") : snapshot.available !== true ? t("defaultModelUnavailable") : models.length === 0 ? t("defaultModelNoCatalog") : snapshot.managed ? t("defaultModelHint") : fill(t("defaultModelFollowHint"), { value: current });
|
|
7678
|
-
const
|
|
7680
|
+
const resetId = "__dsh_default__";
|
|
7681
|
+
const items = [{
|
|
7682
|
+
id: resetId,
|
|
7683
|
+
label: t("defaultModelReset"),
|
|
7684
|
+
disabled: !snapshot.resetAvailable
|
|
7685
|
+
}, ...models.length ? [{
|
|
7686
|
+
type: "separator",
|
|
7687
|
+
id: "default-model-separator"
|
|
7688
|
+
}, ...models.map((model) => ({
|
|
7679
7689
|
id: model.id,
|
|
7680
7690
|
label: model.name
|
|
7681
|
-
}));
|
|
7682
|
-
const disabled = snapshot.saving || snapshot.available !== true || models.length === 0;
|
|
7691
|
+
}))] : []];
|
|
7692
|
+
const disabled = snapshot.saving || snapshot.available !== true || models.length === 0 && !snapshot.resetAvailable;
|
|
7683
7693
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7684
7694
|
className: "codexSubscriptionPreference",
|
|
7685
7695
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7686
7696
|
className: "codexSubscriptionPreferenceCopy",
|
|
7687
7697
|
children: [
|
|
7688
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
7689
|
-
|
|
7698
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7699
|
+
description: snapshot.status === "loading" ? void 0 : [hint, snapshot.resetAvailable ? t("defaultModelResetHint") : void 0].filter(Boolean).join(" "),
|
|
7690
7700
|
children: t("defaultModelTitle")
|
|
7691
7701
|
}),
|
|
7692
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
7693
|
-
|
|
7694
|
-
children: hint
|
|
7695
|
-
}),
|
|
7702
|
+
snapshot.status === "ready" && snapshot.available && !snapshot.managed ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: fill(t("defaultModelCurrent"), { value: snapshot.model ?? t("defaultModelUnknown") }) }) : null,
|
|
7703
|
+
snapshot.status === "ready" && !snapshot.available ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: hint }) : null,
|
|
7696
7704
|
snapshot.error ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7697
7705
|
className: "codexSubscriptionError",
|
|
7698
7706
|
role: "alert",
|
|
@@ -7705,7 +7713,9 @@ void main(){
|
|
|
7705
7713
|
selectedId: snapshot.managed ? snapshot.model : void 0,
|
|
7706
7714
|
onSelect: (value) => {
|
|
7707
7715
|
setOpen(false);
|
|
7708
|
-
|
|
7716
|
+
if (value === resetId) {
|
|
7717
|
+
if (snapshot.resetAvailable) defaultModel.reset();
|
|
7718
|
+
} else defaultModel.select(value);
|
|
7709
7719
|
},
|
|
7710
7720
|
onClose: () => setOpen(false),
|
|
7711
7721
|
align: "end",
|
|
@@ -7753,12 +7763,13 @@ void main(){
|
|
|
7753
7763
|
}, [open, disabled]);
|
|
7754
7764
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7755
7765
|
className: "codexSubscriptionPreference codexImagePreference",
|
|
7756
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
7766
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
7757
7767
|
className: "codexSubscriptionPreferenceCopy",
|
|
7758
|
-
children:
|
|
7759
|
-
|
|
7760
|
-
|
|
7761
|
-
|
|
7768
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7769
|
+
className: "",
|
|
7770
|
+
description: [hint, title].filter(Boolean).join(" "),
|
|
7771
|
+
children: label
|
|
7772
|
+
})
|
|
7762
7773
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
7763
7774
|
open: open && !disabled,
|
|
7764
7775
|
items,
|
|
@@ -7779,7 +7790,6 @@ void main(){
|
|
|
7779
7790
|
"aria-label": label,
|
|
7780
7791
|
"aria-haspopup": "menu",
|
|
7781
7792
|
"aria-expanded": open && !disabled,
|
|
7782
|
-
title,
|
|
7783
7793
|
disabled,
|
|
7784
7794
|
onClick: () => setOpen((current) => !current),
|
|
7785
7795
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: text }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconChevronDownOutline14, {})]
|
|
@@ -7813,33 +7823,21 @@ void main(){
|
|
|
7813
7823
|
//#region src/composer-prediction-preferences.jsx
|
|
7814
7824
|
function ComposerPredictionPreference({ preference, t }) {
|
|
7815
7825
|
const snapshot = usePreferenceSnapshot(preference);
|
|
7816
|
-
const description = t("composerPredictionsHint");
|
|
7817
|
-
const label = /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
7818
|
-
className: "codexSubscriptionPreferenceLabel",
|
|
7819
|
-
tabIndex: 0,
|
|
7820
|
-
title: Tooltip ? void 0 : description,
|
|
7821
|
-
"aria-description": Tooltip ? void 0 : description,
|
|
7822
|
-
children: [
|
|
7823
|
-
t("composerPredictions"),
|
|
7824
|
-
" ",
|
|
7825
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
7826
|
-
]
|
|
7827
|
-
});
|
|
7828
7826
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7829
7827
|
className: "codexSubscriptionPreference",
|
|
7830
7828
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
7831
7829
|
className: "codexSubscriptionPreferenceCopy",
|
|
7832
|
-
children: [
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
})
|
|
7830
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
7831
|
+
description: t("composerPredictionsHint"),
|
|
7832
|
+
children: [
|
|
7833
|
+
t("composerPredictions"),
|
|
7834
|
+
" ",
|
|
7835
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
7836
|
+
]
|
|
7837
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
7840
7838
|
className: "codexSubscriptionPreferenceHint",
|
|
7841
|
-
children: t("
|
|
7842
|
-
})]
|
|
7839
|
+
children: t(`state_predictions_${snapshot.composerPredictions === "on" ? "on" : "off"}`)
|
|
7840
|
+
}) : null]
|
|
7843
7841
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
7844
7842
|
checked: snapshot.composerPredictions === "on",
|
|
7845
7843
|
label: t("composerPredictions"),
|
|
@@ -7982,7 +7980,13 @@ void main(){
|
|
|
7982
7980
|
children: t("runtimeCancelled")
|
|
7983
7981
|
}) : null,
|
|
7984
7982
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", { children: [
|
|
7985
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
7983
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
7984
|
+
as: "summary",
|
|
7985
|
+
className: "",
|
|
7986
|
+
openOnClick: false,
|
|
7987
|
+
description: [state?.installable ? t("runtimeInstallHint") : void 0, t("subagentRuntimeCacheHint")].filter(Boolean).join(" "),
|
|
7988
|
+
children: t("subagentRuntimeManage")
|
|
7989
|
+
}),
|
|
7986
7990
|
state?.present && state.available && !state.removable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeManagedElsewhere") }) : null,
|
|
7987
7991
|
!busy ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Button, {
|
|
7988
7992
|
type: "button",
|
|
@@ -7996,9 +8000,7 @@ void main(){
|
|
|
7996
8000
|
}) : null,
|
|
7997
8001
|
state && !state.available ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeUnavailable") }) : null,
|
|
7998
8002
|
state?.available && !state.installable && !state.present ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeHostUnsupported") }) : null,
|
|
7999
|
-
state?.installable ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("runtimeInstallHint") }) : null,
|
|
8000
8003
|
state?.componentVersion ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("code", { children: ["@deepseek-ai/dsh-subagent-codex@", state.componentVersion] }) : null,
|
|
8001
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", { children: t("subagentRuntimeCacheHint") }),
|
|
8002
8004
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
8003
8005
|
href: "https://github.com/WSL043/dsh-codex-subscription/blob/main/README.md#codex-subtask-runtime",
|
|
8004
8006
|
target: "_blank",
|
|
@@ -10339,17 +10341,14 @@ void main(){
|
|
|
10339
10341
|
className: "codexSubscriptionPreference",
|
|
10340
10342
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10341
10343
|
className: "codexSubscriptionPreferenceCopy",
|
|
10342
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
10343
|
-
|
|
10344
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
10345
|
+
description: [t("remoteHint"), t("remoteLimits")].join(" "),
|
|
10344
10346
|
children: [
|
|
10345
10347
|
t("remoteTitle"),
|
|
10346
10348
|
" ",
|
|
10347
10349
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
10348
10350
|
]
|
|
10349
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
10350
|
-
t,
|
|
10351
|
-
children: t(on ? "state_remote_on" : "state_remote_off")
|
|
10352
|
-
})]
|
|
10351
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(on ? "state_remote_on" : "state_remote_off") }) : null]
|
|
10353
10352
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
10354
10353
|
checked: on,
|
|
10355
10354
|
label: t("remoteTitle"),
|
|
@@ -10442,11 +10441,7 @@ void main(){
|
|
|
10442
10441
|
children: t("remoteRevoke")
|
|
10443
10442
|
})]
|
|
10444
10443
|
}, client.clientId))]
|
|
10445
|
-
}) : null
|
|
10446
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10447
|
-
className: "codexSubscriptionHelp",
|
|
10448
|
-
children: t("remoteLimits")
|
|
10449
|
-
})
|
|
10444
|
+
}) : null
|
|
10450
10445
|
] }) : null]
|
|
10451
10446
|
});
|
|
10452
10447
|
}
|
|
@@ -10542,6 +10537,46 @@ void main(){
|
|
|
10542
10537
|
return `${stamp} ${entry.level.toUpperCase().padEnd(5)} [${entry.area}] ${entry.message}${entry.detail ? ` — ${entry.detail}` : ""}${repeat}`;
|
|
10543
10538
|
}
|
|
10544
10539
|
//#endregion
|
|
10540
|
+
//#region src/model-stream-health.js
|
|
10541
|
+
function safeStreamHealth(value) {
|
|
10542
|
+
if (!Array.isArray(value)) return [];
|
|
10543
|
+
return value.slice(-20).filter((item) => [
|
|
10544
|
+
"completed",
|
|
10545
|
+
"failed",
|
|
10546
|
+
"cancelled"
|
|
10547
|
+
].includes(item?.status)).map((item) => ({
|
|
10548
|
+
status: item.status,
|
|
10549
|
+
...Object.fromEntries([
|
|
10550
|
+
"configured",
|
|
10551
|
+
"selected",
|
|
10552
|
+
"effective"
|
|
10553
|
+
].filter((key) => [
|
|
10554
|
+
"sse",
|
|
10555
|
+
"websocket",
|
|
10556
|
+
"unknown"
|
|
10557
|
+
].includes(item[key])).map((key) => [key, item[key]])),
|
|
10558
|
+
...Object.fromEntries([
|
|
10559
|
+
"durationMs",
|
|
10560
|
+
"firstEventMs",
|
|
10561
|
+
"lastEventAgoMs",
|
|
10562
|
+
"eventCount",
|
|
10563
|
+
"consecutiveFailures",
|
|
10564
|
+
"httpStatus"
|
|
10565
|
+
].filter((key) => Number.isSafeInteger(item[key]) && item[key] >= 0).map((key) => [key, item[key]])),
|
|
10566
|
+
...["provider", "adapter"].includes(item.eventSource) ? { eventSource: item.eventSource } : {},
|
|
10567
|
+
...typeof item.outputStarted === "boolean" ? { outputStarted: item.outputStarted } : {},
|
|
10568
|
+
...[
|
|
10569
|
+
"ECONNRESET",
|
|
10570
|
+
"ETIMEDOUT",
|
|
10571
|
+
"ECONNREFUSED",
|
|
10572
|
+
"ERR_STREAM_PREMATURE_CLOSE",
|
|
10573
|
+
"TIMEOUT",
|
|
10574
|
+
"WS_CLOSED",
|
|
10575
|
+
"OTHER"
|
|
10576
|
+
].includes(item.code) ? { code: item.code } : {}
|
|
10577
|
+
}));
|
|
10578
|
+
}
|
|
10579
|
+
//#endregion
|
|
10545
10580
|
//#region src/diagnostic-compact.js
|
|
10546
10581
|
function compactDiagnostic(report) {
|
|
10547
10582
|
const summary = report.summary ?? { findings: [] };
|
|
@@ -10558,6 +10593,7 @@ void main(){
|
|
|
10558
10593
|
refresh: report.catalog.refresh
|
|
10559
10594
|
} : void 0,
|
|
10560
10595
|
configuration: report.configuration,
|
|
10596
|
+
...report.streamHealth ? { streamHealth: safeStreamHealth(report.streamHealth).slice(-5) } : {},
|
|
10561
10597
|
findings: summary.findings.map((item) => ({
|
|
10562
10598
|
code: item.code,
|
|
10563
10599
|
severity: item.severity,
|
|
@@ -10646,15 +10682,12 @@ void main(){
|
|
|
10646
10682
|
children: [
|
|
10647
10683
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10648
10684
|
className: "codexSubscriptionPreference",
|
|
10649
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
10685
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
10650
10686
|
className: "codexSubscriptionPreferenceCopy",
|
|
10651
|
-
children:
|
|
10652
|
-
|
|
10687
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
10688
|
+
description: t("diagnosticsHint"),
|
|
10653
10689
|
children: t("diagnostics")
|
|
10654
|
-
})
|
|
10655
|
-
className: "codexSubscriptionPreferenceHint",
|
|
10656
|
-
children: t("diagnosticsHint")
|
|
10657
|
-
})]
|
|
10690
|
+
})
|
|
10658
10691
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10659
10692
|
className: "codexSubscriptionActions",
|
|
10660
10693
|
children: [
|
|
@@ -10708,7 +10741,13 @@ void main(){
|
|
|
10708
10741
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
10709
10742
|
className: "codexAdvancedFold codexAdvancedInline",
|
|
10710
10743
|
children: [
|
|
10711
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
10744
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
10745
|
+
as: "summary",
|
|
10746
|
+
className: "",
|
|
10747
|
+
openOnClick: false,
|
|
10748
|
+
description: t("diagnosticsLogHint"),
|
|
10749
|
+
children: [t("diagnosticsLog"), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: lines.length })]
|
|
10750
|
+
}),
|
|
10712
10751
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10713
10752
|
className: "codexSubscriptionLogHead",
|
|
10714
10753
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
@@ -10735,10 +10774,6 @@ void main(){
|
|
|
10735
10774
|
children: logCopied ? t("logCopied") : t("logCopy")
|
|
10736
10775
|
})]
|
|
10737
10776
|
}),
|
|
10738
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10739
|
-
className: "codexSubscriptionHelp",
|
|
10740
|
-
children: t("diagnosticsLogHint")
|
|
10741
|
-
}),
|
|
10742
10777
|
lines.length === 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10743
10778
|
className: "codexSubscriptionHelp",
|
|
10744
10779
|
children: t("logEmpty")
|
|
@@ -10759,14 +10794,16 @@ void main(){
|
|
|
10759
10794
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
10760
10795
|
className: "codexAdvancedFold codexAdvancedInline",
|
|
10761
10796
|
children: [
|
|
10762
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
10763
|
-
|
|
10764
|
-
className: "
|
|
10765
|
-
|
|
10797
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
10798
|
+
as: "summary",
|
|
10799
|
+
className: "",
|
|
10800
|
+
openOnClick: false,
|
|
10801
|
+
description: t("diagnosticsCoverageHint"),
|
|
10802
|
+
children: t("diagnosticsAdvanced")
|
|
10766
10803
|
}),
|
|
10767
10804
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10768
10805
|
className: "codexSubscriptionHelp",
|
|
10769
|
-
children: t("
|
|
10806
|
+
children: report.client?.topology?.length ? t("diagnosticsHostCollected") : t("diagnosticsHostUnknown")
|
|
10770
10807
|
}),
|
|
10771
10808
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("table", {
|
|
10772
10809
|
className: "codexDiagTable",
|
|
@@ -10852,7 +10889,12 @@ void main(){
|
|
|
10852
10889
|
className: "codexSubscriptionStorageHead",
|
|
10853
10890
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10854
10891
|
className: "codexSubscriptionStorageTitle",
|
|
10855
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
10892
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
10893
|
+
as: "h3",
|
|
10894
|
+
className: "",
|
|
10895
|
+
description: t("storageHint"),
|
|
10896
|
+
children: t("storageForecast")
|
|
10897
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("output", {
|
|
10856
10898
|
role: "status",
|
|
10857
10899
|
children: usage ? `${(usage.bytes / 1024).toFixed(1)} / ${(usage.limit / 1024).toFixed(0)} KiB` : t("storageLoading")
|
|
10858
10900
|
})]
|
|
@@ -10881,10 +10923,6 @@ void main(){
|
|
|
10881
10923
|
max: usage.limit
|
|
10882
10924
|
})
|
|
10883
10925
|
}) : null,
|
|
10884
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
10885
|
-
className: "codexSubscriptionHelp",
|
|
10886
|
-
children: t("storageHint")
|
|
10887
|
-
}),
|
|
10888
10926
|
confirm ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10889
10927
|
className: "codexSubscriptionConfirm",
|
|
10890
10928
|
role: "group",
|
|
@@ -10966,15 +11004,12 @@ void main(){
|
|
|
10966
11004
|
});
|
|
10967
11005
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10968
11006
|
className: "codexSubscriptionPreference",
|
|
10969
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11007
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
10970
11008
|
className: "codexSubscriptionPreferenceCopy",
|
|
10971
|
-
children:
|
|
10972
|
-
|
|
11009
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11010
|
+
description: snapshot.quickQuotaMode === "forecast" ? t("quickQuotaForecastHint") : void 0,
|
|
10973
11011
|
children: t("quickQuotaSetting")
|
|
10974
|
-
})
|
|
10975
|
-
t,
|
|
10976
|
-
children: t("quickQuotaForecastHint")
|
|
10977
|
-
}) : null]
|
|
11012
|
+
})
|
|
10978
11013
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
10979
11014
|
className: "codexSubscriptionQuotaModes",
|
|
10980
11015
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11001,13 +11036,10 @@ void main(){
|
|
|
11001
11036
|
className: "codexSubscriptionPreference",
|
|
11002
11037
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11003
11038
|
className: "codexSubscriptionPreferenceCopy",
|
|
11004
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11005
|
-
|
|
11039
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11040
|
+
description: t("autoQuotaRetryHint"),
|
|
11006
11041
|
children: t("autoQuotaRetry")
|
|
11007
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11008
|
-
t,
|
|
11009
|
-
children: t("autoQuotaRetryHint")
|
|
11010
|
-
})]
|
|
11042
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`state_autoQuotaRetry_${snapshot.autoQuotaRetry ? "on" : "off"}`) }) : null]
|
|
11011
11043
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
11012
11044
|
checked: snapshot.autoQuotaRetry,
|
|
11013
11045
|
label: t("autoQuotaRetry"),
|
|
@@ -11033,7 +11065,6 @@ void main(){
|
|
|
11033
11065
|
}
|
|
11034
11066
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label })]
|
|
11035
11067
|
});
|
|
11036
|
-
const hint = snapshot.searchProvider === "dsh" ? "searchDshHint" : snapshot.searchProvider === "codex" ? "searchCodexHint" : "searchAutoHint";
|
|
11037
11068
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11038
11069
|
className: "codexSubscriptionSearch",
|
|
11039
11070
|
children: [
|
|
@@ -11041,13 +11072,10 @@ void main(){
|
|
|
11041
11072
|
className: "codexSubscriptionPreference",
|
|
11042
11073
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11043
11074
|
className: "codexSubscriptionPreferenceCopy",
|
|
11044
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11045
|
-
|
|
11075
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11076
|
+
description: t(snapshot.searchProvider === "dsh" ? "searchDshHint" : snapshot.searchProvider === "codex" ? "searchCodexHint" : "searchAutoHint"),
|
|
11046
11077
|
children: t("searchTitle")
|
|
11047
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11048
|
-
t,
|
|
11049
|
-
children: t(hint)
|
|
11050
|
-
})]
|
|
11078
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`searchState_${snapshot.searchProvider}`) }) : null]
|
|
11051
11079
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11052
11080
|
className: "codexSubscriptionSearchChoices codexSubscriptionQuotaModes",
|
|
11053
11081
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11065,13 +11093,10 @@ void main(){
|
|
|
11065
11093
|
className: "codexSubscriptionPreference",
|
|
11066
11094
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11067
11095
|
className: "codexSubscriptionPreferenceCopy",
|
|
11068
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11069
|
-
|
|
11096
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11097
|
+
description: t(snapshot.fetchProvider === "codex" ? "fetchCodexHint" : "fetchDshHint"),
|
|
11070
11098
|
children: t("fetchTitle")
|
|
11071
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11072
|
-
t,
|
|
11073
|
-
children: t(!snapshot.fetchRoutingAvailable ? "fetchUnavailableHint" : snapshot.fetchProvider === "codex" ? "fetchCodexHint" : "fetchDshHint")
|
|
11074
|
-
})]
|
|
11099
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(!snapshot.fetchRoutingAvailable ? "fetchUnavailableHint" : `fetchState_${snapshot.fetchProvider}`) }) : null]
|
|
11075
11100
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11076
11101
|
className: "codexSubscriptionSearchChoices codexSubscriptionQuotaModes",
|
|
11077
11102
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11105,15 +11130,12 @@ void main(){
|
|
|
11105
11130
|
const writable = snapshot.status === "ready" && snapshot.writable === true;
|
|
11106
11131
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11107
11132
|
className: "codexSubscriptionPreference",
|
|
11108
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11133
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11109
11134
|
className: "codexSubscriptionPreferenceCopy",
|
|
11110
|
-
children:
|
|
11111
|
-
|
|
11135
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11136
|
+
description: t("inputImageDetailHint"),
|
|
11112
11137
|
children: t("inputImageDetail")
|
|
11113
|
-
})
|
|
11114
|
-
t,
|
|
11115
|
-
children: t("inputImageDetailHint")
|
|
11116
|
-
})]
|
|
11138
|
+
})
|
|
11117
11139
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11118
11140
|
className: "codexSubscriptionQuotaModes",
|
|
11119
11141
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11140,15 +11162,12 @@ void main(){
|
|
|
11140
11162
|
const writable = snapshot.status === "ready" && snapshot.writable === true;
|
|
11141
11163
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11142
11164
|
className: "codexSubscriptionPreference",
|
|
11143
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11165
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11144
11166
|
className: "codexSubscriptionPreferenceCopy",
|
|
11145
|
-
children:
|
|
11146
|
-
|
|
11167
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11168
|
+
description: t("reasoningSummaryHint"),
|
|
11147
11169
|
children: t("reasoningSummary")
|
|
11148
|
-
})
|
|
11149
|
-
t,
|
|
11150
|
-
children: t("reasoningSummaryHint")
|
|
11151
|
-
})]
|
|
11170
|
+
})
|
|
11152
11171
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11153
11172
|
className: "codexSubscriptionQuotaModes",
|
|
11154
11173
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11179,30 +11198,42 @@ void main(){
|
|
|
11179
11198
|
className: "codexSubscriptionPreference",
|
|
11180
11199
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11181
11200
|
className: "codexSubscriptionPreferenceCopy",
|
|
11182
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11183
|
-
|
|
11201
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11202
|
+
description: t("reasoningCacheHint"),
|
|
11184
11203
|
children: t("reasoningCache")
|
|
11185
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
|
|
11205
|
-
|
|
11204
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(blocked ? hint : `state_reasoningCache_${snapshot.reasoningCache}`) }) : null]
|
|
11205
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
11206
|
+
checked: snapshot.reasoningCache === "on",
|
|
11207
|
+
label: t("reasoningCache"),
|
|
11208
|
+
disabled: !writable || snapshot.saving || blocked && snapshot.reasoningCache !== "on",
|
|
11209
|
+
onChange: (next) => {
|
|
11210
|
+
preference.set({ reasoningCache: next ? "on" : "off" });
|
|
11211
|
+
}
|
|
11212
|
+
})]
|
|
11213
|
+
});
|
|
11214
|
+
}
|
|
11215
|
+
function CompactionPreference({ preference, t }) {
|
|
11216
|
+
const snapshot = usePreferenceSnapshot(preference);
|
|
11217
|
+
const enabled = snapshot.compactionMode === "cloud";
|
|
11218
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11219
|
+
className: "codexSubscriptionPreference",
|
|
11220
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11221
|
+
className: "codexSubscriptionPreferenceCopy",
|
|
11222
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
11223
|
+
description: t("compactionHint"),
|
|
11224
|
+
children: [
|
|
11225
|
+
t("compactionTitle"),
|
|
11226
|
+
" ",
|
|
11227
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
11228
|
+
]
|
|
11229
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`state_compaction_${enabled ? "on" : "off"}`) }) : null]
|
|
11230
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
11231
|
+
checked: enabled,
|
|
11232
|
+
label: t("compactionTitle"),
|
|
11233
|
+
disabled: snapshot.status !== "ready" || !snapshot.writable || snapshot.saving,
|
|
11234
|
+
onChange: (next) => {
|
|
11235
|
+
preference.set({ compactionMode: next ? "cloud" : "dsh" });
|
|
11236
|
+
}
|
|
11206
11237
|
})]
|
|
11207
11238
|
});
|
|
11208
11239
|
}
|
|
@@ -11211,15 +11242,12 @@ void main(){
|
|
|
11211
11242
|
const writable = snapshot.status === "ready" && snapshot.writable === true;
|
|
11212
11243
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11213
11244
|
className: "codexSubscriptionPreference",
|
|
11214
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11245
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11215
11246
|
className: "codexSubscriptionPreferenceCopy",
|
|
11216
|
-
children:
|
|
11217
|
-
|
|
11247
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11248
|
+
description: t("retryPolicyHint"),
|
|
11218
11249
|
children: t("retryPolicy")
|
|
11219
|
-
})
|
|
11220
|
-
t,
|
|
11221
|
-
children: t("retryPolicyHint")
|
|
11222
|
-
})]
|
|
11250
|
+
})
|
|
11223
11251
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11224
11252
|
className: "codexSubscriptionQuotaModes",
|
|
11225
11253
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11247,15 +11275,12 @@ void main(){
|
|
|
11247
11275
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11248
11276
|
className: "codexSubscriptionPreference codexSubscriptionConnectors",
|
|
11249
11277
|
children: [
|
|
11250
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11278
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11251
11279
|
className: "codexSubscriptionPreferenceCopy",
|
|
11252
|
-
children:
|
|
11253
|
-
|
|
11280
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11281
|
+
description: t("connectorsHint"),
|
|
11254
11282
|
children: t("connectors")
|
|
11255
|
-
})
|
|
11256
|
-
t,
|
|
11257
|
-
children: t("connectorsHint")
|
|
11258
|
-
})]
|
|
11283
|
+
})
|
|
11259
11284
|
}),
|
|
11260
11285
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11261
11286
|
className: "codexSubscriptionQuotaModes",
|
|
@@ -11290,15 +11315,12 @@ void main(){
|
|
|
11290
11315
|
const writable = snapshot.status === "ready" && snapshot.writable === true;
|
|
11291
11316
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11292
11317
|
className: "codexSubscriptionPreference",
|
|
11293
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11318
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11294
11319
|
className: "codexSubscriptionPreferenceCopy",
|
|
11295
|
-
children:
|
|
11296
|
-
|
|
11320
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11321
|
+
description: t("streamIdleTimeoutHint"),
|
|
11297
11322
|
children: t("streamIdleTimeoutTitle")
|
|
11298
|
-
})
|
|
11299
|
-
t,
|
|
11300
|
-
children: t("streamIdleTimeoutHint")
|
|
11301
|
-
})]
|
|
11323
|
+
})
|
|
11302
11324
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11303
11325
|
className: "codexSubscriptionQuotaModes",
|
|
11304
11326
|
"data-saving": snapshot.saving || void 0,
|
|
@@ -11357,15 +11379,12 @@ void main(){
|
|
|
11357
11379
|
className: "codexSubscriptionPickerSetting",
|
|
11358
11380
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11359
11381
|
className: "codexSubscriptionPreference",
|
|
11360
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11382
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11361
11383
|
className: "codexSubscriptionPreferenceCopy",
|
|
11362
|
-
children:
|
|
11363
|
-
|
|
11384
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11385
|
+
description: t("pickerModelsHint"),
|
|
11364
11386
|
children: t("pickerModelsTitle")
|
|
11365
|
-
})
|
|
11366
|
-
t,
|
|
11367
|
-
children: t("pickerModelsHint")
|
|
11368
|
-
})]
|
|
11387
|
+
})
|
|
11369
11388
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
11370
11389
|
className: "codexSubscriptionContextTrigger",
|
|
11371
11390
|
type: "button",
|
|
@@ -11454,13 +11473,10 @@ void main(){
|
|
|
11454
11473
|
className: "codexSubscriptionContextHead",
|
|
11455
11474
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11456
11475
|
className: "codexSubscriptionContextCopy",
|
|
11457
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11458
|
-
|
|
11476
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11477
|
+
description: hint,
|
|
11459
11478
|
children: t("contextTitle")
|
|
11460
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
11461
|
-
className: "codexSubscriptionContextHint",
|
|
11462
|
-
children: hint
|
|
11463
|
-
})]
|
|
11479
|
+
}), snapshot.status === "ready" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(`contextState_${snapshot.contextMode}`) }) : null]
|
|
11464
11480
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Menu, {
|
|
11465
11481
|
open: menuOpen,
|
|
11466
11482
|
items: contextModeItems,
|
|
@@ -11605,18 +11621,15 @@ void main(){
|
|
|
11605
11621
|
})
|
|
11606
11622
|
});
|
|
11607
11623
|
}
|
|
11608
|
-
function SwitchRow({ t, title, hint, state, beta, checked, disabled, reason, onChange }) {
|
|
11624
|
+
function SwitchRow({ t, title, hint, state, loaded, beta, checked, disabled, reason, onChange }) {
|
|
11609
11625
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11610
11626
|
className: "codexSubscriptionPreference",
|
|
11611
11627
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11612
11628
|
className: "codexSubscriptionPreferenceCopy",
|
|
11613
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
11614
|
-
|
|
11629
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
11630
|
+
description: state ? t(state === "otherModels" ? "otherModelsHint" : `${state}RowHint`) : hint,
|
|
11615
11631
|
children: [title, beta ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [" ", /* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })] }) : null]
|
|
11616
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11617
|
-
t,
|
|
11618
|
-
children: reason ?? (state ? t(`state_${state}_${checked ? "on" : "off"}`) : hint)
|
|
11619
|
-
})]
|
|
11632
|
+
}), loaded && (state || reason || hint) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: reason ?? (state ? t(`state_${state}_${checked ? "on" : "off"}`) : hint) }) : null]
|
|
11620
11633
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Switch, {
|
|
11621
11634
|
checked,
|
|
11622
11635
|
label: title,
|
|
@@ -11750,15 +11763,12 @@ void main(){
|
|
|
11750
11763
|
};
|
|
11751
11764
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11752
11765
|
className: "codexSubscriptionPreference",
|
|
11753
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11766
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11754
11767
|
className: "codexSubscriptionPreferenceCopy",
|
|
11755
|
-
children:
|
|
11756
|
-
|
|
11768
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
|
|
11769
|
+
description: t("verbosityPageHint"),
|
|
11757
11770
|
children: t("verbosityTitle")
|
|
11758
|
-
})
|
|
11759
|
-
t,
|
|
11760
|
-
children: t("verbosityPageHint")
|
|
11761
|
-
})]
|
|
11771
|
+
})
|
|
11762
11772
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11763
11773
|
className: "codexSubscriptionQuotaModes",
|
|
11764
11774
|
role: "radiogroup",
|
|
@@ -11882,17 +11892,14 @@ void main(){
|
|
|
11882
11892
|
className: "codexSubscriptionPreference",
|
|
11883
11893
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11884
11894
|
className: "codexSubscriptionPreferenceCopy",
|
|
11885
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
11886
|
-
|
|
11895
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
11896
|
+
description: t("connectionHint"),
|
|
11887
11897
|
children: [
|
|
11888
11898
|
t("connectionTitle"),
|
|
11889
11899
|
" ",
|
|
11890
11900
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
11891
11901
|
]
|
|
11892
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11893
|
-
t,
|
|
11894
|
-
children: t("connectionHint")
|
|
11895
|
-
})]
|
|
11902
|
+
}), snapshot.compactionMode === "cloud" && snapshot.connectionMode === "websocket" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t("state_connection_cloud") }) : null]
|
|
11896
11903
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
11897
11904
|
snapshot,
|
|
11898
11905
|
preference,
|
|
@@ -11904,47 +11911,23 @@ void main(){
|
|
|
11904
11911
|
})]
|
|
11905
11912
|
}),
|
|
11906
11913
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
|
|
11907
|
-
/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11908
|
-
|
|
11909
|
-
|
|
11910
|
-
className: "codexSubscriptionPreferenceCopy",
|
|
11911
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
11912
|
-
className: "codexSubscriptionPreferenceLabel",
|
|
11913
|
-
children: [
|
|
11914
|
-
t("compactionTitle"),
|
|
11915
|
-
" ",
|
|
11916
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
11917
|
-
]
|
|
11918
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
11919
|
-
t,
|
|
11920
|
-
children: t("compactionHint")
|
|
11921
|
-
})]
|
|
11922
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
11923
|
-
snapshot,
|
|
11924
|
-
preference,
|
|
11925
|
-
field: "compactionMode",
|
|
11926
|
-
values: ["dsh", "cloud"],
|
|
11927
|
-
name: "codex-compaction-mode",
|
|
11928
|
-
label: t("compactionTitle"),
|
|
11929
|
-
text: (value) => t(`compaction_${value}`)
|
|
11930
|
-
})]
|
|
11914
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CompactionPreference, {
|
|
11915
|
+
preference,
|
|
11916
|
+
t
|
|
11931
11917
|
}),
|
|
11932
11918
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { className: "codexSubscriptionDivider" }),
|
|
11933
11919
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
11934
11920
|
className: "codexSubscriptionPreference",
|
|
11935
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.
|
|
11921
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
11936
11922
|
className: "codexSubscriptionPreferenceCopy",
|
|
11937
|
-
children:
|
|
11938
|
-
|
|
11923
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
11924
|
+
description: t("reviewModelHint"),
|
|
11939
11925
|
children: [
|
|
11940
11926
|
t("reviewModelTitle"),
|
|
11941
11927
|
" ",
|
|
11942
11928
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
11943
11929
|
]
|
|
11944
|
-
})
|
|
11945
|
-
t,
|
|
11946
|
-
children: t("reviewModelHint")
|
|
11947
|
-
})]
|
|
11930
|
+
})
|
|
11948
11931
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
11949
11932
|
snapshot,
|
|
11950
11933
|
preference,
|
|
@@ -11974,6 +11957,7 @@ void main(){
|
|
|
11974
11957
|
className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
|
|
11975
11958
|
"aria-label": t("otherModelsTitle"),
|
|
11976
11959
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
11960
|
+
loaded: snapshot.status === "ready",
|
|
11977
11961
|
t,
|
|
11978
11962
|
title: t("otherModelsTitle"),
|
|
11979
11963
|
state: "otherModels",
|
|
@@ -12007,17 +11991,14 @@ void main(){
|
|
|
12007
11991
|
className: "codexSubscriptionPreference",
|
|
12008
11992
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
12009
11993
|
className: "codexSubscriptionPreferenceCopy",
|
|
12010
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(
|
|
12011
|
-
|
|
11994
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(SettingsLabel, {
|
|
11995
|
+
description: t("subagentBackendHint"),
|
|
12012
11996
|
children: [
|
|
12013
11997
|
t("subagentBackendTitle"),
|
|
12014
11998
|
" ",
|
|
12015
11999
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("small", { children: "Beta" })
|
|
12016
12000
|
]
|
|
12017
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
12018
|
-
t,
|
|
12019
|
-
children: snapshot.subagentBackendAvailable ? t(codexReady || subagentsOn ? "subagentBackendHint" : "subagentBackendNeedsRuntime") : t("subagentBackendUnavailable")
|
|
12020
|
-
})]
|
|
12001
|
+
}), !snapshot.subagentBackendAvailable || !(codexReady || subagentsOn) ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(snapshot.subagentBackendAvailable ? "subagentBackendNeedsRuntime" : "subagentBackendUnavailable") }) : null]
|
|
12021
12002
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
|
|
12022
12003
|
snapshot,
|
|
12023
12004
|
preference,
|
|
@@ -12055,6 +12036,7 @@ void main(){
|
|
|
12055
12036
|
children: [
|
|
12056
12037
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", { children: t("imageSettings") }),
|
|
12057
12038
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12039
|
+
loaded: snapshot.status === "ready",
|
|
12058
12040
|
t,
|
|
12059
12041
|
title: t("imageGenerationRow"),
|
|
12060
12042
|
state: "imageGeneration",
|
|
@@ -12063,6 +12045,7 @@ void main(){
|
|
|
12063
12045
|
onChange: (next) => set({ imageGeneration: next })
|
|
12064
12046
|
}),
|
|
12065
12047
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12048
|
+
loaded: snapshot.status === "ready",
|
|
12066
12049
|
t,
|
|
12067
12050
|
title: t("imageEditingRow"),
|
|
12068
12051
|
state: "imageEditing",
|
|
@@ -12071,6 +12054,7 @@ void main(){
|
|
|
12071
12054
|
onChange: (next) => set({ imageEditing: next })
|
|
12072
12055
|
}),
|
|
12073
12056
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12057
|
+
loaded: snapshot.status === "ready",
|
|
12074
12058
|
t,
|
|
12075
12059
|
title: t("imageShortcutRow"),
|
|
12076
12060
|
state: "imageShortcut",
|
|
@@ -12080,6 +12064,7 @@ void main(){
|
|
|
12080
12064
|
onChange: (next) => set({ imageShortcut: next })
|
|
12081
12065
|
}),
|
|
12082
12066
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12067
|
+
loaded: snapshot.status === "ready",
|
|
12083
12068
|
t,
|
|
12084
12069
|
title: t("imageViewerRow"),
|
|
12085
12070
|
state: "imageViewer",
|
|
@@ -12097,6 +12082,7 @@ void main(){
|
|
|
12097
12082
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(ImageChoice, {
|
|
12098
12083
|
t,
|
|
12099
12084
|
label: t("imageModel"),
|
|
12085
|
+
hint: snapshot.imageModel.includes("2.5") ? t("imageModelHint") : void 0,
|
|
12100
12086
|
value: snapshot.imageModel,
|
|
12101
12087
|
text: modelLabel(snapshot.imageModel),
|
|
12102
12088
|
disabled: disabled || !imagesOn,
|
|
@@ -12120,12 +12106,7 @@ void main(){
|
|
|
12120
12106
|
label: t(`imageQuality_${id}`)
|
|
12121
12107
|
})),
|
|
12122
12108
|
onSelect: (imageQuality) => set({ imageQuality })
|
|
12123
|
-
})
|
|
12124
|
-
snapshot.imageModel.includes("2.5") ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, {
|
|
12125
|
-
t,
|
|
12126
|
-
as: "p",
|
|
12127
|
-
children: t("imageModelHint")
|
|
12128
|
-
}) : null
|
|
12109
|
+
})
|
|
12129
12110
|
]
|
|
12130
12111
|
})
|
|
12131
12112
|
]
|
|
@@ -12133,6 +12114,7 @@ void main(){
|
|
|
12133
12114
|
className: "codexSubscriptionCard codexSubscriptionPreferencesCard",
|
|
12134
12115
|
"aria-label": t("creativeSketch"),
|
|
12135
12116
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12117
|
+
loaded: snapshot.status === "ready",
|
|
12136
12118
|
t,
|
|
12137
12119
|
title: t("featureSketchTitle"),
|
|
12138
12120
|
beta: true,
|
|
@@ -12143,6 +12125,7 @@ void main(){
|
|
|
12143
12125
|
reason: !imagesOn && !snapshot.imageSketch ? t("featureSketchNeedsImages") : void 0,
|
|
12144
12126
|
onChange: (next) => set({ imageSketch: next })
|
|
12145
12127
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SwitchRow, {
|
|
12128
|
+
loaded: snapshot.status === "ready",
|
|
12146
12129
|
t,
|
|
12147
12130
|
title: t("sketchAgentRow"),
|
|
12148
12131
|
state: "sketchAgent",
|