@cnzgray/dsh-mattpocock-workflow 0.1.0 → 0.2.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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/lib/client.js +516 -454
  3. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -39,7 +39,7 @@ __export(index_exports, {
39
39
  inject: () => inject
40
40
  });
41
41
  module.exports = __toCommonJS(index_exports);
42
- var React42 = __toESM(require("react"), 1);
42
+ var React43 = __toESM(require("react"), 1);
43
43
 
44
44
  // src/client/agent-activity.ts
45
45
  var React = __toESM(require("react"), 1);
@@ -78,6 +78,24 @@ function useAgentActivitySignal(useSessions, sessionId) {
78
78
  }
79
79
 
80
80
  // src/protocol/env-check.ts
81
+ var ENV_CHECK_IDS = {
82
+ /** 用户主目录可解析。 */
83
+ home: "home",
84
+ /** 已选择工单后端。 */
85
+ backend: "backend",
86
+ /** 后端对应的命令行工具已安装。 */
87
+ cli: "cli",
88
+ /** 命令行工具已登录。 */
89
+ auth: "auth",
90
+ /** 当前仓库可通过后端接口访问。 */
91
+ repository: "repository",
92
+ /** 工作区已用 `setup-matt-pocock-skills` 初始化。 */
93
+ workspace: "workspace",
94
+ /** 工作区里的本地工单目录可读;只在本地 Markdown 后端或后端未判定时检查。 */
95
+ localIssues: "local-issues",
96
+ /** 一项必需技能已安装;subject 是技能名。 */
97
+ skill: "skill"
98
+ };
81
99
  var UI_CAPABILITY_IDS = [
82
100
  "slots",
83
101
  "sidebarRightTabs",
@@ -331,9 +349,13 @@ var zh = {
331
349
  "env.remedy.loginCliGeneric": "\u767B\u5F55\u540E\u7AEF\u5BF9\u5E94\u7684\u547D\u4EE4\u884C\u5DE5\u5177\uFF08gh / glab / tea\uFF09\uFF0C\u767B\u5F55\u540E\u91CD\u65B0\u68C0\u67E5\u3002",
332
350
  "env.remedy.loginCli": "\u767B\u5F55 {cli}\uFF1B\u81EA\u5EFA\u5B9E\u4F8B\u8981\u5728\u767B\u5F55\u65F6\u586B\u5B9E\u4F8B\u5730\u5740\uFF0C\u767B\u5F55\u540E\u91CD\u65B0\u68C0\u67E5\u3002",
333
351
  "env.remedy.skillMissing": "\u7F3A\u5931\u6280\u80FD",
334
- "env.remedy.installSkillSummary": "\u8BA9\u5F53\u524D\u4F1A\u8BDD\u628A {skill} \u6280\u80FD\u88C5\u5230 DSH \u4F1A\u626B\u63CF\u7684\u6280\u80FD\u76EE\u5F55\uFF08\u5982 .agents/skills\uFF09\uFF0C\u6765\u6E90\u662F mattpocock/skills\u3002",
335
- "env.remedy.installSkillPrompt": "\u5B89\u88C5 mattpocock/skills \u91CC\u7684 {skill} \u6280\u80FD\u5230\u5F53\u524D\u5DE5\u4F5C\u533A DSH \u4F1A\u626B\u63CF\u7684\u6280\u80FD\u76EE\u5F55\uFF08\u5982 .agents/skills \u6216 .dsh/skills\uFF09\uFF0C\u8BA9\u73AF\u5883\u68C0\u67E5\u9879\u300C{title}\u300D\u901A\u8FC7\u3002\u88C5\u597D\u540E\u544A\u8BC9\u6211\uFF0C\u6211\u518D\u91CD\u65B0\u68C0\u67E5\u3002",
352
+ "env.remedy.installSkillSummary": "\u8BA9\u5F53\u524D\u4F1A\u8BDD\u628A {skill} \u88C5\u5230 ~/.agents/skills\uFF08DSH \u6280\u80FD\u76EE\u5F55\uFF09\uFF0C\u6240\u6709\u5DE5\u4F5C\u533A\u901A\u7528\u3002",
353
+ "env.remedy.installSkillPrompt": "\u4ECE mattpocock/skills \u5B89\u88C5 {skill} \u6280\u80FD\u5230 ~/.agents/skills\uFF08~/.dsh/skills \u540C\u6837\u6709\u6548\uFF09\uFF0C\u76EE\u5F55\u7ED3\u6784\u662F <\u6280\u80FD\u540D>/SKILL.md\uFF1B\u88C5\u5230\u4E3B\u76EE\u5F55\u540E\u6240\u6709\u5DE5\u4F5C\u533A\u90FD\u53EF\u7528\u3002\u88C5\u597D\u540E\u544A\u8BC9\u6211\uFF0C\u6211\u518D\u91CD\u65B0\u68C0\u67E5\u3002",
354
+ "env.remedy.installSkillsSummary": "\u4E00\u6761\u63D0\u793A\u8BCD\u628A {count} \u9879\u7F3A\u5931\u6280\u80FD\u88C5\u5230 ~/.agents/skills\uFF08DSH \u6280\u80FD\u76EE\u5F55\uFF09\uFF0C\u6240\u6709\u5DE5\u4F5C\u533A\u901A\u7528\u3002",
355
+ "env.remedy.installSkillsPrompt": "\u4ECE mattpocock/skills \u4E00\u6B21\u88C5\u9F50\u8FD9\u4E9B\u6280\u80FD\uFF1A\n{skills}\n\u88C5\u5230 ~/.agents/skills\uFF08~/.dsh/skills \u540C\u6837\u6709\u6548\uFF09\uFF0C\u6BCF\u4E2A\u6280\u80FD\u6309 <\u6280\u80FD\u540D>/SKILL.md \u5B58\u653E\uFF1B\u88C5\u5230\u4E3B\u76EE\u5F55\u540E\u6240\u6709\u5DE5\u4F5C\u533A\u90FD\u53EF\u7528\u3002\u88C5\u597D\u540E\u544A\u8BC9\u6211\uFF0C\u6211\u518D\u91CD\u65B0\u68C0\u67E5\u3002",
336
356
  "env.remedy.installSkillLink": "mattpocock/skills \u4ED3\u5E93",
357
+ "env.skills.title": "\u6280\u80FD\u603B\u88C5",
358
+ "env.skills.detail": "\u7F3A\u5C11 {count} \u9879\u5FC5\u9700\u6280\u80FD\uFF1A{skills}",
337
359
  "env.remedy.initWorkspaceSummary": "\u8BA9\u5F53\u524D\u4F1A\u8BDD\u8FD0\u884C {skill}\uFF0C\u628A\u5DE5\u4F5C\u533A\u6309\u9762\u677F\u8981\u6C42\u521D\u59CB\u5316\u3002",
338
360
  "env.remedy.initWorkspacePrompt": "\u521D\u59CB\u5316\u5F53\u524D\u5DE5\u4F5C\u533A\u3002\u73AF\u5883\u68C0\u67E5\u9879\u300C{title}\u300D\u672A\u901A\u8FC7\uFF1A{detail}\u3002",
339
361
  "env.remedy.initWorkspaceOutro": "\u6309\u6280\u80FD\u5B8C\u6210\u521D\u59CB\u5316\u540E\u544A\u8BC9\u6211\uFF0C\u6211\u518D\u91CD\u65B0\u68C0\u67E5\u3002",
@@ -788,9 +810,13 @@ var en = {
788
810
  "env.remedy.loginCliGeneric": "Sign in to the command-line tool for the backend (gh / glab / tea), then recheck.",
789
811
  "env.remedy.loginCli": "Sign in to {cli}; for self-hosted instances, enter the instance address, then recheck.",
790
812
  "env.remedy.skillMissing": "missing skill",
791
- "env.remedy.installSkillSummary": "Have the current session install the {skill} skill into a directory DSH scans (such as .agents/skills); the source is mattpocock/skills.",
792
- "env.remedy.installSkillPrompt": "Install the {skill} skill from mattpocock/skills into a directory DSH scans in the current workspace (such as .agents/skills or .dsh/skills) so the environment check \u201C{title}\u201D passes. Tell me when it is done and I will recheck.",
813
+ "env.remedy.installSkillSummary": "Have the current session install {skill} into ~/.agents/skills (a DSH skills directory); works in every workspace.",
814
+ "env.remedy.installSkillPrompt": "Install the {skill} skill from mattpocock/skills into ~/.agents/skills (~/.dsh/skills works too), as <skill>/SKILL.md; skills in the home directory work in every workspace. Tell me when it is done and I will recheck.",
815
+ "env.remedy.installSkillsSummary": "One prompt installs {count} missing skills into ~/.agents/skills (a DSH skills directory); works in every workspace.",
816
+ "env.remedy.installSkillsPrompt": "Install these skills from mattpocock/skills in one go:\n{skills}\nPut them under ~/.agents/skills (~/.dsh/skills works too), one directory per skill as <skill>/SKILL.md; skills in the home directory work in every workspace. Tell me when it is done and I will recheck.",
793
817
  "env.remedy.installSkillLink": "mattpocock/skills repository",
818
+ "env.skills.title": "Install all skills",
819
+ "env.skills.detail": "Missing {count} required skills: {skills}",
794
820
  "env.remedy.initWorkspaceSummary": "Have the current session run {skill} to initialize the workspace as the panel expects.",
795
821
  "env.remedy.initWorkspacePrompt": "Initialize the current workspace. The environment check \u201C{title}\u201D failed: {detail}.",
796
822
  "env.remedy.initWorkspaceOutro": "Tell me when the skill finishes initialization and I will recheck.",
@@ -1698,7 +1724,7 @@ function disposerOf(handle) {
1698
1724
  }
1699
1725
 
1700
1726
  // src/client/task-panel.tsx
1701
- var React41 = __toESM(require("react"), 1);
1727
+ var React42 = __toESM(require("react"), 1);
1702
1728
 
1703
1729
  // src/client/action-bar.tsx
1704
1730
  var React5 = __toESM(require("react"), 1);
@@ -2649,7 +2675,7 @@ function DraftAction(props) {
2649
2675
  }
2650
2676
 
2651
2677
  // src/client/env-check-view.tsx
2652
- var React8 = __toESM(require("react"), 1);
2678
+ var React9 = __toESM(require("react"), 1);
2653
2679
 
2654
2680
  // src/client/env-capabilities.tsx
2655
2681
  var React6 = __toESM(require("react"), 1);
@@ -2678,18 +2704,28 @@ var ENV_BODY_STYLE = {
2678
2704
  overflow: "auto",
2679
2705
  padding: "0 12px 12px"
2680
2706
  };
2681
- var ENV_CARD_STYLE = {
2682
- display: "grid",
2683
- gridTemplateColumns: "auto minmax(0, 1fr)",
2684
- columnGap: 10,
2685
- rowGap: 4,
2686
- alignItems: "start",
2707
+ var CARD_SURFACE_STYLE = {
2687
2708
  padding: "9px 12px",
2688
2709
  border: `1px solid ${COLORS.border}`,
2689
2710
  borderRadius: 10,
2690
2711
  background: COLORS.surface,
2691
2712
  color: COLORS.text
2692
2713
  };
2714
+ var ENV_SECTION_STYLE = {
2715
+ ...CARD_SURFACE_STYLE,
2716
+ display: "flex",
2717
+ flexDirection: "column",
2718
+ alignItems: "flex-start",
2719
+ gap: 4
2720
+ };
2721
+ var ENV_CARD_STYLE = {
2722
+ ...CARD_SURFACE_STYLE,
2723
+ display: "grid",
2724
+ gridTemplateColumns: "auto minmax(0, 1fr)",
2725
+ columnGap: 10,
2726
+ rowGap: 4,
2727
+ alignItems: "start"
2728
+ };
2693
2729
  var ENV_CARD_HIGHLIGHT_STYLE = {
2694
2730
  borderColor: COLORS.accent,
2695
2731
  boxShadow: `0 0 0 1px ${COLORS.accent}`
@@ -2980,6 +3016,9 @@ var CLI = {
2980
3016
  }
2981
3017
  };
2982
3018
  var SKILLS_REPO = "https://github.com/mattpocock/skills";
3019
+ function skillsRepoLink(t2) {
3020
+ return { href: SKILLS_REPO, label: t2("env.remedy.installSkillLink") };
3021
+ }
2983
3022
  function cliOf(subject) {
2984
3023
  return subject === "github" || subject === "gitlab" || subject === "gitea" ? CLI[subject] : void 0;
2985
3024
  }
@@ -3033,9 +3072,9 @@ var REMEDIES = {
3033
3072
  summary: t2("env.remedy.installSkillSummary", { skill }),
3034
3073
  action: {
3035
3074
  kind: "session",
3036
- prompt: t2("env.remedy.installSkillPrompt", { skill, title: context.title })
3075
+ prompt: t2("env.remedy.installSkillPrompt", { skill })
3037
3076
  },
3038
- link: { href: SKILLS_REPO, label: t2("env.remedy.installSkillLink") }
3077
+ link: skillsRepoLink(t2)
3039
3078
  };
3040
3079
  },
3041
3080
  "init-workspace": (context, t2) => ({
@@ -3100,6 +3139,17 @@ var REMEDIES = {
3100
3139
  function remedyContent(code, context, t2) {
3101
3140
  return REMEDIES[code](context, t2);
3102
3141
  }
3142
+ function installSkillsContent(skills, t2) {
3143
+ const list = skills.map((skill) => `- ${skill}`).join("\n");
3144
+ return {
3145
+ summary: t2("env.remedy.installSkillsSummary", { count: skills.length }),
3146
+ action: {
3147
+ kind: "session",
3148
+ prompt: t2("env.remedy.installSkillsPrompt", { skills: list })
3149
+ },
3150
+ link: skillsRepoLink(t2)
3151
+ };
3152
+ }
3103
3153
 
3104
3154
  // src/client/env-remedy-view.tsx
3105
3155
  function RemedySection(props) {
@@ -3117,17 +3167,20 @@ function RemedySection(props) {
3117
3167
  },
3118
3168
  t2
3119
3169
  );
3120
- return /* @__PURE__ */ React7.createElement("div", { "data-testid": "env-remedy", "data-code": remedy.code, style: ENV_REMEDY_STYLE }, /* @__PURE__ */ React7.createElement("div", { "data-testid": "env-remedy-summary", style: ENV_DETAIL_STYLE }, content.summary), /* @__PURE__ */ React7.createElement(RemedyActionView, { action: content.action, handlers: props.handlers }), content.link === void 0 ? null : /* @__PURE__ */ React7.createElement(
3170
+ return /* @__PURE__ */ React7.createElement("div", { "data-testid": "env-remedy", "data-code": remedy.code, style: ENV_REMEDY_STYLE }, /* @__PURE__ */ React7.createElement("div", { "data-testid": "env-remedy-summary", style: ENV_DETAIL_STYLE }, content.summary), /* @__PURE__ */ React7.createElement(RemedyActionView, { action: content.action, handlers: props.handlers }), content.link === void 0 ? null : /* @__PURE__ */ React7.createElement(RemedyLink, { href: content.link.href, label: content.link.label }));
3171
+ }
3172
+ function RemedyLink(props) {
3173
+ return /* @__PURE__ */ React7.createElement(
3121
3174
  "a",
3122
3175
  {
3123
3176
  "data-testid": "env-remedy-link",
3124
- href: content.link.href,
3177
+ href: props.href,
3125
3178
  target: "_blank",
3126
3179
  rel: "noreferrer",
3127
3180
  style: ENV_REMEDY_LINK_STYLE
3128
3181
  },
3129
- content.link.label
3130
- ));
3182
+ props.label
3183
+ );
3131
3184
  }
3132
3185
  function RemedyActionView(props) {
3133
3186
  const { t: t2 } = useI18n();
@@ -3223,6 +3276,23 @@ async function copyText(text) {
3223
3276
  }
3224
3277
  }
3225
3278
 
3279
+ // src/client/env-skill-batch.tsx
3280
+ var React8 = __toESM(require("react"), 1);
3281
+ function missingSkills(items) {
3282
+ return items.flatMap(
3283
+ (item) => item.id === ENV_CHECK_IDS.skill && item.status === "fail" && item.subject !== null ? [item.subject] : []
3284
+ );
3285
+ }
3286
+ function SkillBatchCard(props) {
3287
+ const { t: t2 } = useI18n();
3288
+ if (props.skills.length < 2) return null;
3289
+ const content = installSkillsContent(props.skills, t2);
3290
+ return /* @__PURE__ */ React8.createElement("section", { "data-testid": "env-skill-batch", style: ENV_SECTION_STYLE }, /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-skill-batch-title", style: ENV_TITLE_STYLE }, t2("env.skills.title")), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-skill-batch-detail", style: ENV_DETAIL_STYLE }, t2("env.skills.detail", {
3291
+ count: props.skills.length,
3292
+ skills: props.skills.join(t2("common.listSeparator"))
3293
+ })), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-skill-batch-summary", style: ENV_DETAIL_STYLE }, content.summary), /* @__PURE__ */ React8.createElement(SessionAction, { prompt: content.action.prompt, injection: props.injection }), /* @__PURE__ */ React8.createElement(RemedyLink, { href: content.link.href, label: content.link.label }));
3294
+ }
3295
+
3226
3296
  // src/client/relative-time.ts
3227
3297
  function formatRelativeTime(value, now, t2) {
3228
3298
  const timestamp2 = typeof value === "number" ? value : Date.parse(value);
@@ -3243,16 +3313,8 @@ var STATUS_KEYS = {
3243
3313
  skipped: "env.status.skipped"
3244
3314
  };
3245
3315
  var ENV_CACHE_SECTION_STYLE = {
3246
- display: "flex",
3247
- flexDirection: "column",
3248
- alignItems: "flex-start",
3249
- gap: 4,
3250
- margin: "0 12px 12px",
3251
- padding: "9px 12px",
3252
- border: `1px solid ${COLORS.border}`,
3253
- borderRadius: 10,
3254
- background: COLORS.surface,
3255
- color: COLORS.text
3316
+ ...ENV_SECTION_STYLE,
3317
+ margin: "0 12px 12px"
3256
3318
  };
3257
3319
  var ENV_CACHE_ERROR_STYLE = {
3258
3320
  color: COLORS.error,
@@ -3272,16 +3334,16 @@ function EnvCheckView(props) {
3272
3334
  busy,
3273
3335
  onRetry: recheck
3274
3336
  };
3275
- return /* @__PURE__ */ React8.createElement(
3337
+ return /* @__PURE__ */ React9.createElement(
3276
3338
  "div",
3277
3339
  {
3278
3340
  "data-testid": "env-check-view",
3279
3341
  style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }
3280
3342
  },
3281
- /* @__PURE__ */ React8.createElement("header", { style: ENV_HEADER_STYLE }, /* @__PURE__ */ React8.createElement("span", { "data-testid": "env-summary", style: ENV_SUMMARY_STYLE }, t2("env.summary", {
3343
+ /* @__PURE__ */ React9.createElement("header", { style: ENV_HEADER_STYLE }, /* @__PURE__ */ React9.createElement("span", { "data-testid": "env-summary", style: ENV_SUMMARY_STYLE }, t2("env.summary", {
3282
3344
  pass: report?.items.filter((item) => item.status === "pass").length ?? 0,
3283
3345
  total: report?.items.length ?? 0
3284
- })), /* @__PURE__ */ React8.createElement("span", { "data-testid": "env-backend", style: ENV_BACKEND_STYLE }, envBackendLabel(report?.backend ?? null, t2)), /* @__PURE__ */ React8.createElement(
3346
+ })), /* @__PURE__ */ React9.createElement("span", { "data-testid": "env-backend", style: ENV_BACKEND_STYLE }, envBackendLabel(report?.backend ?? null, t2)), /* @__PURE__ */ React9.createElement(
3285
3347
  "button",
3286
3348
  {
3287
3349
  type: "button",
@@ -3293,7 +3355,7 @@ function EnvCheckView(props) {
3293
3355
  },
3294
3356
  busy ? t2("env.checking") : t2("env.recheck")
3295
3357
  )),
3296
- error === null ? null : /* @__PURE__ */ React8.createElement(
3358
+ error === null ? null : /* @__PURE__ */ React9.createElement(
3297
3359
  ErrorAlert,
3298
3360
  {
3299
3361
  error,
@@ -3302,8 +3364,8 @@ function EnvCheckView(props) {
3302
3364
  onRetry: recheck
3303
3365
  }
3304
3366
  ),
3305
- report === null && phase === "loading" ? /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-loading", style: EMPTY_STYLE }, t2("env.loading")) : null,
3306
- report === null ? null : /* @__PURE__ */ React8.createElement("div", { style: ENV_BODY_STYLE }, /* @__PURE__ */ React8.createElement(
3367
+ report === null && phase === "loading" ? /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-loading", style: EMPTY_STYLE }, t2("env.loading")) : null,
3368
+ report === null ? null : /* @__PURE__ */ React9.createElement("div", { style: ENV_BODY_STYLE }, /* @__PURE__ */ React9.createElement(SkillBatchCard, { skills: missingSkills(report.items), injection: props.injection }), /* @__PURE__ */ React9.createElement(
3307
3369
  ItemList,
3308
3370
  {
3309
3371
  report,
@@ -3312,17 +3374,17 @@ function EnvCheckView(props) {
3312
3374
  onJump: jumpTo,
3313
3375
  handlers
3314
3376
  }
3315
- ), /* @__PURE__ */ React8.createElement(CapabilityPanel, { capabilities })),
3316
- props.workspaceRoot === void 0 ? null : /* @__PURE__ */ React8.createElement(CacheSection, { state: cache })
3377
+ ), /* @__PURE__ */ React9.createElement(CapabilityPanel, { capabilities })),
3378
+ props.workspaceRoot === void 0 ? null : /* @__PURE__ */ React9.createElement(CacheSection, { state: cache })
3317
3379
  );
3318
3380
  }
3319
3381
  function useSnapshotCache(client, workspaceRoot) {
3320
3382
  const { t: t2 } = useI18n();
3321
- const [info, setInfo] = React8.useState(null);
3322
- const [error, setError] = React8.useState(null);
3323
- const [notice, setNotice] = React8.useState(null);
3324
- const [busy, setBusy] = React8.useState(false);
3325
- const load = React8.useCallback(async () => {
3383
+ const [info, setInfo] = React9.useState(null);
3384
+ const [error, setError] = React9.useState(null);
3385
+ const [notice, setNotice] = React9.useState(null);
3386
+ const [busy, setBusy] = React9.useState(false);
3387
+ const load = React9.useCallback(async () => {
3326
3388
  if (workspaceRoot === void 0) return;
3327
3389
  const result = await requestCache(client, workspaceRoot, false, t2);
3328
3390
  if (!result.ok) {
@@ -3331,13 +3393,13 @@ function useSnapshotCache(client, workspaceRoot) {
3331
3393
  }
3332
3394
  setInfo(result.result);
3333
3395
  }, [client, workspaceRoot, t2]);
3334
- React8.useEffect(() => {
3396
+ React9.useEffect(() => {
3335
3397
  setInfo(null);
3336
3398
  setError(null);
3337
3399
  setNotice(null);
3338
3400
  void load();
3339
3401
  }, [load]);
3340
- const clearAsync = React8.useCallback(async () => {
3402
+ const clearAsync = React9.useCallback(async () => {
3341
3403
  if (workspaceRoot === void 0) return;
3342
3404
  setBusy(true);
3343
3405
  setError(null);
@@ -3351,7 +3413,7 @@ function useSnapshotCache(client, workspaceRoot) {
3351
3413
  setNotice(result.result.cleared);
3352
3414
  await load();
3353
3415
  }, [client, workspaceRoot, load, t2]);
3354
- const clear = React8.useCallback(() => {
3416
+ const clear = React9.useCallback(() => {
3355
3417
  void clearAsync();
3356
3418
  }, [clearAsync]);
3357
3419
  return { info, error, notice, busy, clear };
@@ -3373,9 +3435,9 @@ async function requestCache(client, workspaceRoot, clear, t2) {
3373
3435
  function CacheSection(props) {
3374
3436
  const { t: t2 } = useI18n();
3375
3437
  const info = props.state.info;
3376
- return /* @__PURE__ */ React8.createElement("section", { "data-testid": "env-cache", style: ENV_CACHE_SECTION_STYLE }, /* @__PURE__ */ React8.createElement("div", { style: ENV_TITLE_STYLE }, t2("env.cache.title")), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-cache-location", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.loading") : info.location), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-cache-entries", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.entriesUnknown") : t2("env.cache.entries", { count: info.entries })), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-cache-written", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.writtenUnknown") : info.lastWrittenAt === null ? t2("env.cache.neverWritten") : t2("env.cache.lastWritten", {
3438
+ return /* @__PURE__ */ React9.createElement("section", { "data-testid": "env-cache", style: ENV_CACHE_SECTION_STYLE }, /* @__PURE__ */ React9.createElement("div", { style: ENV_TITLE_STYLE }, t2("env.cache.title")), /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-cache-location", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.loading") : info.location), /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-cache-entries", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.entriesUnknown") : t2("env.cache.entries", { count: info.entries })), /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-cache-written", style: ENV_DETAIL_STYLE }, info === null ? t2("env.cache.writtenUnknown") : info.lastWrittenAt === null ? t2("env.cache.neverWritten") : t2("env.cache.lastWritten", {
3377
3439
  time: formatRelativeTime(info.lastWrittenAt, Date.now(), t2)
3378
- })), /* @__PURE__ */ React8.createElement(
3440
+ })), /* @__PURE__ */ React9.createElement(
3379
3441
  "button",
3380
3442
  {
3381
3443
  type: "button",
@@ -3386,15 +3448,15 @@ function CacheSection(props) {
3386
3448
  style: BUTTON_STYLE
3387
3449
  },
3388
3450
  props.state.busy ? t2("env.cache.clearing") : t2("env.cache.clear")
3389
- ), props.state.notice === null ? null : /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-cache-notice", style: ENV_SKIP_STYLE }, t2("env.cache.cleared", { count: props.state.notice })), props.state.error === null ? null : /* @__PURE__ */ React8.createElement("div", { role: "alert", "data-testid": "env-cache-error", style: ENV_CACHE_ERROR_STYLE }, props.state.error.message));
3451
+ ), props.state.notice === null ? null : /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-cache-notice", style: ENV_SKIP_STYLE }, t2("env.cache.cleared", { count: props.state.notice })), props.state.error === null ? null : /* @__PURE__ */ React9.createElement("div", { role: "alert", "data-testid": "env-cache-error", style: ENV_CACHE_ERROR_STYLE }, props.state.error.message));
3390
3452
  }
3391
3453
  function useEnvCheckRequest(client, workspaceRoot) {
3392
3454
  const { t: t2 } = useI18n();
3393
- const [report, setReport] = React8.useState(null);
3394
- const [error, setError] = React8.useState(null);
3395
- const [phase, setPhase] = React8.useState("loading");
3396
- const sequence = React8.useRef(0);
3397
- const request = React8.useCallback(
3455
+ const [report, setReport] = React9.useState(null);
3456
+ const [error, setError] = React9.useState(null);
3457
+ const [phase, setPhase] = React9.useState("loading");
3458
+ const sequence = React9.useRef(0);
3459
+ const request = React9.useCallback(
3398
3460
  async (keepResult) => {
3399
3461
  const current = sequence.current + 1;
3400
3462
  sequence.current = current;
@@ -3419,32 +3481,32 @@ function useEnvCheckRequest(client, workspaceRoot) {
3419
3481
  },
3420
3482
  [client, workspaceRoot, t2]
3421
3483
  );
3422
- React8.useEffect(() => {
3484
+ React9.useEffect(() => {
3423
3485
  setReport(null);
3424
3486
  setError(null);
3425
3487
  void request(false);
3426
3488
  }, [request]);
3427
- const recheck = React8.useCallback(() => {
3489
+ const recheck = React9.useCallback(() => {
3428
3490
  if (phase === "loading" || phase === "refreshing") return;
3429
3491
  void request(true);
3430
3492
  }, [phase, request]);
3431
3493
  return { report, error, phase, recheck };
3432
3494
  }
3433
3495
  function useFocusBackend(report, backend, jumpTo) {
3434
- React8.useEffect(() => {
3496
+ React9.useEffect(() => {
3435
3497
  if (report === null || backend === null) return;
3436
3498
  const target = report.items.find((item) => item.status === "fail" && item.subject === backend);
3437
3499
  if (target !== void 0) jumpTo(target);
3438
3500
  }, [report, backend, jumpTo]);
3439
3501
  }
3440
3502
  function useRootCauseJump() {
3441
- const cards = React8.useRef(/* @__PURE__ */ new Map());
3442
- const [highlighted, setHighlighted] = React8.useState(null);
3443
- const registerCard = React8.useCallback((key, node) => {
3503
+ const cards = React9.useRef(/* @__PURE__ */ new Map());
3504
+ const [highlighted, setHighlighted] = React9.useState(null);
3505
+ const registerCard = React9.useCallback((key, node) => {
3444
3506
  if (node === null) cards.current.delete(key);
3445
3507
  else cards.current.set(key, node);
3446
3508
  }, []);
3447
- const jumpTo = React8.useCallback((target) => {
3509
+ const jumpTo = React9.useCallback((target) => {
3448
3510
  const key = refKey(target);
3449
3511
  const node = cards.current.get(key);
3450
3512
  if (node === void 0) return;
@@ -3452,7 +3514,7 @@ function useRootCauseJump() {
3452
3514
  node.focus();
3453
3515
  setHighlighted(key);
3454
3516
  }, []);
3455
- React8.useEffect(() => {
3517
+ React9.useEffect(() => {
3456
3518
  if (highlighted === null) return void 0;
3457
3519
  const timer = window.setTimeout(() => {
3458
3520
  setHighlighted(null);
@@ -3468,7 +3530,7 @@ function refKey(ref) {
3468
3530
  }
3469
3531
  function ErrorAlert(props) {
3470
3532
  const { t: t2 } = useI18n();
3471
- return /* @__PURE__ */ React8.createElement("div", { role: "alert", "data-testid": "env-error", style: ERROR_STYLE }, /* @__PURE__ */ React8.createElement("div", null, props.error.message), props.canRetry ? /* @__PURE__ */ React8.createElement(
3533
+ return /* @__PURE__ */ React9.createElement("div", { role: "alert", "data-testid": "env-error", style: ERROR_STYLE }, /* @__PURE__ */ React9.createElement("div", null, props.error.message), props.canRetry ? /* @__PURE__ */ React9.createElement(
3472
3534
  "button",
3473
3535
  {
3474
3536
  type: "button",
@@ -3481,7 +3543,7 @@ function ErrorAlert(props) {
3481
3543
  ) : null);
3482
3544
  }
3483
3545
  function ItemList(props) {
3484
- return /* @__PURE__ */ React8.createElement(
3546
+ return /* @__PURE__ */ React9.createElement(
3485
3547
  "div",
3486
3548
  {
3487
3549
  role: "list",
@@ -3490,7 +3552,7 @@ function ItemList(props) {
3490
3552
  },
3491
3553
  props.report.items.map((item) => {
3492
3554
  const key = refKey(item);
3493
- return /* @__PURE__ */ React8.createElement("div", { role: "listitem", key }, /* @__PURE__ */ React8.createElement(
3555
+ return /* @__PURE__ */ React9.createElement("div", { role: "listitem", key }, /* @__PURE__ */ React9.createElement(
3494
3556
  ItemCard,
3495
3557
  {
3496
3558
  item,
@@ -3514,7 +3576,7 @@ function ItemCard(props) {
3514
3576
  (candidate) => candidate.id === blockedBy.id && candidate.subject === blockedBy.subject
3515
3577
  );
3516
3578
  const blockerTitle = blocker === void 0 ? null : envCheckTitle(blocker, t2);
3517
- return /* @__PURE__ */ React8.createElement(
3579
+ return /* @__PURE__ */ React9.createElement(
3518
3580
  "div",
3519
3581
  {
3520
3582
  ref: (node) => {
@@ -3531,8 +3593,8 @@ function ItemCard(props) {
3531
3593
  ...props.highlighted ? ENV_CARD_HIGHLIGHT_STYLE : void 0
3532
3594
  }
3533
3595
  },
3534
- /* @__PURE__ */ React8.createElement(StatusIcon, { status: item.status }),
3535
- /* @__PURE__ */ React8.createElement("div", { style: { minWidth: 0 } }, /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-item-title", style: ENV_TITLE_STYLE }, envCheckTitle(item, t2)), /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-item-detail", style: ENV_DETAIL_STYLE }, item.detail), item.status === "fail" ? /* @__PURE__ */ React8.createElement(RemedySection, { item, report: props.report, handlers: props.handlers }) : null, blockerTitle === null || blockedBy === null ? null : /* @__PURE__ */ React8.createElement("div", { "data-testid": "env-item-blocked", style: ENV_SKIP_STYLE }, t2("env.blockedBy", { title: blockerTitle }), /* @__PURE__ */ React8.createElement(
3596
+ /* @__PURE__ */ React9.createElement(StatusIcon, { status: item.status }),
3597
+ /* @__PURE__ */ React9.createElement("div", { style: { minWidth: 0 } }, /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-item-title", style: ENV_TITLE_STYLE }, envCheckTitle(item, t2)), /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-item-detail", style: ENV_DETAIL_STYLE }, item.detail), item.status === "fail" ? /* @__PURE__ */ React9.createElement(RemedySection, { item, report: props.report, handlers: props.handlers }) : null, blockerTitle === null || blockedBy === null ? null : /* @__PURE__ */ React9.createElement("div", { "data-testid": "env-item-blocked", style: ENV_SKIP_STYLE }, t2("env.blockedBy", { title: blockerTitle }), /* @__PURE__ */ React9.createElement(
3536
3598
  "button",
3537
3599
  {
3538
3600
  type: "button",
@@ -3551,7 +3613,7 @@ function StatusIcon(props) {
3551
3613
  const { t: t2 } = useI18n();
3552
3614
  const color = ENV_STATUS_COLORS[props.status];
3553
3615
  const path = props.status === "pass" ? "M4.5 8.5l2.5 2.5 4.5-5" : props.status === "fail" ? "M5 5l6 6M11 5l-6 6" : "M4.5 8h7";
3554
- return /* @__PURE__ */ React8.createElement(
3616
+ return /* @__PURE__ */ React9.createElement(
3555
3617
  "svg",
3556
3618
  {
3557
3619
  width: "16",
@@ -3562,13 +3624,13 @@ function StatusIcon(props) {
3562
3624
  "aria-label": t2(STATUS_KEYS[props.status]),
3563
3625
  style: { color, flex: "none", marginTop: 1 }
3564
3626
  },
3565
- /* @__PURE__ */ React8.createElement("circle", { cx: "8", cy: "8", r: "6.25", stroke: "currentColor", strokeWidth: "1.3" }),
3566
- /* @__PURE__ */ React8.createElement("path", { d: path, stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", fill: "none" })
3627
+ /* @__PURE__ */ React9.createElement("circle", { cx: "8", cy: "8", r: "6.25", stroke: "currentColor", strokeWidth: "1.3" }),
3628
+ /* @__PURE__ */ React9.createElement("path", { d: path, stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", fill: "none" })
3567
3629
  );
3568
3630
  }
3569
3631
 
3570
3632
  // src/client/help-view.tsx
3571
- var React9 = __toESM(require("react"), 1);
3633
+ var React10 = __toESM(require("react"), 1);
3572
3634
 
3573
3635
  // src/client/help-flow.ts
3574
3636
  var STOPPING_COMMAND_NODE = { command: null, state: null, note: null, stops: true };
@@ -3822,15 +3884,15 @@ var STOP_DOT_STYLE = {
3822
3884
  var DIAGRAM_MAX_WIDTH = 360;
3823
3885
  function HelpView(props) {
3824
3886
  const { t: t2 } = useI18n();
3825
- const [activeId, setActiveId] = React9.useState(HELP_DIAGRAMS[0]?.id ?? "");
3887
+ const [activeId, setActiveId] = React10.useState(HELP_DIAGRAMS[0]?.id ?? "");
3826
3888
  const active = HELP_DIAGRAMS.find((diagram) => diagram.id === activeId) ?? HELP_DIAGRAMS[0];
3827
- return /* @__PURE__ */ React9.createElement(
3889
+ return /* @__PURE__ */ React10.createElement(
3828
3890
  "div",
3829
3891
  {
3830
3892
  "data-testid": "help-view",
3831
3893
  style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }
3832
3894
  },
3833
- /* @__PURE__ */ React9.createElement(
3895
+ /* @__PURE__ */ React10.createElement(
3834
3896
  "header",
3835
3897
  {
3836
3898
  style: {
@@ -3842,10 +3904,10 @@ function HelpView(props) {
3842
3904
  borderBottom: `1px solid ${COLORS.border}`
3843
3905
  }
3844
3906
  },
3845
- /* @__PURE__ */ React9.createElement("button", { type: "button", "data-testid": "help-back", onClick: props.onBack, style: BUTTON_STYLE }, t2("common.back")),
3846
- /* @__PURE__ */ React9.createElement("span", { style: { fontSize: 13, fontWeight: 600 } }, t2("view.help"))
3907
+ /* @__PURE__ */ React10.createElement("button", { type: "button", "data-testid": "help-back", onClick: props.onBack, style: BUTTON_STYLE }, t2("common.back")),
3908
+ /* @__PURE__ */ React10.createElement("span", { style: { fontSize: 13, fontWeight: 600 } }, t2("view.help"))
3847
3909
  ),
3848
- /* @__PURE__ */ React9.createElement(
3910
+ /* @__PURE__ */ React10.createElement(
3849
3911
  "div",
3850
3912
  {
3851
3913
  style: {
@@ -3858,8 +3920,8 @@ function HelpView(props) {
3858
3920
  padding: "12px 12px 16px"
3859
3921
  }
3860
3922
  },
3861
- /* @__PURE__ */ React9.createElement("p", { style: { margin: 0, color: COLORS.secondary, fontSize: 12, lineHeight: 1.6 } }, t2("help.intro")),
3862
- /* @__PURE__ */ React9.createElement(
3923
+ /* @__PURE__ */ React10.createElement("p", { style: { margin: 0, color: COLORS.secondary, fontSize: 12, lineHeight: 1.6 } }, t2("help.intro")),
3924
+ /* @__PURE__ */ React10.createElement(
3863
3925
  ScenarioTabs,
3864
3926
  {
3865
3927
  activeId: active?.id,
@@ -3868,7 +3930,7 @@ function HelpView(props) {
3868
3930
  }
3869
3931
  }
3870
3932
  ),
3871
- active === void 0 ? null : /* @__PURE__ */ React9.createElement(
3933
+ active === void 0 ? null : /* @__PURE__ */ React10.createElement(
3872
3934
  "div",
3873
3935
  {
3874
3936
  id: "flow-diagrams",
@@ -3884,15 +3946,15 @@ function HelpView(props) {
3884
3946
  borderRadius: 10
3885
3947
  }
3886
3948
  },
3887
- /* @__PURE__ */ React9.createElement(Diagram, { key: active.id, diagram: active }),
3888
- /* @__PURE__ */ React9.createElement(Legend, null)
3949
+ /* @__PURE__ */ React10.createElement(Diagram, { key: active.id, diagram: active }),
3950
+ /* @__PURE__ */ React10.createElement(Legend, null)
3889
3951
  )
3890
3952
  )
3891
3953
  );
3892
3954
  }
3893
3955
  function ScenarioTabs(props) {
3894
3956
  const { t: t2 } = useI18n();
3895
- return /* @__PURE__ */ React9.createElement(
3957
+ return /* @__PURE__ */ React10.createElement(
3896
3958
  "div",
3897
3959
  {
3898
3960
  role: "tablist",
@@ -3901,7 +3963,7 @@ function ScenarioTabs(props) {
3901
3963
  },
3902
3964
  HELP_DIAGRAMS.map((diagram) => {
3903
3965
  const selected = diagram.id === props.activeId;
3904
- return /* @__PURE__ */ React9.createElement(
3966
+ return /* @__PURE__ */ React10.createElement(
3905
3967
  "button",
3906
3968
  {
3907
3969
  key: diagram.id,
@@ -3924,7 +3986,7 @@ function ScenarioTabs(props) {
3924
3986
  }
3925
3987
  function Legend() {
3926
3988
  const { t: t2 } = useI18n();
3927
- return /* @__PURE__ */ React9.createElement(
3989
+ return /* @__PURE__ */ React10.createElement(
3928
3990
  "div",
3929
3991
  {
3930
3992
  "data-testid": "flow-legend",
@@ -3939,13 +4001,13 @@ function Legend() {
3939
4001
  fontSize: 11
3940
4002
  }
3941
4003
  },
3942
- /* @__PURE__ */ React9.createElement("span", { "data-testid": "legend-plugin", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React9.createElement(Swatch, { color: COLORS.accent, filled: true }), t2("help.legend.plugin")),
3943
- /* @__PURE__ */ React9.createElement("span", { "data-testid": "legend-matt", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React9.createElement(Swatch, { color: COLORS.borderStrong }), t2("help.legend.matt")),
3944
- /* @__PURE__ */ React9.createElement("span", { "data-testid": "legend-stop", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React9.createElement("span", { style: STOP_DOT_STYLE }), t2("help.legend.stop"))
4004
+ /* @__PURE__ */ React10.createElement("span", { "data-testid": "legend-plugin", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React10.createElement(Swatch, { color: COLORS.accent, filled: true }), t2("help.legend.plugin")),
4005
+ /* @__PURE__ */ React10.createElement("span", { "data-testid": "legend-matt", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React10.createElement(Swatch, { color: COLORS.borderStrong }), t2("help.legend.matt")),
4006
+ /* @__PURE__ */ React10.createElement("span", { "data-testid": "legend-stop", style: LEGEND_ITEM_STYLE }, /* @__PURE__ */ React10.createElement("span", { style: STOP_DOT_STYLE }), t2("help.legend.stop"))
3945
4007
  );
3946
4008
  }
3947
4009
  function Swatch(props) {
3948
- return /* @__PURE__ */ React9.createElement(
4010
+ return /* @__PURE__ */ React10.createElement(
3949
4011
  "span",
3950
4012
  {
3951
4013
  style: {
@@ -3963,7 +4025,7 @@ function Diagram(props) {
3963
4025
  const { t: t2 } = useI18n();
3964
4026
  const layout = layoutDiagram(props.diagram);
3965
4027
  const markerId = `flow-arrow-${props.diagram.id}`;
3966
- return /* @__PURE__ */ React9.createElement("section", { style: { display: "flex", flexDirection: "column", gap: 10 } }, /* @__PURE__ */ React9.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 3 } }, /* @__PURE__ */ React9.createElement("h3", { style: { margin: 0, fontSize: 13, fontWeight: 600, color: COLORS.text } }, t2(props.diagram.titleKey)), /* @__PURE__ */ React9.createElement("p", { style: { margin: 0, color: COLORS.secondary, fontSize: 12, lineHeight: 1.6 } }, t2(props.diagram.summaryKey))), /* @__PURE__ */ React9.createElement(
4028
+ return /* @__PURE__ */ React10.createElement("section", { style: { display: "flex", flexDirection: "column", gap: 10 } }, /* @__PURE__ */ React10.createElement("div", { style: { display: "flex", flexDirection: "column", gap: 3 } }, /* @__PURE__ */ React10.createElement("h3", { style: { margin: 0, fontSize: 13, fontWeight: 600, color: COLORS.text } }, t2(props.diagram.titleKey)), /* @__PURE__ */ React10.createElement("p", { style: { margin: 0, color: COLORS.secondary, fontSize: 12, lineHeight: 1.6 } }, t2(props.diagram.summaryKey))), /* @__PURE__ */ React10.createElement(
3967
4029
  "svg",
3968
4030
  {
3969
4031
  role: "img",
@@ -3977,7 +4039,7 @@ function Diagram(props) {
3977
4039
  margin: "0 auto"
3978
4040
  }
3979
4041
  },
3980
- /* @__PURE__ */ React9.createElement("defs", null, /* @__PURE__ */ React9.createElement(
4042
+ /* @__PURE__ */ React10.createElement("defs", null, /* @__PURE__ */ React10.createElement(
3981
4043
  "marker",
3982
4044
  {
3983
4045
  id: markerId,
@@ -3988,10 +4050,10 @@ function Diagram(props) {
3988
4050
  markerHeight: "6",
3989
4051
  orient: "auto-start-reverse"
3990
4052
  },
3991
- /* @__PURE__ */ React9.createElement("path", { d: "M0,0 L8,4 L0,8 z", fill: COLORS.borderStrong })
4053
+ /* @__PURE__ */ React10.createElement("path", { d: "M0,0 L8,4 L0,8 z", fill: COLORS.borderStrong })
3992
4054
  )),
3993
4055
  layout.rows.map(
3994
- (row, index) => row.frame === null ? null : /* @__PURE__ */ React9.createElement(
4056
+ (row, index) => row.frame === null ? null : /* @__PURE__ */ React10.createElement(
3995
4057
  "rect",
3996
4058
  {
3997
4059
  key: `frame-${String(index)}`,
@@ -4006,8 +4068,8 @@ function Diagram(props) {
4006
4068
  }
4007
4069
  )
4008
4070
  ),
4009
- /* @__PURE__ */ React9.createElement(Connectors, { rows: layout.rows, markerId }),
4010
- layout.rows.flatMap((row) => row.lines.flat()).map((placed, index) => /* @__PURE__ */ React9.createElement(NodeShape, { key: `${String(index)}-${placed.node.command ?? ""}`, placed }))
4071
+ /* @__PURE__ */ React10.createElement(Connectors, { rows: layout.rows, markerId }),
4072
+ layout.rows.flatMap((row) => row.lines.flat()).map((placed, index) => /* @__PURE__ */ React10.createElement(NodeShape, { key: `${String(index)}-${placed.node.command ?? ""}`, placed }))
4011
4073
  ));
4012
4074
  }
4013
4075
  function Connectors(props) {
@@ -4030,7 +4092,7 @@ function Connectors(props) {
4030
4092
  const end = to2[0];
4031
4093
  if (start === void 0 || end === void 0) continue;
4032
4094
  paths.push(
4033
- /* @__PURE__ */ React9.createElement(
4095
+ /* @__PURE__ */ React10.createElement(
4034
4096
  "line",
4035
4097
  {
4036
4098
  key: `line-${String(index)}`,
@@ -4047,7 +4109,7 @@ function Connectors(props) {
4047
4109
  continue;
4048
4110
  }
4049
4111
  const segments = [
4050
- ...from.map((point) => /* @__PURE__ */ React9.createElement(
4112
+ ...from.map((point) => /* @__PURE__ */ React10.createElement(
4051
4113
  "line",
4052
4114
  {
4053
4115
  key: `from-${String(index)}-${String(point.x)}`,
@@ -4059,7 +4121,7 @@ function Connectors(props) {
4059
4121
  strokeWidth: 1.2
4060
4122
  }
4061
4123
  )),
4062
- /* @__PURE__ */ React9.createElement(
4124
+ /* @__PURE__ */ React10.createElement(
4063
4125
  "line",
4064
4126
  {
4065
4127
  key: `bar-${String(index)}`,
@@ -4072,7 +4134,7 @@ function Connectors(props) {
4072
4134
  strokeLinecap: "round"
4073
4135
  }
4074
4136
  ),
4075
- ...to2.map((point) => /* @__PURE__ */ React9.createElement(
4137
+ ...to2.map((point) => /* @__PURE__ */ React10.createElement(
4076
4138
  "line",
4077
4139
  {
4078
4140
  key: `to-${String(index)}-${String(point.x)}`,
@@ -4086,9 +4148,9 @@ function Connectors(props) {
4086
4148
  }
4087
4149
  ))
4088
4150
  ];
4089
- paths.push(/* @__PURE__ */ React9.createElement("g", { key: `connector-${String(index)}` }, segments));
4151
+ paths.push(/* @__PURE__ */ React10.createElement("g", { key: `connector-${String(index)}` }, segments));
4090
4152
  }
4091
- return /* @__PURE__ */ React9.createElement("g", null, paths);
4153
+ return /* @__PURE__ */ React10.createElement("g", null, paths);
4092
4154
  }
4093
4155
  function edgePoints(row, side) {
4094
4156
  const y = side === "top" ? row.edgeTop : row.edgeBottom;
@@ -4106,14 +4168,14 @@ function NodeShape(props) {
4106
4168
  const centerX = placed.x + placed.width / 2;
4107
4169
  const label = command === null ? helpStateText(node, t2) : command.name;
4108
4170
  const plugin = command?.owner === "plugin";
4109
- return /* @__PURE__ */ React9.createElement(
4171
+ return /* @__PURE__ */ React10.createElement(
4110
4172
  "g",
4111
4173
  {
4112
4174
  "data-command": command?.name,
4113
4175
  "data-owner": command?.owner,
4114
4176
  "data-stops": node.stops ? "true" : "false"
4115
4177
  },
4116
- /* @__PURE__ */ React9.createElement(
4178
+ /* @__PURE__ */ React10.createElement(
4117
4179
  "rect",
4118
4180
  {
4119
4181
  x: placed.x,
@@ -4127,7 +4189,7 @@ function NodeShape(props) {
4127
4189
  strokeDasharray: command === null ? "3 3" : void 0
4128
4190
  }
4129
4191
  ),
4130
- /* @__PURE__ */ React9.createElement(
4192
+ /* @__PURE__ */ React10.createElement(
4131
4193
  "text",
4132
4194
  {
4133
4195
  x: centerX,
@@ -4139,7 +4201,7 @@ function NodeShape(props) {
4139
4201
  },
4140
4202
  label
4141
4203
  ),
4142
- node.note === null ? null : /* @__PURE__ */ React9.createElement(
4204
+ node.note === null ? null : /* @__PURE__ */ React10.createElement(
4143
4205
  "text",
4144
4206
  {
4145
4207
  x: centerX,
@@ -4150,7 +4212,7 @@ function NodeShape(props) {
4150
4212
  },
4151
4213
  t2(node.note)
4152
4214
  ),
4153
- node.stops ? /* @__PURE__ */ React9.createElement("circle", { cx: placed.x + placed.width, cy: placed.y, r: 3.5, fill: COLORS.warn }) : null
4215
+ node.stops ? /* @__PURE__ */ React10.createElement("circle", { cx: placed.x + placed.width, cy: placed.y, r: 3.5, fill: COLORS.warn }) : null
4154
4216
  );
4155
4217
  }
4156
4218
  function helpStateText(node, t2) {
@@ -4204,10 +4266,10 @@ function splitLines(nodes) {
4204
4266
  }
4205
4267
 
4206
4268
  // src/client/overview-view.tsx
4207
- var React15 = __toESM(require("react"), 1);
4269
+ var React16 = __toESM(require("react"), 1);
4208
4270
 
4209
4271
  // src/client/error-banner.tsx
4210
- var React10 = __toESM(require("react"), 1);
4272
+ var React11 = __toESM(require("react"), 1);
4211
4273
 
4212
4274
  // src/client/error-text.ts
4213
4275
  var ERROR_MESSAGES = {
@@ -4231,7 +4293,7 @@ function isEnvIssue(code) {
4231
4293
  // src/client/error-banner.tsx
4232
4294
  function ErrorBanner(props) {
4233
4295
  const { t: t2 } = useI18n();
4234
- return /* @__PURE__ */ React10.createElement("div", { role: "alert", "data-testid": "error", style: ERROR_STYLE }, /* @__PURE__ */ React10.createElement("div", null, errorText(props.error, t2)), isEnvIssue(props.error.code) ? /* @__PURE__ */ React10.createElement(
4296
+ return /* @__PURE__ */ React11.createElement("div", { role: "alert", "data-testid": "error", style: ERROR_STYLE }, /* @__PURE__ */ React11.createElement("div", null, errorText(props.error, t2)), isEnvIssue(props.error.code) ? /* @__PURE__ */ React11.createElement(
4235
4297
  "button",
4236
4298
  {
4237
4299
  type: "button",
@@ -4463,7 +4525,7 @@ var EMPTY_BAR_STYLE = {
4463
4525
  };
4464
4526
 
4465
4527
  // src/client/overview-charts.tsx
4466
- var React11 = __toESM(require("react"), 1);
4528
+ var React12 = __toESM(require("react"), 1);
4467
4529
 
4468
4530
  // src/client/overview-styles.ts
4469
4531
  var TIER_COLORS = {
@@ -4897,7 +4959,7 @@ function sampleNote(snapshot, t2) {
4897
4959
  function TierMeter(props) {
4898
4960
  const level = tierLevel(props.tier);
4899
4961
  const fill = props.tier === null ? COLORS.track : TIER_COLORS[props.tier];
4900
- return /* @__PURE__ */ React11.createElement("span", { role: "img", "aria-label": props.label, title: props.label, style: TIER_METER_STYLE }, [1, 2, 3].map((step) => /* @__PURE__ */ React11.createElement(
4962
+ return /* @__PURE__ */ React12.createElement("span", { role: "img", "aria-label": props.label, title: props.label, style: TIER_METER_STYLE }, [1, 2, 3].map((step) => /* @__PURE__ */ React12.createElement(
4901
4963
  "span",
4902
4964
  {
4903
4965
  key: step,
@@ -4913,11 +4975,11 @@ var CLOSED_COLOR = NEUTRAL_FILL;
4913
4975
  function FlowChart(props) {
4914
4976
  const { t: t2 } = useI18n();
4915
4977
  const { buckets } = props;
4916
- const [active, setActive] = React11.useState(null);
4978
+ const [active, setActive] = React12.useState(null);
4917
4979
  const hasClosed = buckets.some((bucket) => bucket.closed !== null);
4918
4980
  const peak = Math.max(1, ...buckets.map((bucket) => Math.max(bucket.opened, bucket.closed ?? 0)));
4919
4981
  const shown = buckets[active ?? buckets.length - 1];
4920
- return /* @__PURE__ */ React11.createElement("div", { "data-testid": "flow-chart", style: { display: "flex", flexDirection: "column", gap: 6 } }, /* @__PURE__ */ React11.createElement(FlowLegend, { hasClosed }), /* @__PURE__ */ React11.createElement(
4982
+ return /* @__PURE__ */ React12.createElement("div", { "data-testid": "flow-chart", style: { display: "flex", flexDirection: "column", gap: 6 } }, /* @__PURE__ */ React12.createElement(FlowLegend, { hasClosed }), /* @__PURE__ */ React12.createElement(
4921
4983
  "div",
4922
4984
  {
4923
4985
  style: { ...FLOW_PLOT_STYLE, marginTop: 14 },
@@ -4925,8 +4987,8 @@ function FlowChart(props) {
4925
4987
  setActive(null);
4926
4988
  }
4927
4989
  },
4928
- /* @__PURE__ */ React11.createElement("div", { "aria-hidden": "true", style: FLOW_PEAK_LINE_STYLE }, /* @__PURE__ */ React11.createElement("span", { style: FLOW_PEAK_LABEL_STYLE }, String(peak))),
4929
- buckets.map((bucket, index) => /* @__PURE__ */ React11.createElement(
4990
+ /* @__PURE__ */ React12.createElement("div", { "aria-hidden": "true", style: FLOW_PEAK_LINE_STYLE }, /* @__PURE__ */ React12.createElement("span", { style: FLOW_PEAK_LABEL_STYLE }, String(peak))),
4991
+ buckets.map((bucket, index) => /* @__PURE__ */ React12.createElement(
4930
4992
  "div",
4931
4993
  {
4932
4994
  key: bucket.start,
@@ -4947,7 +5009,7 @@ function FlowChart(props) {
4947
5009
  background: active === index ? COLORS.track : "transparent"
4948
5010
  }
4949
5011
  },
4950
- /* @__PURE__ */ React11.createElement(
5012
+ /* @__PURE__ */ React12.createElement(
4951
5013
  FlowBar,
4952
5014
  {
4953
5015
  value: bucket.opened,
@@ -4957,7 +5019,7 @@ function FlowChart(props) {
4957
5019
  index
4958
5020
  }
4959
5021
  ),
4960
- bucket.closed === null ? null : /* @__PURE__ */ React11.createElement(
5022
+ bucket.closed === null ? null : /* @__PURE__ */ React12.createElement(
4961
5023
  FlowBar,
4962
5024
  {
4963
5025
  value: bucket.closed,
@@ -4968,10 +5030,10 @@ function FlowChart(props) {
4968
5030
  }
4969
5031
  )
4970
5032
  ))
4971
- ), /* @__PURE__ */ React11.createElement("div", { "aria-hidden": "true", style: FLOW_AXIS_STYLE }, buckets.map((bucket, index) => /* @__PURE__ */ React11.createElement("span", { key: bucket.start, style: FLOW_AXIS_LABEL_STYLE }, axisLabel(bucket, buckets.length - 1 - index, t2)))), shown === void 0 ? null : /* @__PURE__ */ React11.createElement(FlowReadout, { bucket: shown }));
5033
+ ), /* @__PURE__ */ React12.createElement("div", { "aria-hidden": "true", style: FLOW_AXIS_STYLE }, buckets.map((bucket, index) => /* @__PURE__ */ React12.createElement("span", { key: bucket.start, style: FLOW_AXIS_LABEL_STYLE }, axisLabel(bucket, buckets.length - 1 - index, t2)))), shown === void 0 ? null : /* @__PURE__ */ React12.createElement(FlowReadout, { bucket: shown }));
4972
5034
  }
4973
5035
  function FlowBar(props) {
4974
- return /* @__PURE__ */ React11.createElement(
5036
+ return /* @__PURE__ */ React12.createElement(
4975
5037
  "span",
4976
5038
  {
4977
5039
  style: {
@@ -4986,12 +5048,12 @@ function FlowBar(props) {
4986
5048
  }
4987
5049
  function FlowLegend(props) {
4988
5050
  const { t: t2 } = useI18n();
4989
- return /* @__PURE__ */ React11.createElement("div", { style: LEGEND_STYLE }, /* @__PURE__ */ React11.createElement("span", { style: LEGEND_ITEM_STYLE2 }, /* @__PURE__ */ React11.createElement("span", { "aria-hidden": "true", style: { ...SERIES_KEY_STYLE, background: OPENED_COLOR } }), t2("overview.flow.opened")), props.hasClosed ? /* @__PURE__ */ React11.createElement("span", { style: LEGEND_ITEM_STYLE2 }, /* @__PURE__ */ React11.createElement("span", { "aria-hidden": "true", style: { ...SERIES_KEY_STYLE, background: CLOSED_COLOR } }), t2("overview.flow.closed")) : null);
5051
+ return /* @__PURE__ */ React12.createElement("div", { style: LEGEND_STYLE }, /* @__PURE__ */ React12.createElement("span", { style: LEGEND_ITEM_STYLE2 }, /* @__PURE__ */ React12.createElement("span", { "aria-hidden": "true", style: { ...SERIES_KEY_STYLE, background: OPENED_COLOR } }), t2("overview.flow.opened")), props.hasClosed ? /* @__PURE__ */ React12.createElement("span", { style: LEGEND_ITEM_STYLE2 }, /* @__PURE__ */ React12.createElement("span", { "aria-hidden": "true", style: { ...SERIES_KEY_STYLE, background: CLOSED_COLOR } }), t2("overview.flow.closed")) : null);
4990
5052
  }
4991
5053
  function FlowReadout(props) {
4992
5054
  const { t: t2 } = useI18n();
4993
5055
  const { bucket } = props;
4994
- return /* @__PURE__ */ React11.createElement("div", { "data-testid": "flow-readout", "aria-live": "polite", style: READOUT_STYLE }, /* @__PURE__ */ React11.createElement("span", null, flowRange(bucket)), /* @__PURE__ */ React11.createElement("span", null, /* @__PURE__ */ React11.createElement("span", { style: READOUT_VALUE_STYLE }, String(bucket.opened)), " ", t2("overview.flow.opened")), bucket.closed === null ? null : /* @__PURE__ */ React11.createElement("span", null, /* @__PURE__ */ React11.createElement("span", { style: READOUT_VALUE_STYLE }, String(bucket.closed)), " ", t2("overview.flow.closed")));
5056
+ return /* @__PURE__ */ React12.createElement("div", { "data-testid": "flow-readout", "aria-live": "polite", style: READOUT_STYLE }, /* @__PURE__ */ React12.createElement("span", null, flowRange(bucket)), /* @__PURE__ */ React12.createElement("span", null, /* @__PURE__ */ React12.createElement("span", { style: READOUT_VALUE_STYLE }, String(bucket.opened)), " ", t2("overview.flow.opened")), bucket.closed === null ? null : /* @__PURE__ */ React12.createElement("span", null, /* @__PURE__ */ React12.createElement("span", { style: READOUT_VALUE_STYLE }, String(bucket.closed)), " ", t2("overview.flow.closed")));
4995
5057
  }
4996
5058
  function axisLabel(bucket, weeksAgo, t2) {
4997
5059
  if (weeksAgo === 0) return t2("overview.flow.thisWeek");
@@ -5011,13 +5073,13 @@ function flowSummary(bucket, t2) {
5011
5073
  function AgeHistogram(props) {
5012
5074
  const { t: t2 } = useI18n();
5013
5075
  const peak = Math.max(1, ...props.buckets.map((bucket) => bucket.count));
5014
- return /* @__PURE__ */ React11.createElement("div", { "data-testid": "age-histogram", style: AGE_LIST_STYLE }, props.buckets.map((bucket) => /* @__PURE__ */ React11.createElement(React11.Fragment, { key: bucket.key }, /* @__PURE__ */ React11.createElement("span", { style: AGE_LABEL_STYLE }, bucket.label), /* @__PURE__ */ React11.createElement(
5076
+ return /* @__PURE__ */ React12.createElement("div", { "data-testid": "age-histogram", style: AGE_LIST_STYLE }, props.buckets.map((bucket) => /* @__PURE__ */ React12.createElement(React12.Fragment, { key: bucket.key }, /* @__PURE__ */ React12.createElement("span", { style: AGE_LABEL_STYLE }, bucket.label), /* @__PURE__ */ React12.createElement(
5015
5077
  "span",
5016
5078
  {
5017
5079
  style: AGE_TRACK_STYLE,
5018
5080
  title: t2("overview.age.countTitle", { label: bucket.label, count: bucket.count })
5019
5081
  },
5020
- /* @__PURE__ */ React11.createElement(
5082
+ /* @__PURE__ */ React12.createElement(
5021
5083
  "span",
5022
5084
  {
5023
5085
  style: {
@@ -5028,7 +5090,7 @@ function AgeHistogram(props) {
5028
5090
  }
5029
5091
  }
5030
5092
  )
5031
- ), /* @__PURE__ */ React11.createElement("span", { "data-testid": `age-${bucket.key}`, style: AGE_COUNT_STYLE }, String(bucket.count)))));
5093
+ ), /* @__PURE__ */ React12.createElement("span", { "data-testid": `age-${bucket.key}`, style: AGE_COUNT_STYLE }, String(bucket.count)))));
5032
5094
  }
5033
5095
  var INLINE_LABEL_MIN_RATIO = 0.12;
5034
5096
  function SegmentedBar(props) {
@@ -5042,7 +5104,7 @@ function SegmentedBar(props) {
5042
5104
  ratio: formatPercent(segmentRatio(segment, total))
5043
5105
  })
5044
5106
  ).join(t2("common.clauseSeparator"));
5045
- return /* @__PURE__ */ React11.createElement("div", { "data-testid": props.testId, style: { display: "flex", flexDirection: "column", gap: 6 } }, /* @__PURE__ */ React11.createElement("span", { style: { color: COLORS.secondary, fontSize: 11 } }, props.title), visible.length === 0 ? /* @__PURE__ */ React11.createElement("div", { style: EMPTY_BAR_STYLE }) : /* @__PURE__ */ React11.createElement(
5107
+ return /* @__PURE__ */ React12.createElement("div", { "data-testid": props.testId, style: { display: "flex", flexDirection: "column", gap: 6 } }, /* @__PURE__ */ React12.createElement("span", { style: { color: COLORS.secondary, fontSize: 11 } }, props.title), visible.length === 0 ? /* @__PURE__ */ React12.createElement("div", { style: EMPTY_BAR_STYLE }) : /* @__PURE__ */ React12.createElement(
5046
5108
  "div",
5047
5109
  {
5048
5110
  role: "img",
@@ -5051,7 +5113,7 @@ function SegmentedBar(props) {
5051
5113
  },
5052
5114
  visible.map((segment) => {
5053
5115
  const ratio = segmentRatio(segment, total);
5054
- return /* @__PURE__ */ React11.createElement(
5116
+ return /* @__PURE__ */ React12.createElement(
5055
5117
  "span",
5056
5118
  {
5057
5119
  key: segment.key,
@@ -5070,14 +5132,14 @@ function SegmentedBar(props) {
5070
5132
  ratio >= INLINE_LABEL_MIN_RATIO ? formatPercent(ratio) : null
5071
5133
  );
5072
5134
  })
5073
- ), /* @__PURE__ */ React11.createElement("div", { style: LEGEND_STYLE }, props.segments.map((segment) => /* @__PURE__ */ React11.createElement(
5135
+ ), /* @__PURE__ */ React12.createElement("div", { style: LEGEND_STYLE }, props.segments.map((segment) => /* @__PURE__ */ React12.createElement(
5074
5136
  "span",
5075
5137
  {
5076
5138
  key: segment.key,
5077
5139
  "data-testid": `${props.testId}-${segment.key}`,
5078
5140
  style: LEGEND_ITEM_STYLE2
5079
5141
  },
5080
- /* @__PURE__ */ React11.createElement(
5142
+ /* @__PURE__ */ React12.createElement(
5081
5143
  "span",
5082
5144
  {
5083
5145
  "aria-hidden": "true",
@@ -5093,12 +5155,12 @@ function SegmentedBar(props) {
5093
5155
  }
5094
5156
 
5095
5157
  // src/client/overview-pressure.tsx
5096
- var React12 = __toESM(require("react"), 1);
5158
+ var React13 = __toESM(require("react"), 1);
5097
5159
  function PressureSection(props) {
5098
5160
  const { t: t2 } = useI18n();
5099
5161
  const { snapshot } = props;
5100
5162
  const { pressure, coverage } = snapshot.metrics;
5101
- return /* @__PURE__ */ React12.createElement("section", { "data-testid": "pressure-overview", style: SECTION_STYLE }, /* @__PURE__ */ React12.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React12.createElement("span", null, t2("overview.pressure.title")), /* @__PURE__ */ React12.createElement(
5163
+ return /* @__PURE__ */ React13.createElement("section", { "data-testid": "pressure-overview", style: SECTION_STYLE }, /* @__PURE__ */ React13.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React13.createElement("span", null, t2("overview.pressure.title")), /* @__PURE__ */ React13.createElement(
5102
5164
  "span",
5103
5165
  {
5104
5166
  "data-testid": "pressure-tier",
@@ -5106,14 +5168,14 @@ function PressureSection(props) {
5106
5168
  style: TIER_BADGE_STYLES[pressure.tier]
5107
5169
  },
5108
5170
  pressureTierLabel(pressure.tier, t2)
5109
- )), /* @__PURE__ */ React12.createElement("div", { "data-testid": "metric-grid", style: DIMENSION_GRID_STYLE }, pressure.dimensions.map((report) => /* @__PURE__ */ React12.createElement(
5171
+ )), /* @__PURE__ */ React13.createElement("div", { "data-testid": "metric-grid", style: DIMENSION_GRID_STYLE }, pressure.dimensions.map((report) => /* @__PURE__ */ React13.createElement(
5110
5172
  DimensionCard,
5111
5173
  {
5112
5174
  key: report.dimension,
5113
5175
  report,
5114
5176
  rows: visibleRows(report, snapshot, t2)
5115
5177
  }
5116
- ))), /* @__PURE__ */ React12.createElement("div", { style: NOTE_STYLE }, t2("overview.pressure.note"), coverage.truncated ? /* @__PURE__ */ React12.createElement("span", { "data-testid": "pressure-coverage" }, t2("overview.pressure.coverage", {
5178
+ ))), /* @__PURE__ */ React13.createElement("div", { style: NOTE_STYLE }, t2("overview.pressure.note"), coverage.truncated ? /* @__PURE__ */ React13.createElement("span", { "data-testid": "pressure-coverage" }, t2("overview.pressure.coverage", {
5117
5179
  loaded: snapshot.loaded,
5118
5180
  total: snapshot.total
5119
5181
  })) : t2("overview.pressure.period")));
@@ -5124,14 +5186,14 @@ function DimensionCard(props) {
5124
5186
  const name = pressureDimensionLabel(report.dimension, t2);
5125
5187
  const tierLabel = report.tier === null ? t2("overview.pressure.unavailable") : pressureTierLabel(report.tier, t2);
5126
5188
  const basis = pressureDimensionBasis(report.dimension, t2);
5127
- return /* @__PURE__ */ React12.createElement(
5189
+ return /* @__PURE__ */ React13.createElement(
5128
5190
  "div",
5129
5191
  {
5130
5192
  "data-testid": `pressure-${report.dimension}`,
5131
5193
  "data-tier": report.tier,
5132
5194
  style: DIMENSION_CARD_STYLE
5133
5195
  },
5134
- /* @__PURE__ */ React12.createElement("div", { style: DIMENSION_HEAD_STYLE }, /* @__PURE__ */ React12.createElement("span", { style: DIMENSION_NAME_STYLE, title: t2("overview.pressure.basis", { basis }) }, name), report.provisional ? /* @__PURE__ */ React12.createElement("span", { "data-testid": `pressure-provisional-${report.dimension}`, style: PROVISIONAL_STYLE }, t2("overview.pressure.provisional")) : null, /* @__PURE__ */ React12.createElement("span", { style: { ...TIER_TEXT_STYLE, marginLeft: "auto" } }, /* @__PURE__ */ React12.createElement(
5196
+ /* @__PURE__ */ React13.createElement("div", { style: DIMENSION_HEAD_STYLE }, /* @__PURE__ */ React13.createElement("span", { style: DIMENSION_NAME_STYLE, title: t2("overview.pressure.basis", { basis }) }, name), report.provisional ? /* @__PURE__ */ React13.createElement("span", { "data-testid": `pressure-provisional-${report.dimension}`, style: PROVISIONAL_STYLE }, t2("overview.pressure.provisional")) : null, /* @__PURE__ */ React13.createElement("span", { style: { ...TIER_TEXT_STYLE, marginLeft: "auto" } }, /* @__PURE__ */ React13.createElement(
5135
5197
  "span",
5136
5198
  {
5137
5199
  "aria-hidden": "true",
@@ -5140,16 +5202,16 @@ function DimensionCard(props) {
5140
5202
  background: report.tier === null ? COLORS.tertiary : TIER_COLORS[report.tier]
5141
5203
  }
5142
5204
  }
5143
- ), /* @__PURE__ */ React12.createElement("span", { "data-testid": `pressure-tier-${report.dimension}` }, tierLabel))),
5144
- /* @__PURE__ */ React12.createElement(
5205
+ ), /* @__PURE__ */ React13.createElement("span", { "data-testid": `pressure-tier-${report.dimension}` }, tierLabel))),
5206
+ /* @__PURE__ */ React13.createElement(
5145
5207
  TierMeter,
5146
5208
  {
5147
5209
  tier: report.tier,
5148
5210
  label: t2("overview.pressure.tierLabel", { name, tier: tierLabel })
5149
5211
  }
5150
5212
  ),
5151
- /* @__PURE__ */ React12.createElement("div", null, /* @__PURE__ */ React12.createElement("div", { "data-testid": `pressure-facts-${report.dimension}`, style: DIMENSION_FACT_STYLE }, pressureFacts(report, t2)), /* @__PURE__ */ React12.createElement("div", { style: DIMENSION_BASIS_STYLE }, t2("overview.pressure.basis", { basis })), pressureGaps(report, t2).map((gap) => /* @__PURE__ */ React12.createElement("div", { key: gap, "data-testid": `pressure-gap-${report.dimension}`, style: NOTE_STYLE }, gap))),
5152
- /* @__PURE__ */ React12.createElement("dl", { style: METRIC_ROWS_STYLE }, props.rows.map((row) => /* @__PURE__ */ React12.createElement("div", { key: row.testId, "data-testid": row.testId, style: { display: "contents" } }, /* @__PURE__ */ React12.createElement("dt", { style: METRIC_ROW_LABEL_STYLE }, row.label), /* @__PURE__ */ React12.createElement("dd", { style: METRIC_ROW_VALUE_STYLE }, row.value), row.note === void 0 ? null : /* @__PURE__ */ React12.createElement("dd", { style: METRIC_ROW_NOTE_STYLE }, row.note))))
5213
+ /* @__PURE__ */ React13.createElement("div", null, /* @__PURE__ */ React13.createElement("div", { "data-testid": `pressure-facts-${report.dimension}`, style: DIMENSION_FACT_STYLE }, pressureFacts(report, t2)), /* @__PURE__ */ React13.createElement("div", { style: DIMENSION_BASIS_STYLE }, t2("overview.pressure.basis", { basis })), pressureGaps(report, t2).map((gap) => /* @__PURE__ */ React13.createElement("div", { key: gap, "data-testid": `pressure-gap-${report.dimension}`, style: NOTE_STYLE }, gap))),
5214
+ /* @__PURE__ */ React13.createElement("dl", { style: METRIC_ROWS_STYLE }, props.rows.map((row) => /* @__PURE__ */ React13.createElement("div", { key: row.testId, "data-testid": row.testId, style: { display: "contents" } }, /* @__PURE__ */ React13.createElement("dt", { style: METRIC_ROW_LABEL_STYLE }, row.label), /* @__PURE__ */ React13.createElement("dd", { style: METRIC_ROW_VALUE_STYLE }, row.value), row.note === void 0 ? null : /* @__PURE__ */ React13.createElement("dd", { style: METRIC_ROW_NOTE_STYLE }, row.note))))
5153
5215
  );
5154
5216
  }
5155
5217
  function visibleRows(report, snapshot, t2) {
@@ -5229,11 +5291,11 @@ function dimensionRows(dimension, snapshot, t2) {
5229
5291
  }
5230
5292
 
5231
5293
  // src/client/snapshot-age.ts
5232
- var React13 = __toESM(require("react"), 1);
5294
+ var React14 = __toESM(require("react"), 1);
5233
5295
  var AGE_TICK_MS = 3e4;
5234
5296
  function useNow(clock) {
5235
- const [now, setNow] = React13.useState(() => clock());
5236
- React13.useEffect(() => {
5297
+ const [now, setNow] = React14.useState(() => clock());
5298
+ React14.useEffect(() => {
5237
5299
  const id = setInterval(() => {
5238
5300
  setNow(clock());
5239
5301
  }, AGE_TICK_MS);
@@ -5245,7 +5307,7 @@ function useNow(clock) {
5245
5307
  }
5246
5308
 
5247
5309
  // src/client/snapshot-request.ts
5248
- var React14 = __toESM(require("react"), 1);
5310
+ var React15 = __toESM(require("react"), 1);
5249
5311
  function snapshotRefreshNotice(snapshot, refreshError, t2) {
5250
5312
  if (refreshError !== null) return refreshError.message;
5251
5313
  const hostMessage = snapshot?.refreshError?.message;
@@ -5278,13 +5340,13 @@ function useSnapshotRequest(client, workspaceRoot, options) {
5278
5340
  const { t: t2 } = useI18n();
5279
5341
  const { snapshot, error, refreshError, phase, moreError, moreLoading, load, more } = useSnapshotLoader(client, workspaceRoot, t2);
5280
5342
  const signal = options?.signal ?? 0;
5281
- const autoRefreshed = React14.useRef(false);
5282
- const inFlight = React14.useRef(0);
5283
- const queued = React14.useRef(false);
5284
- const handledSignal = React14.useRef(signal);
5285
- const [retry, setRetry] = React14.useState(0);
5286
- const handledRetry = React14.useRef(0);
5287
- const run = React14.useCallback(
5343
+ const autoRefreshed = React15.useRef(false);
5344
+ const inFlight = React15.useRef(0);
5345
+ const queued = React15.useRef(false);
5346
+ const handledSignal = React15.useRef(signal);
5347
+ const [retry, setRetry] = React15.useState(0);
5348
+ const handledRetry = React15.useRef(0);
5349
+ const run = React15.useCallback(
5288
5350
  async (mode) => {
5289
5351
  if (mode === "auto" && inFlight.current > 0) {
5290
5352
  queued.current = true;
@@ -5310,29 +5372,29 @@ function useSnapshotRequest(client, workspaceRoot, options) {
5310
5372
  },
5311
5373
  [load]
5312
5374
  );
5313
- React14.useEffect(() => {
5375
+ React15.useEffect(() => {
5314
5376
  if (retry === handledRetry.current) return;
5315
5377
  handledRetry.current = retry;
5316
5378
  void run("auto");
5317
5379
  }, [retry, run]);
5318
- React14.useEffect(() => {
5380
+ React15.useEffect(() => {
5319
5381
  autoRefreshed.current = false;
5320
5382
  void run("get");
5321
5383
  }, [run]);
5322
- React14.useEffect(() => {
5384
+ React15.useEffect(() => {
5323
5385
  if (signal === handledSignal.current) return;
5324
5386
  handledSignal.current = signal;
5325
5387
  if (workspaceRoot === void 0) return;
5326
5388
  void run("auto");
5327
5389
  }, [signal, workspaceRoot, run]);
5328
- React14.useEffect(() => {
5390
+ React15.useEffect(() => {
5329
5391
  queued.current = false;
5330
5392
  }, [workspaceRoot]);
5331
- const refresh = React14.useCallback(() => {
5393
+ const refresh = React15.useCallback(() => {
5332
5394
  if (phase === "loading" || phase === "refreshing") return;
5333
5395
  void run("refresh");
5334
5396
  }, [phase, run]);
5335
- const refreshFull = React14.useCallback(() => {
5397
+ const refreshFull = React15.useCallback(() => {
5336
5398
  if (phase === "loading" || phase === "refreshing") return;
5337
5399
  void run("refresh-full");
5338
5400
  }, [phase, run]);
@@ -5349,17 +5411,17 @@ function useSnapshotRequest(client, workspaceRoot, options) {
5349
5411
  };
5350
5412
  }
5351
5413
  function useSnapshotLoader(client, workspaceRoot, t2) {
5352
- const [snapshot, setSnapshot] = React14.useState(null);
5353
- const [error, setError] = React14.useState(null);
5354
- const [refreshError, setRefreshError] = React14.useState(null);
5355
- const [phase, setPhase] = React14.useState("loading");
5356
- const [moreError, setMoreError] = React14.useState(null);
5357
- const [moreLoading, setMoreLoading] = React14.useState(false);
5358
- const sequence = React14.useRef(0);
5359
- const hasData = React14.useRef(false);
5360
- const latest = React14.useRef(null);
5361
- const moreRunning = React14.useRef(false);
5362
- const target = React14.useMemo(
5414
+ const [snapshot, setSnapshot] = React15.useState(null);
5415
+ const [error, setError] = React15.useState(null);
5416
+ const [refreshError, setRefreshError] = React15.useState(null);
5417
+ const [phase, setPhase] = React15.useState("loading");
5418
+ const [moreError, setMoreError] = React15.useState(null);
5419
+ const [moreLoading, setMoreLoading] = React15.useState(false);
5420
+ const sequence = React15.useRef(0);
5421
+ const hasData = React15.useRef(false);
5422
+ const latest = React15.useRef(null);
5423
+ const moreRunning = React15.useRef(false);
5424
+ const target = React15.useMemo(
5363
5425
  () => ({
5364
5426
  client,
5365
5427
  workspaceRoot,
@@ -5376,14 +5438,14 @@ function useSnapshotLoader(client, workspaceRoot, t2) {
5376
5438
  }),
5377
5439
  [client, workspaceRoot, t2]
5378
5440
  );
5379
- const load = React14.useCallback(
5441
+ const load = React15.useCallback(
5380
5442
  (mode) => loadSnapshot(target, mode),
5381
5443
  [target]
5382
5444
  );
5383
- const more = React14.useCallback(() => {
5445
+ const more = React15.useCallback(() => {
5384
5446
  void loadMoreSnapshot(target, moreRunning);
5385
5447
  }, [target]);
5386
- React14.useEffect(() => {
5448
+ React15.useEffect(() => {
5387
5449
  setSnapshot(null);
5388
5450
  setError(null);
5389
5451
  setRefreshError(null);
@@ -5503,13 +5565,13 @@ function OverviewView(props) {
5503
5565
  const { snapshot, error, refreshError, phase, refresh } = props.request;
5504
5566
  const nowValue = useNow(clock);
5505
5567
  const busy = phase === "loading" || phase === "refreshing";
5506
- return /* @__PURE__ */ React15.createElement(
5568
+ return /* @__PURE__ */ React16.createElement(
5507
5569
  "div",
5508
5570
  {
5509
5571
  "data-testid": "overview-view",
5510
5572
  style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }
5511
5573
  },
5512
- /* @__PURE__ */ React15.createElement(
5574
+ /* @__PURE__ */ React16.createElement(
5513
5575
  Identity,
5514
5576
  {
5515
5577
  snapshot,
@@ -5520,13 +5582,13 @@ function OverviewView(props) {
5520
5582
  onRefresh: refresh
5521
5583
  }
5522
5584
  ),
5523
- error === null ? null : /* @__PURE__ */ React15.createElement(ErrorBanner, { error, onOpenEnvCheck: props.onOpenEnvCheck }),
5524
- snapshot === null ? phase === "loading" ? /* @__PURE__ */ React15.createElement("div", { "data-testid": "overview-loading", style: EMPTY_STYLE }, t2("snapshot.loading")) : null : /* @__PURE__ */ React15.createElement("div", { style: OVERVIEW_STYLE }, /* @__PURE__ */ React15.createElement(PressureSection, { snapshot }), /* @__PURE__ */ React15.createElement(FlowSection, { snapshot }), /* @__PURE__ */ React15.createElement(AgeSection, { snapshot }), /* @__PURE__ */ React15.createElement(CompositionSection, { snapshot }), /* @__PURE__ */ React15.createElement(AttentionSection, { items: snapshot.metrics.attention, onOpenTicket: props.onOpenTicket }))
5585
+ error === null ? null : /* @__PURE__ */ React16.createElement(ErrorBanner, { error, onOpenEnvCheck: props.onOpenEnvCheck }),
5586
+ snapshot === null ? phase === "loading" ? /* @__PURE__ */ React16.createElement("div", { "data-testid": "overview-loading", style: EMPTY_STYLE }, t2("snapshot.loading")) : null : /* @__PURE__ */ React16.createElement("div", { style: OVERVIEW_STYLE }, /* @__PURE__ */ React16.createElement(PressureSection, { snapshot }), /* @__PURE__ */ React16.createElement(FlowSection, { snapshot }), /* @__PURE__ */ React16.createElement(AgeSection, { snapshot }), /* @__PURE__ */ React16.createElement(CompositionSection, { snapshot }), /* @__PURE__ */ React16.createElement(AttentionSection, { items: snapshot.metrics.attention, onOpenTicket: props.onOpenTicket }))
5525
5587
  );
5526
5588
  }
5527
5589
  function SourceBadge(props) {
5528
5590
  const { t: t2 } = useI18n();
5529
- return /* @__PURE__ */ React15.createElement(
5591
+ return /* @__PURE__ */ React16.createElement(
5530
5592
  "span",
5531
5593
  {
5532
5594
  "data-testid": "overview-source",
@@ -5542,7 +5604,7 @@ function Identity(props) {
5542
5604
  const { t: t2 } = useI18n();
5543
5605
  const snapshot = props.snapshot;
5544
5606
  const host = snapshot?.repositoryHost ?? null;
5545
- return /* @__PURE__ */ React15.createElement("header", { style: IDENTITY_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: IDENTITY_ROW_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: REPO_CHIP_STYLE }, /* @__PURE__ */ React15.createElement(FolderIcon, null), /* @__PURE__ */ React15.createElement(
5607
+ return /* @__PURE__ */ React16.createElement("header", { style: IDENTITY_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: IDENTITY_ROW_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: REPO_CHIP_STYLE }, /* @__PURE__ */ React16.createElement(FolderIcon, null), /* @__PURE__ */ React16.createElement(
5546
5608
  "span",
5547
5609
  {
5548
5610
  "data-testid": "overview-repo",
@@ -5550,7 +5612,7 @@ function Identity(props) {
5550
5612
  ...snapshot === null ? {} : { title: snapshot.repository }
5551
5613
  },
5552
5614
  snapshot?.repository ?? (props.loading ? t2("repo.identifying") : t2("repo.unidentified"))
5553
- )), snapshot === null ? null : /* @__PURE__ */ React15.createElement("span", { "data-testid": "overview-backend", style: BACKEND_BADGE_STYLE }, backendLabel(snapshot.backend, t2)), snapshot === null ? null : /* @__PURE__ */ React15.createElement(SourceBadge, { source: snapshot.source }), host === null ? null : /* @__PURE__ */ React15.createElement("span", { "data-testid": "overview-host", title: host, style: REPO_HOST_STYLE }, host)), /* @__PURE__ */ React15.createElement("div", { style: IDENTITY_META_STYLE }, /* @__PURE__ */ React15.createElement("span", { "data-testid": "overview-age", style: { ...AGE_STYLE, fontSize: "inherit" } }, snapshot === null ? t2("snapshot.none") : formatRelativeTime(snapshot.fetchedAt, props.now, t2)), props.notice === null ? null : /* @__PURE__ */ React15.createElement(
5615
+ )), snapshot === null ? null : /* @__PURE__ */ React16.createElement("span", { "data-testid": "overview-backend", style: BACKEND_BADGE_STYLE }, backendLabel(snapshot.backend, t2)), snapshot === null ? null : /* @__PURE__ */ React16.createElement(SourceBadge, { source: snapshot.source }), host === null ? null : /* @__PURE__ */ React16.createElement("span", { "data-testid": "overview-host", title: host, style: REPO_HOST_STYLE }, host)), /* @__PURE__ */ React16.createElement("div", { style: IDENTITY_META_STYLE }, /* @__PURE__ */ React16.createElement("span", { "data-testid": "overview-age", style: { ...AGE_STYLE, fontSize: "inherit" } }, snapshot === null ? t2("snapshot.none") : formatRelativeTime(snapshot.fetchedAt, props.now, t2)), props.notice === null ? null : /* @__PURE__ */ React16.createElement(
5554
5616
  "span",
5555
5617
  {
5556
5618
  "data-testid": "overview-refresh-error",
@@ -5558,11 +5620,11 @@ function Identity(props) {
5558
5620
  style: REFRESH_ERROR_STYLE
5559
5621
  },
5560
5622
  props.notice
5561
- ), /* @__PURE__ */ React15.createElement("span", { "aria-hidden": "true", style: IDENTITY_SEPARATOR_STYLE }, "\xB7"), /* @__PURE__ */ React15.createElement("span", { "data-testid": "overview-loaded" }, snapshot === null ? props.loading ? t2("snapshot.loading") : t2("snapshot.notLoaded") : t2("overview.loaded", { loaded: snapshot.loaded, total: snapshot.total })), /* @__PURE__ */ React15.createElement(OverviewRefreshButton, { busy: props.busy, onRefresh: props.onRefresh })));
5623
+ ), /* @__PURE__ */ React16.createElement("span", { "aria-hidden": "true", style: IDENTITY_SEPARATOR_STYLE }, "\xB7"), /* @__PURE__ */ React16.createElement("span", { "data-testid": "overview-loaded" }, snapshot === null ? props.loading ? t2("snapshot.loading") : t2("snapshot.notLoaded") : t2("overview.loaded", { loaded: snapshot.loaded, total: snapshot.total })), /* @__PURE__ */ React16.createElement(OverviewRefreshButton, { busy: props.busy, onRefresh: props.onRefresh })));
5562
5624
  }
5563
5625
  function OverviewRefreshButton(props) {
5564
5626
  const { t: t2 } = useI18n();
5565
- return /* @__PURE__ */ React15.createElement(
5627
+ return /* @__PURE__ */ React16.createElement(
5566
5628
  "button",
5567
5629
  {
5568
5630
  type: "button",
@@ -5577,7 +5639,7 @@ function OverviewRefreshButton(props) {
5577
5639
  opacity: props.busy ? 0.6 : 1
5578
5640
  }
5579
5641
  },
5580
- /* @__PURE__ */ React15.createElement(RefreshIcon, null),
5642
+ /* @__PURE__ */ React16.createElement(RefreshIcon, null),
5581
5643
  props.busy ? t2("refresh.busy") : t2("refresh.action")
5582
5644
  );
5583
5645
  }
@@ -5588,7 +5650,7 @@ function FlowSection(props) {
5588
5650
  const truncated = metrics.coverage.truncated;
5589
5651
  const sample = sampleNote(props.snapshot, t2);
5590
5652
  const count = (value) => t2("overview.metric.tickets", { count: value });
5591
- return /* @__PURE__ */ React15.createElement("section", { "data-testid": "flow", style: SECTION_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: SECTION_TITLE_STYLE }, t2("overview.section.flow")), /* @__PURE__ */ React15.createElement("div", { style: CHART_CARD_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: FLOW_STATS_STYLE }, /* @__PURE__ */ React15.createElement(
5653
+ return /* @__PURE__ */ React16.createElement("section", { "data-testid": "flow", style: SECTION_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: SECTION_TITLE_STYLE }, t2("overview.section.flow")), /* @__PURE__ */ React16.createElement("div", { style: CHART_CARD_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: FLOW_STATS_STYLE }, /* @__PURE__ */ React16.createElement(
5592
5654
  MetricCard,
5593
5655
  {
5594
5656
  testId: "metric-opened",
@@ -5596,7 +5658,7 @@ function FlowSection(props) {
5596
5658
  value: metricText(metrics.openedLast30Days, count, t2),
5597
5659
  note: joinNotes(gapNote(metrics.openedLast30Days, t2), sample)
5598
5660
  }
5599
- ), /* @__PURE__ */ React15.createElement(
5661
+ ), /* @__PURE__ */ React16.createElement(
5600
5662
  MetricCard,
5601
5663
  {
5602
5664
  testId: "metric-closed",
@@ -5608,7 +5670,7 @@ function FlowSection(props) {
5608
5670
  sample
5609
5671
  )
5610
5672
  }
5611
- ), /* @__PURE__ */ React15.createElement(
5673
+ ), /* @__PURE__ */ React16.createElement(
5612
5674
  MetricCard,
5613
5675
  {
5614
5676
  testId: "metric-net-flow",
@@ -5624,7 +5686,7 @@ function FlowSection(props) {
5624
5686
  sample
5625
5687
  )
5626
5688
  }
5627
- )), hasTicketTimes(props.snapshot) ? /* @__PURE__ */ React15.createElement(
5689
+ )), hasTicketTimes(props.snapshot) ? /* @__PURE__ */ React16.createElement(
5628
5690
  FlowChart,
5629
5691
  {
5630
5692
  buckets: weeklyFlow(tickets, fetchedAt, {
@@ -5641,21 +5703,21 @@ function AgeSection(props) {
5641
5703
  const { t: t2 } = useI18n();
5642
5704
  const { tickets, fetchedAt } = props.snapshot;
5643
5705
  if (!hasTicketTimes(props.snapshot)) return null;
5644
- return /* @__PURE__ */ React15.createElement("section", { "data-testid": "age", style: SECTION_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React15.createElement("span", null, t2("overview.section.age")), /* @__PURE__ */ React15.createElement("span", { style: CHART_CAPTION_STYLE }, t2("overview.section.age.caption"))), /* @__PURE__ */ React15.createElement("div", { style: CHART_CARD_STYLE }, /* @__PURE__ */ React15.createElement(AgeHistogram, { buckets: updateAgeBuckets(tickets, fetchedAt, t2) })));
5706
+ return /* @__PURE__ */ React16.createElement("section", { "data-testid": "age", style: SECTION_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React16.createElement("span", null, t2("overview.section.age")), /* @__PURE__ */ React16.createElement("span", { style: CHART_CAPTION_STYLE }, t2("overview.section.age.caption"))), /* @__PURE__ */ React16.createElement("div", { style: CHART_CARD_STYLE }, /* @__PURE__ */ React16.createElement(AgeHistogram, { buckets: updateAgeBuckets(tickets, fetchedAt, t2) })));
5645
5707
  }
5646
5708
  function MetricCard(props) {
5647
- return /* @__PURE__ */ React15.createElement("div", { "data-testid": props.testId, style: FLAT_METRIC_STYLE }, /* @__PURE__ */ React15.createElement("span", { style: METRIC_LABEL_STYLE }, props.label), /* @__PURE__ */ React15.createElement("span", { style: METRIC_VALUE_STYLE }, props.value), props.note === void 0 ? null : /* @__PURE__ */ React15.createElement("span", { style: METRIC_NOTE_STYLE, title: props.note }, props.note));
5709
+ return /* @__PURE__ */ React16.createElement("div", { "data-testid": props.testId, style: FLAT_METRIC_STYLE }, /* @__PURE__ */ React16.createElement("span", { style: METRIC_LABEL_STYLE }, props.label), /* @__PURE__ */ React16.createElement("span", { style: METRIC_VALUE_STYLE }, props.value), props.note === void 0 ? null : /* @__PURE__ */ React16.createElement("span", { style: METRIC_NOTE_STYLE, title: props.note }, props.note));
5648
5710
  }
5649
5711
  function CompositionSection(props) {
5650
5712
  const { t: t2 } = useI18n();
5651
- return /* @__PURE__ */ React15.createElement("section", { "data-testid": "composition", style: SECTION_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: SECTION_TITLE_STYLE }, t2("overview.section.composition")), /* @__PURE__ */ React15.createElement("div", { style: { ...CHART_CARD_STYLE, gap: 14 } }, /* @__PURE__ */ React15.createElement(
5713
+ return /* @__PURE__ */ React16.createElement("section", { "data-testid": "composition", style: SECTION_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: SECTION_TITLE_STYLE }, t2("overview.section.composition")), /* @__PURE__ */ React16.createElement("div", { style: { ...CHART_CARD_STYLE, gap: 14 } }, /* @__PURE__ */ React16.createElement(
5652
5714
  SegmentedBar,
5653
5715
  {
5654
5716
  testId: "status-distribution",
5655
5717
  title: t2("overview.distribution.status"),
5656
5718
  segments: statusSegments(props.snapshot.tickets, t2)
5657
5719
  }
5658
- ), /* @__PURE__ */ React15.createElement(
5720
+ ), /* @__PURE__ */ React16.createElement(
5659
5721
  SegmentedBar,
5660
5722
  {
5661
5723
  testId: "category-distribution",
@@ -5666,7 +5728,7 @@ function CompositionSection(props) {
5666
5728
  }
5667
5729
  function AttentionSection(props) {
5668
5730
  const { t: t2 } = useI18n();
5669
- return /* @__PURE__ */ React15.createElement("section", { "data-testid": "attention", style: SECTION_STYLE }, /* @__PURE__ */ React15.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React15.createElement("span", null, t2("overview.section.attention")), /* @__PURE__ */ React15.createElement("span", { style: CARD_BASIS_STYLE }, t2("overview.attention.count", { count: props.items.length }))), props.items.length === 0 ? /* @__PURE__ */ React15.createElement("div", { "data-testid": "attention-empty", style: NOTE_STYLE }, t2("overview.attention.empty")) : /* @__PURE__ */ React15.createElement("div", { style: ATTENTION_LIST_STYLE }, props.items.map((item) => /* @__PURE__ */ React15.createElement(
5731
+ return /* @__PURE__ */ React16.createElement("section", { "data-testid": "attention", style: SECTION_STYLE }, /* @__PURE__ */ React16.createElement("div", { style: SECTION_TITLE_STYLE }, /* @__PURE__ */ React16.createElement("span", null, t2("overview.section.attention")), /* @__PURE__ */ React16.createElement("span", { style: CARD_BASIS_STYLE }, t2("overview.attention.count", { count: props.items.length }))), props.items.length === 0 ? /* @__PURE__ */ React16.createElement("div", { "data-testid": "attention-empty", style: NOTE_STYLE }, t2("overview.attention.empty")) : /* @__PURE__ */ React16.createElement("div", { style: ATTENTION_LIST_STYLE }, props.items.map((item) => /* @__PURE__ */ React16.createElement(
5670
5732
  "button",
5671
5733
  {
5672
5734
  key: item.ref,
@@ -5680,9 +5742,9 @@ function AttentionSection(props) {
5680
5742
  },
5681
5743
  style: ATTENTION_ITEM_STYLE
5682
5744
  },
5683
- /* @__PURE__ */ React15.createElement("span", { style: ATTENTION_REF_STYLE, title: item.ref }, displayRef(item)),
5684
- /* @__PURE__ */ React15.createElement("span", { style: ATTENTION_TITLE_STYLE, title: item.title }, item.title),
5685
- /* @__PURE__ */ React15.createElement("span", { style: ATTENTION_REASON_STYLE }, attentionText(item, t2))
5745
+ /* @__PURE__ */ React16.createElement("span", { style: ATTENTION_REF_STYLE, title: item.ref }, displayRef(item)),
5746
+ /* @__PURE__ */ React16.createElement("span", { style: ATTENTION_TITLE_STYLE, title: item.title }, item.title),
5747
+ /* @__PURE__ */ React16.createElement("span", { style: ATTENTION_REASON_STYLE }, attentionText(item, t2))
5686
5748
  ))));
5687
5749
  }
5688
5750
  function displayRef(item) {
@@ -5692,13 +5754,13 @@ function displayRef(item) {
5692
5754
  }
5693
5755
 
5694
5756
  // src/client/ticket-actions.ts
5695
- var React17 = __toESM(require("react"), 1);
5757
+ var React18 = __toESM(require("react"), 1);
5696
5758
 
5697
5759
  // src/client/use-draft-injection.ts
5698
- var React16 = __toESM(require("react"), 1);
5760
+ var React17 = __toESM(require("react"), 1);
5699
5761
  function useDraftInjection(injection) {
5700
5762
  const { t: t2 } = useI18n();
5701
- const [state, setState] = React16.useState(null);
5763
+ const [state, setState] = React17.useState(null);
5702
5764
  const notice = state === null ? null : injectionNotice(state.outcome, state.target, t2);
5703
5765
  const noticeTone = state === null ? null : state.outcome === "unavailable" ? "error" : "info";
5704
5766
  const inject2 = (text, target) => {
@@ -5721,9 +5783,9 @@ function injectionNotice(outcome, target, t2) {
5721
5783
 
5722
5784
  // src/client/ticket-actions.ts
5723
5785
  function useTicketActions(workspaceRoot, injection) {
5724
- const [injected, setInjected] = React17.useState(null);
5786
+ const [injected, setInjected] = React18.useState(null);
5725
5787
  const { notice, noticeTone, inject: injectPrompt } = useDraftInjection(injection);
5726
- React17.useEffect(() => {
5788
+ React18.useEffect(() => {
5727
5789
  setInjected(null);
5728
5790
  }, [workspaceRoot]);
5729
5791
  const inject2 = (text, target) => {
@@ -5740,10 +5802,10 @@ function useTicketActions(workspaceRoot, injection) {
5740
5802
  }
5741
5803
 
5742
5804
  // src/client/ticket-detail-view.tsx
5743
- var React26 = __toESM(require("react"), 1);
5805
+ var React27 = __toESM(require("react"), 1);
5744
5806
 
5745
5807
  // src/client/skill-action-badge.tsx
5746
- var React18 = __toESM(require("react"), 1);
5808
+ var React19 = __toESM(require("react"), 1);
5747
5809
 
5748
5810
  // src/client/skill-action-text.ts
5749
5811
  var ACTION_HINTS = {
@@ -5788,7 +5850,7 @@ function SkillActionBadge(props) {
5788
5850
  const label = actionBadgeLabel(ticket, t2);
5789
5851
  const hint = actionHint(ticket, t2);
5790
5852
  if (ticket.skillAction === "none") {
5791
- return /* @__PURE__ */ React18.createElement(
5853
+ return /* @__PURE__ */ React19.createElement(
5792
5854
  "span",
5793
5855
  {
5794
5856
  "data-testid": "action-reason",
@@ -5802,7 +5864,7 @@ function SkillActionBadge(props) {
5802
5864
  }
5803
5865
  const canFill = props.injection.canInjectCurrent;
5804
5866
  const buttonHint = badgeHint(hint, props.injected, canFill, t2);
5805
- return /* @__PURE__ */ React18.createElement(
5867
+ return /* @__PURE__ */ React19.createElement(
5806
5868
  SplitAction,
5807
5869
  {
5808
5870
  testId: "skill-badge",
@@ -5811,7 +5873,7 @@ function SkillActionBadge(props) {
5811
5873
  ...props.injected ? { "data-injected": "true" } : {}
5812
5874
  },
5813
5875
  label,
5814
- icon: props.injected ? /* @__PURE__ */ React18.createElement(CheckIcon, null) : /* @__PURE__ */ React18.createElement(InsertDraftIcon, null),
5876
+ icon: props.injected ? /* @__PURE__ */ React19.createElement(CheckIcon, null) : /* @__PURE__ */ React19.createElement(InsertDraftIcon, null),
5815
5877
  title: buttonHint,
5816
5878
  ariaLabel: `${label}\uFF1A${buttonHint}`,
5817
5879
  primaryStyle: {
@@ -5841,7 +5903,7 @@ function badgeHint(hint, injected, canInject, t2) {
5841
5903
  }
5842
5904
 
5843
5905
  // src/client/ticket-delete.tsx
5844
- var React19 = __toESM(require("react"), 1);
5906
+ var React20 = __toESM(require("react"), 1);
5845
5907
 
5846
5908
  // src/client/ticket-detail-styles.ts
5847
5909
  var CONTROL_LINE_HEIGHT = "18px";
@@ -6266,10 +6328,10 @@ var DELETE_PANEL_ACTIONS_STYLE = {
6266
6328
  // src/client/ticket-delete.tsx
6267
6329
  function MoreMenu(props) {
6268
6330
  const { t: t2 } = useI18n();
6269
- const [open, setOpen] = React19.useState(false);
6270
- const wrapper = React19.useRef(null);
6271
- const menuId = React19.useId();
6272
- React19.useEffect(() => {
6331
+ const [open, setOpen] = React20.useState(false);
6332
+ const wrapper = React20.useRef(null);
6333
+ const menuId = React20.useId();
6334
+ React20.useEffect(() => {
6273
6335
  if (!open) return;
6274
6336
  const onPointer = (event) => {
6275
6337
  if (wrapper.current?.contains(event.target) !== true) setOpen(false);
@@ -6279,7 +6341,7 @@ function MoreMenu(props) {
6279
6341
  document.removeEventListener("mousedown", onPointer);
6280
6342
  };
6281
6343
  }, [open]);
6282
- return /* @__PURE__ */ React19.createElement(
6344
+ return /* @__PURE__ */ React20.createElement(
6283
6345
  "div",
6284
6346
  {
6285
6347
  ref: wrapper,
@@ -6291,7 +6353,7 @@ function MoreMenu(props) {
6291
6353
  }
6292
6354
  }
6293
6355
  },
6294
- /* @__PURE__ */ React19.createElement(
6356
+ /* @__PURE__ */ React20.createElement(
6295
6357
  "button",
6296
6358
  {
6297
6359
  type: "button",
@@ -6307,9 +6369,9 @@ function MoreMenu(props) {
6307
6369
  },
6308
6370
  style: MENU_TRIGGER_STYLE
6309
6371
  },
6310
- /* @__PURE__ */ React19.createElement(MoreIcon, null)
6372
+ /* @__PURE__ */ React20.createElement(MoreIcon, null)
6311
6373
  ),
6312
- open ? /* @__PURE__ */ React19.createElement("div", { id: menuId, role: "menu", "aria-label": t2("detail.delete.more"), style: MENU_STYLE }, /* @__PURE__ */ React19.createElement(
6374
+ open ? /* @__PURE__ */ React20.createElement("div", { id: menuId, role: "menu", "aria-label": t2("detail.delete.more"), style: MENU_STYLE }, /* @__PURE__ */ React20.createElement(
6313
6375
  "button",
6314
6376
  {
6315
6377
  type: "button",
@@ -6323,18 +6385,18 @@ function MoreMenu(props) {
6323
6385
  },
6324
6386
  style: MENU_ITEM_DANGER_STYLE
6325
6387
  },
6326
- /* @__PURE__ */ React19.createElement(TrashIcon, null),
6388
+ /* @__PURE__ */ React20.createElement(TrashIcon, null),
6327
6389
  t2("detail.delete.menu")
6328
6390
  )) : null
6329
6391
  );
6330
6392
  }
6331
6393
  function DeleteConfirm(props) {
6332
6394
  const { t: t2 } = useI18n();
6333
- const [typed, setTyped] = React19.useState("");
6334
- const titleId = React19.useId();
6335
- const inputId = React19.useId();
6395
+ const [typed, setTyped] = React20.useState("");
6396
+ const titleId = React20.useId();
6397
+ const inputId = React20.useId();
6336
6398
  const confirmed = typed.trim() === TICKET_DELETE_CONFIRMATION;
6337
- return /* @__PURE__ */ React19.createElement(
6399
+ return /* @__PURE__ */ React20.createElement(
6338
6400
  "section",
6339
6401
  {
6340
6402
  role: "alertdialog",
@@ -6348,10 +6410,10 @@ function DeleteConfirm(props) {
6348
6410
  },
6349
6411
  style: DELETE_PANEL_STYLE
6350
6412
  },
6351
- /* @__PURE__ */ React19.createElement("h3", { id: titleId, style: DELETE_PANEL_TITLE_STYLE }, t2("detail.delete.title", { ref: props.refText })),
6352
- /* @__PURE__ */ React19.createElement("p", { style: DELETE_PANEL_TEXT_STYLE }, t2("detail.delete.body", { title: props.title, backend: props.backendLabel })),
6353
- /* @__PURE__ */ React19.createElement("label", { htmlFor: inputId, style: DELETE_PANEL_TEXT_STYLE }, t2("detail.delete.confirmBefore"), /* @__PURE__ */ React19.createElement("code", null, TICKET_DELETE_CONFIRMATION), t2("detail.delete.confirmAfter")),
6354
- /* @__PURE__ */ React19.createElement(
6413
+ /* @__PURE__ */ React20.createElement("h3", { id: titleId, style: DELETE_PANEL_TITLE_STYLE }, t2("detail.delete.title", { ref: props.refText })),
6414
+ /* @__PURE__ */ React20.createElement("p", { style: DELETE_PANEL_TEXT_STYLE }, t2("detail.delete.body", { title: props.title, backend: props.backendLabel })),
6415
+ /* @__PURE__ */ React20.createElement("label", { htmlFor: inputId, style: DELETE_PANEL_TEXT_STYLE }, t2("detail.delete.confirmBefore"), /* @__PURE__ */ React20.createElement("code", null, TICKET_DELETE_CONFIRMATION), t2("detail.delete.confirmAfter")),
6416
+ /* @__PURE__ */ React20.createElement(
6355
6417
  "input",
6356
6418
  {
6357
6419
  id: inputId,
@@ -6370,8 +6432,8 @@ function DeleteConfirm(props) {
6370
6432
  style: DETAIL_INPUT_STYLE
6371
6433
  }
6372
6434
  ),
6373
- props.error === null ? null : /* @__PURE__ */ React19.createElement("div", { role: "alert", "data-testid": "delete-error", style: DELETE_PANEL_TEXT_STYLE }, errorText(props.error, t2)),
6374
- /* @__PURE__ */ React19.createElement(
6435
+ props.error === null ? null : /* @__PURE__ */ React20.createElement("div", { role: "alert", "data-testid": "delete-error", style: DELETE_PANEL_TEXT_STYLE }, errorText(props.error, t2)),
6436
+ /* @__PURE__ */ React20.createElement(
6375
6437
  DeleteActions,
6376
6438
  {
6377
6439
  confirmed,
@@ -6384,7 +6446,7 @@ function DeleteConfirm(props) {
6384
6446
  }
6385
6447
  function DeleteActions(props) {
6386
6448
  const { t: t2 } = useI18n();
6387
- return /* @__PURE__ */ React19.createElement("div", { style: DELETE_PANEL_ACTIONS_STYLE }, /* @__PURE__ */ React19.createElement(
6449
+ return /* @__PURE__ */ React20.createElement("div", { style: DELETE_PANEL_ACTIONS_STYLE }, /* @__PURE__ */ React20.createElement(
6388
6450
  "button",
6389
6451
  {
6390
6452
  type: "button",
@@ -6395,7 +6457,7 @@ function DeleteActions(props) {
6395
6457
  style: DETAIL_BUTTON_STYLE
6396
6458
  },
6397
6459
  t2("detail.delete.cancel")
6398
- ), /* @__PURE__ */ React19.createElement(
6460
+ ), /* @__PURE__ */ React20.createElement(
6399
6461
  "button",
6400
6462
  {
6401
6463
  type: "button",
@@ -6410,17 +6472,17 @@ function DeleteActions(props) {
6410
6472
  }
6411
6473
 
6412
6474
  // src/client/ticket-detail-fields.tsx
6413
- var React22 = __toESM(require("react"), 1);
6475
+ var React23 = __toESM(require("react"), 1);
6414
6476
 
6415
6477
  // src/client/ticket-combobox.tsx
6416
- var React21 = __toESM(require("react"), 1);
6478
+ var React22 = __toESM(require("react"), 1);
6417
6479
 
6418
6480
  // src/client/ticket-visuals.tsx
6419
- var React20 = __toESM(require("react"), 1);
6481
+ var React21 = __toESM(require("react"), 1);
6420
6482
  function Avatar(props) {
6421
6483
  const size = props.size ?? 20;
6422
6484
  const tint = props.name === null ? COLORS.tertiary : `hsl(${String(hue(props.name))} 55% 48%)`;
6423
- return /* @__PURE__ */ React20.createElement(
6485
+ return /* @__PURE__ */ React21.createElement(
6424
6486
  "span",
6425
6487
  {
6426
6488
  "aria-hidden": "true",
@@ -6484,9 +6546,9 @@ var MAX_VISIBLE = 8;
6484
6546
  function TokenEditor(props) {
6485
6547
  const { t: t2 } = useI18n();
6486
6548
  const { kind, busy } = props;
6487
- const listId = React21.useId();
6488
- const [draft, setDraft] = React21.useState("");
6489
- const [active, setActive] = React21.useState(0);
6549
+ const listId = React22.useId();
6550
+ const [draft, setDraft] = React22.useState("");
6551
+ const [active, setActive] = React22.useState(0);
6490
6552
  const query = draft.trim();
6491
6553
  const matches = filterSuggestions(props.source, props.selected, query);
6492
6554
  const activeItem = matches[active];
@@ -6503,7 +6565,7 @@ function TokenEditor(props) {
6503
6565
  },
6504
6566
  onClose: props.onClose
6505
6567
  });
6506
- return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
6568
+ return /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement(
6507
6569
  "input",
6508
6570
  {
6509
6571
  "data-testid": `${kind}-input`,
@@ -6527,7 +6589,7 @@ function TokenEditor(props) {
6527
6589
  },
6528
6590
  style: DETAIL_INLINE_INPUT_STYLE
6529
6591
  }
6530
- ), /* @__PURE__ */ React21.createElement(
6592
+ ), /* @__PURE__ */ React22.createElement(
6531
6593
  EditorButtons,
6532
6594
  {
6533
6595
  kind,
@@ -6539,7 +6601,7 @@ function TokenEditor(props) {
6539
6601
  onAssignSelf: props.onAssignSelf,
6540
6602
  onClose: props.onClose
6541
6603
  }
6542
- ), /* @__PURE__ */ React21.createElement(
6604
+ ), /* @__PURE__ */ React22.createElement(
6543
6605
  SuggestionList,
6544
6606
  {
6545
6607
  listId,
@@ -6577,7 +6639,7 @@ function comboboxKeyHandler(options) {
6577
6639
  function EditorButtons(props) {
6578
6640
  const { t: t2 } = useI18n();
6579
6641
  const assignSelf = props.onAssignSelf;
6580
- return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(
6642
+ return /* @__PURE__ */ React22.createElement(React22.Fragment, null, /* @__PURE__ */ React22.createElement(
6581
6643
  "button",
6582
6644
  {
6583
6645
  type: "button",
@@ -6589,7 +6651,7 @@ function EditorButtons(props) {
6589
6651
  style: DETAIL_SMALL_BUTTON_STYLE
6590
6652
  },
6591
6653
  t2("detail.combo.add")
6592
- ), assignSelf === void 0 ? null : /* @__PURE__ */ React21.createElement(
6654
+ ), assignSelf === void 0 ? null : /* @__PURE__ */ React22.createElement(
6593
6655
  "button",
6594
6656
  {
6595
6657
  type: "button",
@@ -6609,7 +6671,7 @@ function EditorButtons(props) {
6609
6671
  function SuggestionList(props) {
6610
6672
  const { t: t2 } = useI18n();
6611
6673
  const note = listNote(props.source, props.matches.length, props.query, t2);
6612
- return /* @__PURE__ */ React21.createElement(
6674
+ return /* @__PURE__ */ React22.createElement(
6613
6675
  "ul",
6614
6676
  {
6615
6677
  id: props.listId,
@@ -6618,7 +6680,7 @@ function SuggestionList(props) {
6618
6680
  "aria-label": t2("detail.combo.candidates"),
6619
6681
  style: COMBO_LIST_STYLE
6620
6682
  },
6621
- props.matches.map((item, index) => /* @__PURE__ */ React21.createElement(
6683
+ props.matches.map((item, index) => /* @__PURE__ */ React22.createElement(
6622
6684
  "li",
6623
6685
  {
6624
6686
  key: item.value,
@@ -6635,11 +6697,11 @@ function SuggestionList(props) {
6635
6697
  },
6636
6698
  style: index === props.active ? { ...COMBO_OPTION_STYLE, ...COMBO_OPTION_ACTIVE_STYLE } : COMBO_OPTION_STYLE
6637
6699
  },
6638
- item.color === null ? /* @__PURE__ */ React21.createElement(Avatar, { name: item.value, size: 18 }) : /* @__PURE__ */ React21.createElement("span", { style: { ...COMBO_SWATCH_STYLE, background: item.color } }),
6639
- /* @__PURE__ */ React21.createElement("span", { "data-option-name": "", style: { minWidth: 0 } }, item.value),
6640
- item.detail === null ? null : /* @__PURE__ */ React21.createElement("span", { style: COMBO_OPTION_DETAIL_STYLE }, item.detail)
6700
+ item.color === null ? /* @__PURE__ */ React22.createElement(Avatar, { name: item.value, size: 18 }) : /* @__PURE__ */ React22.createElement("span", { style: { ...COMBO_SWATCH_STYLE, background: item.color } }),
6701
+ /* @__PURE__ */ React22.createElement("span", { "data-option-name": "", style: { minWidth: 0 } }, item.value),
6702
+ item.detail === null ? null : /* @__PURE__ */ React22.createElement("span", { style: COMBO_OPTION_DETAIL_STYLE }, item.detail)
6641
6703
  )),
6642
- note === null ? null : /* @__PURE__ */ React21.createElement("li", { role: "presentation", style: COMBO_EMPTY_STYLE }, note)
6704
+ note === null ? null : /* @__PURE__ */ React22.createElement("li", { role: "presentation", style: COMBO_EMPTY_STYLE }, note)
6643
6705
  );
6644
6706
  }
6645
6707
  function listNote(source, count, query, t2) {
@@ -6674,7 +6736,7 @@ function HeaderActions(props) {
6674
6736
  const { detail, busy } = props;
6675
6737
  const next = detail.state === "open" ? "closed" : "open";
6676
6738
  const copied = props.copy.status === "copied";
6677
- return /* @__PURE__ */ React22.createElement(React22.Fragment, null, detail.capabilities.state ? /* @__PURE__ */ React22.createElement(
6739
+ return /* @__PURE__ */ React23.createElement(React23.Fragment, null, detail.capabilities.state ? /* @__PURE__ */ React23.createElement(
6678
6740
  "button",
6679
6741
  {
6680
6742
  type: "button",
@@ -6687,7 +6749,7 @@ function HeaderActions(props) {
6687
6749
  style: next === "closed" ? HEADER_CLOSE_STYLE : HEADER_TEXT_BUTTON_STYLE
6688
6750
  },
6689
6751
  t2(next === "closed" ? "detail.close" : "detail.reopen")
6690
- ) : null, detail.url === null ? null : /* @__PURE__ */ React22.createElement(
6752
+ ) : null, detail.url === null ? null : /* @__PURE__ */ React23.createElement(
6691
6753
  "button",
6692
6754
  {
6693
6755
  type: "button",
@@ -6698,14 +6760,14 @@ function HeaderActions(props) {
6698
6760
  onClick: props.onCopy,
6699
6761
  style: copied ? { ...HEADER_ICON_BUTTON_STYLE, color: COLORS.success } : HEADER_ICON_BUTTON_STYLE
6700
6762
  },
6701
- copied ? /* @__PURE__ */ React22.createElement(CheckIcon, null) : /* @__PURE__ */ React22.createElement(LinkIcon, null)
6702
- ), copied ? /* @__PURE__ */ React22.createElement("span", { role: "status", "data-testid": "copy-notice", style: VISUALLY_HIDDEN_STYLE }, t2("detail.copiedNotice")) : null);
6763
+ copied ? /* @__PURE__ */ React23.createElement(CheckIcon, null) : /* @__PURE__ */ React23.createElement(LinkIcon, null)
6764
+ ), copied ? /* @__PURE__ */ React23.createElement("span", { role: "status", "data-testid": "copy-notice", style: VISUALLY_HIDDEN_STYLE }, t2("detail.copiedNotice")) : null);
6703
6765
  }
6704
6766
  function CopyFailure(props) {
6705
6767
  const { t: t2 } = useI18n();
6706
6768
  const { copy, url } = props;
6707
6769
  if (copy.status !== "failed" || url === null) return null;
6708
- return /* @__PURE__ */ React22.createElement(
6770
+ return /* @__PURE__ */ React23.createElement(
6709
6771
  "div",
6710
6772
  {
6711
6773
  role: "alert",
@@ -6713,7 +6775,7 @@ function CopyFailure(props) {
6713
6775
  style: { ...DETAIL_ERROR_STYLE, ...DETAIL_STACK_STYLE }
6714
6776
  },
6715
6777
  copy.message,
6716
- /* @__PURE__ */ React22.createElement(
6778
+ /* @__PURE__ */ React23.createElement(
6717
6779
  "input",
6718
6780
  {
6719
6781
  "data-testid": "detail-link",
@@ -6732,12 +6794,12 @@ function PropertyStrip(props) {
6732
6794
  const { t: t2 } = useI18n();
6733
6795
  const { detail, busy, options } = props;
6734
6796
  const unsupported = unsupportedActions(detail);
6735
- return /* @__PURE__ */ React22.createElement("div", { style: DETAIL_STACK_STYLE }, /* @__PURE__ */ React22.createElement("div", { style: DETAIL_STRIP_STYLE }, /* @__PURE__ */ React22.createElement(
6797
+ return /* @__PURE__ */ React23.createElement("div", { style: DETAIL_STACK_STYLE }, /* @__PURE__ */ React23.createElement("div", { style: DETAIL_STRIP_STYLE }, /* @__PURE__ */ React23.createElement(
6736
6798
  TokenGroup,
6737
6799
  {
6738
6800
  kind: "label",
6739
6801
  name: t2("detail.labels"),
6740
- icon: /* @__PURE__ */ React22.createElement(TagIcon, null),
6802
+ icon: /* @__PURE__ */ React23.createElement(TagIcon, null),
6741
6803
  values: detail.labels,
6742
6804
  colors: options.labelColors,
6743
6805
  emptyText: t2("detail.noLabels"),
@@ -6750,12 +6812,12 @@ function PropertyStrip(props) {
6750
6812
  props.onApply({ labels });
6751
6813
  }
6752
6814
  }
6753
- ), /* @__PURE__ */ React22.createElement(
6815
+ ), /* @__PURE__ */ React23.createElement(
6754
6816
  TokenGroup,
6755
6817
  {
6756
6818
  kind: "assignee",
6757
6819
  name: t2("detail.assignees"),
6758
- icon: /* @__PURE__ */ React22.createElement(PersonIcon, null),
6820
+ icon: /* @__PURE__ */ React23.createElement(PersonIcon, null),
6759
6821
  values: detail.assignees,
6760
6822
  colors: null,
6761
6823
  emptyText: t2("detail.noAssignees"),
@@ -6771,15 +6833,15 @@ function PropertyStrip(props) {
6771
6833
  props.onApply({ assignSelf: true });
6772
6834
  }
6773
6835
  }
6774
- )), unsupported.length === 0 ? null : /* @__PURE__ */ React22.createElement("div", { "data-testid": "detail-unsupported-note", style: DETAIL_HINT_STYLE }, t2("detail.unsupported", {
6836
+ )), unsupported.length === 0 ? null : /* @__PURE__ */ React23.createElement("div", { "data-testid": "detail-unsupported-note", style: DETAIL_HINT_STYLE }, t2("detail.unsupported", {
6775
6837
  backend: backendLabel(detail.backend, t2),
6776
6838
  actions: unsupported.map((key) => t2(key)).join(t2("common.listSeparator"))
6777
6839
  })));
6778
6840
  }
6779
6841
  function TokenGroup(props) {
6780
6842
  const { kind, values, busy } = props;
6781
- const [editing, setEditing] = React22.useState(false);
6782
- return /* @__PURE__ */ React22.createElement(
6843
+ const [editing, setEditing] = React23.useState(false);
6844
+ return /* @__PURE__ */ React23.createElement(
6783
6845
  "div",
6784
6846
  {
6785
6847
  role: "group",
@@ -6787,9 +6849,9 @@ function TokenGroup(props) {
6787
6849
  "data-testid": kind === "label" ? "detail-labels" : "detail-assignees",
6788
6850
  style: editing ? { ...DETAIL_GROUP_STYLE, flexBasis: "100%" } : DETAIL_GROUP_STYLE
6789
6851
  },
6790
- /* @__PURE__ */ React22.createElement("span", { title: props.name, style: DETAIL_GROUP_ICON_STYLE }, props.icon),
6791
- values.length === 0 && !editing ? /* @__PURE__ */ React22.createElement("span", { style: DETAIL_TOKEN_EMPTY_STYLE }, props.emptyText) : null,
6792
- values.map((value) => /* @__PURE__ */ React22.createElement(
6852
+ /* @__PURE__ */ React23.createElement("span", { title: props.name, style: DETAIL_GROUP_ICON_STYLE }, props.icon),
6853
+ values.length === 0 && !editing ? /* @__PURE__ */ React23.createElement("span", { style: DETAIL_TOKEN_EMPTY_STYLE }, props.emptyText) : null,
6854
+ values.map((value) => /* @__PURE__ */ React23.createElement(
6793
6855
  Token,
6794
6856
  {
6795
6857
  key: value,
@@ -6804,7 +6866,7 @@ function TokenGroup(props) {
6804
6866
  }
6805
6867
  }
6806
6868
  )),
6807
- !props.editable ? null : editing ? /* @__PURE__ */ React22.createElement(
6869
+ !props.editable ? null : editing ? /* @__PURE__ */ React23.createElement(
6808
6870
  TokenEditor,
6809
6871
  {
6810
6872
  kind,
@@ -6821,7 +6883,7 @@ function TokenGroup(props) {
6821
6883
  setEditing(false);
6822
6884
  }
6823
6885
  }
6824
- ) : /* @__PURE__ */ React22.createElement(
6886
+ ) : /* @__PURE__ */ React23.createElement(
6825
6887
  AddTokenButton,
6826
6888
  {
6827
6889
  kind,
@@ -6837,7 +6899,7 @@ function TokenGroup(props) {
6837
6899
  }
6838
6900
  function AddTokenButton(props) {
6839
6901
  const { t: t2 } = useI18n();
6840
- return /* @__PURE__ */ React22.createElement(
6902
+ return /* @__PURE__ */ React23.createElement(
6841
6903
  "button",
6842
6904
  {
6843
6905
  type: "button",
@@ -6849,7 +6911,7 @@ function AddTokenButton(props) {
6849
6911
  onClick: props.onOpen,
6850
6912
  style: DETAIL_ADD_STYLE
6851
6913
  },
6852
- /* @__PURE__ */ React22.createElement(PlusIcon, null)
6914
+ /* @__PURE__ */ React23.createElement(PlusIcon, null)
6853
6915
  );
6854
6916
  }
6855
6917
  function Token(props) {
@@ -6861,7 +6923,7 @@ function Token(props) {
6861
6923
  ...isAssignee ? { paddingLeft: 2 } : labelColorStyle(props.color ?? null),
6862
6924
  ...props.editable ? {} : { paddingRight: 9 }
6863
6925
  };
6864
- return /* @__PURE__ */ React22.createElement("span", { "data-testid": `${props.kind}-chip`, style }, isAssignee ? /* @__PURE__ */ React22.createElement(Avatar, { name: props.value, size: 16 }) : null, /* @__PURE__ */ React22.createElement("span", { "data-token-name": "", style: isAssignee ? { marginLeft: 3 } : void 0 }, props.value), props.editable ? /* @__PURE__ */ React22.createElement(
6926
+ return /* @__PURE__ */ React23.createElement("span", { "data-testid": `${props.kind}-chip`, style }, isAssignee ? /* @__PURE__ */ React23.createElement(Avatar, { name: props.value, size: 16 }) : null, /* @__PURE__ */ React23.createElement("span", { "data-token-name": "", style: isAssignee ? { marginLeft: 3 } : void 0 }, props.value), props.editable ? /* @__PURE__ */ React23.createElement(
6865
6927
  "button",
6866
6928
  {
6867
6929
  type: "button",
@@ -6873,7 +6935,7 @@ function Token(props) {
6873
6935
  onClick: props.onRemove,
6874
6936
  style: { ...DETAIL_TOKEN_REMOVE_STYLE, color: "inherit", opacity: 0.7 }
6875
6937
  },
6876
- /* @__PURE__ */ React22.createElement(CloseIcon, null)
6938
+ /* @__PURE__ */ React23.createElement(CloseIcon, null)
6877
6939
  ) : null);
6878
6940
  }
6879
6941
  function unsupportedActions(detail) {
@@ -6886,7 +6948,7 @@ function unsupportedActions(detail) {
6886
6948
  }
6887
6949
 
6888
6950
  // src/client/ticket-detail-hooks.ts
6889
- var React23 = __toESM(require("react"), 1);
6951
+ var React24 = __toESM(require("react"), 1);
6890
6952
 
6891
6953
  // src/client/clipboard.ts
6892
6954
  async function copyText2(text, t2) {
@@ -6905,11 +6967,11 @@ async function copyText2(text, t2) {
6905
6967
 
6906
6968
  // src/client/ticket-detail-hooks.ts
6907
6969
  function useDetailRequest(client, workspaceRoot, ref, number) {
6908
- const [detail, setDetail] = React23.useState(null);
6909
- const [error, setError] = React23.useState(null);
6910
- const [phase, setPhase] = React23.useState("loading");
6911
- const [attempt, setAttempt] = React23.useState(0);
6912
- React23.useEffect(() => {
6970
+ const [detail, setDetail] = React24.useState(null);
6971
+ const [error, setError] = React24.useState(null);
6972
+ const [phase, setPhase] = React24.useState("loading");
6973
+ const [attempt, setAttempt] = React24.useState(0);
6974
+ React24.useEffect(() => {
6913
6975
  let active = true;
6914
6976
  setDetail(null);
6915
6977
  setError(null);
@@ -6939,9 +7001,9 @@ function useDetailRequest(client, workspaceRoot, ref, number) {
6939
7001
  };
6940
7002
  }
6941
7003
  function useTicketMutation(client, options) {
6942
- const [busy, setBusy] = React23.useState(false);
6943
- const [error, setError] = React23.useState(null);
6944
- const running = React23.useRef(false);
7004
+ const [busy, setBusy] = React24.useState(false);
7005
+ const [error, setError] = React24.useState(null);
7006
+ const running = React24.useRef(false);
6945
7007
  const apply2 = (patch) => {
6946
7008
  if (running.current) return;
6947
7009
  running.current = true;
@@ -6978,9 +7040,9 @@ function useTicketMutation(client, options) {
6978
7040
  return { busy, error, apply: apply2 };
6979
7041
  }
6980
7042
  function useEscapeKey(onBack) {
6981
- const handler = React23.useRef(onBack);
7043
+ const handler = React24.useRef(onBack);
6982
7044
  handler.current = onBack;
6983
- React23.useEffect(() => {
7045
+ React24.useEffect(() => {
6984
7046
  const listener = (event) => {
6985
7047
  if (event.key === "Escape") handler.current();
6986
7048
  };
@@ -6992,16 +7054,16 @@ function useEscapeKey(onBack) {
6992
7054
  }
6993
7055
  function useTicketOptions(client, workspaceRoot, eager) {
6994
7056
  const { t: t2 } = useI18n();
6995
- const [load, setLoad] = React23.useState({ status: "idle" });
6996
- const started = React23.useRef(false);
6997
- const mounted = React23.useRef(true);
6998
- React23.useEffect(() => {
7057
+ const [load, setLoad] = React24.useState({ status: "idle" });
7058
+ const started = React24.useRef(false);
7059
+ const mounted = React24.useRef(true);
7060
+ React24.useEffect(() => {
6999
7061
  mounted.current = true;
7000
7062
  return () => {
7001
7063
  mounted.current = false;
7002
7064
  };
7003
7065
  }, []);
7004
- const request = React23.useCallback(() => {
7066
+ const request = React24.useCallback(() => {
7005
7067
  if (started.current) return;
7006
7068
  started.current = true;
7007
7069
  setLoad({ status: "loading" });
@@ -7012,7 +7074,7 @@ function useTicketOptions(client, workspaceRoot, eager) {
7012
7074
  );
7013
7075
  });
7014
7076
  }, [client, workspaceRoot]);
7015
- React23.useEffect(() => {
7077
+ React24.useEffect(() => {
7016
7078
  if (eager) request();
7017
7079
  }, [eager, request]);
7018
7080
  return optionsState(load, request, t2);
@@ -7047,9 +7109,9 @@ function optionsState(load, request, t2) {
7047
7109
  };
7048
7110
  }
7049
7111
  function useTicketDeletion(client, target) {
7050
- const [confirming, setConfirming] = React23.useState(false);
7051
- const [deleting, setDeleting] = React23.useState(false);
7052
- const [error, setError] = React23.useState(null);
7112
+ const [confirming, setConfirming] = React24.useState(false);
7113
+ const [deleting, setDeleting] = React24.useState(false);
7114
+ const [error, setError] = React24.useState(null);
7053
7115
  const confirm = () => {
7054
7116
  if (deleting) return;
7055
7117
  setDeleting(true);
@@ -7082,8 +7144,8 @@ function useTicketDeletion(client, target) {
7082
7144
  }
7083
7145
  var COPIED_RESET_MS = 2e3;
7084
7146
  function useCopyLink(url, t2) {
7085
- const [copy, setCopy] = React23.useState({ status: "idle" });
7086
- React23.useEffect(() => {
7147
+ const [copy, setCopy] = React24.useState({ status: "idle" });
7148
+ React24.useEffect(() => {
7087
7149
  if (copy.status !== "copied") return;
7088
7150
  const timer = setTimeout(() => {
7089
7151
  setCopy({ status: "idle" });
@@ -7102,7 +7164,7 @@ function useCopyLink(url, t2) {
7102
7164
  }
7103
7165
 
7104
7166
  // src/client/ticket-timeline.tsx
7105
- var React25 = __toESM(require("react"), 1);
7167
+ var React26 = __toESM(require("react"), 1);
7106
7168
 
7107
7169
  // node_modules/.pnpm/markdown-to-jsx@9.10.3_react@19.3.1/node_modules/markdown-to-jsx/dist/react.js
7108
7170
  var Ye = __toESM(require("react"), 1);
@@ -10252,13 +10314,13 @@ function Ln(e2 = "", t2 = {}) {
10252
10314
  }
10253
10315
 
10254
10316
  // src/client/markdown-body.tsx
10255
- var React24 = __toESM(require("react"), 1);
10317
+ var React25 = __toESM(require("react"), 1);
10256
10318
  function MarkdownBody(props) {
10257
10319
  const attachments = props.attachments ?? null;
10258
- const content = React24.useMemo(() => {
10320
+ const content = React25.useMemo(() => {
10259
10321
  const overrides = attachments === null ? { a: { component: ExternalLink } } : {
10260
10322
  a: {
10261
- component: (attributes) => /* @__PURE__ */ React24.createElement(
10323
+ component: (attributes) => /* @__PURE__ */ React25.createElement(
10262
10324
  ExternalLink,
10263
10325
  {
10264
10326
  ...attributes,
@@ -10267,17 +10329,17 @@ function MarkdownBody(props) {
10267
10329
  )
10268
10330
  },
10269
10331
  img: {
10270
- component: (attributes) => /* @__PURE__ */ React24.createElement(UploadImage, { ...attributes, attachments })
10332
+ component: (attributes) => /* @__PURE__ */ React25.createElement(UploadImage, { ...attributes, attachments })
10271
10333
  }
10272
10334
  };
10273
10335
  return Ln(props.source, {
10274
10336
  disableParsingRawHTML: true,
10275
10337
  forceBlock: true,
10276
- wrapper: React24.Fragment,
10338
+ wrapper: React25.Fragment,
10277
10339
  overrides
10278
10340
  });
10279
10341
  }, [attachments, props.source]);
10280
- return /* @__PURE__ */ React24.createElement("div", { "data-testid": props.testId, ...{ [MARKDOWN_ATTRIBUTE]: "" } }, content);
10342
+ return /* @__PURE__ */ React25.createElement("div", { "data-testid": props.testId, ...{ [MARKDOWN_ATTRIBUTE]: "" } }, content);
10281
10343
  }
10282
10344
  function uploadPathOf(baseUrl, src) {
10283
10345
  if (src === void 0) return null;
@@ -10292,8 +10354,8 @@ function UploadImage(props) {
10292
10354
  const { attachments, ...attributes } = props;
10293
10355
  const { t: t2 } = useI18n();
10294
10356
  const path = uploadPathOf(attachments.baseUrl, attributes.src);
10295
- const [loaded, setLoaded] = React24.useState(null);
10296
- React24.useEffect(() => {
10357
+ const [loaded, setLoaded] = React25.useState(null);
10358
+ React25.useEffect(() => {
10297
10359
  if (path === null) return void 0;
10298
10360
  let active = true;
10299
10361
  void attachments.load(path).then((url) => {
@@ -10303,16 +10365,16 @@ function UploadImage(props) {
10303
10365
  active = false;
10304
10366
  };
10305
10367
  }, [attachments, path]);
10306
- if (path === null) return /* @__PURE__ */ React24.createElement("img", { ...attributes });
10368
+ if (path === null) return /* @__PURE__ */ React25.createElement("img", { ...attributes });
10307
10369
  const name = attributes.alt !== void 0 && attributes.alt.length > 0 ? attributes.alt : fileName(path);
10308
10370
  const state = loaded?.path === path ? loaded : null;
10309
10371
  if (state === null) {
10310
- return /* @__PURE__ */ React24.createElement("span", { "data-attachment": "loading", role: "img", "aria-label": name }, t2("detail.attachment.loading", { name }));
10372
+ return /* @__PURE__ */ React25.createElement("span", { "data-attachment": "loading", role: "img", "aria-label": name }, t2("detail.attachment.loading", { name }));
10311
10373
  }
10312
10374
  if (state.url !== null) {
10313
- return /* @__PURE__ */ React24.createElement("img", { ...attributes, src: state.url, alt: name, "data-attachment": "loaded" });
10375
+ return /* @__PURE__ */ React25.createElement("img", { ...attributes, src: state.url, alt: name, "data-attachment": "loaded" });
10314
10376
  }
10315
- return /* @__PURE__ */ React24.createElement(
10377
+ return /* @__PURE__ */ React25.createElement(
10316
10378
  ExternalLink,
10317
10379
  {
10318
10380
  "data-attachment": "failed",
@@ -10330,19 +10392,19 @@ function fileName(path) {
10330
10392
  }
10331
10393
  }
10332
10394
  function ExternalLink(props) {
10333
- return /* @__PURE__ */ React24.createElement("a", { ...props, target: "_blank", rel: "noopener noreferrer" });
10395
+ return /* @__PURE__ */ React25.createElement("a", { ...props, target: "_blank", rel: "noopener noreferrer" });
10334
10396
  }
10335
10397
 
10336
10398
  // src/client/ticket-timeline.tsx
10337
10399
  function Timeline(props) {
10338
10400
  const { t: t2 } = useI18n();
10339
10401
  const { detail, loadAttachment } = props;
10340
- const attachments = React25.useMemo(
10402
+ const attachments = React26.useMemo(
10341
10403
  () => detail.uploadsBaseUrl === null || loadAttachment === void 0 ? null : { baseUrl: detail.uploadsBaseUrl, load: loadAttachment },
10342
10404
  [detail.uploadsBaseUrl, loadAttachment]
10343
10405
  );
10344
10406
  const count = detail.comments.length;
10345
- return /* @__PURE__ */ React25.createElement("div", { style: TIMELINE_STYLE }, /* @__PURE__ */ React25.createElement(
10407
+ return /* @__PURE__ */ React26.createElement("div", { style: TIMELINE_STYLE }, /* @__PURE__ */ React26.createElement(
10346
10408
  TimelineCard,
10347
10409
  {
10348
10410
  testId: "detail-body-section",
@@ -10353,8 +10415,8 @@ function Timeline(props) {
10353
10415
  isTicketAuthor: false,
10354
10416
  ariaLabel: t2("detail.bodyLabel")
10355
10417
  },
10356
- detail.body.trim().length === 0 ? /* @__PURE__ */ React25.createElement("div", { "data-testid": "detail-no-body", style: TIMELINE_EMPTY_STYLE }, t2("detail.noBody")) : /* @__PURE__ */ React25.createElement(MarkdownBody, { testId: "detail-body", source: detail.body, attachments })
10357
- ), /* @__PURE__ */ React25.createElement("section", { "data-testid": "detail-comments", "aria-label": t2("detail.commentsAria", { count }) }, count === 0 ? /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("div", { style: TIMELINE_CONNECTOR_STYLE }), /* @__PURE__ */ React25.createElement("div", { "data-testid": "detail-no-comments", style: TIMELINE_EMPTY_STYLE }, t2("detail.noComments"))) : detail.comments.map((comment, index) => /* @__PURE__ */ React25.createElement(
10418
+ detail.body.trim().length === 0 ? /* @__PURE__ */ React26.createElement("div", { "data-testid": "detail-no-body", style: TIMELINE_EMPTY_STYLE }, t2("detail.noBody")) : /* @__PURE__ */ React26.createElement(MarkdownBody, { testId: "detail-body", source: detail.body, attachments })
10419
+ ), /* @__PURE__ */ React26.createElement("section", { "data-testid": "detail-comments", "aria-label": t2("detail.commentsAria", { count }) }, count === 0 ? /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement("div", { style: TIMELINE_CONNECTOR_STYLE }), /* @__PURE__ */ React26.createElement("div", { "data-testid": "detail-no-comments", style: TIMELINE_EMPTY_STYLE }, t2("detail.noComments"))) : detail.comments.map((comment, index) => /* @__PURE__ */ React26.createElement(
10358
10420
  CommentCard,
10359
10421
  {
10360
10422
  key: `${comment.author ?? ""}:${comment.createdAt ?? ""}:${String(index)}`,
@@ -10367,7 +10429,7 @@ function Timeline(props) {
10367
10429
  function CommentCard(props) {
10368
10430
  const { t: t2 } = useI18n();
10369
10431
  const { comment } = props;
10370
- return /* @__PURE__ */ React25.createElement(React25.Fragment, null, /* @__PURE__ */ React25.createElement("div", { style: TIMELINE_CONNECTOR_STYLE }), /* @__PURE__ */ React25.createElement(
10432
+ return /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement("div", { style: TIMELINE_CONNECTOR_STYLE }), /* @__PURE__ */ React26.createElement(
10371
10433
  TimelineCard,
10372
10434
  {
10373
10435
  testId: "detail-comment",
@@ -10378,13 +10440,13 @@ function CommentCard(props) {
10378
10440
  isTicketAuthor: comment.author !== null && comment.author === props.ticketAuthor,
10379
10441
  ariaLabel: t2("detail.commentBy", { author: comment.author ?? t2("detail.unsigned") })
10380
10442
  },
10381
- /* @__PURE__ */ React25.createElement(MarkdownBody, { source: comment.body, attachments: props.attachments })
10443
+ /* @__PURE__ */ React26.createElement(MarkdownBody, { source: comment.body, attachments: props.attachments })
10382
10444
  ));
10383
10445
  }
10384
10446
  function TimelineCard(props) {
10385
10447
  const { t: t2 } = useI18n();
10386
10448
  const header = props.isTicketAuthor ? { ...TIMELINE_CARD_HEADER_STYLE, ...TIMELINE_CARD_AUTHOR_HEADER_STYLE } : TIMELINE_CARD_HEADER_STYLE;
10387
- return /* @__PURE__ */ React25.createElement("article", { "data-testid": props.testId, "aria-label": props.ariaLabel, style: TIMELINE_CARD_STYLE }, /* @__PURE__ */ React25.createElement("header", { style: header }, /* @__PURE__ */ React25.createElement(Avatar, { name: props.author }), /* @__PURE__ */ React25.createElement("span", { "data-testid": props.authorTestId, style: TIMELINE_TIME_STYLE }, /* @__PURE__ */ React25.createElement("span", { style: TIMELINE_NAME_STYLE }, props.author ?? t2("detail.unsigned")), props.time === null ? "" : ` ${props.verb} ${formatTime(props.time)}`), props.isTicketAuthor ? /* @__PURE__ */ React25.createElement("span", { "data-testid": "author-badge", style: TIMELINE_AUTHOR_BADGE_STYLE }, t2("detail.author")) : null), /* @__PURE__ */ React25.createElement("div", { style: TIMELINE_CARD_BODY_STYLE }, props.children));
10449
+ return /* @__PURE__ */ React26.createElement("article", { "data-testid": props.testId, "aria-label": props.ariaLabel, style: TIMELINE_CARD_STYLE }, /* @__PURE__ */ React26.createElement("header", { style: header }, /* @__PURE__ */ React26.createElement(Avatar, { name: props.author }), /* @__PURE__ */ React26.createElement("span", { "data-testid": props.authorTestId, style: TIMELINE_TIME_STYLE }, /* @__PURE__ */ React26.createElement("span", { style: TIMELINE_NAME_STYLE }, props.author ?? t2("detail.unsigned")), props.time === null ? "" : ` ${props.verb} ${formatTime(props.time)}`), props.isTicketAuthor ? /* @__PURE__ */ React26.createElement("span", { "data-testid": "author-badge", style: TIMELINE_AUTHOR_BADGE_STYLE }, t2("detail.author")) : null), /* @__PURE__ */ React26.createElement("div", { style: TIMELINE_CARD_BODY_STYLE }, props.children));
10388
10450
  }
10389
10451
  function formatTime(value) {
10390
10452
  const match = /^(\d{4}-\d{2}-\d{2})T(\d{2}:\d{2})/.exec(value);
@@ -10413,13 +10475,13 @@ function TicketDetailView(props) {
10413
10475
  const ref = ticket.ref;
10414
10476
  const number = ticket.number;
10415
10477
  const request = useDetailRequest(client, workspaceRoot, ref, number);
10416
- const loadAttachment = React26.useMemo(
10478
+ const loadAttachment = React27.useMemo(
10417
10479
  () => createAttachmentLoader(client, workspaceRoot),
10418
10480
  [client, workspaceRoot]
10419
10481
  );
10420
10482
  const detail = request.detail;
10421
- const [currentTicket, setCurrentTicket] = React26.useState(ticket);
10422
- React26.useEffect(() => {
10483
+ const [currentTicket, setCurrentTicket] = React27.useState(ticket);
10484
+ React27.useEffect(() => {
10423
10485
  setCurrentTicket(ticket);
10424
10486
  }, [ticket]);
10425
10487
  const mutation = useTicketMutation(client, {
@@ -10443,7 +10505,7 @@ function TicketDetailView(props) {
10443
10505
  const link = useCopyLink(detail?.url ?? null, t2);
10444
10506
  const busy = mutation.busy || deletion.deleting;
10445
10507
  useEscapeKey(props.onBack);
10446
- return /* @__PURE__ */ React26.createElement("div", { "data-testid": "ticket-detail", style: DETAIL_ROOT_STYLE }, /* @__PURE__ */ React26.createElement(DetailHeader, { refText: ref, detail, onBack: props.onBack }, /* @__PURE__ */ React26.createElement(
10508
+ return /* @__PURE__ */ React27.createElement("div", { "data-testid": "ticket-detail", style: DETAIL_ROOT_STYLE }, /* @__PURE__ */ React27.createElement(DetailHeader, { refText: ref, detail, onBack: props.onBack }, /* @__PURE__ */ React27.createElement(
10447
10509
  SkillActionBadge,
10448
10510
  {
10449
10511
  ticket: currentTicket,
@@ -10451,7 +10513,7 @@ function TicketDetailView(props) {
10451
10513
  injection: props.injection,
10452
10514
  onSkillAction
10453
10515
  }
10454
- ), detail === null ? null : /* @__PURE__ */ React26.createElement(
10516
+ ), detail === null ? null : /* @__PURE__ */ React27.createElement(
10455
10517
  HeaderActions,
10456
10518
  {
10457
10519
  detail,
@@ -10460,7 +10522,7 @@ function TicketDetailView(props) {
10460
10522
  copy: link.copy,
10461
10523
  onCopy: link.onCopy
10462
10524
  }
10463
- ), detail?.capabilities.delete === true ? /* @__PURE__ */ React26.createElement(MoreMenu, { onDelete: deletion.open }) : null), detail !== null ? /* @__PURE__ */ React26.createElement(
10525
+ ), detail?.capabilities.delete === true ? /* @__PURE__ */ React27.createElement(MoreMenu, { onDelete: deletion.open }) : null), detail !== null ? /* @__PURE__ */ React27.createElement(
10464
10526
  DetailContent,
10465
10527
  {
10466
10528
  detail,
@@ -10473,13 +10535,13 @@ function TicketDetailView(props) {
10473
10535
  deletion,
10474
10536
  onApply: mutation.apply
10475
10537
  }
10476
- ) : request.phase === "error" ? /* @__PURE__ */ React26.createElement(LoadError, { error: request.error, onRetry: request.reload }) : /* @__PURE__ */ React26.createElement("div", { "data-testid": "detail-loading", style: EMPTY_STYLE }, t2("detail.loading")));
10538
+ ) : request.phase === "error" ? /* @__PURE__ */ React27.createElement(LoadError, { error: request.error, onRetry: request.reload }) : /* @__PURE__ */ React27.createElement("div", { "data-testid": "detail-loading", style: EMPTY_STYLE }, t2("detail.loading")));
10477
10539
  }
10478
10540
  function DetailHeader(props) {
10479
10541
  const { t: t2 } = useI18n();
10480
10542
  const { detail } = props;
10481
10543
  const url = detail?.url ?? null;
10482
- return /* @__PURE__ */ React26.createElement("header", { style: DETAIL_HEADER_STYLE }, /* @__PURE__ */ React26.createElement(
10544
+ return /* @__PURE__ */ React27.createElement("header", { style: DETAIL_HEADER_STYLE }, /* @__PURE__ */ React27.createElement(
10483
10545
  "button",
10484
10546
  {
10485
10547
  type: "button",
@@ -10489,9 +10551,9 @@ function DetailHeader(props) {
10489
10551
  onClick: props.onBack,
10490
10552
  style: DETAIL_BACK_STYLE
10491
10553
  },
10492
- /* @__PURE__ */ React26.createElement(ChevronLeftIcon, null),
10554
+ /* @__PURE__ */ React27.createElement(ChevronLeftIcon, null),
10493
10555
  t2("detail.back")
10494
- ), url === null ? /* @__PURE__ */ React26.createElement("span", { "data-testid": "detail-ref", title: props.refText, style: DETAIL_REF_STYLE }, props.refText) : /* @__PURE__ */ React26.createElement(
10556
+ ), url === null ? /* @__PURE__ */ React27.createElement("span", { "data-testid": "detail-ref", title: props.refText, style: DETAIL_REF_STYLE }, props.refText) : /* @__PURE__ */ React27.createElement(
10495
10557
  "a",
10496
10558
  {
10497
10559
  "data-testid": "detail-ref",
@@ -10503,13 +10565,13 @@ function DetailHeader(props) {
10503
10565
  style: DETAIL_REF_LINK_STYLE
10504
10566
  },
10505
10567
  props.refText
10506
- ), detail === null ? null : /* @__PURE__ */ React26.createElement("span", { "data-testid": "detail-backend", style: BACKEND_BADGE_STYLE }, backendLabel(detail.backend, t2)), /* @__PURE__ */ React26.createElement("span", { style: { flex: 1 } }), props.children);
10568
+ ), detail === null ? null : /* @__PURE__ */ React27.createElement("span", { "data-testid": "detail-backend", style: BACKEND_BADGE_STYLE }, backendLabel(detail.backend, t2)), /* @__PURE__ */ React27.createElement("span", { style: { flex: 1 } }), props.children);
10507
10569
  }
10508
10570
  function DetailContent(props) {
10509
10571
  const { t: t2 } = useI18n();
10510
10572
  const { detail, deletion } = props;
10511
10573
  const fieldProps = { detail, busy: props.busy, onApply: props.onApply };
10512
- return /* @__PURE__ */ React26.createElement("div", { "data-testid": "detail-content", "aria-busy": props.busy, style: DETAIL_SCROLL_STYLE }, deletion.confirming ? /* @__PURE__ */ React26.createElement(
10574
+ return /* @__PURE__ */ React27.createElement("div", { "data-testid": "detail-content", "aria-busy": props.busy, style: DETAIL_SCROLL_STYLE }, deletion.confirming ? /* @__PURE__ */ React27.createElement(
10513
10575
  DeleteConfirm,
10514
10576
  {
10515
10577
  refText: detail.ref,
@@ -10520,17 +10582,17 @@ function DetailContent(props) {
10520
10582
  onCancel: deletion.cancel,
10521
10583
  onConfirm: deletion.confirm
10522
10584
  }
10523
- ) : null, /* @__PURE__ */ React26.createElement(CopyFailure, { copy: props.copy, url: detail.url }), props.notice === null ? null : /* @__PURE__ */ React26.createElement("div", { role: "status", "data-testid": "inject-notice", style: DETAIL_HINT_STYLE }, props.notice), /* @__PURE__ */ React26.createElement(TitleBlock, { detail }), /* @__PURE__ */ React26.createElement(PropertyStrip, { ...fieldProps, options: props.options }), props.mutationError === null ? null : /* @__PURE__ */ React26.createElement("div", { role: "alert", "data-testid": "detail-error", style: DETAIL_ERROR_STYLE }, errorText(props.mutationError, t2)), /* @__PURE__ */ React26.createElement(Timeline, { detail, loadAttachment: props.loadAttachment }));
10585
+ ) : null, /* @__PURE__ */ React27.createElement(CopyFailure, { copy: props.copy, url: detail.url }), props.notice === null ? null : /* @__PURE__ */ React27.createElement("div", { role: "status", "data-testid": "inject-notice", style: DETAIL_HINT_STYLE }, props.notice), /* @__PURE__ */ React27.createElement(TitleBlock, { detail }), /* @__PURE__ */ React27.createElement(PropertyStrip, { ...fieldProps, options: props.options }), props.mutationError === null ? null : /* @__PURE__ */ React27.createElement("div", { role: "alert", "data-testid": "detail-error", style: DETAIL_ERROR_STYLE }, errorText(props.mutationError, t2)), /* @__PURE__ */ React27.createElement(Timeline, { detail, loadAttachment: props.loadAttachment }));
10524
10586
  }
10525
10587
  var NOWRAP_STYLE = { whiteSpace: "nowrap" };
10526
10588
  function TitleBlock(props) {
10527
10589
  const { t: t2 } = useI18n();
10528
10590
  const { detail } = props;
10529
- return /* @__PURE__ */ React26.createElement("div", { style: DETAIL_STACK_STYLE }, /* @__PURE__ */ React26.createElement("h2", { "data-testid": "detail-title", title: detail.title, style: DETAIL_TITLE_STYLE }, detail.title), /* @__PURE__ */ React26.createElement("div", { "data-testid": "detail-meta", style: TITLE_META_ROW_STYLE }, /* @__PURE__ */ React26.createElement("span", { "data-testid": "detail-state", style: STATE_PILL_STYLES[detail.state] }, /* @__PURE__ */ React26.createElement("span", { style: STATUS_DOT_STYLE, "aria-hidden": "true" }), t2(detail.state === "open" ? "detail.state.open" : "detail.state.closed")), /* @__PURE__ */ React26.createElement("span", { style: NOWRAP_STYLE }, detail.author === null ? null : /* @__PURE__ */ React26.createElement("span", { style: TITLE_META_NAME_STYLE }, detail.author, " "), t2("detail.createdAt", { time: formatTime(detail.createdAt) }), " \xB7"), /* @__PURE__ */ React26.createElement("span", { style: NOWRAP_STYLE }, t2("detail.updatedAt", { time: formatTime(detail.updatedAt) }), " \xB7"), /* @__PURE__ */ React26.createElement("span", { style: NOWRAP_STYLE }, t2("detail.comments", { count: detail.comments.length }))));
10591
+ return /* @__PURE__ */ React27.createElement("div", { style: DETAIL_STACK_STYLE }, /* @__PURE__ */ React27.createElement("h2", { "data-testid": "detail-title", title: detail.title, style: DETAIL_TITLE_STYLE }, detail.title), /* @__PURE__ */ React27.createElement("div", { "data-testid": "detail-meta", style: TITLE_META_ROW_STYLE }, /* @__PURE__ */ React27.createElement("span", { "data-testid": "detail-state", style: STATE_PILL_STYLES[detail.state] }, /* @__PURE__ */ React27.createElement("span", { style: STATUS_DOT_STYLE, "aria-hidden": "true" }), t2(detail.state === "open" ? "detail.state.open" : "detail.state.closed")), /* @__PURE__ */ React27.createElement("span", { style: NOWRAP_STYLE }, detail.author === null ? null : /* @__PURE__ */ React27.createElement("span", { style: TITLE_META_NAME_STYLE }, detail.author, " "), t2("detail.createdAt", { time: formatTime(detail.createdAt) }), " \xB7"), /* @__PURE__ */ React27.createElement("span", { style: NOWRAP_STYLE }, t2("detail.updatedAt", { time: formatTime(detail.updatedAt) }), " \xB7"), /* @__PURE__ */ React27.createElement("span", { style: NOWRAP_STYLE }, t2("detail.comments", { count: detail.comments.length }))));
10530
10592
  }
10531
10593
  function LoadError(props) {
10532
10594
  const { t: t2 } = useI18n();
10533
- return /* @__PURE__ */ React26.createElement("div", { style: DETAIL_SCROLL_STYLE }, /* @__PURE__ */ React26.createElement("div", { role: "alert", "data-testid": "detail-load-error", style: ERROR_STYLE }, /* @__PURE__ */ React26.createElement("div", null, props.error === null ? t2("detail.loadFailed") : errorText(props.error, t2)), /* @__PURE__ */ React26.createElement(
10595
+ return /* @__PURE__ */ React27.createElement("div", { style: DETAIL_SCROLL_STYLE }, /* @__PURE__ */ React27.createElement("div", { role: "alert", "data-testid": "detail-load-error", style: ERROR_STYLE }, /* @__PURE__ */ React27.createElement("div", null, props.error === null ? t2("detail.loadFailed") : errorText(props.error, t2)), /* @__PURE__ */ React27.createElement(
10534
10596
  "button",
10535
10597
  {
10536
10598
  type: "button",
@@ -10544,27 +10606,27 @@ function LoadError(props) {
10544
10606
  }
10545
10607
 
10546
10608
  // src/client/ticket-tree-session.tsx
10547
- var React27 = __toESM(require("react"), 1);
10548
- var CONTEXT = React27.createContext(null);
10609
+ var React28 = __toESM(require("react"), 1);
10610
+ var CONTEXT = React28.createContext(null);
10549
10611
  function TicketTreeSessionProvider(props) {
10550
- const [collapsed, setCollapsed] = React27.useState(() => /* @__PURE__ */ new Set());
10551
- const previousRoot = React27.useRef(props.workspaceRoot);
10612
+ const [collapsed, setCollapsed] = React28.useState(() => /* @__PURE__ */ new Set());
10613
+ const previousRoot = React28.useRef(props.workspaceRoot);
10552
10614
  if (previousRoot.current !== props.workspaceRoot) {
10553
10615
  previousRoot.current = props.workspaceRoot;
10554
10616
  setCollapsed(/* @__PURE__ */ new Set());
10555
10617
  }
10556
- const value = React27.useMemo(() => ({ collapsed, setCollapsed }), [collapsed]);
10557
- return /* @__PURE__ */ React27.createElement(CONTEXT.Provider, { value }, props.children);
10618
+ const value = React28.useMemo(() => ({ collapsed, setCollapsed }), [collapsed]);
10619
+ return /* @__PURE__ */ React28.createElement(CONTEXT.Provider, { value }, props.children);
10558
10620
  }
10559
10621
  function useTicketTreeSession() {
10560
- return React27.useContext(CONTEXT);
10622
+ return React28.useContext(CONTEXT);
10561
10623
  }
10562
10624
 
10563
10625
  // src/client/tickets-view.tsx
10564
- var React40 = __toESM(require("react"), 1);
10626
+ var React41 = __toESM(require("react"), 1);
10565
10627
 
10566
10628
  // src/client/my-tickets-bar.tsx
10567
- var React28 = __toESM(require("react"), 1);
10629
+ var React29 = __toESM(require("react"), 1);
10568
10630
 
10569
10631
  // src/client/my-filter-styles.ts
10570
10632
  var MY_FILTER_ROW_STYLE = {
@@ -10636,7 +10698,7 @@ var MY_FILTER_VIEWER_STYLE = {
10636
10698
  // src/client/my-tickets-bar.tsx
10637
10699
  function MyTicketsBar(props) {
10638
10700
  const { t: t2 } = useI18n();
10639
- return /* @__PURE__ */ React28.createElement(
10701
+ return /* @__PURE__ */ React29.createElement(
10640
10702
  "div",
10641
10703
  {
10642
10704
  "data-testid": "mine-filters",
@@ -10644,8 +10706,8 @@ function MyTicketsBar(props) {
10644
10706
  "aria-label": t2("mine.group"),
10645
10707
  style: MY_FILTER_ROW_STYLE
10646
10708
  },
10647
- /* @__PURE__ */ React28.createElement("span", { "aria-hidden": "true", style: MY_FILTER_ICON_STYLE }, /* @__PURE__ */ React28.createElement(PersonIcon, null)),
10648
- /* @__PURE__ */ React28.createElement(
10709
+ /* @__PURE__ */ React29.createElement("span", { "aria-hidden": "true", style: MY_FILTER_ICON_STYLE }, /* @__PURE__ */ React29.createElement(PersonIcon, null)),
10710
+ /* @__PURE__ */ React29.createElement(
10649
10711
  MineChip,
10650
10712
  {
10651
10713
  testId: "mine-assigned",
@@ -10655,7 +10717,7 @@ function MyTicketsBar(props) {
10655
10717
  onClick: props.onToggleAssigned
10656
10718
  }
10657
10719
  ),
10658
- /* @__PURE__ */ React28.createElement(
10720
+ /* @__PURE__ */ React29.createElement(
10659
10721
  MineChip,
10660
10722
  {
10661
10723
  testId: "mine-created",
@@ -10665,7 +10727,7 @@ function MyTicketsBar(props) {
10665
10727
  onClick: props.onToggleCreated
10666
10728
  }
10667
10729
  ),
10668
- props.assignedToMe || props.createdByMe ? /* @__PURE__ */ React28.createElement(
10730
+ props.assignedToMe || props.createdByMe ? /* @__PURE__ */ React29.createElement(
10669
10731
  "button",
10670
10732
  {
10671
10733
  type: "button",
@@ -10676,7 +10738,7 @@ function MyTicketsBar(props) {
10676
10738
  },
10677
10739
  t2("mine.clear")
10678
10740
  ) : null,
10679
- /* @__PURE__ */ React28.createElement(
10741
+ /* @__PURE__ */ React29.createElement(
10680
10742
  "span",
10681
10743
  {
10682
10744
  "data-testid": "mine-viewer",
@@ -10689,7 +10751,7 @@ function MyTicketsBar(props) {
10689
10751
  }
10690
10752
  function MineChip(props) {
10691
10753
  const { t: t2 } = useI18n();
10692
- return /* @__PURE__ */ React28.createElement(
10754
+ return /* @__PURE__ */ React29.createElement(
10693
10755
  "button",
10694
10756
  {
10695
10757
  type: "button",
@@ -10704,7 +10766,7 @@ function MineChip(props) {
10704
10766
  }
10705
10767
  },
10706
10768
  props.label,
10707
- /* @__PURE__ */ React28.createElement(
10769
+ /* @__PURE__ */ React29.createElement(
10708
10770
  "span",
10709
10771
  {
10710
10772
  style: {
@@ -10718,7 +10780,7 @@ function MineChip(props) {
10718
10780
  }
10719
10781
 
10720
10782
  // src/client/ticket-list.tsx
10721
- var React31 = __toESM(require("react"), 1);
10783
+ var React32 = __toESM(require("react"), 1);
10722
10784
 
10723
10785
  // src/client/author-text.ts
10724
10786
  function authorName(author) {
@@ -10729,7 +10791,7 @@ function authorTitle(author, t2) {
10729
10791
  }
10730
10792
 
10731
10793
  // src/client/ticket-avatar.tsx
10732
- var React29 = __toESM(require("react"), 1);
10794
+ var React30 = __toESM(require("react"), 1);
10733
10795
 
10734
10796
  // src/client/ticket-row-styles.ts
10735
10797
  var CARD_META_STYLE = {
@@ -10892,13 +10954,13 @@ var NUMBER_MARK_STYLE = {
10892
10954
  // src/client/ticket-avatar.tsx
10893
10955
  function TicketAvatar(props) {
10894
10956
  const { t: t2 } = useI18n();
10895
- const [failedSrc, setFailedSrc] = React29.useState(null);
10957
+ const [failedSrc, setFailedSrc] = React30.useState(null);
10896
10958
  const { author } = props;
10897
10959
  const label = t2("ticket.avatar.label", { name: authorName(author) });
10898
10960
  const hint = authorTitle(author, t2);
10899
10961
  const src = usableAvatarUrl(author.avatarUrl);
10900
10962
  if (src !== null && src !== failedSrc) {
10901
- return /* @__PURE__ */ React29.createElement(
10963
+ return /* @__PURE__ */ React30.createElement(
10902
10964
  "img",
10903
10965
  {
10904
10966
  "data-testid": "ticket-avatar",
@@ -10913,7 +10975,7 @@ function TicketAvatar(props) {
10913
10975
  }
10914
10976
  );
10915
10977
  }
10916
- return /* @__PURE__ */ React29.createElement(
10978
+ return /* @__PURE__ */ React30.createElement(
10917
10979
  "span",
10918
10980
  {
10919
10981
  "data-testid": "ticket-avatar",
@@ -10952,24 +11014,24 @@ function initialOf(login) {
10952
11014
  }
10953
11015
 
10954
11016
  // src/client/ticket-number.tsx
10955
- var React30 = __toESM(require("react"), 1);
11017
+ var React31 = __toESM(require("react"), 1);
10956
11018
  var REF_DISPLAY_LIMIT = 40;
10957
11019
  function TicketNumber(props) {
10958
11020
  const { ticket } = props;
10959
11021
  const url = ticket.url ?? null;
10960
11022
  if (url === null || ticket.number === null) {
10961
11023
  const display = refDisplay(ticket);
10962
- return /* @__PURE__ */ React30.createElement(
11024
+ return /* @__PURE__ */ React31.createElement(
10963
11025
  "span",
10964
11026
  {
10965
11027
  "data-testid": "ticket-ref",
10966
11028
  style: ticket.number === null ? LOCAL_REF_STYLE : NUMBER_BADGE_STYLE,
10967
11029
  ...display.full === void 0 ? {} : { title: display.full }
10968
11030
  },
10969
- ticket.number === null ? display.text : /* @__PURE__ */ React30.createElement(NumberText, { number: ticket.number })
11031
+ ticket.number === null ? display.text : /* @__PURE__ */ React31.createElement(NumberText, { number: ticket.number })
10970
11032
  );
10971
11033
  }
10972
- return /* @__PURE__ */ React30.createElement(CopyableNumber, { number: ticket.number, url });
11034
+ return /* @__PURE__ */ React31.createElement(CopyableNumber, { number: ticket.number, url });
10973
11035
  }
10974
11036
  function CopyableNumber(props) {
10975
11037
  const { t: t2 } = useI18n();
@@ -10977,7 +11039,7 @@ function CopyableNumber(props) {
10977
11039
  const copied = copy.status === "copied";
10978
11040
  const failed = copy.status === "failed";
10979
11041
  const color = copied ? COLORS.success : failed ? COLORS.error : void 0;
10980
- return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement(
11042
+ return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(
10981
11043
  "button",
10982
11044
  {
10983
11045
  type: "button",
@@ -10992,11 +11054,11 @@ function CopyableNumber(props) {
10992
11054
  },
10993
11055
  style: color === void 0 ? NUMBER_BUTTON_STYLE : { ...NUMBER_BUTTON_STYLE, color }
10994
11056
  },
10995
- /* @__PURE__ */ React30.createElement(NumberText, { number: props.number, copied })
10996
- ), copied ? /* @__PURE__ */ React30.createElement("span", { role: "status", style: VISUALLY_HIDDEN_STYLE }, t2("ticket.number.copiedNotice")) : null);
11057
+ /* @__PURE__ */ React31.createElement(NumberText, { number: props.number, copied })
11058
+ ), copied ? /* @__PURE__ */ React31.createElement("span", { role: "status", style: VISUALLY_HIDDEN_STYLE }, t2("ticket.number.copiedNotice")) : null);
10997
11059
  }
10998
11060
  function NumberText(props) {
10999
- return /* @__PURE__ */ React30.createElement(React30.Fragment, null, /* @__PURE__ */ React30.createElement("span", { style: NUMBER_MARK_STYLE }, props.copied === true ? /* @__PURE__ */ React30.createElement(CheckIcon, null) : "#"), String(props.number));
11061
+ return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement("span", { style: NUMBER_MARK_STYLE }, props.copied === true ? /* @__PURE__ */ React31.createElement(CheckIcon, null) : "#"), String(props.number));
11000
11062
  }
11001
11063
  function refDisplay(ticket) {
11002
11064
  if (ticket.ref.length <= REF_DISPLAY_LIMIT) return { text: ticket.ref };
@@ -11023,9 +11085,9 @@ var ROWS_STYLE = {
11023
11085
  };
11024
11086
  function TicketList(props) {
11025
11087
  if (props.tickets.length === 0) {
11026
- return /* @__PURE__ */ React31.createElement("div", { "data-testid": "empty", style: EMPTY_STYLE }, props.emptyText);
11088
+ return /* @__PURE__ */ React32.createElement("div", { "data-testid": "empty", style: EMPTY_STYLE }, props.emptyText);
11027
11089
  }
11028
- return /* @__PURE__ */ React31.createElement("div", { "data-testid": "ticket-scroll", style: LIST_STYLE }, /* @__PURE__ */ React31.createElement("div", { role: "list", "data-testid": "ticket-list", style: ROWS_STYLE }, props.rows === void 0 ? props.tickets.map((ticket) => /* @__PURE__ */ React31.createElement(
11090
+ return /* @__PURE__ */ React32.createElement("div", { "data-testid": "ticket-scroll", style: LIST_STYLE }, /* @__PURE__ */ React32.createElement("div", { role: "list", "data-testid": "ticket-list", style: ROWS_STYLE }, props.rows === void 0 ? props.tickets.map((ticket) => /* @__PURE__ */ React32.createElement(
11029
11091
  TicketRow,
11030
11092
  {
11031
11093
  key: ticket.ref,
@@ -11037,7 +11099,7 @@ function TicketList(props) {
11037
11099
  onPick: props.onPick,
11038
11100
  onSkillAction: props.onSkillAction
11039
11101
  }
11040
- )) : props.rows.map((row) => /* @__PURE__ */ React31.createElement(
11102
+ )) : props.rows.map((row) => /* @__PURE__ */ React32.createElement(
11041
11103
  TicketRow,
11042
11104
  {
11043
11105
  key: row.ticket.ref,
@@ -11056,7 +11118,7 @@ function TicketList(props) {
11056
11118
  function TicketRow(props) {
11057
11119
  const { t: t2 } = useI18n();
11058
11120
  const { ticket } = props;
11059
- return /* @__PURE__ */ React31.createElement(
11121
+ return /* @__PURE__ */ React32.createElement(
11060
11122
  "div",
11061
11123
  {
11062
11124
  role: "listitem",
@@ -11070,7 +11132,7 @@ function TicketRow(props) {
11070
11132
  ...props.row === void 0 ? {} : { marginLeft: props.row.depth * TREE_INDENT }
11071
11133
  }
11072
11134
  },
11073
- /* @__PURE__ */ React31.createElement(
11135
+ /* @__PURE__ */ React32.createElement(
11074
11136
  "div",
11075
11137
  {
11076
11138
  "data-testid": "ticket-row",
@@ -11079,7 +11141,7 @@ function TicketRow(props) {
11079
11141
  "data-focused": props.focused ? "true" : void 0,
11080
11142
  style: CARD_CONTENT_STYLE
11081
11143
  },
11082
- /* @__PURE__ */ React31.createElement(
11144
+ /* @__PURE__ */ React32.createElement(
11083
11145
  "button",
11084
11146
  {
11085
11147
  type: "button",
@@ -11088,7 +11150,7 @@ function TicketRow(props) {
11088
11150
  style: CARD_OPEN_STYLE
11089
11151
  }
11090
11152
  ),
11091
- /* @__PURE__ */ React31.createElement("span", { style: CARD_TITLE_STYLE }, props.row?.hasChildren === true ? /* @__PURE__ */ React31.createElement(
11153
+ /* @__PURE__ */ React32.createElement("span", { style: CARD_TITLE_STYLE }, props.row?.hasChildren === true ? /* @__PURE__ */ React32.createElement(
11092
11154
  "button",
11093
11155
  {
11094
11156
  type: "button",
@@ -11104,11 +11166,11 @@ function TicketRow(props) {
11104
11166
  },
11105
11167
  style: TREE_TOGGLE_STYLE
11106
11168
  },
11107
- /* @__PURE__ */ React31.createElement("span", { "aria-hidden": "true" }, props.row.expanded ? "\u25BE" : "\u25B8")
11108
- ) : null, /* @__PURE__ */ React31.createElement(TicketNumber, { ticket }), ticket.title),
11109
- /* @__PURE__ */ React31.createElement(MetaRow, { ticket, row: props.row, now: props.now })
11169
+ /* @__PURE__ */ React32.createElement("span", { "aria-hidden": "true" }, props.row.expanded ? "\u25BE" : "\u25B8")
11170
+ ) : null, /* @__PURE__ */ React32.createElement(TicketNumber, { ticket }), ticket.title),
11171
+ /* @__PURE__ */ React32.createElement(MetaRow, { ticket, row: props.row, now: props.now })
11110
11172
  ),
11111
- /* @__PURE__ */ React31.createElement(
11173
+ /* @__PURE__ */ React32.createElement(
11112
11174
  SkillActionBadge,
11113
11175
  {
11114
11176
  ticket,
@@ -11125,7 +11187,7 @@ function MetaRow(props) {
11125
11187
  const { ticket, row } = props;
11126
11188
  const extra = ticket.labels.filter((label) => label !== ticket.category);
11127
11189
  const { shown, hidden } = pickRowLabels(extra, MAX_EXTRA_LABELS);
11128
- return /* @__PURE__ */ React31.createElement("span", { style: CARD_META_STYLE }, /* @__PURE__ */ React31.createElement("span", { style: STATUS_BADGES[ticket.status] }, /* @__PURE__ */ React31.createElement("span", { style: STATUS_DOT_STYLE }), t2(STATUS_KEYS2[ticket.status])), ticket.category === null ? null : /* @__PURE__ */ React31.createElement("span", { style: CATEGORY_BADGES[ticket.category] }, ticket.category), row?.hasChildren === true ? /* @__PURE__ */ React31.createElement("span", { "data-testid": "tree-child-count", style: TREE_CHILD_COUNT_STYLE }, t2("tree.childCount", { count: row.childCount })) : null, row?.parentOutside === true && ticket.parent !== void 0 ? /* @__PURE__ */ React31.createElement(
11190
+ return /* @__PURE__ */ React32.createElement("span", { style: CARD_META_STYLE }, /* @__PURE__ */ React32.createElement("span", { style: STATUS_BADGES[ticket.status] }, /* @__PURE__ */ React32.createElement("span", { style: STATUS_DOT_STYLE }), t2(STATUS_KEYS2[ticket.status])), ticket.category === null ? null : /* @__PURE__ */ React32.createElement("span", { style: CATEGORY_BADGES[ticket.category] }, ticket.category), row?.hasChildren === true ? /* @__PURE__ */ React32.createElement("span", { "data-testid": "tree-child-count", style: TREE_CHILD_COUNT_STYLE }, t2("tree.childCount", { count: row.childCount })) : null, row?.parentOutside === true && ticket.parent !== void 0 ? /* @__PURE__ */ React32.createElement(
11129
11191
  "span",
11130
11192
  {
11131
11193
  "data-testid": "parent-badge",
@@ -11133,7 +11195,7 @@ function MetaRow(props) {
11133
11195
  style: PARENT_BADGE_STYLE
11134
11196
  },
11135
11197
  t2("tree.parentBadge", { parent: ticket.parent })
11136
- ) : null, shown.map((label) => /* @__PURE__ */ React31.createElement("span", { key: label, "data-testid": "ticket-label", style: LABEL_BADGE_STYLE }, label)), hidden > 0 ? /* @__PURE__ */ React31.createElement("span", { "data-testid": "ticket-label-more", style: LABEL_BADGE_STYLE }, "+", String(hidden)) : null, ticket.author === null ? null : /* @__PURE__ */ React31.createElement(
11198
+ ) : null, shown.map((label) => /* @__PURE__ */ React32.createElement("span", { key: label, "data-testid": "ticket-label", style: LABEL_BADGE_STYLE }, label)), hidden > 0 ? /* @__PURE__ */ React32.createElement("span", { "data-testid": "ticket-label-more", style: LABEL_BADGE_STYLE }, "+", String(hidden)) : null, ticket.author === null ? null : /* @__PURE__ */ React32.createElement(
11137
11199
  AuthorMeta,
11138
11200
  {
11139
11201
  author: ticket.author,
@@ -11149,7 +11211,7 @@ function AuthorMeta(props) {
11149
11211
  const name = authorName(author);
11150
11212
  const full = authorTitle(author, t2);
11151
11213
  const age = formatRelativeTime(props.createdAt, props.now, t2);
11152
- return /* @__PURE__ */ React31.createElement(React31.Fragment, null, /* @__PURE__ */ React31.createElement(TicketAvatar, { author }), /* @__PURE__ */ React31.createElement("span", { "data-testid": "ticket-author", title: full, style: AUTHOR_NAME_STYLE }, name), age.length === 0 ? null : /* @__PURE__ */ React31.createElement(
11214
+ return /* @__PURE__ */ React32.createElement(React32.Fragment, null, /* @__PURE__ */ React32.createElement(TicketAvatar, { author }), /* @__PURE__ */ React32.createElement("span", { "data-testid": "ticket-author", title: full, style: AUTHOR_NAME_STYLE }, name), age.length === 0 ? null : /* @__PURE__ */ React32.createElement(
11153
11215
  "span",
11154
11216
  {
11155
11217
  "data-testid": "ticket-age",
@@ -11175,11 +11237,11 @@ function pickRowLabels(labels, limit) {
11175
11237
  }
11176
11238
 
11177
11239
  // src/client/tickets-view-footer.tsx
11178
- var React32 = __toESM(require("react"), 1);
11240
+ var React33 = __toESM(require("react"), 1);
11179
11241
  function Footer(props) {
11180
11242
  const { t: t2 } = useI18n();
11181
11243
  if (props.injection.canInjectCurrent && props.notice === null) return null;
11182
- return /* @__PURE__ */ React32.createElement(
11244
+ return /* @__PURE__ */ React33.createElement(
11183
11245
  "footer",
11184
11246
  {
11185
11247
  style: {
@@ -11190,10 +11252,10 @@ function Footer(props) {
11190
11252
  borderTop: `1px solid ${COLORS.border}`
11191
11253
  }
11192
11254
  },
11193
- props.injection.canInjectCurrent ? null : /* @__PURE__ */ React32.createElement("div", { "data-testid": "no-session-hint", style: { color: COLORS.secondary, fontSize: 12 } }, t2(
11255
+ props.injection.canInjectCurrent ? null : /* @__PURE__ */ React33.createElement("div", { "data-testid": "no-session-hint", style: { color: COLORS.secondary, fontSize: 12 } }, t2(
11194
11256
  props.injection.canStartNewSession ? "injection.footerNewSession" : "injection.footerUnavailable"
11195
11257
  )),
11196
- props.notice === null ? null : /* @__PURE__ */ React32.createElement(
11258
+ props.notice === null ? null : /* @__PURE__ */ React33.createElement(
11197
11259
  "div",
11198
11260
  {
11199
11261
  role: "status",
@@ -11206,7 +11268,7 @@ function Footer(props) {
11206
11268
  }
11207
11269
 
11208
11270
  // src/client/tickets-header.tsx
11209
- var React33 = __toESM(require("react"), 1);
11271
+ var React34 = __toESM(require("react"), 1);
11210
11272
  var SECONDARY_BUTTON_STYLE = {
11211
11273
  ...BUTTON_STYLE,
11212
11274
  padding: "2px 6px",
@@ -11223,7 +11285,7 @@ var REFRESH_ERROR_STYLE2 = {
11223
11285
  };
11224
11286
  function TicketsHeader(props) {
11225
11287
  const { t: t2 } = useI18n();
11226
- return /* @__PURE__ */ React33.createElement("header", { style: HEADER_STYLE }, /* @__PURE__ */ React33.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8, minWidth: 0 } }, /* @__PURE__ */ React33.createElement("div", { style: REPO_CHIP_STYLE }, /* @__PURE__ */ React33.createElement(FolderIcon, null), /* @__PURE__ */ React33.createElement(
11288
+ return /* @__PURE__ */ React34.createElement("header", { style: HEADER_STYLE }, /* @__PURE__ */ React34.createElement("div", { style: { display: "flex", alignItems: "center", gap: 8, minWidth: 0 } }, /* @__PURE__ */ React34.createElement("div", { style: REPO_CHIP_STYLE }, /* @__PURE__ */ React34.createElement(FolderIcon, null), /* @__PURE__ */ React34.createElement(
11227
11289
  "span",
11228
11290
  {
11229
11291
  "data-testid": "repo-name",
@@ -11231,7 +11293,7 @@ function TicketsHeader(props) {
11231
11293
  ...props.snapshot === null ? {} : { title: props.snapshot.repository }
11232
11294
  },
11233
11295
  props.snapshot?.repository ?? (props.loading ? t2("repo.identifying") : t2("repo.unidentified"))
11234
- )), props.snapshot === null ? null : /* @__PURE__ */ React33.createElement("span", { "data-testid": "backend-badge", style: BACKEND_BADGE_STYLE }, backendLabel(props.snapshot.backend, t2)), props.snapshot === null ? null : /* @__PURE__ */ React33.createElement(SourceBadge2, { source: props.snapshot.source }), props.snapshot?.backend === "gitea" && props.snapshot.repositoryHost !== null ? /* @__PURE__ */ React33.createElement(
11296
+ )), props.snapshot === null ? null : /* @__PURE__ */ React34.createElement("span", { "data-testid": "backend-badge", style: BACKEND_BADGE_STYLE }, backendLabel(props.snapshot.backend, t2)), props.snapshot === null ? null : /* @__PURE__ */ React34.createElement(SourceBadge2, { source: props.snapshot.source }), props.snapshot?.backend === "gitea" && props.snapshot.repositoryHost !== null ? /* @__PURE__ */ React34.createElement(
11235
11297
  "span",
11236
11298
  {
11237
11299
  "data-testid": "repo-host",
@@ -11239,7 +11301,7 @@ function TicketsHeader(props) {
11239
11301
  style: REPO_HOST_STYLE
11240
11302
  },
11241
11303
  props.snapshot.repositoryHost
11242
- ) : null), /* @__PURE__ */ React33.createElement("div", { style: { display: "flex", alignItems: "center", gap: 4, flex: "none" } }, /* @__PURE__ */ React33.createElement("span", { "data-testid": "snapshot-age", style: AGE_STYLE }, props.snapshot === null ? t2("snapshot.none") : formatRelativeTime(props.snapshot.fetchedAt, props.now, t2)), props.notice === null ? null : /* @__PURE__ */ React33.createElement("span", { "data-testid": "refresh-error", title: props.notice, style: REFRESH_ERROR_STYLE2 }, props.notice), /* @__PURE__ */ React33.createElement(
11304
+ ) : null), /* @__PURE__ */ React34.createElement("div", { style: { display: "flex", alignItems: "center", gap: 4, flex: "none" } }, /* @__PURE__ */ React34.createElement("span", { "data-testid": "snapshot-age", style: AGE_STYLE }, props.snapshot === null ? t2("snapshot.none") : formatRelativeTime(props.snapshot.fetchedAt, props.now, t2)), props.notice === null ? null : /* @__PURE__ */ React34.createElement("span", { "data-testid": "refresh-error", title: props.notice, style: REFRESH_ERROR_STYLE2 }, props.notice), /* @__PURE__ */ React34.createElement(
11243
11305
  "button",
11244
11306
  {
11245
11307
  type: "button",
@@ -11249,9 +11311,9 @@ function TicketsHeader(props) {
11249
11311
  onClick: props.onRefresh,
11250
11312
  style: { ...REFRESH_BUTTON_STYLE, opacity: props.busy ? 0.6 : 1 }
11251
11313
  },
11252
- /* @__PURE__ */ React33.createElement(RefreshIcon, null),
11314
+ /* @__PURE__ */ React34.createElement(RefreshIcon, null),
11253
11315
  props.busy ? t2("refresh.busy") : t2("refresh.action")
11254
- ), /* @__PURE__ */ React33.createElement(
11316
+ ), /* @__PURE__ */ React34.createElement(
11255
11317
  "button",
11256
11318
  {
11257
11319
  type: "button",
@@ -11266,7 +11328,7 @@ function TicketsHeader(props) {
11266
11328
  }
11267
11329
  function SourceBadge2(props) {
11268
11330
  const { t: t2 } = useI18n();
11269
- return /* @__PURE__ */ React33.createElement(
11331
+ return /* @__PURE__ */ React34.createElement(
11270
11332
  "span",
11271
11333
  {
11272
11334
  "data-testid": "snapshot-source",
@@ -11280,7 +11342,7 @@ function SourceBadge2(props) {
11280
11342
  }
11281
11343
 
11282
11344
  // src/client/tickets-more.tsx
11283
- var React34 = __toESM(require("react"), 1);
11345
+ var React35 = __toESM(require("react"), 1);
11284
11346
  var MORE_STYLE = {
11285
11347
  display: "flex",
11286
11348
  alignItems: "center",
@@ -11312,7 +11374,7 @@ function moreStateOf(snapshot) {
11312
11374
  function MoreFooter(props) {
11313
11375
  const { t: t2 } = useI18n();
11314
11376
  const { state } = props;
11315
- return /* @__PURE__ */ React34.createElement("div", { ref: props.sentinel, "data-testid": "load-more", style: MORE_STYLE }, state.loading ? t2("tickets.more.loading") : state.error === null ? t2("tickets.more.scroll") : t2("tickets.more.failed", { message: state.error.message }), state.error === null ? null : /* @__PURE__ */ React34.createElement(
11377
+ return /* @__PURE__ */ React35.createElement("div", { ref: props.sentinel, "data-testid": "load-more", style: MORE_STYLE }, state.loading ? t2("tickets.more.loading") : state.error === null ? t2("tickets.more.scroll") : t2("tickets.more.failed", { message: state.error.message }), state.error === null ? null : /* @__PURE__ */ React35.createElement(
11316
11378
  "button",
11317
11379
  {
11318
11380
  type: "button",
@@ -11324,8 +11386,8 @@ function MoreFooter(props) {
11324
11386
  ));
11325
11387
  }
11326
11388
  function useMoreSentinel(active, onVisible) {
11327
- const node = React34.useRef(null);
11328
- React34.useEffect(() => {
11389
+ const node = React35.useRef(null);
11390
+ React35.useEffect(() => {
11329
11391
  if (!active) return;
11330
11392
  const target = node.current;
11331
11393
  if (target === null || typeof IntersectionObserver === "undefined") return;
@@ -11433,7 +11495,7 @@ function ancestorRefs(byRef, ref) {
11433
11495
  }
11434
11496
 
11435
11497
  // src/client/tickets-tree-controls.tsx
11436
- var React35 = __toESM(require("react"), 1);
11498
+ var React36 = __toESM(require("react"), 1);
11437
11499
  function hierarchyHintKey(snapshot) {
11438
11500
  if (snapshot.hierarchy === "none") {
11439
11501
  if (snapshot.backend === "gitea") return "layout.giteaUnavailable";
@@ -11446,7 +11508,7 @@ function hierarchyHintKey(snapshot) {
11446
11508
  }
11447
11509
  function LayoutControl(props) {
11448
11510
  const { t: t2 } = useI18n();
11449
- return /* @__PURE__ */ React35.createElement("div", { role: "group", "aria-label": t2("layout.group"), style: ICON_SEGMENTED_STYLE }, /* @__PURE__ */ React35.createElement(
11511
+ return /* @__PURE__ */ React36.createElement("div", { role: "group", "aria-label": t2("layout.group"), style: ICON_SEGMENTED_STYLE }, /* @__PURE__ */ React36.createElement(
11450
11512
  "button",
11451
11513
  {
11452
11514
  type: "button",
@@ -11464,8 +11526,8 @@ function LayoutControl(props) {
11464
11526
  ...props.layout === "flat" ? CHIP_ACTIVE_STYLE : void 0
11465
11527
  }
11466
11528
  },
11467
- /* @__PURE__ */ React35.createElement(FlatListIcon, null)
11468
- ), /* @__PURE__ */ React35.createElement(
11529
+ /* @__PURE__ */ React36.createElement(FlatListIcon, null)
11530
+ ), /* @__PURE__ */ React36.createElement(
11469
11531
  "button",
11470
11532
  {
11471
11533
  type: "button",
@@ -11484,15 +11546,15 @@ function LayoutControl(props) {
11484
11546
  ...props.layout === "tree" ? CHIP_ACTIVE_STYLE : void 0
11485
11547
  }
11486
11548
  },
11487
- /* @__PURE__ */ React35.createElement(TreeListIcon, null)
11549
+ /* @__PURE__ */ React36.createElement(TreeListIcon, null)
11488
11550
  ));
11489
11551
  }
11490
11552
 
11491
11553
  // src/client/tickets-toolbar.tsx
11492
- var React37 = __toESM(require("react"), 1);
11554
+ var React38 = __toESM(require("react"), 1);
11493
11555
 
11494
11556
  // src/client/sort-control.tsx
11495
- var React36 = __toESM(require("react"), 1);
11557
+ var React37 = __toESM(require("react"), 1);
11496
11558
  var GROUP_STYLE2 = {
11497
11559
  ...SEGMENTED_STYLE,
11498
11560
  flexWrap: "nowrap",
@@ -11558,7 +11620,7 @@ function SortControl(props) {
11558
11620
  const next = props.direction === "asc" ? "desc" : "asc";
11559
11621
  const currentLabel = t2(DIRECTION_KEYS[props.direction]);
11560
11622
  const nextLabel = t2(DIRECTION_KEYS[next]);
11561
- return /* @__PURE__ */ React36.createElement("div", { role: "group", "aria-label": t2("sort.group"), style: GROUP_STYLE2 }, /* @__PURE__ */ React36.createElement("span", { style: SELECT_WRAP_STYLE }, /* @__PURE__ */ React36.createElement(
11623
+ return /* @__PURE__ */ React37.createElement("div", { role: "group", "aria-label": t2("sort.group"), style: GROUP_STYLE2 }, /* @__PURE__ */ React37.createElement("span", { style: SELECT_WRAP_STYLE }, /* @__PURE__ */ React37.createElement(
11562
11624
  "select",
11563
11625
  {
11564
11626
  "data-testid": "sort-key",
@@ -11570,8 +11632,8 @@ function SortControl(props) {
11570
11632
  },
11571
11633
  style: SELECT_STYLE
11572
11634
  },
11573
- TICKET_SORT_KEYS.map((key) => /* @__PURE__ */ React36.createElement("option", { key, value: key }, t2(SORT_KEYS[key])))
11574
- ), /* @__PURE__ */ React36.createElement("span", { style: CARET_STYLE }, /* @__PURE__ */ React36.createElement(CaretIcon, null))), /* @__PURE__ */ React36.createElement(
11635
+ TICKET_SORT_KEYS.map((key) => /* @__PURE__ */ React37.createElement("option", { key, value: key }, t2(SORT_KEYS[key])))
11636
+ ), /* @__PURE__ */ React37.createElement("span", { style: CARET_STYLE }, /* @__PURE__ */ React37.createElement(CaretIcon, null))), /* @__PURE__ */ React37.createElement(
11575
11637
  "button",
11576
11638
  {
11577
11639
  type: "button",
@@ -11587,7 +11649,7 @@ function SortControl(props) {
11587
11649
  ));
11588
11650
  }
11589
11651
  function CaretIcon() {
11590
- return /* @__PURE__ */ React36.createElement("svg", { width: "8", height: "8", viewBox: "0 0 8 8", "aria-hidden": "true" }, /* @__PURE__ */ React36.createElement("path", { d: "M0.5 2h7L4 6.5z", fill: "currentColor" }));
11652
+ return /* @__PURE__ */ React37.createElement("svg", { width: "8", height: "8", viewBox: "0 0 8 8", "aria-hidden": "true" }, /* @__PURE__ */ React37.createElement("path", { d: "M0.5 2h7L4 6.5z", fill: "currentColor" }));
11591
11653
  }
11592
11654
 
11593
11655
  // src/client/tickets-toolbar.tsx
@@ -11605,7 +11667,7 @@ var CHIP_STATS = {
11605
11667
  };
11606
11668
  function Toolbar(props) {
11607
11669
  const { t: t2 } = useI18n();
11608
- return /* @__PURE__ */ React37.createElement("div", { style: TOOLBAR_STYLE }, /* @__PURE__ */ React37.createElement("div", { role: "group", "aria-label": t2("filter.group"), style: SEGMENTED_STYLE }, TICKET_FILTERS.map((value) => /* @__PURE__ */ React37.createElement(
11670
+ return /* @__PURE__ */ React38.createElement("div", { style: TOOLBAR_STYLE }, /* @__PURE__ */ React38.createElement("div", { role: "group", "aria-label": t2("filter.group"), style: SEGMENTED_STYLE }, TICKET_FILTERS.map((value) => /* @__PURE__ */ React38.createElement(
11609
11671
  Chip,
11610
11672
  {
11611
11673
  key: value,
@@ -11618,7 +11680,7 @@ function Toolbar(props) {
11618
11680
  props.onFilter(value);
11619
11681
  }
11620
11682
  }
11621
- ))), /* @__PURE__ */ React37.createElement(
11683
+ ))), /* @__PURE__ */ React38.createElement(
11622
11684
  SortControl,
11623
11685
  {
11624
11686
  sortKey: props.sortKey,
@@ -11632,7 +11694,7 @@ function Toolbar(props) {
11632
11694
  }
11633
11695
  function Chip(props) {
11634
11696
  const stat = props.stat;
11635
- return /* @__PURE__ */ React37.createElement(
11697
+ return /* @__PURE__ */ React38.createElement(
11636
11698
  "button",
11637
11699
  {
11638
11700
  type: "button",
@@ -11642,19 +11704,19 @@ function Chip(props) {
11642
11704
  onClick: props.onClick,
11643
11705
  style: { ...CHIP_STYLE, ...props.active ? CHIP_ACTIVE_STYLE : void 0 }
11644
11706
  },
11645
- stat === void 0 ? null : /* @__PURE__ */ React37.createElement("span", { "aria-hidden": "true", style: { ...CHIP_DOT_STYLE, background: stat.color } }),
11707
+ stat === void 0 ? null : /* @__PURE__ */ React38.createElement("span", { "aria-hidden": "true", style: { ...CHIP_DOT_STYLE, background: stat.color } }),
11646
11708
  props.label,
11647
- stat === void 0 ? null : /* @__PURE__ */ React37.createElement("span", { "data-testid": `stat-${stat.key}`, style: CHIP_COUNT_STYLE }, props.count[stat.key])
11709
+ stat === void 0 ? null : /* @__PURE__ */ React38.createElement("span", { "data-testid": `stat-${stat.key}`, style: CHIP_COUNT_STYLE }, props.count[stat.key])
11648
11710
  );
11649
11711
  }
11650
11712
 
11651
11713
  // src/client/use-collapsed-tickets.ts
11652
- var React38 = __toESM(require("react"), 1);
11714
+ var React39 = __toESM(require("react"), 1);
11653
11715
  function useCollapsedTickets(workspaceRoot, focused, visible) {
11654
11716
  const session = useTicketTreeSession();
11655
- const [localCollapsed, setLocalCollapsed] = React38.useState(() => /* @__PURE__ */ new Set());
11656
- const previousRoot = React38.useRef(workspaceRoot);
11657
- const expandedFor = React38.useRef(null);
11717
+ const [localCollapsed, setLocalCollapsed] = React39.useState(() => /* @__PURE__ */ new Set());
11718
+ const previousRoot = React39.useRef(workspaceRoot);
11719
+ const expandedFor = React39.useRef(null);
11658
11720
  if (previousRoot.current !== workspaceRoot) {
11659
11721
  previousRoot.current = workspaceRoot;
11660
11722
  expandedFor.current = null;
@@ -11662,7 +11724,7 @@ function useCollapsedTickets(workspaceRoot, focused, visible) {
11662
11724
  }
11663
11725
  const collapsed = session?.collapsed ?? localCollapsed;
11664
11726
  const setCollapsed = session?.setCollapsed ?? setLocalCollapsed;
11665
- React38.useEffect(() => {
11727
+ React39.useEffect(() => {
11666
11728
  if (focused === null || visible.length === 0 || expandedFor.current === focused) return;
11667
11729
  expandedFor.current = focused;
11668
11730
  setCollapsed((current) => expandAncestors(visible, current, focused));
@@ -11779,7 +11841,7 @@ function timestamp(value) {
11779
11841
  }
11780
11842
 
11781
11843
  // src/client/use-view-preference.ts
11782
- var React39 = __toESM(require("react"), 1);
11844
+ var React40 = __toESM(require("react"), 1);
11783
11845
 
11784
11846
  // src/client/view-preference.ts
11785
11847
  var DEFAULT_VIEW = {
@@ -11902,8 +11964,8 @@ function isLayout(value) {
11902
11964
 
11903
11965
  // src/client/use-view-preference.ts
11904
11966
  function useViewPreference(workspaceRoot) {
11905
- const storage = React39.useMemo(resolvePreferenceStorage, []);
11906
- const [viewState, setViewState] = React39.useState(() => ({
11967
+ const storage = React40.useMemo(resolvePreferenceStorage, []);
11968
+ const [viewState, setViewState] = React40.useState(() => ({
11907
11969
  workspaceRoot,
11908
11970
  preference: readViewPreference(storage, workspaceRoot)
11909
11971
  }));
@@ -12027,13 +12089,13 @@ function useTicketsViewState(props) {
12027
12089
  function TicketsView(props) {
12028
12090
  const { t: t2 } = useI18n();
12029
12091
  const state = useTicketsViewState(props);
12030
- return /* @__PURE__ */ React40.createElement(
12092
+ return /* @__PURE__ */ React41.createElement(
12031
12093
  "div",
12032
12094
  {
12033
12095
  "data-testid": "tickets-view",
12034
12096
  style: { display: "flex", flexDirection: "column", flex: 1, minHeight: 0 }
12035
12097
  },
12036
- /* @__PURE__ */ React40.createElement(
12098
+ /* @__PURE__ */ React41.createElement(
12037
12099
  TicketsHeader,
12038
12100
  {
12039
12101
  snapshot: state.snapshot,
@@ -12045,9 +12107,9 @@ function TicketsView(props) {
12045
12107
  onRefreshFull: state.refreshFull
12046
12108
  }
12047
12109
  ),
12048
- props.actions === void 0 ? /* @__PURE__ */ React40.createElement("div", { style: ACTION_BAR_STYLE }, /* @__PURE__ */ React40.createElement(ActionBar, { injection: props.injection, onInject: state.inject })) : null,
12049
- state.error !== null ? /* @__PURE__ */ React40.createElement(ErrorBanner, { error: state.error, onOpenEnvCheck: props.onOpenEnvCheck }) : null,
12050
- state.snapshot !== null ? /* @__PURE__ */ React40.createElement(
12110
+ props.actions === void 0 ? /* @__PURE__ */ React41.createElement("div", { style: ACTION_BAR_STYLE }, /* @__PURE__ */ React41.createElement(ActionBar, { injection: props.injection, onInject: state.inject })) : null,
12111
+ state.error !== null ? /* @__PURE__ */ React41.createElement(ErrorBanner, { error: state.error, onOpenEnvCheck: props.onOpenEnvCheck }) : null,
12112
+ state.snapshot !== null ? /* @__PURE__ */ React41.createElement(
12051
12113
  SnapshotContent,
12052
12114
  {
12053
12115
  snapshot: state.snapshot,
@@ -12084,13 +12146,13 @@ function TicketsView(props) {
12084
12146
  onPick: props.onOpenTicket,
12085
12147
  onSkillAction: state.onSkillAction
12086
12148
  }
12087
- ) : state.phase === "loading" ? /* @__PURE__ */ React40.createElement("div", { "data-testid": "loading", style: EMPTY_STYLE }, t2("snapshot.loading")) : null,
12088
- /* @__PURE__ */ React40.createElement(Footer, { injection: props.injection, notice: state.notice, tone: state.noticeTone })
12149
+ ) : state.phase === "loading" ? /* @__PURE__ */ React41.createElement("div", { "data-testid": "loading", style: EMPTY_STYLE }, t2("snapshot.loading")) : null,
12150
+ /* @__PURE__ */ React41.createElement(Footer, { injection: props.injection, notice: state.notice, tone: state.noticeTone })
12089
12151
  );
12090
12152
  }
12091
12153
  function SnapshotContent(props) {
12092
12154
  const { t: t2 } = useI18n();
12093
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement(
12155
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement(
12094
12156
  Toolbar,
12095
12157
  {
12096
12158
  filter: props.filter,
@@ -12100,7 +12162,7 @@ function SnapshotContent(props) {
12100
12162
  onFilter: props.onFilter,
12101
12163
  onSort: props.onSort
12102
12164
  }
12103
- ), props.snapshot.viewer === null ? null : /* @__PURE__ */ React40.createElement(
12165
+ ), props.snapshot.viewer === null ? null : /* @__PURE__ */ React41.createElement(
12104
12166
  MyTicketsBar,
12105
12167
  {
12106
12168
  viewer: props.snapshot.viewer,
@@ -12111,10 +12173,10 @@ function SnapshotContent(props) {
12111
12173
  onToggleCreated: props.onToggleCreated,
12112
12174
  onClear: props.onClearMyTickets
12113
12175
  }
12114
- ), /* @__PURE__ */ React40.createElement(
12176
+ ), /* @__PURE__ */ React41.createElement(
12115
12177
  TicketRows,
12116
12178
  {
12117
- layoutControl: /* @__PURE__ */ React40.createElement(
12179
+ layoutControl: /* @__PURE__ */ React41.createElement(
12118
12180
  LayoutControl,
12119
12181
  {
12120
12182
  layout: props.preferenceLayout,
@@ -12123,7 +12185,7 @@ function SnapshotContent(props) {
12123
12185
  onLayout: props.onLayout
12124
12186
  }
12125
12187
  ),
12126
- notes: /* @__PURE__ */ React40.createElement(TreeNotes, { ...props }),
12188
+ notes: /* @__PURE__ */ React41.createElement(TreeNotes, { ...props }),
12127
12189
  snapshot: props.snapshot,
12128
12190
  visible: props.visible,
12129
12191
  rows: props.rows,
@@ -12141,17 +12203,17 @@ function SnapshotContent(props) {
12141
12203
  }
12142
12204
  function TreeNotes(props) {
12143
12205
  const { t: t2 } = useI18n();
12144
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, props.layout === "tree" && props.snapshot.total > props.snapshot.loaded ? /* @__PURE__ */ React40.createElement("div", { "data-testid": "tree-coverage", style: TREE_NOTE_STYLE }, t2("tree.coverage", { loaded: props.snapshot.loaded })) : null, props.preferenceLayout === "tree" && !props.hierarchyAvailable ? /* @__PURE__ */ React40.createElement("div", { "data-testid": "tree-degraded", style: TREE_DEGRADED_STYLE }, t2("tree.degraded")) : null, props.preferenceLayout !== "tree" && !props.hierarchyAvailable ? /* @__PURE__ */ React40.createElement("div", { "data-testid": "tree-unavailable", style: TREE_NOTE_STYLE }, t2(hierarchyHintKey(props.snapshot))) : null);
12206
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null, props.layout === "tree" && props.snapshot.total > props.snapshot.loaded ? /* @__PURE__ */ React41.createElement("div", { "data-testid": "tree-coverage", style: TREE_NOTE_STYLE }, t2("tree.coverage", { loaded: props.snapshot.loaded })) : null, props.preferenceLayout === "tree" && !props.hierarchyAvailable ? /* @__PURE__ */ React41.createElement("div", { "data-testid": "tree-degraded", style: TREE_DEGRADED_STYLE }, t2("tree.degraded")) : null, props.preferenceLayout !== "tree" && !props.hierarchyAvailable ? /* @__PURE__ */ React41.createElement("div", { "data-testid": "tree-unavailable", style: TREE_NOTE_STYLE }, t2(hierarchyHintKey(props.snapshot))) : null);
12145
12207
  }
12146
12208
  function useFocusedTicket(focusRef, onFocusHandled, workspaceRoot) {
12147
- const [focused, setFocused] = React40.useState(null);
12148
- React40.useEffect(() => {
12209
+ const [focused, setFocused] = React41.useState(null);
12210
+ React41.useEffect(() => {
12149
12211
  if (focusRef === null || focusRef === void 0) return;
12150
12212
  setFocused(focusRef);
12151
12213
  onFocusHandled?.();
12152
12214
  }, [focusRef, onFocusHandled]);
12153
- const previousRoot = React40.useRef(workspaceRoot);
12154
- React40.useEffect(() => {
12215
+ const previousRoot = React41.useRef(workspaceRoot);
12216
+ React41.useEffect(() => {
12155
12217
  if (previousRoot.current === workspaceRoot) return;
12156
12218
  previousRoot.current = workspaceRoot;
12157
12219
  setFocused(null);
@@ -12165,7 +12227,7 @@ function TicketRows(props) {
12165
12227
  more.available && more.error === null && !more.loading,
12166
12228
  more.onLoadMore
12167
12229
  );
12168
- return /* @__PURE__ */ React40.createElement(React40.Fragment, null, /* @__PURE__ */ React40.createElement("div", { style: LIST_HEADER_STYLE }, /* @__PURE__ */ React40.createElement("span", { "data-testid": "loaded-total", style: LOADED_STYLE }, t2("tickets.loaded", { loaded: props.snapshot.loaded, total: props.snapshot.total }), more.capped ? t2("tickets.loadedCapped") : ""), props.layoutControl), props.notes, /* @__PURE__ */ React40.createElement(
12230
+ return /* @__PURE__ */ React41.createElement(React41.Fragment, null, /* @__PURE__ */ React41.createElement("div", { style: LIST_HEADER_STYLE }, /* @__PURE__ */ React41.createElement("span", { "data-testid": "loaded-total", style: LOADED_STYLE }, t2("tickets.loaded", { loaded: props.snapshot.loaded, total: props.snapshot.total }), more.capped ? t2("tickets.loadedCapped") : ""), props.layoutControl), props.notes, /* @__PURE__ */ React41.createElement(
12169
12231
  TicketList,
12170
12232
  {
12171
12233
  tickets: props.visible,
@@ -12178,7 +12240,7 @@ function TicketRows(props) {
12178
12240
  now: props.now,
12179
12241
  onPick: props.onPick,
12180
12242
  onSkillAction: props.onSkillAction,
12181
- footer: more.available ? /* @__PURE__ */ React40.createElement(MoreFooter, { state: more, sentinel }) : null
12243
+ footer: more.available ? /* @__PURE__ */ React41.createElement(MoreFooter, { state: more, sentinel }) : null
12182
12244
  }
12183
12245
  ));
12184
12246
  }
@@ -12186,11 +12248,11 @@ function TicketRows(props) {
12186
12248
  // src/client/task-panel.tsx
12187
12249
  var NO_CAPABILITIES = () => [];
12188
12250
  function TaskPanel(props) {
12189
- const [view, setView] = React41.useState("tickets");
12190
- const [focusBackend, setFocusBackend] = React41.useState(null);
12191
- const [openTicket, setOpenTicket] = React41.useState(null);
12192
- const [focusTicket, setFocusTicket] = React41.useState(null);
12193
- const previousView = React41.useRef("tickets");
12251
+ const [view, setView] = React42.useState("tickets");
12252
+ const [focusBackend, setFocusBackend] = React42.useState(null);
12253
+ const [openTicket, setOpenTicket] = React42.useState(null);
12254
+ const [focusTicket, setFocusTicket] = React42.useState(null);
12255
+ const previousView = React42.useRef("tickets");
12194
12256
  const actions = useTicketActions(props.workspaceRoot, props.injection);
12195
12257
  const clientCapabilities = props.clientCapabilities ?? NO_CAPABILITIES;
12196
12258
  const request = useSnapshotRequest(props.client, props.workspaceRoot, {
@@ -12201,7 +12263,7 @@ function TaskPanel(props) {
12201
12263
  if (view !== "help") previousView.current = view;
12202
12264
  setView("help");
12203
12265
  };
12204
- return /* @__PURE__ */ React41.createElement("div", { "data-testid": "task-panel", "data-anvil-panel": "", style: PANEL_STYLE }, /* @__PURE__ */ React41.createElement("style", null, PANEL_SHEET), /* @__PURE__ */ React41.createElement(
12266
+ return /* @__PURE__ */ React42.createElement("div", { "data-testid": "task-panel", "data-anvil-panel": "", style: PANEL_STYLE }, /* @__PURE__ */ React42.createElement("style", null, PANEL_SHEET), /* @__PURE__ */ React42.createElement(
12205
12267
  ViewTabs,
12206
12268
  {
12207
12269
  view,
@@ -12218,9 +12280,9 @@ function TaskPanel(props) {
12218
12280
  setView("env");
12219
12281
  },
12220
12282
  onOpenHelp: openHelp,
12221
- actions: view === "tickets" && open === null ? /* @__PURE__ */ React41.createElement(ActionBar, { injection: props.injection, onInject: actions.inject }) : null
12283
+ actions: view === "tickets" && open === null ? /* @__PURE__ */ React42.createElement(ActionBar, { injection: props.injection, onInject: actions.inject }) : null
12222
12284
  }
12223
- ), /* @__PURE__ */ React41.createElement(TicketTreeSessionProvider, { workspaceRoot: props.workspaceRoot }, /* @__PURE__ */ React41.createElement(
12285
+ ), /* @__PURE__ */ React42.createElement(TicketTreeSessionProvider, { workspaceRoot: props.workspaceRoot }, /* @__PURE__ */ React42.createElement(
12224
12286
  PanelContent,
12225
12287
  {
12226
12288
  panel: props,
@@ -12259,7 +12321,7 @@ function TaskPanel(props) {
12259
12321
  function PanelContent(props) {
12260
12322
  const panel = props.panel;
12261
12323
  if (props.view === "tickets") {
12262
- return /* @__PURE__ */ React41.createElement(
12324
+ return /* @__PURE__ */ React42.createElement(
12263
12325
  TicketsPane,
12264
12326
  {
12265
12327
  client: panel.client,
@@ -12278,7 +12340,7 @@ function PanelContent(props) {
12278
12340
  );
12279
12341
  }
12280
12342
  if (props.view === "overview") {
12281
- return /* @__PURE__ */ React41.createElement(
12343
+ return /* @__PURE__ */ React42.createElement(
12282
12344
  OverviewPane,
12283
12345
  {
12284
12346
  request: props.request,
@@ -12290,7 +12352,7 @@ function PanelContent(props) {
12290
12352
  );
12291
12353
  }
12292
12354
  if (props.view === "env") {
12293
- return /* @__PURE__ */ React41.createElement(
12355
+ return /* @__PURE__ */ React42.createElement(
12294
12356
  EnvCheckView,
12295
12357
  {
12296
12358
  client: panel.client,
@@ -12301,10 +12363,10 @@ function PanelContent(props) {
12301
12363
  }
12302
12364
  );
12303
12365
  }
12304
- return /* @__PURE__ */ React41.createElement(HelpView, { onBack: props.onBack });
12366
+ return /* @__PURE__ */ React42.createElement(HelpView, { onBack: props.onBack });
12305
12367
  }
12306
12368
  function OverviewPane(props) {
12307
- return /* @__PURE__ */ React41.createElement(
12369
+ return /* @__PURE__ */ React42.createElement(
12308
12370
  OverviewView,
12309
12371
  {
12310
12372
  request: props.request,
@@ -12317,7 +12379,7 @@ function OverviewPane(props) {
12317
12379
  }
12318
12380
  function TicketsPane(props) {
12319
12381
  if (props.workspaceRoot !== void 0 && props.open !== null) {
12320
- return /* @__PURE__ */ React41.createElement(
12382
+ return /* @__PURE__ */ React42.createElement(
12321
12383
  TicketDetailView,
12322
12384
  {
12323
12385
  client: props.client,
@@ -12328,7 +12390,7 @@ function TicketsPane(props) {
12328
12390
  }
12329
12391
  );
12330
12392
  }
12331
- return /* @__PURE__ */ React41.createElement(
12393
+ return /* @__PURE__ */ React42.createElement(
12332
12394
  TicketsView,
12333
12395
  {
12334
12396
  request: props.request,
@@ -12345,7 +12407,7 @@ function TicketsPane(props) {
12345
12407
  }
12346
12408
  function ViewTabs(props) {
12347
12409
  const { t: t2 } = useI18n();
12348
- return /* @__PURE__ */ React41.createElement("div", { style: VIEW_BAR_STYLE }, /* @__PURE__ */ React41.createElement("div", { role: "group", "aria-label": t2("view.group"), style: VIEW_TABS_STYLE }, /* @__PURE__ */ React41.createElement(
12410
+ return /* @__PURE__ */ React42.createElement("div", { style: VIEW_BAR_STYLE }, /* @__PURE__ */ React42.createElement("div", { role: "group", "aria-label": t2("view.group"), style: VIEW_TABS_STYLE }, /* @__PURE__ */ React42.createElement(
12349
12411
  ViewChip,
12350
12412
  {
12351
12413
  testId: "view-tickets",
@@ -12353,7 +12415,7 @@ function ViewTabs(props) {
12353
12415
  active: props.view === "tickets",
12354
12416
  onClick: props.onOpenTickets
12355
12417
  }
12356
- ), /* @__PURE__ */ React41.createElement(
12418
+ ), /* @__PURE__ */ React42.createElement(
12357
12419
  ViewChip,
12358
12420
  {
12359
12421
  testId: "view-overview",
@@ -12361,7 +12423,7 @@ function ViewTabs(props) {
12361
12423
  active: props.view === "overview",
12362
12424
  onClick: props.onOpenOverview
12363
12425
  }
12364
- ), /* @__PURE__ */ React41.createElement(
12426
+ ), /* @__PURE__ */ React42.createElement(
12365
12427
  ViewChip,
12366
12428
  {
12367
12429
  testId: "view-env",
@@ -12369,10 +12431,10 @@ function ViewTabs(props) {
12369
12431
  active: props.view === "env",
12370
12432
  onClick: props.onOpenEnvCheck
12371
12433
  }
12372
- )), /* @__PURE__ */ React41.createElement("div", { style: VIEW_BAR_END_STYLE }, props.actions, /* @__PURE__ */ React41.createElement(TipsButton, { onClick: props.onOpenHelp })));
12434
+ )), /* @__PURE__ */ React42.createElement("div", { style: VIEW_BAR_END_STYLE }, props.actions, /* @__PURE__ */ React42.createElement(TipsButton, { onClick: props.onOpenHelp })));
12373
12435
  }
12374
12436
  function ViewChip(props) {
12375
- return /* @__PURE__ */ React41.createElement(
12437
+ return /* @__PURE__ */ React42.createElement(
12376
12438
  "button",
12377
12439
  {
12378
12440
  type: "button",
@@ -12387,7 +12449,7 @@ function ViewChip(props) {
12387
12449
  }
12388
12450
  function TipsButton(props) {
12389
12451
  const { t: t2 } = useI18n();
12390
- return /* @__PURE__ */ React41.createElement(
12452
+ return /* @__PURE__ */ React42.createElement(
12391
12453
  "button",
12392
12454
  {
12393
12455
  type: "button",
@@ -12397,11 +12459,11 @@ function TipsButton(props) {
12397
12459
  onClick: props.onClick,
12398
12460
  style: ICON_BUTTON_STYLE
12399
12461
  },
12400
- /* @__PURE__ */ React41.createElement(TipsIcon, null)
12462
+ /* @__PURE__ */ React42.createElement(TipsIcon, null)
12401
12463
  );
12402
12464
  }
12403
12465
  function TipsIcon() {
12404
- return /* @__PURE__ */ React41.createElement(
12466
+ return /* @__PURE__ */ React42.createElement(
12405
12467
  "svg",
12406
12468
  {
12407
12469
  width: 14,
@@ -12414,9 +12476,9 @@ function TipsIcon() {
12414
12476
  strokeLinecap: "round",
12415
12477
  strokeLinejoin: "round"
12416
12478
  },
12417
- /* @__PURE__ */ React41.createElement("path", { d: "M8 1.8a4.1 4.1 0 0 0-2.5 7.4c.3.2.5.5.5.9v.4h4v-.4c0-.4.2-.7.5-.9A4.1 4.1 0 0 0 8 1.8Z" }),
12418
- /* @__PURE__ */ React41.createElement("path", { d: "M6.4 12.6h3.2" }),
12419
- /* @__PURE__ */ React41.createElement("path", { d: "M7.2 14.4h1.6" })
12479
+ /* @__PURE__ */ React42.createElement("path", { d: "M8 1.8a4.1 4.1 0 0 0-2.5 7.4c.3.2.5.5.5.9v.4h4v-.4c0-.4.2-.7.5-.9A4.1 4.1 0 0 0 8 1.8Z" }),
12480
+ /* @__PURE__ */ React42.createElement("path", { d: "M6.4 12.6h3.2" }),
12481
+ /* @__PURE__ */ React42.createElement("path", { d: "M7.2 14.4h1.6" })
12420
12482
  );
12421
12483
  }
12422
12484
 
@@ -12538,7 +12600,7 @@ function registerInjection(scope, injectionRef, capabilities) {
12538
12600
  });
12539
12601
  }
12540
12602
  function TaskTabTitle() {
12541
- return /* @__PURE__ */ React42.createElement("span", null, "MattWorkflow");
12603
+ return /* @__PURE__ */ React43.createElement("span", null, "MattWorkflow");
12542
12604
  }
12543
12605
  function createTaskTab(client, injectionRef, capabilities, i18n) {
12544
12606
  return function TaskTab(props) {
@@ -12549,7 +12611,7 @@ function createTaskTab(client, injectionRef, capabilities, i18n) {
12549
12611
  );
12550
12612
  const readiness = useInjectionReadiness(injectionRef);
12551
12613
  const refreshSignal = useAgentActivitySignal(useSessions, sessionId);
12552
- const injection = React42.useMemo(
12614
+ const injection = React43.useMemo(
12553
12615
  () => ({
12554
12616
  canInjectCurrent: sessionId !== void 0 && readiness.current,
12555
12617
  canStartNewSession: readiness.newSession,
@@ -12557,7 +12619,7 @@ function createTaskTab(client, injectionRef, capabilities, i18n) {
12557
12619
  }),
12558
12620
  [injectionRef, sessionId, readiness.current, readiness.newSession]
12559
12621
  );
12560
- return /* @__PURE__ */ React42.createElement(I18nProvider, { i18n }, /* @__PURE__ */ React42.createElement(
12622
+ return /* @__PURE__ */ React43.createElement(I18nProvider, { i18n }, /* @__PURE__ */ React43.createElement(
12561
12623
  TaskPanel,
12562
12624
  {
12563
12625
  client,
@@ -12581,8 +12643,8 @@ function notify(ref) {
12581
12643
  for (const listener of ref.listeners) listener();
12582
12644
  }
12583
12645
  function useInjectionReadiness(ref) {
12584
- const [readiness, setReadiness] = React42.useState(() => readReadiness(ref));
12585
- React42.useEffect(() => {
12646
+ const [readiness, setReadiness] = React43.useState(() => readReadiness(ref));
12647
+ React43.useEffect(() => {
12586
12648
  const update = () => {
12587
12649
  setReadiness(readReadiness(ref));
12588
12650
  };