@fbincon/claude-code-statusline 3.13.0 → 3.14.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 +80 -80
- package/candidate.json +242 -214
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-jobs.js +20 -6
- package/node_modules/@fbincon/statusline-cli/dist/src/management/review-jobs.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +50 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +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/lib/backend.ts +3 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/color-manager.ts +4 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +5 -4
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/import-selection.ts +2 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/indicators.ts +2 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +9 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/en.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ja.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ko.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-CN.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-HK.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-TW.ts +24 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/presentation.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +18 -18
- 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/defaults.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +6 -4
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +15 -3
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +6 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +5 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/scenario-presets.d.ts +11 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/scenario-presets.js +49 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/scenario-presets.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +40 -0
- 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 -5
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +3 -2
- 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 +3 -3
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js +5 -3
- package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +6 -4
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-selection.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-selection.js +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-selection.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +138 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +144 -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/alignment.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/alignment.js +20 -4
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/alignment.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +8 -4
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/fitting.d.ts +12 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/fitting.js +22 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/fitting.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/gradients.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/gradients.js +9 -8
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/gradients.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js +15 -6
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js +30 -4
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +33 -15
- 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 +21 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +67 -5
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +18 -8
- 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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js +8 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +24 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +24 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +24 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +24 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +24 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +24 -1
- package/package.json +3 -3
|
@@ -68,9 +68,13 @@ export function startPackageReview(context, request, owner) {
|
|
|
68
68
|
export function packageReviewJob(context, id, owner, cancel = false) {
|
|
69
69
|
if (typeof id !== 'string' || typeof owner !== 'string')
|
|
70
70
|
throw new PackageError('arguments');
|
|
71
|
-
const
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
const readOwned = () => {
|
|
72
|
+
const current = readReviewRecord(id);
|
|
73
|
+
if (current.configDir !== context.configDir || current.job.owner !== owner)
|
|
74
|
+
throw new PackageError('identity');
|
|
75
|
+
return current;
|
|
76
|
+
};
|
|
77
|
+
let record = readOwned(), job = record.job;
|
|
74
78
|
if (cancel) {
|
|
75
79
|
atomicWrite(join(reviewFolder(id), 'cancel.json'), '{}\n');
|
|
76
80
|
const stopped = waitReviewExit(() => {
|
|
@@ -85,11 +89,21 @@ export function packageReviewJob(context, id, owner, cancel = false) {
|
|
|
85
89
|
// Cancellation was requested, but a live/unverifiable executor still owns its files.
|
|
86
90
|
return readReviewRecord(id).job;
|
|
87
91
|
}
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
|
|
92
|
+
if (reviewInterrupted(record)) {
|
|
93
|
+
// A bounded snapshot can precede the worker's final atomic publication.
|
|
94
|
+
// Reconcile after observing exit before deriving an interruption from it.
|
|
95
|
+
record = readOwned();
|
|
96
|
+
job = record.job;
|
|
97
|
+
if (reviewInterrupted(record))
|
|
98
|
+
return { ...job, state: 'failed', error: 'interrupted', finished_at: new Date().toISOString() };
|
|
99
|
+
}
|
|
91
100
|
if (job.state === 'complete' && inspectPackage(context, job.request.prefix).revision !== job.request.expected_revision)
|
|
92
101
|
return { ...job, state: 'failed', review: null, error: 'conflict' };
|
|
93
102
|
return job;
|
|
94
103
|
}
|
|
104
|
+
function reviewInterrupted(record) {
|
|
105
|
+
return record.job.state === 'running' && (Date.now() - Date.parse(record.job.started_at) > REVIEW_DEADLINE_MS ||
|
|
106
|
+
Date.now() - Date.parse(record.launched_at ?? record.job.started_at) > 15000 &&
|
|
107
|
+
(!record.pid || !!record.token && processAlive(record.pid, record.token) === false));
|
|
108
|
+
}
|
|
95
109
|
//# sourceMappingURL=review-jobs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"review-jobs.js","sourceRoot":"","sources":["../../../src/management/review-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,6CAA6C,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAEvG,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC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
@@ -4,7 +4,7 @@ import type { Diagnose } from '../diagnostics/service.js';
|
|
|
4
4
|
import * as contracts from '@fbincon/statusline-core/contracts/ui';
|
|
5
5
|
import type { Draft } from '@fbincon/statusline-core/contracts/ui';
|
|
6
6
|
import { ConfigurationService, type EffectiveConfig } from '../config/service.js';
|
|
7
|
-
export declare const BACKEND_VERSION = "3.
|
|
7
|
+
export declare const BACKEND_VERSION = "3.14.0";
|
|
8
8
|
export declare const OPERATIONS: readonly ["review_reuse", "package_execute_start", "package_execute_detach", "package_execute_status", "package_cleanup_review", "package_cleanup_apply", "source_inspect", "source_bindings_review", "source_bindings_cleanup", "source_draft", "package_status", "package_review_start", "package_review_status", "package_review_cancel", "sources_read", "sources_apply", "source_review", "source_context", "source_refresh", "source_status", "source_release", "source_cancel", "source_diagnose", "describe", "read", "preview", "apply", "import", "export", "preset", "read_ui_preferences", "set_ui_language", "review_import", "explain", "diagnose", "diagnose_file", "profiles_read", "profiles_apply", "profile_import", "profile_export", "task_details"];
|
|
9
9
|
export type Preview = (draft: Draft, width: number, trace?: RenderTrace, scenario?: PreviewScenario) => contracts.PreviewResult;
|
|
10
10
|
export declare function capabilities(version: readonly number[] | null): contracts.Capabilities;
|
|
@@ -83,6 +83,46 @@ export declare function configurationDescription(version: readonly number[] | nu
|
|
|
83
83
|
readonly label: "Quota Watch";
|
|
84
84
|
readonly rows: readonly [readonly ["context-used", "five-hour-limit", "weekly-limit"], readonly ["five-hour-reset", "weekly-reset"], readonly ["session-cost", "spend-limit", "cache-state", "cache-expires"]];
|
|
85
85
|
readonly layout_mode: "explicit";
|
|
86
|
+
}, {
|
|
87
|
+
readonly id: "powerline-daily";
|
|
88
|
+
readonly purpose_key: "quick.purpose.powerline-daily";
|
|
89
|
+
readonly requirements_key: "quick.requirements.powerline-daily";
|
|
90
|
+
readonly example: false;
|
|
91
|
+
readonly label: "Powerline Daily";
|
|
92
|
+
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "task-timer", "session-cost"]];
|
|
93
|
+
readonly layout_mode: "explicit";
|
|
94
|
+
}, {
|
|
95
|
+
readonly id: "agent-workbench";
|
|
96
|
+
readonly purpose_key: "quick.purpose.agent-workbench";
|
|
97
|
+
readonly requirements_key: "quick.requirements.agent-workbench";
|
|
98
|
+
readonly example: false;
|
|
99
|
+
readonly label: "Agent Workbench";
|
|
100
|
+
readonly rows: readonly [readonly ["task-timer", "context-remaining", "git"], readonly ["run-state", "task-progress", "active-agents"]];
|
|
101
|
+
readonly layout_mode: "explicit";
|
|
102
|
+
}, {
|
|
103
|
+
readonly id: "quota-cost";
|
|
104
|
+
readonly purpose_key: "quick.purpose.quota-cost";
|
|
105
|
+
readonly requirements_key: "quick.requirements.quota-cost";
|
|
106
|
+
readonly example: false;
|
|
107
|
+
readonly label: "Quota Cost";
|
|
108
|
+
readonly rows: readonly [readonly ["five-hour-limit", "weekly-limit"], readonly ["five-hour-reset", "weekly-reset"], readonly ["context-used", "spend-limit"], readonly ["session-cost", "session-cost-rate"]];
|
|
109
|
+
readonly layout_mode: "explicit";
|
|
110
|
+
}, {
|
|
111
|
+
readonly id: "narrow-terminal";
|
|
112
|
+
readonly purpose_key: "quick.purpose.narrow-terminal";
|
|
113
|
+
readonly requirements_key: "quick.requirements.narrow-terminal";
|
|
114
|
+
readonly example: false;
|
|
115
|
+
readonly label: "Narrow Terminal";
|
|
116
|
+
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "context-remaining", "task-timer"]];
|
|
117
|
+
readonly layout_mode: "explicit";
|
|
118
|
+
}, {
|
|
119
|
+
readonly id: "light-readable";
|
|
120
|
+
readonly purpose_key: "quick.purpose.light-readable";
|
|
121
|
+
readonly requirements_key: "quick.requirements.light-readable";
|
|
122
|
+
readonly example: false;
|
|
123
|
+
readonly label: "Light Readable";
|
|
124
|
+
readonly rows: readonly [readonly ["model-with-effort", "current-dir", "git"], readonly ["context-remaining", "task-timer", "session-cost"]];
|
|
125
|
+
readonly layout_mode: "explicit";
|
|
86
126
|
}];
|
|
87
127
|
editor_fields: {
|
|
88
128
|
readonly global: readonly [{
|
|
@@ -103,6 +143,15 @@ export declare function configurationDescription(version: readonly number[] | nu
|
|
|
103
143
|
readonly minimum: 0;
|
|
104
144
|
readonly maximum: 10000;
|
|
105
145
|
readonly nullable: false;
|
|
146
|
+
}, {
|
|
147
|
+
readonly key: "powerline.row_background_gradient";
|
|
148
|
+
readonly label: "Continuous row background";
|
|
149
|
+
readonly group: "Appearance";
|
|
150
|
+
readonly kind: "text";
|
|
151
|
+
readonly choices: readonly [];
|
|
152
|
+
readonly minimum: 0;
|
|
153
|
+
readonly maximum: 256;
|
|
154
|
+
readonly nullable: true;
|
|
106
155
|
}, {
|
|
107
156
|
readonly key: "powerline.padding";
|
|
108
157
|
readonly label: "Block padding";
|
|
@@ -82,4 +82,4 @@ The guided form preserves the saved theme, Powerline glyph, item colors and visi
|
|
|
82
82
|
|
|
83
83
|
For first integration, recommend `__CLAUDE_STATUSLINE_COMMAND__ setup` in an interactive terminal, or `setup --dry-run` for read-only checks. It preserves existing display/profile/binding and collection choices until explicitly applied. Its review separates display save from integration and reports partial success; do not claim that a sample verifies a restarted Claude session.
|
|
84
84
|
|
|
85
|
-
Quick setup in either editor includes complete `daily-development`, `agent-focus`, and `quota-watch` schemes, plus the six existing presets. Users preview before saving the current target or saving a named copy. Scheme selection never enables collection. Powerline controls are `config set powerline-padding none|left|right|both`, `powerline-separator arrow|slash|bar|none`, `powerline-start-cap on|off`, `powerline-end-cap on|off`, and `powerline-color-mode semantic|continuous|restart`. Block padding is separate from host padding. These are terminal CLI options; follow the supported slash-parser entry points rather than forwarding arbitrary terminal arguments.
|
|
85
|
+
Quick setup in either editor includes complete `daily-development`, `agent-focus`, and `quota-watch` schemes, plus `powerline-daily`, `agent-workbench`, `quota-cost`, `narrow-terminal`, and `light-readable`, alongside the six existing presets. Users preview before saving the current target or saving a named copy. Scheme selection never enables collection. Powerline controls are `config set powerline-padding none|left|right|both`, `powerline-separator arrow|slash|bar|none`, `powerline-start-cap on|off`, `powerline-end-cap on|off`, and `powerline-color-mode semantic|continuous|restart`. Use `config set powerline-row-background-gradient PRESET|COLORS|off` for opt-in continuous backgrounds in final Powerline rows; explicit backgrounds and spacers break a run, and alignment padding remains uncolored. `config instance main set ID presentation adaptive` retains percentages, used/remaining meaning and complete custom labels/icons while fitting. Auto layout keeps ordinary wrapping. Block padding is separate from host padding. These are terminal CLI options; follow the supported slash-parser entry points rather than forwarding arbitrary terminal arguments.
|
|
@@ -177,9 +177,9 @@ export function isDraft(value: unknown): value is Draft {
|
|
|
177
177
|
)
|
|
178
178
|
return false;
|
|
179
179
|
if (
|
|
180
|
-
d.schema_version !==
|
|
181
|
-
!object(d.powerline) || !exact(d.powerline, POWERLINE_FIELDS.map(f => f.key.slice(10))) ||
|
|
182
|
-
!POWERLINE_FIELDS.every(f => f.kind === 'boolean' ? typeof (d.powerline as Record<string, unknown>)[f.key.slice(10)] === 'boolean' :
|
|
180
|
+
d.schema_version !== 17 ||
|
|
181
|
+
!object(d.powerline) || !exact(d.powerline, POWERLINE_FIELDS.filter(f => f.key !== 'powerline.row_background_gradient' || Object.hasOwn(d.powerline as object, 'row_background_gradient')).map(f => f.key.slice(10))) ||
|
|
182
|
+
!POWERLINE_FIELDS.every(f => f.kind === 'text' ? validGradient((d.powerline as Record<string, unknown>)[f.key.slice(10)] ?? null) : f.kind === 'boolean' ? typeof (d.powerline as Record<string, unknown>)[f.key.slice(10)] === 'boolean' :
|
|
183
183
|
(f.choices as readonly unknown[]).includes((d.powerline as Record<string, unknown>)[f.key.slice(10)])) ||
|
|
184
184
|
!THEME_VALUES.some(x => x === d.theme) || !POWERLINEGLYPH_VALUES.some(x => x === d.powerline_glyph) ||
|
|
185
185
|
!STATUSLINELANGUAGE_VALUES.some((x) => x === d.statusline_language) ||
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/color-manager.ts
CHANGED
|
@@ -27,13 +27,13 @@ interface Choice {
|
|
|
27
27
|
surface?: string;
|
|
28
28
|
}
|
|
29
29
|
export function openColors(e: Editor, key: string): boolean {
|
|
30
|
-
if (!['field:theme', 'item:foreground', 'item:background', 'item:foreground_gradient', 'item:background_gradient'].includes(key))
|
|
30
|
+
if (!['field:powerline.row_background_gradient', 'field:theme', 'item:foreground', 'item:background', 'item:foreground_gradient', 'item:background_gradient'].includes(key))
|
|
31
31
|
return false;
|
|
32
32
|
if (!e.canMutateDraft())
|
|
33
33
|
return true;
|
|
34
34
|
const kind = key === 'field:theme' ? 'theme' : key.endsWith('_gradient') ? 'gradient' : 'solid';
|
|
35
35
|
const detail = e.detail, node = detail ? e.instance(detail.scope, detail.id) : null;
|
|
36
|
-
const value = kind === 'theme' ? e.draft.display.theme : node?.options[key.slice(5) as 'foreground'] ?? null;
|
|
36
|
+
const value = key === 'field:powerline.row_background_gradient' ? e.draft.display.powerline.row_background_gradient ?? null : kind === 'theme' ? e.draft.display.theme : node?.options[key.slice(5) as 'foreground'] ?? null;
|
|
37
37
|
e.colors = { kind, key, scope: detail?.scope ?? 'main', id: detail?.id ?? '', cursor: 0, candidate: Array.isArray(value) ? [...value] : value, generation: e.mutationGeneration, input: null, editing: null, error: false };
|
|
38
38
|
return true;
|
|
39
39
|
}
|
|
@@ -62,7 +62,8 @@ export function colorDraft(e: Editor): Draft {
|
|
|
62
62
|
if (!m)
|
|
63
63
|
return e.draft;
|
|
64
64
|
const draft = copyDraft(e.draft);
|
|
65
|
-
if (m.
|
|
65
|
+
if (m.key === 'field:powerline.row_background_gradient') draft.display.powerline.row_background_gradient = Array.isArray(m.candidate) ? [...m.candidate] : null;
|
|
66
|
+
else if (m.kind === 'theme')
|
|
66
67
|
draft.display.theme = m.candidate as Draft['display']['theme'];
|
|
67
68
|
else {
|
|
68
69
|
const node = (m.scope === 'main' ? draft.display.instances : draft.display.subagents.instances).find(n => n.id === m.id);
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts
CHANGED
|
@@ -39,6 +39,7 @@ export function fieldMessage(row: SettingRow, view: FormView) {
|
|
|
39
39
|
}
|
|
40
40
|
if (key.startsWith('break:'))
|
|
41
41
|
return localizedText('layout.break_before', { item: view.editor!.instanceLabel('main', key.slice(6), view.language) });
|
|
42
|
+
if (['reuse-style', 'reuse-groups', 'change-history'].includes(key)) return localizedText('settings.' + key);
|
|
42
43
|
return localizedText('native.settings.' + key);
|
|
43
44
|
}
|
|
44
45
|
export interface FormRow extends SettingRow {
|
|
@@ -58,7 +59,7 @@ function format(raw: unknown): string {
|
|
|
58
59
|
return raw === null ? 'inherit' : typeof raw === 'boolean' ? raw ? 'on' : 'off' : String(raw);
|
|
59
60
|
}
|
|
60
61
|
function row(spec: EditorField, key: string, valueRaw: unknown): FormRow {
|
|
61
|
-
return { ...spec, spec, key, valueRaw, value: (GRADIENT_KEYS as readonly string[]).includes(spec.key) ? gradientName(valueRaw) : format(valueRaw), editable: true };
|
|
62
|
+
return { ...spec, spec, key, valueRaw, value: ((GRADIENT_KEYS as readonly string[]).includes(spec.key) || spec.key === 'powerline.row_background_gradient') ? gradientName(valueRaw) : format(valueRaw), editable: true };
|
|
62
63
|
}
|
|
63
64
|
export function formRows(view: FormView): FormRow[] {
|
|
64
65
|
const e = view.editor!;
|
|
@@ -87,7 +88,7 @@ export function formRows(view: FormView): FormRow[] {
|
|
|
87
88
|
}
|
|
88
89
|
return result;
|
|
89
90
|
}
|
|
90
|
-
return e.description.editor_fields.global!.map((spec) => row(spec, 'field:' + spec.key, read(d, spec.key)));
|
|
91
|
+
return e.description.editor_fields.global!.map((spec) => row(spec, 'field:' + spec.key, read(d, spec.key) ?? null));
|
|
91
92
|
}
|
|
92
93
|
function options(draft: Draft, scope: 'main' | 'subagent', id: string) {
|
|
93
94
|
return nodes(draft, scope).find(i => i.id === id)!.options;
|
|
@@ -111,7 +112,7 @@ export function setFormValue(view: FormView, current: FormRow, raw: string | boo
|
|
|
111
112
|
return false;
|
|
112
113
|
if (spec.key === "foreground" || spec.key === "background")
|
|
113
114
|
value = normalizeColor(value);
|
|
114
|
-
if ((GRADIENT_KEYS as readonly string[]).includes(spec.key)) {
|
|
115
|
+
if (((GRADIENT_KEYS as readonly string[]).includes(spec.key) || spec.key === 'powerline.row_background_gradient')) {
|
|
115
116
|
try { value = parseGradient(value); } catch { setMessage(view, 'message', localizedText('gradients.invalid')); return false; }
|
|
116
117
|
}
|
|
117
118
|
const draft = copyDraft(e.draft);
|
|
@@ -161,7 +162,7 @@ export function setFormValue(view: FormView, current: FormRow, raw: string | boo
|
|
|
161
162
|
}
|
|
162
163
|
export function adjustForm(view: FormView, current: FormRow, delta: -1 | 1): boolean {
|
|
163
164
|
const spec = current.spec;
|
|
164
|
-
if ((GRADIENT_KEYS as readonly string[]).includes(spec.key)) {
|
|
165
|
+
if (((GRADIENT_KEYS as readonly string[]).includes(spec.key) || spec.key === 'powerline.row_background_gradient')) {
|
|
165
166
|
const choices = ['off', ...Object.keys(GRADIENT_PRESETS)], index = choices.indexOf(gradientName(current.valueRaw));
|
|
166
167
|
return setFormValue(view, current, choices[(index + delta + choices.length) % choices.length]!);
|
|
167
168
|
}
|
|
@@ -4,7 +4,7 @@ import type { Draft } from '../generated-contracts.ts';
|
|
|
4
4
|
|
|
5
5
|
export const IMPORT_FIELDS = [
|
|
6
6
|
'main', 'subagent', 'use_colors', 'palette', 'theme', 'directory_style', 'separator_style', 'scope_labels',
|
|
7
|
-
'powerline_glyph', 'powerline.padding', 'powerline.separator', 'powerline.start_cap', 'powerline.end_cap', 'powerline.color_mode',
|
|
7
|
+
'powerline.row_background_gradient', 'powerline_glyph', 'powerline.padding', 'powerline.separator', 'powerline.start_cap', 'powerline.end_cap', 'powerline.color_mode',
|
|
8
8
|
'statusline_language', 'formatting.model_name', 'formatting.number_format', 'formatting.labels', 'formatting.icons',
|
|
9
9
|
'formatting.allowance', 'formatting.reset_format', 'formatting.reset_timezone', 'formatting.thresholds',
|
|
10
10
|
] as const;
|
|
@@ -34,5 +34,6 @@ export function selectImport(base: Draft, incoming: Draft, requested: unknown):
|
|
|
34
34
|
target[parts.at(-1)!] = origin[parts.at(-1)!];
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
+
if (result.display.powerline.row_background_gradient === undefined) delete result.display.powerline.row_background_gradient;
|
|
37
38
|
return result;
|
|
38
39
|
}
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/indicators.ts
CHANGED
|
@@ -8,13 +8,13 @@ export function supportsIndicator(scope: Scope, id: string): boolean {
|
|
|
8
8
|
return ['context-used', 'context-remaining'].includes(id) || scope === 'main' && ['five-hour-limit', 'weekly-limit', 'spend-limit'].includes(id);
|
|
9
9
|
}
|
|
10
10
|
export const INDICATOR_FIELDS: EditorField[] = [
|
|
11
|
-
{ key: 'presentation', label: 'Indicator presentation', group: 'Item format', kind: 'choice', choices: ['numeric', 'bar'], minimum: 0, maximum: 0, nullable: false },
|
|
11
|
+
{ key: 'presentation', label: 'Indicator presentation', group: 'Item format', kind: 'choice', choices: ['numeric', 'bar', 'adaptive'], minimum: 0, maximum: 0, nullable: false },
|
|
12
12
|
{ key: 'bar_width', label: 'Bar width', group: 'Item format', kind: 'integer', choices: [], minimum: 4, maximum: 20, nullable: false },
|
|
13
13
|
{ key: 'bar_style', label: 'Bar characters', group: 'Item format', kind: 'choice', choices: ['auto', 'unicode', 'ascii'], minimum: 0, maximum: 0, nullable: false },
|
|
14
14
|
];
|
|
15
15
|
export function validIndicatorOptions(value: Record<string, unknown>, scope?: Scope, id?: string): boolean {
|
|
16
16
|
if (scope && id && !supportsIndicator(scope, id) && INDICATOR_KEYS.some(key => Object.hasOwn(value, key))) return false;
|
|
17
|
-
return (value.presentation === undefined || typeof value.presentation === 'string' && ['numeric', 'bar'].includes(value.presentation)) &&
|
|
17
|
+
return (value.presentation === undefined || typeof value.presentation === 'string' && ['numeric', 'bar', 'adaptive'].includes(value.presentation)) &&
|
|
18
18
|
(value.bar_style === undefined || typeof value.bar_style === 'string' && ['auto', 'unicode', 'ascii'].includes(value.bar_style)) &&
|
|
19
19
|
(value.bar_width === undefined || typeof value.bar_width === 'number' && Number.isInteger(value.bar_width) && value.bar_width >= 4 && value.bar_width <= 20);
|
|
20
20
|
}
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts
CHANGED
|
@@ -63,7 +63,7 @@ export function quickView(quick: QuickSetup, language: Language, width: number,
|
|
|
63
63
|
] : [tr('quick.fine_tune'),tr('quick.save'),tr('quick.copy'),tr('quick.back')];
|
|
64
64
|
const paragraphs=[...(quick.step === 'review' && quick.selected === 1 && sharedProjects.length ? [tr('profiles.shared',{count:sharedProjects.length}), ...sharedProjects] : []),
|
|
65
65
|
tr(preset.requirements_key),tr('quick.sample'),
|
|
66
|
-
...(!d.subagents.enabled && ['multi-agent','agent-focus'].includes(preset.id) ? [tr('quick.subagents_off')] : []),
|
|
66
|
+
...(!d.subagents.enabled && ['multi-agent','agent-focus','agent-workbench'].includes(preset.id) ? [tr('quick.subagents_off')] : []),
|
|
67
67
|
...(quick.step==='review' ? [tr('quick.replace')] : [])];
|
|
68
68
|
const detail=wrapText(paragraphs,width), menuHeight=Math.max(1, Math.min(rows.length,Math.floor(height/2)));
|
|
69
69
|
const start=Math.max(0, Math.min(quick.selected,rows.length-menuHeight,quick.selected-menuHeight+1));
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
|
-
export const PROTOCOL_VERSION =
|
|
2
|
+
export const PROTOCOL_VERSION = 30 as const;
|
|
3
3
|
export const ITEM_DEFAULTS = {"label": null, "icon": null, "priority": 50, "max_width": null, "formatting": {}, "foreground": null, "background": null, "visibility": "always", "visibility_threshold": 70};
|
|
4
4
|
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"}} as const;
|
|
5
5
|
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", "cost_rate"]} as const;
|
|
6
6
|
export const POWERLINE_FIELDS = [
|
|
7
|
+
{ key: "powerline.row_background_gradient", label: "Continuous row background", group: "Appearance", kind: "text", choices: [], minimum: 0, maximum: 256, nullable: true },
|
|
7
8
|
{
|
|
8
9
|
"key": "powerline.padding",
|
|
9
10
|
"label": "Block padding",
|
|
@@ -478,7 +479,7 @@ export const EDITOR_FIELDS = {
|
|
|
478
479
|
}
|
|
479
480
|
]
|
|
480
481
|
} as const;
|
|
481
|
-
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"}, {"id": "daily-development", "purpose_key": "quick.purpose.daily-development", "requirements_key": "quick.requirements.daily-development", "example": false, "label": "Daily Development", "rows": [["model-with-effort", "current-dir", "git", "context-remaining", "task-timer"], ["session-cost"]], "layout_mode": "explicit"}, {"id": "agent-focus", "purpose_key": "quick.purpose.agent-focus", "requirements_key": "quick.requirements.agent-focus", "example": false, "label": "Agent Focus", "rows": [["task-timer", "context-remaining", "git"], ["run-state", "task-progress", "active-agents"]], "layout_mode": "explicit"}, {"id": "quota-watch", "purpose_key": "quick.purpose.quota-watch", "requirements_key": "quick.requirements.quota-watch", "example": false, "label": "Quota Watch", "rows": [["context-used", "five-hour-limit", "weekly-limit"], ["five-hour-reset", "weekly-reset"], ["session-cost", "spend-limit", "cache-state", "cache-expires"]], "layout_mode": "explicit"}] as const;
|
|
482
|
+
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"}, {"id": "daily-development", "purpose_key": "quick.purpose.daily-development", "requirements_key": "quick.requirements.daily-development", "example": false, "label": "Daily Development", "rows": [["model-with-effort", "current-dir", "git", "context-remaining", "task-timer"], ["session-cost"]], "layout_mode": "explicit"}, {"id": "agent-focus", "purpose_key": "quick.purpose.agent-focus", "requirements_key": "quick.requirements.agent-focus", "example": false, "label": "Agent Focus", "rows": [["task-timer", "context-remaining", "git"], ["run-state", "task-progress", "active-agents"]], "layout_mode": "explicit"}, {"id": "quota-watch", "purpose_key": "quick.purpose.quota-watch", "requirements_key": "quick.requirements.quota-watch", "example": false, "label": "Quota Watch", "rows": [["context-used", "five-hour-limit", "weekly-limit"], ["five-hour-reset", "weekly-reset"], ["session-cost", "spend-limit", "cache-state", "cache-expires"]], "layout_mode": "explicit"}, {"id": "powerline-daily", "purpose_key": "quick.purpose.powerline-daily", "requirements_key": "quick.requirements.powerline-daily", "example": false, "label": "Powerline Daily", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "task-timer", "session-cost"]], "layout_mode": "explicit"}, {"id": "agent-workbench", "purpose_key": "quick.purpose.agent-workbench", "requirements_key": "quick.requirements.agent-workbench", "example": false, "label": "Agent Workbench", "rows": [["task-timer", "context-remaining", "git"], ["run-state", "task-progress", "active-agents"]], "layout_mode": "explicit"}, {"id": "quota-cost", "purpose_key": "quick.purpose.quota-cost", "requirements_key": "quick.requirements.quota-cost", "example": false, "label": "Quota Cost", "rows": [["five-hour-limit", "weekly-limit"], ["five-hour-reset", "weekly-reset"], ["context-used", "spend-limit"], ["session-cost", "session-cost-rate"]], "layout_mode": "explicit"}, {"id": "narrow-terminal", "purpose_key": "quick.purpose.narrow-terminal", "requirements_key": "quick.requirements.narrow-terminal", "example": false, "label": "Narrow Terminal", "rows": [["model-with-effort", "current-dir", "context-remaining", "task-timer"]], "layout_mode": "explicit"}, {"id": "light-readable", "purpose_key": "quick.purpose.light-readable", "requirements_key": "quick.requirements.light-readable", "example": false, "label": "Light Readable", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "task-timer", "session-cost"]], "layout_mode": "explicit"}] as const;
|
|
482
483
|
export const FORMAT_CHOICES = {"model_name": ["original", "short"], "number_format": ["legacy", "compact", "full", "grouped"], "labels": ["legacy", "short", "off"], "icons": ["legacy", "unicode", "ascii", "off"], "allowance": ["remaining", "used"], "reset_format": ["countdown", "time", "datetime"], "reset_timezone": ["local", "UTC"]} as const;
|
|
483
484
|
export const FORMAT_DEFAULTS = {"model_name": "original", "number_format": "legacy", "labels": "legacy", "icons": "legacy", "allowance": "remaining", "reset_format": "countdown", "reset_timezone": "local", "thresholds": {"enabled": false, "warning": 70, "critical": 90}} as const;
|
|
484
485
|
export type MainItemId = "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-cost-rate" | "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" | "external-value" | "github-pr" | "github-ci";
|
|
@@ -556,6 +557,7 @@ export interface ConfigurationOptions {
|
|
|
556
557
|
palette: ChoiceOptions;
|
|
557
558
|
theme: ChoiceOptions;
|
|
558
559
|
"powerline-glyph": ChoiceOptions;
|
|
560
|
+
"powerline-row-background-gradient": ChoiceOptions;
|
|
559
561
|
"powerline-padding": ChoiceOptions;
|
|
560
562
|
"powerline-separator": ChoiceOptions;
|
|
561
563
|
"powerline-start-cap": ChoiceOptions;
|
|
@@ -573,7 +575,7 @@ export interface ConfigurationOptions {
|
|
|
573
575
|
export const POWERLINE_OPTIONS = Object.fromEntries(POWERLINE_FIELDS.map(field => [
|
|
574
576
|
field.key.replaceAll('.', '-').replaceAll('_', '-'),
|
|
575
577
|
{ choices: field.kind === 'boolean' ? [true, false] : [...field.choices] },
|
|
576
|
-
])) as Pick<ConfigurationOptions, 'powerline-padding' | 'powerline-separator' | 'powerline-start-cap' | 'powerline-end-cap' | 'powerline-color-mode'>;
|
|
578
|
+
])) as Pick<ConfigurationOptions, 'powerline-row-background-gradient' | 'powerline-padding' | 'powerline-separator' | 'powerline-start-cap' | 'powerline-end-cap' | 'powerline-color-mode'>;
|
|
577
579
|
export interface Capabilities {
|
|
578
580
|
host_version: string | null;
|
|
579
581
|
subagent_rows: "unknown" | "supported" | "unsupported";
|
|
@@ -600,7 +602,7 @@ export type GradientDraft = string[];
|
|
|
600
602
|
export interface ItemOptionsDraft {
|
|
601
603
|
foreground_gradient?: GradientDraft | null;
|
|
602
604
|
background_gradient?: GradientDraft | null;
|
|
603
|
-
presentation?: "numeric" | "bar";
|
|
605
|
+
presentation?: "numeric" | "bar" | "adaptive";
|
|
604
606
|
bar_width?: number;
|
|
605
607
|
cost_rate_basis?: 'session' | 'api';
|
|
606
608
|
bar_style?: "auto" | "unicode" | "ascii";
|
|
@@ -646,6 +648,7 @@ export interface MetricsDraft {
|
|
|
646
648
|
branch_diff_base_ref: string | null;
|
|
647
649
|
}
|
|
648
650
|
export interface PowerlineDraft {
|
|
651
|
+
row_background_gradient?: GradientDraft | null;
|
|
649
652
|
padding: "none" | "left" | "right" | "both";
|
|
650
653
|
separator: "arrow" | "slash" | "bar" | "none";
|
|
651
654
|
start_cap: boolean;
|
|
@@ -654,7 +657,7 @@ export interface PowerlineDraft {
|
|
|
654
657
|
}
|
|
655
658
|
export interface DisplayDraft {
|
|
656
659
|
groups: GroupDraft[];
|
|
657
|
-
schema_version:
|
|
660
|
+
schema_version: 17;
|
|
658
661
|
statusline_language: StatuslineLanguage;
|
|
659
662
|
instances: InstanceDraft[];
|
|
660
663
|
use_colors: boolean;
|
|
@@ -784,7 +787,7 @@ export interface ExplainResult {
|
|
|
784
787
|
}
|
|
785
788
|
export const LAYOUT_REASONS = ['group_hidden','visible','empty','condition_hidden','priority_omitted','width_omitted','row_hidden','spacer'] as const;
|
|
786
789
|
export type LayoutReason = typeof LAYOUT_REASONS[number];
|
|
787
|
-
export const STYLE_REASONS = ['colors_disabled','background_gradient_requires_powerline','group_background_owned','threshold_warning','threshold_critical','color_quantized','contrast_protected'] as const;
|
|
790
|
+
export const STYLE_REASONS = ['adaptive_label_shortened','adaptive_bar_shortened','adaptive_numeric','row_background_gradient','row_gradient_overridden','colors_disabled','background_gradient_requires_powerline','group_background_owned','threshold_warning','threshold_critical','color_quantized','contrast_protected'] as const;
|
|
788
791
|
export interface StyleDecision {code: typeof STYLE_REASONS[number];owner_id:string|null}
|
|
789
792
|
export interface InstanceLayout { row_id: string; outcome: LayoutReason; truncated: boolean; style_reasons?:StyleDecision[]; }
|
|
790
793
|
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'] as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/en.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "Reset Timezone",
|
|
2288
2288
|
"history.input_help": "Enter read · Esc cancel",
|
|
2289
2289
|
"reuse.dependency": "Outside dependency",
|
|
2290
|
-
"reuse.reference_policy": "Reference handling"
|
|
2290
|
+
"reuse.reference_policy": "Reference handling",
|
|
2291
|
+
"indicators.presentation.adaptive": "Adaptive bar",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "Continuous row background",
|
|
2293
|
+
"appearance.schema": "Adaptive indicators and continuous row backgrounds require display schema 17 or newer.",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "The built-in label was shortened to fit.",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "The bar was shortened while retaining its percentage and direction.",
|
|
2296
|
+
"explain.style.adaptive_numeric": "The bar uses its numeric fallback.",
|
|
2297
|
+
"explain.style.row_background_gradient": "The final row supplies the continuous background.",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "An explicit background overrides the row gradient.",
|
|
2299
|
+
"presets.powerline-daily": "Powerline daily work",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline daily work",
|
|
2301
|
+
"quick.requirements.powerline-daily": "Uses Claude input, local Git and task timing. Adaptive context and a continuous background follow the final layout.",
|
|
2302
|
+
"presets.agent-workbench": "Agent workbench",
|
|
2303
|
+
"quick.purpose.agent-workbench": "Agent workbench",
|
|
2304
|
+
"quick.requirements.agent-workbench": "Uses existing task and live observations; missing observations remain missing. Subagent collection keeps its current setting.",
|
|
2305
|
+
"presets.quota-cost": "Quota and cost",
|
|
2306
|
+
"quick.purpose.quota-cost": "Quota and cost",
|
|
2307
|
+
"quick.requirements.quota-cost": "Uses observed quota windows, cost and duration. Quota resets align when space permits. No provider is enabled.",
|
|
2308
|
+
"presets.narrow-terminal": "Narrow terminal",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "Narrow terminal",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "Uses existing model, directory, context and task observations. Normal wrapping is preserved; custom labels and icons remain whole.",
|
|
2311
|
+
"presets.light-readable": "Light and readable",
|
|
2312
|
+
"quick.purpose.light-readable": "Light and readable",
|
|
2313
|
+
"quick.requirements.light-readable": "Uses existing daily-work observations with a light theme and protected risk colors. Preview samples do not establish terminal appearance."
|
|
2291
2314
|
} as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ja.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "リセットのタイムゾーン",
|
|
2288
2288
|
"history.input_help": "Enter 読込 · Esc 中止",
|
|
2289
2289
|
"reuse.dependency": "範囲外の依存関係",
|
|
2290
|
-
"reuse.reference_policy": "外部参照の処理"
|
|
2290
|
+
"reuse.reference_policy": "外部参照の処理",
|
|
2291
|
+
"indicators.presentation.adaptive": "自動調整バー",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "行内の連続背景",
|
|
2293
|
+
"appearance.schema": "自動調整インジケーターと行内の連続背景には表示 schema 17 以降が必要です。",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "幅に合わせて組み込みラベルを短縮しました。",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "割合と使用済み/残りの意味を保ってバーを短縮しました。",
|
|
2296
|
+
"explain.style.adaptive_numeric": "バーを数値表示に切り替えました。",
|
|
2297
|
+
"explain.style.row_background_gradient": "最終表示行の連続背景を使用します。",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "明示的な背景が行のグラデーションに優先します。",
|
|
2299
|
+
"presets.powerline-daily": "Powerline 日常作業",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline 日常作業",
|
|
2301
|
+
"quick.requirements.powerline-daily": "Claude 入力、ローカル Git、タスク時間を使用します。最終レイアウトに合わせてバーと連続背景を表示します。",
|
|
2302
|
+
"presets.agent-workbench": "エージェント作業台",
|
|
2303
|
+
"quick.purpose.agent-workbench": "エージェント作業台",
|
|
2304
|
+
"quick.requirements.agent-workbench": "既存のタスクとライブ観測を使用します。不足データは補わず、サブエージェント収集の設定を保持します。",
|
|
2305
|
+
"presets.quota-cost": "使用枠と費用",
|
|
2306
|
+
"quick.purpose.quota-cost": "使用枠と費用",
|
|
2307
|
+
"quick.requirements.quota-cost": "観測済みの使用枠、費用、時間を使用します。幅が十分ならリセット時刻を整列します。プロバイダーは有効化しません。",
|
|
2308
|
+
"presets.narrow-terminal": "狭いターミナル",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "狭いターミナル",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "既存のモデル、ディレクトリ、コンテキスト、タスク観測を使用します。通常の折り返しとカスタムラベル・アイコンを保持します。",
|
|
2311
|
+
"presets.light-readable": "明るく読みやすい表示",
|
|
2312
|
+
"quick.purpose.light-readable": "明るく読みやすい表示",
|
|
2313
|
+
"quick.requirements.light-readable": "日常作業の観測、明るいテーマ、保護された警告色を使用します。サンプルは実際のターミナル外観の証明ではありません。"
|
|
2291
2314
|
} as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/ko.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "초기화 시간대",
|
|
2288
2288
|
"history.input_help": "Enter 읽기 · Esc 취소",
|
|
2289
2289
|
"reuse.dependency": "외부 종속 항목",
|
|
2290
|
-
"reuse.reference_policy": "외부 참조 처리"
|
|
2290
|
+
"reuse.reference_policy": "외부 참조 처리",
|
|
2291
|
+
"indicators.presentation.adaptive": "자동 조정 막대",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "행 전체 연속 배경",
|
|
2293
|
+
"appearance.schema": "자동 조정 표시와 행 연속 배경에는 표시 schema 17 이상이 필요합니다.",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "너비에 맞게 기본 레이블을 줄였습니다.",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "백분율과 사용량/남은 양의 의미를 유지하면서 막대를 줄였습니다.",
|
|
2296
|
+
"explain.style.adaptive_numeric": "막대를 숫자 표시로 전환했습니다.",
|
|
2297
|
+
"explain.style.row_background_gradient": "최종 표시 행의 연속 배경을 사용합니다.",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "명시적 배경이 행 그라데이션보다 우선합니다.",
|
|
2299
|
+
"presets.powerline-daily": "Powerline 일상 작업",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline 일상 작업",
|
|
2301
|
+
"quick.requirements.powerline-daily": "Claude 입력, 로컬 Git 및 작업 시간을 사용합니다. 최종 배치에 맞게 막대와 연속 배경을 표시합니다.",
|
|
2302
|
+
"presets.agent-workbench": "에이전트 작업대",
|
|
2303
|
+
"quick.purpose.agent-workbench": "에이전트 작업대",
|
|
2304
|
+
"quick.requirements.agent-workbench": "기존 작업 및 실시간 관측을 사용합니다. 누락된 자료를 채우지 않으며 하위 에이전트 수집 설정을 유지합니다.",
|
|
2305
|
+
"presets.quota-cost": "사용 한도 및 비용",
|
|
2306
|
+
"quick.purpose.quota-cost": "사용 한도 및 비용",
|
|
2307
|
+
"quick.requirements.quota-cost": "관측된 사용 한도, 비용 및 시간을 사용합니다. 공간이 충분하면 초기화 시간을 정렬합니다. 공급자를 활성화하지 않습니다.",
|
|
2308
|
+
"presets.narrow-terminal": "좁은 터미널",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "좁은 터미널",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "기존 모델, 디렉터리, 컨텍스트 및 작업 관측을 사용합니다. 일반 줄바꿈과 사용자 레이블 및 아이콘을 유지합니다.",
|
|
2311
|
+
"presets.light-readable": "밝고 읽기 쉬운 표시",
|
|
2312
|
+
"quick.purpose.light-readable": "밝고 읽기 쉬운 표시",
|
|
2313
|
+
"quick.requirements.light-readable": "일상 작업 관측, 밝은 테마 및 보호된 경고색을 사용합니다. 예시는 실제 터미널 모양의 증거가 아닙니다."
|
|
2291
2314
|
} as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-CN.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "重置时区",
|
|
2288
2288
|
"history.input_help": "Enter 读取 · Esc 取消",
|
|
2289
2289
|
"reuse.dependency": "组外依赖",
|
|
2290
|
-
"reuse.reference_policy": "组外引用处理"
|
|
2290
|
+
"reuse.reference_policy": "组外引用处理",
|
|
2291
|
+
"indicators.presentation.adaptive": "自适应进度条",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "行内连续背景",
|
|
2293
|
+
"appearance.schema": "自适应指标与行内连续背景需要显示 schema 17 或更高版本。",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "为适配宽度缩短了内置标签。",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "进度条已缩短,百分比与方向保持完整。",
|
|
2296
|
+
"explain.style.adaptive_numeric": "进度条已回退为数字表示。",
|
|
2297
|
+
"explain.style.row_background_gradient": "连续背景来自最终显示行。",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "显式背景覆盖行内渐变。",
|
|
2299
|
+
"presets.powerline-daily": "Powerline 日常工作",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline 日常工作",
|
|
2301
|
+
"quick.requirements.powerline-daily": "使用 Claude 输入、本地 Git 与任务计时。自适应上下文和连续背景按最终布局显示。",
|
|
2302
|
+
"presets.agent-workbench": "多代理工作台",
|
|
2303
|
+
"quick.purpose.agent-workbench": "多代理工作台",
|
|
2304
|
+
"quick.requirements.agent-workbench": "使用现有任务与实时观测;缺失数据保持缺失,子代理采集保持当前开关。",
|
|
2305
|
+
"presets.quota-cost": "配额与费用",
|
|
2306
|
+
"quick.purpose.quota-cost": "配额与费用",
|
|
2307
|
+
"quick.requirements.quota-cost": "使用已观测配额窗口、费用与时长;空间充足时对齐配额与重置。不会启用服务商。",
|
|
2308
|
+
"presets.narrow-terminal": "窄终端",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "窄终端",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "使用现有模型、目录、上下文和任务观测。保留正常换行及完整自定义标签和图标。",
|
|
2311
|
+
"presets.light-readable": "浅色清晰阅读",
|
|
2312
|
+
"quick.purpose.light-readable": "浅色清晰阅读",
|
|
2313
|
+
"quick.requirements.light-readable": "使用日常工作观测、浅色主题及受保护的告警颜色。样例预览不能证明实际终端外观。"
|
|
2291
2314
|
} as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-HK.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "重設時區",
|
|
2288
2288
|
"history.input_help": "Enter 讀取 · Esc 取消",
|
|
2289
2289
|
"reuse.dependency": "群組外相依項目",
|
|
2290
|
-
"reuse.reference_policy": "組外引用處理"
|
|
2290
|
+
"reuse.reference_policy": "組外引用處理",
|
|
2291
|
+
"indicators.presentation.adaptive": "自適應進度條",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "行內連續背景",
|
|
2293
|
+
"appearance.schema": "自適應指標與行內連續背景需要顯示 schema 17 或更新版本。",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "為配合寬度縮短了內置標籤。",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "進度條已縮短,百分比與方向保持完整。",
|
|
2296
|
+
"explain.style.adaptive_numeric": "進度條已改用數字表示。",
|
|
2297
|
+
"explain.style.row_background_gradient": "連續背景來自最終顯示列。",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "明確指定的背景覆蓋行內漸變。",
|
|
2299
|
+
"presets.powerline-daily": "Powerline 日常工作",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline 日常工作",
|
|
2301
|
+
"quick.requirements.powerline-daily": "使用 Claude 輸入、本機 Git 與任務計時。自適應上下文和連續背景按最終配置顯示。",
|
|
2302
|
+
"presets.agent-workbench": "多代理工作台",
|
|
2303
|
+
"quick.purpose.agent-workbench": "多代理工作台",
|
|
2304
|
+
"quick.requirements.agent-workbench": "使用現有任務與即時觀測;缺少資料維持缺少,子代理收集維持目前設定。",
|
|
2305
|
+
"presets.quota-cost": "配額與費用",
|
|
2306
|
+
"quick.purpose.quota-cost": "配額與費用",
|
|
2307
|
+
"quick.requirements.quota-cost": "使用已觀測配額時段、費用與時間;空間足夠時對齊配額與重設。不會啟用供應商。",
|
|
2308
|
+
"presets.narrow-terminal": "窄終端",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "窄終端",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "使用現有模型、目錄、上下文與任務觀測。保留正常換行及完整自訂標籤和圖示。",
|
|
2311
|
+
"presets.light-readable": "淺色清晰閱讀",
|
|
2312
|
+
"quick.purpose.light-readable": "淺色清晰閱讀",
|
|
2313
|
+
"quick.requirements.light-readable": "使用日常工作觀測、淺色主題與受保護的警告色。範例預覽不能證明實際終端外觀。"
|
|
2291
2314
|
} as const;
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/locales/zh-TW.ts
CHANGED
|
@@ -2287,5 +2287,28 @@ export const MESSAGES = {
|
|
|
2287
2287
|
"reuse.field.formatting.reset_timezone": "重設時區",
|
|
2288
2288
|
"history.input_help": "Enter 讀取 · Esc 取消",
|
|
2289
2289
|
"reuse.dependency": "群組外相依項目",
|
|
2290
|
-
"reuse.reference_policy": "組外引用處理"
|
|
2290
|
+
"reuse.reference_policy": "組外引用處理",
|
|
2291
|
+
"indicators.presentation.adaptive": "自適應進度條",
|
|
2292
|
+
"fields.global.powerline.row_background_gradient.label": "行內連續背景",
|
|
2293
|
+
"appearance.schema": "自適應指標與行內連續背景需要顯示 schema 17 或更新版本。",
|
|
2294
|
+
"explain.style.adaptive_label_shortened": "為配合寬度縮短了內建標籤。",
|
|
2295
|
+
"explain.style.adaptive_bar_shortened": "進度條已縮短,百分比與方向保持完整。",
|
|
2296
|
+
"explain.style.adaptive_numeric": "進度條已改用數字表示。",
|
|
2297
|
+
"explain.style.row_background_gradient": "連續背景來自最終顯示列。",
|
|
2298
|
+
"explain.style.row_gradient_overridden": "明確指定的背景覆蓋行內漸層。",
|
|
2299
|
+
"presets.powerline-daily": "Powerline 日常工作",
|
|
2300
|
+
"quick.purpose.powerline-daily": "Powerline 日常工作",
|
|
2301
|
+
"quick.requirements.powerline-daily": "使用 Claude 輸入、本機 Git 與任務計時。自適應上下文和連續背景依最終配置顯示。",
|
|
2302
|
+
"presets.agent-workbench": "多代理工作臺",
|
|
2303
|
+
"quick.purpose.agent-workbench": "多代理工作臺",
|
|
2304
|
+
"quick.requirements.agent-workbench": "使用現有任務與即時觀測;缺少資料維持缺少,子代理收集維持目前設定。",
|
|
2305
|
+
"presets.quota-cost": "配額與費用",
|
|
2306
|
+
"quick.purpose.quota-cost": "配額與費用",
|
|
2307
|
+
"quick.requirements.quota-cost": "使用已觀測配額視窗、費用與時間;空間足夠時對齊配額與重設。不會啟用供應商。",
|
|
2308
|
+
"presets.narrow-terminal": "窄終端",
|
|
2309
|
+
"quick.purpose.narrow-terminal": "窄終端",
|
|
2310
|
+
"quick.requirements.narrow-terminal": "使用現有模型、目錄、上下文與任務觀測。保留正常換列及完整自訂標籤和圖示。",
|
|
2311
|
+
"presets.light-readable": "淺色清晰閱讀",
|
|
2312
|
+
"quick.purpose.light-readable": "淺色清晰閱讀",
|
|
2313
|
+
"quick.requirements.light-readable": "使用日常工作觀測、淺色佈景與受保護的警告色。範例預覽不能證明實際終端外觀。"
|
|
2291
2314
|
} as const;
|