dsh-client-auto-continue 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -76,6 +76,7 @@ var DEFAULT_CONFIG = {
76
76
  backoffMaxMs: 3e5,
77
77
  notify: false,
78
78
  paused: false,
79
+ showComposerToggle: true,
79
80
  loopGuard: true,
80
81
  loopShortChars: 40,
81
82
  loopWindowMs: 3e4,
@@ -108,6 +109,12 @@ var zh = {
108
109
  "section.live.title": "现场状态",
109
110
  "section.live.description": "看看今天接住了多少次,以及哪些会话还在暂停。",
110
111
  "field.paused": "暂停自动继续",
112
+ "field.showComposerToggle": "在会话区显示自动继续开关",
113
+ "field.showComposerToggleHint": "默认显示。隐藏开关不会暂停自动继续;点击保存后生效。",
114
+ "composer.label": "自动继续",
115
+ "composer.scope": "控制当前配置下所有会话的自动继续,修改立即保存。",
116
+ "composer.saving": "正在保存自动继续设置…",
117
+ "composer.saveFailed": "保存失败,请重试",
111
118
  "field.pausedHint": "全局暂停: 实时与扫描都不会再自动发送, 已排队的待发送也会取消。",
112
119
  "field.continueText": "继续文本",
113
120
  "field.continueTextHint": "中断后自动发送的消息内容。",
@@ -224,6 +231,12 @@ var en = {
224
231
  "section.live.title": "Live signal",
225
232
  "section.live.description": "See what the relay caught today and which sessions are still paused.",
226
233
  "field.paused": "Pause auto-continue",
234
+ "field.showComposerToggle": "Show auto-continue switch in the composer",
235
+ "field.showComposerToggleHint": "Shown by default. Hiding the switch does not pause auto-continue. Click Save to apply.",
236
+ "composer.label": "Auto-continue",
237
+ "composer.scope": "Controls auto-continue for all sessions in this profile. Changes save immediately.",
238
+ "composer.saving": "Saving auto-continue setting…",
239
+ "composer.saveFailed": "Could not save. Try again.",
227
240
  "field.pausedHint": "Globally pause: no live or scan auto-send fires, and queued pending sends are cancelled.",
228
241
  "field.continueText": "Continue text",
229
242
  "field.continueTextHint": "Message automatically sent after an interruption.",
@@ -323,6 +336,34 @@ var en = {
323
336
  // src/client/settings-card.tsx
324
337
  var import_react = require("react");
325
338
 
339
+ // src/client/native-switch.tsx
340
+ var import_jsx_runtime = require("react/jsx-runtime");
341
+ function legacySwitch(props) {
342
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
343
+ "button",
344
+ {
345
+ type: "button",
346
+ role: "switch",
347
+ className: "dshAcSwitch",
348
+ "aria-checked": props.checked,
349
+ "aria-label": props.label,
350
+ disabled: props.disabled,
351
+ title: props.title,
352
+ onClick: () => props.onChange(!props.checked),
353
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {})
354
+ }
355
+ );
356
+ }
357
+ function resolveSwitch() {
358
+ try {
359
+ const { Switch } = require("@deepseek-ai/dsh-client-ui-primitives");
360
+ if (typeof Switch === "function") return Switch;
361
+ } catch {
362
+ }
363
+ return legacySwitch;
364
+ }
365
+ var NativeSwitch = resolveSwitch();
366
+
326
367
  // src/client/dsh-store-compat.ts
327
368
  function resolveSnapshotStore() {
328
369
  const current = ["@deepseek-ai/dsh-client", "-store"].join("");
@@ -580,7 +621,7 @@ var CardForm = class {
580
621
  const plan = this.plan();
581
622
  const writes = plan.flatMap((item) => item.run === void 0 ? [] : [item.run]);
582
623
  if (plan.length === 0 || this.saving || writes.length !== plan.length) return;
583
- const fields = new Set(plan.map((item) => item.field));
624
+ const edits = plan.map(({ field, staged }) => ({ field, staged }));
584
625
  this.saving = true;
585
626
  this.failed = false;
586
627
  this.publish();
@@ -589,7 +630,9 @@ var CardForm = class {
589
630
  landed = await write() && landed;
590
631
  }
591
632
  if (landed) {
592
- for (const field of fields) this.staged.delete(field);
633
+ for (const { field, staged } of edits) {
634
+ if (this.staged.get(field) === staged) this.staged.delete(field);
635
+ }
593
636
  }
594
637
  this.saving = false;
595
638
  this.failed = !landed;
@@ -606,14 +649,14 @@ var CardForm = class {
606
649
  for (const [field, staged] of this.staged) {
607
650
  const spec = this.specOf(field);
608
651
  if (staged.clear) {
609
- if (this.stored(field)) plan.push({ field, run: () => this.clear(field) });
652
+ if (this.stored(field)) plan.push({ field, staged, run: () => this.clear(field) });
610
653
  continue;
611
654
  }
612
655
  if (staged.text === spec.format(this.sectionValue(field))) continue;
613
656
  const write = spec.parse(staged.text);
614
- if (write === void 0) plan.push({ field, run: void 0 });
615
- else if (write.kind === "clear") plan.push({ field, run: () => this.clear(field) });
616
- else plan.push({ field, run: () => this.store(field, write.value) });
657
+ if (write === void 0) plan.push({ field, staged, run: void 0 });
658
+ else if (write.kind === "clear") plan.push({ field, staged, run: () => this.clear(field) });
659
+ else plan.push({ field, staged, run: () => this.store(field, write.value) });
617
660
  }
618
661
  return plan;
619
662
  }
@@ -655,6 +698,20 @@ var CardForm = class {
655
698
 
656
699
  // src/client/styles.ts
657
700
  var css = `
701
+ .dshAcComposer { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; flex: 0 0 auto; font: inherit; }
702
+ .dshAcComposerLabel { color: var(--dsw-alias-label-secondary); font-size: 12px; white-space: nowrap; }
703
+ .dshAcSwitchTarget { display: inline-flex; align-items: center; min-height: 32px; }
704
+ .dshAcSwitchTarget > button { position: relative; }
705
+ .dshAcSwitchTarget > button::before { content: ''; position: absolute; inset: -6px -3px; }
706
+ .dshAcComposerError { color: var(--dsw-alias-state-error-primary, var(--dsw-alias-label-secondary)); font-size: 12px; max-width: 160px; }
707
+ .dshAcComposerError:empty { display: none; }
708
+ .dshAcSwitch { position: relative; box-sizing: border-box; flex: none; width: 36px; height: 20px; padding: 2px; border: 0; border-radius: 999px; background: var(--dsw-alias-border-l3); cursor: pointer; }
709
+ .dshAcSwitch[aria-checked='true'] { background: var(--dsw-alias-brand-primary); }
710
+ .dshAcSwitch > span { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--dsw-alias-label-primary-foreground); }
711
+ .dshAcSwitch[aria-checked='true'] > span { transform: translateX(16px); }
712
+ .dshAcSwitch[aria-checked='false'] > span { background: var(--dsw-alias-switch-thumb, var(--dsw-alias-label-primary-foreground)); }
713
+ .dshAcSwitch:disabled { opacity: .5; cursor: default; }
714
+ .dshAcSwitch:focus-visible { outline: 2px solid var(--dsw-alias-brand-primary); outline-offset: 2px; }
658
715
  .dshAcCard {
659
716
  --dsh-ac-violet: #8b7cff;
660
717
  --dsh-ac-cyan: #45cce5;
@@ -1055,15 +1112,20 @@ function injectStyles() {
1055
1112
  }
1056
1113
 
1057
1114
  // src/client/settings-card.tsx
1058
- var import_jsx_runtime = require("react/jsx-runtime");
1115
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1059
1116
  injectStyles();
1060
1117
  var AutoContinueSettingsCardController = class {
1061
1118
  /**
1062
1119
  * @param scope - the bound settings scope for the `auto-continue` namespace.
1063
1120
  */
1064
1121
  constructor(scope) {
1122
+ this.scope = scope;
1123
+ this.composerSaving = false;
1124
+ this.composerFailed = false;
1125
+ this.disposed = false;
1065
1126
  this.form = new CardForm(scope, [
1066
1127
  booleanField("paused"),
1128
+ booleanField("showComposerToggle"),
1067
1129
  textField("continueText"),
1068
1130
  textField("continueTextMaxTokens"),
1069
1131
  booleanField("resumeSilentTurns"),
@@ -1094,11 +1156,13 @@ var AutoContinueSettingsCardController = class {
1094
1156
  textField("loopText")
1095
1157
  ]);
1096
1158
  this.store = this.form.bind(() => this.projection(), createSnapshotStore);
1159
+ this.composer = this.form.bind(() => this.composerProjection(), createSnapshotStore);
1097
1160
  }
1098
1161
  projection() {
1099
1162
  return {
1100
1163
  ...this.form.shell(),
1101
1164
  paused: this.form.field("paused"),
1165
+ showComposerToggle: this.form.field("showComposerToggle"),
1102
1166
  continueText: this.form.field("continueText"),
1103
1167
  continueTextMaxTokens: this.form.field("continueTextMaxTokens"),
1104
1168
  resumeSilentTurns: this.form.field("resumeSilentTurns"),
@@ -1136,51 +1200,80 @@ var AutoContinueSettingsCardController = class {
1136
1200
  inject() {
1137
1201
  return { hooks: { autoContinueSettingsCard: this.store }, ...this.form.actions() };
1138
1202
  }
1203
+ injectComposer() {
1204
+ return { hooks: { autoContinueComposer: this.composer }, setEnabled: (enabled) => void this.setEnabled(enabled) };
1205
+ }
1206
+ composerProjection() {
1207
+ const snapshot = this.scope.getSnapshot();
1208
+ return {
1209
+ visible: snapshot.status === "ready" && (snapshot.value?.showComposerToggle ?? DEFAULT_CONFIG.showComposerToggle),
1210
+ enabled: !(snapshot.value?.paused ?? DEFAULT_CONFIG.paused),
1211
+ writable: snapshot.status === "ready" && snapshot.writable && snapshot.mode === "host",
1212
+ saving: this.composerSaving,
1213
+ failed: this.composerFailed
1214
+ };
1215
+ }
1216
+ async setEnabled(enabled) {
1217
+ if (this.disposed || this.composerSaving || !this.composerProjection().writable) return;
1218
+ this.composerSaving = true;
1219
+ this.composerFailed = false;
1220
+ this.composer.set(this.composerProjection());
1221
+ try {
1222
+ const result = await this.scope.set("paused", !enabled);
1223
+ this.composerFailed = result === false || this.composerProjection().enabled !== enabled;
1224
+ } catch {
1225
+ this.composerFailed = true;
1226
+ } finally {
1227
+ this.composerSaving = false;
1228
+ if (!this.disposed) this.composer.set(this.composerProjection());
1229
+ }
1230
+ }
1139
1231
  /** Release this card's subscription to the provider-owned settings form. */
1140
1232
  dispose() {
1233
+ this.disposed = true;
1141
1234
  this.form.dispose();
1142
1235
  }
1143
1236
  };
1144
1237
  function AutoContinueSettingsPage(props) {
1145
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AutoContinueSettingsCard, { ...props }) });
1238
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { style: { listStyle: "none", margin: 0, padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(AutoContinueSettingsCard, { ...props }) });
1146
1239
  }
1147
1240
  var REPOSITORY_URL = "https://github.com/HsiangNianian/dsh-auto-continue";
1148
1241
  var REPOSITORY_SLUG = "HsiangNianian/dsh-auto-continue";
1149
1242
  function RelayMark() {
1150
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { viewBox: "0 0 48 48", "aria-hidden": "true", focusable: "false", children: [
1151
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { className: "dshAcRelayArc", d: "M9 30c4-12 10-18 19-18 5 0 9 2 12 6" }),
1152
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { className: "dshAcRelayArc dshAcRelayArcEcho", d: "M8 35c6 3 12 3 17 0 5-3 8-8 15-9" }),
1153
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { className: "dshAcRelayNode dshAcRelayNodeStart", cx: "9", cy: "30", r: "3" }),
1154
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { className: "dshAcRelayNode dshAcRelayNodeEnd", cx: "40", cy: "18", r: "3" }),
1155
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { className: "dshAcRelayPulse", cx: "28", cy: "12", r: "2.5" })
1243
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { viewBox: "0 0 48 48", "aria-hidden": "true", focusable: "false", children: [
1244
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { className: "dshAcRelayArc", d: "M9 30c4-12 10-18 19-18 5 0 9 2 12 6" }),
1245
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { className: "dshAcRelayArc dshAcRelayArcEcho", d: "M8 35c6 3 12 3 17 0 5-3 8-8 15-9" }),
1246
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { className: "dshAcRelayNode dshAcRelayNodeStart", cx: "9", cy: "30", r: "3" }),
1247
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { className: "dshAcRelayNode dshAcRelayNodeEnd", cx: "40", cy: "18", r: "3" }),
1248
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("circle", { className: "dshAcRelayPulse", cx: "28", cy: "12", r: "2.5" })
1156
1249
  ] });
1157
1250
  }
1158
1251
  function ChevronMark() {
1159
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m3.5 6 4.5 4 4.5-4" }) });
1252
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "m3.5 6 4.5 4 4.5-4" }) });
1160
1253
  }
1161
1254
  function GitHubMark() {
1162
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 2.4a9.8 9.8 0 0 0-3.1 19.1c.5.1.7-.2.7-.5v-1.9c-2.8.6-3.4-1.2-3.4-1.2-.5-1.1-1.1-1.4-1.1-1.4-.9-.6.1-.6.1-.6 1 0 1.5 1 1.5 1 .9 1.5 2.3 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-4.9 0-1.1.4-2 1-2.7-.1-.3-.4-1.3.1-2.7 0 0 .8-.3 2.8 1a9.5 9.5 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7.6.7 1 1.6 1 2.7 0 3.8-2.3 4.6-4.6 4.9.4.3.7.9.7 1.8V21c0 .3.2.6.7.5A9.8 9.8 0 0 0 12 2.4Z" }) });
1255
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("svg", { viewBox: "0 0 24 24", "aria-hidden": "true", focusable: "false", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M12 2.4a9.8 9.8 0 0 0-3.1 19.1c.5.1.7-.2.7-.5v-1.9c-2.8.6-3.4-1.2-3.4-1.2-.5-1.1-1.1-1.4-1.1-1.4-.9-.6.1-.6.1-.6 1 0 1.5 1 1.5 1 .9 1.5 2.3 1.1 2.9.8.1-.6.4-1.1.6-1.3-2.2-.3-4.6-1.1-4.6-4.9 0-1.1.4-2 1-2.7-.1-.3-.4-1.3.1-2.7 0 0 .8-.3 2.8 1a9.5 9.5 0 0 1 5 0c1.9-1.3 2.8-1 2.8-1 .5 1.4.2 2.4.1 2.7.6.7 1 1.6 1 2.7 0 3.8-2.3 4.6-4.6 4.9.4.3.7.9.7 1.8V21c0 .3.2.6.7.5A9.8 9.8 0 0 0 12 2.4Z" }) });
1163
1256
  }
1164
1257
  function ExternalMark() {
1165
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: [
1166
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M6 3h7v7M13 3 7 9" }),
1167
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M11 9v3a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3" })
1258
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("svg", { viewBox: "0 0 16 16", "aria-hidden": "true", focusable: "false", children: [
1259
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M6 3h7v7M13 3 7 9" }),
1260
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("path", { d: "M11 9v3a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h3" })
1168
1261
  ] });
1169
1262
  }
1170
1263
  function RelayJourney(props) {
1171
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcJourney", children: [
1172
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyInterrupted", children: [
1173
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1264
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcJourney", children: [
1265
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyInterrupted", children: [
1266
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1174
1267
  props.t("flow.interrupted")
1175
1268
  ] }),
1176
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcJourneyLine", "aria-hidden": "true" }),
1177
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyGrace", children: [
1178
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1269
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcJourneyLine", "aria-hidden": "true" }),
1270
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyGrace", children: [
1271
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1179
1272
  props.t("flow.grace")
1180
1273
  ] }),
1181
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcJourneyLine", "aria-hidden": "true" }),
1182
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyContinue", children: [
1183
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1274
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcJourneyLine", "aria-hidden": "true" }),
1275
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcJourneyStep dshAcJourneyContinue", children: [
1276
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcJourneyDot", "aria-hidden": "true" }),
1184
1277
  props.t("flow.continue")
1185
1278
  ] })
1186
1279
  ] });
@@ -1191,9 +1284,9 @@ function SettingsCard(props) {
1191
1284
  if (!state2.available) return null;
1192
1285
  const title = props.t(props.titleKey);
1193
1286
  const blocked = !state2.dirty || state2.invalid || state2.saving;
1194
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", { className: open ? "dshAcCard dshAcCardOpen" : "dshAcCard", children: [
1195
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcHeaderFrame", children: [
1196
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1287
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("li", { className: open ? "dshAcCard dshAcCardOpen" : "dshAcCard", children: [
1288
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcHeaderFrame", children: [
1289
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1197
1290
  "button",
1198
1291
  {
1199
1292
  type: "button",
@@ -1203,18 +1296,18 @@ function SettingsCard(props) {
1203
1296
  title: props.t(props.descriptionKey),
1204
1297
  onClick: () => setOpen(!open),
1205
1298
  children: [
1206
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcRelayMark", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelayMark, {}) }),
1207
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcHeadText", children: [
1208
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcName", children: title }),
1209
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcDescription", children: props.t(props.descriptionKey) }),
1210
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelayJourney, { t: props.t })
1299
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcRelayMark", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RelayMark, {}) }),
1300
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcHeadText", children: [
1301
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcName", children: title }),
1302
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcDescription", children: props.t(props.descriptionKey) }),
1303
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(RelayJourney, { t: props.t })
1211
1304
  ] }),
1212
- state2.dirty ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcPending", title: props.t("chrome.unsaved"), children: props.t("chrome.unsaved") }) : null,
1213
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: open ? "dshAcChevron dshAcChevronOpen" : "dshAcChevron", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronMark, {}) })
1305
+ state2.dirty ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcPending", title: props.t("chrome.unsaved"), children: props.t("chrome.unsaved") }) : null,
1306
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: open ? "dshAcChevron dshAcChevronOpen" : "dshAcChevron", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ChevronMark, {}) })
1214
1307
  ]
1215
1308
  }
1216
1309
  ),
1217
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1310
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1218
1311
  "a",
1219
1312
  {
1220
1313
  className: "dshAcGithub",
@@ -1223,22 +1316,22 @@ function SettingsCard(props) {
1223
1316
  rel: "noreferrer",
1224
1317
  "aria-label": props.t("repo.aria"),
1225
1318
  children: [
1226
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcGithubIcon", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GitHubMark, {}) }),
1227
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcGithubText", children: [
1228
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcGithubAction", children: props.t("repo.star") }),
1229
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcGithubSlug", children: REPOSITORY_SLUG })
1319
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcGithubIcon", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(GitHubMark, {}) }),
1320
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcGithubText", children: [
1321
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcGithubAction", children: props.t("repo.star") }),
1322
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcGithubSlug", children: REPOSITORY_SLUG })
1230
1323
  ] }),
1231
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcExternal", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ExternalMark, {}) })
1324
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcExternal", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(ExternalMark, {}) })
1232
1325
  ]
1233
1326
  }
1234
1327
  )
1235
1328
  ] }),
1236
- open ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcBody", children: [
1237
- !state2.writable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "dshAcReadOnly", role: "status", children: props.t("chrome.readOnly") }) : null,
1329
+ open ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcBody", children: [
1330
+ !state2.writable ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcReadOnly", role: "status", children: props.t("chrome.readOnly") }) : null,
1238
1331
  props.children,
1239
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcFooter", children: [
1240
- state2.failed ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "dshAcFailed", role: "status", children: props.t("chrome.saveFailed") }) : null,
1241
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1332
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcFooter", children: [
1333
+ state2.failed ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcFailed", role: "status", children: props.t("chrome.saveFailed") }) : null,
1334
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1242
1335
  "button",
1243
1336
  {
1244
1337
  type: "button",
@@ -1248,22 +1341,22 @@ function SettingsCard(props) {
1248
1341
  children: props.t("chrome.discard")
1249
1342
  }
1250
1343
  ),
1251
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "dshAcSave", disabled: blocked, onClick: props.onSave, children: props.t(!state2.saving ? "chrome.save" : "chrome.saving") })
1344
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { type: "button", className: "dshAcSave", disabled: blocked, onClick: props.onSave, children: props.t(!state2.saving ? "chrome.save" : "chrome.saving") })
1252
1345
  ] })
1253
1346
  ] }) : null
1254
1347
  ] });
1255
1348
  }
1256
1349
  function ValueField(props) {
1257
1350
  const className = props.invalid ? "dshAcInput dshAcInputInvalid" : "dshAcInput";
1258
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: props.wide === true ? "dshAcField dshAcFieldWide" : "dshAcField", children: [
1259
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcHead", children: [
1260
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: "dshAcLabel", htmlFor: props.id, children: props.label }),
1261
- props.overridden ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcBadges", children: [
1262
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcBadge", children: props.t("chrome.overridden") }),
1263
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "dshAcReset", disabled: props.disabled, onClick: props.onReset, children: props.t("chrome.reset") })
1351
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: props.wide === true ? "dshAcField dshAcFieldWide" : "dshAcField", children: [
1352
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcHead", children: [
1353
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { className: "dshAcLabel", htmlFor: props.id, children: props.label }),
1354
+ props.overridden ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcBadges", children: [
1355
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcBadge", children: props.t("chrome.overridden") }),
1356
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { type: "button", className: "dshAcReset", disabled: props.disabled, onClick: props.onReset, children: props.t("chrome.reset") })
1264
1357
  ] }) : null
1265
1358
  ] }),
1266
- props.multiline === true ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1359
+ props.multiline === true ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1267
1360
  "textarea",
1268
1361
  {
1269
1362
  id: props.id,
@@ -1275,7 +1368,7 @@ function ValueField(props) {
1275
1368
  rows: 4,
1276
1369
  onChange: (event) => props.onEdit(event.target.value)
1277
1370
  }
1278
- ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1371
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1279
1372
  "input",
1280
1373
  {
1281
1374
  id: props.id,
@@ -1289,19 +1382,19 @@ function ValueField(props) {
1289
1382
  onChange: (event) => props.onEdit(event.target.value)
1290
1383
  }
1291
1384
  ),
1292
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: props.invalid ? "dshAcInvalid" : "dshAcHint", children: props.invalid ? props.t("chrome.invalidNumber") : props.hint })
1385
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: props.invalid ? "dshAcInvalid" : "dshAcHint", children: props.invalid ? props.t("chrome.invalidNumber") : props.hint })
1293
1386
  ] });
1294
1387
  }
1295
1388
  function BooleanField(props) {
1296
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: props.wide === true ? "dshAcField dshAcFieldWide" : "dshAcField", children: [
1297
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcHead", children: [
1298
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("label", { className: "dshAcLabel", htmlFor: props.id, children: props.label }),
1299
- props.overridden ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcBadges", children: [
1300
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcBadge", children: props.t("chrome.overridden") }),
1301
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { type: "button", className: "dshAcReset", disabled: props.disabled, onClick: props.onReset, children: props.t("chrome.reset") })
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: props.wide === true ? "dshAcField dshAcFieldWide" : "dshAcField", children: [
1390
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcHead", children: [
1391
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("label", { className: "dshAcLabel", htmlFor: props.id, children: props.label }),
1392
+ props.overridden ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcBadges", children: [
1393
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcBadge", children: props.t("chrome.overridden") }),
1394
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("button", { type: "button", className: "dshAcReset", disabled: props.disabled, onClick: props.onReset, children: props.t("chrome.reset") })
1302
1395
  ] }) : null
1303
1396
  ] }),
1304
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1397
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1305
1398
  "select",
1306
1399
  {
1307
1400
  id: props.id,
@@ -1310,25 +1403,57 @@ function BooleanField(props) {
1310
1403
  disabled: props.disabled,
1311
1404
  onChange: (event) => props.onEdit(event.target.value),
1312
1405
  children: [
1313
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "", children: props.t("chrome.inherit") }),
1314
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "true", children: props.t("chrome.on") }),
1315
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value: "false", children: props.t("chrome.off") })
1406
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("option", { value: "", children: props.t("chrome.inherit") }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("option", { value: "true", children: props.t("chrome.on") }),
1408
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("option", { value: "false", children: props.t("chrome.off") })
1316
1409
  ]
1317
1410
  }
1318
1411
  ),
1319
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "dshAcHint", children: props.hint })
1412
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcHint", children: props.hint })
1413
+ ] });
1414
+ }
1415
+ function ComposerVisibilityField(props) {
1416
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcField dshAcFieldWide", children: [
1417
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcHead", children: [
1418
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcLabel", children: props.label }),
1419
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcBadges", children: [
1420
+ props.overridden ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1421
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcBadge", children: props.t("chrome.overridden") }),
1422
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1423
+ "button",
1424
+ {
1425
+ type: "button",
1426
+ className: "dshAcReset",
1427
+ disabled: props.disabled,
1428
+ onClick: props.onReset,
1429
+ children: props.t("chrome.reset")
1430
+ }
1431
+ )
1432
+ ] }) : null,
1433
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcSwitchTarget", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1434
+ NativeSwitch,
1435
+ {
1436
+ checked: props.text === "" ? DEFAULT_CONFIG.showComposerToggle : props.text === "true",
1437
+ onChange: (checked) => props.onEdit(String(checked)),
1438
+ label: props.label,
1439
+ disabled: props.disabled
1440
+ }
1441
+ ) })
1442
+ ] })
1443
+ ] }),
1444
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcHint", children: props.hint })
1320
1445
  ] });
1321
1446
  }
1322
1447
  function SettingsSection(props) {
1323
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: `dshAcFormSection dshAcFormSection-${props.tone}`, children: [
1324
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", { className: "dshAcSectionHead", children: [
1325
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcSectionSignal", "aria-hidden": "true" }),
1326
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcSectionCopy", children: [
1327
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcSectionTitle", children: props.t(props.titleKey) }),
1328
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcSectionDescription", children: props.t(props.descriptionKey) })
1448
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("section", { className: `dshAcFormSection dshAcFormSection-${props.tone}`, children: [
1449
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("header", { className: "dshAcSectionHead", children: [
1450
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcSectionSignal", "aria-hidden": "true" }),
1451
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcSectionCopy", children: [
1452
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcSectionTitle", children: props.t(props.titleKey) }),
1453
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcSectionDescription", children: props.t(props.descriptionKey) })
1329
1454
  ] })
1330
1455
  ] }),
1331
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "dshAcSectionGrid", children: props.children })
1456
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "dshAcSectionGrid", children: props.children })
1332
1457
  ] });
1333
1458
  }
1334
1459
  function LivePanels(props) {
@@ -1346,11 +1471,11 @@ function LivePanels(props) {
1346
1471
  const hasStats = stats.sent + stats.skipped + stats.recovered + stats.failed + stats.gaveUp + stats.looped > 0;
1347
1472
  const codes = Object.entries(stats.byCode).sort((a, b) => b[1] - a[1]).slice(0, 5);
1348
1473
  const paused = pausedSessions();
1349
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1350
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "dshAcPanel", children: [
1351
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcPanelHead", children: [
1352
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcPanelTitle", children: t("stats.title") }),
1353
- hasStats ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1474
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1475
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("section", { className: "dshAcPanel", children: [
1476
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcPanelHead", children: [
1477
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcPanelTitle", children: t("stats.title") }),
1478
+ hasStats ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1354
1479
  "button",
1355
1480
  {
1356
1481
  type: "button",
@@ -1363,39 +1488,39 @@ function LivePanels(props) {
1363
1488
  }
1364
1489
  ) : null
1365
1490
  ] }),
1366
- !hasStats ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "dshAcHint", children: t("stats.empty") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1367
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", { className: "dshAcStats", children: [
1368
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1369
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.sent") }),
1370
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.sent })
1491
+ !hasStats ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcHint", children: t("stats.empty") }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
1492
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("dl", { className: "dshAcStats", children: [
1493
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1494
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.sent") }),
1495
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.sent })
1371
1496
  ] }),
1372
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1373
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.recovered") }),
1374
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.recovered })
1497
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1498
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.recovered") }),
1499
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.recovered })
1375
1500
  ] }),
1376
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1377
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.failed") }),
1378
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.failed })
1501
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1502
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.failed") }),
1503
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.failed })
1379
1504
  ] }),
1380
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1381
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.skipped") }),
1382
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.skipped })
1505
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1506
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.skipped") }),
1507
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.skipped })
1383
1508
  ] }),
1384
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1385
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.gaveUp") }),
1386
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.gaveUp })
1509
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1510
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.gaveUp") }),
1511
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.gaveUp })
1387
1512
  ] }),
1388
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
1389
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", { children: t("stats.looped") }),
1390
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { children: stats.looped })
1513
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { children: [
1514
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dt", { children: t("stats.looped") }),
1515
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("dd", { children: stats.looped })
1391
1516
  ] })
1392
1517
  ] }),
1393
- codes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcCodes", children: [
1394
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcHint", children: [
1518
+ codes.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcCodes", children: [
1519
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcHint", children: [
1395
1520
  t("stats.byCode"),
1396
1521
  ":"
1397
1522
  ] }),
1398
- codes.map(([code, count]) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcCode", children: [
1523
+ codes.map(([code, count]) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcCode", children: [
1399
1524
  code,
1400
1525
  " ×",
1401
1526
  count
@@ -1403,10 +1528,10 @@ function LivePanels(props) {
1403
1528
  ] }) : null
1404
1529
  ] })
1405
1530
  ] }),
1406
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", { className: "dshAcPanel", children: [
1407
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcPanelHead", children: [
1408
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "dshAcPanelTitle", children: t("pause.title") }),
1409
- paused.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1531
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("section", { className: "dshAcPanel", children: [
1532
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcPanelHead", children: [
1533
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "dshAcPanelTitle", children: t("pause.title") }),
1534
+ paused.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1410
1535
  "button",
1411
1536
  {
1412
1537
  type: "button",
@@ -1419,17 +1544,17 @@ function LivePanels(props) {
1419
1544
  }
1420
1545
  ) : null
1421
1546
  ] }),
1422
- paused.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "dshAcHint", children: t("pause.none") }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("ul", { className: "dshAcPauseList", children: paused.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("li", { children: [
1423
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcPauseId", children: [
1547
+ paused.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("p", { className: "dshAcHint", children: t("pause.none") }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("ul", { className: "dshAcPauseList", children: paused.map((item) => /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("li", { children: [
1548
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcPauseId", children: [
1424
1549
  item.sessionId.slice(0, 8),
1425
1550
  "…"
1426
1551
  ] }),
1427
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { className: "dshAcHint", children: [
1552
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { className: "dshAcHint", children: [
1428
1553
  Math.max(1, Math.ceil((item.until - Date.now()) / 6e4)),
1429
1554
  " ",
1430
1555
  t("pause.minutes")
1431
1556
  ] }),
1432
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1557
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1433
1558
  "button",
1434
1559
  {
1435
1560
  type: "button",
@@ -1450,7 +1575,7 @@ function AutoContinueSettingsCard(props) {
1450
1575
  const state2 = props.useAutoContinueSettingsCard((snapshot) => snapshot);
1451
1576
  const disabled = !state2.writable;
1452
1577
  const shared = { t, disabled };
1453
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1578
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1454
1579
  SettingsCard,
1455
1580
  {
1456
1581
  t,
@@ -1459,8 +1584,8 @@ function AutoContinueSettingsCard(props) {
1459
1584
  state: state2,
1460
1585
  onSave: props.save,
1461
1586
  onDiscard: props.discard,
1462
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "dshAcFormCanvas", children: [
1463
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1587
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("div", { className: "dshAcFormCanvas", children: [
1588
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1464
1589
  SettingsSection,
1465
1590
  {
1466
1591
  t,
@@ -1468,7 +1593,7 @@ function AutoContinueSettingsCard(props) {
1468
1593
  descriptionKey: "section.handoff.description",
1469
1594
  tone: "handoff",
1470
1595
  children: [
1471
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1596
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1472
1597
  BooleanField,
1473
1598
  {
1474
1599
  wide: true,
@@ -1481,7 +1606,19 @@ function AutoContinueSettingsCard(props) {
1481
1606
  onReset: () => props.resetField("paused")
1482
1607
  }
1483
1608
  ),
1484
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1609
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1610
+ ComposerVisibilityField,
1611
+ {
1612
+ id: "auto-continue-show-composer-toggle",
1613
+ label: t("field.showComposerToggle"),
1614
+ hint: t("field.showComposerToggleHint"),
1615
+ ...shared,
1616
+ ...state2.showComposerToggle,
1617
+ onEdit: (text) => props.edit("showComposerToggle", text),
1618
+ onReset: () => props.resetField("showComposerToggle")
1619
+ }
1620
+ ),
1621
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1485
1622
  ValueField,
1486
1623
  {
1487
1624
  id: "auto-continue-continue-text",
@@ -1494,7 +1631,7 @@ function AutoContinueSettingsCard(props) {
1494
1631
  onReset: () => props.resetField("continueText")
1495
1632
  }
1496
1633
  ),
1497
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1634
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1498
1635
  ValueField,
1499
1636
  {
1500
1637
  id: "auto-continue-continue-text-max-tokens",
@@ -1507,7 +1644,7 @@ function AutoContinueSettingsCard(props) {
1507
1644
  onReset: () => props.resetField("continueTextMaxTokens")
1508
1645
  }
1509
1646
  ),
1510
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1647
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1511
1648
  BooleanField,
1512
1649
  {
1513
1650
  wide: true,
@@ -1520,7 +1657,7 @@ function AutoContinueSettingsCard(props) {
1520
1657
  onReset: () => props.resetField("resumeSilentTurns")
1521
1658
  }
1522
1659
  ),
1523
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1660
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1524
1661
  ValueField,
1525
1662
  {
1526
1663
  wide: true,
@@ -1537,7 +1674,7 @@ function AutoContinueSettingsCard(props) {
1537
1674
  ]
1538
1675
  }
1539
1676
  ),
1540
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1677
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1541
1678
  SettingsSection,
1542
1679
  {
1543
1680
  t,
@@ -1545,7 +1682,7 @@ function AutoContinueSettingsCard(props) {
1545
1682
  descriptionKey: "section.autoloop.description",
1546
1683
  tone: "autoloop",
1547
1684
  children: [
1548
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1685
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1549
1686
  BooleanField,
1550
1687
  {
1551
1688
  wide: true,
@@ -1558,7 +1695,7 @@ function AutoContinueSettingsCard(props) {
1558
1695
  onReset: () => props.resetField("resumeCompletedTurns")
1559
1696
  }
1560
1697
  ),
1561
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1698
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1562
1699
  ValueField,
1563
1700
  {
1564
1701
  wide: true,
@@ -1575,7 +1712,7 @@ function AutoContinueSettingsCard(props) {
1575
1712
  ]
1576
1713
  }
1577
1714
  ),
1578
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1715
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1579
1716
  SettingsSection,
1580
1717
  {
1581
1718
  t,
@@ -1583,7 +1720,7 @@ function AutoContinueSettingsCard(props) {
1583
1720
  descriptionKey: "section.safety.description",
1584
1721
  tone: "safety",
1585
1722
  children: [
1586
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1723
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1587
1724
  BooleanField,
1588
1725
  {
1589
1726
  wide: true,
@@ -1596,7 +1733,7 @@ function AutoContinueSettingsCard(props) {
1596
1733
  onReset: () => props.resetField("guardTools")
1597
1734
  }
1598
1735
  ),
1599
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1736
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1600
1737
  ValueField,
1601
1738
  {
1602
1739
  wide: true,
@@ -1610,7 +1747,7 @@ function AutoContinueSettingsCard(props) {
1610
1747
  onReset: () => props.resetField("guardPendingText")
1611
1748
  }
1612
1749
  ),
1613
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1750
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1614
1751
  ValueField,
1615
1752
  {
1616
1753
  wide: true,
@@ -1624,7 +1761,7 @@ function AutoContinueSettingsCard(props) {
1624
1761
  onReset: () => props.resetField("guardDoneText")
1625
1762
  }
1626
1763
  ),
1627
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1764
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1628
1765
  ValueField,
1629
1766
  {
1630
1767
  id: "auto-continue-grace-ms",
@@ -1637,7 +1774,7 @@ function AutoContinueSettingsCard(props) {
1637
1774
  onReset: () => props.resetField("graceMs")
1638
1775
  }
1639
1776
  ),
1640
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1777
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1641
1778
  ValueField,
1642
1779
  {
1643
1780
  id: "auto-continue-cooldown-ms",
@@ -1650,7 +1787,7 @@ function AutoContinueSettingsCard(props) {
1650
1787
  onReset: () => props.resetField("cooldownMs")
1651
1788
  }
1652
1789
  ),
1653
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1790
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1654
1791
  ValueField,
1655
1792
  {
1656
1793
  id: "auto-continue-max-consecutive",
@@ -1666,7 +1803,7 @@ function AutoContinueSettingsCard(props) {
1666
1803
  ]
1667
1804
  }
1668
1805
  ),
1669
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1806
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1670
1807
  SettingsSection,
1671
1808
  {
1672
1809
  t,
@@ -1674,7 +1811,7 @@ function AutoContinueSettingsCard(props) {
1674
1811
  descriptionKey: "section.recovery.description",
1675
1812
  tone: "recovery",
1676
1813
  children: [
1677
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1814
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1678
1815
  BooleanField,
1679
1816
  {
1680
1817
  id: "auto-continue-scan-on-boot",
@@ -1686,7 +1823,7 @@ function AutoContinueSettingsCard(props) {
1686
1823
  onReset: () => props.resetField("scanOnBoot")
1687
1824
  }
1688
1825
  ),
1689
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1826
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1690
1827
  BooleanField,
1691
1828
  {
1692
1829
  id: "auto-continue-classify",
@@ -1698,7 +1835,7 @@ function AutoContinueSettingsCard(props) {
1698
1835
  onReset: () => props.resetField("classify")
1699
1836
  }
1700
1837
  ),
1701
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1838
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1702
1839
  ValueField,
1703
1840
  {
1704
1841
  id: "auto-continue-scan-limit",
@@ -1711,7 +1848,7 @@ function AutoContinueSettingsCard(props) {
1711
1848
  onReset: () => props.resetField("scanLimit")
1712
1849
  }
1713
1850
  ),
1714
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1851
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1715
1852
  ValueField,
1716
1853
  {
1717
1854
  id: "auto-continue-fresh-ms",
@@ -1724,7 +1861,7 @@ function AutoContinueSettingsCard(props) {
1724
1861
  onReset: () => props.resetField("freshMs")
1725
1862
  }
1726
1863
  ),
1727
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1864
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1728
1865
  ValueField,
1729
1866
  {
1730
1867
  wide: true,
@@ -1739,7 +1876,7 @@ function AutoContinueSettingsCard(props) {
1739
1876
  onReset: () => props.resetField("retryableErrorPatterns")
1740
1877
  }
1741
1878
  ),
1742
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1879
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1743
1880
  ValueField,
1744
1881
  {
1745
1882
  id: "auto-continue-backoff-factor",
@@ -1752,7 +1889,7 @@ function AutoContinueSettingsCard(props) {
1752
1889
  onReset: () => props.resetField("backoffFactor")
1753
1890
  }
1754
1891
  ),
1755
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1892
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1756
1893
  ValueField,
1757
1894
  {
1758
1895
  id: "auto-continue-backoff-max",
@@ -1765,7 +1902,7 @@ function AutoContinueSettingsCard(props) {
1765
1902
  onReset: () => props.resetField("backoffMaxMs")
1766
1903
  }
1767
1904
  ),
1768
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1905
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1769
1906
  BooleanField,
1770
1907
  {
1771
1908
  id: "auto-continue-notify",
@@ -1777,7 +1914,7 @@ function AutoContinueSettingsCard(props) {
1777
1914
  onReset: () => props.resetField("notify")
1778
1915
  }
1779
1916
  ),
1780
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1917
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1781
1918
  BooleanField,
1782
1919
  {
1783
1920
  id: "auto-continue-verbose",
@@ -1792,7 +1929,7 @@ function AutoContinueSettingsCard(props) {
1792
1929
  ]
1793
1930
  }
1794
1931
  ),
1795
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
1932
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
1796
1933
  SettingsSection,
1797
1934
  {
1798
1935
  t,
@@ -1800,7 +1937,7 @@ function AutoContinueSettingsCard(props) {
1800
1937
  descriptionKey: "section.loop.description",
1801
1938
  tone: "loop",
1802
1939
  children: [
1803
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1940
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1804
1941
  BooleanField,
1805
1942
  {
1806
1943
  wide: true,
@@ -1813,7 +1950,7 @@ function AutoContinueSettingsCard(props) {
1813
1950
  onReset: () => props.resetField("loopGuard")
1814
1951
  }
1815
1952
  ),
1816
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1953
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1817
1954
  ValueField,
1818
1955
  {
1819
1956
  id: "auto-continue-loop-short-chars",
@@ -1826,7 +1963,7 @@ function AutoContinueSettingsCard(props) {
1826
1963
  onReset: () => props.resetField("loopShortChars")
1827
1964
  }
1828
1965
  ),
1829
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1966
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1830
1967
  ValueField,
1831
1968
  {
1832
1969
  id: "auto-continue-loop-window-ms",
@@ -1839,7 +1976,7 @@ function AutoContinueSettingsCard(props) {
1839
1976
  onReset: () => props.resetField("loopWindowMs")
1840
1977
  }
1841
1978
  ),
1842
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1979
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1843
1980
  ValueField,
1844
1981
  {
1845
1982
  id: "auto-continue-loop-short-count",
@@ -1852,7 +1989,7 @@ function AutoContinueSettingsCard(props) {
1852
1989
  onReset: () => props.resetField("loopShortCount")
1853
1990
  }
1854
1991
  ),
1855
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
1992
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1856
1993
  ValueField,
1857
1994
  {
1858
1995
  id: "auto-continue-loop-repeat-text",
@@ -1865,7 +2002,7 @@ function AutoContinueSettingsCard(props) {
1865
2002
  onReset: () => props.resetField("loopRepeatText")
1866
2003
  }
1867
2004
  ),
1868
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2005
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1869
2006
  ValueField,
1870
2007
  {
1871
2008
  id: "auto-continue-loop-tool-repeat",
@@ -1878,7 +2015,7 @@ function AutoContinueSettingsCard(props) {
1878
2015
  onReset: () => props.resetField("loopToolRepeat")
1879
2016
  }
1880
2017
  ),
1881
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2018
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1882
2019
  ValueField,
1883
2020
  {
1884
2021
  wide: true,
@@ -1895,14 +2032,14 @@ function AutoContinueSettingsCard(props) {
1895
2032
  ]
1896
2033
  }
1897
2034
  ),
1898
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
2035
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1899
2036
  SettingsSection,
1900
2037
  {
1901
2038
  t,
1902
2039
  titleKey: "section.live.title",
1903
2040
  descriptionKey: "section.live.description",
1904
2041
  tone: "live",
1905
- children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LivePanels, { t })
2042
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LivePanels, { t })
1906
2043
  }
1907
2044
  )
1908
2045
  ] })
@@ -1910,6 +2047,28 @@ function AutoContinueSettingsCard(props) {
1910
2047
  );
1911
2048
  }
1912
2049
 
2050
+ // src/client/composer-toggle.tsx
2051
+ var import_jsx_runtime3 = require("react/jsx-runtime");
2052
+ function AutoContinueComposerToggle(props) {
2053
+ const state2 = props.useAutoContinueComposer((snapshot) => snapshot);
2054
+ if (!state2.visible) return null;
2055
+ const title = props.t(!state2.writable ? "chrome.readOnly" : state2.saving ? "composer.saving" : "composer.scope");
2056
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "dshAcComposer", title, children: [
2057
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dshAcComposerLabel", children: props.t("composer.label") }),
2058
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dshAcSwitchTarget", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
2059
+ NativeSwitch,
2060
+ {
2061
+ checked: state2.enabled,
2062
+ onChange: props.setEnabled,
2063
+ disabled: !state2.writable || state2.saving,
2064
+ label: props.t("composer.label"),
2065
+ title
2066
+ }
2067
+ ) }),
2068
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "dshAcComposerError", role: "status", children: state2.failed ? props.t("composer.saveFailed") : null })
2069
+ ] });
2070
+ }
2071
+
1913
2072
  // src/client/index.ts
1914
2073
  var NS = "auto-continue";
1915
2074
  var SETTINGS_NS = "auto-continue";
@@ -1947,6 +2106,18 @@ function mountSettings(ctx, scope) {
1947
2106
  syncLocale();
1948
2107
  const controller = new AutoContinueSettingsCardController(scope);
1949
2108
  ctx.effect(() => () => controller.dispose(), "auto-continue: settings form");
2109
+ ctx.slots.inject(
2110
+ "conversation.input.left",
2111
+ () => ctx.slots.register(
2112
+ {
2113
+ name: "conversation.input.left",
2114
+ id: "auto-continue",
2115
+ locale: NS,
2116
+ inject: () => controller.injectComposer()
2117
+ },
2118
+ AutoContinueComposerToggle
2119
+ )
2120
+ );
1950
2121
  ctx.slots.inject(
1951
2122
  "settings.plugin.item",
1952
2123
  () => ctx.slots.register(