@fbincon/claude-code-statusline 3.9.1 → 3.10.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 +78 -78
- package/candidate.json +426 -344
- package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js +8 -4
- package/node_modules/@fbincon/statusline-cli/dist/src/config/profile-command.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js +7 -18
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/command.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/input.d.ts +5 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/input.js +36 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/input.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js +17 -7
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/management/service.js +7 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/management/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js +2 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js +3 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js +14 -5
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.d.ts +3 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js +56 -22
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +6 -5
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +21 -5
- 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 +103 -74
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +13 -10
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +11 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +7 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/alignment-manager.ts +2 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/color-manager.ts +177 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/diagnosis-view.ts +123 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +50 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/explanation.ts +2 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/gradients.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/group-manager.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/preview-settings.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/profile-manager.ts +14 -5
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/setup.ts +7 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +15 -4
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-validation.ts +2 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/themes.ts +40 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +17 -15
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +564 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/presentation.ts +3 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +28 -24
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +9 -3
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +4 -2
- 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 -5
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +23 -8
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +7 -9
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/alignment-manager.js +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/alignment-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +12 -10
- 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.d.ts +23 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js +153 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/color-manager.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/diagnosis-view.d.ts +29 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/diagnosis-view.js +107 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/diagnosis-view.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +21 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +61 -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.js +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/explanation.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/gradients.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/gradients.js +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/gradients.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/preview-settings.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/preview-settings.js +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/preview-settings.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js +32 -3
- package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js +17 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.d.ts +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +24 -4
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/themes.d.ts +17 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/themes.js +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/themes.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.d.ts +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js +15 -1
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +558 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +564 -6
- 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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +3 -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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +3 -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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +3 -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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +3 -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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js +3 -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 +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js +3 -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/management/compatibility.js +4 -2
- package/node_modules/@fbincon/statusline-core/dist/src/management/compatibility.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/release.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.d.ts +2 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +12 -13
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -1
- 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 +2 -1
- 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 +5 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js +5 -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.js +4 -4
- 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 +4 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.d.ts +6 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +14 -10
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.d.ts +11 -52
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js +48 -7
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/sample-scenarios.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/sample-scenarios.js +38 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/sample-scenarios.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.d.ts +2 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +15 -18
- 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 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/trace.js +19 -1
- 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 +94 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +94 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +94 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +94 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +94 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +94 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/darwin-process.d.ts +8 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/darwin-process.js +33 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/darwin-process.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/diagnostic-files.js +3 -2
- package/node_modules/@fbincon/statusline-platform/dist/src/diagnostic-files.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/npm.js +47 -16
- package/node_modules/@fbincon/statusline-platform/dist/src/npm.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/package-copy.js +10 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/package-copy.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/performance.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/performance.js +17 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/performance.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js +7 -3
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js +6 -12
- package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.d.ts +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js +2 -5
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-command.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-command.js +7 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-command.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-exec.d.ts +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-exec.js +65 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-exec.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +12 -0
- 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 +8 -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 +9 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/shortcuts.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +8 -5
- 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 +65 -10
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/setup.d.ts +2 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/setup.js +7 -5
- package/node_modules/@fbincon/statusline-tui/dist/src/setup.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js +55 -3
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
- package/package.json +3 -3
|
@@ -10,6 +10,7 @@ export interface SourceManager {
|
|
|
10
10
|
library: SourcesResult | null;
|
|
11
11
|
context: SourceContext | null;
|
|
12
12
|
owner: string;
|
|
13
|
+
closed: boolean;
|
|
13
14
|
page: 'list' | 'actions' | 'kind' | 'form' | 'review' | 'remove' | 'bind' | 'unbind' | 'diagnose' | 'auto-review';
|
|
14
15
|
automaticInterval: number;
|
|
15
16
|
cursor: number;
|
|
@@ -36,7 +37,7 @@ export interface SourceBackend {
|
|
|
36
37
|
}
|
|
37
38
|
const external = ['external-value', 'github-pr', 'github-ci'];
|
|
38
39
|
export function openSources(editor: Editor): void {
|
|
39
|
-
editor.sources = { library: null, context: null, owner: 'editor-' + Date.now().toString(36) + '-' + Math.random().toString(36).slice(2), page: 'list', automaticInterval: 300, cursor: 0, scroll: 0, selected: null, kind: 'json', editing: false, fields: [], review: null, details: [], jobs: [], message: null, effect: 'load', target: null };
|
|
40
|
+
editor.sources = { library: null, context: null, owner: 'editor-' + Date.now().toString(36) + '-' + Math.random().toString(36).slice(2), closed: false, page: 'list', automaticInterval: 300, cursor: 0, scroll: 0, selected: null, kind: 'json', editing: false, fields: [], review: null, details: [], jobs: [], message: null, effect: 'load', target: null };
|
|
40
41
|
}
|
|
41
42
|
function source(editor: Editor): SourceDefinition | undefined { return editor.sources!.library?.sources.find(s => s.id === editor.sources!.selected); }
|
|
42
43
|
function actions(editor: Editor): Action[] { return ['edit', 'review', ...(source(editor)?.enabled ? ['disable' as const] : []), 'bind', 'refresh', 'status', 'cancel', 'diagnose', 'remove', 'unbind', ...(source(editor)?.kind === 'github' ? ['auto-review' as const, 'auto-off' as const] : [])]; }
|
|
@@ -138,6 +139,7 @@ export function sourcesKey(editor: Editor, event: TextKey): 'sources' | null {
|
|
|
138
139
|
else if (m.page === 'remove')
|
|
139
140
|
m.effect = 'remove';
|
|
140
141
|
else if (m.page === 'unbind') {
|
|
142
|
+
if (!editor.canMutateDraft()) { m.message=editor.compositionError;return null; }
|
|
141
143
|
const target = targets(editor)[m.cursor];
|
|
142
144
|
const node = target && editor.instance(target.scope, target.id);
|
|
143
145
|
if (node?.source) {
|
|
@@ -159,9 +161,10 @@ export async function closeSources(editor: Editor, backend: SourceBackend): Prom
|
|
|
159
161
|
const m = editor.sources;
|
|
160
162
|
if (!m)
|
|
161
163
|
return;
|
|
164
|
+
m.closed = true;
|
|
162
165
|
let failed: unknown;
|
|
163
|
-
for (const job of m.jobs.filter(job => job.state === 'running'
|
|
164
|
-
try { await backend.request('
|
|
166
|
+
for (const job of m.jobs.filter(job => job.state === 'running')) {
|
|
167
|
+
try { await backend.request('source_release', { id: job.id, owner:m.owner }); }
|
|
165
168
|
catch (error) { failed = error; }
|
|
166
169
|
}
|
|
167
170
|
if (failed) throw failed;
|
|
@@ -175,6 +178,8 @@ export async function performSourceAction(editor: Editor, backend: SourceBackend
|
|
|
175
178
|
m.effect = null;
|
|
176
179
|
m.message = null;
|
|
177
180
|
try {
|
|
181
|
+
const generation=editor.mutationGeneration;
|
|
182
|
+
if (effect === 'bind' && !editor.canMutateDraft()) { m.message=editor.compositionError;return; }
|
|
178
183
|
if (effect === 'close') {
|
|
179
184
|
await closeSources(editor, backend);
|
|
180
185
|
return;
|
|
@@ -207,8 +212,13 @@ export async function performSourceAction(editor: Editor, backend: SourceBackend
|
|
|
207
212
|
const selected = source(editor)!;
|
|
208
213
|
const context = await backend.request('source_context', { project: selected.scope.project ?? m.context?.project ?? null, session: selected.scope.session, agent: selected.scope.agent });
|
|
209
214
|
if (effect === 'refresh') {
|
|
215
|
+
if (m.closed || editor.sources !== m) return;
|
|
210
216
|
const job = await backend.request('source_refresh', { id: m.selected, context, owner: m.owner });
|
|
211
|
-
m.
|
|
217
|
+
if (m.closed || editor.sources !== m) {
|
|
218
|
+
await backend.request('source_release', { id: job.id, owner: m.owner });
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
m.jobs = [...m.jobs.filter(previous=>previous.id!==job.id),job];
|
|
212
222
|
m.message = text('sources.refresh_started');
|
|
213
223
|
}
|
|
214
224
|
else {
|
|
@@ -238,6 +248,7 @@ export async function performSourceAction(editor: Editor, backend: SourceBackend
|
|
|
238
248
|
const result = await backend.request('sources_apply', payload);
|
|
239
249
|
m.library = result;
|
|
240
250
|
if (effect === 'bind' && m.target && result.binding) {
|
|
251
|
+
if (!editor.canMutateDraft(generation) || editor.sources !== m) { m.message=editor.compositionError;return; }
|
|
241
252
|
const node = editor.instance(m.target.scope, m.target.id);
|
|
242
253
|
if (node)
|
|
243
254
|
node.source = result.binding;
|
|
@@ -19,7 +19,7 @@ function definition(v: unknown): boolean {
|
|
|
19
19
|
return fields(s, ['executable', 'args', 'cwd', 'input', 'output', 'timeout_ms']) && text(s.executable) && text(s.cwd) && Array.isArray(s.args) && s.args.length <= 128 && s.args.every(arg => typeof arg === 'string' && arg.length <= 8192 && !arg.includes('\0')) && object(s.input) && Object.entries(s.input).every(([key, value]) => /^[A-Za-z][A-Za-z0-9_]{0,63}$/u.test(key) && ['project', 'session', 'agent', 'branch', 'head'].includes(String(value))) && ['json', 'text'].includes(String(s.output)) && typeof s.timeout_ms === 'number' && Number.isInteger(s.timeout_ms) && s.timeout_ms >= 100 && s.timeout_ms <= 30000;
|
|
20
20
|
}
|
|
21
21
|
function job(v: unknown): boolean {
|
|
22
|
-
return fields(v, ['version', 'id', 'source_id', 'source_revision', 'owner', 'context', 'started_at', 'deadline_at', 'state', 'reason', 'trigger', 'identity']) && v.version ===
|
|
22
|
+
return fields(v, ['version', 'id', 'source_id', 'source_revision', 'owner', 'context', 'started_at', 'deadline_at', 'state', 'reason', 'trigger', 'identity', 'consumers']) && v.version === 3 && Array.isArray(v.consumers) && v.consumers.length <= 128 && new Set(v.consumers.map(c=>object(c)?c.owner:null)).size === v.consumers.length && v.consumers.every(c=>fields(c,['owner','expires_at']) && id(c.owner) && text(c.expires_at) && Number.isFinite(Date.parse(c.expires_at)) && typeof v.deadline_at==='string' && Date.parse(c.expires_at)<=Date.parse(v.deadline_at)) && ['manual', 'automatic'].includes(String(v.trigger)) && typeof v.identity === 'string' && /^[a-f0-9]{64}$/.test(v.identity) && ['id', 'source_id', 'source_revision', 'owner'].every(key => id(v[key])) && isSourceContext(v.context) && text(v.started_at) && Number.isFinite(Date.parse(v.started_at)) && text(v.deadline_at) && Number.isFinite(Date.parse(v.deadline_at)) && ['running', 'completed', 'failed', 'cancelled'].includes(String(v.state)) && text(v.reason);
|
|
23
23
|
}
|
|
24
24
|
function view(v: unknown): boolean {
|
|
25
25
|
return object(v) && nullable(v.source_id) && text(v.name) && ['valid', 'missing', 'partial', 'error', 'unsupported', 'disabled', 'unbound', 'mismatch'].includes(String(v.state)) && text(v.reason) && nullable(v.observed_at) && ['current', 'stale', 'unknown'].includes(String(v.freshness)) && scalar(v.value) && nullable(v.unit) && (v.fields === undefined || object(v.fields) && Object.values(v.fields).every(scalar));
|
|
@@ -31,7 +31,7 @@ export function isSourceResult(operation: string, value: unknown): boolean {
|
|
|
31
31
|
return isSourceContext(value);
|
|
32
32
|
if (operation === 'source_review')
|
|
33
33
|
return fields(value, ['source', 'review_revision']) && definition(value.source) && object(value.source) && value.review_revision === value.source.revision;
|
|
34
|
-
if (['source_refresh', 'source_status', 'source_cancel'].includes(operation))
|
|
34
|
+
if (['source_refresh', 'source_status', 'source_release', 'source_cancel'].includes(operation))
|
|
35
35
|
return job(value);
|
|
36
36
|
if (operation === 'source_diagnose')
|
|
37
37
|
return fields(value, ['source', 'view', 'jobs', 'automatic']) && object(value.automatic) && ['off', 'waiting', 'running', 'backoff', 'paused'].includes(String(value.automatic.state)) && text(value.automatic.reason) && ['next_at', 'last_attempt', 'last_success'].every(k => value.automatic && nullable((value.automatic as Record<string, unknown>)[k])) && typeof value.automatic.interval_seconds === 'number' && value.automatic.interval_seconds >= 60 && value.automatic.interval_seconds <= 86400 && definition(value.source) && view(value.view) && Array.isArray(value.jobs) && value.jobs.every(job);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
|
+
/** One registry for persisted identities, selectors and production paint. */
|
|
3
|
+
export const THEME_IDS = ['classic', 'dark', 'light', 'terminal', 'ocean', 'ember', 'slate', 'blossom'] as const;
|
|
4
|
+
export type ThemeId = typeof THEME_IDS[number];
|
|
5
|
+
export const THEME_ROLES = ['model', 'directory', 'branch', 'percentage', 'tokens', 'timer'] as const;
|
|
6
|
+
export const ANSI_ROLES = [3, 2, 5, 3, 5, 6] as const;
|
|
7
|
+
export const ANSI_BLOCKS = [4, 2, 5, 3, 1, 6] as const;
|
|
8
|
+
export interface ThemeDefinition {
|
|
9
|
+
surface: 'dark' | 'light' | 'terminal';
|
|
10
|
+
foreground: readonly string[];
|
|
11
|
+
backgrounds: readonly string[];
|
|
12
|
+
blockText: string;
|
|
13
|
+
separator: string;
|
|
14
|
+
warning: string;
|
|
15
|
+
critical: string;
|
|
16
|
+
}
|
|
17
|
+
const dark: ThemeDefinition = {
|
|
18
|
+
surface: 'dark', foreground: ['#f6e2b7', '#abdfa7', '#c8a9ee', '#f2b590', '#e990a9', '#8ed3d3'],
|
|
19
|
+
backgrounds: ['#3c3548', '#234337', '#3d3155', '#543720', '#542b3c', '#1f4148'],
|
|
20
|
+
blockText: '#f4f5f7', separator: '#aab2bd', warning: '#f2b550', critical: '#f28686',
|
|
21
|
+
};
|
|
22
|
+
export const THEMES: Readonly<Record<ThemeId, ThemeDefinition>> = {
|
|
23
|
+
classic: dark, dark, terminal: { ...dark, surface: 'terminal' },
|
|
24
|
+
light: { surface: 'light', foreground: ['#664515', '#205727', '#633487', '#864511', '#93284a', '#126168'],
|
|
25
|
+
backgrounds: ['#eee1c4', '#d6ecd4', '#e7dcf2', '#f5dfce', '#f4d8e1', '#d1ecec'],
|
|
26
|
+
blockText: '#202630', separator: '#58616b', warning: '#805000', critical: '#a02020' },
|
|
27
|
+
ocean: { surface: 'dark', foreground: ['#7dd3fc', '#5eead4', '#a5b4fc', '#67e8f9', '#93c5fd', '#99f6e4'],
|
|
28
|
+
backgrounds: ['#173b56', '#16443f', '#303e68', '#164956', '#243f64', '#214844'],
|
|
29
|
+
blockText: '#f0f9ff', separator: '#94b9cc', warning: '#fbbf24', critical: '#fca5a5' },
|
|
30
|
+
ember: { surface: 'dark', foreground: ['#fcd34d', '#fdba74', '#fda4af', '#fed7aa', '#f9a8d4', '#fde68a'],
|
|
31
|
+
backgrounds: ['#4d3620', '#542f21', '#502b39', '#493b24', '#4e2d46', '#454023'],
|
|
32
|
+
blockText: '#fff7ed', separator: '#c9aa96', warning: '#fcd34d', critical: '#fca5a5' },
|
|
33
|
+
slate: { surface: 'dark', foreground: ['#cbd5e1', '#b4c7ba', '#c8bfd5', '#cfbea7', '#d0b8c0', '#adc8cb'],
|
|
34
|
+
backgrounds: ['#303b49', '#304239', '#3d3749', '#493d30', '#48353e', '#2d4145'],
|
|
35
|
+
blockText: '#f1f5f9', separator: '#94a3b8', warning: '#e8c584', critical: '#e9a4a7' },
|
|
36
|
+
blossom: { surface: 'light', foreground: ['#67416d', '#42654f', '#604987', '#8a4c61', '#765049', '#3d6471'],
|
|
37
|
+
backgrounds: ['#eddaec', '#dcebdd', '#e4dcf2', '#f5dce6', '#efdfd7', '#d8eaf0'],
|
|
38
|
+
blockText: '#302633', separator: '#786c80', warning: '#825300', critical: '#a52c4c' },
|
|
39
|
+
};
|
|
40
|
+
export function themeDefinition(id: string): ThemeDefinition { return THEMES[id as ThemeId] ?? THEMES.classic; }
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
|
-
export const PROTOCOL_VERSION =
|
|
2
|
+
export const PROTOCOL_VERSION = 26 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;
|
|
@@ -76,12 +76,7 @@ export const EDITOR_FIELDS = {
|
|
|
76
76
|
"label": "Statusline theme",
|
|
77
77
|
"group": "Appearance",
|
|
78
78
|
"kind": "choice",
|
|
79
|
-
"choices": [
|
|
80
|
-
"classic",
|
|
81
|
-
"dark",
|
|
82
|
-
"light",
|
|
83
|
-
"terminal"
|
|
84
|
-
],
|
|
79
|
+
"choices": (["classic", "dark", "light", "terminal", "ocean", "ember", "slate", "blossom"] as const),
|
|
85
80
|
"minimum": 0,
|
|
86
81
|
"maximum": 10000,
|
|
87
82
|
"nullable": false
|
|
@@ -489,7 +484,7 @@ export const FORMAT_DEFAULTS = {"model_name": "original", "number_format": "lega
|
|
|
489
484
|
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";
|
|
490
485
|
export type SubagentItemId = "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" | "external-value";
|
|
491
486
|
export type Palette = "default" | "ansi";
|
|
492
|
-
export type Theme =
|
|
487
|
+
export type Theme = typeof THEME_VALUES[number];
|
|
493
488
|
export type PowerlineGlyph = "ascii" | "powerline";
|
|
494
489
|
export type VisibilityRule = "always" | "git-dirty" | "nonzero" | "used-at-least";
|
|
495
490
|
export type DirectoryStyle = "full" | "home" | "project-relative" | "basename";
|
|
@@ -501,7 +496,7 @@ export type UnavailableReason = "not_observed" | "unsupported_host" | "unknown_h
|
|
|
501
496
|
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-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"] as const;
|
|
502
497
|
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", "external-value"] as const;
|
|
503
498
|
export const PALETTE_VALUES = ["default", "ansi"] as const;
|
|
504
|
-
export const THEME_VALUES = ["classic", "dark", "light", "terminal"] as const;
|
|
499
|
+
export const THEME_VALUES = (["classic", "dark", "light", "terminal", "ocean", "ember", "slate", "blossom"] as const);
|
|
505
500
|
export const POWERLINEGLYPH_VALUES = ["ascii", "powerline"] as const;
|
|
506
501
|
export const VISIBILITYRULE_VALUES = ["always", "git-dirty", "nonzero", "used-at-least"] as const;
|
|
507
502
|
export const DIRECTORYSTYLE_VALUES = ["full", "home", "project-relative", "basename"] as const;
|
|
@@ -509,7 +504,8 @@ export const SEPARATORSTYLE_VALUES = ["classic", "compact", "powerline"] as cons
|
|
|
509
504
|
export const SCOPELABELS_VALUES = ["off", "when-subagents", "always"] as const;
|
|
510
505
|
export const STATUSLINELANGUAGE_VALUES = ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"] as const;
|
|
511
506
|
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"] as const;
|
|
512
|
-
export
|
|
507
|
+
export const OPERATIONS = ['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'] as const;
|
|
508
|
+
export type Operation = typeof OPERATIONS[number];
|
|
513
509
|
export interface ItemGuidance {
|
|
514
510
|
source_kinds: string[];
|
|
515
511
|
measurement_scope: string;
|
|
@@ -658,7 +654,7 @@ export interface PowerlineDraft {
|
|
|
658
654
|
}
|
|
659
655
|
export interface DisplayDraft {
|
|
660
656
|
groups: GroupDraft[];
|
|
661
|
-
schema_version:
|
|
657
|
+
schema_version: 16;
|
|
662
658
|
statusline_language: StatuslineLanguage;
|
|
663
659
|
instances: InstanceDraft[];
|
|
664
660
|
use_colors: boolean;
|
|
@@ -741,7 +737,8 @@ export interface SourceView {
|
|
|
741
737
|
fields?: Record<string, string | number | boolean | null>;
|
|
742
738
|
}
|
|
743
739
|
export interface SourceJob {
|
|
744
|
-
version:
|
|
740
|
+
version: 3; id: string; source_id: string; source_revision: string; owner: string; trigger: 'manual' | 'automatic'; identity: string;
|
|
741
|
+
consumers: { owner: string; expires_at: string }[];
|
|
745
742
|
context: SourceContext; started_at: string; deadline_at: string;
|
|
746
743
|
state: 'running' | 'completed' | 'failed' | 'cancelled'; reason: string;
|
|
747
744
|
}
|
|
@@ -749,14 +746,15 @@ export interface SourceReview { source: SourceDefinition; review_revision: strin
|
|
|
749
746
|
export interface SourceMutationResult extends SourcesResult { binding?: SourceReference; backup_dir: string | null }
|
|
750
747
|
export interface PreviewResult {
|
|
751
748
|
sample: true;
|
|
749
|
+
scenario?: string;
|
|
752
750
|
main: Span[][];
|
|
753
751
|
subagents: Span[][];
|
|
754
752
|
}
|
|
755
753
|
export const SAMPLE_REASONS = ['sample_group_hidden','sample_visible','sample_empty','sample_condition_hidden','sample_truncated','sample_priority_omitted','sample_width_omitted','sample_row_hidden','sample_spacer'] as const;
|
|
756
754
|
export type SampleReason = typeof SAMPLE_REASONS[number];
|
|
757
|
-
export const EXPLAIN_REASONS = ['alignment_active','alignment_collapsed','cost_rate_session','cost_rate_api','indicator_bar','source_bound','source_unbound','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'] as const;
|
|
755
|
+
export const EXPLAIN_REASONS = ['collector_session_unobserved','diagnostic_input_missing_session','alignment_active','alignment_collapsed','cost_rate_session','cost_rate_api','indicator_bar','source_bound','source_unbound','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'] as const;
|
|
758
756
|
export interface ExplainReason { code: string; origin: 'configuration' | 'local_configuration' | 'host_capability' | 'unknown'; }
|
|
759
|
-
export interface InstanceSample { row_id: string; outcome: SampleReason; truncated: boolean; }
|
|
757
|
+
export interface InstanceSample { row_id: string; outcome: SampleReason; truncated: boolean; style_reasons?:StyleDecision[]; }
|
|
760
758
|
export interface ExplainInstance {
|
|
761
759
|
id: string; type_id: string; enabled: boolean;
|
|
762
760
|
reasons: ExplainReason[];
|
|
@@ -772,7 +770,9 @@ export interface ExplainResult {
|
|
|
772
770
|
}
|
|
773
771
|
export const LAYOUT_REASONS = ['group_hidden','visible','empty','condition_hidden','priority_omitted','width_omitted','row_hidden','spacer'] as const;
|
|
774
772
|
export type LayoutReason = typeof LAYOUT_REASONS[number];
|
|
775
|
-
export
|
|
773
|
+
export const STYLE_REASONS = ['colors_disabled','background_gradient_requires_powerline','group_background_owned','threshold_warning','threshold_critical','color_quantized','contrast_protected'] as const;
|
|
774
|
+
export interface StyleDecision {code: typeof STYLE_REASONS[number];owner_id:string|null}
|
|
775
|
+
export interface InstanceLayout { row_id: string; outcome: LayoutReason; truncated: boolean; style_reasons?:StyleDecision[]; }
|
|
776
776
|
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;
|
|
777
777
|
export type EvidenceStatus = typeof EVIDENCE_STATUSES[number];
|
|
778
778
|
export interface DiagnosticEvidence {
|
|
@@ -941,6 +941,7 @@ export interface ResultMap {
|
|
|
941
941
|
source_context: SourceContext;
|
|
942
942
|
source_refresh: SourceJob;
|
|
943
943
|
source_status: SourceJob;
|
|
944
|
+
source_release: SourceJob;
|
|
944
945
|
source_cancel: SourceJob;
|
|
945
946
|
source_diagnose: { source: SourceDefinition; view: SourceView; jobs: SourceJob[]; automatic: AutomaticStatus };
|
|
946
947
|
describe: DescribeResult;
|
|
@@ -948,6 +949,7 @@ export interface ResultMap {
|
|
|
948
949
|
preview: PreviewResult;
|
|
949
950
|
explain: ExplainResult;
|
|
950
951
|
diagnose: DiagnoseResult;
|
|
952
|
+
diagnose_file: DiagnoseResult;
|
|
951
953
|
apply: ApplyResult;
|
|
952
954
|
import: TransferResult;
|
|
953
955
|
review_import: ImportReviewResult;
|