agent-things 1.2.2 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/mods/agent-things-ui/.claude-plugin/plugin.json +1 -1
  2. package/mods/agent-things-ui/hooks/controls.js +1 -1
  3. package/mods/agent-things-ui/hooks/foundation.js +120 -2
  4. package/mods/agent-things-ui/hooks/presentation.js +9 -6
  5. package/mods/agent-things-ui/hooks/register.js +3 -3
  6. package/outputs/antigravity-session-status.js +276 -99
  7. package/outputs/codex-session-status.js +236 -27
  8. package/package.json +1 -1
  9. package/scripts/build-shared-ui.cjs +13 -1
  10. package/skills/things/SKILL.en.md +3 -1
  11. package/skills/things/SKILL.md +3 -1
  12. package/src/analysis-assets/output.en.schema.json +6 -3
  13. package/src/analysis-assets/output.schema.json +6 -3
  14. package/src/analysis-assets/prompt.en.txt +1 -1
  15. package/src/analysis-assets/prompt.zh-CN.txt +1 -1
  16. package/src/analysis-history.cjs +27 -6
  17. package/src/analysis-service.cjs +1 -1
  18. package/src/antigravity-card.cjs +516 -88
  19. package/src/antigravity-hook.cjs +12 -7
  20. package/src/antigravity-mcp-config.cjs +45 -15
  21. package/src/cli/setup-orchestrator.cjs +6 -4
  22. package/src/harnesses/antigravity/antigravity-harness.js +159 -73
  23. package/src/harnesses/claude/claude-harness.js +583 -2
  24. package/src/harnesses/claude/claude-host-helper.cjs +5 -2
  25. package/src/harnesses/claude/claude-service.cjs +57 -1
  26. package/src/harnesses/claude/claude-source.cjs +18 -5
  27. package/src/harnesses/codex/codex-card-bridge.js +19 -1
  28. package/src/harnesses/codex/codex-card.cjs +1 -1
  29. package/src/plugins/things/sidecars/things_board/index.html +275 -126
  30. package/src/plugins/things/sidecars/things_board/main.mjs +38 -5
  31. package/src/plugins/things/sidecars/things_board/styles.css +22 -6
  32. package/src/plugins/things/sidecars/things_board/ui-i18n.mjs +119 -1
  33. package/src/session-status.js +117 -26
  34. package/src/ui-foundation.cjs +119 -1
