@fbincon/claude-code-statusline 3.1.4 → 3.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.
- package/README.md +73 -68
- package/candidate.json +197 -159
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js +3 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/explain.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/explain.js +27 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/explain.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +4 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +12 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +12 -9
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +16 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +35 -19
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/messages.ts +12 -8
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +2 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +5 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/explanation.ts +35 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +82 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/text-input.ts +68 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +26 -4
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +450 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/session.ts +7 -4
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +19 -16
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +25 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +6 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/surface.ts +16 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +3 -3
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +31 -13
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +65 -16
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +21 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/explanation.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/explanation.js +41 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/explanation.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.d.ts +21 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +105 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text-input.d.ts +32 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text-input.js +89 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text-input.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +444 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +450 -6
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +3 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +8 -3
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.d.ts +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js +37 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +22 -7
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.d.ts +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +7 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +35 -12
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js +35 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +75 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +75 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +75 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +75 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +75 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +75 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js +11 -3
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +15 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js +4 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js +15 -5
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +3 -3
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/session.d.ts +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js +40 -3
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +6 -2
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js +87 -40
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { explanationLines } from '../../lib/editor/explanation.ts';
|
|
2
|
+
import { quickView } from '../../lib/editor/quick-setup.ts';
|
|
3
|
+
import { inputView, textInput } from '../../lib/editor/text-input.ts';
|
|
1
4
|
import type { ClientElements, RenderElement, TextProps } from 'claude-code';
|
|
2
5
|
import type { View } from '../../lib/session.ts';
|
|
3
6
|
import { preferenceChanged } from '../../lib/preferences.ts';
|
|
@@ -33,7 +36,14 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
33
36
|
shortcuts(ui, [{ key: 'Q', label: tr("native.ui.client.draw.close") }], columns, ''),
|
|
34
37
|
],
|
|
35
38
|
});
|
|
36
|
-
const
|
|
39
|
+
const inputDisplay = (width: number) => {
|
|
40
|
+
const input = view.input;
|
|
41
|
+
if (!input || input.kind === 'category') return '';
|
|
42
|
+
const value = input.kind === 'search' ? e.search[input.scope] : input.kind === 'numeric' ? e.buffers[input.field] : input.buffer;
|
|
43
|
+
const edit = input.edit?.value === value ? {...input.edit} : textInput(value);
|
|
44
|
+
return inputView(edit, width);
|
|
45
|
+
};
|
|
46
|
+
const pending = (view.input?.kind === 'field' && view.input.original !== undefined && view.input.buffer !== view.input.original) || e.modified || view.preferences.some(preferenceChanged);
|
|
37
47
|
const selectedPreference = view.preferences.find((p) => 'host-' + p.row.key === e.setting);
|
|
38
48
|
const notice = e.review ? tr('review.intro') :
|
|
39
49
|
Object.entries(e.fieldErrors).map(([key, error]) => `${key}: ${renderMessage(e.fieldErrorMessages[key as keyof typeof e.fieldErrorMessages] ?? error ?? '', view.language ?? 'en')}`).join(' · ') ||
|
|
@@ -45,7 +55,16 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
45
55
|
: '');
|
|
46
56
|
const content: RenderElement[] = [];
|
|
47
57
|
let title = '';
|
|
48
|
-
if
|
|
58
|
+
if(e.explanation) {
|
|
59
|
+
title=tr('explain.title');
|
|
60
|
+
const lines=explanationLines(e,view.language ?? 'en',inner), capacity=Math.max(1,layout.bodyRows-1);
|
|
61
|
+
const start=Math.min(e.explanation.scroll,Math.max(0,lines.length-capacity));
|
|
62
|
+
content.push(...lines.slice(start,start+capacity).map(text=>line(text)));
|
|
63
|
+
content.push(line(`${start+1}–${Math.min(lines.length,start+capacity)}/${lines.length}`,styles.muted));
|
|
64
|
+
} else if (e.quick) {
|
|
65
|
+
title=tr('quick.title')+' · '+tr('quick.'+e.quick.step);
|
|
66
|
+
content.push(...quickView(e.quick,view.language ?? 'en',inner,layout.bodyRows).map(row=>line(row.text,rowStyle(row.selected))));
|
|
67
|
+
} else if (e.review) {
|
|
49
68
|
title = tr('review.title');
|
|
50
69
|
const review = e.review, lines = reviewRows(review, view.language ?? 'en', inner), capacity = Math.max(1, layout.bodyRows - 1);
|
|
51
70
|
const start = Math.min(review.scroll, Math.max(0, lines.length - capacity));
|
|
@@ -91,7 +110,7 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
91
110
|
const label = `${e.setting === row.key ? '›' : ' '} ${column(row.label + ':', labelWidth)} `;
|
|
92
111
|
const spans: TextSpan[] = [
|
|
93
112
|
{ text: label },
|
|
94
|
-
{ text:
|
|
113
|
+
{ text: (editing ? inputDisplay(Math.max(1, inner - displayWidth(label))) : displayed) + (preference && preferenceChanged(preference) ? ' *' : '') },
|
|
95
114
|
];
|
|
96
115
|
content.push(ui.Box({
|
|
97
116
|
key: 'setting-' + row.key, flexShrink: 0,
|
|
@@ -108,7 +127,7 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
108
127
|
content.push(shortcuts(ui, [
|
|
109
128
|
{key: 'Ctrl+F', label: tr('catalog.categories.' + e.category[scope]), short: e.category[scope] === 'all' ? tr('values.all') : clip(tr('catalog.categories.' + e.category[scope]), 8)},
|
|
110
129
|
{key: '/', label: tr('native.ui.client.draw.search')},
|
|
111
|
-
], inner, tr('native.ui.client.draw.filter') +
|
|
130
|
+
], inner, view.input?.kind === 'search' ? tr('native.ui.client.draw.filter') + inputDisplay(Math.max(1, inner - displayWidth(tr('native.ui.client.draw.filter')))) : tr('native.ui.client.draw.filter') + e.search[scope] + ' '));
|
|
112
131
|
if (layout.tableHeading) content.push(line(tr("native.ui.client.draw.on_item"), { ...styles.muted, bold: true }));
|
|
113
132
|
const window = pageWindow(visible.map((item) => item.id), e.selected[scope], layout.itemCapacity);
|
|
114
133
|
for (const {item, match} of matches.slice(window.start, window.end))
|
|
@@ -121,7 +140,7 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
121
140
|
if (layout.showDetails) content.push(line(current ? tr('native.item_detail', {detail: tr('items.' + scope + '.' + (current.type_id ?? current.id) + '.description'), examples: current.examples.join(' · ')}) : tr('native.empty_detail'), styles.muted));
|
|
122
141
|
if (layout.showSummary) content.push(line(tr("native.ui.client.draw.enabled", {page: window.page, pages: window.pages, length: e.items(scope).length}), styles.muted));
|
|
123
142
|
}
|
|
124
|
-
const subagentPreview = e.review ? e.review.previewScope === 'subagent' : e.page === 'subagents';
|
|
143
|
+
const subagentPreview = e.quick ? e.quick.previewScope === 'subagent' : e.review ? e.review.previewScope === 'subagent' : e.page === 'subagents';
|
|
125
144
|
const sample = view.preview ? subagentPreview ? view.preview.subagents : view.preview.main : [];
|
|
126
145
|
const overflow = layout.previewRows > 1 && sample.length > layout.previewRows;
|
|
127
146
|
const shown = sample.slice(0, overflow ? layout.previewRows - 1 : layout.previewRows);
|
|
@@ -147,7 +166,7 @@ export function draw(ui: ClientElements, view: View, columns: number, rows: numb
|
|
|
147
166
|
chromeRow(ui, notice ? line(notice, view.error || Object.keys(e.fieldErrors).length ? styles.error : styles.text)
|
|
148
167
|
: line(tr("native.ui.client.draw.click_region_for_keys"), styles.muted), columns),
|
|
149
168
|
section(ui, 'content-region', title, content, columns, layout.bodyHeight, layout.framed),
|
|
150
|
-
section(ui, 'preview-region', e.review ? tr('review.preview', {scope:tr('review.sections.' + e.review.previewScope)}) : previewTitle(e.draft.display, columns, view.previewBusy, background, view.language), preview, columns, layout.previewHeight, layout.framed, true),
|
|
169
|
+
section(ui, 'preview-region', e.review ? tr('review.preview', {scope:tr('review.sections.' + e.review.previewScope)}) : previewTitle((e.quick?.candidate ?? e.draft).display, columns, view.previewBusy, background, view.language), preview, columns, layout.previewHeight, layout.framed, true),
|
|
151
170
|
ui.Box({
|
|
152
171
|
key: 'shortcut-region', width: columns, height: layout.footerRows,
|
|
153
172
|
backgroundColor: styles.text.backgroundColor,
|
|
@@ -17,18 +17,20 @@ export function editorShortcuts(view: View): Shortcut[][] {
|
|
|
17
17
|
{ key: 'Q', label: 'close (blocked)', short: 'blocked' },
|
|
18
18
|
focus,
|
|
19
19
|
]];
|
|
20
|
+
if (e.quick) return [[{key:'Enter',label:'accept'},{key:'Backspace',label:'back'},{key:'Ctrl+G',label:'cancel'},focus],[{key:'↑↓',label:'select'},{key:'←→',label:'adjust'},{key:'Tab',label:'preview'},{key:'PgUp/PgDn',label:'scroll'}]];
|
|
20
21
|
if (e.review) return [
|
|
21
22
|
[{key:'A', label:'accept draft', short:'accept'}, {key:'Q', label:'cancel review', short:'cancel'}],
|
|
22
23
|
[{key:'Enter', label:'details'}, {key:'↑↓', label:'section'}],
|
|
23
24
|
[{key:'PgUp/PgDn', label:'scroll'}, {key:'Tab', label:'preview'}], [focus],
|
|
24
25
|
];
|
|
25
26
|
if (view.input?.kind === 'category') return [[{key: 'Enter', label: 'accept'}, {key: 'Ctrl+G', label: 'cancel'}, focus], [{key: '↑↓', label: 'select'}]];
|
|
26
|
-
if (e.guidanceScroll !== null) return [[{key:'Ctrl+G', label:'back'}, focus], [{key:'↑↓', label:'scroll'}, {key:'PgUp/PgDn', label:'page'}]];
|
|
27
|
+
if (e.guidanceScroll !== null || e.explanation) return [[{key:'Ctrl+G', label:'back'}, focus], [{key:'↑↓', label:'scroll'}, {key:'PgUp/PgDn', label:'page'}]];
|
|
27
28
|
if (view.input) return [[
|
|
28
29
|
{ key: 'Enter', label: 'accept' },
|
|
29
30
|
{ key: 'Ctrl+G', label: 'cancel editing', short: 'cancel' },
|
|
30
31
|
{ key: 'Ctrl+U', label: 'clear' },
|
|
31
|
-
{ key: 'Backspace', label: 'delete', short: 'del' },
|
|
32
|
+
{ key: 'Backspace/Delete', label: 'delete', short: 'del' },
|
|
33
|
+
{ key: '←→ Home/End', label: 'edit' },
|
|
32
34
|
focus,
|
|
33
35
|
]];
|
|
34
36
|
if(e.adding)return [[{key:'Enter',label:'add'},{key:'Ctrl+G',label:'back'},focus],[{key:'↑↓',label:'select'},{key:'/',label:'search'},{key:'Ctrl+F',label:'category'},{key:'Ctrl+E',label:'details'}]];
|
|
@@ -41,6 +43,7 @@ export function editorShortcuts(view: View): Shortcut[][] {
|
|
|
41
43
|
focus,
|
|
42
44
|
];
|
|
43
45
|
const contextual: Shortcut[] = [{ key: 'Tab', label: 'page' }];
|
|
46
|
+
if(!e.detail) contextual.push({key:'Ctrl+P',label:'quick setup'});
|
|
44
47
|
if (!e.detail && (e.page === 'main' || e.page === 'subagents')) {
|
|
45
48
|
contextual.push(
|
|
46
49
|
{ key: 'A/D/X', label: 'add/copy/remove', short:'add/copy/remove' },
|
|
@@ -75,7 +78,7 @@ export function editorLayout(view: View, columns: number, rows: number) {
|
|
|
75
78
|
const limit = Math.max(1, rows - (framed ? 10 : 8));
|
|
76
79
|
let footer = shortcutRows(groups, columns);
|
|
77
80
|
if (footer.length > limit) footer = shortcutRows(groups, columns, true);
|
|
78
|
-
for (const key of ['V', 'R', 'Esc', '↑↓', '←→', '/']) {
|
|
81
|
+
for (const key of ['V', 'R', 'Esc', '↑↓', '←→', '/', '←→ Home/End', 'Ctrl+U']) {
|
|
79
82
|
if (footer.length <= limit) break;
|
|
80
83
|
groups = groups.map((group) => group.filter((hint) => hint.key !== key));
|
|
81
84
|
footer = shortcutRows(groups, columns, true);
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/surface.ts
CHANGED
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
keyEvents,
|
|
7
7
|
MAX_BATCH,
|
|
8
8
|
MAX_PENDING,
|
|
9
|
+
MAX_PENDING_TEXT,
|
|
9
10
|
} from '../../lib/client/messages.ts';
|
|
10
11
|
import type { KeyMessage } from '../../lib/client/messages.ts';
|
|
11
12
|
import { draw } from './draw.ts';
|
|
@@ -43,25 +44,37 @@ export default function StatuslineClient(
|
|
|
43
44
|
);
|
|
44
45
|
const post = () => {
|
|
45
46
|
if (!active.pending.length) return;
|
|
47
|
+
let budget=48000;
|
|
48
|
+
const batch: KeyMessage[]=[];
|
|
49
|
+
for(const item of active.pending.slice(0,MAX_BATCH)) {
|
|
50
|
+
const size=JSON.stringify(item).length;
|
|
51
|
+
if(size>budget) break;
|
|
52
|
+
budget-=size;batch.push(item);
|
|
53
|
+
}
|
|
46
54
|
surface.post({
|
|
47
55
|
epoch: active.epoch,
|
|
48
56
|
columns: surface.columns || active.latest.columns,
|
|
49
57
|
rows: surface.rows || active.latest.rows,
|
|
50
|
-
events:
|
|
58
|
+
events: batch.map(({ seq, event }) => ({
|
|
51
59
|
seq,
|
|
52
60
|
event: {
|
|
53
61
|
key: event.key,
|
|
54
62
|
...(event.ctrl ? { ctrl: true } : {}),
|
|
55
63
|
...(event.shift ? { shift: true } : {}),
|
|
56
64
|
...(event.meta ? { meta: true } : {}),
|
|
65
|
+
...(event.text ? { text: true } : {}),
|
|
66
|
+
...(event.overflow ? { overflow: true } : {}),
|
|
57
67
|
},
|
|
58
68
|
})),
|
|
59
69
|
});
|
|
60
70
|
};
|
|
61
71
|
surface.onKey((event) => {
|
|
62
|
-
if (active.latest.view.busy
|
|
72
|
+
if (active.latest.view.busy) return;
|
|
73
|
+
if (active.pending.length >= MAX_PENDING || active.pending.reduce((sum,item)=>sum+item.event.key.length,0)+event.key.length>MAX_PENDING_TEXT) {
|
|
74
|
+
if (!active.pending.some(item => item.event.overflow)) active.pending.push({seq: active.next++, event: {key: 'input-overflow', overflow: true}});
|
|
75
|
+
post(); return;
|
|
76
|
+
}
|
|
63
77
|
for (const key of keyEvents(event)) {
|
|
64
|
-
if (active.pending.length >= MAX_PENDING) break;
|
|
65
78
|
active.pending.push({ seq: active.next++, event: key });
|
|
66
79
|
}
|
|
67
80
|
post();
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema_version": 1,
|
|
3
|
-
"backend_version": "3.
|
|
4
|
-
"mod_version": "3.
|
|
3
|
+
"backend_version": "3.2.0",
|
|
4
|
+
"mod_version": "3.2.0",
|
|
5
5
|
"protocol_version": 2,
|
|
6
6
|
"files": {
|
|
7
|
-
".claude-plugin/plugin.json": "
|
|
7
|
+
".claude-plugin/plugin.json": "94248ede15391c93d97f60122cf2d3ec2dbb0841b6989c800bf75ee018dee359",
|
|
8
8
|
"hooks/hooks.json": "b57d3d1b4b71a64712aab61b6c53be6b74ab56c8c2b38deec60e343cf055955d",
|
|
9
9
|
"hooks/observe.ts": "7d7cfcff12a9bb89963461fe6cacdebe47a464798bafbce1028c2fa67753c0cd",
|
|
10
10
|
"lib/checklists.ts": "88dc407841f917527e70ed5f03c55cdabb9224b077e4765da92f2f5d9654a904",
|
|
@@ -7,4 +7,11 @@ export declare const ROWS: {
|
|
|
7
7
|
readonly monitoring: readonly [readonly ["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], readonly ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], readonly ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]];
|
|
8
8
|
readonly 'multi-agent': readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer"]];
|
|
9
9
|
};
|
|
10
|
+
/** Ordered presentation metadata extends the existing preset registry. */
|
|
11
|
+
export declare const PRESET_PRESENTATION: {
|
|
12
|
+
id: string;
|
|
13
|
+
purpose_key: string;
|
|
14
|
+
requirements_key: string;
|
|
15
|
+
example: boolean;
|
|
16
|
+
}[];
|
|
10
17
|
export declare function applyPreset(config: DisplayDraft, name: string, nextId: () => string): DisplayDraft;
|
|
@@ -9,6 +9,11 @@ export const ROWS = {
|
|
|
9
9
|
monitoring: [['context-used', 'five-hour-limit', 'weekly-limit', 'spend-limit'], ['five-hour-reset', 'weekly-reset', 'cache-state', 'cache-expires'], ['session-cost', 'session-duration', 'api-duration', 'api-requests', 'cache-misses']],
|
|
10
10
|
'multi-agent': [['model-with-effort', 'current-dir', 'git'], ['context-remaining', 'tokens', 'task-timer']],
|
|
11
11
|
};
|
|
12
|
+
/** Ordered presentation metadata extends the existing preset registry. */
|
|
13
|
+
export const PRESET_PRESENTATION = ['developer', 'minimal', 'monitoring', 'multi-agent', 'left-right', 'repeated-metrics'].map(id => ({
|
|
14
|
+
id, purpose_key: 'quick.purpose.' + id, requirements_key: 'quick.requirements.' + id,
|
|
15
|
+
example: id === 'left-right' || id === 'repeated-metrics',
|
|
16
|
+
}));
|
|
12
17
|
export function applyPreset(config, name, nextId) {
|
|
13
18
|
if (!Object.hasOwn(ROWS, name))
|
|
14
19
|
fail('errors.presets.unknown_preset_choose', { value0: Object.keys(ROWS).join(', ') });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../../src/config/presets.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;A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CAAC,CAAC,UAAU,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,GAAG,MAAM,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,EAAE,CAAC,CAAC;AACvP,CAAC"}
|
|
@@ -1,33 +1,51 @@
|
|
|
1
1
|
export declare const MAIN_ITEM_IDS: readonly ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-duration", "api-duration", "lines-changed", "agent", "vim-mode", "run-state", "permission-mode", "active-agents", "task-progress", "last-tool", "ttft", "output-rate", "prompt-input-tokens", "prompt-output-tokens", "prompt-cost", "text", "spacer"];
|
|
2
2
|
export declare const SUBAGENT_ITEM_IDS: readonly ["status-elapsed", "status", "name", "model-with-effort", "model", "effort", "context-remaining", "context-used", "context-tokens", "context-window-size", "elapsed", "task", "tokens", "current-dir", "text", "spacer"];
|
|
3
3
|
export declare const PRESETS: readonly [{
|
|
4
|
-
readonly id: "
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
readonly label: "Repeated Metrics";
|
|
11
|
-
readonly rows: readonly [readonly ["input-tokens", "input-tokens"]];
|
|
4
|
+
readonly id: "developer";
|
|
5
|
+
readonly purpose_key: "quick.purpose.developer";
|
|
6
|
+
readonly requirements_key: "quick.requirements.developer";
|
|
7
|
+
readonly example: false;
|
|
8
|
+
readonly label: "Developer";
|
|
9
|
+
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer", "session-cost"]];
|
|
12
10
|
readonly layout_mode: "explicit";
|
|
13
11
|
}, {
|
|
14
12
|
readonly id: "minimal";
|
|
13
|
+
readonly purpose_key: "quick.purpose.minimal";
|
|
14
|
+
readonly requirements_key: "quick.requirements.minimal";
|
|
15
|
+
readonly example: false;
|
|
15
16
|
readonly label: "Minimal";
|
|
16
17
|
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "context-remaining", "task-timer"]];
|
|
17
18
|
readonly layout_mode: "auto";
|
|
18
|
-
}, {
|
|
19
|
-
readonly id: "developer";
|
|
20
|
-
readonly label: "Developer";
|
|
21
|
-
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer", "session-cost"]];
|
|
22
|
-
readonly layout_mode: "explicit";
|
|
23
19
|
}, {
|
|
24
20
|
readonly id: "monitoring";
|
|
21
|
+
readonly purpose_key: "quick.purpose.monitoring";
|
|
22
|
+
readonly requirements_key: "quick.requirements.monitoring";
|
|
23
|
+
readonly example: false;
|
|
25
24
|
readonly label: "Monitoring";
|
|
26
25
|
readonly rows: readonly [readonly ["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], readonly ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], readonly ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]];
|
|
27
26
|
readonly layout_mode: "explicit";
|
|
28
27
|
}, {
|
|
29
28
|
readonly id: "multi-agent";
|
|
29
|
+
readonly purpose_key: "quick.purpose.multi-agent";
|
|
30
|
+
readonly requirements_key: "quick.requirements.multi-agent";
|
|
31
|
+
readonly example: false;
|
|
30
32
|
readonly label: "Multi Agent";
|
|
31
33
|
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer"]];
|
|
32
34
|
readonly layout_mode: "explicit";
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "left-right";
|
|
37
|
+
readonly purpose_key: "quick.purpose.left-right";
|
|
38
|
+
readonly requirements_key: "quick.requirements.left-right";
|
|
39
|
+
readonly example: true;
|
|
40
|
+
readonly label: "Left Right";
|
|
41
|
+
readonly rows: readonly [readonly ["model-with-effort", "git", "spacer", "context-remaining"]];
|
|
42
|
+
readonly layout_mode: "explicit";
|
|
43
|
+
}, {
|
|
44
|
+
readonly id: "repeated-metrics";
|
|
45
|
+
readonly purpose_key: "quick.purpose.repeated-metrics";
|
|
46
|
+
readonly requirements_key: "quick.requirements.repeated-metrics";
|
|
47
|
+
readonly example: true;
|
|
48
|
+
readonly label: "Repeated Metrics";
|
|
49
|
+
readonly rows: readonly [readonly ["input-tokens", "input-tokens"]];
|
|
50
|
+
readonly layout_mode: "explicit";
|
|
33
51
|
}];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
2
|
export const MAIN_ITEM_IDS = ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-duration", "api-duration", "lines-changed", "agent", "vim-mode", "run-state", "permission-mode", "active-agents", "task-progress", "last-tool", "ttft", "output-rate", "prompt-input-tokens", "prompt-output-tokens", "prompt-cost", "text", "spacer"];
|
|
3
3
|
export const SUBAGENT_ITEM_IDS = ["status-elapsed", "status", "name", "model-with-effort", "model", "effort", "context-remaining", "context-used", "context-tokens", "context-window-size", "elapsed", "task", "tokens", "current-dir", "text", "spacer"];
|
|
4
|
-
export const PRESETS = [{ "id": "
|
|
4
|
+
export const PRESETS = [{ "id": "developer", "purpose_key": "quick.purpose.developer", "requirements_key": "quick.requirements.developer", "example": false, "label": "Developer", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer", "session-cost"]], "layout_mode": "explicit" }, { "id": "minimal", "purpose_key": "quick.purpose.minimal", "requirements_key": "quick.requirements.minimal", "example": false, "label": "Minimal", "rows": [["model-with-effort", "current-dir", "context-remaining", "task-timer"]], "layout_mode": "auto" }, { "id": "monitoring", "purpose_key": "quick.purpose.monitoring", "requirements_key": "quick.requirements.monitoring", "example": false, "label": "Monitoring", "rows": [["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]], "layout_mode": "explicit" }, { "id": "multi-agent", "purpose_key": "quick.purpose.multi-agent", "requirements_key": "quick.requirements.multi-agent", "example": false, "label": "Multi Agent", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer"]], "layout_mode": "explicit" }, { "id": "left-right", "purpose_key": "quick.purpose.left-right", "requirements_key": "quick.requirements.left-right", "example": true, "label": "Left Right", "rows": [["model-with-effort", "git", "spacer", "context-remaining"]], "layout_mode": "explicit" }, { "id": "repeated-metrics", "purpose_key": "quick.purpose.repeated-metrics", "requirements_key": "quick.requirements.repeated-metrics", "example": true, "label": "Repeated Metrics", "rows": [["input-tokens", "input-tokens"]], "layout_mode": "explicit" }];
|
|
5
5
|
//# sourceMappingURL=generated-catalog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generated-catalog.js","sourceRoot":"","sources":["../../../src/contracts/generated-catalog.ts"],"names":[],"mappings":"AAAA,2DAA2D;AAC3D,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,mBAAmB,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW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AmB,EAAE,KAAK,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,EAAC,EAAE,EAAC,IAAI,EAAE,kBAAkB,EAAE,aAAa,EAAE,gCAAgC,EAAE,kBAAkB,EAAE,qCAAqC,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,UAAU,EAAC,CAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Language } from "../i18n/registry.js";
|
|
2
|
-
export declare const PROTOCOL_VERSION:
|
|
2
|
+
export declare const PROTOCOL_VERSION: 13;
|
|
3
3
|
export declare const ITEM_DEFAULTS: {
|
|
4
4
|
label: null;
|
|
5
5
|
icon: null;
|
|
@@ -335,35 +335,53 @@ export declare const EDITOR_FIELDS: {
|
|
|
335
335
|
}];
|
|
336
336
|
};
|
|
337
337
|
export declare const PRESETS: readonly [{
|
|
338
|
-
readonly id: "
|
|
339
|
-
readonly
|
|
340
|
-
readonly
|
|
341
|
-
readonly
|
|
342
|
-
|
|
343
|
-
readonly
|
|
344
|
-
readonly label: "Repeated Metrics";
|
|
345
|
-
readonly rows: readonly [readonly ["input-tokens", "input-tokens"]];
|
|
338
|
+
readonly id: "developer";
|
|
339
|
+
readonly purpose_key: "quick.purpose.developer";
|
|
340
|
+
readonly requirements_key: "quick.requirements.developer";
|
|
341
|
+
readonly example: false;
|
|
342
|
+
readonly label: "Developer";
|
|
343
|
+
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer", "session-cost"]];
|
|
346
344
|
readonly layout_mode: "explicit";
|
|
347
345
|
}, {
|
|
348
346
|
readonly id: "minimal";
|
|
347
|
+
readonly purpose_key: "quick.purpose.minimal";
|
|
348
|
+
readonly requirements_key: "quick.requirements.minimal";
|
|
349
|
+
readonly example: false;
|
|
349
350
|
readonly label: "Minimal";
|
|
350
351
|
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "context-remaining", "task-timer"]];
|
|
351
352
|
readonly layout_mode: "auto";
|
|
352
|
-
}, {
|
|
353
|
-
readonly id: "developer";
|
|
354
|
-
readonly label: "Developer";
|
|
355
|
-
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer", "session-cost"]];
|
|
356
|
-
readonly layout_mode: "explicit";
|
|
357
353
|
}, {
|
|
358
354
|
readonly id: "monitoring";
|
|
355
|
+
readonly purpose_key: "quick.purpose.monitoring";
|
|
356
|
+
readonly requirements_key: "quick.requirements.monitoring";
|
|
357
|
+
readonly example: false;
|
|
359
358
|
readonly label: "Monitoring";
|
|
360
359
|
readonly rows: readonly [readonly ["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], readonly ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], readonly ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]];
|
|
361
360
|
readonly layout_mode: "explicit";
|
|
362
361
|
}, {
|
|
363
362
|
readonly id: "multi-agent";
|
|
363
|
+
readonly purpose_key: "quick.purpose.multi-agent";
|
|
364
|
+
readonly requirements_key: "quick.requirements.multi-agent";
|
|
365
|
+
readonly example: false;
|
|
364
366
|
readonly label: "Multi Agent";
|
|
365
367
|
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "tokens", "task-timer"]];
|
|
366
368
|
readonly layout_mode: "explicit";
|
|
369
|
+
}, {
|
|
370
|
+
readonly id: "left-right";
|
|
371
|
+
readonly purpose_key: "quick.purpose.left-right";
|
|
372
|
+
readonly requirements_key: "quick.requirements.left-right";
|
|
373
|
+
readonly example: true;
|
|
374
|
+
readonly label: "Left Right";
|
|
375
|
+
readonly rows: readonly [readonly ["model-with-effort", "git", "spacer", "context-remaining"]];
|
|
376
|
+
readonly layout_mode: "explicit";
|
|
377
|
+
}, {
|
|
378
|
+
readonly id: "repeated-metrics";
|
|
379
|
+
readonly purpose_key: "quick.purpose.repeated-metrics";
|
|
380
|
+
readonly requirements_key: "quick.requirements.repeated-metrics";
|
|
381
|
+
readonly example: true;
|
|
382
|
+
readonly label: "Repeated Metrics";
|
|
383
|
+
readonly rows: readonly [readonly ["input-tokens", "input-tokens"]];
|
|
384
|
+
readonly layout_mode: "explicit";
|
|
367
385
|
}];
|
|
368
386
|
export declare const FORMAT_CHOICES: {
|
|
369
387
|
readonly model_name: readonly ["original", "short"];
|
|
@@ -411,7 +429,7 @@ export declare const SEPARATORSTYLE_VALUES: readonly ["classic", "compact", "pow
|
|
|
411
429
|
export declare const SCOPELABELS_VALUES: readonly ["off", "when-subagents", "always"];
|
|
412
430
|
export declare const STATUSLINELANGUAGE_VALUES: readonly ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"];
|
|
413
431
|
export declare const UNAVAILABLEREASON_VALUES: readonly ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"];
|
|
414
|
-
export type Operation = "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import";
|
|
432
|
+
export type Operation = "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import" | "explain";
|
|
415
433
|
export interface ItemGuidance {
|
|
416
434
|
source_kinds: string[];
|
|
417
435
|
measurement_scope: string;
|
|
@@ -556,6 +574,33 @@ export interface PreviewResult {
|
|
|
556
574
|
main: Span[][];
|
|
557
575
|
subagents: Span[][];
|
|
558
576
|
}
|
|
577
|
+
export declare const SAMPLE_REASONS: readonly ["sample_visible", "sample_empty", "sample_condition_hidden", "sample_truncated", "sample_priority_omitted", "sample_width_omitted", "sample_row_hidden", "sample_spacer"];
|
|
578
|
+
export type SampleReason = typeof SAMPLE_REASONS[number];
|
|
579
|
+
export declare const EXPLAIN_REASONS: readonly ["configured_on", "configured_off", "scope_disabled", "installation_owned", "installation_absent", "installation_foreign", "installation_unknown", "unknown_host_version", "host_supported", "unsupported_host", "host_requirement_unknown", "collector_unknown", "native_timing_on", "native_timing_off", "live_metrics_on", "live_metrics_off", "actual_not_observed"];
|
|
580
|
+
export interface ExplainReason {
|
|
581
|
+
code: string;
|
|
582
|
+
origin: 'configuration' | 'local_configuration' | 'host_capability' | 'unknown';
|
|
583
|
+
}
|
|
584
|
+
export interface InstanceSample {
|
|
585
|
+
row_id: string;
|
|
586
|
+
outcome: SampleReason;
|
|
587
|
+
truncated: boolean;
|
|
588
|
+
}
|
|
589
|
+
export interface ExplainInstance {
|
|
590
|
+
id: string;
|
|
591
|
+
type_id: string;
|
|
592
|
+
enabled: boolean;
|
|
593
|
+
reasons: ExplainReason[];
|
|
594
|
+
samples: InstanceSample[];
|
|
595
|
+
}
|
|
596
|
+
export interface ExplainResult {
|
|
597
|
+
sample: true;
|
|
598
|
+
scope: Scope;
|
|
599
|
+
width: number;
|
|
600
|
+
actual_availability: 'not_observed';
|
|
601
|
+
preview: PreviewResult;
|
|
602
|
+
instances: ExplainInstance[];
|
|
603
|
+
}
|
|
559
604
|
export interface LocalizedMessage {
|
|
560
605
|
key: string;
|
|
561
606
|
params: Record<string, unknown>;
|
|
@@ -590,6 +635,9 @@ export interface EditorField {
|
|
|
590
635
|
nullable: boolean;
|
|
591
636
|
}
|
|
592
637
|
export interface PresetDescription {
|
|
638
|
+
purpose_key: string;
|
|
639
|
+
requirements_key: string;
|
|
640
|
+
example: boolean;
|
|
593
641
|
id: string;
|
|
594
642
|
label: string;
|
|
595
643
|
rows: string[][];
|
|
@@ -639,6 +687,7 @@ export interface ResultMap {
|
|
|
639
687
|
describe: DescribeResult;
|
|
640
688
|
read: ReadResult;
|
|
641
689
|
preview: PreviewResult;
|
|
690
|
+
explain: ExplainResult;
|
|
642
691
|
apply: ApplyResult;
|
|
643
692
|
import: TransferResult;
|
|
644
693
|
review_import: ImportReviewResult;
|
|
@@ -653,7 +702,7 @@ export interface Request {
|
|
|
653
702
|
operation: Operation;
|
|
654
703
|
payload: unknown;
|
|
655
704
|
}
|
|
656
|
-
export type Result = PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult;
|
|
705
|
+
export type Result = ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult;
|
|
657
706
|
export type Response = {
|
|
658
707
|
protocol_version: typeof PROTOCOL_VERSION;
|
|
659
708
|
result: Result;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** Canonical editor protocol and static descriptors. Emit Mod copies with the TS resource generator. */
|
|
2
2
|
import { LANGUAGES } from "../i18n/registry.js";
|
|
3
3
|
import { MAIN_ITEM_IDS as generatedMAIN_ITEM_IDS, SUBAGENT_ITEM_IDS as generatedSUBAGENT_ITEM_IDS, PRESETS as generatedPRESETS } from "./generated-catalog.js";
|
|
4
|
-
export const PROTOCOL_VERSION =
|
|
4
|
+
export const PROTOCOL_VERSION = 13;
|
|
5
5
|
export const ITEM_DEFAULTS = { "label": null, "icon": null, "priority": 50, "max_width": null, "formatting": {}, "foreground": null, "background": null, "visibility": "always", "visibility_threshold": 70 };
|
|
6
6
|
export const VISIBILITY_ITEMS = { "main": { "git": "git-dirty", "git-changes": "git-dirty", "active-agents": "nonzero", "task-progress": "nonzero", "context-used": "used-at-least", "context-remaining": "used-at-least", "five-hour-limit": "used-at-least", "weekly-limit": "used-at-least", "spend-limit": "used-at-least" }, "subagent": { "context-used": "used-at-least", "context-remaining": "used-at-least" } };
|
|
7
7
|
export const GUIDANCE_KEYS = { "source_kinds": ["configuration", "official_input", "local_git", "local_system", "transcript", "local_state", "lifecycle", "native_timing", "live_metrics", "telemetry"], "scopes": ["main", "main_context", "session", "all_sessions", "task", "subagent", "subagent_context", "repository", "local", "latest_request"], "requirements": ["observed_field", "subagent_rows", "agent_context", "configured_effort", "agent_effort_optional", "git_repository", "git_upstream", "git_base", "pull_request", "worktree_session", "usage_records", "task_observation", "native_timing", "complete_waits", "live_metrics", "owned_agents", "checklist_events", "tool_events", "complete_stream", "request_coverage", "existing_telemetry", "gateway", "gateway_284", "valid_window", "warm_cache", "fast_mode", "thinking", "agent_mode", "vim_mode", "context_observation"] };
|
|
@@ -20,4 +20,6 @@ export const SEPARATORSTYLE_VALUES = ["classic", "compact", "powerline"];
|
|
|
20
20
|
export const SCOPELABELS_VALUES = ["off", "when-subagents", "always"];
|
|
21
21
|
export const STATUSLINELANGUAGE_VALUES = LANGUAGES;
|
|
22
22
|
export const UNAVAILABLEREASON_VALUES = ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"];
|
|
23
|
+
export const SAMPLE_REASONS = ['sample_visible', 'sample_empty', 'sample_condition_hidden', 'sample_truncated', 'sample_priority_omitted', 'sample_width_omitted', 'sample_row_hidden', 'sample_spacer'];
|
|
24
|
+
export const EXPLAIN_REASONS = ['configured_on', 'configured_off', 'scope_disabled', 'installation_owned', 'installation_absent', 'installation_foreign', 'installation_unknown', 'unknown_host_version', 'host_supported', 'unsupported_host', 'host_requirement_unknown', 'collector_unknown', 'native_timing_on', 'native_timing_off', 'live_metrics_on', 'live_metrics_off', 'actual_not_observed'];
|
|
23
25
|
//# sourceMappingURL=ui.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../src/contracts/ui.ts"],"names":[],"mappings":"AAAA,wGAAwG;AACxG,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,EAAE,aAAa,IAAI,sBAA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D,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,cAAc,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,0BAA0B,CAAU,CAAC;AAkJzY,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,gBAAgB,EAAC,cAAc,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,yBAAyB,EAAC,sBAAsB,EAAC,mBAAmB,EAAC,eAAe,CAAU,CAAC;AAE3M,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,eAAe,EAAC,gBAAgB,EAAC,gBAAgB,EAAC,oBAAoB,EAAC,qBAAqB,EAAC,sBAAsB,EAAC,sBAAsB,EAAC,sBAAsB,EAAC,gBAAgB,EAAC,kBAAkB,EAAC,0BAA0B,EAAC,mBAAmB,EAAC,kBAAkB,EAAC,mBAAmB,EAAC,iBAAiB,EAAC,kBAAkB,EAAC,qBAAqB,CAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SAMPLE_REASONS, EXPLAIN_REASONS } from '../contracts/ui.js';
|
|
1
2
|
import { text as localizedText } from '../i18n/messages.js';
|
|
2
3
|
/** Protocol parsing only. Host calls stay in the hooks entry for static analysis. */
|
|
3
4
|
import { PROTOCOL_VERSION, MAIN_ITEM_IDS, SUBAGENT_ITEM_IDS, PALETTE_VALUES, THEME_VALUES, POWERLINEGLYPH_VALUES, DIRECTORYSTYLE_VALUES, SEPARATORSTYLE_VALUES, SCOPELABELS_VALUES, STATUSLINELANGUAGE_VALUES, UNAVAILABLEREASON_VALUES, FORMAT_CHOICES, PRESETS, EDITOR_FIELDS, GUIDANCE_KEYS, ITEM_DEFAULTS, } from '../contracts/ui.js';
|
|
@@ -367,6 +368,24 @@ export function parseResponse(operation, process) {
|
|
|
367
368
|
if (!text(result.path) || !result.path)
|
|
368
369
|
fail();
|
|
369
370
|
}
|
|
371
|
+
else if (operation === 'explain') {
|
|
372
|
+
if (!exact(result, ['sample', 'scope', 'width', 'actual_availability', 'preview', 'instances']) || result.sample !== true ||
|
|
373
|
+
!['main', 'subagent'].includes(String(result.scope)) || !Number.isInteger(result.width) || Number(result.width) < 2 || Number(result.width) > 10000 || result.actual_availability !== 'not_observed' ||
|
|
374
|
+
!object(result.preview) || result.preview.sample !== true || !Array.isArray(result.preview.main) || !Array.isArray(result.preview.subagents) ||
|
|
375
|
+
![...result.preview.main, ...result.preview.subagents].every(row => Array.isArray(row) && row.every(isSpan)) ||
|
|
376
|
+
!Array.isArray(result.instances) || result.instances.length > 10000)
|
|
377
|
+
fail();
|
|
378
|
+
const ids = new Set();
|
|
379
|
+
for (const item of result.instances) {
|
|
380
|
+
if (!object(item) || !exact(item, ['id', 'type_id', 'enabled', 'reasons', 'samples']) || !text(item.id) || ids.has(item.id) || !text(item.type_id) || typeof item.enabled !== 'boolean' || !Array.isArray(item.reasons) || !Array.isArray(item.samples))
|
|
381
|
+
fail();
|
|
382
|
+
ids.add(item.id);
|
|
383
|
+
if (!item.reasons.every((reason) => object(reason) && exact(reason, ['code', 'origin']) && EXPLAIN_REASONS.includes(reason.code) && ['configuration', 'local_configuration', 'host_capability', 'unknown'].includes(String(reason.origin))))
|
|
384
|
+
fail();
|
|
385
|
+
if (!item.samples.every((row) => object(row) && exact(row, ['row_id', 'outcome', 'truncated']) && text(row.row_id) && SAMPLE_REASONS.includes(row.outcome) && typeof row.truncated === 'boolean'))
|
|
386
|
+
fail();
|
|
387
|
+
}
|
|
388
|
+
}
|
|
370
389
|
else if (operation === 'preview') {
|
|
371
390
|
if (result.sample !== true ||
|
|
372
391
|
!Array.isArray(result.main) ||
|
|
@@ -379,8 +398,8 @@ export function parseResponse(operation, process) {
|
|
|
379
398
|
!result.backend_version ||
|
|
380
399
|
!isOptions(result.options) ||
|
|
381
400
|
!isCapabilities(result.capabilities) ||
|
|
382
|
-
!selection(result.operations, ['describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import']) ||
|
|
383
|
-
result.operations.length !==
|
|
401
|
+
!selection(result.operations, ['describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain']) ||
|
|
402
|
+
result.operations.length !== 11 ||
|
|
384
403
|
JSON.stringify(result.editor_fields) !== JSON.stringify(EDITOR_FIELDS) ||
|
|
385
404
|
JSON.stringify(result.presets) !== JSON.stringify(PRESETS) ||
|
|
386
405
|
!object(result.formatting_options) ||
|