@codexhost/cli-linux-arm64 0.24.0 → 0.25.1

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.
Files changed (48) hide show
  1. package/README.md +1 -1
  2. package/app/codexhost-distribution.json +1 -1
  3. package/app/console-server.mjs +3166 -3040
  4. package/app/console-web.js +1156 -585
  5. package/app/desktop-controller.mjs +645 -264
  6. package/app/host-runtime.mjs +10906 -10282
  7. package/app/plugins/antigravity/plugin.mjs +515 -369
  8. package/app/plugins/claude-code/plugin.mjs +583 -438
  9. package/app/plugins/codebuddy/plugin.mjs +551 -429
  10. package/app/plugins/codex-usage/plugin.mjs +344 -224
  11. package/app/plugins/copilot/plugin.mjs +408 -286
  12. package/app/plugins/cursor-cli/plugin.mjs +499 -360
  13. package/app/plugins/deepseek-harness/plugin.mjs +759 -520
  14. package/app/plugins/devin/plugin.mjs +385 -265
  15. package/app/plugins/grok/plugin.mjs +638 -516
  16. package/app/plugins/hermes/plugin.mjs +456 -334
  17. package/app/plugins/kimi-code/plugin.mjs +454 -332
  18. package/app/plugins/kiro-cli/plugin.mjs +445 -325
  19. package/app/plugins/omp/plugin.mjs +707 -339
  20. package/app/plugins/opencode/plugin.mjs +873 -741
  21. package/app/plugins/pi/plugin.mjs +481 -359
  22. package/app/plugins/qoder/plugin.mjs +682 -560
  23. package/app/plugins/qoder-cn/plugin.mjs +682 -560
  24. package/app/plugins/qwen-code/plugin.mjs +475 -355
  25. package/app/plugins/workbuddy/plugin.mjs +549 -429
  26. package/app/plugins/zcode/plugin.mjs +352 -232
  27. package/app/renderer-extension.js +1706 -945
  28. package/app/web/assets/{index-IvFk9KT-.js → index-DUOvhHbV.js} +82 -82
  29. package/app/web/codexhost-settings.js +416 -51
  30. package/app/web/index.html +1 -1
  31. package/app/web/plugins/deepseek-ai__dsh-api-remotes/client.js +64 -64
  32. package/app/web/plugins/deepseek-ai__dsh-api-session-controller/client.js +8 -8
  33. package/app/web/plugins/deepseek-ai__dsh-api-workspace-controller/client.js +1 -1
  34. package/app/web/plugins/deepseek-ai__dsh-client-shortcuts/client.js +1 -1
  35. package/app/web/plugins/deepseek-ai__dsh-client-ui-brand-official/client.js +1 -1
  36. package/app/web/plugins/deepseek-ai__dsh-client-ui-chat/client.js +74 -74
  37. package/app/web/plugins/deepseek-ai__dsh-client-ui-codexhost/client.js +72 -72
  38. package/app/web/plugins/deepseek-ai__dsh-client-ui-conversation/client.js +97 -97
  39. package/app/web/plugins/deepseek-ai__dsh-client-ui-layout/client.js +1 -1
  40. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar/client.js +2 -2
  41. package/app/web/plugins/deepseek-ai__dsh-client-ui-sidebar-files/client.js +1 -1
  42. package/app/web/plugins/deepseek-ai__dsh-client-ui-tool/client.js +18 -18
  43. package/app/web/plugins/deepseek-ai__dsh-client-ui-workspace/client.js +8 -8
  44. package/app/web-modules/server.mjs +2132 -1312
  45. package/bin/codexhost +0 -0
  46. package/libexec/codexhost-shim +0 -0
  47. package/libexec/codexhost-updater +0 -0
  48. package/package.json +1 -1
@@ -798,8 +798,8 @@
798
798
  }
799
799
  };
800
800
  }
801
- function nullish(input) {
802
- return input === null || input === void 0;
801
+ function nullish(input2) {
802
+ return input2 === null || input2 === void 0;
803
803
  }
804
804
  function cleanRegex(source) {
805
805
  const start = source.startsWith("^") ? 1 : 0;
@@ -886,8 +886,8 @@
886
886
  function esc(str) {
887
887
  return JSON.stringify(str);
888
888
  }
889
- function slugify(input) {
890
- return input.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
889
+ function slugify(input2) {
890
+ return input2.toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/[\s_-]+/g, "-").replace(/^-+|-+$/g, "");
891
891
  }
892
892
  var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace : (..._args) => {
893
893
  };
@@ -1292,19 +1292,19 @@
1292
1292
  }
1293
1293
  return rest;
1294
1294
  }
1295
- function getSizableOrigin(input) {
1296
- if (input instanceof Set)
1295
+ function getSizableOrigin(input2) {
1296
+ if (input2 instanceof Set)
1297
1297
  return "set";
1298
- if (input instanceof Map)
1298
+ if (input2 instanceof Map)
1299
1299
  return "map";
1300
- if (input instanceof File)
1300
+ if (input2 instanceof File)
1301
1301
  return "file";
1302
1302
  return "unknown";
1303
1303
  }
1304
- function getLengthableOrigin(input) {
1305
- if (Array.isArray(input))
1304
+ function getLengthableOrigin(input2) {
1305
+ if (Array.isArray(input2))
1306
1306
  return "array";
1307
- if (typeof input === "string")
1307
+ if (typeof input2 === "string")
1308
1308
  return "string";
1309
1309
  return "unknown";
1310
1310
  }
@@ -1330,12 +1330,12 @@
1330
1330
  return t;
1331
1331
  }
1332
1332
  function issue(...args) {
1333
- const [iss, input, inst] = args;
1333
+ const [iss, input2, inst] = args;
1334
1334
  if (typeof iss === "string") {
1335
1335
  return {
1336
1336
  message: iss,
1337
1337
  code: "custom",
1338
- input,
1338
+ input: input2,
1339
1339
  inst
1340
1340
  };
1341
1341
  }
@@ -1879,23 +1879,23 @@
1879
1879
  bag.pattern = integer;
1880
1880
  });
