@fbincon/claude-code-statusline 3.1.4 → 3.3.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 +75 -69
- package/candidate.json +273 -210
- 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/diagnostics/command.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js +100 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/observations.d.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/observations.js +233 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/observations.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.d.ts +12 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js +65 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js +4 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +14 -6
- 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/runtime/usage.d.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.js +1 -8
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.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 +7 -4
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +20 -3
- 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 +40 -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 +66 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +834 -12
- 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/catalog-data.js +46 -4
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js.map +1 -1
- 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 +32 -14
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +2 -2
- 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 +127 -17
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +5 -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 +50 -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 +828 -6
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +834 -12
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js +10 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.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 +7 -3
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.d.ts +15 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js +110 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.d.ts +15 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js +42 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/host-fields.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/host-fields.js +54 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/host-fields.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +29 -11
- 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 +2 -1
- 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 +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.d.ts +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js +11 -4
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js.map +1 -1
- 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 +139 -2
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +139 -2
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +139 -2
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +139 -2
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +139 -2
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +139 -2
- package/node_modules/@fbincon/statusline-platform/dist/src/diagnostic-files.d.ts +7 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/diagnostic-files.js +29 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/diagnostic-files.js.map +1 -0
- 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
|
@@ -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(RO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C,CAAC,CAAC;IAC7K,OAAO,aAAa,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,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
|
-
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"];
|
|
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", "cache-miss-reason", "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
|
-
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"];
|
|
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", "cache-miss-reason", "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,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAA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 @@
|
|
|
1
1
|
import type { Language } from "../i18n/registry.js";
|
|
2
|
-
export declare const PROTOCOL_VERSION:
|
|
2
|
+
export declare const PROTOCOL_VERSION: 14;
|
|
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"];
|
|
@@ -400,7 +418,7 @@ export type ScopeLabels = "off" | "when-subagents" | "always";
|
|
|
400
418
|
export type StatuslineLanguage = Language;
|
|
401
419
|
export type Scope = "main" | "subagent";
|
|
402
420
|
export type UnavailableReason = "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";
|
|
403
|
-
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"];
|
|
421
|
+
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", "cache-miss-reason", "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"];
|
|
404
422
|
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"];
|
|
405
423
|
export declare const PALETTE_VALUES: readonly ["default", "ansi"];
|
|
406
424
|
export declare const THEME_VALUES: readonly ["classic", "dark", "light", "terminal"];
|
|
@@ -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" | "diagnose";
|
|
415
433
|
export interface ItemGuidance {
|
|
416
434
|
source_kinds: string[];
|
|
417
435
|
measurement_scope: string;
|
|
@@ -556,6 +574,93 @@ 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
|
+
}
|
|
604
|
+
export declare const LAYOUT_REASONS: readonly ["visible", "empty", "condition_hidden", "priority_omitted", "width_omitted", "row_hidden", "spacer"];
|
|
605
|
+
export type LayoutReason = typeof LAYOUT_REASONS[number];
|
|
606
|
+
export interface InstanceLayout {
|
|
607
|
+
row_id: string;
|
|
608
|
+
outcome: LayoutReason;
|
|
609
|
+
truncated: boolean;
|
|
610
|
+
}
|
|
611
|
+
export declare const EVIDENCE_STATUSES: readonly ["observed", "not_observed", "invalid_field", "source_unavailable", "association_unavailable", "session_mismatch", "prompt_mismatch", "stale", "partial", "collector_off", "input_only", "newer_than_input", "unsupported_host", "no_misses", "unidentified"];
|
|
612
|
+
export type EvidenceStatus = typeof EVIDENCE_STATUSES[number];
|
|
613
|
+
export interface DiagnosticEvidence {
|
|
614
|
+
source: string;
|
|
615
|
+
scope: string;
|
|
616
|
+
status: EvidenceStatus;
|
|
617
|
+
observed_at: string | null;
|
|
618
|
+
freshness: 'current' | 'stale' | 'unknown' | 'newer_than_input';
|
|
619
|
+
fields: {
|
|
620
|
+
path: string;
|
|
621
|
+
status: 'observed' | 'not_observed' | 'invalid_field';
|
|
622
|
+
}[];
|
|
623
|
+
}
|
|
624
|
+
export interface DiagnoseInstance {
|
|
625
|
+
id: string;
|
|
626
|
+
type_id: string;
|
|
627
|
+
enabled: boolean;
|
|
628
|
+
reasons: ExplainReason[];
|
|
629
|
+
evidence: DiagnosticEvidence[];
|
|
630
|
+
rows: InstanceLayout[];
|
|
631
|
+
}
|
|
632
|
+
export interface DiagnoseResult {
|
|
633
|
+
sample: false;
|
|
634
|
+
scope: Scope;
|
|
635
|
+
width: number;
|
|
636
|
+
source: string;
|
|
637
|
+
observed_at: string | null;
|
|
638
|
+
diagnosed_at: string;
|
|
639
|
+
session_id: string | null;
|
|
640
|
+
prompt_id: string | null;
|
|
641
|
+
host_version: string | null;
|
|
642
|
+
include_local: boolean;
|
|
643
|
+
output: {
|
|
644
|
+
id: string;
|
|
645
|
+
spans: Span[];
|
|
646
|
+
}[];
|
|
647
|
+
instances: DiagnoseInstance[];
|
|
648
|
+
host_fields: {
|
|
649
|
+
worktree: {
|
|
650
|
+
session_name: string | null;
|
|
651
|
+
git_name: string | null;
|
|
652
|
+
selected_source: string | null;
|
|
653
|
+
};
|
|
654
|
+
cache_miss: {
|
|
655
|
+
status: string;
|
|
656
|
+
causes: string[];
|
|
657
|
+
last_miss_at: number | null;
|
|
658
|
+
tools_added: number | null;
|
|
659
|
+
tools_removed: number | null;
|
|
660
|
+
system_char_delta: number | null;
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
}
|
|
559
664
|
export interface LocalizedMessage {
|
|
560
665
|
key: string;
|
|
561
666
|
params: Record<string, unknown>;
|
|
@@ -590,6 +695,9 @@ export interface EditorField {
|
|
|
590
695
|
nullable: boolean;
|
|
591
696
|
}
|
|
592
697
|
export interface PresetDescription {
|
|
698
|
+
purpose_key: string;
|
|
699
|
+
requirements_key: string;
|
|
700
|
+
example: boolean;
|
|
593
701
|
id: string;
|
|
594
702
|
label: string;
|
|
595
703
|
rows: string[][];
|
|
@@ -639,6 +747,8 @@ export interface ResultMap {
|
|
|
639
747
|
describe: DescribeResult;
|
|
640
748
|
read: ReadResult;
|
|
641
749
|
preview: PreviewResult;
|
|
750
|
+
explain: ExplainResult;
|
|
751
|
+
diagnose: DiagnoseResult;
|
|
642
752
|
apply: ApplyResult;
|
|
643
753
|
import: TransferResult;
|
|
644
754
|
review_import: ImportReviewResult;
|
|
@@ -653,7 +763,7 @@ export interface Request {
|
|
|
653
763
|
operation: Operation;
|
|
654
764
|
payload: unknown;
|
|
655
765
|
}
|
|
656
|
-
export type Result = PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult;
|
|
766
|
+
export type Result = DiagnoseResult | ExplainResult | PreviewResult | UiPreferencesResult | ReadResult | TransferResult | ImportReviewResult | ExportResult | DescribeResult | ApplyResult;
|
|
657
767
|
export type Response = {
|
|
658
768
|
protocol_version: typeof PROTOCOL_VERSION;
|
|
659
769
|
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 = 14;
|
|
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,8 @@ 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'];
|
|
25
|
+
export const LAYOUT_REASONS = ['visible', 'empty', 'condition_hidden', 'priority_omitted', 'width_omitted', 'row_hidden', 'spacer'];
|
|
26
|
+
export const EVIDENCE_STATUSES = ['observed', 'not_observed', 'invalid_field', 'source_unavailable', 'association_unavailable', 'session_mismatch', 'prompt_mismatch', 'stale', 'partial', 'collector_off', 'input_only', 'newer_than_input', 'unsupported_host', 'no_misses', 'unidentified'];
|
|
23
27
|
//# 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,sBAAsB,EAAE,iBAAiB,IAAI,0BAA0B,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/J,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAW,CAAC;AAC5C,MAAM,CAAC,MAAM,aAAa,GAAG,EAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,sBAAsB,EAAE,EAAE,EAAC,CAAC;AAC5M,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAC,MAAM,EAAE,EAAC,KAAK,EAAE,WAAW,EAAE,aAAa,EAAE,WAAW,EAAE,eAAe,EAAE,SAAS,EAA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C,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;AAgBjY,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAAS,EAAC,OAAO,EAAC,kBAAkB,EAAC,kBAAkB,EAAC,eAAe,EAAC,YAAY,EAAC,QAAQ,CAAU,CAAC;AAGvI,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAC,cAAc,EAAC,eAAe,EAAC,oBAAoB,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,OAAO,EAAC,SAAS,EAAC,eAAe,EAAC,YAAY,EAAC,kBAAkB,EAAC,kBAAkB,EAAC,WAAW,EAAC,cAAc,CAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SAMPLE_REASONS, EXPLAIN_REASONS, LAYOUT_REASONS, EVIDENCE_STATUSES } 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,28 @@ 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
|
+
}
|
|
389
|
+
else if (operation === 'diagnose') {
|
|
390
|
+
if (!isDiagnosis(result))
|
|
391
|
+
fail();
|
|
392
|
+
}
|
|
370
393
|
else if (operation === 'preview') {
|
|
371
394
|
if (result.sample !== true ||
|
|
372
395
|
!Array.isArray(result.main) ||
|
|
@@ -379,8 +402,8 @@ export function parseResponse(operation, process) {
|
|
|
379
402
|
!result.backend_version ||
|
|
380
403
|
!isOptions(result.options) ||
|
|
381
404
|
!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 !==
|
|
405
|
+
!selection(result.operations, ['describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain', 'diagnose']) ||
|
|
406
|
+
result.operations.length !== 12 ||
|
|
384
407
|
JSON.stringify(result.editor_fields) !== JSON.stringify(EDITOR_FIELDS) ||
|
|
385
408
|
JSON.stringify(result.presets) !== JSON.stringify(PRESETS) ||
|
|
386
409
|
!object(result.formatting_options) ||
|
|
@@ -390,6 +413,31 @@ export function parseResponse(operation, process) {
|
|
|
390
413
|
}
|
|
391
414
|
return result;
|
|
392
415
|
}
|
|
416
|
+
function isDiagnosis(value) {
|
|
417
|
+
const nullable = (v) => v === null || text(v);
|
|
418
|
+
const stamp = (v) => v === null || typeof v === 'string' && Number.isFinite(Date.parse(v));
|
|
419
|
+
if (!exact(value, ['sample', 'scope', 'width', 'source', 'observed_at', 'diagnosed_at', 'session_id', 'prompt_id', 'host_version', 'include_local', 'output', 'instances', 'host_fields']) ||
|
|
420
|
+
value.sample !== false || !['main', 'subagent'].includes(String(value.scope)) || !range(value.width, 2, 10000) || !text(value.source) ||
|
|
421
|
+
!stamp(value.observed_at) || value.diagnosed_at === null || !stamp(value.diagnosed_at) || !nullable(value.session_id) || !nullable(value.prompt_id) ||
|
|
422
|
+
!nullable(value.host_version) || typeof value.include_local !== 'boolean' || !Array.isArray(value.output) || !Array.isArray(value.instances) || !object(value.host_fields))
|
|
423
|
+
return false;
|
|
424
|
+
if (!value.output.every(row => object(row) && exact(row, ['id', 'spans']) && text(row.id) && Array.isArray(row.spans) && row.spans.every(isSpan)))
|
|
425
|
+
return false;
|
|
426
|
+
const ids = new Set();
|
|
427
|
+
if (!value.instances.every(item => {
|
|
428
|
+
if (!object(item) || !exact(item, ['id', 'type_id', 'enabled', 'reasons', 'evidence', 'rows']) || !text(item.id) || ids.has(item.id) || !text(item.type_id) || typeof item.enabled !== 'boolean' || !Array.isArray(item.reasons) || !Array.isArray(item.evidence) || !Array.isArray(item.rows))
|
|
429
|
+
return false;
|
|
430
|
+
ids.add(item.id);
|
|
431
|
+
return 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))) &&
|
|
432
|
+
item.evidence.every((e) => object(e) && exact(e, ['source', 'scope', 'status', 'observed_at', 'freshness', 'fields']) && text(e.source) && text(e.scope) && EVIDENCE_STATUSES.includes(e.status) && stamp(e.observed_at) && ['current', 'stale', 'unknown', 'newer_than_input'].includes(String(e.freshness)) && Array.isArray(e.fields) && e.fields.every((f) => object(f) && exact(f, ['path', 'status']) && text(f.path) && ['observed', 'not_observed', 'invalid_field'].includes(String(f.status)))) &&
|
|
433
|
+
item.rows.every((row) => object(row) && exact(row, ['row_id', 'outcome', 'truncated']) && text(row.row_id) && LAYOUT_REASONS.includes(row.outcome) && typeof row.truncated === 'boolean');
|
|
434
|
+
}))
|
|
435
|
+
return false;
|
|
436
|
+
const tree = value.host_fields.worktree, cache = value.host_fields.cache_miss;
|
|
437
|
+
return exact(value.host_fields, ['worktree', 'cache_miss']) && object(tree) && exact(tree, ['session_name', 'git_name', 'selected_source']) && nullable(tree.session_name) && nullable(tree.git_name) && [null, 'worktree.name', 'workspace.git_worktree'].includes(tree.selected_source) &&
|
|
438
|
+
object(cache) && exact(cache, ['status', 'causes', 'last_miss_at', 'tools_added', 'tools_removed', 'system_char_delta']) && ['observed', 'not_observed', 'no_misses', 'unidentified', 'invalid_field'].includes(String(cache.status)) && strings(cache.causes) &&
|
|
439
|
+
['last_miss_at', 'tools_added', 'tools_removed', 'system_char_delta'].every(key => cache[key] === null || typeof cache[key] === 'number' && Number.isFinite(cache[key]));
|
|
440
|
+
}
|
|
393
441
|
export function spanColor(span, channel = 'foreground') {
|
|
394
442
|
const color = span[channel];
|
|
395
443
|
if (color?.kind === 'rgb')
|