dsh-codex-subscription 3.2.21 → 3.2.22

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/lib/client.js CHANGED
@@ -2111,6 +2111,11 @@ window.__ModuleLoader__.load({
2111
2111
  //#region src/client-languages.js
2112
2112
  const dictionaries = {
2113
2113
  zh: {
2114
+ speedShortcutTitle: "输入栏速度切换",
2115
+ speedShortcut_off: "关闭",
2116
+ speedShortcut_icon: "闪电",
2117
+ speedShortcut_hover: "悬停显示",
2118
+ speedShortcut_label: "速度名称",
2114
2119
  catalogTimeout: "模型目录读取超时。请检查网络或代理后重试。",
2115
2120
  catalogCachedTimeout: "继续使用已读取的模型目录;在线更新超时,请检查网络或代理后重试。",
2116
2121
  openSubscriptionSettings: "订阅设置",
@@ -3059,6 +3064,11 @@ window.__ModuleLoader__.load({
3059
3064
  imageRemoveAnnotation: "删除标注"
3060
3065
  },
3061
3066
  en: {
3067
+ speedShortcutTitle: "Composer speed shortcut",
3068
+ speedShortcut_off: "Off",
3069
+ speedShortcut_icon: "Lightning",
3070
+ speedShortcut_hover: "On hover",
3071
+ speedShortcut_label: "Speed name",
3062
3072
  catalogTimeout: "The model catalog request timed out. Check your network or proxy and retry.",
3063
3073
  catalogCachedTimeout: "Keeping the available model catalog; the online refresh timed out. Check your network or proxy and retry.",
3064
3074
  openSubscriptionSettings: "Subscription settings",
@@ -4889,6 +4899,11 @@ window.__ModuleLoader__.load({
4889
4899
  "composerMenuCustom": "モデルメニューの拡張が有効",
4890
4900
  "composerMenuHost": "DSH または他のプラグインのメニューを使用",
4891
4901
  "legacyModelPicker": "入力欄のモデルメニュー",
4902
+ "speedShortcutTitle": "入力欄の速度切り替え",
4903
+ "speedShortcut_off": "オフ",
4904
+ "speedShortcut_icon": "稲妻",
4905
+ "speedShortcut_hover": "ホバーで表示",
4906
+ "speedShortcut_label": "速度名",
4892
4907
  "composerMenuAuto": "自動",
4893
4908
  "composerMenuDsh": "DSH 標準",
4894
4909
  "composerMenuSubscription": "購読メニュー",
@@ -4955,6 +4970,11 @@ window.__ModuleLoader__.load({
4955
4970
  "imageRemoveAnnotation": "メモを削除"
4956
4971
  },
4957
4972
  es: {
4973
+ "speedShortcutTitle": "Atajo de velocidad en el cuadro de entrada",
4974
+ "speedShortcut_off": "Desactivado",
4975
+ "speedShortcut_icon": "Rayo",
4976
+ "speedShortcut_hover": "Al pasar el puntero",
4977
+ "speedShortcut_label": "Nombre de la velocidad",
4958
4978
  "catalogTimeout": "La solicitud del catálogo de modelos agotó el tiempo de espera. Comprueba la red o el proxy y reinténtalo.",
4959
4979
  "catalogCachedTimeout": "Se conserva el catálogo disponible; la actualización en línea agotó el tiempo de espera. Comprueba la red o el proxy y reinténtalo.",
4960
4980
  "openSubscriptionSettings": "Configuración de la suscripción",
@@ -5903,6 +5923,11 @@ window.__ModuleLoader__.load({
5903
5923
  "imageRemoveAnnotation": "Eliminar nota"
5904
5924
  },
5905
5925
  fr: {
5926
+ "speedShortcutTitle": "Raccourci de vitesse dans la zone de saisie",
5927
+ "speedShortcut_off": "Désactivé",
5928
+ "speedShortcut_icon": "Éclair",
5929
+ "speedShortcut_hover": "Au survol",
5930
+ "speedShortcut_label": "Nom de la vitesse",
5906
5931
  "catalogTimeout": "La demande du catalogue de modèles a expiré. Vérifiez le réseau ou le proxy et réessayez.",
5907
5932
  "catalogCachedTimeout": "Le catalogue disponible est conservé ; la mise à jour en ligne a expiré. Vérifiez le réseau ou le proxy et réessayez.",
5908
5933
  "openSubscriptionSettings": "Paramètres de l’abonnement",
@@ -6851,6 +6876,11 @@ window.__ModuleLoader__.load({
6851
6876
  "imageRemoveAnnotation": "Supprimer la note"
6852
6877
  },
6853
6878
  de: {
6879
+ "speedShortcutTitle": "Tempo-Kürzel im Eingabefeld",
6880
+ "speedShortcut_off": "Aus",
6881
+ "speedShortcut_icon": "Blitzsymbol",
6882
+ "speedShortcut_hover": "Beim Zeigen",
6883
+ "speedShortcut_label": "Temponame",
6854
6884
  "catalogTimeout": "Die Anfrage für den Modellkatalog hat das Zeitlimit überschritten. Netzwerk oder Proxy prüfen und erneut versuchen.",
6855
6885
  "catalogCachedTimeout": "Der vorhandene Modellkatalog bleibt verfügbar. Die Online-Aktualisierung hat das Zeitlimit überschritten. Netzwerk oder Proxy prüfen und erneut versuchen.",
6856
6886
  "openSubscriptionSettings": "Abo-Einstellungen",
@@ -7799,6 +7829,11 @@ window.__ModuleLoader__.load({
7799
7829
  "imageRemoveAnnotation": "Notiz entfernen"
7800
7830
  },
7801
7831
  ru: {
7832
+ "speedShortcutTitle": "Переключатель скорости в поле ввода",
7833
+ "speedShortcut_off": "Выкл.",
7834
+ "speedShortcut_icon": "Молния",
7835
+ "speedShortcut_hover": "При наведении",
7836
+ "speedShortcut_label": "Название скорости",
7802
7837
  "catalogTimeout": "Время ожидания каталога моделей истекло. Проверьте сеть или прокси и повторите попытку.",
7803
7838
  "catalogCachedTimeout": "Доступный каталог моделей сохранён; время онлайн-обновления истекло. Проверьте сеть или прокси и повторите попытку.",
7804
7839
  "openSubscriptionSettings": "Настройки подписки",
@@ -8747,6 +8782,11 @@ window.__ModuleLoader__.load({
8747
8782
  "imageRemoveAnnotation": "Удалить примечание"
8748
8783
  },
8749
8784
  pt: {
8785
+ "speedShortcutTitle": "Atalho de velocidade no campo de mensagem",
8786
+ "speedShortcut_off": "Desativado",
8787
+ "speedShortcut_icon": "Raio",
8788
+ "speedShortcut_hover": "Ao passar o cursor",
8789
+ "speedShortcut_label": "Nome da velocidade",
8750
8790
  "catalogTimeout": "A solicitação do catálogo de modelos excedeu o tempo limite. Verifique a rede ou o proxy e tente novamente.",
8751
8791
  "catalogCachedTimeout": "O catálogo disponível foi mantido; a atualização online excedeu o tempo limite. Verifique a rede ou o proxy e tente novamente.",
8752
8792
  "openSubscriptionSettings": "Configurações da assinatura",
@@ -9704,7 +9744,10 @@ window.__ModuleLoader__.load({
9704
9744
  .codexModelSelectTrigger:focus-visible{box-shadow:0 0 0 2px var(--dsw-alias-border-l3)}
9705
9745
  .codexModelSelectTrigger:disabled{color:var(--dsw-alias-label-dimmed);cursor:default}
9706
9746
  .codexModelSelectBolt{display:block;flex:none;width:14px;height:14px;color:var(--dsw-alias-label-primary)}
9707
- .codexModelInlineLabel{display:inline-flex;align-items:center;gap:4px;max-width:100%;vertical-align:middle}
9747
+ .codexModelInlineLabel{display:inline}
9748
+ .codexModelInlineLabel>.codexModelSelectBolt{display:inline-block;vertical-align:-2px;margin-inline-end:4px}
9749
+ .codexModelInlineLabel[data-placement=trigger]>.codexModelCatalogBadge{margin-inline-end:4px}
9750
+ .codexModelInlineLabel:not([data-placement=trigger])>.codexModelCatalogBadge{margin-inline-start:4px}
9708
9751
  .codexModelCatalogBadge{font-size:11px;line-height:16px;padding:0 3px;border-radius:4px;background:var(--dsw-alias-bg-layer-2);color:var(--dsw-alias-label-secondary)}
9709
9752
  .codexModelSelectLabel{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
9710
9753
  .codexModelSelectEffort{flex:none;color:var(--dsw-alias-label-caption)}
@@ -10618,6 +10661,14 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
10618
10661
  "legacy"
10619
10662
  ]);
10620
10663
  const normalizeComposerModelPicker = (value) => COMPOSER_MODEL_PICKER_MODES.includes(value) ? value : "auto";
10664
+ const SPEED_SHORTCUT_FIELD = "speedShortcut";
10665
+ const SPEED_SHORTCUT_STYLES = Object.freeze([
10666
+ "off",
10667
+ "icon",
10668
+ "hover",
10669
+ "label"
10670
+ ]);
10671
+ const normalizeSpeedShortcut = (value) => SPEED_SHORTCUT_STYLES.includes(value) ? value : "off";
10621
10672
  const SPEED_MODE_FIELD = "speedMode";
10622
10673
  const SPEED_MODE_STANDARD = "standard";
10623
10674
  const SPEED_MODE_FAST = "fast";
@@ -10899,6 +10950,11 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
10899
10950
  default: "dsh",
10900
10951
  error: "Invalid fetch provider preference"
10901
10952
  },
10953
+ [SPEED_SHORTCUT_FIELD]: {
10954
+ choices: SPEED_SHORTCUT_STYLES,
10955
+ default: "off",
10956
+ error: "Invalid speed shortcut style"
10957
+ },
10902
10958
  [SPEED_MODE_FIELD]: {
10903
10959
  choices: [
10904
10960
  SPEED_MODE_STANDARD,
@@ -11034,6 +11090,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
11034
11090
  fetchProvider: normalizeFetchProvider(value?.[FETCH_PROVIDER_FIELD]),
11035
11091
  fetchRoutingAvailable,
11036
11092
  speedMode: normalizeSpeedMode(value?.[SPEED_MODE_FIELD]),
11093
+ [SPEED_SHORTCUT_FIELD]: normalizeSpeedShortcut(value?.[SPEED_SHORTCUT_FIELD]),
11037
11094
  outputVerbosity: normalizeOutputVerbosity(value?.[OUTPUT_VERBOSITY_FIELD]),
11038
11095
  inputImageDetail: normalizeInputImageDetail(value?.[INPUT_IMAGE_DETAIL_FIELD]),
11039
11096
  reasoningSummary: normalizeReasoningSummary(value?.[REASONING_SUMMARY_FIELD]),
@@ -11101,6 +11158,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
11101
11158
  remoteControl: value?.remoteControl === "on" ? "on" : "off",
11102
11159
  composerPredictions: value?.composerPredictions === "on" ? "on" : "off",
11103
11160
  composerModelPicker: normalizeComposerModelPicker(value?.composerModelPicker),
11161
+ [SPEED_SHORTCUT_FIELD]: normalizeSpeedShortcut(value?.[SPEED_SHORTCUT_FIELD]),
11104
11162
  otherModels: value?.otherModels === "off" ? "off" : "on",
11105
11163
  otherModels: value?.otherModels === "off" ? "off" : "on",
11106
11164
  compactionMode: value?.compactionMode === "cloud" ? "cloud" : "dsh",
@@ -11560,7 +11618,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
11560
11618
  /** @returns {{kind:'reset'}|{kind:'range',min:number,max:number}|{kind:'point',seconds:number}|undefined} rounded seconds. */
11561
11619
  function forecastRunway(forecast) {
11562
11620
  if (forecast?.status !== "ready") return void 0;
11563
- if (forecast.survivesReset && !forecast.provisional) return { kind: "reset" };
11621
+ if ((forecast.survivesReset === "yes" || forecast.survivesReset === true) && !forecast.provisional) return { kind: "reset" };
11564
11622
  if (!forecast.provisional && Number.isFinite(forecast.runwayMinSeconds) && Number.isFinite(forecast.runwayMaxSeconds)) {
11565
11623
  const min = roundRunwaySeconds(forecast.runwayMinSeconds), max = roundRunwaySeconds(forecast.runwayMaxSeconds);
11566
11624
  if (min > 0 && max > min) return {
@@ -11590,9 +11648,12 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
11590
11648
  })) return { kind: "stale" };
11591
11649
  if (remainingPercent === 0) return { kind: "exhausted" };
11592
11650
  if (forecast?.status === "calibrating") return { kind: forecast.reason ?? "calibrating" };
11593
- if (forecast?.status === "idle") return { kind: "idle" };
11651
+ if (forecast?.status === "flat" || forecast?.status === "idle") return {
11652
+ kind: "idle",
11653
+ upperPacePerHour: forecast.upperPacePerHour
11654
+ };
11594
11655
  if (!Number.isFinite(fetchedAt)) return { kind: "calibrating" };
11595
- if (forecast?.status === "ready" && !forecast.provisional && Number.isFinite(forecast.runwayMinSeconds) && forecast.runwayMinSeconds > 0 && Number.isFinite(resetsAt) && fetchedAt + forecast.runwayMinSeconds * 1e3 >= resetsAt * 1e3) return { kind: "reset" };
11656
+ if (forecast?.status === "ready" && !forecast.provisional && (typeof forecast.survivesReset !== "string" || forecast.survivesReset === "yes") && Number.isFinite(forecast.runwayMinSeconds) && forecast.runwayMinSeconds > 0 && Number.isFinite(resetsAt) && fetchedAt + forecast.runwayMinSeconds * 1e3 >= resetsAt * 1e3) return { kind: "reset" };
11596
11657
  const rawMin = !forecast?.provisional && Number.isFinite(forecast?.runwayMinSeconds) ? forecast.runwayMinSeconds : forecast?.runwaySeconds;
11597
11658
  if (Number.isFinite(rawMin) && fetchedAt + rawMin * 1e3 <= now) return { kind: "stale" };
11598
11659
  const runway = forecastRunway({
@@ -11780,7 +11841,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
11780
11841
  }
11781
11842
  //#endregion
11782
11843
  //#region src/version.js
11783
- const PACKAGE_VERSION = "3.2.21";
11844
+ const PACKAGE_VERSION = "3.2.22";
11784
11845
  //#endregion
11785
11846
  //#region src/client-recovery.js
11786
11847
  async function recoveryCall(rpc, endpoint, payload = {}, timeoutMs = endpoint === "usage" || endpoint.startsWith("usage/") ? 3e4 : 1e4) {
@@ -12163,6 +12224,86 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
12163
12224
  }));
12164
12225
  }
12165
12226
  const ForwardRef = /*#__PURE__*/ react.forwardRef(BoltIcon);
12227
+ //#endregion
12228
+ //#region src/client-speed-shortcut.jsx
12229
+ const labels = {
12230
+ standard: "speedStandard",
12231
+ fast: "speedFast",
12232
+ ultrafast: "speedUltrafast"
12233
+ };
12234
+ function CodexSpeedShortcut({ directory, preference, t, locked }) {
12235
+ const { current } = (0, react.useSyncExternalStore)(directory.subscribe, directory.getSnapshot);
12236
+ const status = usePreferenceSnapshot(preference);
12237
+ const mode = status[SPEED_SHORTCUT_FIELD];
12238
+ const modelId = current?.model;
12239
+ const supportsFast = status.fastModels?.includes(modelId) ?? supportsCodexFastMode(modelId);
12240
+ if (mode === "off" || current?.provider !== "openai-codex" || !supportsFast || status.status !== "ready") return null;
12241
+ const speed = effectiveCodexSpeedMode(status.speedMode, modelId, {
12242
+ supportsFast,
12243
+ supportsUltrafast: status.ultrafastModels?.includes(modelId)
12244
+ });
12245
+ const next = speed === "standard" ? SPEED_MODE_FAST : SPEED_MODE_STANDARD;
12246
+ const label = t(labels[speed]);
12247
+ const hint = `${t("speedTitle")} · ${label} → ${t(labels[next])}${next === "fast" ? ` · ${t("speedFastHint")}` : ""}`;
12248
+ const toggle = () => {
12249
+ const selected = directory.getSnapshot().current;
12250
+ const saved = preference.getSnapshot();
12251
+ if (selected?.provider !== current.provider || selected?.model !== modelId || saved.speedMode !== status.speedMode || saved.saving || !saved.writable) return;
12252
+ preference.set({ [SPEED_MODE_FIELD]: next });
12253
+ };
12254
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12255
+ className: "codexSpeedShortcutSeat",
12256
+ "data-layout": mode,
12257
+ "data-speed": speed,
12258
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
12259
+ type: "button",
12260
+ className: "codexSpeedShortcut",
12261
+ "data-speed": speed,
12262
+ title: hint,
12263
+ "aria-label": hint,
12264
+ "aria-pressed": speed !== SPEED_MODE_STANDARD,
12265
+ disabled: locked || status.saving || !status.writable,
12266
+ onClick: toggle,
12267
+ children: mode === "label" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: label }) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
12268
+ className: "codexSpeedShortcutBolt",
12269
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, { "aria-hidden": "true" })
12270
+ })
12271
+ })
12272
+ });
12273
+ }
12274
+ const SPEED_SHORTCUT_CSS = `
12275
+ .codexSpeedShortcutSeat{display:inline-flex;align-items:center;flex:none}
12276
+ .codexSpeedShortcut{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:27px;padding:2px 5px;border:0;border-radius:6px;background:transparent;color:var(--dsw-alias-label-secondary,CanvasText);font:inherit;font-size:12px;line-height:1.2;white-space:nowrap;cursor:pointer}
12277
+ .codexSpeedShortcutBolt{display:grid;place-items:center}
12278
+ .codexSpeedShortcut svg{width:14px;height:14px;display:block}
12279
+ .codexSpeedShortcut[data-speed=standard] svg{fill:none;stroke:currentColor;stroke-width:.9}
12280
+ .codexSpeedShortcut:not([data-speed=standard]){color:var(--dsw-alias-label-primary,CanvasText)}
12281
+ .codexSpeedShortcut:hover:not(:disabled){background:color-mix(in srgb,currentColor 10%,transparent)}
12282
+ .codexSpeedShortcut:focus-visible{outline:2px solid currentColor;outline-offset:1px}
12283
+ .codexSpeedShortcut:disabled{cursor:default;opacity:.5}
12284
+
12285
+ [data-slot="conversation.input.right"]:has(.codexSpeedShortcutSeat:is([data-layout=icon],[data-layout=hover])){display:flex;align-items:center}
12286
+ div:has(>[data-slot="conversation.input.right"]>.codexSpeedShortcutSeat:is([data-layout=icon],[data-layout=hover])):has(>[data-slot="conversation.input.model"]){column-gap:0}
12287
+
12288
+ @media(hover:hover) and (pointer:fine){
12289
+ [data-slot="conversation.input.right"]:has(+[data-slot="conversation.input.model"])>.codexSpeedShortcutSeat[data-layout=hover][data-speed=standard]{position:relative;width:0}
12290
+ [data-slot="conversation.input.right"]:has(+[data-slot="conversation.input.model"])>.codexSpeedShortcutSeat[data-layout=hover][data-speed=standard]>.codexSpeedShortcut{
12291
+ position:absolute;inset-inline-end:0;opacity:0;visibility:hidden;background:var(--dsw-alias-bg-layer-1,Canvas);
12292
+ transition:opacity 150ms,visibility 0s 150ms
12293
+ }
12294
+ div:has(>[data-slot="conversation.input.right"]>.codexSpeedShortcutSeat[data-layout=hover][data-speed=standard]):has(>[data-slot="conversation.input.model"]:is(:hover,:focus-within)) .codexSpeedShortcut,
12295
+ .codexSpeedShortcutSeat[data-layout=hover][data-speed=standard]:is(:hover,:focus-within)>.codexSpeedShortcut{opacity:1;visibility:visible;transition:none}
12296
+ }
12297
+
12298
+ /* Keep the labelled shortcut next to the native model trigger. */
12299
+ div:has(>[data-slot="conversation.input.right"]>.codexSpeedShortcutSeat[data-layout=label]):has(>[data-slot="conversation.input.model"]){column-gap:0}
12300
+ [data-slot="conversation.input.right"]:has(>.codexSpeedShortcutSeat[data-layout=label]):has(+[data-slot="conversation.input.model"]){display:contents}
12301
+ div:has(>[data-slot="conversation.input.right"]>.codexSpeedShortcutSeat[data-layout=label])>[data-slot="conversation.input.model"]{order:1}
12302
+ .codexSpeedShortcutSeat[data-layout=label]{order:2}
12303
+ .codexSpeedShortcutSeat[data-layout=label]>.codexSpeedShortcut{padding-inline:7px}
12304
+ .codexSpeedShortcutSeat[data-layout=label]>.codexSpeedShortcut:not([data-speed=standard]){font-weight:600}
12305
+
12306
+ `;
12166
12307
  //#endregion
12167
12308
  //#region src/client-model-select.jsx
12168
12309
  function createModelOptionsMenu() {
@@ -12191,10 +12332,14 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
12191
12332
  "data-tone": model.badge.tone,
12192
12333
  children: resolveText(model.badge.text)
12193
12334
  });
12335
+ const shortcutShown = snapshot.speedShortcut && snapshot.speedShortcut !== "off" && (snapshot.fastModels?.includes(model.id) ?? supportsCodexFastMode(model.id));
12336
+ const bolt = placement === "trigger" && selected && speed !== "standard" && !shortcutShown;
12337
+ if (!badge && !bolt) return model.name;
12194
12338
  return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
12195
12339
  className: "codexModelInlineLabel",
12340
+ "data-placement": placement,
12196
12341
  children: [
12197
- placement === "trigger" && selected && speed !== "standard" && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
12342
+ bolt && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
12198
12343
  className: "codexModelSelectBolt",
12199
12344
  "aria-label": t(speed === "ultrafast" ? "speedUltrafast" : "speedFast")
12200
12345
  }),
@@ -12749,7 +12894,7 @@ a.codexVoiceCall{display:flex;align-items:center;justify-content:center;box-sizi
12749
12894
  load();
12750
12895
  },
12751
12896
  children: [
12752
- fast && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
12897
+ fast && (!preferenceSnapshot.speedShortcut || preferenceSnapshot.speedShortcut === "off" || !speedSupported) && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ForwardRef, {
12753
12898
  className: "codexModelSelectBolt",
12754
12899
  "aria-hidden": "true"
12755
12900
  }),
@@ -18684,29 +18829,47 @@ void main(){
18684
18829
  className: "codexComposerMenuGroup",
18685
18830
  role: "group",
18686
18831
  "aria-label": t("legacyModelPicker"),
18687
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18688
- className: "codexSubscriptionPreference",
18689
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18690
- className: "codexSubscriptionPreferenceCopy",
18691
- children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
18692
- description: t("legacyModelPickerHint"),
18693
- children: t("legacyModelPicker")
18694
- }), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(customMenu ? "composerMenuCustom" : "composerMenuHost") }) : null]
18695
- }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
18832
+ children: [
18833
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18834
+ className: "codexSubscriptionPreference",
18835
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18836
+ className: "codexSubscriptionPreferenceCopy",
18837
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, {
18838
+ description: t("legacyModelPickerHint"),
18839
+ children: t("legacyModelPicker")
18840
+ }), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Hint, { children: t(customMenu ? "composerMenuCustom" : "composerMenuHost") }) : null]
18841
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
18842
+ snapshot,
18843
+ preference,
18844
+ field: "composerModelPicker",
18845
+ values: COMPOSER_MODEL_PICKER_MODES,
18846
+ name: "codex-model-picker",
18847
+ label: t("legacyModelPicker"),
18848
+ text: (value) => t(menuLabels[value]),
18849
+ disabled: !loaded || snapshot.saving
18850
+ })]
18851
+ }),
18852
+ loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpeedPreference, {
18696
18853
  snapshot,
18697
18854
  preference,
18698
- field: "composerModelPicker",
18699
- values: COMPOSER_MODEL_PICKER_MODES,
18700
- name: "codex-model-picker",
18701
- label: t("legacyModelPicker"),
18702
- text: (value) => t(menuLabels[value]),
18703
- disabled: !loaded || snapshot.saving
18704
- })]
18705
- }), loaded ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SpeedPreference, {
18706
- snapshot,
18707
- preference,
18708
- t
18709
- }) : null]
18855
+ t
18856
+ }) : null,
18857
+ /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
18858
+ className: "codexSubscriptionPreference",
18859
+ children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18860
+ className: "codexSubscriptionPreferenceCopy",
18861
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SettingsLabel, { children: t("speedShortcutTitle") })
18862
+ }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Radios, {
18863
+ snapshot,
18864
+ preference,
18865
+ field: SPEED_SHORTCUT_FIELD,
18866
+ values: SPEED_SHORTCUT_STYLES,
18867
+ name: "codex-speed-shortcut",
18868
+ label: t("speedShortcutTitle"),
18869
+ text: (value) => t(`speedShortcut_${value}`)
18870
+ })]
18871
+ })
18872
+ ]
18710
18873
  }),