1881
1881
  inst._zod.check = (payload) => {
1882
- const input = payload.value;
1882
+ const input2 = payload.value;
1883
1883
  if (isInt) {
1884
- if (!Number.isInteger(input)) {
1884
+ if (!Number.isInteger(input2)) {
1885
1885
  payload.issues.push({
1886
1886
  expected: origin,
1887
1887
  format: def.format,
1888
1888
  code: "invalid_type",
1889
1889
  continue: false,
1890
- input,
1890
+ input: input2,
1891
1891
  inst
1892
1892
  });
1893
1893
  return;
1894
1894
  }
1895
- if (!Number.isSafeInteger(input)) {
1896
- if (input > 0) {
1895
+ if (!Number.isSafeInteger(input2)) {
1896
+ if (input2 > 0) {
1897
1897
  payload.issues.push({
1898
- input,
1898
+ input: input2,
1899
1899
  code: "too_big",
1900
1900
  maximum: Number.MAX_SAFE_INTEGER,
1901
1901
  note: "Integers must be within the safe integer range.",
@@ -1906,7 +1906,7 @@
1906
1906
  });
1907
1907
  } else {
1908
1908
  payload.issues.push({
1909
- input,
1909
+ input: input2,
1910
1910
  code: "too_small",
1911
1911
  minimum: Number.MIN_SAFE_INTEGER,
1912
1912
  note: "Integers must be within the safe integer range.",
@@ -1919,10 +1919,10 @@
1919
1919
  return;
1920
1920
  }
1921
1921
  }
1922
- if (input < minimum) {
1922
+ if (input2 < minimum) {
1923
1923
  payload.issues.push({
1924
1924
  origin: "number",
1925
- input,
1925
+ input: input2,
1926
1926
  code: "too_small",
1927
1927
  minimum,
1928
1928
  inclusive: true,
@@ -1930,10 +1930,10 @@
1930
1930
  continue: !def.abort
1931
1931
  });
1932
1932
  }
1933
- if (input > maximum) {
1933
+ if (input2 > maximum) {
1934
1934
  payload.issues.push({
1935
1935
  origin: "number",
1936
- input,
1936
+ input: input2,
1937
1937
  code: "too_big",
1938
1938
  maximum,
1939
1939
  inclusive: true,
@@ -1953,11 +1953,11 @@
1953
1953
  bag.maximum = maximum;
1954
1954
  });
1955
1955
  inst._zod.check = (payload) => {
1956
- const input = payload.value;
1957
- if (input < minimum) {
1956
+ const input2 = payload.value;
1957
+ if (input2 < minimum) {
1958
1958
  payload.issues.push({
1959
1959
  origin: "bigint",
1960
- input,
1960
+ input: input2,
1961
1961
  code: "too_small",
1962
1962
  minimum,
1963
1963
  inclusive: true,
@@ -1965,10 +1965,10 @@
1965
1965
  continue: !def.abort
1966
1966
  });
1967
1967
  }
1968
- if (input > maximum) {
1968
+ if (input2 > maximum) {
1969
1969
  payload.issues.push({
1970
1970
  origin: "bigint",
1971
- input,
1971
+ input: input2,
1972
1972
  code: "too_big",
1973
1973
  maximum,
1974
1974
  inclusive: true,
@@ -1991,16 +1991,16 @@
1991
1991
  inst2._zod.bag.maximum = def.maximum;
1992
1992
  });
1993
1993
  inst._zod.check = (payload) => {
1994
- const input = payload.value;
1995
- const size = input.size;
1994
+ const input2 = payload.value;
1995
+ const size = input2.size;
1996
1996
  if (size <= def.maximum)
1997
1997
  return;
1998
1998
  payload.issues.push({
1999
- origin: getSizableOrigin(input),
1999
+ origin: getSizableOrigin(input2),
2000
2000
  code: "too_big",
2001
2001
  maximum: def.maximum,
2002
2002
  inclusive: true,
2003
- input,
2003
+ input: input2,
2004
2004
  inst,
2005
2005
  continue: !def.abort
2006
2006
  });
@@ -2019,16 +2019,16 @@
2019
2019
  inst2._zod.bag.minimum = def.minimum;
2020
2020
  });
2021
2021
  inst._zod.check = (payload) => {
2022
- const input = payload.value;
2023
- const size = input.size;
2022
+ const input2 = payload.value;
2023
+ const size = input2.size;
2024
2024
  if (size >= def.minimum)
2025
2025
  return;
2026
2026
  payload.issues.push({
2027
- origin: getSizableOrigin(input),
2027
+ origin: getSizableOrigin(input2),
2028
2028
  code: "too_small",
2029
2029
  minimum: def.minimum,
2030
2030
  inclusive: true,
2031
- input,
2031
+ input: input2,
2032
2032
  inst,
2033
2033
  continue: !def.abort
2034
2034
  });
@@ -2048,13 +2048,13 @@
2048
2048
  bag.size = def.size;
2049
2049
  });
2050
2050
  inst._zod.check = (payload) => {
2051
- const input = payload.value;
2052
- const size = input.size;
2051
+ const input2 = payload.value;
2052
+ const size = input2.size;
2053
2053
  if (size === def.size)
2054
2054
  return;
2055
2055
  const tooBig = size > def.size;
2056
2056
  payload.issues.push({
2057
- origin: getSizableOrigin(input),
2057
+ origin: getSizableOrigin(input2),
2058
2058
  ...tooBig ? { code: "too_big", maximum: def.size } : { code: "too_small", minimum: def.size },
2059
2059
  inclusive: true,
2060
2060
  exact: true,
@@ -2077,17 +2077,17 @@
2077
2077
  inst2._zod.bag.maximum = def.maximum;
2078
2078
  });
2079
2079
  inst._zod.check = (payload) => {
2080
- const input = payload.value;
2081
- const length = input.length;
2080
+ const input2 = payload.value;
2081
+ const length = input2.length;
2082
2082
  if (length <= def.maximum)
2083
2083
  return;
2084
- const origin = getLengthableOrigin(input);
2084
+ const origin = getLengthableOrigin(input2);
2085
2085
  payload.issues.push({
2086
2086
  origin,
2087
2087
  code: "too_big",
2088
2088
  maximum: def.maximum,
2089
2089
  inclusive: true,
2090
- input,
2090
+ input: input2,
2091
2091
  inst,
2092
2092
  continue: !def.abort
2093
2093
  });
@@ -2106,17 +2106,17 @@
2106
2106
  inst2._zod.bag.minimum = def.minimum;
2107
2107
  });
2108
2108
  inst._zod.check = (payload) => {
2109
- const input = payload.value;
2110
- const length = input.length;
2109
+ const input2 = payload.value;
2110
+ const length = input2.length;
2111
2111
  if (length >= def.minimum)
2112
2112
  return;
2113
- const origin = getLengthableOrigin(input);
2113
+ const origin = getLengthableOrigin(input2);
2114
2114
  payload.issues.push({
2115
2115
  origin,
2116
2116
  code: "too_small",
2117
2117
  minimum: def.minimum,
2118
2118
  inclusive: true,
2119
- input,
2119
+ input: input2,
2120
2120
  inst,
2121
2121
  continue: !def.abort
2122
2122
  });
@@ -2136,11 +2136,11 @@
2136
2136
  bag.length = def.length;
2137
2137
  });
2138
2138
  inst._zod.check = (payload) => {
2139
- const input = payload.value;
2140
- const length = input.length;
2139
+ const input2 = payload.value;
2140
+ const length = input2.length;
2141
2141
  if (length === def.length)
2142
2142
  return;
2143
- const origin = getLengthableOrigin(input);
2143
+ const origin = getLengthableOrigin(input2);
2144
2144
  const tooBig = length > def.length;
2145
2145
  payload.issues.push({
2146
2146
  origin,
@@ -2811,15 +2811,15 @@
2811
2811
  payload.value = Number(payload.value);
2812
2812
  } catch (_) {
2813
2813
  }
2814
- const input = payload.value;
2815
- if (typeof input === "number" && !Number.isNaN(input) && Number.isFinite(input)) {
2814
+ const input2 = payload.value;
2815
+ if (typeof input2 === "number" && !Number.isNaN(input2) && Number.isFinite(input2)) {
2816
2816
  return payload;
2817
2817
  }
2818
- const received = typeof input === "number" ? Number.isNaN(input) ? "NaN" : !Number.isFinite(input) ? "Infinity" : void 0 : void 0;
2818
+ const received = typeof input2 === "number" ? Number.isNaN(input2) ? "NaN" : !Number.isFinite(input2) ? "Infinity" : void 0 : void 0;
2819
2819
  payload.issues.push({
2820
2820
  expected: "number",
2821
2821
  code: "invalid_type",
2822
- input,
2822
+ input: input2,
2823
2823
  inst,
2824
2824
  ...received ? { received } : {}
2825
2825
  });
@@ -2839,13 +2839,13 @@
2839
2839
  payload.value = Boolean(payload.value);
2840
2840
  } catch (_) {
2841
2841
  }
2842
- const input = payload.value;
2843
- if (typeof input === "boolean")
2842
+ const input2 = payload.value;
2843
+ if (typeof input2 === "boolean")
2844
2844
  return payload;
2845
2845
  payload.issues.push({
2846
2846
  expected: "boolean",
2847
2847
  code: "invalid_type",
2848
- input,
2848
+ input: input2,
2849
2849
  inst
2850
2850
  });
2851
2851
  return payload;
@@ -2878,13 +2878,13 @@
2878
2878
  var $ZodSymbol = /* @__PURE__ */ $constructor("$ZodSymbol", (inst, def) => {
2879
2879
  $ZodType.init(inst, def);
2880
2880
  inst._zod.parse = (payload, _ctx) => {
2881
- const input = payload.value;
2882
- if (typeof input === "symbol")
2881
+ const input2 = payload.value;
2882
+ if (typeof input2 === "symbol")
2883
2883
  return payload;
2884
2884
  payload.issues.push({
2885
2885
  expected: "symbol",
2886
2886
  code: "invalid_type",
2887
- input,
2887
+ input: input2,
2888
2888
  inst
2889
2889
  });
2890
2890
  return payload;
@@ -2895,13 +2895,13 @@
2895
2895
  inst._zod.pattern = _undefined;
2896
2896
  inst._zod.values = /* @__PURE__ */ new Set([void 0]);
2897
2897
  inst._zod.parse = (payload, _ctx) => {
2898
- const input = payload.value;
2899
- if (typeof input === "undefined")
2898
+ const input2 = payload.value;
2899
+ if (typeof input2 === "undefined")
2900
2900
  return payload;
2901
2901
  payload.issues.push({
2902
2902
  expected: "undefined",
2903
2903
  code: "invalid_type",
2904
- input,
2904
+ input: input2,
2905
2905
  inst
2906
2906
  });
2907
2907
  return payload;
@@ -2912,13 +2912,13 @@
2912
2912
  inst._zod.pattern = _null;
2913
2913
  inst._zod.values = /* @__PURE__ */ new Set([null]);
2914
2914
  inst._zod.parse = (payload, _ctx) => {
2915
- const input = payload.value;
2916
- if (input === null)
2915
+ const input2 = payload.value;
2916
+ if (input2 === null)
2917
2917
  return payload;
2918
2918
  payload.issues.push({
2919
2919
  expected: "null",
2920
2920
  code: "invalid_type",
2921
- input,
2921
+ input: input2,
2922
2922
  inst
2923
2923
  });
2924
2924
  return payload;
@@ -2947,13 +2947,13 @@
2947
2947
  var $ZodVoid = /* @__PURE__ */ $constructor("$ZodVoid", (inst, def) => {
2948
2948
  $ZodType.init(inst, def);
2949
2949
  inst._zod.parse = (payload, _ctx) => {
2950
- const input = payload.value;
2951
- if (typeof input === "undefined")
2950
+ const input2 = payload.value;
2951
+ if (typeof input2 === "undefined")
2952
2952
  return payload;
2953
2953
  payload.issues.push({
2954
2954
  expected: "void",
2955
2955
  code: "invalid_type",
2956
- input,
2956
+ input: input2,
2957
2957
  inst
2958
2958
  });
2959
2959
  return payload;
@@ -2968,15 +2968,15 @@
2968
2968
  } catch (_err) {
2969
2969
  }
2970
2970
  }
2971
- const input = payload.value;
2972
- const isDate = input instanceof Date;
2973
- const isValidDate = isDate && !Number.isNaN(input.getTime());
2971
+ const input2 = payload.value;
2972
+ const isDate = input2 instanceof Date;
2973
+ const isValidDate = isDate && !Number.isNaN(input2.getTime());
2974
2974
  if (isValidDate)
2975
2975
  return payload;
2976
2976
  payload.issues.push({
2977
2977
  expected: "date",
2978
2978
  code: "invalid_type",
2979
- input,
2979
+ input: input2,
2980
2980
  ...isDate ? { received: "Invalid Date" } : {},
2981
2981
  inst
2982
2982
  });
@@ -2992,20 +2992,20 @@
2992
2992
  var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
2993
2993
  $ZodType.init(inst, def);
2994
2994
  inst._zod.parse = (payload, ctx) => {
2995
- const input = payload.value;
2996
- if (!Array.isArray(input)) {
2995
+ const input2 = payload.value;
2996
+ if (!Array.isArray(input2)) {
2997
2997
  payload.issues.push({
2998
2998
  expected: "array",
2999
2999
  code: "invalid_type",
3000
- input,
3000
+ input: input2,
3001
3001
  inst
3002
3002
  });
3003
3003
  return payload;
3004
3004
  }
3005
- payload.value = Array(input.length);
3005
+ payload.value = Array(input2.length);
3006
3006
  const proms = [];
3007
- for (let i = 0; i < input.length; i++) {
3008
- const item = input[i];
3007
+ for (let i = 0; i < input2.length; i++) {
3008
+ const item = input2[i];
3009
3009
  const result = def.element._zod.run({
3010
3010
  value: item,
3011
3011
  issues: []
@@ -3022,8 +3022,8 @@
3022
3022
  return payload;
3023
3023
  };
3024
3024
  });
3025
- function handlePropertyResult(result, final, key2, input, isOptionalIn, isOptionalOut) {
3026
- const isPresent = key2 in input;
3025
+ function handlePropertyResult(result, final, key2, input2, isOptionalIn, isOptionalOut) {
3026
+ const isPresent = key2 in input2;
3027
3027
  if (result.issues.length) {
3028
3028
  if (isOptionalIn && isOptionalOut && !isPresent) {
3029
3029
  return;
@@ -3065,14 +3065,14 @@
3065
3065
  optionalKeys: new Set(okeys)
3066
3066
  };
3067
3067
  }
3068
- function handleCatchall(proms, input, payload, ctx, def, inst) {
3068
+ function handleCatchall(proms, input2, payload, ctx, def, inst) {
3069
3069
  const unrecognized = [];
3070
3070
  const keySet = def.keySet;
3071
3071
  const _catchall = def.catchall._zod;
3072
3072
  const t = _catchall.def.type;
3073
3073
  const isOptionalIn = _catchall.optin === "optional";
3074
3074
  const isOptionalOut = _catchall.optout === "optional";
3075
- for (const key2 in input) {
3075
+ for (const key2 in input2) {
3076
3076
  if (key2 === "__proto__")
3077
3077
  continue;
3078
3078
  if (keySet.has(key2))
@@ -3081,18 +3081,18 @@
3081
3081
  unrecognized.push(key2);
3082
3082
  continue;
3083
3083
  }
3084
- const r = _catchall.run({ value: input[key2], issues: [] }, ctx);
3084
+ const r = _catchall.run({ value: input2[key2], issues: [] }, ctx);
3085
3085
  if (r instanceof Promise) {
3086
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input, isOptionalIn, isOptionalOut)));
3086
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input2, isOptionalIn, isOptionalOut)));
3087
3087
  } else {
3088
- handlePropertyResult(r, payload, key2, input, isOptionalIn, isOptionalOut);
3088
+ handlePropertyResult(r, payload, key2, input2, isOptionalIn, isOptionalOut);
3089
3089
  }
3090
3090
  }
3091
3091
  if (unrecognized.length) {
3092
3092
  payload.issues.push({
3093
3093
  code: "unrecognized_keys",
3094
3094
  keys: unrecognized,
3095
- input,
3095
+ input: input2,
3096
3096
  inst
3097
3097
  });
3098
3098
  }
@@ -3136,12 +3136,12 @@
3136
3136
  let value;
3137
3137
  inst._zod.parse = (payload, ctx) => {
3138
3138
  value ?? (value = _normalized.value);
3139
- const input = payload.value;
3140
- if (!isObject2(input)) {
3139
+ const input2 = payload.value;
3140
+ if (!isObject2(input2)) {
3141
3141
  payload.issues.push({
3142
3142
  expected: "object",
3143
3143
  code: "invalid_type",
3144
- input,
3144
+ input: input2,
3145
3145
  inst
3146
3146
  });
3147
3147
  return payload;
@@ -3153,17 +3153,17 @@
3153
3153
  const el = shape[key2];
3154
3154
  const isOptionalIn = el._zod.optin === "optional";
3155
3155
  const isOptionalOut = el._zod.optout === "optional";
3156
- const r = el._zod.run({ value: input[key2], issues: [] }, ctx);
3156
+ const r = el._zod.run({ value: input2[key2], issues: [] }, ctx);
3157
3157
  if (r instanceof Promise) {
3158
- proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input, isOptionalIn, isOptionalOut)));
3158
+ proms.push(r.then((r2) => handlePropertyResult(r2, payload, key2, input2, isOptionalIn, isOptionalOut)));
3159
3159
  } else {
3160
- handlePropertyResult(r, payload, key2, input, isOptionalIn, isOptionalOut);
3160
+ handlePropertyResult(r, payload, key2, input2, isOptionalIn, isOptionalOut);
3161
3161
  }
3162
3162
  }
3163
3163
  if (!catchall) {
3164
3164
  return proms.length ? Promise.all(proms).then(() => payload) : payload;
3165
3165
  }
3166
- return handleCatchall(proms, input, payload, ctx, _normalized.value, inst);
3166
+ return handleCatchall(proms, input2, payload, ctx, _normalized.value, inst);
3167
3167
  };
3168
3168
  });
3169
3169
  var $ZodObjectJIT = /* @__PURE__ */ $constructor("$ZodObjectJIT", (inst, def) => {
@@ -3272,12 +3272,12 @@
3272
3272
  let value;
3273
3273
  inst._zod.parse = (payload, ctx) => {
3274
3274
  value ?? (value = _normalized.value);
3275
- const input = payload.value;
3276
- if (!isObject2(input)) {
3275
+ const input2 = payload.value;
3276
+ if (!isObject2(input2)) {
3277
3277
  payload.issues.push({
3278
3278
  expected: "object",
3279
3279
  code: "invalid_type",
3280
- input,
3280
+ input: input2,
3281
3281
  inst
3282
3282
  });
3283
3283
  return payload;
@@ -3288,7 +3288,7 @@
3288
3288
  payload = fastpass(payload, ctx);
3289
3289
  if (!catchall)
3290
3290
  return payload;
3291
- return handleCatchall([], input, payload, ctx, value, inst);
3291
+ return handleCatchall([], input2, payload, ctx, value, inst);
3292
3292
  }
3293
3293
  return superParse(payload, ctx);
3294
3294
  };
@@ -3448,17 +3448,17 @@
3448
3448
  return map2;
3449
3449
  });
3450
3450
  inst._zod.parse = (payload, ctx) => {
3451
- const input = payload.value;
3452
- if (!isObject(input)) {
3451
+ const input2 = payload.value;
3452
+ if (!isObject(input2)) {
3453
3453
  payload.issues.push({
3454
3454
  code: "invalid_type",
3455
3455
  expected: "object",
3456
- input,
3456
+ input: input2,
3457
3457
  inst
3458
3458
  });
3459
3459
  return payload;
3460
3460
  }
3461
- const opt = disc.value.get(input?.[def.discriminator]);
3461
+ const opt = disc.value.get(input2?.[def.discriminator]);
3462
3462
  if (opt) {
3463
3463
  return opt._zod.run(payload, ctx);
3464
3464
  }
@@ -3471,7 +3471,7 @@
3471
3471
  note: "No matching discriminator",
3472
3472
  discriminator: def.discriminator,
3473
3473
  options: Array.from(disc.value.keys()),
3474
- input,
3474
+ input: input2,
3475
3475
  path: [def.discriminator],
3476
3476
  inst
3477
3477
  });
@@ -3481,9 +3481,9 @@
3481
3481
  var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, def) => {
3482
3482
  $ZodType.init(inst, def);
3483
3483
  inst._zod.parse = (payload, ctx) => {
3484
- const input = payload.value;
3485
- const left = def.left._zod.run({ value: input, issues: [] }, ctx);
3486
- const right = def.right._zod.run({ value: input, issues: [] }, ctx);
3484
+ const input2 = payload.value;
3485
+ const left = def.left._zod.run({ value: input2, issues: [] }, ctx);
3486
+ const right = def.right._zod.run({ value: input2, issues: [] }, ctx);
3487
3487
  const async = left instanceof Promise || right instanceof Promise;
3488
3488
  if (async) {
3489
3489
  return Promise.all([left, right]).then(([left2, right2]) => {
@@ -3580,10 +3580,10 @@
3580
3580
  $ZodType.init(inst, def);
3581
3581
  const items = def.items;
3582
3582
  inst._zod.parse = (payload, ctx) => {
3583
- const input = payload.value;
3584
- if (!Array.isArray(input)) {
3583
+ const input2 = payload.value;
3584
+ if (!Array.isArray(input2)) {
3585
3585
  payload.issues.push({
3586
- input,
3586
+ input: input2,
3587
3587
  inst,
3588
3588
  expected: "tuple",
3589
3589
  code: "invalid_type"
@@ -3595,23 +3595,23 @@
3595
3595
  const optinStart = getTupleOptStart(items, "optin");
3596
3596
  const optoutStart = getTupleOptStart(items, "optout");
3597
3597
  if (!def.rest) {
3598
- if (input.length < optinStart) {
3598
+ if (input2.length < optinStart) {
3599
3599
  payload.issues.push({
3600
3600
  code: "too_small",
3601
3601
  minimum: optinStart,
3602
3602
  inclusive: true,
3603
- input,
3603
+ input: input2,
3604
3604
  inst,
3605
3605
  origin: "array"
3606
3606
  });
3607
3607
  return payload;
3608
3608
  }
3609
- if (input.length > items.length) {
3609
+ if (input2.length > items.length) {
3610
3610
  payload.issues.push({
3611
3611
  code: "too_big",
3612
3612
  maximum: items.length,
3613
3613
  inclusive: true,
3614
- input,
3614
+ input: input2,
3615
3615
  inst,
3616
3616
  origin: "array"
3617
3617
  });
@@ -3619,7 +3619,7 @@
3619
3619
  }
3620
3620
  const itemResults = new Array(items.length);
3621
3621
  for (let i = 0; i < items.length; i++) {
3622
- const r = items[i]._zod.run({ value: input[i], issues: [] }, ctx);
3622
+ const r = items[i]._zod.run({ value: input2[i], issues: [] }, ctx);
3623
3623
  if (r instanceof Promise) {
3624
3624
  proms.push(r.then((rr) => {
3625
3625
  itemResults[i] = rr;
@@ -3630,7 +3630,7 @@
3630
3630
  }
3631
3631
  if (def.rest) {
3632
3632
  let i = items.length - 1;
3633
- const rest = input.slice(items.length);
3633
+ const rest = input2.slice(items.length);
3634
3634
  for (const el of rest) {
3635
3635
  i++;
3636
3636
  const result = def.rest._zod.run({ value: el, issues: [] }, ctx);
@@ -3642,9 +3642,9 @@
3642
3642
  }
3643
3643
  }
3644
3644
  if (proms.length) {
3645
- return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input, optoutStart));
3645
+ return Promise.all(proms).then(() => handleTupleResults(itemResults, payload, items, input2, optoutStart));
3646
3646
  }
3647
- return handleTupleResults(itemResults, payload, items, input, optoutStart);
3647
+ return handleTupleResults(itemResults, payload, items, input2, optoutStart);
3648
3648
  };
3649
3649
  });
3650
3650
  function getTupleOptStart(items, key2) {
@@ -3660,10 +3660,10 @@
3660
3660
  }
3661
3661
  final.value[index] = result.value;
3662
3662
  }
3663
- function handleTupleResults(itemResults, final, items, input, optoutStart) {
3663
+ function handleTupleResults(itemResults, final, items, input2, optoutStart) {
3664
3664
  for (let i = 0; i < items.length; i++) {
3665
3665
  const r = itemResults[i];
3666
- const isPresent = i < input.length;
3666
+ const isPresent = i < input2.length;
3667
3667
  if (r.issues.length) {
3668
3668
  if (!isPresent && i >= optoutStart) {
3669
3669
  final.value.length = i;
@@ -3673,7 +3673,7 @@
3673
3673
  }
3674
3674
  final.value[i] = r.value;
3675
3675
  }
3676
- for (let i = final.value.length - 1; i >= input.length; i--) {
3676
+ for (let i = final.value.length - 1; i >= input2.length; i--) {
3677
3677
  if (items[i]._zod.optout === "optional" && final.value[i] === void 0) {
3678
3678
  final.value.length = i;
3679
3679
  } else {
@@ -3685,12 +3685,12 @@
3685
3685
  var $ZodRecord = /* @__PURE__ */ $constructor("$ZodRecord", (inst, def) => {
3686
3686
  $ZodType.init(inst, def);
3687
3687
  inst._zod.parse = (payload, ctx) => {
3688
- const input = payload.value;
3689
- if (!isPlainObject(input)) {
3688
+ const input2 = payload.value;
3689
+ if (!isPlainObject(input2)) {
3690
3690
  payload.issues.push({
3691
3691
  expected: "record",
3692
3692
  code: "invalid_type",
3693
- input,
3693
+ input: input2,
3694
3694
  inst
3695
3695
  });
3696
3696
  return payload;
@@ -3719,7 +3719,7 @@
3719
3719
  continue;
3720
3720
  }
3721
3721
  const outKey = keyResult.value;
3722
- const result = def.valueType._zod.run({ value: input[key2], issues: [] }, ctx);
3722
+ const result = def.valueType._zod.run({ value: input2[key2], issues: [] }, ctx);
3723
3723
  if (result instanceof Promise) {
3724
3724
  proms.push(result.then((result2) => {
3725
3725
  if (result2.issues.length) {
@@ -3736,7 +3736,7 @@
3736
3736
  }
3737
3737
  }
3738
3738
  let unrecognized;
3739
- for (const key2 in input) {
3739
+ for (const key2 in input2) {
3740
3740
  if (!recordKeys.has(key2)) {
3741
3741
  unrecognized = unrecognized ?? [];
3742
3742
  unrecognized.push(key2);
@@ -3745,17 +3745,17 @@
3745
3745
  if (unrecognized && unrecognized.length > 0) {
3746
3746
  payload.issues.push({
3747
3747
  code: "unrecognized_keys",
3748
- input,
3748
+ input: input2,
3749
3749
  inst,
3750
3750
  keys: unrecognized
3751
3751
  });
3752
3752
  }
3753
3753
  } else {
3754
3754
  payload.value = {};
3755
- for (const key2 of Reflect.ownKeys(input)) {
3755
+ for (const key2 of Reflect.ownKeys(input2)) {
3756
3756
  if (key2 === "__proto__")
3757
3757
  continue;
3758
- if (!Object.prototype.propertyIsEnumerable.call(input, key2))
3758
+ if (!Object.prototype.propertyIsEnumerable.call(input2, key2))
3759
3759
  continue;
3760
3760
  let keyResult = def.keyType._zod.run({ value: key2, issues: [] }, ctx);
3761
3761
  if (keyResult instanceof Promise) {
@@ -3773,7 +3773,7 @@
3773
3773
  }
3774
3774
  if (keyResult.issues.length) {
3775
3775
  if (def.mode === "loose") {
3776
- payload.value[key2] = input[key2];
3776
+ payload.value[key2] = input2[key2];
3777
3777
  } else {
3778
3778
  payload.issues.push({
3779
3779
  code: "invalid_key",
@@ -3786,7 +3786,7 @@
3786
3786
  }
3787
3787
  continue;
3788
3788
  }
3789
- const result = def.valueType._zod.run({ value: input[key2], issues: [] }, ctx);
3789
+ const result = def.valueType._zod.run({ value: input2[key2], issues: [] }, ctx);
3790
3790
  if (result instanceof Promise) {
3791
3791
  proms.push(result.then((result2) => {
3792
3792
  if (result2.issues.length) {
@@ -3811,27 +3811,27 @@
3811
3811
  var $ZodMap = /* @__PURE__ */ $constructor("$ZodMap", (inst, def) => {
3812
3812
  $ZodType.init(inst, def);
3813
3813
  inst._zod.parse = (payload, ctx) => {
3814
- const input = payload.value;
3815
- if (!(input instanceof Map)) {
3814
+ const input2 = payload.value;
3815
+ if (!(input2 instanceof Map)) {
3816
3816
  payload.issues.push({
3817
3817
  expected: "map",
3818
3818
  code: "invalid_type",
3819
- input,
3819
+ input: input2,
3820
3820
  inst
3821
3821
  });
3822
3822
  return payload;
3823
3823
  }
3824
3824
  const proms = [];
3825
3825
  payload.value = /* @__PURE__ */ new Map();
3826
- for (const [key2, value] of input) {
3826
+ for (const [key2, value] of input2) {
3827
3827
  const keyResult = def.keyType._zod.run({ value: key2, issues: [] }, ctx);
3828
3828
  const valueResult = def.valueType._zod.run({ value, issues: [] }, ctx);
3829
3829
  if (keyResult instanceof Promise || valueResult instanceof Promise) {
3830
3830
  proms.push(Promise.all([keyResult, valueResult]).then(([keyResult2, valueResult2]) => {
3831
- handleMapResult(keyResult2, valueResult2, payload, key2, input, inst, ctx);
3831
+ handleMapResult(keyResult2, valueResult2, payload, key2, input2, inst, ctx);
3832
3832
  }));
3833
3833
  } else {
3834
- handleMapResult(keyResult, valueResult, payload, key2, input, inst, ctx);
3834
+ handleMapResult(keyResult, valueResult, payload, key2, input2, inst, ctx);
3835
3835
  }
3836
3836
  }
3837
3837
  if (proms.length)
@@ -3839,7 +3839,7 @@
3839
3839
  return payload;
3840
3840
  };
3841
3841
  });
3842
- function handleMapResult(keyResult, valueResult, final, key2, input, inst, ctx) {
3842
+ function handleMapResult(keyResult, valueResult, final, key2, input2, inst, ctx) {
3843
3843
  if (keyResult.issues.length) {
3844
3844
  if (propertyKeyTypes.has(typeof key2)) {
3845
3845
  final.issues.push(...prefixIssues(key2, keyResult.issues));
@@ -3847,7 +3847,7 @@
3847
3847
  final.issues.push({
3848
3848
  code: "invalid_key",
3849
3849
  origin: "map",
3850
- input,
3850
+ input: input2,
3851
3851
  inst,
3852
3852
  issues: keyResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
3853
3853
  });
@@ -3860,7 +3860,7 @@
3860
3860
  final.issues.push({
3861
3861
  origin: "map",
3862
3862
  code: "invalid_element",
3863
- input,
3863
+ input: input2,
3864
3864
  inst,
3865
3865
  key: key2,
3866
3866
  issues: valueResult.issues.map((iss) => finalizeIssue(iss, ctx, config()))
@@ -3872,10 +3872,10 @@
3872
3872
  var $ZodSet = /* @__PURE__ */ $constructor("$ZodSet", (inst, def) => {
3873
3873
  $ZodType.init(inst, def);
3874
3874
  inst._zod.parse = (payload, ctx) => {
3875
- const input = payload.value;
3876
- if (!(input instanceof Set)) {
3875
+ const input2 = payload.value;
3876
+ if (!(input2 instanceof Set)) {
3877
3877
  payload.issues.push({
3878
- input,
3878
+ input: input2,
3879
3879
  inst,
3880
3880
  expected: "set",
3881
3881
  code: "invalid_type"
@@ -3884,7 +3884,7 @@
3884
3884
  }
3885
3885
  const proms = [];
3886
3886
  payload.value = /* @__PURE__ */ new Set();
3887
- for (const item of input) {
3887
+ for (const item of input2) {
3888
3888
  const result = def.valueType._zod.run({ value: item, issues: [] }, ctx);
3889
3889
  if (result instanceof Promise) {
3890
3890
  proms.push(result.then((result2) => handleSetResult(result2, payload)));
@@ -3909,14 +3909,14 @@
3909
3909
  inst._zod.values = valuesSet;
3910
3910
  inst._zod.pattern = new RegExp(`^(${values.filter((k) => propertyKeyTypes.has(typeof k)).map((o) => typeof o === "string" ? escapeRegex(o) : o.toString()).join("|")})$`);
3911
3911
  inst._zod.parse = (payload, _ctx) => {
3912
- const input = payload.value;
3913
- if (valuesSet.has(input)) {
3912
+ const input2 = payload.value;
3913
+ if (valuesSet.has(input2)) {
3914
3914
  return payload;
3915
3915
  }
3916
3916
  payload.issues.push({
3917
3917
  code: "invalid_value",
3918
3918
  values,
3919
- input,
3919
+ input: input2,
3920
3920
  inst
3921
3921
  });
3922
3922
  return payload;
@@ -3931,14 +3931,14 @@
3931
3931
  inst._zod.values = values;
3932
3932
  inst._zod.pattern = new RegExp(`^(${def.values.map((o) => typeof o === "string" ? escapeRegex(o) : o ? escapeRegex(o.toString()) : String(o)).join("|")})$`);
3933
3933
  inst._zod.parse = (payload, _ctx) => {
3934
- const input = payload.value;
3935
- if (values.has(input)) {
3934
+ const input2 = payload.value;
3935
+ if (values.has(input2)) {
3936
3936
  return payload;
3937
3937
  }
3938
3938
  payload.issues.push({
3939
3939
  code: "invalid_value",
3940
3940
  values: def.values,
3941
- input,
3941
+ input: input2,
3942
3942
  inst
3943
3943
  });
3944
3944
  return payload;
@@ -3947,13 +3947,13 @@
3947
3947
  var $ZodFile = /* @__PURE__ */ $constructor("$ZodFile", (inst, def) => {
3948
3948
  $ZodType.init(inst, def);
3949
3949
  inst._zod.parse = (payload, _ctx) => {
3950
- const input = payload.value;
3951
- if (input instanceof File)
3950
+ const input2 = payload.value;
3951
+ if (input2 instanceof File)
3952
3952
  return payload;
3953
3953
  payload.issues.push({
3954
3954
  expected: "file",
3955
3955
  code: "invalid_type",
3956
- input,
3956
+ input: input2,
3957
3957
  inst
3958
3958
  });
3959
3959
  return payload;
@@ -3983,8 +3983,8 @@
3983
3983
  return payload;
3984
3984
  };
3985
3985
  });
3986
- function handleOptionalResult(result, input) {
3987
- if (input === void 0 && (result.issues.length || result.fallback)) {
3986
+ function handleOptionalResult(result, input2) {
3987
+ if (input2 === void 0 && (result.issues.length || result.fallback)) {
3988
3988
  return { issues: [], value: void 0 };
3989
3989
  }
3990
3990
  return result;
@@ -4002,11 +4002,11 @@
4002
4002
  });
4003
4003
  inst._zod.parse = (payload, ctx) => {
4004
4004
  if (def.innerType._zod.optin === "optional") {
4005
- const input = payload.value;
4005
+ const input2 = payload.value;
4006
4006
  const result = def.innerType._zod.run(payload, ctx);
4007
4007
  if (result instanceof Promise)
4008
- return result.then((r) => handleOptionalResult(r, input));
4009
- return handleOptionalResult(result, input);
4008
+ return result.then((r) => handleOptionalResult(r, input2));
4009
+ return handleOptionalResult(result, input2);
4010
4010
  }
4011
4011
  if (payload.value === void 0) {
4012
4012
  return payload;
@@ -4431,20 +4431,20 @@
4431
4431
  return payload;
4432
4432
  };
4433
4433
  inst._zod.check = (payload) => {
4434
- const input = payload.value;
4435
- const r = def.fn(input);
4434
+ const input2 = payload.value;
4435
+ const r = def.fn(input2);
4436
4436
  if (r instanceof Promise) {
4437
- return r.then((r2) => handleRefineResult(r2, payload, input, inst));
4437
+ return r.then((r2) => handleRefineResult(r2, payload, input2, inst));
4438
4438
  }
4439
- handleRefineResult(r, payload, input, inst);
4439
+ handleRefineResult(r, payload, input2, inst);
4440
4440
  return;
4441
4441
  };
4442
4442
  });
4443
- function handleRefineResult(result, payload, input, inst) {
4443
+ function handleRefineResult(result, payload, input2, inst) {
4444
4444
  if (!result) {
4445
4445
  const _iss = {
4446
4446
  code: "custom",
4447
- input,
4447
+ input: input2,
4448
4448
  inst,
4449
4449
  // incorporates params.error into issue reporting
4450
4450
  path: [...inst._zod.def.path ?? []],
@@ -7731,8 +7731,8 @@
7731
7731
  }
7732
7732
 
7733
7733
  // ../../node_modules/zod/v4/locales/lt.js
7734
- var capitalizeFirstCharacter = (text) => {
7735
- return text.charAt(0).toUpperCase() + text.slice(1);
7734
+ var capitalizeFirstCharacter = (text2) => {
7735
+ return text2.charAt(0).toUpperCase() + text2.slice(1);
7736
7736
  };
7737
7737
  function getUnitTypeFromNumber(number4) {
7738
7738
  const abs = Math.abs(number4);
@@ -11132,23 +11132,23 @@
11132
11132
  }
11133
11133
  // @__NO_SIDE_EFFECTS__
11134
11134
  function _normalize(form) {
11135
- return /* @__PURE__ */ _overwrite((input) => input.normalize(form));
11135
+ return /* @__PURE__ */ _overwrite((input2) => input2.normalize(form));
11136
11136
  }
11137
11137
  // @__NO_SIDE_EFFECTS__
11138
11138
  function _trim() {
11139
- return /* @__PURE__ */ _overwrite((input) => input.trim());
11139
+ return /* @__PURE__ */ _overwrite((input2) => input2.trim());
11140
11140
  }
11141
11141
  // @__NO_SIDE_EFFECTS__
11142
11142
  function _toLowerCase() {
11143
- return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
11143
+ return /* @__PURE__ */ _overwrite((input2) => input2.toLowerCase());
11144
11144
  }
11145
11145
  // @__NO_SIDE_EFFECTS__
11146
11146
  function _toUpperCase() {
11147
- return /* @__PURE__ */ _overwrite((input) => input.toUpperCase());
11147
+ return /* @__PURE__ */ _overwrite((input2) => input2.toUpperCase());
11148
11148
  }
11149
11149
  // @__NO_SIDE_EFFECTS__
11150
11150
  function _slugify() {
11151
- return /* @__PURE__ */ _overwrite((input) => slugify(input));
11151
+ return /* @__PURE__ */ _overwrite((input2) => slugify(input2));
11152
11152
  }
11153
11153
  // @__NO_SIDE_EFFECTS__
11154
11154
  function _array(Class2, element, params) {
@@ -11453,8 +11453,8 @@
11453
11453
  type: "pipe",
11454
11454
  in: stringSchema,
11455
11455
  out: booleanSchema,
11456
- transform: ((input, payload) => {
11457
- let data = input;
11456
+ transform: ((input2, payload) => {
11457
+ let data = input2;
11458
11458
  if (params.case !== "sensitive")
11459
11459
  data = data.toLowerCase();
11460
11460
  if (truthySet.has(data)) {
@@ -11473,8 +11473,8 @@
11473
11473
  return {};
11474
11474
  }
11475
11475
  }),
11476
- reverseTransform: ((input, _payload) => {
11477
- if (input === true) {
11476
+ reverseTransform: ((input2, _payload) => {
11477
+ if (input2 === true) {
11478
11478
  return truthyArray[0] || "true";
11479
11479
  } else {
11480
11480
  return falsyArray[0] || "false";
@@ -12370,9 +12370,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12370
12370
  optional: optionalProcessor,
12371
12371
  lazy: lazyProcessor
12372
12372
  };
12373
- function toJSONSchema(input, params) {
12374
- if ("_idmap" in input) {
12375
- const registry2 = input;
12373
+ function toJSONSchema(input2, params) {
12374
+ if ("_idmap" in input2) {
12375
+ const registry2 = input2;
12376
12376
  const ctx2 = initializeContext({ ...params, processors: allProcessors });
12377
12377
  const defs = {};
12378
12378
  for (const entry of registry2._idmap.entries()) {
@@ -12400,9 +12400,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
12400
12400
  return { schemas };
12401
12401
  }
12402
12402
  const ctx = initializeContext({ ...params, processors: allProcessors });
12403
- process(input, ctx);
12404
- extractDefs(ctx, input);
12405
- return finalize(ctx, input);
12403
+ process(input2, ctx);
12404
+ extractDefs(ctx, input2);
12405
+ return finalize(ctx, input2);
12406
12406
  }
12407
12407
 
12408
12408
  // ../../node_modules/zod/v4/core/json-schema-generator.js
@@ -14679,7 +14679,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14679
14679
 
14680
14680
  // ../shared-contracts/dist/harness-presentation.js
14681
14681
  var localeSchema = external_exports.string().max(64).regex(/^[a-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/u);
14682
- var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text) => text.trim().length > 0);
14682
+ var displayText = (maximum) => external_exports.string().min(1).max(maximum).refine((text2) => text2.trim().length > 0);
14683
14683
  var harnessLocalizationsSchema = external_exports.record(localeSchema, external_exports.object({
14684
14684
  label: displayText(256).optional(),
14685
14685
  description: displayText(1024).optional()
@@ -14789,7 +14789,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
14789
14789
  outputTokensPerSecond: usageMeasurementSchema.refine((value) => value.version === 4).optional().catch(void 0),
14790
14790
  timeToFirstOutputMs: usageMeasurementSchema.extend({ value: nonNegativeSafeIntegerSchema }).optional()
14791
14791
  }).strict();
14792
- var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text) => text.length <= maximum));
14792
+ var indicatorTextSchema = (maximum) => harnessLocalizedTextSchema.refine((entries) => Object.values(entries).every((text2) => text2.length <= maximum));
14793
14793
  var composerIndicatorsSchema = external_exports.array(external_exports.object({
14794
14794
  kind: external_exports.literal("countdown"),
14795
14795
  id: external_exports.string().min(1).max(64),
@@ -15180,6 +15180,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15180
15180
  effectiveThinkingOptionId: harnessThinkingOptionIdSchema.optional(),
15181
15181
  availableThinkingOptions: harnessThinkingOptionsSchema.optional(),
15182
15182
  effectivePermissionModeId: harnessPermissionModeIdSchema.optional(),
15183
+ /** Live Session catalog when it, not the Adapter inspection, contains `effectiveModel`. */
15184
+ catalog: harnessModelCatalogSchema.optional(),
15183
15185
  history: harnessHistoryCapabilitiesSchema,
15184
15186
  usage: threadUsageSnapshotSchema.optional(),
15185
15187
  locked: external_exports.literal(true)
@@ -15238,9 +15240,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15238
15240
  }).strict();
15239
15241
  var threadSteeringContextSchema = external_exports.object({
15240
15242
  kind: external_exports.literal("application"),
15241
- value: external_exports.string().transform((text, context) => {
15243
+ value: external_exports.string().transform((text2, context) => {
15242
15244
  try {
15243
- return JSON.parse(text);
15245
+ return JSON.parse(text2);
15244
15246
  } catch {
15245
15247
  context.addIssue({ code: "custom", message: "Invalid steering context JSON" });
15246
15248
  return external_exports.NEVER;
@@ -15375,8 +15377,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15375
15377
  const { username, password } = new URL(value);
15376
15378
  return !username && !password && !/[\\\s]/u.test(value);
15377
15379
  }, "URL must not contain credentials, backslashes, or whitespace");
15378
- function localizedText(text) {
15379
- return external_exports.strictObject({ en: text, "zh-CN": text });
15380
+ function localizedText(text2) {
15381
+ return external_exports.strictObject({ en: text2, "zh-CN": text2 });
15380
15382
  }
15381
15383
  var desktopExtensionLocalizedTextSchema = localizedText(external_exports.string().trim().min(1));
15382
15384
  var categoriesSchema = external_exports.array(desktopExtensionCategorySchema).max(desktopExtensionCategorySchema.options.length).refine((categories) => new Set(categories).size === categories.length, "Duplicate categories");
@@ -15498,8 +15500,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15498
15500
  function isGitHubDesktopExtensionZipballUrl(url2) {
15499
15501
  return url2.origin === "https://api.github.com" && /^\/repos\/[\w-]+\/[\w.-]+\/zipball(?:\/[^/]+)?\/?$/u.test(url2.pathname);
15500
15502
  }
15501
- var desktopExtensionZipUrlSchema = desktopExtensionHttpUrlSchema.refine((input) => {
15502
- const url2 = new URL(input);
15503
+ var desktopExtensionZipUrlSchema = desktopExtensionHttpUrlSchema.refine((input2) => {
15504
+ const url2 = new URL(input2);
15503
15505
  return /\.zip$/iu.test(url2.pathname) || isGitHubDesktopExtensionZipballUrl(url2) || url2.origin === "https://github.com" && /^\/[\w-]+\/[\w.-]+\/zipball(?:\/.+)?\/?$/u.test(url2.pathname) || url2.origin === "https://codeload.github.com" && /^\/[\w-]+\/[\w.-]+\/(?:zip|zipball|legacy\.zip)\/.+$/u.test(url2.pathname);
15504
15506
  }, "Expected a .zip download URL or a GitHub zipball URL");
15505
15507
  var desktopExtensionCatalogEntrySchema = external_exports.strictObject({
@@ -15920,6 +15922,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15920
15922
  "codexhost/workspace/read",
15921
15923
  "codexhost/thread/tree/read",
15922
15924
  "codexhost/thread/pins/list",
15925
+ "codexhost/thread/sections/list",
15926
+ "codexhost/thread/sections/move",
15923
15927
  "codexhost/thread/pins/set",
15924
15928
  "codexhost/harness/plugins/list",
15925
15929
  "codexhost/harness/inspect",
@@ -15958,8 +15962,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
15958
15962
  "codexhost/update/check",
15959
15963
  "codexhost/update/start",
15960
15964
  "codexhost/update/status",
15965
+ "codexhost/announcement/get",
15966
+ "codexhost/announcement/acknowledge",
15961
15967
  "codexhost/sessions/loaded/list"
15962
15968
  ];
15969
+ var clientThreadSectionsSchema = external_exports.object({
15970
+ sections: external_exports.array(external_exports.object({
15971
+ id: external_exports.string().min(1),
15972
+ name: external_exports.string().min(1),
15973
+ threads: external_exports.array(jsonObjectSchema)
15974
+ }).strict())
15975
+ }).strict();
15976
+ var clientThreadSectionMoveSchema = external_exports.object({
15977
+ threadId: external_exports.string().min(1).max(1024),
15978
+ sectionId: external_exports.string().min(1).max(1024).nullable()
15979
+ }).strict();
15963
15980
  var clientThreadPinsSchema = external_exports.object({ threadIds: external_exports.array(external_exports.string().min(1)) }).strict();
15964
15981
  var clientThreadPinParamsSchema = external_exports.object({ threadId: external_exports.string().min(1).max(1024), pinned: external_exports.boolean() }).strict();
15965
15982
  var clientThreadTreeReadParamsSchema = external_exports.object({}).strict();
@@ -16534,8 +16551,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16534
16551
  operations: external_exports.array(harnessPreferenceOperationSchema).min(1).max(256),
16535
16552
  initializeOnly: external_exports.boolean().optional(),
16536
16553
  expectedRevision: external_exports.number().int().nonnegative().optional()
16537
- }).superRefine((input, ctx) => {
16538
- for (const operation of input.operations) {
16554
+ }).superRefine((input2, ctx) => {
16555
+ for (const operation of input2.operations) {
16539
16556
  if (operation.kind === "newThread" && (!operation.lastHarness && !operation.configuration || Boolean(operation.harnessId) !== Boolean(operation.configuration)))
16540
16557
  ctx.addIssue({
16541
16558
  code: "custom",
@@ -16960,13 +16977,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
16960
16977
  var HARNESS_INSTALLATION_STATUS_METHOD = "codexhost/harness/installation/status";
16961
16978
  var harnessInstallationParamsSchema = external_exports.object({
16962
16979
  harnessId: harnessIdSchema,
16963
- action: external_exports.enum(["check", "update", "install"])
16964
- }).strict();
16980
+ action: external_exports.enum(["check", "update", "install"]),
16981
+ confirmedVersion: external_exports.string().min(1).max(128).optional()
16982
+ }).strict().refine(({ action, confirmedVersion }) => action === "update" || confirmedVersion === void 0);
16965
16983
  var harnessInstallationStateSchema = external_exports.object({
16966
16984
  currentVersion: external_exports.string().min(1).max(128),
16967
16985
  latestVersion: external_exports.string().min(1).max(128),
16968
16986
  updateAvailable: external_exports.boolean(),
16969
16987
  canUpdate: external_exports.boolean(),
16988
+ /** Present when the Adapter has a verified list and the available target is outside it. */
16989
+ latestVerifiedVersion: external_exports.string().min(1).max(128).optional(),
16990
+ /** Update preflight stopped before running the installer; latestVersion needs confirmation. */
16991
+ confirmationRequired: external_exports.literal(true).optional(),
16970
16992
  /** Defaults to CLI; some Harnesses ship only inside a desktop application. */
16971
16993
  versionKind: external_exports.enum(["cli", "application"]).optional(),
16972
16994
  /** Official download opened by the user; does not imply an automatic installation. */
@@ -17293,6 +17315,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17293
17315
  status: updateStatusSchema.nullable()
17294
17316
  });
17295
17317
 
17318
+ // ../shared-contracts/dist/release-announcement.js
17319
+ var RELEASE_ANNOUNCEMENT_GET_METHOD = "codexhost/announcement/get";
17320
+ var RELEASE_ANNOUNCEMENT_ACKNOWLEDGE_METHOD = "codexhost/announcement/acknowledge";
17321
+ var RELEASE_ANNOUNCEMENT_MAX_THEMES = 12;
17322
+ var releaseAnnouncementThemeSchema = external_exports.strictObject({
17323
+ icon: external_exports.string().min(1).max(16).optional(),
17324
+ title: external_exports.string().min(1).max(120),
17325
+ body: external_exports.string().min(1).max(1200),
17326
+ contributors: external_exports.array(external_exports.string().min(1).max(39)).max(30)
17327
+ });
17328
+ var releaseAnnouncementContentSchema = external_exports.strictObject({
17329
+ summary: external_exports.string().min(1).max(600).optional(),
17330
+ themes: external_exports.array(releaseAnnouncementThemeSchema).min(1).max(RELEASE_ANNOUNCEMENT_MAX_THEMES)
17331
+ });
17332
+ var releaseAnnouncementSchema = external_exports.strictObject({
17333
+ version: updateSemanticVersionSchema,
17334
+ publishedAt: external_exports.iso.datetime(),
17335
+ url: external_exports.string().max(300).regex(/^https:\/\/github\.com\/BytePioneer-AI\/codex-host\/releases\/tag\/v[0-9A-Za-z.+-]+$/u),
17336
+ zh: releaseAnnouncementContentSchema.nullable(),
17337
+ en: releaseAnnouncementContentSchema.nullable()
17338
+ }).refine((value) => value.zh !== null || value.en !== null, {
17339
+ message: "an announcement needs at least one language"
17340
+ });
17341
+ var releaseAnnouncementGetParamsSchema = external_exports.strictObject({
17342
+ manual: external_exports.boolean().optional()
17343
+ });
17344
+ var releaseAnnouncementGetResultSchema = external_exports.strictObject({
17345
+ announcement: releaseAnnouncementSchema.nullable(),
17346
+ unread: external_exports.boolean()
17347
+ });
17348
+ var releaseAnnouncementAcknowledgeParamsSchema = external_exports.strictObject({
17349
+ version: updateSemanticVersionSchema
17350
+ });
17351
+
17296
17352
  // ../shared-contracts/dist/thread-watch-notice.js
17297
17353
  var THREAD_WATCH_NOTICE_OUTCOMES = [
17298
17354
  "completed",
@@ -17343,17 +17399,67 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17343
17399
 
17344
17400
  // ../shared-contracts/dist/remote-sessions.js
17345
17401
  var REMOTE_CONTROLLER_REQUEST_MAX_BYTES = 16 * 1024;
17346
- var identity = external_exports.string().min(1).max(1024);
17402
+ var REMOTE_IDENTITY_MAX_LENGTH = 1024;
17403
+ var identity = external_exports.string().min(1).max(REMOTE_IDENTITY_MAX_LENGTH);
17347
17404
  var target = { hostId: identity.regex(/^remote-(?:ssh(?:-|:)|control:)/u) };
17348
17405
  var thread = { ...target, threadId: identity };
17406
+ var text = external_exports.string().min(1).max(8e3);
17407
+ var input = { text, requestId: identity };
17408
+ var remoteDeliveryReplySchema = external_exports.discriminatedUnion("accepted", [
17409
+ external_exports.object({ accepted: external_exports.literal(true), startQueuedItemId: identity.optional() }),
17410
+ external_exports.object({
17411
+ accepted: external_exports.literal(false),
17412
+ code: external_exports.enum([
17413
+ "remote/queue-unavailable",
17414
+ "remote/steer-unavailable",
17415
+ "remote/turn-changed",
17416
+ "remote/send-rejected",
17417
+ "session/queue-item-not-found",
17418
+ "session/queue-item-starting"
17419
+ ]),
17420
+ message: external_exports.string()
17421
+ })
17422
+ ]);
17423
+ var remoteQueueSnapshotSchema = external_exports.discriminatedUnion("available", [
17424
+ external_exports.object({ available: external_exports.literal(false) }),
17425
+ external_exports.object({
17426
+ available: external_exports.literal(true),
17427
+ items: external_exports.array(external_exports.object({ id: identity, clientUserMessageId: identity, preview: external_exports.string().max(801) })).max(100)
17428
+ })
17429
+ ]);
17349
17430
  var remoteSessionOperationSchema = external_exports.discriminatedUnion("kind", [
17350
17431
  external_exports.strictObject({ kind: external_exports.literal("hosts") }),
17432
+ external_exports.strictObject({
17433
+ kind: external_exports.literal("create"),
17434
+ ...target,
17435
+ cwd: external_exports.string().min(1).max(8192),
17436
+ epoch: identity
17437
+ }),
17438
+ external_exports.strictObject({ kind: external_exports.literal("projectHarnesses"), ...target, epoch: identity }),
17439
+ external_exports.strictObject({
17440
+ kind: external_exports.literal("inspectHarness"),
17441
+ ...target,
17442
+ epoch: identity,
17443
+ cwd: external_exports.string().min(1).max(8192),
17444
+ harnessId: identity
17445
+ }),
17446
+ external_exports.strictObject({
17447
+ kind: external_exports.literal("startSelected"),
17448
+ ...target,
17449
+ epoch: identity,
17450
+ cwd: external_exports.string().min(1).max(8192),
17451
+ harnessId: identity,
17452
+ model: external_exports.string().min(1).max(4096),
17453
+ serviceTier: external_exports.enum(["priority", "ultrafast"]).optional(),
17454
+ reasoningEffort: identity.optional()
17455
+ }),
17351
17456
  external_exports.strictObject({ kind: external_exports.literal("status"), ...thread }),
17352
17457
  external_exports.strictObject({
17353
17458
  kind: external_exports.literal("list"),
17354
17459
  ...target,
17355
17460
  cursor: external_exports.string().nullable(),
17356
- archived: external_exports.boolean()
17461
+ archived: external_exports.boolean(),
17462
+ includeLoaded: external_exports.literal(true).optional()
17357
17463
  }),
17358
17464
  external_exports.strictObject({
17359
17465
  kind: external_exports.literal("read"),
@@ -17383,9 +17489,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
17383
17489
  kind: external_exports.literal("prompt"),
17384
17490
  ...thread,
17385
17491
  epoch: identity,
17386
- text: external_exports.string().min(1).max(8e3),
17492
+ text,
17387
17493
  requestId: identity.optional()
17388
17494
  }),
17495
+ external_exports.strictObject({ kind: external_exports.literal("queue"), ...thread, epoch: identity }),
17496
+ external_exports.strictObject({
17497
+ kind: external_exports.literal("delivery"),
17498
+ ...thread,
17499
+ epoch: identity,
17500
+ action: external_exports.discriminatedUnion("kind", [
17501
+ external_exports.strictObject({ kind: external_exports.literal("enqueue"), ...input }),
17502
+ external_exports.strictObject({ kind: external_exports.literal("steer"), ...input, turnId: identity }),
17503
+ external_exports.strictObject({ kind: external_exports.literal("remove"), itemId: identity }),
17504
+ external_exports.strictObject({
17505
+ kind: external_exports.literal("start"),
17506
+ itemId: identity,
17507
+ onlyIfHead: external_exports.literal(true).optional()
17508
+ })
17509
+ ])
17510
+ }),
17389
17511
  external_exports.strictObject({ kind: external_exports.literal("interrupt"), ...thread, epoch: identity, turnId: identity }),
17390
17512
  external_exports.strictObject({
17391
17513
  kind: external_exports.literal("rename"),
@@ -18080,6 +18202,33 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18080
18202
  icon.classList.add("codexhost-settings-icon");
18081
18203
  return icon;
18082
18204
  }
18205
+ var SVG_NAMESPACE = "http://www.w3.org/2000/svg";
18206
+ function createRendererSettingsBrandGlyph(size = 20) {
18207
+ const svg2 = document.createElementNS(SVG_NAMESPACE, "svg");
18208
+ svg2.setAttribute("viewBox", "12.8 12.2 40 40");
18209
+ svg2.setAttribute("width", String(size));
18210
+ svg2.setAttribute("height", String(size));
18211
+ svg2.setAttribute("aria-hidden", "true");
18212
+ svg2.setAttribute("focusable", "false");
18213
+ svg2.setAttribute("data-codexhost-mark", "ch-navigation");
18214
+ const ring = document.createElementNS(SVG_NAMESPACE, "path");
18215
+ ring.setAttribute("d", "M 44.55 23.97 A 14.35 14.35 0 1 0 44.55 40.43");
18216
+ ring.setAttribute("fill", "none");
18217
+ ring.setAttribute("stroke", "currentColor");
18218
+ ring.setAttribute("stroke-width", "3.2");
18219
+ ring.setAttribute("stroke-linecap", "round");
18220
+ const module = document.createElementNS(SVG_NAMESPACE, "rect");
18221
+ module.setAttribute("x", "27.6");
18222
+ module.setAttribute("y", "27");
18223
+ module.setAttribute("width", "10.4");
18224
+ module.setAttribute("height", "10.4");
18225
+ module.setAttribute("rx", "2.4");
18226
+ module.setAttribute("fill", "currentColor");
18227
+ module.setAttribute("stroke", "none");
18228
+ svg2.append(ring, module);
18229
+ svg2.classList.add("codexhost-settings-icon");
18230
+ return svg2;
18231
+ }
18083
18232
 
18084
18233
  // src/settings/release-notes.ts
18085
18234
  var HEADING_PATTERN = /^(#{1,6})[ \t]+(.+?)\s*$/u;
@@ -18229,11 +18378,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18229
18378
  root.append(paragraph);
18230
18379
  return index;
18231
18380
  }
18232
- function appendInline(document2, parent, text) {
18381
+ function appendInline(document2, parent, text2) {
18233
18382
  let lastIndex = 0;
18234
- for (const match of text.matchAll(INLINE_PATTERN)) {
18383
+ for (const match of text2.matchAll(INLINE_PATTERN)) {
18235
18384
  const index = match.index ?? 0;
18236
- if (index > lastIndex) parent.append(text.slice(lastIndex, index));
18385
+ if (index > lastIndex) parent.append(text2.slice(lastIndex, index));
18237
18386
  if (match[2] !== void 0) {
18238
18387
  const code = document2.createElement("code");
18239
18388
  code.textContent = match[2];
@@ -18257,7 +18406,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18257
18406
  }
18258
18407
  lastIndex = index + match[0].length;
18259
18408
  }
18260
- if (lastIndex < text.length) parent.append(text.slice(lastIndex));
18409
+ if (lastIndex < text2.length) parent.append(text2.slice(lastIndex));
18261
18410
  }
18262
18411
  function isSafeLink(href) {
18263
18412
  try {
@@ -18466,9 +18615,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18466
18615
  }
18467
18616
  function createAgentGroupPreferenceStore(storage = safeLocalStorage()) {
18468
18617
  let entries = [];
18469
- const normalize = (input) => {
18618
+ const normalize = (input2) => {
18470
18619
  const seen = /* @__PURE__ */ new Set();
18471
- const result = input.filter((entry) => {
18620
+ const result = input2.filter((entry) => {
18472
18621
  if (seen.has(entry.agent)) return false;
18473
18622
  seen.add(entry.agent);
18474
18623
  return true;
@@ -18509,8 +18658,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18509
18658
  const notify3 = () => {
18510
18659
  for (const listener of [...listeners]) listener();
18511
18660
  };
18512
- const replace = (input) => {
18513
- const next = normalize(input);
18661
+ const replace = (input2) => {
18662
+ const next = normalize(input2);
18514
18663
  if (JSON.stringify(next) === JSON.stringify(entries)) return;
18515
18664
  entries = next;
18516
18665
  notify3();
@@ -18649,10 +18798,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
18649
18798
  const installation = client.installation?.bind(client);
18650
18799
  return {
18651
18800
  ...installation ? {
18652
- installation: async (hostId2, agent, action) => {
18801
+ installation: async (hostId2, agent, action, confirmedVersion) => {
18653
18802
  if (hostId2 !== "local")
18654
18803
  throw new Error("Web console installation only supports the local Host");
18655
- return installation({ harnessId: harnessIdSchema.parse(agent), action });
18804
+ return installation({
18805
+ harnessId: harnessIdSchema.parse(agent),
18806
+ action,
18807
+ ...confirmedVersion === void 0 ? {} : { confirmedVersion }
18808
+ });
18656
18809
  }
18657
18810
  } : {},
18658
18811
  snapshot() {
@@ -20337,7 +20490,7 @@ th[aria-sort] .console-usage-sort__mark {
20337
20490
  );
20338
20491
  const row = h(document2, "div", { className: "console-harness" }, identity2);
20339
20492
  if (harness2.launchCommand) {
20340
- const input = h(document2, "input", {
20493
+ const input2 = h(document2, "input", {
20341
20494
  type: "text",
20342
20495
  className: "console-input",
20343
20496
  placeholder: messages.installPathAuto,
@@ -20361,8 +20514,8 @@ th[aria-sort] .console-usage-sort__mark {
20361
20514
  document2,
20362
20515
  "div",
20363
20516
  { className: "console-harness__path" },
20364
- input,
20365
- button(document2, messages.save, () => submit(input.value.trim() || null)),
20517
+ input2,
20518
+ button(document2, messages.save, () => submit(input2.value.trim() || null)),
20366
20519
  harness2.launchPath || harness2.launchPathError ? button(document2, messages.useAutomatic, () => submit(null)) : null
20367
20520
  )
20368
20521
  );
@@ -21086,9 +21239,9 @@ th[aria-sort] .console-usage-sort__mark {
21086
21239
 
21087
21240
  // src/console/remote-connections.ts
21088
21241
  function createConsoleRemoteConnections(manager) {
21089
- const request = (input, signal) => manager.sendRequest(
21242
+ const request = (input2, signal) => manager.sendRequest(
21090
21243
  CONSOLE_REMOTE_CONNECTIONS_METHOD,
21091
- remoteConnectionsRequestSchema.parse(input),
21244
+ remoteConnectionsRequestSchema.parse(input2),
21092
21245
  signal
21093
21246
  );
21094
21247
  return {
@@ -21139,8 +21292,8 @@ th[aria-sort] .console-usage-sort__mark {
21139
21292
  }
21140
21293
 
21141
21294
  // src/renderer-installation-client.ts
21142
- async function runRendererInstallation(send, input) {
21143
- const params = harnessInstallationParamsSchema.parse(input);
21295
+ async function runRendererInstallation(send, input2) {
21296
+ const params = harnessInstallationParamsSchema.parse(input2);
21144
21297
  const options = { priority: "background", timeoutMs: 15e3 };
21145
21298
  let task = harnessInstallationTaskSchema.parse(
21146
21299
  await send(HARNESS_INSTALLATION_START_METHOD, params, options)
@@ -21232,14 +21385,14 @@ th[aria-sort] .console-usage-sort__mark {
21232
21385
  await request("codexhost/harness/session-import/sources", {})
21233
21386
  );
21234
21387
  },
21235
- async listHarnessSessions(input) {
21236
- const params = harnessSessionListParamsSchema.parse(input);
21388
+ async listHarnessSessions(input2) {
21389
+ const params = harnessSessionListParamsSchema.parse(input2);
21237
21390
  return harnessSessionListResultSchema.parse(
21238
21391
  await request("codexhost/harness/session-import/list", params)
21239
21392
  );
21240
21393
  },
21241
- async importHarnessSession(input) {
21242
- const params = harnessSessionImportParamsSchema.parse(input);
21394
+ async importHarnessSession(input2) {
21395
+ const params = harnessSessionImportParamsSchema.parse(input2);
21243
21396
  const key2 = JSON.stringify([params.harnessId, params.nativeSessionId]);
21244
21397
  const existing = pending.get(key2);
21245
21398
  if (existing) return existing;
@@ -21355,8 +21508,8 @@ th[aria-sort] .console-usage-sort__mark {
21355
21508
  if (subscriptionId2) unwatch(subscriptionId2);
21356
21509
  };
21357
21510
  };
21358
- const inspectHarness = async (input, options) => {
21359
- const params = harnessInspectParamsSchema.parse(input);
21511
+ const inspectHarness = async (input2, options) => {
21512
+ const params = harnessInspectParamsSchema.parse(input2);
21360
21513
  let result;
21361
21514
  try {
21362
21515
  result = await manager.sendRequest(HARNESS_INSPECT_METHOD, params, options);
@@ -21369,38 +21522,38 @@ th[aria-sort] .console-usage-sort__mark {
21369
21522
  }
21370
21523
  return harnessInspectionSchema.parse(result);
21371
21524
  };
21372
- const inspectHarnessCommands = async (input) => {
21373
- const params = harnessCommandsInspectParamsSchema.parse(input);
21525
+ const inspectHarnessCommands = async (input2) => {
21526
+ const params = harnessCommandsInspectParamsSchema.parse(input2);
21374
21527
  const result = await manager.sendRequest(HARNESS_COMMANDS_INSPECT_METHOD, params);
21375
21528
  return harnessCommandCatalogSchema.parse(result);
21376
21529
  };
21377
- const inspectThreadCommands = async (input) => {
21378
- const params = threadCommandsInspectParamsSchema.parse(input);
21530
+ const inspectThreadCommands = async (input2) => {
21531
+ const params = threadCommandsInspectParamsSchema.parse(input2);
21379
21532
  const result = await manager.sendRequest(THREAD_COMMANDS_INSPECT_METHOD, params);
21380
21533
  return harnessCommandCatalogSchema.parse(result);
21381
21534
  };
21382
- const executeThreadCommand = async (input) => {
21383
- const params = threadCommandExecuteParamsSchema.parse(input);
21535
+ const executeThreadCommand = async (input2) => {
21536
+ const params = threadCommandExecuteParamsSchema.parse(input2);
21384
21537
  const result = await manager.sendRequest(THREAD_COMMAND_EXECUTE_METHOD, params);
21385
21538
  return threadCommandExecuteResultSchema.parse(result);
21386
21539
  };
21387
- const inspectThreadUsage = async (input) => {
21388
- const params = threadUsageInspectionParamsSchema.parse(input);
21540
+ const inspectThreadUsage = async (input2) => {
21541
+ const params = threadUsageInspectionParamsSchema.parse(input2);
21389
21542
  const result = await manager.sendRequest(THREAD_USAGE_INSPECT_METHOD, params);
21390
21543
  return threadUsageInspectionSchema.parse(result);
21391
21544
  };
21392
- const selectThreadModel = async (input) => {
21393
- const params = threadModelSelectParamsSchema.parse(input);
21545
+ const selectThreadModel = async (input2) => {
21546
+ const params = threadModelSelectParamsSchema.parse(input2);
21394
21547
  const result = await manager.sendRequest(THREAD_MODEL_SELECT_METHOD, params);
21395
21548
  return harnessModelSelectionStateSchema.parse(result);
21396
21549
  };
21397
- const selectThreadThinking = async (input) => {
21398
- const params = threadThinkingSelectParamsSchema.parse(input);
21550
+ const selectThreadThinking = async (input2) => {
21551
+ const params = threadThinkingSelectParamsSchema.parse(input2);
21399
21552
  const result = await manager.sendRequest(THREAD_THINKING_SELECT_METHOD, params);
21400
21553
  return harnessModelSelectionStateSchema.parse(result);
21401
21554
  };
21402
- const selectThreadPermissionMode = async (input) => {
21403
- const params = threadPermissionModeSelectParamsSchema.parse(input);
21555
+ const selectThreadPermissionMode = async (input2) => {
21556
+ const params = threadPermissionModeSelectParamsSchema.parse(input2);
21404
21557
  const result = await manager.sendRequest(THREAD_PERMISSION_MODE_SELECT_METHOD, params);
21405
21558
  return harnessConfigurationStateSchema.parse(result);
21406
21559
  };
@@ -21413,11 +21566,11 @@ th[aria-sort] .console-usage-sort__mark {
21413
21566
  )
21414
21567
  );
21415
21568
  },
21416
- async patchHarnessPreferences(input) {
21569
+ async patchHarnessPreferences(input2) {
21417
21570
  return harnessPreferenceSnapshotSchema.parse(
21418
21571
  await manager.sendRequest(
21419
21572
  HARNESS_PREFERENCES_PATCH_METHOD,
21420
- harnessPreferencePatchSchema.parse(input)
21573
+ harnessPreferencePatchSchema.parse(input2)
21421
21574
  )
21422
21575
  );
21423
21576
  },
@@ -21433,8 +21586,8 @@ th[aria-sort] .console-usage-sort__mark {
21433
21586
  ) ?? (() => {
21434
21587
  });
21435
21588
  },
21436
- async installation(input) {
21437
- return runRendererInstallation(manager.sendRequest, input);
21589
+ async installation(input2) {
21590
+ return runRendererInstallation(manager.sendRequest, input2);
21438
21591
  },
21439
21592
  async getHarnessDisplayCapabilities() {
21440
21593
  if (!notificationTarget(source)) return { events: false };
@@ -21454,24 +21607,24 @@ th[aria-sort] .console-usage-sort__mark {
21454
21607
  await manager.sendRequest(HARNESS_DISPLAY_GET_METHOD, {})
21455
21608
  );
21456
21609
  },
21457
- async setHarnessDisplaySettings(input) {
21610
+ async setHarnessDisplaySettings(input2) {
21458
21611
  return harnessDisplaySettingsSchema.parse(
21459
- await manager.sendRequest(HARNESS_DISPLAY_SET_METHOD, input)
21612
+ await manager.sendRequest(HARNESS_DISPLAY_SET_METHOD, input2)
21460
21613
  );
21461
21614
  },
21462
- async getHarnessLaunchSettings(input) {
21615
+ async getHarnessLaunchSettings(input2) {
21463
21616
  return harnessLaunchSettingsSchema.parse(
21464
21617
  await manager.sendRequest(
21465
21618
  HARNESS_LAUNCH_SETTINGS_GET_METHOD,
21466
- harnessLaunchSettingsGetSchema.parse(input)
21619
+ harnessLaunchSettingsGetSchema.parse(input2)
21467
21620
  )
21468
21621
  );
21469
21622
  },
21470
- async setHarnessLaunchSettings(input) {
21623
+ async setHarnessLaunchSettings(input2) {
21471
21624
  return harnessLaunchSettingsSchema.parse(
21472
21625
  await manager.sendRequest(
21473
21626
  HARNESS_LAUNCH_SETTINGS_SET_METHOD,
21474
- harnessLaunchSettingsSetSchema.parse(input)
21627
+ harnessLaunchSettingsSetSchema.parse(input2)
21475
21628
  )
21476
21629
  );
21477
21630
  },
@@ -21487,8 +21640,8 @@ th[aria-sort] .console-usage-sort__mark {
21487
21640
  ...createRendererSessionImportClient(
21488
21641
  async (method, params) => manager.sendRequest(method, params)
21489
21642
  ),
21490
- async forkThread(input) {
21491
- const params = externalThreadForkParamsSchema.parse(input);
21643
+ async forkThread(input2) {
21644
+ const params = externalThreadForkParamsSchema.parse(input2);
21492
21645
  const result = await manager.sendRequest(THREAD_FORK_METHOD, params);
21493
21646
  return externalThreadForkResultSchema.parse(result);
21494
21647
  },
@@ -21511,13 +21664,13 @@ th[aria-sort] .console-usage-sort__mark {
21511
21664
  await manager.sendRequest(HARNESS_PLUGIN_LIST_METHOD, {})
21512
21665
  );
21513
21666
  },
21514
- async openHarnessWebUi(input) {
21515
- const params = harnessWebUiOpenParamsSchema.parse(input);
21667
+ async openHarnessWebUi(input2) {
21668
+ const params = harnessWebUiOpenParamsSchema.parse(input2);
21516
21669
  const result = await manager.sendRequest(HARNESS_WEB_UI_OPEN_METHOD, params);
21517
21670
  harnessWebUiOpenResultSchema.parse(result);
21518
21671
  },
21519
- async inspectThread(input) {
21520
- const params = threadInspectionParamsSchema.parse(input);
21672
+ async inspectThread(input2) {
21673
+ const params = threadInspectionParamsSchema.parse(input2);
21521
21674
  let result;
21522
21675
  try {
21523
21676
  result = await manager.sendRequest(THREAD_INSPECT_METHOD, params);
@@ -21531,8 +21684,8 @@ th[aria-sort] .console-usage-sort__mark {
21531
21684
  inspectHarnessCommands,
21532
21685
  inspectThreadCommands,
21533
21686
  executeThreadCommand,
21534
- async listThreadOwnership(input) {
21535
- const params = threadOwnershipListParamsSchema.parse(input);
21687
+ async listThreadOwnership(input2) {
21688
+ const params = threadOwnershipListParamsSchema.parse(input2);
21536
21689
  const value = await manager.sendRequest(THREAD_OWNERSHIP_LIST_METHOD, params);
21537
21690
  const result = threadOwnershipListResultSchema.parse(value);
21538
21691
  if (result.threads.length !== params.threadIds.length || result.threads.some((thread2, index) => thread2.threadId !== params.threadIds[index])) {
@@ -21570,13 +21723,13 @@ th[aria-sort] .console-usage-sort__mark {
21570
21723
  selectThreadModel,
21571
21724
  selectThreadThinking,
21572
21725
  selectThreadPermissionMode,
21573
- async setupSsh(input) {
21726
+ async setupSsh(input2) {
21574
21727
  return remoteSshSetupResultSchema.parse(
21575
- await manager.sendRequest(REMOTE_SSH_SETUP_METHOD, remoteSshSetupParamsSchema.parse(input))
21728
+ await manager.sendRequest(REMOTE_SSH_SETUP_METHOD, remoteSshSetupParamsSchema.parse(input2))
21576
21729
  );
21577
21730
  },
21578
- async readDelegationThread(input) {
21579
- return source.sendRequest(DELEGATION_READ_METHOD, delegationReadParamsSchema.parse(input));
21731
+ async readDelegationThread(input2) {
21732
+ return source.sendRequest(DELEGATION_READ_METHOD, delegationReadParamsSchema.parse(input2));
21580
21733
  },
21581
21734
  async runtimeStatus() {
21582
21735
  try {
@@ -21609,84 +21762,84 @@ th[aria-sort] .console-usage-sort__mark {
21609
21762
  extensionListeners.delete(listener);
21610
21763
  };
21611
21764
  },
21612
- async listHostExtensionCatalog(input = {}) {
21765
+ async listHostExtensionCatalog(input2 = {}) {
21613
21766
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.catalog];
21614
21767
  return schema.result.parse(
21615
- await manager.sendRequest(HOST_EXTENSIONS_RPC.catalog, schema.params.parse(input))
21768
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.catalog, schema.params.parse(input2))
21616
21769
  );
21617
21770
  },
21618
- async installHostExtension(input) {
21771
+ async installHostExtension(input2) {
21619
21772
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.install];
21620
21773
  return extensionsChanged(
21621
21774
  schema.result.parse(
21622
- await manager.sendRequest(HOST_EXTENSIONS_RPC.install, schema.params.parse(input))
21775
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.install, schema.params.parse(input2))
21623
21776
  )
21624
21777
  );
21625
21778
  },
21626
- async updateHostExtension(input) {
21779
+ async updateHostExtension(input2) {
21627
21780
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.update];
21628
21781
  return extensionsChanged(
21629
21782
  schema.result.parse(
21630
- await manager.sendRequest(HOST_EXTENSIONS_RPC.update, schema.params.parse(input))
21783
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.update, schema.params.parse(input2))
21631
21784
  )
21632
21785
  );
21633
21786
  },
21634
- async enableHostExtension(input) {
21787
+ async enableHostExtension(input2) {
21635
21788
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.enable];
21636
21789
  return extensionsChanged(
21637
21790
  schema.result.parse(
21638
- await manager.sendRequest(HOST_EXTENSIONS_RPC.enable, schema.params.parse(input))
21791
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.enable, schema.params.parse(input2))
21639
21792
  )
21640
21793
  );
21641
21794
  },
21642
- async disableHostExtension(input) {
21795
+ async disableHostExtension(input2) {
21643
21796
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.disable];
21644
21797
  return extensionsChanged(
21645
21798
  schema.result.parse(
21646
- await manager.sendRequest(HOST_EXTENSIONS_RPC.disable, schema.params.parse(input))
21799
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.disable, schema.params.parse(input2))
21647
21800
  )
21648
21801
  );
21649
21802
  },
21650
- async uninstallHostExtension(input) {
21803
+ async uninstallHostExtension(input2) {
21651
21804
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.uninstall];
21652
21805
  return extensionsChanged(
21653
21806
  schema.result.parse(
21654
- await manager.sendRequest(HOST_EXTENSIONS_RPC.uninstall, schema.params.parse(input))
21807
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.uninstall, schema.params.parse(input2))
21655
21808
  )
21656
21809
  );
21657
21810
  },
21658
- async recoverHostExtensions(input = {}) {
21811
+ async recoverHostExtensions(input2 = {}) {
21659
21812
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.recover];
21660
21813
  return extensionsChanged(
21661
21814
  schema.result.parse(
21662
- await manager.sendRequest(HOST_EXTENSIONS_RPC.recover, schema.params.parse(input))
21815
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.recover, schema.params.parse(input2))
21663
21816
  )
21664
21817
  );
21665
21818
  },
21666
- async readHostExtensionAsset(input) {
21819
+ async readHostExtensionAsset(input2) {
21667
21820
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.asset];
21668
21821
  return schema.result.parse(
21669
- await manager.sendRequest(HOST_EXTENSIONS_RPC.asset, schema.params.parse(input))
21822
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.asset, schema.params.parse(input2))
21670
21823
  );
21671
21824
  },
21672
- async getHostExtensionSettings(input) {
21825
+ async getHostExtensionSettings(input2) {
21673
21826
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.settingsGet];
21674
21827
  return schema.result.parse(
21675
- await manager.sendRequest(HOST_EXTENSIONS_RPC.settingsGet, schema.params.parse(input))
21828
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.settingsGet, schema.params.parse(input2))
21676
21829
  );
21677
21830
  },
21678
- async setHostExtensionSettings(input) {
21831
+ async setHostExtensionSettings(input2) {
21679
21832
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.settingsSet];
21680
21833
  return extensionsChanged(
21681
21834
  schema.result.parse(
21682
- await manager.sendRequest(HOST_EXTENSIONS_RPC.settingsSet, schema.params.parse(input))
21835
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.settingsSet, schema.params.parse(input2))
21683
21836
  )
21684
21837
  );
21685
21838
  },
21686
- async invokeHostExtensionBackend(input) {
21839
+ async invokeHostExtensionBackend(input2) {
21687
21840
  const schema = hostExtensionsRpcSchemas[HOST_EXTENSIONS_RPC.backendInvoke];
21688
21841
  return schema.result.parse(
21689
- await manager.sendRequest(HOST_EXTENSIONS_RPC.backendInvoke, schema.params.parse(input))
21842
+ await manager.sendRequest(HOST_EXTENSIONS_RPC.backendInvoke, schema.params.parse(input2))
21690
21843
  );
21691
21844
  },
21692
21845
  async checkUpdate() {
@@ -21710,6 +21863,15 @@ th[aria-sort] .console-usage-sort__mark {
21710
21863
  );
21711
21864
  return updateStatusResultSchema.parse(result);
21712
21865
  },
21866
+ async getReleaseAnnouncement(input2 = {}) {
21867
+ const params = releaseAnnouncementGetParamsSchema.parse(input2);
21868
+ const result = await manager.sendRequest(RELEASE_ANNOUNCEMENT_GET_METHOD, params);
21869
+ return releaseAnnouncementGetResultSchema.parse(result);
21870
+ },
21871
+ async acknowledgeReleaseAnnouncement(input2) {
21872
+ const params = releaseAnnouncementAcknowledgeParamsSchema.parse(input2);
21873
+ await manager.sendRequest(RELEASE_ANNOUNCEMENT_ACKNOWLEDGE_METHOD, params);
21874
+ },
21713
21875
  async openWeb() {
21714
21876
  const result = await manager.sendRequest(WEB_OPEN_METHOD, webOpenParamsSchema.parse({}));
21715
21877
  return webOpenResultSchema.parse(result);
@@ -21721,10 +21883,10 @@ th[aria-sort] .console-usage-sort__mark {
21721
21883
  );
21722
21884
  return consoleOpenResultSchema.parse(result);
21723
21885
  },
21724
- async inspectCodexAccountUsage(input) {
21886
+ async inspectCodexAccountUsage(input2) {
21725
21887
  const result = await manager.sendRequest(
21726
21888
  "codexhost/account/usage/inspect",
21727
- codexAccountUsageParamsSchema.parse(input)
21889
+ codexAccountUsageParamsSchema.parse(input2)
21728
21890
  );
21729
21891
  return codexAccountUsageResultSchema.parse(result);
21730
21892
  },
@@ -21733,11 +21895,11 @@ th[aria-sort] .console-usage-sort__mark {
21733
21895
  await manager.sendRequest(HARNESS_ACCOUNT_SOURCES_METHOD, {})
21734
21896
  );
21735
21897
  },
21736
- async inspectHarnessAccount(input) {
21898
+ async inspectHarnessAccount(input2) {
21737
21899
  return harnessAccountInspectResultSchema.parse(
21738
21900
  await manager.sendRequest(
21739
21901
  HARNESS_ACCOUNT_INSPECT_METHOD,
21740
- harnessAccountInspectParamsSchema.parse(input)
21902
+ harnessAccountInspectParamsSchema.parse(input2)
21741
21903
  )
21742
21904
  );
21743
21905
  },
@@ -21749,11 +21911,11 @@ th[aria-sort] .console-usage-sort__mark {
21749
21911
  )
21750
21912
  );
21751
21913
  },
21752
- async listHarnessAccounts(input = {}) {
21914
+ async listHarnessAccounts(input2 = {}) {
21753
21915
  return harnessAccountListResultSchema.parse(
21754
21916
  await manager.sendRequest(
21755
21917
  "codexhost/harness/accounts/list",
21756
- harnessAccountListParamsSchema.parse(input)
21918
+ harnessAccountListParamsSchema.parse(input2)
21757
21919
  )
21758
21920
  );
21759
21921
  },
@@ -22236,35 +22398,35 @@ th[aria-sort] .console-usage-sort__mark {
22236
22398
  }
22237
22399
  return new QrSegment(MODE_NUMERIC, digits.length, bb);
22238
22400
  }
22239
- function makeAlphanumeric(text) {
22240
- if (!isAlphanumeric(text))
22401
+ function makeAlphanumeric(text2) {
22402
+ if (!isAlphanumeric(text2))
22241
22403
  throw new RangeError("String contains unencodable characters in alphanumeric mode");
22242
22404
  const bb = [];
22243
22405
  let i;
22244
- for (i = 0; i + 2 <= text.length; i += 2) {
22245
- let temp = ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)) * 45;
22246
- temp += ALPHANUMERIC_CHARSET.indexOf(text.charAt(i + 1));
22406
+ for (i = 0; i + 2 <= text2.length; i += 2) {
22407
+ let temp = ALPHANUMERIC_CHARSET.indexOf(text2.charAt(i)) * 45;
22408
+ temp += ALPHANUMERIC_CHARSET.indexOf(text2.charAt(i + 1));
22247
22409
  appendBits(temp, 11, bb);
22248
22410
  }
22249
- if (i < text.length)
22250
- appendBits(ALPHANUMERIC_CHARSET.indexOf(text.charAt(i)), 6, bb);
22251
- return new QrSegment(MODE_ALPHANUMERIC, text.length, bb);
22411
+ if (i < text2.length)
22412
+ appendBits(ALPHANUMERIC_CHARSET.indexOf(text2.charAt(i)), 6, bb);
22413
+ return new QrSegment(MODE_ALPHANUMERIC, text2.length, bb);
22252
22414
  }
22253
- function makeSegments(text) {
22254
- if (text === "")
22415
+ function makeSegments(text2) {
22416
+ if (text2 === "")
22255
22417
  return [];
22256
- else if (isNumeric(text))
22257
- return [makeNumeric(text)];
22258
- else if (isAlphanumeric(text))
22259
- return [makeAlphanumeric(text)];
22418
+ else if (isNumeric(text2))
22419
+ return [makeNumeric(text2)];
22420
+ else if (isAlphanumeric(text2))
22421
+ return [makeAlphanumeric(text2)];
22260
22422
  else
22261
- return [makeBytes(toUtf8ByteArray(text))];
22423
+ return [makeBytes(toUtf8ByteArray(text2))];
22262
22424
  }
22263
- function isNumeric(text) {
22264
- return NUMERIC_REGEX.test(text);
22425
+ function isNumeric(text2) {
22426
+ return NUMERIC_REGEX.test(text2);
22265
22427
  }
22266
- function isAlphanumeric(text) {
22267
- return ALPHANUMERIC_REGEX.test(text);
22428
+ function isAlphanumeric(text2) {
22429
+ return ALPHANUMERIC_REGEX.test(text2);
22268
22430
  }
22269
22431
  function getTotalBits(segs, version2) {
22270
22432
  let result = 0;
@@ -22409,34 +22571,34 @@ th[aria-sort] .console-usage-sort__mark {
22409
22571
  options?.onEncoded?.(result);
22410
22572
  return result;
22411
22573
  }
22412
- function addBorder(input, border = 1) {
22574
+ function addBorder(input2, border = 1) {
22413
22575
  if (!border)
22414
- return input;
22415
- const { size } = input;
22576
+ return input2;
22577
+ const { size } = input2;
22416
22578
  const newSize = size + border * 2;
22417
- input.size = newSize;
22418
- input.data.forEach((row) => {
22579
+ input2.size = newSize;
22580
+ input2.data.forEach((row) => {
22419
22581
  for (let i = 0; i < border; i++) {
22420
22582
  row.unshift(false);
22421
22583
  row.push(false);
22422
22584
  }
22423
22585
  });
22424
22586
  for (let i = 0; i < border; i++) {
22425
- input.data.unshift(Array.from({ length: newSize }, (_) => false));
22426
- input.data.push(Array.from({ length: newSize }, (_) => false));
22587
+ input2.data.unshift(Array.from({ length: newSize }, (_) => false));
22588
+ input2.data.push(Array.from({ length: newSize }, (_) => false));
22427
22589
  }
22428
22590
  const b = QrCodeDataType.Border;
22429
- input.types.forEach((row) => {
22591
+ input2.types.forEach((row) => {
22430
22592
  for (let i = 0; i < border; i++) {
22431
22593
  row.unshift(b);
22432
22594
  row.push(b);
22433
22595
  }
22434
22596
  });
22435
22597
  for (let i = 0; i < border; i++) {
22436
- input.types.unshift(Array.from({ length: newSize }, (_) => b));
22437
- input.types.push(Array.from({ length: newSize }, (_) => b));
22598
+ input2.types.unshift(Array.from({ length: newSize }, (_) => b));
22599
+ input2.types.push(Array.from({ length: newSize }, (_) => b));
22438
22600
  }
22439
- return input;
22601
+ return input2;
22440
22602
  }
22441
22603
 
22442
22604
  // src/console/pages/connect-devices.ts
@@ -22569,13 +22731,13 @@ th[aria-sort] .console-usage-sort__mark {
22569
22731
  if (!state || signal.aborted) return;
22570
22732
  const data = state;
22571
22733
  const field2 = (label, value, copyLabel = t("\u590D\u5236", "Copy")) => {
22572
- const input = h(document2, "input", {
22734
+ const input2 = h(document2, "input", {
22573
22735
  className: "console-input",
22574
22736
  "aria-label": label,
22575
22737
  readonly: true,
22576
22738
  value
22577
22739
  });
22578
- input.addEventListener("focus", () => input.select());
22740
+ input2.addEventListener("focus", () => input2.select());
22579
22741
  const copy = button(document2, copyLabel, () => {
22580
22742
  void navigator.clipboard.writeText(value).then(
22581
22743
  () => {
@@ -22591,7 +22753,7 @@ th[aria-sort] .console-usage-sort__mark {
22591
22753
  "div",
22592
22754
  { className: "console-connect-field" },
22593
22755
  h(document2, "p", {}, label),
22594
- h(document2, "div", { className: "console-actions" }, input, copy)
22756
+ h(document2, "div", { className: "console-actions" }, input2, copy)
22595
22757
  );
22596
22758
  };
22597
22759
  const toggle = (label, enabled, disabled, onChange) => {
@@ -24823,9 +24985,16 @@ th[aria-sort] .console-usage-sort__mark {
24823
24985
  harnessUpdateAllProgress: "Updating",
24824
24986
  harnessUpdateAllDescription: "Update all eligible Harnesses on the selected Host.",
24825
24987
  harnessUpdateAllResult: "Updated {succeeded}; failed {failed}.",
24988
+ harnessUpdateAllSkipped: "Skipped {skipped}.",
24989
+ harnessUpdateUnverifiedTitle: "Update to an unverified version?",
24990
+ harnessUpdateUnverifiedDetail: "{name} {target} has not been verified with this adapter. The latest verified version is {verified}.",
24991
+ harnessUpdateTargetChangedTitle: "Confirm the new update target",
24992
+ harnessUpdateTargetChangedDetail: "The update target changed to {name} {target}.",
24993
+ harnessUpdateSkip: "Skip this update",
24994
+ harnessUpdateAnyway: "Update anyway",
24826
24995
  harnessVersionUpdating: "Updating\u2026",
24827
24996
  harnessVersionUpToDate: "Up to date",
24828
- harnessVersionUpdated: "Update verified. New sessions will use the new version.",
24997
+ harnessVersionUpdated: "Update verified. New sessions that reuse a running Harness process may still use the old version until that process restarts.",
24829
24998
  harnessVersionFailed: "Could not complete the operation. Check the network connection or native installation.",
24830
24999
  harnessVersionUnsupported: "This Host or plugin does not support CLI version management.",
24831
25000
  harnessVersionManual: "Use the original installer to update this installation.",
@@ -24889,6 +25058,12 @@ th[aria-sort] .console-usage-sort__mark {
24889
25058
  updateCopyFailed: "Copy failed",
24890
25059
  updateDownloadFromReleases: "Download from GitHub Releases",
24891
25060
  updateDownloadWindowsInstaller: "Download Windows installer",
25061
+ updateViewAnnouncement: "View release announcement",
25062
+ releaseAnnouncement: Object.freeze({
25063
+ title: "Release announcement",
25064
+ acknowledge: "Got it",
25065
+ fullNotes: "View full release notes"
25066
+ }),
24892
25067
  updateStarCallout: "If CodexHost has helped you, please Star it on GitHub. It means a lot to us \u{1F449}",
24893
25068
  updateStarLink: "GitHub",
24894
25069
  aboutTagline: "Run Pi and other Harnesses in Codex Desktop",
@@ -25112,9 +25287,16 @@ th[aria-sort] .console-usage-sort__mark {
25112
25287
  harnessUpdateAllProgress: "\u66F4\u65B0\u4E2D",
25113
25288
  harnessUpdateAllDescription: "\u66F4\u65B0\u5F53\u524D Host \u4E0A\u652F\u6301\u81EA\u52A8\u66F4\u65B0\u4E14\u6709\u65B0\u7248\u672C\u7684 Harness\u3002",
25114
25289
  harnessUpdateAllResult: "\u5DF2\u66F4\u65B0 {succeeded} \u9879\uFF0C{failed} \u9879\u5931\u8D25\u3002",
25290
+ harnessUpdateAllSkipped: "\u5DF2\u8DF3\u8FC7 {skipped} \u9879\u3002",
25291
+ harnessUpdateUnverifiedTitle: "\u66F4\u65B0\u5230\u672A\u7ECF\u9A8C\u8BC1\u7684\u7248\u672C\uFF1F",
25292
+ harnessUpdateUnverifiedDetail: "\u5F53\u524D\u9002\u914D\u5668\u5C1A\u672A\u9A8C\u8BC1 {name} {target}\uFF0C\u6700\u65B0\u5DF2\u9A8C\u8BC1\u7248\u672C\u4E3A {verified}\u3002",
25293
+ harnessUpdateTargetChangedTitle: "\u786E\u8BA4\u65B0\u7684\u66F4\u65B0\u76EE\u6807",
25294
+ harnessUpdateTargetChangedDetail: "\u66F4\u65B0\u76EE\u6807\u5DF2\u53D8\u66F4\u4E3A {name} {target}\u3002",
25295
+ harnessUpdateSkip: "\u8DF3\u8FC7\u6B64\u9879",
25296
+ harnessUpdateAnyway: "\u7EE7\u7EED\u66F4\u65B0",
25115
25297
  harnessVersionUpdating: "\u6B63\u5728\u66F4\u65B0\u2026",
25116
25298
  harnessVersionUpToDate: "\u5DF2\u662F\u6700\u65B0",
25117
- harnessVersionUpdated: "\u5DF2\u786E\u8BA4\u66F4\u65B0\u6210\u529F\uFF0C\u65B0\u4F1A\u8BDD\u5C06\u4F7F\u7528\u65B0\u7248\u672C\u3002",
25299
+ harnessVersionUpdated: "\u5DF2\u786E\u8BA4\u66F4\u65B0\u6210\u529F\u3002\u82E5\u65B0\u4F1A\u8BDD\u590D\u7528\u8FD0\u884C\u4E2D\u7684 Harness \u8FDB\u7A0B\uFF0C\u53EF\u80FD\u8981\u7B49\u8BE5\u8FDB\u7A0B\u91CD\u542F\u540E\u624D\u80FD\u4F7F\u7528\u65B0\u7248\u672C\u3002",
25118
25300
  harnessVersionFailed: "\u64CD\u4F5C\u672A\u5B8C\u6210\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8FDE\u63A5\u6216\u539F\u751F\u5B89\u88C5\u3002",
25119
25301
  harnessVersionUnsupported: "\u5F53\u524D Host \u6216\u63D2\u4EF6\u4E0D\u652F\u6301 CLI \u7248\u672C\u7BA1\u7406\u3002",
25120
25302
  harnessVersionManual: "\u8BF7\u4F7F\u7528\u539F\u5B89\u88C5\u65B9\u5F0F\u66F4\u65B0\u6B64 Harness\u3002",
@@ -25178,6 +25360,12 @@ th[aria-sort] .console-usage-sort__mark {
25178
25360
  updateCopyFailed: "\u590D\u5236\u5931\u8D25",
25179
25361
  updateDownloadFromReleases: "\u524D\u5F80 GitHub Releases \u4E0B\u8F7D",
25180
25362
  updateDownloadWindowsInstaller: "\u4E0B\u8F7D Windows \u5B89\u88C5\u5305",
25363
+ updateViewAnnouncement: "\u67E5\u770B\u672C\u7248\u516C\u544A",
25364
+ releaseAnnouncement: Object.freeze({
25365
+ title: "\u66F4\u65B0\u516C\u544A",
25366
+ acknowledge: "\u6211\u77E5\u9053\u4E86",
25367
+ fullNotes: "\u67E5\u770B\u5B8C\u6574\u66F4\u65B0\u8BF4\u660E"
25368
+ }),
25181
25369
  updateStarCallout: "\u5982\u679C CodexHost \u5E2E\u5230\u4E86\u4F60\uFF0C\u8BF7\u5728 GitHub \u70B9\u4E2A Star\uFF0C\u8FD9\u5BF9\u6211\u4EEC\u610F\u4E49\u91CD\u5927 \u{1F449}",
25182
25370
  updateStarLink: "GitHub",
25183
25371
  aboutTagline: "\u5728 Codex Desktop \u4E2D\u8FD0\u884C Pi \u548C\u5176\u4ED6 Harness",
@@ -25601,14 +25789,14 @@ th[aria-sort] .console-usage-sort__mark {
25601
25789
  }
25602
25790
  const price = {};
25603
25791
  for (const field2 of MODEL_PRICE_FIELDS) {
25604
- const text = draft.prices[field2].trim();
25605
- if (text === "") {
25792
+ const text2 = draft.prices[field2].trim();
25793
+ if (text2 === "") {
25606
25794
  if (field2 === "input" || field2 === "output")
25607
25795
  return { error: { kind: "priceRequired", field: field2 } };
25608
25796
  continue;
25609
25797
  }
25610
- const value = Number(text);
25611
- if (!DECIMAL.test(text) || !Number.isFinite(value)) {
25798
+ const value = Number(text2);
25799
+ if (!DECIMAL.test(text2) || !Number.isFinite(value)) {
25612
25800
  return { error: { kind: "priceInvalid", field: field2 } };
25613
25801
  }
25614
25802
  price[field2] = value;
@@ -25710,13 +25898,13 @@ th[aria-sort] .console-usage-sort__mark {
25710
25898
  model2.readOnly = true;
25711
25899
  const prices = Object.fromEntries(
25712
25900
  MODEL_PRICE_FIELDS.map((name) => {
25713
- const input = field2(
25901
+ const input2 = field2(
25714
25902
  messages.fields[name],
25715
25903
  draft.prices[name],
25716
25904
  name === "input" || name === "output" ? messages.required : messages.notSet
25717
25905
  );
25718
- input.inputMode = "decimal";
25719
- return [name, input];
25906
+ input2.inputMode = "decimal";
25907
+ return [name, input2];
25720
25908
  })
25721
25909
  );
25722
25910
  const error51 = h(document2, "p", { className: "console-model-price__error", role: "alert" });
@@ -25850,12 +26038,12 @@ th[aria-sort] .console-usage-sort__mark {
25850
26038
  }
25851
26039
  }
25852
26040
  }
25853
- const labelled = (label, input) => h(
26041
+ const labelled = (label, input2) => h(
25854
26042
  document2,
25855
26043
  "label",
25856
26044
  { className: "console-model-price__field" },
25857
26045
  h(document2, "span", { className: "console-muted" }, label),
25858
- input
26046
+ input2
25859
26047
  );
25860
26048
  const form = h(
25861
26049
  document2,
@@ -26258,8 +26446,8 @@ th[aria-sort] .console-usage-sort__mark {
26258
26446
  h(document2, "span", {}, value)
26259
26447
  );
26260
26448
  }
26261
- function download(document2, name, text, type) {
26262
- const url2 = URL.createObjectURL(new Blob([text], { type }));
26449
+ function download(document2, name, text2, type) {
26450
+ const url2 = URL.createObjectURL(new Blob([text2], { type }));
26263
26451
  const link = h(document2, "a", { href: url2, download: name });
26264
26452
  document2.body.append(link);
26265
26453
  link.click();
@@ -26625,14 +26813,14 @@ th[aria-sort] .console-usage-sort__mark {
26625
26813
  const value = JSON.parse(window.localStorage.getItem(VIEW_STORAGE_KEY) ?? "null");
26626
26814
  if (!value || typeof value !== "object") return {};
26627
26815
  const view = value;
26628
- const text = (name) => typeof view[name] === "string" ? view[name] : void 0;
26629
- const range = text("range");
26630
- const measure = text("measure");
26631
- const granularity = text("granularity");
26632
- const hostId2 = text("hostId");
26633
- const harness2 = text("harness");
26634
- const model2 = text("model");
26635
- const project2 = text("project");
26816
+ const text2 = (name) => typeof view[name] === "string" ? view[name] : void 0;
26817
+ const range = text2("range");
26818
+ const measure = text2("measure");
26819
+ const granularity = text2("granularity");
26820
+ const hostId2 = text2("hostId");
26821
+ const harness2 = text2("harness");
26822
+ const model2 = text2("model");
26823
+ const project2 = text2("project");
26636
26824
  const auto = Number(view.autoRefreshMs);
26637
26825
  return {
26638
26826
  ...range && USAGE_STATISTICS_RANGES.includes(range) ? { range } : {},
@@ -26669,8 +26857,8 @@ th[aria-sort] .console-usage-sort__mark {
26669
26857
  return totals2;
26670
26858
  }
26671
26859
  function csvCell(value) {
26672
- const text = String(value);
26673
- return /[",\n]/u.test(text) ? `"${text.replaceAll('"', '""')}"` : text;
26860
+ const text2 = String(value);
26861
+ return /[",\n]/u.test(text2) ? `"${text2.replaceAll('"', '""')}"` : text2;
26674
26862
  }
26675
26863
  function weekStart(date5) {
26676
26864
  const day = asDate(date5);
@@ -27796,10 +27984,10 @@ ${detail}` : ""}`
27796
27984
  "Invalid Codex connection state": "Codex \u8FD4\u56DE\u7684\u8FDE\u63A5\u72B6\u6001\u65E0\u6CD5\u8BC6\u522B"
27797
27985
  });
27798
27986
  function localizeRemoteFailure(message2, t) {
27799
- const text = message2.replace(/^Error:\s*/u, "");
27800
- const detail = text.indexOf(": ");
27801
- const chinese = REMOTE_FAILURE_CHINESE[text] ?? (detail > 0 ? REMOTE_FAILURE_CHINESE[text.slice(0, detail)] : void 0);
27802
- return chinese ? t(chinese, text) : text;
27987
+ const text2 = message2.replace(/^Error:\s*/u, "");
27988
+ const detail = text2.indexOf(": ");
27989
+ const chinese = REMOTE_FAILURE_CHINESE[text2] ?? (detail > 0 ? REMOTE_FAILURE_CHINESE[text2.slice(0, detail)] : void 0);
27990
+ return chinese ? t(chinese, text2) : text2;
27803
27991
  }
27804
27992
 
27805
27993
  // src/settings/remote-connections-card.ts
@@ -27811,10 +27999,10 @@ ${detail}` : ""}`
27811
27999
  const outdated = typeof error51 === "object" && error51 !== null && "code" in error51 && error51.code === -32601;
27812
28000
  return { outdated, message: remoteErrorMessage(error51) };
27813
28001
  }
27814
- function remoteElement(document2, tag, className = "", text = "") {
28002
+ function remoteElement(document2, tag, className = "", text2 = "") {
27815
28003
  const result = document2.createElement(tag);
27816
28004
  if (className) result.className = className;
27817
- if (text) result.textContent = text;
28005
+ if (text2) result.textContent = text2;
27818
28006
  return result;
27819
28007
  }
27820
28008
  function remoteInstallVersion(local) {
@@ -28022,12 +28210,12 @@ ${detail}` : ""}`
28022
28210
  }
28023
28211
  const service = remoteElement(document2, "div", "settings-remote-card__service");
28024
28212
  const copy = remoteElement(document2, "div", "settings-remote-card__service-copy");
28025
- const hint = (hintTone, text, live = false) => {
28213
+ const hint = (hintTone, text2, live = false) => {
28026
28214
  const line = remoteElement(document2, "p", "settings-remote-card__hint");
28027
28215
  line.dataset.tone = hintTone;
28028
28216
  if (hintTone === "progress")
28029
28217
  line.append(remoteElement(document2, "span", "settings-remote-spinner"));
28030
- line.append(text);
28218
+ line.append(text2);
28031
28219
  if (live) line.setAttribute("role", hintTone === "danger" ? "alert" : "status");
28032
28220
  return line;
28033
28221
  };
@@ -28035,7 +28223,7 @@ ${detail}` : ""}`
28035
28223
  copy.append(remoteElement(document2, "div", "settings-remote-card__service-title", summary.title));
28036
28224
  if (row.pending) copy.append(hint("progress", row.pending, true));
28037
28225
  else {
28038
- for (const [hintTone, text] of summary.hints) copy.append(hint(hintTone, text));
28226
+ for (const [hintTone, text2] of summary.hints) copy.append(hint(hintTone, text2));
28039
28227
  if (row.notice)
28040
28228
  copy.append(hint(row.notice.tone, localizeRemoteFailure(row.notice.text, t), true));
28041
28229
  }
@@ -28101,7 +28289,7 @@ ${detail}` : ""}`
28101
28289
  group.append(header, card);
28102
28290
  return { group, header, card };
28103
28291
  }
28104
- function createPreferenceItem(document2, input) {
28292
+ function createPreferenceItem(document2, input2) {
28105
28293
  const item = document2.createElement("div");
28106
28294
  item.className = "flex min-h-[60px] items-center justify-between gap-6 border-t border-settings-divider px-4 py-3 first:border-t-0";
28107
28295
  const copy = document2.createElement("div");
@@ -28109,15 +28297,15 @@ ${detail}` : ""}`
28109
28297
  const heading = document2.createElement("div");
28110
28298
  heading.className = "flex items-center gap-1.5";
28111
28299
  const title = document2.createElement("label");
28112
- title.htmlFor = input.controlId;
28300
+ title.htmlFor = input2.controlId;
28113
28301
  title.className = "cursor-pointer text-[13px] leading-5 font-medium text-settings-text";
28114
- title.textContent = input.title;
28302
+ title.textContent = input2.title;
28115
28303
  heading.append(title);
28116
- if (input.help) heading.append(createHelpTooltip(document2, input.help.label, input.help.lines));
28304
+ if (input2.help) heading.append(createHelpTooltip(document2, input2.help.label, input2.help.lines));
28117
28305
  const description = document2.createElement("div");
28118
28306
  description.id = preferenceId("preference-description");
28119
28307
  description.className = "text-xs leading-[18px] text-settings-muted data-[invalid=true]:text-settings-danger";
28120
- description.textContent = input.description;
28308
+ description.textContent = input2.description;
28121
28309
  copy.append(heading, description);
28122
28310
  item.append(copy);
28123
28311
  return { item, description };
@@ -28150,29 +28338,29 @@ ${detail}` : ""}`
28150
28338
  return wrapper;
28151
28339
  }
28152
28340
  function createPreferenceSwitch(document2, id2, describedBy) {
28153
- const input = document2.createElement("input");
28154
- input.type = "checkbox";
28155
- input.id = id2;
28156
- input.setAttribute("role", "switch");
28157
- input.setAttribute("aria-describedby", describedBy);
28158
- input.className = "relative m-0 h-5 w-9 shrink-0 cursor-pointer appearance-none rounded-full bg-settings-surface-hover ring-1 ring-settings-border transition-colors ring-inset before:absolute before:top-0.5 before:left-0.5 before:size-4 before:rounded-full before:bg-white before:shadow-[0_1px_2px_rgb(0_0_0/0.3)] before:transition-transform checked:bg-settings-focus checked:ring-transparent checked:before:translate-x-4 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-settings-focus";
28159
- return input;
28160
- }
28161
- function createNumberField(document2, input) {
28341
+ const input2 = document2.createElement("input");
28342
+ input2.type = "checkbox";
28343
+ input2.id = id2;
28344
+ input2.setAttribute("role", "switch");
28345
+ input2.setAttribute("aria-describedby", describedBy);
28346
+ input2.className = "relative m-0 h-5 w-9 shrink-0 cursor-pointer appearance-none rounded-full bg-settings-surface-hover ring-1 ring-settings-border transition-colors ring-inset before:absolute before:top-0.5 before:left-0.5 before:size-4 before:rounded-full before:bg-white before:shadow-[0_1px_2px_rgb(0_0_0/0.3)] before:transition-transform checked:bg-settings-focus checked:ring-transparent checked:before:translate-x-4 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-settings-focus";
28347
+ return input2;
28348
+ }
28349
+ function createNumberField(document2, input2) {
28162
28350
  const field2 = document2.createElement("div");
28163
28351
  field2.className = "flex h-8 shrink-0 items-center gap-1.5 rounded-md border border-settings-border bg-settings-surface px-2.5 transition-colors focus-within:border-settings-focus data-[invalid=true]:border-settings-danger";
28164
28352
  const control = document2.createElement("input");
28165
28353
  control.type = "number";
28166
- control.id = input.id;
28167
- control.min = String(input.min);
28168
- control.max = String(input.max);
28354
+ control.id = input2.id;
28355
+ control.min = String(input2.min);
28356
+ control.max = String(input2.max);
28169
28357
  control.step = "1";
28170
- control.setAttribute("aria-describedby", input.describedBy);
28358
+ control.setAttribute("aria-describedby", input2.describedBy);
28171
28359
  control.className = "w-14 border-0 bg-transparent p-0 text-right text-[13px] leading-5 text-settings-text tabular-nums outline-none";
28172
28360
  const unit = document2.createElement("span");
28173
28361
  unit.className = "text-xs text-settings-muted";
28174
28362
  unit.setAttribute("aria-hidden", "true");
28175
- unit.textContent = input.unit;
28363
+ unit.textContent = input2.unit;
28176
28364
  field2.append(control, unit);
28177
28365
  return { field: field2, control };
28178
28366
  }
@@ -28260,23 +28448,23 @@ ${detail}` : ""}`
28260
28448
  const document2 = options.container.ownerDocument;
28261
28449
  const field2 = (label, value, placeholder = "", hint = "") => {
28262
28450
  const wrapper = remoteElement(document2, "div", "settings-credential-dialog__field");
28263
- const input = remoteElement(document2, "input");
28264
- input.id = preferenceId("remote-field");
28265
- input.value = value;
28266
- input.placeholder = placeholder;
28267
- input.autocomplete = "off";
28268
- input.spellcheck = false;
28451
+ const input2 = remoteElement(document2, "input");
28452
+ input2.id = preferenceId("remote-field");
28453
+ input2.value = value;
28454
+ input2.placeholder = placeholder;
28455
+ input2.autocomplete = "off";
28456
+ input2.spellcheck = false;
28269
28457
  const caption = remoteElement(document2, "label", "", label);
28270
- caption.htmlFor = input.id;
28271
- wrapper.append(caption, input);
28458
+ caption.htmlFor = input2.id;
28459
+ wrapper.append(caption, input2);
28272
28460
  if (hint) {
28273
28461
  const description = remoteElement(document2, "small", "", hint);
28274
- description.id = `${input.id}-hint`;
28275
- input.setAttribute("aria-describedby", description.id);
28462
+ description.id = `${input2.id}-hint`;
28463
+ input2.setAttribute("aria-describedby", description.id);
28276
28464
  wrapper.append(description);
28277
28465
  }
28278
28466
  dialog.body.append(wrapper);
28279
- return input;
28467
+ return input2;
28280
28468
  };
28281
28469
  const name = field2(t("\u540D\u79F0", "Name"), previous?.displayName ?? "");
28282
28470
  name.required = true;
@@ -28433,7 +28621,7 @@ ${detail}` : ""}`
28433
28621
  mount({ content, signal }) {
28434
28622
  const document2 = content.ownerDocument;
28435
28623
  let disposed = false;
28436
- const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
28624
+ const el = (tag, className = "", text2 = "") => remoteElement(document2, tag, className, text2);
28437
28625
  const emptyPanel = (title, detail) => {
28438
28626
  const panel = el("div", "settings-remote__empty");
28439
28627
  const copy = el("div");
@@ -28933,7 +29121,7 @@ ${detail}` : ""}`
28933
29121
  icon: "mobile",
28934
29122
  mount({ content }) {
28935
29123
  const document2 = content.ownerDocument;
28936
- const el = (tag, className = "", text = "") => remoteElement(document2, tag, className, text);
29124
+ const el = (tag, className = "", text2 = "") => remoteElement(document2, tag, className, text2);
28937
29125
  const root = el("div", "settings-remote");
28938
29126
  const header = el("div", "settings-remote__header");
28939
29127
  const copy = el("div");
@@ -29351,13 +29539,21 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29351
29539
  if (signal.aborted || store.batches.get(hostId2)?.running) return;
29352
29540
  const targets = eligible(panels);
29353
29541
  if (!targets.length) return;
29354
- const batch = { running: true, total: targets.length, succeeded: 0, failed: 0 };
29542
+ const batch = {
29543
+ running: true,
29544
+ total: targets.length,
29545
+ succeeded: 0,
29546
+ failed: 0,
29547
+ skipped: 0
29548
+ };
29355
29549
  store.batches.set(hostId2, batch);
29356
29550
  notify3();
29357
29551
  await Promise.all(
29358
29552
  targets.map(async (panel) => {
29359
29553
  try {
29360
- if (await panel.update()) batch.succeeded++;
29554
+ const outcome = await panel.update();
29555
+ if (outcome === "skipped") batch.skipped++;
29556
+ else if (outcome) batch.succeeded++;
29361
29557
  else batch.failed++;
29362
29558
  } catch {
29363
29559
  batch.failed++;
@@ -29390,14 +29586,14 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29390
29586
  const batch = store.batches.get(nextHostId);
29391
29587
  const count3 = eligible(nextPanels).length;
29392
29588
  button2.disabled = signal.aborted || Boolean(batch?.running) || !count3;
29393
- const label = batch?.running ? `${messages.harnessUpdateAllProgress} ${batch.succeeded + batch.failed}/${batch.total}` : count3 ? `${messages.harnessUpdateAll} (${count3})` : messages.harnessUpdateAll;
29589
+ const label = batch?.running ? `${messages.harnessUpdateAllProgress} ${batch.succeeded + batch.failed + batch.skipped}/${batch.total}` : count3 ? `${messages.harnessUpdateAll} (${count3})` : messages.harnessUpdateAll;
29394
29590
  if (renderedLabel !== label) {
29395
29591
  renderedLabel = label;
29396
29592
  button2.replaceChildren(createRendererSettingsIcon("download", 15), label);
29397
29593
  }
29398
29594
  const hidden = !batch || batch.running;
29399
29595
  result.hidden = hidden;
29400
- const resultText = batch && !batch.running ? messages.harnessUpdateAllResult.replace("{succeeded}", String(batch.succeeded)).replace("{failed}", String(batch.failed)) : "";
29596
+ const resultText = batch && !batch.running ? messages.harnessUpdateAllResult.replace("{succeeded}", String(batch.succeeded)).replace("{failed}", String(batch.failed)) + (batch.skipped ? ` ${messages.harnessUpdateAllSkipped.replace("{skipped}", String(batch.skipped))}` : "") : "";
29401
29597
  if (result.textContent !== resultText) {
29402
29598
  result.textContent = resultText;
29403
29599
  }
@@ -29447,7 +29643,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29447
29643
  })();
29448
29644
  return checkPromise;
29449
29645
  };
29450
- const update = () => {
29646
+ const update = (confirmedVersion) => {
29451
29647
  if (updatePromise) return updatePromise;
29452
29648
  updatePromise = (async () => {
29453
29649
  if (signal?.aborted) return false;
@@ -29458,9 +29654,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29458
29654
  statusKind = "updating";
29459
29655
  notify3(true);
29460
29656
  try {
29461
- const result = await client.run("update");
29657
+ const result = await (confirmedVersion === void 0 ? client.run("update") : client.run("update", confirmedVersion));
29462
29658
  if (signal?.aborted) return false;
29463
29659
  state = result;
29660
+ if (result.confirmationRequired) {
29661
+ statusKind = "idle";
29662
+ return result;
29663
+ }
29464
29664
  statusKind = !result.canUpdate ? "updated" : result.updateAvailable ? "failed" : "updated";
29465
29665
  return result.canUpdate && !result.updateAvailable;
29466
29666
  } catch (error51) {
@@ -29502,7 +29702,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29502
29702
  }
29503
29703
  };
29504
29704
  }
29505
- function createHarnessVersionPanel(document2, messages, signal, agent, client, onChange = () => void 0, sharedSession) {
29705
+ function createHarnessVersionPanel(document2, messages, signal, agent, client, onChange = () => void 0, sharedSession, confirmUpdate) {
29506
29706
  const session = sharedSession ?? createHarnessVersionSession(client, { signal });
29507
29707
  const shouldScheduleCheck = session.prepareMount();
29508
29708
  const panel = document2.createElement("section");
@@ -29554,8 +29754,28 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29554
29754
  const detail = harnessVersionNote(state, messages.harnessVersion);
29555
29755
  note.textContent = detail ? !state?.canUpdate ? detail : `${detail} ${messages.harnessVersionNote}` : messages.harnessVersionNote;
29556
29756
  };
29757
+ let pendingUpdate;
29758
+ const requestUpdate = () => {
29759
+ return pendingUpdate ??= (async () => {
29760
+ let target2 = session.state;
29761
+ while (!signal.aborted) {
29762
+ let confirmedVersion;
29763
+ if (target2?.latestVerifiedVersion || target2?.confirmationRequired) {
29764
+ const proceed = await confirmUpdate?.(target2.latestVersion, target2.latestVerifiedVersion);
29765
+ if (!proceed || signal.aborted) return "skipped";
29766
+ confirmedVersion = target2.latestVersion;
29767
+ }
29768
+ const outcome = await session.update(confirmedVersion);
29769
+ if (typeof outcome === "boolean") return outcome;
29770
+ target2 = outcome;
29771
+ }
29772
+ return "skipped";
29773
+ })().finally(() => {
29774
+ pendingUpdate = void 0;
29775
+ });
29776
+ };
29557
29777
  update.addEventListener("click", () => {
29558
- if (!signal.aborted) void session.update();
29778
+ if (!update.disabled) void requestUpdate();
29559
29779
  });
29560
29780
  const unsubscribe = session.subscribe((pageChange) => {
29561
29781
  if (signal.aborted) return;
@@ -29598,10 +29818,70 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29598
29818
  get updating() {
29599
29819
  return session.updating;
29600
29820
  },
29601
- update: () => signal.aborted ? Promise.resolve(false) : session.update()
29821
+ update: requestUpdate
29602
29822
  };
29603
29823
  }
29604
29824
 
29825
+ // src/settings/harness-update-confirmation.ts
29826
+ function confirmHarnessUpdate(container, messages, signal, name, target2, verified) {
29827
+ if (signal.aborted) return Promise.resolve(false);
29828
+ const document2 = container.ownerDocument;
29829
+ const dialog = document2.createElement("dialog");
29830
+ dialog.className = "settings-account-dialog settings-credential-dialog";
29831
+ const heading = document2.createElement("h2");
29832
+ heading.id = preferenceId("unverified-harness-update");
29833
+ heading.textContent = verified ? messages.harnessUpdateUnverifiedTitle : messages.harnessUpdateTargetChangedTitle;
29834
+ dialog.setAttribute("aria-labelledby", heading.id);
29835
+ const detail = document2.createElement("p");
29836
+ detail.id = preferenceId("unverified-harness-version");
29837
+ const template = verified ? messages.harnessUpdateUnverifiedDetail : messages.harnessUpdateTargetChangedDetail;
29838
+ detail.textContent = template.replace(
29839
+ /\{(name|target|verified)\}/gu,
29840
+ (_, field2) => ({ name, target: target2, verified: verified ?? "" })[field2]
29841
+ );
29842
+ dialog.setAttribute("aria-describedby", detail.id);
29843
+ const actions = document2.createElement("div");
29844
+ actions.className = "settings-credential-dialog__actions";
29845
+ const skip = document2.createElement("button");
29846
+ skip.type = "button";
29847
+ skip.className = "settings-command-button settings-command-button--secondary";
29848
+ skip.textContent = messages.harnessUpdateSkip;
29849
+ skip.setAttribute("autofocus", "");
29850
+ const update = document2.createElement("button");
29851
+ update.type = "button";
29852
+ update.className = "settings-command-button";
29853
+ update.textContent = verified ? messages.harnessUpdateAnyway : messages.harnessVersionUpdate;
29854
+ actions.append(skip, update);
29855
+ dialog.append(heading, detail, actions);
29856
+ return new Promise((resolve) => {
29857
+ let confirmed = false;
29858
+ const abort = () => dialog.close();
29859
+ skip.addEventListener("click", () => dialog.close());
29860
+ update.addEventListener("click", () => {
29861
+ confirmed = true;
29862
+ dialog.close();
29863
+ });
29864
+ dialog.addEventListener("keydown", (event) => {
29865
+ if (event.key !== "Escape") return;
29866
+ event.preventDefault();
29867
+ event.stopPropagation?.();
29868
+ dialog.close();
29869
+ });
29870
+ dialog.addEventListener(
29871
+ "close",
29872
+ () => {
29873
+ signal.removeEventListener("abort", abort);
29874
+ dialog.remove();
29875
+ resolve(confirmed && !signal.aborted);
29876
+ },
29877
+ { once: true }
29878
+ );
29879
+ signal.addEventListener("abort", abort, { once: true });
29880
+ container.append(dialog);
29881
+ dialog.showModal();
29882
+ });
29883
+ }
29884
+
29605
29885
  // src/settings/connection-versions.ts
29606
29886
  var sessionStores = /* @__PURE__ */ new WeakMap();
29607
29887
  function getSessionStore(diagnostics) {
@@ -29612,7 +29892,7 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29612
29892
  }
29613
29893
  return store;
29614
29894
  }
29615
- function createConnectionVersions(document2, messages, signal, diagnostics, onChange) {
29895
+ function createConnectionVersions(container, messages, signal, diagnostics, onChange) {
29616
29896
  const panels = /* @__PURE__ */ new Map();
29617
29897
  const installation = diagnostics?.installation?.bind(diagnostics);
29618
29898
  const sessions = diagnostics ? getSessionStore(diagnostics) : null;
@@ -29621,25 +29901,26 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29621
29901
  isUpdating(hostId2, agent) {
29622
29902
  return Boolean(sessions?.get(sessionKey(hostId2, agent))?.updating);
29623
29903
  },
29624
- get(hostId2, agent) {
29904
+ get(hostId2, agent, name) {
29625
29905
  if (!installation || signal.aborted) return void 0;
29626
29906
  const key2 = sessionKey(hostId2, agent);
29627
29907
  let panel = panels.get(key2);
29628
29908
  if (!panel) {
29629
- const run = (action) => installation(hostId2, agent, action);
29909
+ const run = (action, confirmedVersion) => confirmedVersion === void 0 ? installation(hostId2, agent, action) : installation(hostId2, agent, action, confirmedVersion);
29630
29910
  let session = sessions?.get(key2);
29631
29911
  if (!session) {
29632
29912
  session = createHarnessVersionSession({ run });
29633
29913
  sessions?.set(key2, session);
29634
29914
  }
29635
29915
  panel = createHarnessVersionPanel(
29636
- document2,
29916
+ container.ownerDocument,
29637
29917
  messages,
29638
29918
  signal,
29639
29919
  agent,
29640
29920
  { run },
29641
29921
  onChange,
29642
- session
29922
+ session,
29923
+ (target2, verified) => confirmHarnessUpdate(container, messages, signal, name, target2, verified)
29643
29924
  );
29644
29925
  panels.set(key2, panel);
29645
29926
  }
@@ -29718,13 +29999,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29718
29999
  }
29719
30000
  function harnessInstallationGuide(plugin, locale) {
29720
30001
  const guide = plugin?.installation;
29721
- const text = (value) => value?.[locale] ?? value?.en;
30002
+ const text2 = (value) => value?.[locale] ?? value?.en;
29722
30003
  return {
29723
30004
  url: plugin?.links?.installation ?? plugin?.links?.documentation ?? plugin?.links?.website,
29724
30005
  commands: guide?.commands ?? [],
29725
30006
  downloads: guide?.downloads ?? [],
29726
- before: text(guide?.before),
29727
- after: text(guide?.after)
30007
+ before: text2(guide?.before),
30008
+ after: text2(guide?.after)
29728
30009
  };
29729
30010
  }
29730
30011
 
@@ -29734,9 +30015,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29734
30015
  const guide = harnessInstallationGuide(plugin, messages.locale);
29735
30016
  const panel = document2.createElement("div");
29736
30017
  panel.className = "settings-harness-installation";
29737
- const paragraph = (text) => {
30018
+ const paragraph = (text2) => {
29738
30019
  const p = document2.createElement("p");
29739
- p.textContent = text;
30020
+ p.textContent = text2;
29740
30021
  panel.append(p);
29741
30022
  };
29742
30023
  if (hostId2 !== "local") {
@@ -29811,13 +30092,13 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29811
30092
  section.dataset.harnessLaunch = agent;
29812
30093
  const label = document2.createElement("label");
29813
30094
  label.textContent = messages.launchPathLabel;
29814
- const input = document2.createElement("input");
29815
- input.type = "text";
29816
- input.autocomplete = "off";
29817
- input.spellcheck = false;
29818
- input.placeholder = messages.locale === "zh-CN" ? "\u5E94\u7528\u5B89\u88C5\u76EE\u5F55\u7684\u7EDD\u5BF9\u8DEF\u5F84" : "Absolute installation directory";
29819
- input.setAttribute("aria-label", messages.launchPathLabel);
29820
- label.append(input);
30095
+ const input2 = document2.createElement("input");
30096
+ input2.type = "text";
30097
+ input2.autocomplete = "off";
30098
+ input2.spellcheck = false;
30099
+ input2.placeholder = messages.locale === "zh-CN" ? "\u5E94\u7528\u5B89\u88C5\u76EE\u5F55\u7684\u7EDD\u5BF9\u8DEF\u5F84" : "Absolute installation directory";
30100
+ input2.setAttribute("aria-label", messages.launchPathLabel);
30101
+ label.append(input2);
29821
30102
  const help = document2.createElement("p");
29822
30103
  help.textContent = messages.locale === "zh-CN" ? "\u586B\u5199\u63D2\u4EF6\u5BF9\u5E94\u5E94\u7528\u7684\u5B89\u88C5\u76EE\u5F55\uFF1B\u6E05\u9664\u540E\u6062\u590D\u81EA\u52A8\u53D1\u73B0\u3002\u4FEE\u6539\u540E\u9700\u91CD\u542F codexhost\u3002" : "Choose the application's installation directory; clear it to restore automatic discovery. Restart codexhost after changing it.";
29823
30104
  const actions = document2.createElement("div");
@@ -29838,12 +30119,12 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29838
30119
  let busy = true;
29839
30120
  let loaded = false;
29840
30121
  const controls = () => {
29841
- input.disabled = busy || !loaded;
29842
- save.disabled = busy || !loaded || !input.value.trim();
30122
+ input2.disabled = busy || !loaded;
30123
+ save.disabled = busy || !loaded || !input2.value.trim();
29843
30124
  reset.disabled = busy || !loaded;
29844
30125
  };
29845
30126
  const show = (value) => {
29846
- input.value = value.path ?? "";
30127
+ input2.value = value.path ?? "";
29847
30128
  status.textContent = value.restartRequired ? messages.launchPathRestart : value.path ? messages.launchPathSaved : messages.launchPathAutomatic;
29848
30129
  };
29849
30130
  const persist = async (value) => {
@@ -29860,9 +30141,9 @@ ${messages.harnessVersionLatest}: ${harnessVersionLabel(version2.state, messages
29860
30141
  controls();
29861
30142
  }
29862
30143
  };
29863
- input.addEventListener("input", controls);
30144
+ input2.addEventListener("input", controls);
29864
30145
  save.addEventListener("click", () => {
29865
- if (input.value.trim()) void persist(input.value.trim());
30146
+ if (input2.value.trim()) void persist(input2.value.trim());
29866
30147
  });
29867
30148
  reset.addEventListener("click", () => {
29868
30149
  void persist(null);
@@ -30067,9 +30348,9 @@ ${error51.stderrTail}`] : []
30067
30348
  if (item.agentSnapshot?.availability === "notInstalled") {
30068
30349
  const zh = messages.locale === "zh-CN";
30069
30350
  const busy = item.availability === "installing" || item.availability === "checking";
30070
- const note = (text) => {
30351
+ const note = (text2) => {
30071
30352
  const paragraph = document2.createElement("p");
30072
- paragraph.textContent = text;
30353
+ paragraph.textContent = text2;
30073
30354
  body.append(paragraph);
30074
30355
  };
30075
30356
  if (busy) note(messages.connectionInstallRunning);
@@ -30301,7 +30582,7 @@ ${error51.stderrTail}`] : []
30301
30582
  };
30302
30583
  const diagnostics = getDiagnostics();
30303
30584
  const versions = createConnectionVersions(
30304
- document2,
30585
+ context.content,
30305
30586
  messages,
30306
30587
  context.signal,
30307
30588
  diagnostics,
@@ -30563,7 +30844,7 @@ ${error51.stderrTail}`] : []
30563
30844
  const state = installs?.get(selectedHost.hostId, agent);
30564
30845
  const availability = state?.status ?? item.availability;
30565
30846
  const updating = versions.isUpdating(selectedHost.hostId, agent);
30566
- const version2 = updating || item.agentSnapshot?.availability !== "notInstalled" && availability !== "installing" && availability !== "checking" ? versions.get(selectedHost.hostId, agent) : void 0;
30847
+ const version2 = updating || item.agentSnapshot?.availability !== "notInstalled" && availability !== "installing" && availability !== "checking" ? versions.get(selectedHost.hostId, agent, item.name) : void 0;
30567
30848
  return {
30568
30849
  ...item,
30569
30850
  ...state ? { availability: state.status } : {},
@@ -31030,10 +31311,10 @@ ${error51.stderrTail}`] : []
31030
31311
  return status;
31031
31312
  }
31032
31313
  function createAccessibleText(document2, message2) {
31033
- const text = document2.createElement("span");
31034
- text.className = "settings-visually-hidden";
31035
- text.textContent = message2;
31036
- return text;
31314
+ const text2 = document2.createElement("span");
31315
+ text2.className = "settings-visually-hidden";
31316
+ text2.textContent = message2;
31317
+ return text2;
31037
31318
  }
31038
31319
  function createSessionImportSettingsPage(messages, getClient, openImportedThread, getDiagnostics = () => null) {
31039
31320
  return Object.freeze({
@@ -31593,28 +31874,28 @@ ${error51.stderrTail}`] : []
31593
31874
  const document2 = context.content.ownerDocument;
31594
31875
  const owner = document2.defaultView;
31595
31876
  if (!owner) return () => void 0;
31596
- const text = messages.loadedSessions;
31877
+ const text2 = messages.loadedSessions;
31597
31878
  const container = document2.createElement("div");
31598
31879
  container.className = "border-t border-settings-border";
31599
31880
  const header = document2.createElement("div");
31600
31881
  header.className = "px-4 pt-4";
31601
31882
  const title = document2.createElement("p");
31602
31883
  title.className = "m-0 text-sm font-medium";
31603
- title.textContent = text.title;
31884
+ title.textContent = text2.title;
31604
31885
  const description = document2.createElement("p");
31605
31886
  description.className = "text-xs text-settings-muted";
31606
- description.textContent = text.description;
31887
+ description.textContent = text2.description;
31607
31888
  const status = document2.createElement("p");
31608
31889
  status.className = "p-4 text-sm text-settings-muted";
31609
31890
  status.setAttribute("role", "status");
31610
- status.textContent = text.loading;
31891
+ status.textContent = text2.loading;
31611
31892
  const scroll = document2.createElement("div");
31612
31893
  scroll.className = "overflow-x-auto";
31613
31894
  const table = document2.createElement("table");
31614
31895
  table.className = "w-full text-left text-sm";
31615
- table.setAttribute("aria-label", text.title);
31896
+ table.setAttribute("aria-label", text2.title);
31616
31897
  const head = table.createTHead().insertRow();
31617
- for (const label of text.columns) {
31898
+ for (const label of text2.columns) {
31618
31899
  const cell = document2.createElement("th");
31619
31900
  cell.scope = "col";
31620
31901
  cell.className = "px-4 py-3 font-medium text-settings-muted";
@@ -31634,7 +31915,7 @@ ${error51.stderrTail}`] : []
31634
31915
  try {
31635
31916
  const client = getClient();
31636
31917
  if (!client?.listLoadedSessions) {
31637
- status.textContent = text.unavailable;
31918
+ status.textContent = text2.unavailable;
31638
31919
  status.hidden = false;
31639
31920
  scroll.hidden = true;
31640
31921
  return;
@@ -31657,9 +31938,9 @@ ${error51.stderrTail}`] : []
31657
31938
  const values = [
31658
31939
  row.title,
31659
31940
  row.harnessId,
31660
- text.states[row.state],
31661
- text.minutes.replace("{minutes}", String(Math.floor(row.inactiveMs / 6e4))),
31662
- text.reasons[row.reason]
31941
+ text2.states[row.state],
31942
+ text2.minutes.replace("{minutes}", String(Math.floor(row.inactiveMs / 6e4))),
31943
+ text2.reasons[row.reason]
31663
31944
  ];
31664
31945
  for (const value of values) {
31665
31946
  const cell = tr.insertCell();
@@ -31668,12 +31949,12 @@ ${error51.stderrTail}`] : []
31668
31949
  }
31669
31950
  tr.title = row.threadId;
31670
31951
  }
31671
- status.textContent = rows.length ? "" : text.empty;
31952
+ status.textContent = rows.length ? "" : text2.empty;
31672
31953
  status.hidden = rows.length > 0;
31673
31954
  scroll.hidden = rows.length === 0;
31674
31955
  } catch (error51) {
31675
31956
  if (disposed || context.signal.aborted) return;
31676
- status.textContent = error51 instanceof RendererMethodUnavailableError ? text.unavailable : text.failed;
31957
+ status.textContent = error51 instanceof RendererMethodUnavailableError ? text2.unavailable : text2.failed;
31677
31958
  status.hidden = false;
31678
31959
  scroll.hidden = true;
31679
31960
  } finally {
@@ -32571,9 +32852,9 @@ ${error51.stderrTail}`] : []
32571
32852
  let adopted = false;
32572
32853
  if (shadow && Sheet && "adoptedStyleSheets" in shadow) {
32573
32854
  try {
32574
- shadow.adoptedStyleSheets = stylesheets.map((text) => {
32855
+ shadow.adoptedStyleSheets = stylesheets.map((text2) => {
32575
32856
  const sheet = new Sheet();
32576
- sheet.replaceSync(text);
32857
+ sheet.replaceSync(text2);
32577
32858
  return sheet;
32578
32859
  });
32579
32860
  adopted = true;
@@ -32581,9 +32862,9 @@ ${error51.stderrTail}`] : []
32581
32862
  }
32582
32863
  }
32583
32864
  if (!adopted) {
32584
- for (const text of stylesheets) {
32865
+ for (const text2 of stylesheets) {
32585
32866
  const style2 = doc.createElement("style");
32586
- style2.textContent = text;
32867
+ style2.textContent = text2;
32587
32868
  root.append(style2);
32588
32869
  }
32589
32870
  }
@@ -33028,10 +33309,10 @@ ${error51.stderrTail}`] : []
33028
33309
  function formatMessage(template, values) {
33029
33310
  return template.replace(/\{([a-zA-Z0-9_]+)\}/gu, (match, key2) => values[key2] ?? match);
33030
33311
  }
33031
- function createEl(document2, tag, className = "", text = "") {
33312
+ function createEl(document2, tag, className = "", text2 = "") {
33032
33313
  const element = document2.createElement(tag);
33033
33314
  if (className) element.className = className;
33034
- if (text) element.textContent = text;
33315
+ if (text2) element.textContent = text2;
33035
33316
  return element;
33036
33317
  }
33037
33318
  function errorMessage3(error51) {
@@ -33218,14 +33499,14 @@ ${error51.stderrTail}`] : []
33218
33499
  appendCategorySearchFields(fields, entry.categories);
33219
33500
  return matchesTokens(fields, normalizedQuery);
33220
33501
  }
33221
- function parseGitHubInstallSource(input) {
33222
- const raw = input.repoOrUrl.trim();
33502
+ function parseGitHubInstallSource(input2) {
33503
+ const raw = input2.repoOrUrl.trim();
33223
33504
  if (!raw) return null;
33224
33505
  let repository = raw;
33225
- let ref = input.ref?.trim() || void 0;
33226
- let tag = input.tag?.trim() || void 0;
33227
- let asset = input.asset?.trim() || void 0;
33228
- let subpath = input.subpath?.trim() || void 0;
33506
+ let ref = input2.ref?.trim() || void 0;
33507
+ let tag = input2.tag?.trim() || void 0;
33508
+ let asset = input2.asset?.trim() || void 0;
33509
+ let subpath = input2.subpath?.trim() || void 0;
33229
33510
  if (/^https?:\/\//iu.test(raw)) {
33230
33511
  try {
33231
33512
  const parsed = new URL(raw);
@@ -33875,8 +34156,8 @@ ${error51.stderrTail}`] : []
33875
34156
  copyButtonIconSlot.replaceChildren(createRendererSettingsIcon("copy", 13));
33876
34157
  copyButtonLabel.textContent = copy.createCopyPrompt;
33877
34158
  };
33878
- const showStatus = (text, tone) => {
33879
- statusLine.textContent = text;
34159
+ const showStatus = (text2, tone) => {
34160
+ statusLine.textContent = text2;
33880
34161
  statusLine.dataset.tone = tone;
33881
34162
  statusLine.hidden = false;
33882
34163
  };
@@ -33893,13 +34174,13 @@ ${error51.stderrTail}`] : []
33893
34174
  modal.remove();
33894
34175
  });
33895
34176
  copyButton.addEventListener("click", () => {
33896
- const text = promptTextarea.value;
34177
+ const text2 = promptTextarea.value;
33897
34178
  const clipboard = document2.defaultView?.navigator?.clipboard;
33898
34179
  if (!clipboard) {
33899
34180
  showStatus(copy.createCopyFailed, "danger");
33900
34181
  return;
33901
34182
  }
33902
- void clipboard.writeText(text).then(
34183
+ void clipboard.writeText(text2).then(
33903
34184
  () => {
33904
34185
  if (signal.aborted || dialog !== modal) return;
33905
34186
  copyButtonIconSlot.replaceChildren(createRendererSettingsIcon("check", 13));
@@ -33939,38 +34220,38 @@ ${error51.stderrTail}`] : []
33939
34220
  var UNORDERED_LIST_PATTERN = /^\s*[-*]\s+(.+)$/u;
33940
34221
  var ORDERED_LIST_PATTERN = /^\s*\d+\.\s+(.+)$/u;
33941
34222
  var BLOCKQUOTE_PATTERN2 = /^\s*>\s?(.*)$/u;
33942
- function appendText(document2, parent, text) {
33943
- if (!text) return;
33944
- parent.append(document2.createTextNode(text));
34223
+ function appendText(document2, parent, text2) {
34224
+ if (!text2) return;
34225
+ parent.append(document2.createTextNode(text2));
33945
34226
  }
33946
34227
  function isBlockStart(line) {
33947
34228
  return FENCE_PATTERN2.test(line) || HEADING_PATTERN2.test(line) || UNORDERED_LIST_PATTERN.test(line) || ORDERED_LIST_PATTERN.test(line) || BLOCKQUOTE_PATTERN2.test(line);
33948
34229
  }
33949
- function findLinkEnd(text, startIndex) {
33950
- const closeBracket = text.indexOf("]", startIndex + 1);
34230
+ function findLinkEnd(text2, startIndex) {
34231
+ const closeBracket = text2.indexOf("]", startIndex + 1);
33951
34232
  if (closeBracket <= startIndex + 1) return null;
33952
- if (text[closeBracket + 1] !== "(") return null;
34233
+ if (text2[closeBracket + 1] !== "(") return null;
33953
34234
  const urlStart = closeBracket + 2;
33954
34235
  let depth = 1;
33955
34236
  let cursor = urlStart;
33956
- while (cursor < text.length && depth > 0) {
33957
- const ch = text[cursor];
34237
+ while (cursor < text2.length && depth > 0) {
34238
+ const ch = text2[cursor];
33958
34239
  if (ch === "\n" || ch === "\r") return null;
33959
34240
  if (ch === "(") depth += 1;
33960
34241
  else if (ch === ")") depth -= 1;
33961
34242
  cursor += 1;
33962
34243
  }
33963
34244
  if (depth !== 0) return null;
33964
- const label = text.slice(startIndex + 1, closeBracket);
33965
- const rawUrl = text.slice(urlStart, cursor - 1).trim();
34245
+ const label = text2.slice(startIndex + 1, closeBracket);
34246
+ const rawUrl = text2.slice(urlStart, cursor - 1).trim();
33966
34247
  if (!label || !rawUrl) return null;
33967
34248
  return { label, rawUrl, endIndex: cursor };
33968
34249
  }
33969
- function findSingleItalicEnd(text, startIndex) {
34250
+ function findSingleItalicEnd(text2, startIndex) {
33970
34251
  let cursor = startIndex + 1;
33971
- while (cursor < text.length) {
33972
- if (text[cursor] === "*") {
33973
- if (text[cursor + 1] === "*") {
34252
+ while (cursor < text2.length) {
34253
+ if (text2[cursor] === "*") {
34254
+ if (text2[cursor + 1] === "*") {
33974
34255
  cursor += 2;
33975
34256
  continue;
33976
34257
  }
@@ -33980,22 +34261,22 @@ ${error51.stderrTail}`] : []
33980
34261
  }
33981
34262
  return -1;
33982
34263
  }
33983
- function appendInlineNodes(document2, parent, text, allowLinks = true) {
34264
+ function appendInlineNodes(document2, parent, text2, allowLinks = true) {
33984
34265
  let cursor = 0;
33985
34266
  let plainStart = 0;
33986
34267
  const flushPlain = (end) => {
33987
34268
  if (end > plainStart) {
33988
- appendText(document2, parent, text.slice(plainStart, end));
34269
+ appendText(document2, parent, text2.slice(plainStart, end));
33989
34270
  }
33990
34271
  };
33991
- while (cursor < text.length) {
33992
- const ch = text[cursor];
34272
+ while (cursor < text2.length) {
34273
+ const ch = text2[cursor];
33993
34274
  if (ch === "`") {
33994
- const closeTick = text.indexOf("`", cursor + 1);
34275
+ const closeTick = text2.indexOf("`", cursor + 1);
33995
34276
  if (closeTick > cursor + 1) {
33996
34277
  flushPlain(cursor);
33997
34278
  const codeEl = createEl(document2, "code", "settings-extensions-md__code");
33998
- appendText(document2, codeEl, text.slice(cursor + 1, closeTick));
34279
+ appendText(document2, codeEl, text2.slice(cursor + 1, closeTick));
33999
34280
  parent.append(codeEl);
34000
34281
  cursor = closeTick + 1;
34001
34282
  plainStart = cursor;
@@ -34003,7 +34284,7 @@ ${error51.stderrTail}`] : []
34003
34284
  }
34004
34285
  }
34005
34286
  if (allowLinks && ch === "[") {
34006
- const match = findLinkEnd(text, cursor);
34287
+ const match = findLinkEnd(text2, cursor);
34007
34288
  if (match) {
34008
34289
  flushPlain(cursor);
34009
34290
  const safeUrl = parseSafeHttpUrl(match.rawUrl);
@@ -34022,24 +34303,24 @@ ${error51.stderrTail}`] : []
34022
34303
  continue;
34023
34304
  }
34024
34305
  }
34025
- if (ch === "*" && text[cursor + 1] === "*") {
34026
- const closeBold = text.indexOf("**", cursor + 2);
34306
+ if (ch === "*" && text2[cursor + 1] === "*") {
34307
+ const closeBold = text2.indexOf("**", cursor + 2);
34027
34308
  if (closeBold > cursor + 2) {
34028
34309
  flushPlain(cursor);
34029
34310
  const strong = createEl(document2, "strong");
34030
- appendInlineNodes(document2, strong, text.slice(cursor + 2, closeBold), allowLinks);
34311
+ appendInlineNodes(document2, strong, text2.slice(cursor + 2, closeBold), allowLinks);
34031
34312
  parent.append(strong);
34032
34313
  cursor = closeBold + 2;
34033
34314
  plainStart = cursor;
34034
34315
  continue;
34035
34316
  }
34036
34317
  }
34037
- if (ch === "*" && text[cursor + 1] !== "*") {
34038
- const closeItalic = findSingleItalicEnd(text, cursor);
34318
+ if (ch === "*" && text2[cursor + 1] !== "*") {
34319
+ const closeItalic = findSingleItalicEnd(text2, cursor);
34039
34320
  if (closeItalic > cursor + 1) {
34040
34321
  flushPlain(cursor);
34041
34322
  const em = createEl(document2, "em");
34042
- appendInlineNodes(document2, em, text.slice(cursor + 1, closeItalic), allowLinks);
34323
+ appendInlineNodes(document2, em, text2.slice(cursor + 1, closeItalic), allowLinks);
34043
34324
  parent.append(em);
34044
34325
  cursor = closeItalic + 1;
34045
34326
  plainStart = cursor;
@@ -34048,7 +34329,7 @@ ${error51.stderrTail}`] : []
34048
34329
  }
34049
34330
  cursor += 1;
34050
34331
  }
34051
- flushPlain(text.length);
34332
+ flushPlain(text2.length);
34052
34333
  }
34053
34334
  function createParagraph(document2, lines) {
34054
34335
  const paragraph = createEl(document2, "p", "settings-extensions-detail-modal__paragraph");
@@ -34424,8 +34705,8 @@ ${error51.stderrTail}`] : []
34424
34705
  const listEl = createEl(document2, "div", "settings-extensions-detail-settings__list");
34425
34706
  const controls = [];
34426
34707
  const syncers = /* @__PURE__ */ new Map();
34427
- const setStatus = (text, tone = "muted") => {
34428
- if (!text) {
34708
+ const setStatus = (text2, tone = "muted") => {
34709
+ if (!text2) {
34429
34710
  statusEl.hidden = true;
34430
34711
  statusEl.textContent = "";
34431
34712
  delete statusEl.dataset.tone;
@@ -34433,16 +34714,16 @@ ${error51.stderrTail}`] : []
34433
34714
  }
34434
34715
  statusEl.hidden = false;
34435
34716
  statusEl.dataset.tone = tone;
34436
- statusEl.textContent = text;
34717
+ statusEl.textContent = text2;
34437
34718
  };
34438
- const setNotice = (text) => {
34439
- if (!text) {
34719
+ const setNotice = (text2) => {
34720
+ if (!text2) {
34440
34721
  noticeEl.hidden = true;
34441
34722
  noticeEl.textContent = "";
34442
34723
  return;
34443
34724
  }
34444
34725
  noticeEl.hidden = false;
34445
- noticeEl.textContent = text;
34726
+ noticeEl.textContent = text2;
34446
34727
  };
34447
34728
  const setDisabled = (disabled) => {
34448
34729
  resetButton.disabled = disabled;
@@ -34540,87 +34821,87 @@ ${error51.stderrTail}`] : []
34540
34821
  controls.push(toggle);
34541
34822
  controlWrap.append(toggle);
34542
34823
  } else if (field2.type === "string") {
34543
- const input = createEl(
34824
+ const input2 = createEl(
34544
34825
  document2,
34545
34826
  "input",
34546
34827
  "settings-extension-schema__input settings-extension-schema__input--text"
34547
34828
  );
34548
- input.type = "text";
34549
- input.id = controlId;
34829
+ input2.type = "text";
34830
+ input2.id = controlId;
34550
34831
  if (field2.placeholder) {
34551
- input.placeholder = resolveLocalizedExtensionText(field2.placeholder, contentLocale);
34832
+ input2.placeholder = resolveLocalizedExtensionText(field2.placeholder, contentLocale);
34552
34833
  }
34553
- input.value = String(currentValues[field2.key] ?? "");
34554
- input.disabled = true;
34555
- input.addEventListener("change", () => {
34556
- enqueueWrite({ ...currentValues, [field2.key]: input.value });
34834
+ input2.value = String(currentValues[field2.key] ?? "");
34835
+ input2.disabled = true;
34836
+ input2.addEventListener("change", () => {
34837
+ enqueueWrite({ ...currentValues, [field2.key]: input2.value });
34557
34838
  });
34558
34839
  syncers.set(field2.key, (val) => {
34559
- input.value = String(val ?? "");
34840
+ input2.value = String(val ?? "");
34560
34841
  });
34561
- controls.push(input);
34562
- controlWrap.append(input);
34842
+ controls.push(input2);
34843
+ controlWrap.append(input2);
34563
34844
  } else if (field2.type === "number") {
34564
- const input = createEl(
34845
+ const input2 = createEl(
34565
34846
  document2,
34566
34847
  "input",
34567
34848
  "settings-extension-schema__input settings-extension-schema__input--number"
34568
34849
  );
34569
- input.type = "number";
34570
- input.id = controlId;
34571
- if (field2.min !== void 0) input.min = String(field2.min);
34572
- if (field2.max !== void 0) input.max = String(field2.max);
34573
- if (field2.step !== void 0) input.step = String(field2.step);
34574
- input.value = String(currentValues[field2.key] ?? "");
34575
- input.disabled = true;
34576
- input.addEventListener("change", () => {
34577
- const parsed = Number(input.value);
34578
- const invalid = input.value.trim() === "" || !Number.isFinite(parsed) || field2.min !== void 0 && parsed < field2.min || field2.max !== void 0 && parsed > field2.max;
34850
+ input2.type = "number";
34851
+ input2.id = controlId;
34852
+ if (field2.min !== void 0) input2.min = String(field2.min);
34853
+ if (field2.max !== void 0) input2.max = String(field2.max);
34854
+ if (field2.step !== void 0) input2.step = String(field2.step);
34855
+ input2.value = String(currentValues[field2.key] ?? "");
34856
+ input2.disabled = true;
34857
+ input2.addEventListener("change", () => {
34858
+ const parsed = Number(input2.value);
34859
+ const invalid = input2.value.trim() === "" || !Number.isFinite(parsed) || field2.min !== void 0 && parsed < field2.min || field2.max !== void 0 && parsed > field2.max;
34579
34860
  if (invalid) {
34580
- input.dataset.invalid = "true";
34861
+ input2.dataset.invalid = "true";
34581
34862
  return;
34582
34863
  }
34583
- delete input.dataset.invalid;
34864
+ delete input2.dataset.invalid;
34584
34865
  enqueueWrite({ ...currentValues, [field2.key]: parsed });
34585
34866
  });
34586
34867
  syncers.set(field2.key, (val) => {
34587
- delete input.dataset.invalid;
34588
- input.value = String(val ?? "");
34868
+ delete input2.dataset.invalid;
34869
+ input2.value = String(val ?? "");
34589
34870
  });
34590
- controls.push(input);
34591
- controlWrap.append(input);
34871
+ controls.push(input2);
34872
+ controlWrap.append(input2);
34592
34873
  } else if (field2.type === "range") {
34593
34874
  const wrap = createEl(document2, "div", "settings-extension-schema__range");
34594
- const input = createEl(document2, "input", "settings-extension-schema__slider");
34595
- input.type = "range";
34596
- input.id = controlId;
34597
- input.min = String(field2.min);
34598
- input.max = String(field2.max);
34599
- if (field2.step !== void 0) input.step = String(field2.step);
34875
+ const input2 = createEl(document2, "input", "settings-extension-schema__slider");
34876
+ input2.type = "range";
34877
+ input2.id = controlId;
34878
+ input2.min = String(field2.min);
34879
+ input2.max = String(field2.max);
34880
+ if (field2.step !== void 0) input2.step = String(field2.step);
34600
34881
  const initVal = Number(currentValues[field2.key] ?? field2.min);
34601
- input.value = String(initVal);
34602
- input.disabled = true;
34882
+ input2.value = String(initVal);
34883
+ input2.disabled = true;
34603
34884
  const output = createEl(
34604
34885
  document2,
34605
34886
  "output",
34606
34887
  "settings-extension-schema__range-value",
34607
34888
  String(initVal)
34608
34889
  );
34609
- input.addEventListener("input", () => {
34610
- output.textContent = input.value;
34890
+ input2.addEventListener("input", () => {
34891
+ output.textContent = input2.value;
34611
34892
  });
34612
- input.addEventListener("change", () => {
34613
- const parsed = Number(input.value);
34614
- output.textContent = input.value;
34893
+ input2.addEventListener("change", () => {
34894
+ const parsed = Number(input2.value);
34895
+ output.textContent = input2.value;
34615
34896
  if (Number.isFinite(parsed)) enqueueWrite({ ...currentValues, [field2.key]: parsed });
34616
34897
  });
34617
34898
  syncers.set(field2.key, (val) => {
34618
- const text = String(val ?? field2.min);
34619
- input.value = text;
34620
- output.textContent = text;
34899
+ const text2 = String(val ?? field2.min);
34900
+ input2.value = text2;
34901
+ output.textContent = text2;
34621
34902
  });
34622
- controls.push(input);
34623
- wrap.append(input, output);
34903
+ controls.push(input2);
34904
+ wrap.append(input2, output);
34624
34905
  controlWrap.append(wrap);
34625
34906
  } else if (field2.type === "select") {
34626
34907
  const select = createEl(document2, "select", "settings-extension-schema__select");
@@ -35614,8 +35895,8 @@ ${error51.stderrTail}`] : []
35614
35895
  githubTabButton.addEventListener("click", () => switchMode("github"));
35615
35896
  zipTabButton.addEventListener("click", () => switchMode("zip"));
35616
35897
  localDirTabButton.addEventListener("click", () => switchMode("localDir"));
35617
- for (const input of [urlInput, refInput, tagInput, assetInput, subpathInput, localDirInput]) {
35618
- input.addEventListener("input", () => setError(null));
35898
+ for (const input2 of [urlInput, refInput, tagInput, assetInput, subpathInput, localDirInput]) {
35899
+ input2.addEventListener("input", () => setError(null));
35619
35900
  }
35620
35901
  fileInput.addEventListener("change", () => {
35621
35902
  const files = fileInput.files;
@@ -37513,6 +37794,239 @@ ${error51.stderrTail}`] : []
37513
37794
  });
37514
37795
  }
37515
37796
 
37797
+ // src/settings/release-announcement-dialog.css
37798
+ var release_announcement_dialog_default = ':host {\n --settings-bg: light-dark(#ffffff, #202020);\n --settings-panel: light-dark(#ffffff, #222224);\n --settings-surface: light-dark(#f3f3f4, #2e2e31);\n --settings-surface-hover: light-dark(#e9e9eb, #38383c);\n --settings-text: light-dark(#171717, #ececec);\n --settings-muted: light-dark(#6b6b6b, #9e9ea3);\n --settings-subtle: light-dark(#8a8a8e, #7e7e84);\n --settings-border: light-dark(rgb(13 13 13 / 9%), rgb(255 255 255 / 10%));\n --settings-divider: light-dark(rgb(13 13 13 / 7%), rgb(255 255 255 / 8%));\n --settings-hover: light-dark(rgb(13 13 13 / 5%), rgb(255 255 255 / 7%));\n --settings-focus: light-dark(#0b75d1, #66aaf9);\n --announcement-button-bg: light-dark(#f2f2f3, #303033);\n --announcement-button-hover: light-dark(#e7e7e9, #3b3b3f);\n --announcement-button-border: light-dark(rgb(13 13 13 / 10%), rgb(255 255 255 / 12%));\n --announcement-shadow: light-dark(0 24px 64px rgb(15 23 42 / 18%), 0 24px 64px rgb(0 0 0 / 56%));\n --announcement-backdrop: light-dark(rgb(15 23 42 / 34%), rgb(0 0 0 / 56%));\n color: var(--settings-text);\n color-scheme: inherit;\n font:\n 13.5px/1.6 system-ui,\n -apple-system,\n BlinkMacSystemFont,\n "Segoe UI",\n "PingFang SC",\n sans-serif;\n letter-spacing: 0;\n}\n\n*,\n*::before,\n*::after {\n box-sizing: border-box;\n letter-spacing: 0;\n}\n\n@keyframes release-announcement-dialog-in {\n from {\n opacity: 0;\n transform: translateY(8px) scale(0.985);\n }\n\n to {\n opacity: 1;\n transform: translateY(0) scale(1);\n }\n}\n\n@keyframes release-announcement-backdrop-in {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n\ndialog.release-announcement-dialog {\n width: min(820px, calc(100vw - 48px));\n max-width: none;\n max-height: min(86vh, calc(100dvh - 48px));\n margin: auto;\n padding: 0;\n overflow: hidden;\n color: var(--settings-text);\n background: var(--settings-panel);\n border: 1px solid var(--settings-border);\n border-radius: 14px;\n box-shadow: var(--announcement-shadow);\n -webkit-app-region: no-drag;\n}\n\ndialog.release-announcement-dialog[open] {\n display: flex;\n flex-direction: column;\n animation: release-announcement-dialog-in 180ms cubic-bezier(0.22, 1, 0.36, 1);\n}\n\ndialog.release-announcement-dialog::backdrop {\n background: var(--announcement-backdrop);\n -webkit-backdrop-filter: blur(6px);\n backdrop-filter: blur(6px);\n animation: release-announcement-backdrop-in 180ms ease-out;\n}\n\ndialog.release-announcement-dialog:focus {\n outline: none;\n}\n\n.release-announcement__header {\n display: grid;\n grid-template-columns: 1fr auto 1fr;\n align-items: center;\n gap: 12px;\n flex: none;\n padding: 16px 24px;\n border-bottom: 1px solid var(--settings-divider);\n}\n\n.release-announcement__title {\n grid-column: 2;\n justify-self: center;\n margin: 0;\n color: var(--settings-text);\n font-size: 17px;\n font-weight: 600;\n line-height: 24px;\n text-align: center;\n}\n\n.release-announcement__version-badge {\n display: inline-flex;\n align-items: center;\n flex: none;\n gap: 5px;\n padding: 3px 10px 3px 8px;\n color: var(--settings-text);\n font: inherit;\n font-size: 12.5px;\n font-weight: 500;\n line-height: 18px;\n font-variant-numeric: tabular-nums;\n background: var(--settings-surface);\n border-radius: 999px;\n}\n\n.release-announcement__version-badge .codexhost-settings-icon {\n flex: none;\n color: var(--settings-muted);\n}\n\n.release-announcement__header-badge {\n grid-column: 3;\n justify-self: end;\n}\n\n.release-announcement__body {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-height: 0;\n gap: 24px;\n padding: 26px 48px 28px;\n overflow-y: auto;\n overscroll-behavior: contain;\n -webkit-overflow-scrolling: touch;\n}\n\n.release-announcement__body > * {\n flex-shrink: 0;\n}\n\n.release-announcement__intro {\n display: grid;\n gap: 10px;\n}\n\n.release-announcement__meta {\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n gap: 8px 10px;\n}\n\n.release-announcement__date {\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 20px;\n}\n\n.release-announcement__summary {\n margin: 0;\n color: var(--settings-muted);\n font-size: 13px;\n line-height: 1.65;\n overflow-wrap: anywhere;\n}\n\n.release-announcement__themes {\n display: grid;\n gap: 22px;\n}\n\n.release-announcement__theme {\n display: grid;\n gap: 6px;\n}\n\n.release-announcement__theme-header {\n display: flex;\n align-items: baseline;\n justify-content: space-between;\n gap: 2px 20px;\n flex-wrap: wrap;\n}\n\n.release-announcement__theme-heading {\n display: inline-flex;\n align-items: baseline;\n min-width: 0;\n gap: 7px;\n}\n\n.release-announcement__theme-icon {\n flex: none;\n font-size: 14.5px;\n line-height: 1;\n}\n\n.release-announcement__theme-title {\n margin: 0;\n color: var(--settings-text);\n font-size: 14.5px;\n font-weight: 600;\n line-height: 22px;\n overflow-wrap: anywhere;\n}\n\n.release-announcement__theme-contributors {\n color: var(--settings-subtle);\n font-size: 12px;\n line-height: 18px;\n text-align: left;\n overflow-wrap: anywhere;\n}\n\n.release-announcement__theme-body {\n margin: 0;\n color: var(--settings-text);\n font-size: 13.5px;\n line-height: 1.72;\n overflow-wrap: anywhere;\n}\n\n.release-announcement__theme-body code,\n.release-announcement__summary code {\n padding: 1px 5px;\n color: var(--settings-text);\n font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;\n font-size: 12px;\n background: var(--settings-surface);\n border-radius: 5px;\n}\n\n.release-announcement__more {\n margin-top: 2px;\n}\n\n.release-announcement__full-link {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n color: var(--settings-muted);\n font-size: 12.5px;\n line-height: 18px;\n text-decoration: none;\n border-radius: 6px;\n}\n\n.release-announcement__full-link:hover {\n color: var(--settings-text);\n text-decoration: underline;\n text-underline-offset: 3px;\n}\n\n.release-announcement__footer {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: none;\n padding: 16px 24px 20px;\n border-top: 1px solid var(--settings-divider);\n}\n\n.release-announcement__acknowledge {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 112px;\n height: 36px;\n padding: 0 24px;\n color: var(--settings-text);\n font: inherit;\n font-size: 13.5px;\n font-weight: 500;\n white-space: nowrap;\n background: var(--announcement-button-bg);\n border: 1px solid var(--announcement-button-border);\n border-radius: 999px;\n cursor: pointer;\n}\n\n.release-announcement__acknowledge:hover {\n background: var(--announcement-button-hover);\n}\n\n.release-announcement__acknowledge:focus,\n.release-announcement__full-link:focus {\n outline: none;\n}\n\n.release-announcement__acknowledge:focus-visible,\n.release-announcement__full-link:focus-visible {\n outline: 1.5px solid var(--settings-focus);\n outline-offset: 2px;\n}\n\n@media (max-width: 600px) {\n dialog.release-announcement-dialog {\n width: calc(100vw - 20px);\n max-height: calc(100dvh - 24px);\n border-radius: 14px;\n }\n\n .release-announcement__header {\n padding: 14px 16px;\n }\n\n .release-announcement__title {\n font-size: 16px;\n }\n\n .release-announcement__body {\n gap: 20px;\n padding: 18px 20px 24px;\n }\n\n .release-announcement__themes {\n gap: 18px;\n }\n\n .release-announcement__theme-contributors {\n width: 100%;\n }\n\n .release-announcement__footer {\n padding: 14px 16px 18px;\n }\n\n .release-announcement__acknowledge {\n min-width: 148px;\n height: 38px;\n }\n}\n\n@media (prefers-reduced-motion: reduce) {\n dialog.release-announcement-dialog[open],\n dialog.release-announcement-dialog::backdrop {\n animation: none;\n }\n}\n';
37799
+
37800
+ // src/settings/release-announcement-dialog.ts
37801
+ var RELEASE_ANNOUNCEMENT_DIALOG_ATTRIBUTE = "data-codexhost-release-announcement-dialog";
37802
+ var INLINE_CODE_PATTERN = /(`+)((?:(?!\1).)+)\1/gu;
37803
+ function selectReleaseAnnouncementContent(announcement, locale) {
37804
+ if (locale === "zh-CN") {
37805
+ if (announcement.zh) return { language: "zh", content: announcement.zh };
37806
+ if (announcement.en) return { language: "en", content: announcement.en };
37807
+ return null;
37808
+ }
37809
+ if (announcement.en) return { language: "en", content: announcement.en };
37810
+ if (announcement.zh) return { language: "zh", content: announcement.zh };
37811
+ return null;
37812
+ }
37813
+ function formatReleaseAnnouncementDate(publishedAt, locale, timeZone) {
37814
+ const date5 = new Date(publishedAt);
37815
+ if (Number.isNaN(date5.getTime())) return "";
37816
+ try {
37817
+ const tag = locale === "zh-CN" ? "zh-CN" : "en-US";
37818
+ return new Intl.DateTimeFormat(tag, {
37819
+ year: "numeric",
37820
+ month: "long",
37821
+ day: "numeric",
37822
+ ...timeZone ? { timeZone } : {}
37823
+ }).format(date5);
37824
+ } catch {
37825
+ return publishedAt.slice(0, 10);
37826
+ }
37827
+ }
37828
+ function formatReleaseAnnouncementContributors(contributors) {
37829
+ const formatted = [];
37830
+ for (const raw of contributors) {
37831
+ const name = raw.trim().replace(/^@+/u, "");
37832
+ if (name.length > 0) formatted.push(name);
37833
+ }
37834
+ return formatted.join(" \xB7 ");
37835
+ }
37836
+ function appendInlineCode(ownerDocument, parent, text2) {
37837
+ let lastIndex = 0;
37838
+ for (const match of text2.matchAll(INLINE_CODE_PATTERN)) {
37839
+ const index = match.index ?? 0;
37840
+ if (index > lastIndex) parent.append(text2.slice(lastIndex, index));
37841
+ const code = ownerDocument.createElement("code");
37842
+ code.textContent = match[2] ?? "";
37843
+ parent.append(code);
37844
+ lastIndex = index + match[0].length;
37845
+ }
37846
+ if (lastIndex < text2.length) parent.append(text2.slice(lastIndex));
37847
+ }
37848
+ function isSafeHttpsUrl(value) {
37849
+ try {
37850
+ return new URL(value).protocol === "https:";
37851
+ } catch {
37852
+ return false;
37853
+ }
37854
+ }
37855
+ function openReleaseAnnouncementDialog(options) {
37856
+ const ownerDocument = options.ownerDocument ?? document;
37857
+ if (!ownerDocument.body) return null;
37858
+ const selected = selectReleaseAnnouncementContent(options.announcement, options.locale);
37859
+ if (!selected) return null;
37860
+ const existing = ownerDocument.querySelector(`[${RELEASE_ANNOUNCEMENT_DIALOG_ATTRIBUTE}]`);
37861
+ if (existing) existing.remove();
37862
+ const messages = rendererSettingsMessages(options.locale);
37863
+ const versionLabel = `v${options.announcement.version}`;
37864
+ const publishedDate = formatReleaseAnnouncementDate(
37865
+ options.announcement.publishedAt,
37866
+ options.locale
37867
+ );
37868
+ const { content } = selected;
37869
+ const root = ownerDocument.createElement("div");
37870
+ root.setAttribute(RELEASE_ANNOUNCEMENT_DIALOG_ATTRIBUTE, "v1");
37871
+ root.lang = options.locale;
37872
+ root.style.colorScheme = options.colorScheme ?? "inherit";
37873
+ const shadow = root.attachShadow({ mode: "open" });
37874
+ const style2 = ownerDocument.createElement("style");
37875
+ style2.textContent = release_announcement_dialog_default;
37876
+ const dialog = ownerDocument.createElement("dialog");
37877
+ dialog.className = "release-announcement-dialog";
37878
+ dialog.tabIndex = -1;
37879
+ dialog.setAttribute("aria-modal", "true");
37880
+ const createVersionBadge = (extraClassName) => {
37881
+ const badge = ownerDocument.createElement("span");
37882
+ badge.className = extraClassName ? `release-announcement__version-badge ${extraClassName}` : "release-announcement__version-badge";
37883
+ const glyph = createRendererSettingsBrandGlyph(14);
37884
+ const label = ownerDocument.createElement("span");
37885
+ label.textContent = versionLabel;
37886
+ badge.append(glyph, label);
37887
+ return badge;
37888
+ };
37889
+ const titleId = "codexhost-release-announcement-title";
37890
+ const header = ownerDocument.createElement("header");
37891
+ header.className = "release-announcement__header";
37892
+ const title = ownerDocument.createElement("h2");
37893
+ title.className = "release-announcement__title";
37894
+ title.id = titleId;
37895
+ title.textContent = messages.releaseAnnouncement.title;
37896
+ dialog.setAttribute("aria-labelledby", titleId);
37897
+ const headerBadge = createVersionBadge("release-announcement__header-badge");
37898
+ header.append(title, headerBadge);
37899
+ const body = ownerDocument.createElement("div");
37900
+ body.className = "release-announcement__body";
37901
+ body.lang = selected.language === "zh" ? "zh-CN" : "en";
37902
+ const intro = ownerDocument.createElement("div");
37903
+ intro.className = "release-announcement__intro";
37904
+ const meta3 = ownerDocument.createElement("div");
37905
+ meta3.className = "release-announcement__meta";
37906
+ meta3.append(createVersionBadge());
37907
+ if (publishedDate) {
37908
+ const dateElement = ownerDocument.createElement("time");
37909
+ dateElement.className = "release-announcement__date";
37910
+ dateElement.dateTime = options.announcement.publishedAt;
37911
+ dateElement.textContent = publishedDate;
37912
+ meta3.append(dateElement);
37913
+ }
37914
+ intro.append(meta3);
37915
+ if (content.summary) {
37916
+ const summary = ownerDocument.createElement("p");
37917
+ summary.className = "release-announcement__summary";
37918
+ appendInlineCode(ownerDocument, summary, content.summary);
37919
+ intro.append(summary);
37920
+ }
37921
+ body.append(intro);
37922
+ const themes = ownerDocument.createElement("div");
37923
+ themes.className = "release-announcement__themes";
37924
+ for (const theme of content.themes) {
37925
+ const card = ownerDocument.createElement("article");
37926
+ card.className = "release-announcement__theme";
37927
+ const themeHeader = ownerDocument.createElement("div");
37928
+ themeHeader.className = "release-announcement__theme-header";
37929
+ const heading = ownerDocument.createElement("div");
37930
+ heading.className = "release-announcement__theme-heading";
37931
+ if (theme.icon) {
37932
+ const icon = ownerDocument.createElement("span");
37933
+ icon.className = "release-announcement__theme-icon";
37934
+ icon.setAttribute("aria-hidden", "true");
37935
+ icon.textContent = theme.icon;
37936
+ heading.append(icon);
37937
+ }
37938
+ const themeTitle = ownerDocument.createElement("h3");
37939
+ themeTitle.className = "release-announcement__theme-title";
37940
+ themeTitle.textContent = theme.title;
37941
+ heading.append(themeTitle);
37942
+ themeHeader.append(heading);
37943
+ const contributorsText = formatReleaseAnnouncementContributors(theme.contributors);
37944
+ if (contributorsText) {
37945
+ const contributors = ownerDocument.createElement("span");
37946
+ contributors.className = "release-announcement__theme-contributors";
37947
+ contributors.textContent = contributorsText;
37948
+ themeHeader.append(contributors);
37949
+ }
37950
+ const themeBody = ownerDocument.createElement("p");
37951
+ themeBody.className = "release-announcement__theme-body";
37952
+ appendInlineCode(ownerDocument, themeBody, theme.body);
37953
+ card.append(themeHeader, themeBody);
37954
+ themes.append(card);
37955
+ }
37956
+ body.append(themes);
37957
+ if (isSafeHttpsUrl(options.announcement.url)) {
37958
+ const more = ownerDocument.createElement("div");
37959
+ more.className = "release-announcement__more";
37960
+ const fullLink = ownerDocument.createElement("a");
37961
+ fullLink.className = "release-announcement__full-link";
37962
+ fullLink.href = options.announcement.url;
37963
+ fullLink.target = "_blank";
37964
+ fullLink.rel = "noopener noreferrer";
37965
+ fullLink.append(
37966
+ messages.releaseAnnouncement.fullNotes,
37967
+ createRendererSettingsIcon("external-link", 13)
37968
+ );
37969
+ more.append(fullLink);
37970
+ body.append(more);
37971
+ }
37972
+ const footer = ownerDocument.createElement("footer");
37973
+ footer.className = "release-announcement__footer";
37974
+ const acknowledgeButton = ownerDocument.createElement("button");
37975
+ acknowledgeButton.type = "button";
37976
+ acknowledgeButton.className = "release-announcement__acknowledge";
37977
+ acknowledgeButton.textContent = messages.releaseAnnouncement.acknowledge;
37978
+ footer.append(acknowledgeButton);
37979
+ dialog.append(header, body, footer);
37980
+ shadow.append(style2, dialog);
37981
+ let closed = false;
37982
+ const finish = (notifyUserClose) => {
37983
+ if (closed) return;
37984
+ closed = true;
37985
+ ownerDocument.removeEventListener("keydown", onDocumentKeyDown, true);
37986
+ if (dialog.open) {
37987
+ try {
37988
+ dialog.close();
37989
+ } catch {
37990
+ }
37991
+ }
37992
+ root.remove();
37993
+ if (notifyUserClose) options.onClose?.();
37994
+ };
37995
+ const onDocumentKeyDown = (event) => {
37996
+ if (event.key !== "Escape") return;
37997
+ event.preventDefault();
37998
+ event.stopPropagation();
37999
+ finish(true);
38000
+ };
38001
+ acknowledgeButton.addEventListener("click", () => finish(true));
38002
+ dialog.addEventListener("cancel", (event) => {
38003
+ event.preventDefault();
38004
+ finish(true);
38005
+ });
38006
+ dialog.addEventListener("close", () => finish(true));
38007
+ ownerDocument.addEventListener("keydown", onDocumentKeyDown, true);
38008
+ ownerDocument.body.append(root);
38009
+ if (typeof dialog.showModal === "function") {
38010
+ dialog.showModal();
38011
+ } else {
38012
+ dialog.setAttribute("open", "");
38013
+ }
38014
+ dialog.focus({ preventScroll: true });
38015
+ return {
38016
+ root,
38017
+ dialog,
38018
+ setColorScheme(colorScheme2) {
38019
+ root.style.colorScheme = colorScheme2;
38020
+ },
38021
+ close() {
38022
+ finish(true);
38023
+ },
38024
+ dispose() {
38025
+ finish(false);
38026
+ }
38027
+ };
38028
+ }
38029
+
37516
38030
  // src/settings/account-privacy.ts
37517
38031
  var EMAIL_PATTERN = /([^\s@]+)@([^\s@]+\.[^\s@]+)/gu;
37518
38032
  var MASK = "****";
@@ -37522,14 +38036,14 @@ ${error51.stderrTail}`] : []
37522
38036
  if (chars.length <= 4) return `${chars[0]}${MASK}${chars.length > 2 ? chars.at(-1) : ""}`;
37523
38037
  return `${chars.slice(0, 2).join("")}${MASK}${chars.slice(-2).join("")}`;
37524
38038
  }
37525
- function maskEmails(text) {
37526
- return text.replace(
38039
+ function maskEmails(text2) {
38040
+ return text2.replace(
37527
38041
  EMAIL_PATTERN,
37528
38042
  (_match, local, domain2) => `${maskEmailLocalPart(local)}@${domain2}`
37529
38043
  );
37530
38044
  }
37531
- function accountDisplayText(text, hideEmails) {
37532
- return hideEmails ? maskEmails(text) : text;
38045
+ function accountDisplayText(text2, hideEmails) {
38046
+ return hideEmails ? maskEmails(text2) : text2;
37533
38047
  }
37534
38048
 
37535
38049
  // src/settings/credential-imports.ts
@@ -37571,7 +38085,7 @@ ${error51.stderrTail}`] : []
37571
38085
  let othersExpanded = false;
37572
38086
  let sectionExpanded = true;
37573
38087
  let hideEmails = false;
37574
- const shown = (text) => accountDisplayText(text, hideEmails);
38088
+ const shown = (text2) => accountDisplayText(text2, hideEmails);
37575
38089
  const targetButtons = /* @__PURE__ */ new Map();
37576
38090
  const importedRecords = () => snapshot.targets.find((target2) => target2.harnessId === TARGET_HARNESS_ID)?.imports ?? [];
37577
38091
  const sourceOf = (record3) => snapshot.sources.find((source) => source.id === record3.source.id);
@@ -37648,9 +38162,9 @@ ${error51.stderrTail}`] : []
37648
38162
  });
37649
38163
  section.append(sectionHeader, card);
37650
38164
  const rows = /* @__PURE__ */ new Map();
37651
- const metaPart = (text, className, code = false) => {
38165
+ const metaPart = (text2, className, code = false) => {
37652
38166
  const part = document2.createElement(code ? "code" : "span");
37653
- part.textContent = text;
38167
+ part.textContent = text2;
37654
38168
  if (className) part.className = className;
37655
38169
  return part;
37656
38170
  };
@@ -37829,10 +38343,10 @@ ${error51.stderrTail}`] : []
37829
38343
  let nameEdited = false;
37830
38344
  let sourceRadios = [];
37831
38345
  let refreshPreview = () => void 0;
37832
- const command = (text, onClick, variant = "secondary") => {
38346
+ const command = (text2, onClick, variant = "secondary") => {
37833
38347
  const button2 = document2.createElement("button");
37834
38348
  button2.type = "button";
37835
- button2.textContent = text;
38349
+ button2.textContent = text2;
37836
38350
  button2.className = variant === "primary" ? "settings-command-button" : variant === "danger" ? "settings-command-button settings-command-button--secondary settings-command-button--danger" : "settings-command-button settings-command-button--secondary";
37837
38351
  button2.addEventListener("click", () => void onClick());
37838
38352
  return button2;
@@ -37847,9 +38361,9 @@ ${error51.stderrTail}`] : []
37847
38361
  row.append(key2, content);
37848
38362
  return row;
37849
38363
  };
37850
- const note = (text) => {
38364
+ const note = (text2) => {
37851
38365
  const paragraph = document2.createElement("p");
37852
- paragraph.textContent = text;
38366
+ paragraph.textContent = text2;
37853
38367
  return paragraph;
37854
38368
  };
37855
38369
  const sourcePicker = (choices) => {
@@ -37935,27 +38449,27 @@ ${error51.stderrTail}`] : []
37935
38449
  const choices = mode === "add" && state.choose ? compatibleSources() : [];
37936
38450
  if (choices.length > 1) body.append(sourcePicker(choices));
37937
38451
  else if (active2) body.append(line(messages.source, shown(active2.label)));
37938
- const input = document2.createElement("input");
37939
- input.type = "text";
37940
- input.maxLength = 48;
37941
- input.autocomplete = "off";
37942
- input.spellcheck = false;
37943
- input.value = record3?.name ?? (source ? defaultImportName(source, importedRecords()) : "codex");
37944
- input.readOnly = Boolean(record3);
37945
- input.addEventListener("input", () => {
38452
+ const input2 = document2.createElement("input");
38453
+ input2.type = "text";
38454
+ input2.maxLength = 48;
38455
+ input2.autocomplete = "off";
38456
+ input2.spellcheck = false;
38457
+ input2.value = record3?.name ?? (source ? defaultImportName(source, importedRecords()) : "codex");
38458
+ input2.readOnly = Boolean(record3);
38459
+ input2.addEventListener("input", () => {
37946
38460
  nameEdited = true;
37947
38461
  });
37948
- nameInput = input;
38462
+ nameInput = input2;
37949
38463
  const label = document2.createElement("label");
37950
38464
  label.className = "settings-credential-dialog__field";
37951
38465
  const caption = document2.createElement("span");
37952
38466
  caption.textContent = messages.name;
37953
- label.append(caption, input);
38467
+ label.append(caption, input2);
37954
38468
  const preview = note("");
37955
38469
  const update = () => {
37956
- preview.textContent = (mode === "reimport" ? messages.reimportPreview : messages.preview).replace("{name}", input.value);
38470
+ preview.textContent = (mode === "reimport" ? messages.reimportPreview : messages.preview).replace("{name}", input2.value);
37957
38471
  };
37958
- input.addEventListener("input", update);
38472
+ input2.addEventListener("input", update);
37959
38473
  refreshPreview = update;
37960
38474
  update();
37961
38475
  body.append(label, preview, note(messages.warning));
@@ -37966,16 +38480,16 @@ ${error51.stderrTail}`] : []
37966
38480
  async () => {
37967
38481
  const source2 = state.source;
37968
38482
  if (!source2) return;
37969
- if (!credentialImportNameSchema.safeParse(input.value).success) {
38483
+ if (!credentialImportNameSchema.safeParse(input2.value).success) {
37970
38484
  error51.textContent = messages.invalidName;
37971
- input.focus();
38485
+ input2.focus();
37972
38486
  return;
37973
38487
  }
37974
38488
  await submit(
37975
38489
  {
37976
38490
  action: mode === "reimport" ? "reimport" : "import",
37977
38491
  sourceId: source2.id,
37978
- name: record3?.name ?? input.value,
38492
+ name: record3?.name ?? input2.value,
37979
38493
  confirmed: true
37980
38494
  },
37981
38495
  "done"
@@ -37984,7 +38498,7 @@ ${error51.stderrTail}`] : []
37984
38498
  "primary"
37985
38499
  )
37986
38500
  );
37987
- (mode === "add" ? input : controls.children[0]).focus();
38501
+ (mode === "add" ? input2 : controls.children[0]).focus();
37988
38502
  } else if (mode === "remove" && record3) {
37989
38503
  title.textContent = messages.remove;
37990
38504
  modal.setAttribute("aria-label", title.textContent);
@@ -38552,23 +39066,23 @@ ${error51.stderrTail}`] : []
38552
39066
  table.append(columns, head, body);
38553
39067
  return { table, body, updateDisplay };
38554
39068
  }
38555
- function createAccountPerson(document2, messages, input) {
39069
+ function createAccountPerson(document2, messages, input2) {
38556
39070
  const person = document2.createElement("div");
38557
39071
  person.className = "settings-account-row__person";
38558
39072
  const identity2 = document2.createElement("div");
38559
39073
  identity2.className = "settings-account-row__identity";
38560
39074
  const title = document2.createElement("strong");
38561
39075
  title.className = "settings-account-email";
38562
- title.textContent = input.name;
38563
- title.title = input.name;
39076
+ title.textContent = input2.name;
39077
+ title.title = input2.name;
38564
39078
  title.translate = false;
38565
39079
  const metadata = document2.createElement("div");
38566
39080
  metadata.className = "settings-account-metadata";
38567
39081
  const agent = document2.createElement("span");
38568
- agent.textContent = input.agent;
39082
+ agent.textContent = input2.agent;
38569
39083
  agent.translate = false;
38570
- if (input.name !== input.agent) metadata.append(agent);
38571
- if (input.plan) {
39084
+ if (input2.name !== input2.agent) metadata.append(agent);
39085
+ if (input2.plan) {
38572
39086
  if (metadata.childElementCount) {
38573
39087
  const separator = document2.createElement("span");
38574
39088
  separator.textContent = "\xB7";
@@ -38576,12 +39090,12 @@ ${error51.stderrTail}`] : []
38576
39090
  metadata.append(separator);
38577
39091
  }
38578
39092
  const plan = document2.createElement("span");
38579
- plan.className = input.highlighted ? "settings-account-plan settings-account-plan--highlighted" : "settings-account-plan";
38580
- plan.textContent = input.plan;
39093
+ plan.className = input2.highlighted ? "settings-account-plan settings-account-plan--highlighted" : "settings-account-plan";
39094
+ plan.textContent = input2.plan;
38581
39095
  plan.translate = false;
38582
39096
  metadata.append(plan);
38583
39097
  }
38584
- if (input.active) {
39098
+ if (input2.active) {
38585
39099
  const badge = document2.createElement("span");
38586
39100
  badge.className = "settings-account-active";
38587
39101
  badge.textContent = messages.accountDefaultBadge;
@@ -38590,7 +39104,7 @@ ${error51.stderrTail}`] : []
38590
39104
  }
38591
39105
  identity2.append(title);
38592
39106
  if (metadata.childElementCount) identity2.append(metadata);
38593
- person.append(input.mark, identity2);
39107
+ person.append(input2.mark, identity2);
38594
39108
  return person;
38595
39109
  }
38596
39110
  function appendAccountExtras(cell, items) {
@@ -38618,13 +39132,13 @@ ${error51.stderrTail}`] : []
38618
39132
  cell.append(root);
38619
39133
  return { cells: [cell], continuationCells: [] };
38620
39134
  }
38621
- function renderAccountRows(document2, account, messages, input) {
39135
+ function renderAccountRows(document2, account, messages, input2) {
38622
39136
  const row = document2.createElement("tr");
38623
39137
  row.className = "settings-account-row";
38624
39138
  row.dataset.accountId = account.accountId;
38625
39139
  row.dataset.accountFocus = `${account.accountId}:row`;
38626
39140
  row.tabIndex = -1;
38627
- const name = accountDisplayText(codexAccountDisplayName(account).full, input.hideEmails === true);
39141
+ const name = accountDisplayText(codexAccountDisplayName(account).full, input2.hideEmails === true);
38628
39142
  row.setAttribute("aria-label", name);
38629
39143
  const personCell = document2.createElement("td");
38630
39144
  personCell.className = "settings-account-person-cell";
@@ -38639,16 +39153,16 @@ ${error51.stderrTail}`] : []
38639
39153
  agent: "Codex",
38640
39154
  plan: accountPlanLabel(account.planType),
38641
39155
  highlighted: account.planType === "pro" || account.planType === "prolite",
38642
- active: input.current,
39156
+ active: input2.current,
38643
39157
  mark
38644
39158
  })
38645
39159
  );
38646
39160
  const usage = renderAccountUsage(
38647
39161
  document2,
38648
- input.usage,
39162
+ input2.usage,
38649
39163
  messages,
38650
- input.display,
38651
- input.onRetry,
39164
+ input2.display,
39165
+ input2.onRetry,
38652
39166
  account.planType === "pro" ? "weekly-only" : "all"
38653
39167
  );
38654
39168
  const continuationRows = usage.continuationCells.map((cells) => {
@@ -38663,28 +39177,28 @@ ${error51.stderrTail}`] : []
38663
39177
  personCell.className += " settings-account-spanning-cell";
38664
39178
  }
38665
39179
  row.append(personCell, ...usage.cells);
38666
- const reset = input.usage?.status === "ready" ? renderAccountResetCredits(document2, input.usage.credits, messages) : null;
39180
+ const reset = input2.usage?.status === "ready" ? renderAccountResetCredits(document2, input2.usage.credits, messages) : null;
38667
39181
  if (!reset) {
38668
- appendAccountExtras(personCell, [input.importAction]);
39182
+ appendAccountExtras(personCell, [input2.importAction]);
38669
39183
  return [row, ...continuationRows];
38670
39184
  }
38671
39185
  const detailsRow = document2.createElement("tr");
38672
39186
  detailsRow.className = "settings-account-details-row";
38673
39187
  detailsRow.id = `settings-account-reset-${++resetDetailsSequence}`;
38674
- detailsRow.hidden = !input.resetExpanded;
39188
+ detailsRow.hidden = !input2.resetExpanded;
38675
39189
  const detailsCell = document2.createElement("td");
38676
39190
  detailsCell.colSpan = 3;
38677
39191
  detailsCell.append(reset.details);
38678
39192
  detailsRow.append(detailsCell);
38679
39193
  reset.summary.dataset.accountFocus = `${account.accountId}:reset`;
38680
39194
  reset.summary.setAttribute("aria-controls", detailsRow.id);
38681
- reset.summary.setAttribute("aria-expanded", String(input.resetExpanded));
39195
+ reset.summary.setAttribute("aria-expanded", String(input2.resetExpanded));
38682
39196
  reset.summary.addEventListener("click", () => {
38683
39197
  detailsRow.hidden = !detailsRow.hidden;
38684
39198
  reset.summary.setAttribute("aria-expanded", String(!detailsRow.hidden));
38685
- input.onResetExpanded(!detailsRow.hidden);
39199
+ input2.onResetExpanded(!detailsRow.hidden);
38686
39200
  });
38687
- appendAccountExtras(personCell, [reset.summary, input.importAction]);
39201
+ appendAccountExtras(personCell, [reset.summary, input2.importAction]);
38688
39202
  return [row, ...continuationRows, detailsRow];
38689
39203
  }
38690
39204
  function renderHarnessAccountRows(document2, account, messages, display, importAction, hideEmails = false, plugin) {
@@ -39926,8 +40440,8 @@ ${error51.stderrTail}`] : []
39926
40440
  const ids = ["codex", second, third];
39927
40441
  return ids.map((id2, index) => {
39928
40442
  const tag = `#${id2}`;
39929
- const text = copy.exampleTasks[index] ?? copy.exampleTasks[0];
39930
- return { tag, text, full: `${tag} ${text}` };
40443
+ const text2 = copy.exampleTasks[index] ?? copy.exampleTasks[0];
40444
+ return { tag, text: text2, full: `${tag} ${text2}` };
39931
40445
  });
39932
40446
  }
39933
40447
  function setSelectOptions(doc, select, options, selectedValue) {
@@ -40386,9 +40900,9 @@ ${error51.stderrTail}`] : []
40386
40900
  retry.className = "settings-delegation__retry-link";
40387
40901
  retry.textContent = copy.retry;
40388
40902
  retry.addEventListener("click", () => ensureCatalog(harnessId, true));
40389
- const text = doc.createElement("span");
40390
- text.textContent = copy.loadFailed;
40391
- view.feedback.replaceChildren(text, retry);
40903
+ const text2 = doc.createElement("span");
40904
+ text2.textContent = copy.loadFailed;
40905
+ view.feedback.replaceChildren(text2, retry);
40392
40906
  } else if (saveError) {
40393
40907
  view.feedback.hidden = false;
40394
40908
  toggleClass2(view.feedback, "is-error", true);
@@ -40831,9 +41345,38 @@ ${error51.stderrTail}`] : []
40831
41345
  mount(context) {
40832
41346
  const document2 = context.content.ownerDocument;
40833
41347
  const windows = isWindowsRenderer(document2.defaultView);
41348
+ const header = document2.createElement("div");
41349
+ header.className = "settings-update-header";
40834
41350
  const heading = document2.createElement("div");
40835
41351
  heading.className = "settings-section-label";
40836
41352
  heading.textContent = messages.pageLabels.updates;
41353
+ const announcementButton = document2.createElement("button");
41354
+ announcementButton.type = "button";
41355
+ announcementButton.className = "settings-command-button settings-command-button--secondary";
41356
+ announcementButton.hidden = true;
41357
+ announcementButton.append(
41358
+ createRendererSettingsIcon("sparkles", 14),
41359
+ messages.updateViewAnnouncement
41360
+ );
41361
+ header.append(heading, announcementButton);
41362
+ let currentAnnouncement = null;
41363
+ let announcementDialog = null;
41364
+ announcementButton.addEventListener("click", () => {
41365
+ if (!currentAnnouncement || context.signal.aborted) return;
41366
+ const rootNode = context.content.getRootNode();
41367
+ const hostScheme = rootNode instanceof ShadowRoot && rootNode.host instanceof HTMLElement ? rootNode.host.style.colorScheme : "";
41368
+ const colorScheme2 = hostScheme === "light" || hostScheme === "dark" ? hostScheme : "inherit";
41369
+ announcementDialog?.dispose();
41370
+ announcementDialog = openReleaseAnnouncementDialog({
41371
+ announcement: currentAnnouncement,
41372
+ locale: messages.locale,
41373
+ ownerDocument: document2,
41374
+ colorScheme: colorScheme2,
41375
+ onClose() {
41376
+ announcementDialog = null;
41377
+ }
41378
+ });
41379
+ });
40837
41380
  const metadata = document2.createElement("div");
40838
41381
  metadata.className = "settings-update-metadata";
40839
41382
  const createMetadataItem = (label) => {
@@ -40930,7 +41473,7 @@ ${error51.stderrTail}`] : []
40930
41473
  const notes = document2.createElement("div");
40931
41474
  notes.className = "settings-update-notes-section";
40932
41475
  const starBanner = updateStarBanner(document2, messages);
40933
- context.content.append(heading, metadata, panel, controls, starBanner, notes);
41476
+ context.content.append(header, metadata, panel, controls, starBanner, notes);
40934
41477
  const setManualFallback = (fallback) => {
40935
41478
  controls.className = fallback ? "settings-update-controls" : "settings-update-controls is-quiet";
40936
41479
  manualNpmDescription.textContent = fallback ? messages.updateManualFallbackDescription : messages.updateManualNpmDescription;
@@ -41141,8 +41684,23 @@ ${error51.stderrTail}`] : []
41141
41684
  }
41142
41685
  );
41143
41686
  };
41687
+ const loadAnnouncement = () => {
41688
+ const client = getClient();
41689
+ if (!client?.getReleaseAnnouncement) return;
41690
+ void client.getReleaseAnnouncement({ manual: true }).then((result) => {
41691
+ if (context.signal.aborted || !result?.announcement) return;
41692
+ currentAnnouncement = result.announcement;
41693
+ announcementButton.hidden = false;
41694
+ }).catch(() => {
41695
+ });
41696
+ };
41144
41697
  void load();
41145
- return () => statusPoll.dispose();
41698
+ loadAnnouncement();
41699
+ return () => {
41700
+ announcementDialog?.dispose();
41701
+ announcementDialog = null;
41702
+ statusPoll.dispose();
41703
+ };
41146
41704
  }
41147
41705
  });
41148
41706
  }
@@ -42812,6 +43370,19 @@ ${error51.stderrTail}`] : []
42812
43370
  border-radius: 20px;
42813
43371
  }
42814
43372
 
43373
+ .settings-update-header {
43374
+ display: flex;
43375
+ align-items: center;
43376
+ justify-content: space-between;
43377
+ gap: 12px 16px;
43378
+ flex-wrap: wrap;
43379
+ margin-bottom: 18px;
43380
+ }
43381
+
43382
+ .settings-update-header .settings-section-label {
43383
+ padding-bottom: 0;
43384
+ }
43385
+
42815
43386
  .settings-update-metadata {
42816
43387
  display: flex;
42817
43388
  flex-wrap: wrap;