@@ -107,7 +107,98 @@ function createPresentation(lang) {
107
107
  const currentLang = normalizeLang(lang ?? (typeof globalThis !== 'undefined' ? globalThis.__agentThingsLang : undefined));
108
108
  const colors = { unstarted: '#9098a2', unfinished: '#c89b38', completed: '#548eea', pushed: '#a17be3' };
109
109
  const layout = { contentWidth: 300, panelWidth: 340, progressNodes: [0, 25, 50, 75, 100] };
110
- const accent = { normal: '#0169CC', hover: '#005bb3', pressed: '#004f9c' };
110
+ const accent = { normal: '#0169CC', hover: '#005bb3', pressed: '#004f9c', onAccent: '#FFFFFF' };
111
+ const claudeCodeThemes = {
112
+ 'claude-light': '#C6613F',
113
+ 'claude-dark': '#D97757',
114
+ 'github-light': '#0969DA',
115
+ 'github-light-high-contrast': '#0550AE',
116
+ 'github-dark': '#1F6FEB',
117
+ 'github-dark-dimmed': '#316DCA',
118
+ 'github-dark-high-contrast': '#409EFF',
119
+ 'pierre-light': '#0073E6',
120
+ 'pierre-dark': '#0087EE',
121
+ 'vscode-light': '#007ACC',
122
+ 'vscode-dark': '#007ACC',
123
+ 'one-light': '#4078F2',
124
+ 'one-dark-pro': '#61AFEF',
125
+ 'catppuccin-latte': '#8839EF',
126
+ 'catppuccin-mocha': '#CBA6F7',
127
+ 'solarized-light': '#268BD2',
128
+ 'solarized-dark': '#268BD2',
129
+ 'vitesse-light': '#4D9375',
130
+ 'vitesse-dark': '#4D9375',
131
+ 'min-light': '#256ABF',
132
+ 'min-dark': '#5598E7',
133
+ 'rose-pine-dawn': '#D7827E',
134
+ 'rose-pine': '#EA9A97',
135
+ 'slack-ochin': '#1264A3',
136
+ 'slack-dark': '#36C5F0',
137
+ 'dracula': '#BD93F9',
138
+ 'dracula-soft': '#BD93F9',
139
+ 'nord': '#88C0D0',
140
+ 'monokai': '#F92672',
141
+ 'tokyo-night': '#7AA2F7',
142
+ 'night-owl': '#82AAFF',
143
+ 'ayu-dark': '#E6B450',
144
+ };
145
+
146
+ function normalizeHexColor(value, fallback = null) {
147
+ if (typeof value !== 'string') return fallback;
148
+ const raw = value.trim();
149
+ if (/^#[0-9a-fA-F]{6}$/.test(raw)) return raw.toUpperCase();
150
+ if (/^#[0-9a-fA-F]{3}$/.test(raw)) {
151
+ return `#${raw[1]}${raw[1]}${raw[2]}${raw[2]}${raw[3]}${raw[3]}`.toUpperCase();
152
+ }
153
+ const rgbMatch = raw.match(/^rgba?\(\s*(\d{1,3})\s*[,\s]\s*(\d{1,3})\s*[,\s]\s*(\d{1,3})/i);
154
+ if (rgbMatch) {
155
+ const toHex = n => Math.max(0, Math.min(255, Number(n))).toString(16).padStart(2, '0');
156
+ return `#${toHex(rgbMatch[1])}${toHex(rgbMatch[2])}${toHex(rgbMatch[3])}`.toUpperCase();
157
+ }
158
+ return fallback;
159
+ }
160
+
161
+ function hexToRgb(hex) {
162
+ const clean = normalizeHexColor(hex, '#0169CC').slice(1);
163
+ return [
164
+ parseInt(clean.slice(0, 2), 16),
165
+ parseInt(clean.slice(2, 4), 16),
166
+ parseInt(clean.slice(4, 6), 16),
167
+ ];
168
+ }
169
+
170
+ function getRelativeLuminance(hex) {
171
+ const [r, g, b] = hexToRgb(hex).map(channel => {
172
+ const srgb = channel / 255;
173
+ return srgb <= 0.03928 ? srgb / 12.92 : ((srgb + 0.055) / 1.055) ** 2.4;
174
+ });
175
+ return 0.2126 * r + 0.7152 * g + 0.0722 * b;
176
+ }
177
+
178
+ function mixHexColors(hexA, hexB, weightA) {
179
+ const [r1, g1, b1] = hexToRgb(hexA);
180
+ const [r2, g2, b2] = hexToRgb(hexB);
181
+ const wA = Math.max(0, Math.min(1, weightA));
182
+ const wB = 1 - wA;
183
+ const toHex = n => Math.max(0, Math.min(255, Math.round(n))).toString(16).padStart(2, '0');
184
+ return `#${toHex(r1 * wA + r2 * wB)}${toHex(g1 * wA + g2 * wB)}${toHex(b1 * wA + b2 * wB)}`.toUpperCase();
185
+ }
186
+
187
+ function resolveAccentPalette(rawColor, { isDark = true, fallback = '#0169CC' } = {}) {
188
+ const normal = normalizeHexColor(rawColor, normalizeHexColor(fallback, '#0169CC'));
189
+ const lum = getRelativeLuminance(normal);
190
+ const onAccent = lum > 0.45 ? '#0D0D0D' : '#FFFFFF';
191
+ // Darken bright accents or shade toward dark/light ink subtly without losing hue identity.
192
+ const mixTarget = lum > 0.45 ? '#000000' : (isDark ? '#FFFFFF' : '#000000');
193
+ const hoverWeight = lum > 0.45 ? 0.88 : (isDark ? 0.88 : 0.88);
194
+ const pressedWeight = lum > 0.45 ? 0.78 : (isDark ? 0.78 : 0.78);
195
+ return {
196
+ normal,
197
+ hover: mixHexColors(normal, mixTarget, hoverWeight),
198
+ pressed: mixHexColors(normal, mixTarget, pressedWeight),
199
+ onAccent,
200
+ };
201
+ }
111
202
 
112
203
  const locales = {
113
204
  zh: {
@@ -286,6 +377,18 @@ function createPresentation(lang) {
286
377
  hookPresentedMessage: '已呈现当前会话任务进度卡片',
287
378
  noSessionBadge: '无会话',
288
379
  offlineBadge: '离线',
380
+ badgeNotOrganized: '未整理',
381
+ badgeProgressUnrecordedSuffix: ' · 进度未记录',
382
+ ringAriaPattern: '{title}:{summary},点击记录任务进展',
383
+ ringUpdating: '正在更新进度',
384
+ sessionFallbackTitle: '会话',
385
+ statusUnrecorded: '尚未记录进展',
386
+ panelAriaPattern: '{title} 任务进展',
387
+ totalsEmpty: '暂无任务统计',
388
+ taskUnknown: '状态未知',
389
+ timelineAnalysis: '自动分析',
390
+ timelineManual: '手动记录',
391
+ unrecordedShort: '未记录',
289
392
  },
290
393
  en: {
291
394
  appTitle: 'Agent Things',
@@ -463,6 +566,18 @@ function createPresentation(lang) {
463
566
  hookPresentedMessage: 'Session task progress card presented',
464
567
  noSessionBadge: 'No session',
465
568
  offlineBadge: 'Offline',
569
+ badgeNotOrganized: 'Not organized',
570
+ badgeProgressUnrecordedSuffix: ' · Progress unrecorded',
571
+ ringAriaPattern: '{title}: {summary}. Click to track progress',
572
+ ringUpdating: 'Updating progress',
573
+ sessionFallbackTitle: 'Session',
574
+ statusUnrecorded: 'No progress recorded',
575
+ panelAriaPattern: '{title} Task Progress',
576
+ totalsEmpty: 'No task metrics yet',
577
+ taskUnknown: 'Unknown status',
578
+ timelineAnalysis: 'Auto analysis',
579
+ timelineManual: 'Manual record',
580
+ unrecordedShort: 'Unrecorded',
466
581
  },
467
582
  };
468
583
 
@@ -521,6 +636,9 @@ function createPresentation(lang) {
521
636
  locales,
522
637
  layout,
523
638
  accent,
639
+ claudeCodeThemes,
640
+ normalizeHexColor,
641
+ resolveAccentPalette,
524
642
  t: active.t,
525
643
  format,
526
644
  forLang,
@@ -798,6 +916,40 @@ function installCodexSessionStatus(version, restored, embedded) {
798
916
  return true;
799
917
  };
800
918
  const colors = presentation?.colors || { unstarted: '#9098a2', unfinished: '#c89b38', completed: '#548eea', pushed: '#a17be3' };
919
+ let currentAccent = presentation?.accent?.normal || '#0169CC';
920
+ let currentAccentPalette = presentation?.accent || { normal: '#0169CC', hover: '#005bb3', pressed: '#004f9c', onAccent: '#FFFFFF' };
921
+ function resolveHostAccent(isDark = true) {
922
+ const raw = (window.__agentThingsHostAccent || document.documentElement.style.getPropertyValue('--agent-things-accent') || (() => {
923
+ try {
924
+ const rootStyle = getComputedStyle(document.documentElement);
925
+ for (const varName of ['--codex-base-accent', '--color-button-accent', '--primary', '--agent-things-accent']) {
926
+ const candidate = rootStyle.getPropertyValue(varName).trim();
927
+ if (candidate) return candidate;
928
+ }
929
+ } catch {}
930
+ return '';
931
+ })()).trim();
932
+ const fallback = presentation?.accent?.normal || '#0169CC';
933
+ return presentation?.resolveAccentPalette
934
+ ? presentation.resolveAccentPalette(raw || fallback, { isDark, fallback })
935
+ : { normal: raw || fallback, hover: '#005bb3', pressed: '#004f9c', onAccent: '#FFFFFF' };
936
+ }
937
+ function syncAccent(node, isDark = true) {
938
+ const palette = resolveHostAccent(isDark);
939
+ currentAccentPalette = palette;
940
+ currentAccent = palette.normal;
941
+ if (!node?.style) return palette;
942
+ const pairs = [
943
+ ['--accent', palette.normal],
944
+ ['--accent-hover', palette.hover],
945
+ ['--accent-pressed', palette.pressed],
946
+ ['--on-accent', palette.onAccent],
947
+ ];
948
+ for (const [k, v] of pairs) {
949
+ if (node.style.getPropertyValue(k) !== v) node.style.setProperty(k, v);
950
+ }
951
+ return palette;
952
+ }
801
953
  let snapshot = { revision: 0, records: {} };
802
954
  const mounted = new Map();
803
955
  const pending = new Map();
@@ -894,7 +1046,7 @@ function installCodexSessionStatus(version, restored, embedded) {
894
1046
  if (loading) {
895
1047
  svg.setAttribute('class', 'loading');
896
1048
  const circle = document.createElementNS(svg.namespaceURI, 'circle');
897
- for (const [name, value] of Object.entries({ cx: 12, cy: 12, r: 10, fill: 'none', stroke: '#0169cc', 'stroke-width': 1.6, 'stroke-dasharray': '42 63', 'stroke-linecap': 'round' })) circle.setAttribute(name, value);
1049
+ for (const [name, value] of Object.entries({ cx: 12, cy: 12, r: 10, fill: 'none', stroke: currentAccent || '#0169cc', 'stroke-width': 1.6, 'stroke-dasharray': '42 63', 'stroke-linecap': 'round' })) circle.setAttribute(name, value);
898
1050
  svg.append(circle); button.append(svg); return;
899
1051
  }
900
1052
  const color = record ? colors[record.state] : '#858991';
@@ -978,7 +1130,7 @@ function installCodexSessionStatus(version, restored, embedded) {
978
1130
  host.setAttribute('data-codex-session-status', '');
979
1131
  host.style.cssText = 'display:flex;width:24px;height:28px;flex:none;align-items:center;justify-content:center';
980
1132
  const shadow = host.attachShadow({ mode: 'open' });
981
- element('style', `:host{opacity:0}:host([data-visible]),:host(:focus-within){opacity:1}@keyframes status-spin{to{transform:rotate(360deg)}}svg.loading{animation:status-spin .85s linear infinite;transform-origin:center}button{all:unset;box-sizing:border-box;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;border-radius:7px}button:hover{background:color-mix(in srgb,currentColor 8%,transparent)}button:focus-visible{outline:2px solid #0169cc;outline-offset:1px}svg{display:block;pointer-events:none}`, shadow);
1133
+ element('style', `:host{opacity:0}:host([data-visible]),:host(:focus-within){opacity:1}@keyframes status-spin{to{transform:rotate(360deg)}}svg.loading{animation:status-spin .85s linear infinite;transform-origin:center}button{all:unset;box-sizing:border-box;width:28px;height:28px;display:grid;place-items:center;cursor:pointer;border-radius:7px;transition:transform 160ms cubic-bezier(.23,1,.32,1),background-color 150ms cubic-bezier(.23,1,.32,1)}button:hover{background:color-mix(in srgb,currentColor 8%,transparent)}button:active{transform:scale(.94)}button:focus-visible{outline:2px solid var(--accent,#0169cc);outline-offset:1px}svg{display:block;pointer-events:none}`, shadow);
982
1134
  const button = element('button', null, shadow);
983
1135
  button.type = 'button'; button.setAttribute('aria-haspopup', 'dialog'); button.setAttribute('aria-expanded', 'false');
984
1136
  return { host, button, original };
@@ -1053,10 +1205,26 @@ function installCodexSessionStatus(version, restored, embedded) {
1053
1205
  return r.width > 0 && r.height > 0 && r.bottom > 0 && r.top < innerHeight;
1054
1206
  }
1055
1207
 
1208
+ function detectPanelColorMode(entry) {
1209
+ if (embedded) return embedded.theme && ['light', 'dark'].includes(embedded.theme) ? embedded.theme : (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
1210
+ for (let node = entry?.row; node; node = node.parentElement) {
1211
+ const rgba = getComputedStyle(node).backgroundColor.match(/[\d.]+/g)?.map(Number);
1212
+ if (!rgba || (rgba[3] ?? 1) < .95) continue;
1213
+ return rgba[0] * .2126 + rgba[1] * .7152 + rgba[2] * .0722 < 150 ? 'dark' : 'light';
1214
+ }
1215
+ const docTheme = typeof document !== 'undefined'
1216
+ ? (document.documentElement?.getAttribute?.('data-theme') || document.documentElement?.dataset?.mode || (document.body?.classList?.contains('theme-light') ? 'light' : document.body?.classList?.contains('theme-dark') ? 'dark' : ''))
1217
+ : '';
1218
+ if (docTheme === 'light' || docTheme === 'dark') return docTheme;
1219
+ return matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
1220
+ }
1221
+
1056
1222
  function positionPanel() {
1057
1223
  if (!panel) return;
1058
1224
  if (embedded) {
1059
- panel.root.setAttribute('data-color-mode', embedded.theme || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'));
1225
+ const mode = embedded.theme || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
1226
+ if (panel.root.getAttribute('data-color-mode') !== mode) panel.root.setAttribute('data-color-mode', mode);
1227
+ if (typeof syncAccent === 'function') syncAccent(panel.root, mode === 'dark');
1060
1228
  return;
1061
1229
  }
1062
1230
  // Foreground colors change when the host window becomes inactive.
@@ -1070,6 +1238,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1070
1238
  }
1071
1239
  mode ||= panel.root.getAttribute('data-color-mode') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
1072
1240
  if (panel.root.getAttribute('data-color-mode') !== mode) panel.root.setAttribute('data-color-mode', mode);
1241
+ if (typeof syncAccent === 'function') syncAccent(panel.root, mode === 'dark');
1073
1242
  const anchor = panel.entry.host.getBoundingClientRect();
1074
1243
  const rect = panel.shell.getBoundingClientRect();
1075
1244
  const left = Math.max(8, Math.min(anchor.right + 10, innerWidth - rect.width - 8));
@@ -1110,7 +1279,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1110
1279
  target.statusDot.style.borderColor = record ? colors[record.state] : colors.unstarted;
1111
1280
  target.timestamp.textContent = record ? (ui?.formatDate ? ui.formatDate(record.updatedAt) : new Date(record.updatedAt).toLocaleString(activeLang === 'en' ? 'en-US' : 'zh-CN', { month: 'numeric', day: 'numeric', hour: '2-digit', minute: '2-digit' })) : '';
1112
1281
  target.scoreNumber.textContent = record?.progress ?? '—';
1113
- target.scoreUnit.hidden = record?.progress == null;
1282
+ target.scoreUnit.hidden = false;
1114
1283
  target.meter.style.setProperty('--fill', `${record?.progress ?? 0}%`);
1115
1284
  target.meter.style.setProperty('--mark', record ? colors[record.state] : colors.unstarted);
1116
1285
  target.sourceLabel.textContent = record ? (record.source === 'analysis' ? S('sourceAuto') : S('sourceManual')) : '';
@@ -1212,37 +1381,47 @@ function installCodexSessionStatus(version, restored, embedded) {
1212
1381
 
1213
1382
  function openPanel(entry) {
1214
1383
  if (panel) return;
1215
- const root = element('div', null, embedded?.container || document.body);
1384
+ const root = document.createElement('div');
1385
+ const initialMode = detectPanelColorMode(entry);
1216
1386
  root.setAttribute('data-codex-session-status-panel', '');
1387
+ root.setAttribute('data-color-mode', initialMode);
1388
+ syncAccent(root, initialMode === 'dark');
1217
1389
  if (!embedded) root.style.cssText = 'position:fixed;inset:0;pointer-events:none;z-index:2147483646';
1218
1390
  const shadow = root.attachShadow({ mode: 'open' });
1219
1391
  element('style', `
1220
- :host{--accent:${presentation?.accent.normal || '#0169cc'};--accent-hover:${presentation?.accent.hover || '#005bb3'};--ink:#e6edf3;--secondary:#a0a6ad;--muted:#828c96;--note:#bbc3ca;--track:#ffffff12;--line:#ffffff14;--input-border:#ffffff18;--input-bg:#ffffff03;--hover:#ffffff09;--selected:#ffffff10;--source-bg:#ffffff0a;--number-line:#ffffff25;--thumb:#e6edf3;--thumb-edge:#ffffff30;--danger:#ef7777;--error:#f7ad86;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);color-scheme:dark}
1392
+ :host{--accent:${currentAccentPalette.normal || '#0169cc'};--accent-hover:${currentAccentPalette.hover || '#005bb3'};--accent-pressed:${currentAccentPalette.pressed || '#004f9c'};--on-accent:${currentAccentPalette.onAccent || '#ffffff'};--ease-out:cubic-bezier(0.23,1,0.32,1);--ease-in-out:cubic-bezier(0.77,0,0.175,1);--ink:#e6edf3;--secondary:#a0a6ad;--muted:#828c96;--note:#bbc3ca;--track:#ffffff12;--line:#ffffff14;--input-border:#ffffff18;--input-bg:#ffffff03;--hover:#ffffff09;--selected:#ffffff10;--source-bg:#ffffff0a;--number-line:#ffffff25;--thumb:#ffffff;--danger:#ef7777;--error:#f7ad86;font:13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);color-scheme:dark}
1221
1393
  *{box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}*::-webkit-scrollbar{display:none;width:0;height:0}button,input,textarea{font:inherit}button{cursor:pointer}button,input,textarea{color:inherit}[hidden]{display:none!important}
1222
1394
  .shell{position:fixed;pointer-events:auto;width:${presentation?.layout.panelWidth || 340}px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);display:flex;flex-direction:column;overflow:hidden;--panel-bg:#0e1318;background:var(--panel-bg);border:1px solid #ffffff1c;border-radius:20px;box-shadow:0 16px 54px #0005;padding:22px 20px 14px}
1223
1395
  .shell:hover{--panel-bg:#1f242a}.title-heading{display:flex;flex:none;align-items:flex-start;gap:10px;margin-right:24px;border-radius:5px;outline-offset:4px}
1224
1396
  h2.title{font-size:24px;font-weight:650;line-height:1.3;letter-spacing:-.5px;margin:0;min-width:0;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
1225
- .title-progress{display:flex;flex:none;width:32px;height:32px;margin-top:1px}.title-progress svg{width:32px;height:32px}.title-progress text{opacity:0}.title-progress text.progress-unknown{opacity:1}.title-heading:hover .progress-pie,.title-heading:focus-visible .progress-pie{opacity:0}.title-heading:hover text,.title-heading:focus-visible text{opacity:1}
1226
- .close{position:absolute;right:12px;top:7px;border:0;background:none;color:var(--secondary);font-size:0;width:28px;height:28px;padding:0}.close::before,.close::after{content:"";position:absolute;left:7px;top:13px;width:14px;height:1px;background:currentColor;transform:rotate(45deg)}.close::after{transform:rotate(-45deg)}
1227
- .open-pane{position:absolute;right:44px;top:7px;border:0;background:none;color:var(--secondary);width:28px;height:28px;padding:0;border-radius:6px}.open-pane:hover{color:var(--ink);background:var(--hover)}.open-pane::before{content:"";position:absolute;left:7px;top:8px;width:14px;height:12px;border:1.3px solid currentColor;border-radius:3px;box-sizing:border-box}.open-pane::after{content:"";position:absolute;left:16px;top:8px;width:1.3px;height:12px;background:currentColor}.shell.has-open-pane .title-heading{margin-right:56px}.open-pane-tip{position:absolute;right:0;top:calc(100% + 6px);padding:5px 8px;border-radius:6px;background:var(--panel-bg);color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 14px #0003;font-size:11px;line-height:1.4;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .08s,visibility 0s;z-index:2}.open-pane:is(:hover,:focus-visible) .open-pane-tip{opacity:1;visibility:visible;transition-delay:.15s}
1228
- .panel-body{overflow:auto;min-height:0;margin-top:23px;scrollbar-width:none;-ms-overflow-style:none}.panel-body::-webkit-scrollbar{display:none;width:0;height:0}.view{padding-bottom:4px}.status-line{display:flex;align-items:center;justify-content:space-between;gap:16px}.status-block{transform:translateY(2px);min-width:0;flex:1}.status-name{display:flex;align-items:center;gap:7px;line-height:18px;min-width:0}.status-name>span:last-child,.timestamp{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state-dot{width:10px;height:10px;border:1.5px solid;border-radius:50%;flex:none}.timestamp{font-size:11px;line-height:16px;color:var(--secondary);margin-top:2px;margin-left:17px}.score{display:flex;align-items:baseline;line-height:1;font-variant-numeric:tabular-nums;flex:none}.score-number{font-size:39px;font-weight:550;letter-spacing:-1px}.score-unit{font-size:15px;color:var(--secondary);margin-left:3px}
1229
- .meter{height:4px;background:var(--track);border-radius:3px;margin:14px 0 10px;overflow:hidden}.meter::after{content:"";display:block;height:100%;width:var(--fill);background:var(--mark);border-radius:inherit}.totals-row{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--secondary)}.totals,.source-label{font-size:11px;font-weight:400;line-height:16px}.source-label{margin-left:auto;text-align:right;white-space:nowrap}.summary-block{position:relative;margin:16px 0;outline:none}.overview-summary{font-size:13px;line-height:1.65;color:var(--note);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.summary-expand{position:absolute;right:0;bottom:0;border:0;background:linear-gradient(to right,transparent,var(--panel-bg) 18px);padding:0 0 0 22px;color:var(--secondary);font-size:12px;line-height:21.45px;white-space:nowrap}.summary-expand:hover{color:inherit}.summary-block.expanded .overview-summary{display:block;-webkit-line-clamp:unset}.summary-block.expanded .summary-expand{position:static;display:block;margin-left:auto;padding-left:0;background:none}
1230
- .actions{display:flex;align-items:center;gap:14px;margin:18px 0 22px}.primary{border:0;background:var(--accent);color:#fff;border-radius:9px;padding:9px 14px;font-weight:550;min-height:36px;white-space:nowrap}.primary:hover{background:var(--accent-hover);color:#fff}.text-button,.clear,.back{border:0;background:none;padding:0;color:var(--secondary);font-size:12px;white-space:nowrap}.text-button:hover,.back:hover{color:inherit}.actions .clear{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap;transition:color .12s}.actions .clear:hover{color:var(--danger)}.actions .clear{position:relative}.clear-tooltip{position:absolute;right:0;bottom:calc(100% + 8px);padding:6px 9px;border-radius:6px;background:var(--panel-bg);color:var(--secondary);border:1px solid var(--line);font-size:11px;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .08s,visibility 0s}.clear:is(:hover,:focus-visible) .clear-tooltip{opacity:1;visibility:visible;transition-delay:.1s}.section-head{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.section-head h3{font-size:12px;font-weight:550;margin:0}.remaining-toggle{border:0;background:none;padding:0}.row-detail{font-size:12px;font-weight:400;line-height:18px;color:var(--secondary);white-space:nowrap}
1231
- .task-row{position:relative;display:flex;gap:9px;align-items:flex-start;padding:9px 0;overflow:hidden;isolation:isolate}.task-dot{width:12px;height:12px;border:1.3px solid #c89b38;border-radius:50%;margin-top:4px;flex:none}.task-row[data-status=done] .task-dot{border-color:#548eea;background:#548eea22}.task-content{min-width:0;flex:1}.task-title{width:100%;overflow:hidden;mask-image:linear-gradient(to right,#000 calc(100% - 12px),transparent)}.task-track{display:flex;width:max-content;transform:translateX(0);transition:transform .22s ease-out}.task-copy{white-space:nowrap;flex:none}.task-row:is(:hover,:focus-within) .task-title.overflowing .task-track{transform:translateX(calc(-1 * var(--travel)));transition-duration:var(--duration,4s);transition-timing-function:linear;will-change:transform}.task-meta{font-size:10px;color:var(--secondary);margin-top:3px}.task-source{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:flex-end;padding-left:28px;background:linear-gradient(to right,transparent,var(--panel-bg) 25px);opacity:0;pointer-events:none;transform:translateX(4px);transition:opacity .13s,transform .13s}.task-source button{border:0;border-radius:6px;background:var(--source-bg);color:inherit;padding:5px 7px;font-size:11px;white-space:nowrap}.task-row:hover .task-source,.task-row:focus-within .task-source{opacity:1;pointer-events:auto;transform:none}.task-row:focus-visible{outline:1px solid var(--accent);outline-offset:1px}
1232
- @media(prefers-reduced-motion:reduce){.task-row .task-title.overflowing .task-track{transform:none;transition:none}.task-title{overflow:auto}}
1397
+ .title-progress{display:flex;flex:none;width:32px;height:32px;margin-top:1px}.title-progress svg{width:32px;height:32px}.title-progress .progress-pie,.title-progress text{transition:opacity 160ms var(--ease-out),transform 160ms var(--ease-out);transform-origin:12px 12px}.title-progress text{opacity:0;transform:scale(.94)}.title-progress text.progress-unknown{opacity:1;transform:none}.title-heading:hover .progress-pie,.title-heading:focus-visible .progress-pie{opacity:0;transform:scale(.94)}.title-heading:hover text,.title-heading:focus-visible text{opacity:1;transform:scale(1)}
1398
+ .close{position:absolute;right:12px;top:7px;border:0;background:none;color:var(--secondary);font-size:0;width:28px;height:28px;padding:0;border-radius:6px;transition:transform 160ms var(--ease-out),color 150ms var(--ease-out),background-color 150ms var(--ease-out)}.close:hover{color:var(--ink);background:var(--hover)}.close:active:not(:disabled){transform:scale(.94)}.close::before,.close::after{content:"";position:absolute;left:7px;top:13px;width:14px;height:1px;background:currentColor;transform:rotate(45deg)}.close::after{transform:rotate(-45deg)}
1399
+ .open-pane{position:absolute;right:44px;top:7px;border:0;background:none;color:var(--secondary);width:28px;height:28px;padding:0;border-radius:6px;transition:transform 160ms var(--ease-out),color 150ms var(--ease-out),background-color 150ms var(--ease-out)}.open-pane:hover{color:var(--ink);background:var(--hover)}.open-pane:active:not(:disabled){transform:scale(.94)}.open-pane::before{content:"";position:absolute;left:7px;top:8px;width:14px;height:12px;border:1.3px solid currentColor;border-radius:3px;box-sizing:border-box}.open-pane::after{content:"";position:absolute;left:16px;top:8px;width:1.3px;height:12px;background:currentColor}.shell.has-open-pane .title-heading{margin-right:56px}.open-pane-tip{position:absolute;right:0;top:calc(100% + 6px);padding:5px 8px;border-radius:6px;background:var(--panel-bg);color:var(--ink);border:1px solid var(--line);box-shadow:0 4px 14px #0003;font-size:11px;line-height:1.4;white-space:nowrap;pointer-events:none;transform-origin:top right;opacity:0;transform:scale(.96) translateY(-2px);visibility:hidden;transition:opacity 150ms var(--ease-out),transform 150ms var(--ease-out),visibility 0s linear 150ms;z-index:2}.open-pane:is(:hover,:focus-visible) .open-pane-tip{opacity:1;transform:scale(1) translateY(0);visibility:visible;transition:opacity 150ms var(--ease-out) 160ms,transform 150ms var(--ease-out) 160ms,visibility 0s linear 160ms}
1400
+ .panel-body{overflow:auto;min-height:0;margin-top:23px;scrollbar-width:none;-ms-overflow-style:none}.panel-body::-webkit-scrollbar{display:none;width:0;height:0}.view{padding-bottom:4px}.status-line{display:flex;align-items:center;justify-content:space-between;gap:16px}.status-block{transform:translateY(2px);min-width:0;flex:1}.status-name{display:flex;align-items:center;gap:7px;line-height:18px;min-width:0}.status-name>span:last-child,.timestamp{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.state-dot{width:10px;height:10px;border:1.5px solid;border-radius:50%;flex:none;transition:border-color 180ms var(--ease-out)}.timestamp{font-size:11px;line-height:16px;color:var(--secondary);margin-top:2px;margin-left:17px}.score{display:flex;align-items:baseline;line-height:1;font-variant-numeric:tabular-nums;flex:none}.score-number{font-size:39px;font-weight:550;letter-spacing:-1px}.score-unit{font-size:15px;color:var(--secondary);margin-left:3px}
1401
+ .meter{height:4px;background:var(--track);border-radius:999px;margin:14px 0 10px;overflow:hidden}.meter::after{content:"";display:block;height:100%;width:var(--fill);background:var(--mark);border-radius:inherit;transition:width 220ms var(--ease-out),background-color 180ms var(--ease-out)}.totals-row{display:flex;justify-content:space-between;align-items:center;gap:8px;color:var(--secondary)}.totals,.source-label{font-size:11px;font-weight:400;line-height:16px}.source-label{margin-left:auto;text-align:right;white-space:nowrap}.summary-block{position:relative;margin:16px 0;outline:none}.overview-summary{font-size:13px;line-height:1.65;color:var(--note);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.summary-expand{position:absolute;right:0;bottom:0;border:0;background:linear-gradient(to right,transparent,var(--panel-bg) 18px);padding:0 0 0 22px;color:var(--secondary);font-size:12px;line-height:21.45px;white-space:nowrap;transition:transform 160ms var(--ease-out),color 150ms var(--ease-out)}.summary-expand:hover{color:inherit}.summary-expand:active:not(:disabled){transform:scale(.97)}.summary-block.expanded .overview-summary{display:block;-webkit-line-clamp:unset}.summary-block.expanded .summary-expand{position:static;display:block;margin-left:auto;padding-left:0;background:none}
1402
+ .actions{display:flex;align-items:center;gap:14px;margin:18px 0 22px}.primary{border:0;background:var(--accent);color:var(--on-accent,#fff);border-radius:9px;padding:9px 14px;font-weight:550;min-height:36px;white-space:nowrap;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 1px 2px rgba(0,0,0,.14);transition:transform 160ms var(--ease-out),background-color 160ms var(--ease-out),opacity 160ms var(--ease-out)}.primary:hover:not(:disabled){background:var(--accent-hover);color:var(--on-accent,#fff)}.primary:active:not(:disabled){background:var(--accent-pressed,var(--accent-hover));transform:scale(.97)}.text-button,.clear,.back{border:0;background:none;padding:0;color:var(--secondary);font-size:12px;white-space:nowrap;transition:transform 160ms var(--ease-out),color 150ms var(--ease-out)}.text-button:hover,.back:hover{color:inherit}.text-button:active:not(:disabled),.back:active:not(:disabled),.clear:active:not(:disabled){transform:scale(.97)}.actions .clear{margin-left:auto;font-size:11px;color:var(--muted);white-space:nowrap}.actions .clear:hover{color:var(--danger)}.actions .clear{position:relative}.clear-tooltip{position:absolute;right:0;bottom:calc(100% + 8px);padding:6px 9px;border-radius:6px;background:var(--panel-bg);color:var(--secondary);border:1px solid var(--line);box-shadow:0 6px 18px rgba(0,0,0,.22);font-size:11px;white-space:nowrap;pointer-events:none;transform-origin:bottom right;opacity:0;transform:scale(.96) translateY(3px);visibility:hidden;transition:opacity 150ms var(--ease-out),transform 150ms var(--ease-out),visibility 0s linear 150ms;z-index:2}.clear:is(:hover,:focus-visible) .clear-tooltip{opacity:1;transform:scale(1) translateY(0);visibility:visible;transition:opacity 150ms var(--ease-out) 160ms,transform 150ms var(--ease-out) 160ms,visibility 0s linear 160ms}.section-head{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.section-head h3{font-size:12px;font-weight:550;margin:0}.remaining-toggle{border:0;background:none;padding:0;transition:transform 160ms var(--ease-out),color 150ms var(--ease-out)}.remaining-toggle:active:not(:disabled){transform:scale(.97)}.row-detail{font-size:12px;font-weight:400;line-height:18px;color:var(--secondary);white-space:nowrap}
1403
+ .task-row{position:relative;display:flex;gap:9px;align-items:flex-start;padding:9px 0;overflow:hidden;isolation:isolate}.task-dot{width:12px;height:12px;border:1.3px solid #c89b38;border-radius:50%;margin-top:4px;flex:none;transition:transform 180ms var(--ease-out),border-color 180ms var(--ease-out),background-color 180ms var(--ease-out)}.task-row[data-status=done] .task-dot{border-color:#548eea;background:#548eea22}.task-content{min-width:0;flex:1}.task-title{width:100%;overflow:hidden;mask-image:linear-gradient(to right,#000 calc(100% - 12px),transparent)}.task-track{display:flex;width:max-content;transform:translateX(0);transition:transform .22s ease-out}.task-copy{white-space:nowrap;flex:none}.task-row:is(:hover,:focus-within) .task-title.overflowing .task-track{transform:translateX(calc(-1 * var(--travel)));transition-duration:var(--duration,4s);transition-timing-function:linear;will-change:transform}.task-meta{font-size:10px;color:var(--secondary);margin-top:3px}.task-source{position:absolute;right:0;top:0;bottom:0;display:flex;align-items:center;justify-content:flex-end;padding-left:28px;background:linear-gradient(to right,transparent,var(--panel-bg) 25px);opacity:0;pointer-events:none;transform:translateX(4px);transition:opacity 150ms var(--ease-out),transform 150ms var(--ease-out)}.task-source button{border:0;border-radius:6px;background:var(--source-bg);color:inherit;padding:5px 7px;font-size:11px;white-space:nowrap;transition:transform 160ms var(--ease-out),background-color 150ms var(--ease-out)}.task-source button:active:not(:disabled){transform:scale(.96)}.task-row:hover .task-source,.task-row:focus-within .task-source{opacity:1;pointer-events:auto;transform:none}.task-row:focus-visible{outline:1px solid var(--accent);outline-offset:1px}
1404
+ @media(prefers-reduced-motion:reduce){.task-row .task-title.overflowing .task-track{transform:none;transition:none}.task-title{overflow:auto}.primary:active:not(:disabled),.text-button:active:not(:disabled),.back:active:not(:disabled),.clear:active:not(:disabled),.choice:active:not(:disabled),.quiet-row:active:not(:disabled),.range-input:hover::-webkit-slider-thumb,.range-input:active::-webkit-slider-thumb{transform:none}}
1233
1405
  @media(hover:none){.task-source{opacity:1;pointer-events:auto;transform:none}}
1234
- .empty{font-size:12px;color:var(--secondary);padding:13px 0}.quiet-row{border:0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;width:100%;background:none;color:inherit;padding:15px 0;text-align:left;font-size:12px}.quiet-row span:last-child{color:var(--secondary)}.overview-bottom{margin-top:13px}.view-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.view-heading h3{font-size:14px;font-weight:550;margin:0}.choice{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border:0;border-radius:7px;background:none;color:inherit;text-align:left}.choice:hover{background:var(--hover)}.choice[aria-pressed=true]{background:var(--selected)}.dot{width:12px;height:12px;border:1.6px solid var(--mark);border-radius:50%;flex:none}.choice[aria-pressed=true] .dot{background:var(--mark);box-shadow:inset 0 0 0 2px var(--panel-bg)}
1235
- .progress-section{margin-top:20px}.progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.label{font-size:11px;color:var(--secondary)}.number-wrap{display:flex;align-items:center;gap:5px;color:var(--secondary)}.progress-number{appearance:textfield;color:var(--ink);width:65px;padding:2px 3px 4px;background:none;border:0;border-bottom:1px solid var(--number-line);font-size:27px;font-weight:550;text-align:right;font-variant-numeric:tabular-nums}.progress-number::-webkit-inner-spin-button{appearance:none}.range{position:relative;height:51px;margin-top:2px;--mark:#c89b38}.range-track{position:absolute;left:7px;right:7px;top:10px;height:4px;border-radius:3px;background:linear-gradient(to right,var(--range-fill,var(--mark)) var(--fill),var(--track) var(--fill));pointer-events:none}.range-input{position:relative;appearance:none;width:100%;height:24px;background:transparent;margin:0;display:block;padding:0;cursor:pointer}.range-input::-webkit-slider-runnable-track{height:4px;background:transparent}.range-input::-webkit-slider-thumb{appearance:none;width:14px;height:14px;margin-top:-5px;background:var(--thumb);border:2px solid var(--panel-bg);border-radius:50%;box-shadow:0 0 0 1px var(--thumb-edge)}.range-nodes{position:absolute;left:7px;right:7px;top:0;pointer-events:none}.range-node{position:absolute;left:var(--at);top:8px;width:0;font-size:10px;color:var(--secondary);font-variant-numeric:tabular-nums}.range-node::before{content:"";display:block;width:7px;height:7px;transform:translateX(-50%);border-radius:50%;background:var(--panel-bg);border:1px solid var(--secondary);box-shadow:0 0 0 1px var(--panel-bg)}.range-node-label{position:absolute;top:19px;left:0;transform:translateX(-50%)}.range-node:first-child .range-node-label{transform:none}.range-node:last-child .range-node-label{transform:translateX(-100%)}.unknown-row{display:flex;justify-content:flex-end;margin:2px 0 18px}.unknown{font-size:11px}
1406
+ .empty{font-size:12px;color:var(--secondary);padding:13px 0}.quiet-row{border:0;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;width:100%;background:none;color:inherit;padding:15px 0;text-align:left;font-size:12px;transition:transform 160ms var(--ease-out),background-color 150ms var(--ease-out)}.quiet-row:active:not(:disabled){transform:scale(.988)}.quiet-row span:last-child{color:var(--secondary);transition:transform 160ms var(--ease-out),color 150ms var(--ease-out)}.quiet-row:hover span:last-child{transform:translateX(2px)}.overview-bottom{margin-top:13px}.view-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.view-heading h3{font-size:14px;font-weight:550;margin:0}.choice{display:flex;align-items:center;gap:10px;width:100%;padding:8px 9px;border:0;border-radius:7px;background:none;color:inherit;text-align:left;transition:transform 160ms var(--ease-out),background-color 150ms var(--ease-out)}.choice:hover{background:var(--hover)}.choice:active:not(:disabled){transform:scale(.988)}.choice[aria-pressed=true]{background:var(--selected)}.dot{width:12px;height:12px;border:1.6px solid var(--mark);border-radius:50%;flex:none;transition:background-color 180ms var(--ease-out),border-color 180ms var(--ease-out)}.choice[aria-pressed=true] .dot{background:var(--mark);box-shadow:inset 0 0 0 2px var(--panel-bg)}
1407
+ .progress-section{margin-top:20px}.progress-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.label{font-size:11px;color:var(--secondary)}.number-wrap{display:flex;align-items:center;gap:5px;color:var(--secondary)}.progress-number{appearance:textfield;color:var(--ink);width:65px;padding:2px 3px 4px;background:none;border:0;border-bottom:1px solid var(--number-line);font-size:27px;font-weight:550;text-align:right;font-variant-numeric:tabular-nums}.progress-number::-webkit-inner-spin-button{appearance:none}.range{position:relative;height:48px;margin-top:2px;--mark:#c89b38}.range-track{position:absolute;left:7px;right:7px;top:9px;height:6px;border-radius:999px;background:linear-gradient(to right,var(--range-fill,var(--mark)) var(--fill),var(--track) var(--fill));pointer-events:none;transition:background-color 160ms var(--ease-out)}.range.is-dragging .range-track{transition:none}.range-input{position:relative;appearance:none;width:100%;height:24px;background:transparent;margin:0;display:block;padding:0;cursor:pointer}.range-input::-webkit-slider-runnable-track{height:6px;background:transparent}.range-input::-webkit-slider-thumb{appearance:none;width:16px;height:16px;margin-top:-5px;background:var(--thumb);border:.5px solid rgba(0,0,0,.14);border-radius:50%;box-shadow:0 1px 3px rgba(0,0,0,.28),0 0 0 .5px rgba(0,0,0,.08);transition:transform 150ms var(--ease-out),box-shadow 150ms var(--ease-out)}.range-input:hover::-webkit-slider-thumb{transform:scale(1.06)}.range-input:active::-webkit-slider-thumb{transform:scale(1.1);box-shadow:0 2px 6px rgba(0,0,0,.34),0 0 0 1px rgba(0,0,0,.12)}.range-nodes{position:absolute;left:7px;right:7px;top:0;pointer-events:none}.range-node{position:absolute;left:var(--at);top:8px;width:0;font-size:10px;font-weight:500;opacity:.78;color:var(--secondary);font-variant-numeric:tabular-nums}.range-node::before{display:none}.range-node-label{position:absolute;top:20px;left:0;transform:translateX(-50%)}.range-node:first-child .range-node-label{transform:none}.range-node:last-child .range-node-label{transform:translateX(-100%)}.unknown-row{display:flex;justify-content:flex-end;margin:2px 0 18px}.unknown{font-size:11px}
1236
1408
  .note-label{display:block;font-size:11px;color:var(--secondary);margin-bottom:8px}textarea{display:block;width:100%;resize:vertical;min-height:66px;max-height:140px;background:var(--input-bg);color:inherit;border:1px solid var(--input-border);border-radius:8px;padding:9px;line-height:1.6;font-size:12px;scrollbar-width:none;-ms-overflow-style:none}textarea::-webkit-scrollbar{display:none;width:0;height:0}textarea::placeholder{color:var(--muted)}.edit-actions{display:flex;justify-content:flex-end;gap:18px;align-items:center;padding:21px 0 16px}.git{font-size:11px;color:var(--secondary)}.analysis-message{font-size:11px;color:var(--secondary);margin:0 0 13px}.analysis-message:empty,.error:empty,.git:empty{display:none}.error{flex:none;font-size:12px;color:var(--error);padding-top:10px;white-space:pre-wrap}button:disabled,input:disabled,textarea:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
1237
1409
  .shell textarea:focus-visible{outline:none}
1238
1410
  .app-update{margin-top:3px;padding:10px 11px;background:var(--hover);border:1px solid var(--line);border-radius:10px}.app-update-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.app-update-label{font-size:12px;line-height:18px;color:var(--ink);min-width:0;overflow-wrap:anywhere}.app-update-button{flex:none;padding:5px 10px;min-height:28px;border-radius:7px;font-size:11px}.app-update-detail{margin-top:7px;font-size:11px;line-height:1.6;color:var(--secondary);white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}.app-update[data-failed=true] .app-update-detail{color:var(--error)}
1239
- :host([data-color-mode=light]){--ink:#22272e;--secondary:#576374;--muted:#667383;--note:#46515f;--track:#c3ccd6;--line:#dfe4ea;--input-border:#c7d0da;--input-bg:#f7f9fb;--hover:#f0f3f6;--selected:#e9edf2;--source-bg:#e9eef4;--number-line:#b6c1ce;--thumb:var(--accent);--thumb-edge:var(--accent);--danger:#bf2f3a;--error:#b13a2d;color:var(--ink);color-scheme:light}
1411
+ :host([data-color-mode=light]){--ink:#22272e;--secondary:#576374;--muted:#667383;--note:#46515f;--track:#dfe4ea;--line:#dfe4ea;--input-border:#c7d0da;--input-bg:#f7f9fb;--hover:#f0f3f6;--selected:#e9edf2;--source-bg:#e9eef4;--number-line:#b6c1ce;--thumb:#ffffff;--danger:#bf2f3a;--error:#b13a2d;color:var(--ink);color-scheme:light}
1240
1412
  :host([data-color-mode=light]) .shell{--panel-bg:#fff;border-color:#dfe4ea;box-shadow:0 14px 45px #26344520}
1241
1413
  :host([data-color-mode=light]) .shell:hover{--panel-bg:#f5f6f7}
1242
1414
  :host([data-color-mode=light]) .range{--range-fill:color-mix(in srgb,var(--mark) 85%,#000)}
1243
1415
  :host([data-color-mode=light]) .meter::after{background:color-mix(in srgb,var(--mark) 85%,#000)}
1416
+ @media(prefers-color-scheme:light){
1417
+ :host(:not([data-color-mode=dark])){--ink:#22272e;--secondary:#576374;--muted:#667383;--note:#46515f;--track:#dfe4ea;--line:#dfe4ea;--input-border:#c7d0da;--input-bg:#f7f9fb;--hover:#f0f3f6;--selected:#e9edf2;--source-bg:#e9eef4;--number-line:#b6c1ce;--thumb:#ffffff;--danger:#bf2f3a;--error:#b13a2d;color:var(--ink);color-scheme:light}
1418
+ :host(:not([data-color-mode=dark])) .shell{--panel-bg:#fff;border-color:#dfe4ea;box-shadow:0 14px 45px #26344520}
1419
+ :host(:not([data-color-mode=dark])) .shell:hover{--panel-bg:#f5f6f7}
1420
+ :host(:not([data-color-mode=dark])) .range{--range-fill:color-mix(in srgb,var(--mark) 85%,#000)}
1421
+ :host(:not([data-color-mode=dark])) .meter::after{background:color-mix(in srgb,var(--mark) 85%,#000)}
1422
+ }
1244
1423
  `, shadow);
1245
- if (embedded) element('style', '.shell{position:relative;max-width:100%;max-height:none}.shell,:host([data-color-mode=light]) .shell{box-shadow:none}.panel-body{overflow:visible}', shadow);
1424
+ if (embedded) element('style', '.shell,:host([data-color-mode=light]) .shell,:host(:not([data-color-mode=dark])) .shell{box-shadow:none}.shell{position:relative;max-width:100%;max-height:none}.panel-body{overflow:visible}', shadow);
1246
1425
  const shell = element('div', null, shadow, 'shell');
1247
1426
  shell.setAttribute('role', embedded ? 'region' : 'dialog'); shell.setAttribute('aria-label', S('panelAriaPattern', { title: entry.title }));
1248
1427
  const close = embedded ? null : element('button', '×', shell, 'close'); close?.setAttribute('aria-label', S('close'));
@@ -1518,7 +1697,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1518
1697
  while (Date.now() < deadline) {
1519
1698
  if (row.getAttribute('data-app-action-sidebar-thread-selected') === 'true') {
1520
1699
  const message = [...document.querySelectorAll('[data-content-search-unit-key]')].find(node => node.getAttribute('data-content-search-unit-key') === `${source.turnId}:${source.itemId}`);
1521
- if (message) { message.scrollIntoView({ block: 'center', behavior: 'smooth' }); const previous = message.style.outline; message.style.outline = '2px solid #0169cc'; setTimeout(() => { if (message.style.outline === '2px solid rgb(1, 105, 204)') message.style.outline = previous; }, 3000); analysisMessage.textContent = S('locatedMessage'); return; }
1700
+ if (message) { message.scrollIntoView({ block: 'center', behavior: 'smooth' }); const previous = message.style.outline; const highlight = `2px solid ${currentAccent || '#0169cc'}`; message.style.outline = highlight; setTimeout(() => { if (message.style.outline === highlight || message.style.outline.startsWith('2px solid')) message.style.outline = previous; }, 3000); analysisMessage.textContent = S('locatedMessage'); return; }
1522
1701
  }
1523
1702
  await new Promise(resolve => setTimeout(resolve, 100));
1524
1703
  }
@@ -1530,7 +1709,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1530
1709
  element('span', null, row, 'task-dot'); const content = element('div', null, row, 'task-content');
1531
1710
  const title = element('div', null, content, 'task-title'); title.title = task.title;
1532
1711
  const track = element('div', null, title, 'task-track');
1533
- const text = task.summary || task.title;
1712
+ const text = task.title || task.summary;
1534
1713
  element('span', text, track, 'task-copy');
1535
1714
  element('div', taskLabels[task.status] || S('taskUnknown'), content, 'task-meta');
1536
1715
  const ref = task.evidenceRefs?.find(value => sources?.[value]?.turnId);
@@ -1611,8 +1790,8 @@ function installCodexSessionStatus(version, restored, embedded) {
1611
1790
  updateDraft(target, { progress: value, state });
1612
1791
  };
1613
1792
  let dragging = false;
1614
- slider.onpointerdown = () => { dragging = true; };
1615
- const endDrag = () => { dragging = false; }; slider.onpointerup = endDrag; slider.onpointercancel = endDrag; slider.onlostpointercapture = endDrag;
1793
+ slider.onpointerdown = () => { dragging = true; range.classList.add('is-dragging'); };
1794
+ const endDrag = () => { dragging = false; range.classList.remove('is-dragging'); }; slider.onpointerup = endDrag; slider.onpointercancel = endDrag; slider.onlostpointercapture = endDrag;
1616
1795
  slider.oninput = () => { const value = Number(slider.value), nearest = Math.round(value / 25) * 25; setProgress(presentation ? presentation.progressValue(value, dragging) : dragging && Math.abs(value - nearest) <= 2 ? nearest : value); };
1617
1796
  progress.oninput = () => { const raw = progress.value.trim(); if (!raw) setProgress(null); else if (Number.isInteger(Number(raw)) && Number(raw) >= 0 && Number(raw) <= 100) setProgress(Number(raw)); else target.dirty = true; };
1618
1797
  unknown.onclick = () => setProgress(null);
@@ -1626,6 +1805,8 @@ function installCodexSessionStatus(version, restored, embedded) {
1626
1805
  try { await harness.openPane({ entry, request: target.request }); if (panel === target) closePanel(); }
1627
1806
  catch (error) { if (panel === target) { openPane.disabled = false; analysisMessage.textContent = error.message; } }
1628
1807
  };
1808
+ // 完整子树与主题属性就绪后一次性挂载进文档,杜绝首帧按默认暗底渲染后再切浅色的闪烁。
1809
+ (embedded?.container || document.body).append(root);
1629
1810
  // 首次历史读取前以当前快照为基线:读取期间到达的新版快照会触发补读。
1630
1811
  target.syncVersion = panelVersion(entry.key);
1631
1812
  if (embedded?.analysisState) showHistory(embedded.analysisState); else pollHistory();
@@ -1684,14 +1865,30 @@ function installCodexSessionStatus(version, restored, embedded) {
1684
1865
  if (records.every(r => r.target.closest?.('[data-codex-session-status], [data-codex-session-status-panel]'))) return;
1685
1866
  schedule();
1686
1867
  });
1687
- const filter = harness?.attributeFilter || ['data-app-action-sidebar-thread-selected', 'data-app-action-sidebar-thread-id', 'data-app-action-sidebar-thread-host-id', 'data-app-action-sidebar-thread-title', 'hidden', 'aria-expanded', 'style', 'class', 'data-theme'];
1868
+ const rootObserver = !embedded ? new MutationObserver(() => {
1869
+ const mode = panel?.root.getAttribute('data-color-mode') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
1870
+ syncAccent(panel?.root, mode === 'dark');
1871
+ for (const entry of mounted.values()) {
1872
+ entry.host?.style.setProperty('--accent', currentAccent);
1873
+ if (snapshot.analyzingKeys?.includes(entry.key)) makeRing(entry.button, recordFor(entry.key), false, true);
1874
+ }
1875
+ }) : null;
1876
+ const headObserver = !embedded && document.head ? new MutationObserver(() => {
1877
+ const mode = panel?.root.getAttribute('data-color-mode') || (matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
1878
+ syncAccent(panel?.root, mode === 'dark');
1879
+ for (const entry of mounted.values()) entry.host?.style.setProperty('--accent', currentAccent);
1880
+ }) : null;
1881
+ const filter = harness?.attributeFilter || ['data-app-action-sidebar-thread-selected', 'data-app-action-sidebar-thread-id', 'data-app-action-sidebar-thread-host-id', 'data-app-action-sidebar-thread-title', 'hidden', 'aria-expanded', 'style', 'class', 'data-theme', 'data-mode'];
1688
1882
  if (!embedded) {
1689
1883
  observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: filter });
1884
+ rootObserver?.observe(document.documentElement, { attributes: true, attributeFilter: ['style', 'class', 'data-theme', 'data-mode', 'data-appearance-preset'] });
1885
+ headObserver?.observe(document.head, { childList: true, subtree: true, characterData: true });
1690
1886
  document.addEventListener('pointerdown', onOutside, true);
1691
1887
  document.addEventListener('keydown', onKey, true);
1692
1888
  document.addEventListener('scroll', onScroll, true);
1693
1889
  }
1694
1890
  window.addEventListener('resize', positionPanel);
1891
+ syncAccent(null, matchMedia('(prefers-color-scheme: dark)').matches);
1695
1892
  const api = {
1696
1893
  receive(next) { receive(next); localCards?.receive(next); },
1697
1894
  receiveCardEvent({ snapshot: next, analysisState, session }) {
@@ -1707,7 +1904,19 @@ function installCodexSessionStatus(version, restored, embedded) {
1707
1904
  embedded.streamConnected = false;
1708
1905
  if (panel?.analyzing) panel.pollHistory();
1709
1906
  },
1710
- setTheme(theme) { if (embedded && embedded.theme !== theme && ['light', 'dark'].includes(theme)) { embedded.theme = theme; positionPanel(); } },
1907
+ setTheme(theme) {
1908
+ if (!embedded) return;
1909
+ if (['light', 'dark'].includes(theme) && embedded.theme !== theme) {
1910
+ embedded.theme = theme;
1911
+ positionPanel();
1912
+ } else if (panel?.root) {
1913
+ if (panel.root.getAttribute('data-color-mode') !== (embedded.theme || theme) && ['light', 'dark'].includes(embedded.theme || theme)) {
1914
+ positionPanel();
1915
+ } else {
1916
+ syncAccent(panel.root, (embedded.theme || 'dark') === 'dark');
1917
+ }
1918
+ }
1919
+ },
1711
1920
  reply(message) {
1712
1921
  localCards?.reply(message);
1713
1922
  const { requestId, error, errorInfo, session, snapshot: next, analysisState, projectGit, updateInfo, navigation, pane } = message;
@@ -1725,7 +1934,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1725
1934
  return { snapshot, panel: active, panelStates: [...panelStates], localCards: localCards?.exportState() };
1726
1935
  },
1727
1936
  destroy() {
1728
- destroyed = true; localCards?.destroy(); harness?.dispose?.(); observer.disconnect(); cancelAnimationFrame(frame);
1937
+ destroyed = true; localCards?.destroy(); harness?.dispose?.(); observer.disconnect(); rootObserver?.disconnect(); headObserver?.disconnect(); cancelAnimationFrame(frame);
1729
1938
  if (panel) { rememberPanel(panel); panelEvent('dispose', panel.entry); clearTimeout(panel.pollTimer); clearTimeout(panel.updateTimer); cancelAnimationFrame(panel.marqueeFrame); panel.resizeObserver?.disconnect(); panel.root.remove(); panel.entry.button?.setAttribute('aria-expanded', 'false'); panel = null; }
1730
1939
  for (const entry of [...mounted.values()]) unmount(entry);
1731
1940
  document.removeEventListener('pointerdown', onOutside, true); document.removeEventListener('keydown', onKey, true);
@@ -1736,7 +1945,7 @@ function installCodexSessionStatus(version, restored, embedded) {
1736
1945
  }
1737
1946
  };
1738
1947
  if (!embedded?.independent) window.__codexSessionStatus = api;
1739
- if (harness?.globalName) window[harness.globalName] = api;
1948
+ if (!embedded?.independent && harness?.globalName) window[harness.globalName] = api;
1740
1949
  if (embedded) {
1741
1950
  receive(embedded.snapshot);
1742
1951
  openPanel({ key: embedded.key, title: embedded.title });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-things",
3
- "version": "1.2.2",
3
+ "version": "1.3.2",
4
4
  "description": "Session task progress and checklists for ChatGPT, Antigravity and Claude Desktop on macOS.",
5
5
  "license": "MIT",
6
6
  "author": "snuffpic",
@@ -5,12 +5,24 @@ const { createPresentation } = require('../src/ui-foundation.cjs');
5
5
 
6
6
  function buildSharedUi() {
7
7
  const target = path.join(__dirname, '../mods/agent-things-ui/hooks/foundation.js');
8
- const source = `// Generated from src/ui-foundation.cjs. Edit the shared source.\nconst presentation = (${createPresentation.toString()})();\nexport const { lang, labels, colors, taskLabels, strings, locales, layout, accent, t, format, forLang, formatDate, progressValue, progressState, draftTransition, analysisDisabled } = presentation;\n`;
8
+ const source = `// Generated from src/ui-foundation.cjs. Edit the shared source.\nconst presentation = (${createPresentation.toString()})();\nexport const { lang, labels, colors, taskLabels, strings, locales, layout, accent, claudeCodeThemes, normalizeHexColor, resolveAccentPalette, t, format, forLang, formatDate, progressValue, progressState, draftTransition, analysisDisabled } = presentation;\n`;
9
9
  fs.writeFileSync(target, source);
10
10
 
11
11
  const sidecarI18nTarget = path.join(__dirname, '../src/plugins/things/sidecars/things_board/ui-i18n.mjs');
12
12
  const sidecarSource = `// Generated from src/ui-foundation.cjs. Edit the shared source.\nexport const createPresentation = ${createPresentation.toString()};\nexport function getUiForLang(lang) {\n const base = createPresentation(lang);\n return base.forLang ? { ...base, ...base.forLang(lang) } : base;\n}\n`;
13
13
  fs.writeFileSync(sidecarI18nTarget, sidecarSource);
14
+
15
+ const claudeHarnessTarget = path.join(__dirname, '../src/harnesses/claude/claude-harness.js');
16
+ if (fs.existsSync(claudeHarnessTarget)) {
17
+ const startTag = '// <generated-presentation-fallback>';
18
+ const endTag = '// </generated-presentation-fallback>';
19
+ const block = `${startTag}\nif (typeof globalThis !== 'undefined' && !globalThis.__agentThingsPresentation) {\n globalThis.__agentThingsPresentation = (${createPresentation.toString()})(globalThis.__agentThingsLang);\n}\n${endTag}\n`;
20
+ let existing = fs.readFileSync(claudeHarnessTarget, 'utf8');
21
+ const startIdx = existing.indexOf(startTag);
22
+ if (startIdx >= 0) existing = existing.slice(0, startIdx).replace(/\s+$/, '\n');
23
+ else existing = existing.replace(/\s+$/, '\n');
24
+ fs.writeFileSync(claudeHarnessTarget, `${existing}\n${block}`);
25
+ }
14
26
  }
15
27
  if (require.main === module) buildSharedUi();
16
28
  module.exports = { buildSharedUi };
@@ -5,6 +5,8 @@ description: Open and embed the Agent Things session progress card, or get, crea
5
5
 
6
6
  # Agent Things (`/things`)
7
7
 
8
- When the user runs `/things` or asks to view the current session card, immediately call the `render_things_card` tool on the Agent Things `session-status` MCP with `conversation_id` set to the current session ID. Once it succeeds, output the returned `user_markdown` verbatim to the user. Opening the card only reads existing records; an empty session displays "No progress recorded yet", and writes/analysis are triggered by the user inside the card. Never run extra shell scripts, file searches, or ad-hoc deductions when opening the card.
8
+ When the user runs `/things` or asks to view the current session card:
9
+ - If the hook fast-path in the current context has already injected the pre-generated `<agent-embed ...>` and status markdown for this turn, immediately output that full markdown verbatim without reading any files or calling any MCP tools.
10
+ - Otherwise, immediately call the `render_things_card` tool on the Agent Things `session-status` MCP (calling the native eager tool directly when exposed, without reading schema files or indirection) with `conversation_id` set to the current session ID, and output the returned `user_markdown` verbatim to the user. Opening the card only reads existing records; an empty session displays "No progress recorded yet", and writes/analysis are triggered by the user inside the card. Never run extra shell scripts, file searches, or ad-hoc deductions when opening the card.
9
11
 
10
12
  When the user explicitly asks to query, create, update, or clear the Progress Checklist, or check whether the session is ready to archive, follow the [Agent Things Progress Checklist Guide](checklist.md) using the `session-status` MCP workflow.
@@ -5,6 +5,8 @@ description: 唤起并内嵌渲染 Agent Things 会话任务进度卡片,也
5
5
 
6
6
  # Agent Things (`/things`)
7
7
 
8
- 用户输入 `/things` 或要求查看当前会话卡片时,直接调用 Agent Things 的 `session-status` MCP 工具 `render_things_card`,参数为 `conversation_id`(当前会话 ID)。工具调用成功后,直接将返回的 `user_markdown` 原样输出给用户。打开卡片只读取已有记录,空会话直接显示「尚未记录进展」,写入和分析由用户在卡片中触发。严禁执行任何额外的终端脚本、文件搜索或推演操作。
8
+ 用户输入 `/things` 或要求查看当前会话卡片时:
9
+ - 若当前上下文的 Hook 快速通道已直接提供本次预生成的 `<agent-embed ...>` 与进度摘要 Markdown,无需调用任何文件读取或 MCP 工具,直接原样输出该完整 Markdown 即可;
10
+ - 否则直接调用 Agent Things 的 `session-status` MCP 工具 `render_things_card`(若已注册为原生 Eager 工具如 `mcp_session-status_render_things_card` 则直接调用,无需通过 `call_mcp_tool` 跳转或重复读取技能/Schema),参数为 `conversation_id`(当前会话 ID),并将返回的 `user_markdown` 原样输出给用户。打开卡片只读取已有记录,空会话直接显示「尚未记录进展」,写入和分析由用户在卡片中触发。严禁执行任何额外的终端脚本、文件搜索或推演操作。
9
11
 
10
12
  用户明确要求查询、建立、更新、清除进度清单或检查会话能否归档时,按 [Agent Things 进度清单操作说明](checklist.md) 执行对应的 `session-status` MCP 流程。
@@ -3,7 +3,8 @@
3
3
  "properties": {
4
4
  "summary": {
5
5
  "type": "string",
6
- "maxLength": 120
6
+ "maxLength": 120,
7
+ "description": "Concise overall summary (at most 120 chars) stating the current goal and remaining work."
7
8
  },
8
9
  "gitPush": {
9
10
  "type": "object",
@@ -41,7 +42,8 @@
41
42
  ]
42
43
  },
43
44
  "title": {
44
- "type": "string"
45
+ "type": "string",
46
+ "description": "Full task title (action + target) preserving full scope; do not put completion status, waiting reasons, or progress remarks here."
45
47
  },
46
48
  "status": {
47
49
  "type": "string",
@@ -61,7 +63,8 @@
61
63
  },
62
64
  "summary": {
63
65
  "type": "string",
64
- "maxLength": 60
66
+ "maxLength": 60,
67
+ "description": "Short standalone task title (at most 60 chars, concise action + target). NEVER write status remarks or blocker notes such as 'merged to main', 'pending decision', 'waiting for test', or 'not scheduled yet'."
65
68
  }
66
69
  },
67
70
  "required": [
@@ -3,7 +3,8 @@
3
3
  "properties": {
4
4
  "summary": {
5
5
  "type": "string",
6
- "maxLength": 40
6
+ "maxLength": 40,
7
+ "description": "不超过40个汉字的整体进展摘要,说明当前核心目标与剩余工作。"
7
8
  },
8
9
  "gitPush": {
9
10
  "type": "object",
@@ -41,7 +42,8 @@
41
42
  ]
42
43
  },
43
44
  "title": {
44
- "type": "string"
45
+ "type": "string",
46
+ "description": "完整任务标题(动作 + 目标对象),保留完整范围;不要包含完成状态、等待原因或进度评论。"
45
47
  },
46
48
  "status": {
47
49
  "type": "string",
@@ -61,7 +63,8 @@
61
63
  },
62
64
  "summary": {
63
65
  "type": "string",
64
- "maxLength": 20
66
+ "maxLength": 20,
67
+ "description": "不超过20个汉字的简短任务标题(精简版动作 + 对象),供独立识别任务。严禁写成“已合入”“待定”“待实测”“未做,待安排”等纯状态描述或进展批注。"
65
68
  }
66
69
  },
67
70
  "required": [
@@ -14,4 +14,4 @@ Rules:
14
14
  11. `projectGit` is the remote Git state detected by the program. `gitPush` reflects delivery push status: set `pushed` (with supporting `evidenceRefs`) when conversation explicitly reports a successful push or user confirmation of push; set `not_pushed` when explicitly unpushed; otherwise `unknown`. All tasks being done alone does not prove changes were pushed. If new modifications occur after a previous push without a new push, update to `not_pushed`; if uncertain relative to prior pushes, use `unknown`. Ignore non-text attachments such as images and rely on text messages/answers.
15
15
  12. Output strictly according to the JSON Schema with no Markdown wrapper. Totals and percentages are computed by the program after merging the ledger—do not output counts yourself.
16
16
  13. LANGUAGE REQUIREMENT: Write `summary`, every task's `title`, and every task's short `summary` in clear, concise **English** (even if the source conversation is in Chinese or mixed languages). If `previousLedger` contains non-English titles or summaries, rewrite all affected task titles, short `summary` strings, and top-level `summary` into English while keeping their existing `knownTaskId`.
17
- 14. For each output task, provide both a full `title` and a concise short `summary`: keep each task `summary` under 60 characters (at most 2 short clauses) capturing both action and target so it stands alone cleanly (e.g., "Verify full session analysis", "Export delivery checklist"). Keep the full task scope in `title`, and represent state exclusively via `status`.
17
+ 14. For each output task, provide both a full `title` and a concise short `summary`: BOTH must name the task as "action + target", while progress state and blockers belong strictly in `status`. Keep the full scope in `title`; write task `summary` as a short standalone task title under 60 characters (at most 2 short clauses) capturing both action and target (e.g., "Verify full session analysis", "Export delivery checklist", "Fix Linux workspace guard"). NEVER write status notes or deferral phrases like "merged to main", "pending decision", "waiting for test", or "not scheduled" in `summary`; if `previousLedger` contains status-only `summary` text, keep its `knownTaskId` and rewrite `summary` into a proper action+target short title.
@@ -14,5 +14,5 @@
14
14
  11. projectGit 是程序检测的项目远端配置。gitPush 描述当前交付内容的推送状态:对话明确报告推送成功、或用户确认已推送时为 pushed,并引用对应事件;明确尚未推送为 not_pushed,其余为 unknown。任务全部完成不能单独证明已经推送。之后出现的新改动尚未再次推送时,应更新为 not_pushed;当前工作与历史推送的关系不明确时用 unknown。可结合上一份账本的 gitPush 和本批事件进行增量更新。图片等非文本附件不纳入分析,依据对话文本和答复识别任务。
15
15
  12. 严格按JSON Schema输出本批任务增量与当前摘要,不附Markdown。总数和比例由程序合并账本后计算,不自行输出计数。模型结果的生效顺序由程序根据用户操作序号决定。
16
16
 
17
- 13. 每个输出任务同时提供完整 title 与简短 summary;任务 summary 不超过20个汉字、最多2个短句,必须概括任务动作和对象,供独立识别任务,例如“验收完整会话分析”“导出交付清单”。title 保留完整任务范围。状态统一由 status 表达。
17
+ 13. 每个输出任务同时提供完整 title 与简短 summary:两者都必须写成“动作+对象”的任务名称,状态与阻塞原因统一只通过 status 表达。title 保留完整任务范围;任务 summary 是不超过20个汉字(最多2个短句)的简短任务标题,必须让人不看上下文就能认出“要做什么事”(例如“验收完整会话分析”“导出交付清单”“修复Linux守卫报错”),严禁写成“已合入main”“等锚点再定”“待用户确认”“未做,待安排”等纯状态描述或进展批注;若 previousLedger 中已有任务的 summary 属于纯状态描述,请保留其 knownTaskId 并一并改写为规范的短任务标题。
18
18
  14. 语言要求:顶层 summary、每项任务的 title 与短 summary 一律用简体中文书写(即使原对话是英文或中英混合);代码标识、命令、文件名和产品名保留原文。previousLedger 中的任务标题、短总结或顶层 summary 不是中文时,保留其 knownTaskId,将受影响任务的 title、短 summary 及顶层 summary 改写为中文后一并返回。