18711
18874
  /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PickerModelsPreference, {
18712
18875
  preference,
@@ -21794,7 +21957,11 @@ void main(){
21794
21957
  "uiConversation",
21795
21958
  "sessions"
21796
21959
  ];
21797
- const ComposerRight = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodexComposerQuota, { ...props }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceCallButton, { ...props })] });
21960
+ const ComposerRight = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
21961
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodexComposerQuota, { ...props }),
21962
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(VoiceCallButton, { ...props }),
21963
+ /* @__PURE__ */ (0, react_jsx_runtime.jsx)(CodexSpeedShortcut, { ...props })
21964
+ ] });
21798
21965
  function apply(ctx) {
21799
21966
  if (new URL(window.location.href).searchParams.has("codexVoiceSession")) ctx.inject(["uiWorkspace", "sessions"], (scope) => scope.effect(() => {
21800
21967
  const sessions = scope.get("sessions"), controller = new AbortController();
@@ -21825,7 +21992,7 @@ void main(){
21825
21992
  ctx.effect(() => {
21826
21993
  const tag = document.createElement("style");
21827
21994
  tag.dataset.plugin = "dsh-codex-subscription";
21828
- tag.textContent = STYLE + IMAGE_PREVIEWS_CSS + PREDICTION_CSS;
21995
+ tag.textContent = STYLE + IMAGE_PREVIEWS_CSS + PREDICTION_CSS + SPEED_SHORTCUT_CSS;
21829
21996
  document.head.append(tag);
21830
21997
  return () => tag.remove();
21831
21998
  }, "codex-subscription: style");