@fbincon/claude-code-statusline 3.5.0 → 3.7.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 +77 -74
- package/candidate.json +437 -315
- package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js +23 -5
- package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +43 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/profiles.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js +5 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js +24 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/diagnostics/service.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js +2 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +19 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js +46 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js +11 -3
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.d.ts +35 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js +75 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic-state.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.d.ts +12 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js +99 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/automatic.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js +119 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.js +35 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/context.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.js +12 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/lifecycle.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.d.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js +118 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/providers.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.d.ts +40 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js +425 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +2 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +30 -1
- 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 +15 -5
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +15 -8
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +10 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts +26 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/cost-rate.ts +9 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +8 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +4 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/group-manager.ts +102 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/groups.ts +89 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/indicators.ts +20 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +304 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-validation.ts +46 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +94 -11
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +1020 -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/lib/session.ts +2 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +23 -17
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +9 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +7 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/observe.ts +27 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/generated-contracts.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +6 -6
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.d.ts +214 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js +418 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +31 -14
- 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 +13 -10
- 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 +11 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js +6 -2
- package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js +14 -7
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js +2 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/profiles.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js +5 -3
- package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +170 -9
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +5 -5
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.d.ts +4 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js +31 -6
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +18 -8
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.js +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/cost-rate.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +6 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +4 -2
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.d.ts +23 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js +131 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/group-manager.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js +103 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/groups.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.d.ts +11 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/indicators.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.d.ts +40 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +279 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js +47 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-validation.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.d.ts +27 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js +238 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/model.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.js +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/extensions/portable.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +1014 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +1020 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +31 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +31 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +31 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +31 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js +31 -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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js +31 -1
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/release.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.d.ts +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/diagnose.js +6 -3
- 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 +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/explain.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.js +35 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/extensions.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js +124 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/groups.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js +48 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/indicators.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +19 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js +30 -9
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +1 -1
- 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/preview.js +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.d.ts +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js +2 -2
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +23 -2
- 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 +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.d.ts +2 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js +2 -1
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.js +37 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/links.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +170 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +170 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +170 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +170 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +170 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +170 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/files.d.ts +3 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/files.js +7 -2
- package/node_modules/@fbincon/statusline-platform/dist/src/files.js.map +1 -1
- package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.d.ts +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.js +26 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/posix-source-exec.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-files.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-files.js +52 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-files.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-process.d.ts +19 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js +122 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/source-process.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.d.ts +4 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.js +61 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-environment.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.d.ts +3 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.js +61 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/windows-source-job.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/canvas.js +3 -2
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/canvas.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js +10 -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 +4 -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 +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js +6 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/session.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 +23 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Language } from "../i18n/registry.js";
|
|
2
|
-
export declare const PROTOCOL_VERSION:
|
|
2
|
+
export declare const PROTOCOL_VERSION: 21;
|
|
3
3
|
export declare const ITEM_DEFAULTS: {
|
|
4
4
|
label: null;
|
|
5
5
|
icon: null;
|
|
@@ -31,7 +31,7 @@ export declare const VISIBILITY_ITEMS: {
|
|
|
31
31
|
export declare const GUIDANCE_KEYS: {
|
|
32
32
|
readonly source_kinds: readonly ["configuration", "official_input", "local_git", "local_system", "transcript", "local_state", "lifecycle", "native_timing", "live_metrics", "telemetry"];
|
|
33
33
|
readonly scopes: readonly ["main", "main_context", "session", "all_sessions", "task", "subagent", "subagent_context", "repository", "local", "latest_request"];
|
|
34
|
-
readonly requirements: readonly ["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"];
|
|
34
|
+
readonly requirements: readonly ["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"];
|
|
35
35
|
};
|
|
36
36
|
export declare const POWERLINE_FIELDS: readonly [{
|
|
37
37
|
readonly key: "powerline.padding";
|
|
@@ -533,8 +533,8 @@ export type ScopeLabels = "off" | "when-subagents" | "always";
|
|
|
533
533
|
export type StatuslineLanguage = Language;
|
|
534
534
|
export type Scope = "main" | "subagent";
|
|
535
535
|
export type UnavailableReason = "not_observed" | "unsupported_host" | "unknown_host_version" | "source_unavailable" | "condition_not_met" | "runtime_disabled" | "native_timing_disabled" | "wait_coverage_missing" | "stale" | "incomplete" | "ambiguous_owner" | "observed_only" | "missing_stream" | "synthetic_response" | "abnormal_clock" | "inconsistent_request" | "request_join_unavailable";
|
|
536
|
-
export declare const MAIN_ITEM_IDS: readonly ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "cache-miss-reason", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-duration", "api-duration", "lines-changed", "agent", "vim-mode", "run-state", "permission-mode", "active-agents", "task-progress", "last-tool", "ttft", "output-rate", "prompt-input-tokens", "prompt-output-tokens", "prompt-cost", "text", "spacer"];
|
|
537
|
-
export declare const SUBAGENT_ITEM_IDS: readonly ["status-elapsed", "status", "name", "model-with-effort", "model", "effort", "context-remaining", "context-used", "context-tokens", "context-window-size", "elapsed", "task", "tokens", "current-dir", "text", "spacer"];
|
|
536
|
+
export declare const MAIN_ITEM_IDS: readonly ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "cache-miss-reason", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-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"];
|
|
537
|
+
export declare const SUBAGENT_ITEM_IDS: readonly ["status-elapsed", "status", "name", "model-with-effort", "model", "effort", "context-remaining", "context-used", "context-tokens", "context-window-size", "elapsed", "task", "tokens", "current-dir", "text", "spacer", "external-value"];
|
|
538
538
|
export declare const PALETTE_VALUES: readonly ["default", "ansi"];
|
|
539
539
|
export declare const THEME_VALUES: readonly ["classic", "dark", "light", "terminal"];
|
|
540
540
|
export declare const POWERLINEGLYPH_VALUES: readonly ["ascii", "powerline"];
|
|
@@ -544,7 +544,7 @@ export declare const SEPARATORSTYLE_VALUES: readonly ["classic", "compact", "pow
|
|
|
544
544
|
export declare const SCOPELABELS_VALUES: readonly ["off", "when-subagents", "always"];
|
|
545
545
|
export declare const STATUSLINELANGUAGE_VALUES: readonly ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"];
|
|
546
546
|
export declare const UNAVAILABLEREASON_VALUES: readonly ["not_observed", "unsupported_host", "unknown_host_version", "source_unavailable", "condition_not_met", "runtime_disabled", "native_timing_disabled", "wait_coverage_missing", "stale", "incomplete", "ambiguous_owner", "observed_only", "missing_stream", "synthetic_response", "abnormal_clock", "inconsistent_request", "request_join_unavailable"];
|
|
547
|
-
export type Operation = "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import" | "explain" | "diagnose" | "profiles_read" | "profiles_apply" | "profile_import" | "profile_export" | "task_details";
|
|
547
|
+
export type Operation = "sources_read" | "sources_apply" | "source_review" | "source_context" | "source_refresh" | "source_status" | "source_cancel" | "source_diagnose" | "describe" | "read" | "preview" | "apply" | "import" | "export" | "preset" | "read_ui_preferences" | "set_ui_language" | "review_import" | "explain" | "diagnose" | "profiles_read" | "profiles_apply" | "profile_import" | "profile_export" | "task_details";
|
|
548
548
|
export interface ItemGuidance {
|
|
549
549
|
source_kinds: string[];
|
|
550
550
|
measurement_scope: string;
|
|
@@ -567,6 +567,16 @@ export interface CatalogItem {
|
|
|
567
567
|
default_enabled: boolean;
|
|
568
568
|
minimum_version_status: "verified" | "unknown";
|
|
569
569
|
guidance: ItemGuidance;
|
|
570
|
+
capabilities?: ItemCapability;
|
|
571
|
+
}
|
|
572
|
+
export interface ItemCapability {
|
|
573
|
+
indicator?: boolean;
|
|
574
|
+
formats: string[];
|
|
575
|
+
visibility: string[];
|
|
576
|
+
link: boolean;
|
|
577
|
+
source: 'none' | 'external' | 'github';
|
|
578
|
+
preview: string;
|
|
579
|
+
explanation: string;
|
|
570
580
|
}
|
|
571
581
|
export interface ChoiceOptions {
|
|
572
582
|
choices: (string | boolean)[];
|
|
@@ -623,6 +633,11 @@ export interface FormattingDraft {
|
|
|
623
633
|
thresholds: ThresholdDraft;
|
|
624
634
|
}
|
|
625
635
|
export interface ItemOptionsDraft {
|
|
636
|
+
presentation?: "numeric" | "bar";
|
|
637
|
+
bar_width?: number;
|
|
638
|
+
cost_rate_basis?: 'session' | 'api';
|
|
639
|
+
bar_style?: "auto" | "unicode" | "ascii";
|
|
640
|
+
link?: 'off' | 'auto' | 'on';
|
|
626
641
|
label: string | null;
|
|
627
642
|
icon: string | null;
|
|
628
643
|
priority: number;
|
|
@@ -634,17 +649,26 @@ export interface ItemOptionsDraft {
|
|
|
634
649
|
visibility_threshold: number;
|
|
635
650
|
}
|
|
636
651
|
export interface InstanceDraft {
|
|
652
|
+
source?: SourceReference;
|
|
637
653
|
id: string;
|
|
638
654
|
type_id: string;
|
|
639
655
|
enabled: boolean;
|
|
640
656
|
options: ItemOptionsDraft;
|
|
641
657
|
text: string | null;
|
|
642
658
|
}
|
|
659
|
+
export interface GroupDraft {
|
|
660
|
+
id: string;
|
|
661
|
+
member_ids: string[];
|
|
662
|
+
primary_id: string;
|
|
663
|
+
link_visibility: boolean;
|
|
664
|
+
shared_powerline: boolean;
|
|
665
|
+
}
|
|
643
666
|
export interface LayoutDraft {
|
|
644
667
|
mode: "auto" | "explicit";
|
|
645
668
|
rows: string[][];
|
|
646
669
|
}
|
|
647
670
|
export interface SubagentDraft {
|
|
671
|
+
groups: GroupDraft[];
|
|
648
672
|
enabled: boolean;
|
|
649
673
|
instances: InstanceDraft[];
|
|
650
674
|
visibility: "all" | "running";
|
|
@@ -663,7 +687,8 @@ export interface PowerlineDraft {
|
|
|
663
687
|
color_mode: "semantic" | "continuous" | "restart";
|
|
664
688
|
}
|
|
665
689
|
export interface DisplayDraft {
|
|
666
|
-
|
|
690
|
+
groups: GroupDraft[];
|
|
691
|
+
schema_version: 13;
|
|
667
692
|
statusline_language: StatuslineLanguage;
|
|
668
693
|
instances: InstanceDraft[];
|
|
669
694
|
use_colors: boolean;
|
|
@@ -693,19 +718,142 @@ export interface Foreground {
|
|
|
693
718
|
value: string | number;
|
|
694
719
|
}
|
|
695
720
|
export interface Span {
|
|
721
|
+
link?: string;
|
|
696
722
|
text: string;
|
|
697
723
|
bold: boolean;
|
|
698
724
|
foreground: Foreground | null;
|
|
699
725
|
background: Foreground | null;
|
|
700
726
|
}
|
|
727
|
+
/** Machine-local source authorization is never part of a portable display. */
|
|
728
|
+
export interface SourceReference {
|
|
729
|
+
binding: string | null;
|
|
730
|
+
hint: string;
|
|
731
|
+
}
|
|
732
|
+
export type SourceKind = 'json' | 'github' | 'command';
|
|
733
|
+
export interface SourceScope {
|
|
734
|
+
project: string | null;
|
|
735
|
+
session: string | null;
|
|
736
|
+
agent: string | null;
|
|
737
|
+
}
|
|
738
|
+
export interface SourceContext extends SourceScope {
|
|
739
|
+
branch: string | null;
|
|
740
|
+
head: string | null;
|
|
741
|
+
}
|
|
742
|
+
export interface SourceSettings {
|
|
743
|
+
path?: string;
|
|
744
|
+
pointer?: string;
|
|
745
|
+
observed_at_pointer?: string;
|
|
746
|
+
unit?: string;
|
|
747
|
+
executable?: string;
|
|
748
|
+
args?: string[];
|
|
749
|
+
cwd?: string;
|
|
750
|
+
input?: Record<string, string>;
|
|
751
|
+
output?: 'json' | 'text';
|
|
752
|
+
timeout_ms?: number;
|
|
753
|
+
host?: string;
|
|
754
|
+
repository?: string;
|
|
755
|
+
branch?: string;
|
|
756
|
+
account?: string;
|
|
757
|
+
pr?: number | null;
|
|
758
|
+
}
|
|
759
|
+
export interface SourceDefinition {
|
|
760
|
+
id: string;
|
|
761
|
+
name: string;
|
|
762
|
+
kind: SourceKind;
|
|
763
|
+
scope: SourceScope;
|
|
764
|
+
ttl_seconds: number;
|
|
765
|
+
settings: SourceSettings;
|
|
766
|
+
enabled: boolean;
|
|
767
|
+
revision: string;
|
|
768
|
+
}
|
|
769
|
+
export interface SourceBinding {
|
|
770
|
+
id: string;
|
|
771
|
+
source_id: string;
|
|
772
|
+
}
|
|
773
|
+
export interface AutomaticPolicy {
|
|
774
|
+
source_id: string;
|
|
775
|
+
enabled: boolean;
|
|
776
|
+
review_revision: string;
|
|
777
|
+
interval_seconds: number;
|
|
778
|
+
auth_revision: string;
|
|
779
|
+
}
|
|
780
|
+
export interface AutomaticStatus {
|
|
781
|
+
state: 'off' | 'waiting' | 'running' | 'backoff' | 'paused';
|
|
782
|
+
reason: string;
|
|
783
|
+
next_at: string | null;
|
|
784
|
+
last_attempt: string | null;
|
|
785
|
+
last_success: string | null;
|
|
786
|
+
interval_seconds: number;
|
|
787
|
+
}
|
|
788
|
+
export interface SourceRegistry {
|
|
789
|
+
version: 2;
|
|
790
|
+
sources: SourceDefinition[];
|
|
791
|
+
bindings: SourceBinding[];
|
|
792
|
+
automatic: AutomaticPolicy[];
|
|
793
|
+
}
|
|
794
|
+
export interface SourcesResult extends SourceRegistry {
|
|
795
|
+
revision: string;
|
|
796
|
+
}
|
|
797
|
+
export type SourceState = 'valid' | 'missing' | 'partial' | 'error' | 'unsupported';
|
|
798
|
+
export interface SourceObservation {
|
|
799
|
+
version: 1;
|
|
800
|
+
source_id: string;
|
|
801
|
+
source_revision: string;
|
|
802
|
+
context: SourceContext;
|
|
803
|
+
observed_at: string | null;
|
|
804
|
+
state: SourceState;
|
|
805
|
+
reason: string;
|
|
806
|
+
value: string | number | boolean | null;
|
|
807
|
+
unit: string | null;
|
|
808
|
+
fields?: Record<string, string | number | boolean | null>;
|
|
809
|
+
identity?: {
|
|
810
|
+
host: string;
|
|
811
|
+
repository: string;
|
|
812
|
+
account: string;
|
|
813
|
+
auth_revision: string;
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
export interface SourceView {
|
|
817
|
+
source_id: string | null;
|
|
818
|
+
name: string;
|
|
819
|
+
state: SourceState | 'disabled' | 'unbound' | 'mismatch';
|
|
820
|
+
reason: string;
|
|
821
|
+
observed_at: string | null;
|
|
822
|
+
freshness: 'current' | 'stale' | 'unknown';
|
|
823
|
+
value: string | number | boolean | null;
|
|
824
|
+
unit: string | null;
|
|
825
|
+
fields?: Record<string, string | number | boolean | null>;
|
|
826
|
+
}
|
|
827
|
+
export interface SourceJob {
|
|
828
|
+
version: 2;
|
|
829
|
+
id: string;
|
|
830
|
+
source_id: string;
|
|
831
|
+
source_revision: string;
|
|
832
|
+
owner: string;
|
|
833
|
+
trigger: 'manual' | 'automatic';
|
|
834
|
+
identity: string;
|
|
835
|
+
context: SourceContext;
|
|
836
|
+
started_at: string;
|
|
837
|
+
deadline_at: string;
|
|
838
|
+
state: 'running' | 'completed' | 'failed' | 'cancelled';
|
|
839
|
+
reason: string;
|
|
840
|
+
}
|
|
841
|
+
export interface SourceReview {
|
|
842
|
+
source: SourceDefinition;
|
|
843
|
+
review_revision: string;
|
|
844
|
+
}
|
|
845
|
+
export interface SourceMutationResult extends SourcesResult {
|
|
846
|
+
binding?: SourceReference;
|
|
847
|
+
backup_dir: string | null;
|
|
848
|
+
}
|
|
701
849
|
export interface PreviewResult {
|
|
702
850
|
sample: true;
|
|
703
851
|
main: Span[][];
|
|
704
852
|
subagents: Span[][];
|
|
705
853
|
}
|
|
706
|
-
export declare const SAMPLE_REASONS: readonly ["sample_visible", "sample_empty", "sample_condition_hidden", "sample_truncated", "sample_priority_omitted", "sample_width_omitted", "sample_row_hidden", "sample_spacer"];
|
|
854
|
+
export declare const SAMPLE_REASONS: readonly ["sample_group_hidden", "sample_visible", "sample_empty", "sample_condition_hidden", "sample_truncated", "sample_priority_omitted", "sample_width_omitted", "sample_row_hidden", "sample_spacer"];
|
|
707
855
|
export type SampleReason = typeof SAMPLE_REASONS[number];
|
|
708
|
-
export declare const EXPLAIN_REASONS: readonly ["configured_on", "configured_off", "scope_disabled", "installation_owned", "installation_absent", "installation_foreign", "installation_unknown", "unknown_host_version", "host_supported", "unsupported_host", "host_requirement_unknown", "collector_unknown", "native_timing_on", "native_timing_off", "live_metrics_on", "live_metrics_off", "actual_not_observed"];
|
|
856
|
+
export declare const EXPLAIN_REASONS: readonly ["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"];
|
|
709
857
|
export interface ExplainReason {
|
|
710
858
|
code: string;
|
|
711
859
|
origin: 'configuration' | 'local_configuration' | 'host_capability' | 'unknown';
|
|
@@ -730,7 +878,7 @@ export interface ExplainResult {
|
|
|
730
878
|
preview: PreviewResult;
|
|
731
879
|
instances: ExplainInstance[];
|
|
732
880
|
}
|
|
733
|
-
export declare const LAYOUT_REASONS: readonly ["visible", "empty", "condition_hidden", "priority_omitted", "width_omitted", "row_hidden", "spacer"];
|
|
881
|
+
export declare const LAYOUT_REASONS: readonly ["group_hidden", "visible", "empty", "condition_hidden", "priority_omitted", "width_omitted", "row_hidden", "spacer"];
|
|
734
882
|
export type LayoutReason = typeof LAYOUT_REASONS[number];
|
|
735
883
|
export interface InstanceLayout {
|
|
736
884
|
row_id: string;
|
|
@@ -947,6 +1095,19 @@ export interface ApplyResult {
|
|
|
947
1095
|
configuration?: ResolvedConfiguration;
|
|
948
1096
|
}
|
|
949
1097
|
export interface ResultMap {
|
|
1098
|
+
sources_read: SourcesResult;
|
|
1099
|
+
sources_apply: SourceMutationResult;
|
|
1100
|
+
source_review: SourceReview;
|
|
1101
|
+
source_context: SourceContext;
|
|
1102
|
+
source_refresh: SourceJob;
|
|
1103
|
+
source_status: SourceJob;
|
|
1104
|
+
source_cancel: SourceJob;
|
|
1105
|
+
source_diagnose: {
|
|
1106
|
+
source: SourceDefinition;
|
|
1107
|
+
view: SourceView;
|
|
1108
|
+
jobs: SourceJob[];
|
|
1109
|
+
automatic: AutomaticStatus;
|
|
1110
|
+
};
|
|
950
1111
|
describe: DescribeResult;
|
|
951
1112
|
read: ReadResult;
|
|
952
1113
|
preview: PreviewResult;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/** Canonical editor protocol and static descriptors. Emit Mod copies with the TS resource generator. */
|
|
2
2
|
import { LANGUAGES } from "../i18n/registry.js";
|
|
3
3
|
import { MAIN_ITEM_IDS as generatedMAIN_ITEM_IDS, SUBAGENT_ITEM_IDS as generatedSUBAGENT_ITEM_IDS, PRESETS as generatedPRESETS } from "./generated-catalog.js";
|
|
4
|
-
export const PROTOCOL_VERSION =
|
|
4
|
+
export const PROTOCOL_VERSION = 21;
|
|
5
5
|
export const ITEM_DEFAULTS = { "label": null, "icon": null, "priority": 50, "max_width": null, "formatting": {}, "foreground": null, "background": null, "visibility": "always", "visibility_threshold": 70 };
|
|
6
6
|
export const VISIBILITY_ITEMS = { "main": { "git": "git-dirty", "git-changes": "git-dirty", "active-agents": "nonzero", "task-progress": "nonzero", "context-used": "used-at-least", "context-remaining": "used-at-least", "five-hour-limit": "used-at-least", "weekly-limit": "used-at-least", "spend-limit": "used-at-least" }, "subagent": { "context-used": "used-at-least", "context-remaining": "used-at-least" } };
|
|
7
|
-
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"] };
|
|
7
|
+
export const GUIDANCE_KEYS = { "source_kinds": ["configuration", "official_input", "local_git", "local_system", "transcript", "local_state", "lifecycle", "native_timing", "live_metrics", "telemetry"], "scopes": ["main", "main_context", "session", "all_sessions", "task", "subagent", "subagent_context", "repository", "local", "latest_request"], "requirements": ["observed_field", "subagent_rows", "agent_context", "configured_effort", "agent_effort_optional", "git_repository", "git_upstream", "git_base", "pull_request", "worktree_session", "usage_records", "task_observation", "native_timing", "complete_waits", "live_metrics", "owned_agents", "checklist_events", "tool_events", "complete_stream", "request_coverage", "existing_telemetry", "gateway", "gateway_284", "valid_window", "warm_cache", "fast_mode", "thinking", "agent_mode", "vim_mode", "context_observation", "cost_rate"] };
|
|
8
8
|
export const POWERLINE_FIELDS = [
|
|
9
9
|
{
|
|
10
10
|
"key": "powerline.padding",
|
|
@@ -503,8 +503,8 @@ export const POWERLINE_OPTIONS = Object.fromEntries(POWERLINE_FIELDS.map(field =
|
|
|
503
503
|
field.key.replaceAll('.', '-').replaceAll('_', '-'),
|
|
504
504
|
{ choices: field.kind === 'boolean' ? [true, false] : [...field.choices] },
|
|
505
505
|
]));
|
|
506
|
-
export const SAMPLE_REASONS = ['sample_visible', 'sample_empty', 'sample_condition_hidden', 'sample_truncated', 'sample_priority_omitted', 'sample_width_omitted', 'sample_row_hidden', 'sample_spacer'];
|
|
507
|
-
export const EXPLAIN_REASONS = ['configured_on', 'configured_off', 'scope_disabled', 'installation_owned', 'installation_absent', 'installation_foreign', 'installation_unknown', 'unknown_host_version', 'host_supported', 'unsupported_host', 'host_requirement_unknown', 'collector_unknown', 'native_timing_on', 'native_timing_off', 'live_metrics_on', 'live_metrics_off', 'actual_not_observed'];
|
|
508
|
-
export const LAYOUT_REASONS = ['visible', 'empty', 'condition_hidden', 'priority_omitted', 'width_omitted', 'row_hidden', 'spacer'];
|
|
506
|
+
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'];
|
|
507
|
+
export const EXPLAIN_REASONS = ['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'];
|
|
508
|
+
export const LAYOUT_REASONS = ['group_hidden', 'visible', 'empty', 'condition_hidden', 'priority_omitted', 'width_omitted', 'row_hidden', 'spacer'];
|
|
509
509
|
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'];
|
|
510
510
|
//# sourceMappingURL=ui.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../src/contracts/ui.ts"],"names":[],"mappings":"AAAA,wG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tJ,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,UAAU,EAAC,cAAc,EAAC,eAAe,EAAC,oBAAoB,EAAC,yBAAyB,EAAC,kBAAkB,EAAC,iBAAiB,EAAC,OAAO,EAAC,SAAS,EAAC,eAAe,EAAC,YAAY,EAAC,kBAAkB,EAAC,kBAAkB,EAAC,WAAW,EAAC,cAAc,CAAU,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { Scope, EditorField } from '../contracts/ui.js';
|
|
1
|
+
import type { Scope, EditorField, ItemCapability } from '../contracts/ui.js';
|
|
2
2
|
export declare function visibilityChoices(scope: Scope, id: string): string[];
|
|
3
|
-
|
|
3
|
+
/** Existing rendering rules remain compatible; editors expose only effective overrides. */
|
|
4
|
+
export declare function supportedFormats(scope: Scope, id: string, capability?: ItemCapability): string[];
|
|
5
|
+
export declare function itemFields(fields: EditorField[], scope: Scope, id: string, capability?: ItemCapability): EditorField[];
|
|
4
6
|
export declare function validColor(value: unknown): boolean;
|
|
5
7
|
export declare function normalizeColor(value: unknown): unknown;
|
|
@@ -1,19 +1,44 @@
|
|
|
1
|
+
import { COST_RATE_FIELD } from './cost-rate.js';
|
|
2
|
+
import { supportsIndicator, INDICATOR_FIELDS } from './indicators.js';
|
|
1
3
|
/** Pure controls/validation from Python's scoped visibility capabilities. */
|
|
2
|
-
import { VISIBILITY_ITEMS } from '../contracts/ui.js';
|
|
4
|
+
import { VISIBILITY_ITEMS, FORMAT_CHOICES } from '../contracts/ui.js';
|
|
3
5
|
export function visibilityChoices(scope, id) {
|
|
4
6
|
const rule = VISIBILITY_ITEMS[scope][id];
|
|
5
7
|
return rule ? ['always', rule] : ['always'];
|
|
6
8
|
}
|
|
7
|
-
|
|
9
|
+
/** Existing rendering rules remain compatible; editors expose only effective overrides. */
|
|
10
|
+
export function supportedFormats(scope, id, capability) {
|
|
11
|
+
if (capability)
|
|
12
|
+
return capability.formats;
|
|
13
|
+
if (id === 'text' || id === 'spacer')
|
|
14
|
+
return [];
|
|
15
|
+
const fields = ['labels', 'icons'];
|
|
16
|
+
if (['model', 'model-with-effort'].includes(id))
|
|
17
|
+
fields.push('model_name');
|
|
18
|
+
const numbers = scope === 'main'
|
|
19
|
+
? ['context-window-size', 'context-tokens', 'tokens', 'input-tokens', 'output-tokens', 'cost', 'prompt-cache', 'session-cost', 'lines-changed', 'cache-misses', 'api-requests', 'spend-amount', 'active-agents', 'prompt-input-tokens', 'prompt-output-tokens', 'prompt-cost']
|
|
20
|
+
: ['context-window-size', 'context-tokens', 'tokens'];
|
|
21
|
+
if (numbers.includes(id))
|
|
22
|
+
fields.push('number_format');
|
|
23
|
+
if (scope === 'main' && ['five-hour-limit', 'weekly-limit', 'spend-limit'].includes(id))
|
|
24
|
+
fields.push('allowance');
|
|
25
|
+
if (scope === 'main' && ['five-hour-reset', 'weekly-reset'].includes(id))
|
|
26
|
+
fields.push('reset_format', 'reset_timezone');
|
|
27
|
+
return fields;
|
|
28
|
+
}
|
|
29
|
+
export function itemFields(fields, scope, id, capability) {
|
|
8
30
|
if (id === 'spacer')
|
|
9
31
|
return [];
|
|
10
32
|
if (id === 'text')
|
|
11
33
|
return [{ key: 'text', label: 'Literal text', group: 'Item format', kind: 'text', choices: [], minimum: 0, maximum: 256, nullable: false },
|
|
12
34
|
...fields.filter(f => ['label', 'icon', 'foreground', 'background', 'priority', 'max_width'].includes(f.key))];
|
|
13
|
-
const choices = visibilityChoices(scope, id);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
35
|
+
const choices = capability?.visibility ?? visibilityChoices(scope, id);
|
|
36
|
+
const links = capability?.link ? [{ key: 'link', label: 'Links', group: 'Item format', kind: 'choice', choices: ['off', 'auto', 'on'], minimum: 0, maximum: 0, nullable: false }] : [];
|
|
37
|
+
const formats = supportedFormats(scope, id, capability);
|
|
38
|
+
fields = fields.filter(field => !Object.hasOwn(FORMAT_CHOICES, field.key) || formats.includes(field.key));
|
|
39
|
+
return [...(scope === 'main' && id === 'session-cost-rate' ? [COST_RATE_FIELD] : []), ...(supportsIndicator(scope, id) ? INDICATOR_FIELDS : []), ...links, ...fields.filter(spec => (spec.key !== 'visibility' || choices.length > 1) &&
|
|
40
|
+
(spec.key !== 'visibility_threshold' || choices.includes('used-at-least')))
|
|
41
|
+
.map(spec => spec.key === 'visibility' ? { ...spec, choices } : spec)];
|
|
17
42
|
}
|
|
18
43
|
export function validColor(value) {
|
|
19
44
|
return value === null || value === 'default' || typeof value === 'string' && !/\s/u.test(value) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../src/editor/appearance.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"appearance.js","sourceRoot":"","sources":["../../../src/editor/appearance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtE,6EAA6E;AAC7E,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGtE,MAAM,UAAU,iBAAiB,CAAC,KAAY,EAAE,EAAU;IACxD,MAAM,IAAI,GAAI,gBAAgB,CAAC,KAAK,CAA4B,CAAC,EAAE,CAAC,CAAC;IACrE,OAAO,IAAI,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC9C,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,gBAAgB,CAAC,KAAY,EAAE,EAAU,EAAE,UAA2B;IACpF,IAAI,UAAU;QAAE,OAAO,UAAU,CAAC,OAAO,CAAC;IAC1C,IAAI,EAAE,KAAK,MAAM,IAAI,EAAE,KAAK,QAAQ;QAAE,OAAO,EAAE,CAAC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
|
+
import { validCostRateOptions } from './cost-rate.js';
|
|
2
|
+
import { validGroups } from './groups.js';
|
|
3
|
+
import { INDICATOR_KEYS, validIndicatorOptions } from './indicators.js';
|
|
1
4
|
import { SAMPLE_REASONS, EXPLAIN_REASONS, LAYOUT_REASONS, EVIDENCE_STATUSES } from '../contracts/ui.js';
|
|
2
5
|
import { text as localizedText } from '../i18n/messages.js';
|
|
3
6
|
/** Protocol parsing only. Host calls stay in the hooks entry for static analysis. */
|
|
4
7
|
import { PROTOCOL_VERSION, MAIN_ITEM_IDS, SUBAGENT_ITEM_IDS, PALETTE_VALUES, THEME_VALUES, POWERLINEGLYPH_VALUES, DIRECTORYSTYLE_VALUES, SEPARATORSTYLE_VALUES, SCOPELABELS_VALUES, STATUSLINELANGUAGE_VALUES, UNAVAILABLEREASON_VALUES, FORMAT_CHOICES, PRESETS, EDITOR_FIELDS, POWERLINE_FIELDS, GUIDANCE_KEYS, ITEM_DEFAULTS, } from '../contracts/ui.js';
|
|
5
8
|
import { validColor, visibilityChoices } from './appearance.js';
|
|
9
|
+
import { isSourceResult } from './source-validation.js';
|
|
6
10
|
import { isLocalizedText } from '../i18n/messages.js';
|
|
7
11
|
export class BackendError extends Error {
|
|
8
12
|
code;
|
|
@@ -58,10 +62,10 @@ function itemOptions(value, ids, scope) {
|
|
|
58
62
|
if (!object(value))
|
|
59
63
|
return false;
|
|
60
64
|
return Object.entries(value).every(([id, option]) => ids.includes(id) && object(option) &&
|
|
61
|
-
exact(option, ['label', 'icon', 'priority', 'max_width', 'formatting', 'foreground', 'background', 'visibility', 'visibility_threshold']) &&
|
|
65
|
+
exact(option, ['label', 'icon', 'priority', 'max_width', 'formatting', 'foreground', 'background', 'visibility', 'visibility_threshold', ...(option.link !== undefined ? ['link'] : []), ...INDICATOR_KEYS.filter(key => Object.hasOwn(option, key)), ...(Object.hasOwn(option, 'cost_rate_basis') ? ['cost_rate_basis'] : [])]) && (option.link === undefined || ['off', 'auto', 'on'].includes(String(option.link))) &&
|
|
62
66
|
(option.label === null || (text(option.label) && [...option.label].length <= 256)) &&
|
|
63
67
|
(option.icon === null || (text(option.icon) && [...option.icon].length <= 256)) &&
|
|
64
|
-
range(option.priority, 0, 100) && range(option.max_width, 2, 10000, true) &&
|
|
68
|
+
validIndicatorOptions(option, scope, id) && validCostRateOptions(option, scope, id) && range(option.priority, 0, 100) && range(option.max_width, 2, 10000, true) &&
|
|
65
69
|
formatOverrides(option.formatting) && validColor(option.foreground) && validColor(option.background) &&
|
|
66
70
|
typeof option.visibility === "string" && visibilityChoices(scope, id).includes(option.visibility) &&
|
|
67
71
|
range(option.visibility_threshold, 0, 100));
|
|
@@ -80,7 +84,7 @@ function instanceList(value, ids, scope) {
|
|
|
80
84
|
return false;
|
|
81
85
|
const seen = new Set();
|
|
82
86
|
return value.every(node => {
|
|
83
|
-
if (!object(node) || !exact(node, ['id', 'type_id', 'enabled', 'options', 'text']) ||
|
|
87
|
+
if (!object(node) || !exact(node, ['id', 'type_id', 'enabled', 'options', 'text', ...(node.source !== undefined ? ['source'] : [])]) || node.source !== undefined && (!object(node.source) || !exact(node.source, ['binding', 'hint']) || !(node.source.binding === null || text(node.source.binding)) || !text(node.source.hint)) ||
|
|
84
88
|
typeof node.id !== 'string' || !/^[A-Za-z0-9][A-Za-z0-9_-]{0,95}$/.test(node.id) || seen.has(node.id) ||
|
|
85
89
|
typeof node.type_id !== 'string' || !ids.includes(node.type_id) || typeof node.enabled !== 'boolean' ||
|
|
86
90
|
!itemOptions({ [node.type_id]: node.options }, ids, scope))
|
|
@@ -107,7 +111,7 @@ export function isDraft(value) {
|
|
|
107
111
|
const d = value.display;
|
|
108
112
|
const h = value.host;
|
|
109
113
|
if (!exact(d, [
|
|
110
|
-
'schema_version',
|
|
114
|
+
'schema_version', 'groups',
|
|
111
115
|
'statusline_language',
|
|
112
116
|
'instances',
|
|
113
117
|
'use_colors',
|
|
@@ -120,7 +124,7 @@ export function isDraft(value) {
|
|
|
120
124
|
]) ||
|
|
121
125
|
!exact(h, ['padding', 'refresh_interval', 'hide_vim_mode_indicator']))
|
|
122
126
|
return false;
|
|
123
|
-
if (d.schema_version !==
|
|
127
|
+
if (d.schema_version !== 13 ||
|
|
124
128
|
!object(d.powerline) || !exact(d.powerline, POWERLINE_FIELDS.map(f => f.key.slice(10))) ||
|
|
125
129
|
!POWERLINE_FIELDS.every(f => f.kind === 'boolean' ? typeof d.powerline[f.key.slice(10)] === 'boolean' :
|
|
126
130
|
f.choices.includes(d.powerline[f.key.slice(10)])) ||
|
|
@@ -139,7 +143,7 @@ export function isDraft(value) {
|
|
|
139
143
|
return false;
|
|
140
144
|
const sub = d.subagents;
|
|
141
145
|
if (!object(sub) ||
|
|
142
|
-
!exact(sub, ['enabled', 'instances', 'visibility', 'hide_completed', 'row_limit', 'task_max_width']) ||
|
|
146
|
+
!exact(sub, ['enabled', 'instances', 'groups', 'visibility', 'hide_completed', 'row_limit', 'task_max_width']) ||
|
|
143
147
|
!['all', 'running'].includes(String(sub.visibility)) ||
|
|
144
148
|
typeof sub.hide_completed !== 'boolean' || !range(sub.row_limit, 0, 10000, true) ||
|
|
145
149
|
!range(sub.task_max_width, 2, 10000, true) ||
|
|
@@ -160,6 +164,8 @@ export function isDraft(value) {
|
|
|
160
164
|
(layout.mode === 'auto' ? layout.rows.length !== 0 || spacers.size > 0 :
|
|
161
165
|
JSON.stringify(layout.rows.flat()) !== JSON.stringify(ids)))
|
|
162
166
|
return false;
|
|
167
|
+
if (!validGroups(d.groups, d.instances, layout) || !validGroups(sub.groups, sub.instances))
|
|
168
|
+
return false;
|
|
163
169
|
// Exclusions come from describe; the backend remains the final draft validator.
|
|
164
170
|
return (typeof h.padding === 'number' &&
|
|
165
171
|
Number.isInteger(h.padding) &&
|
|
@@ -370,6 +376,10 @@ export function parseResponse(operation, process) {
|
|
|
370
376
|
if (!isDraft(result.draft))
|
|
371
377
|
fail();
|
|
372
378
|
}
|
|
379
|
+
else if (operation.startsWith('source')) {
|
|
380
|
+
if (!isSourceResult(operation, result))
|
|
381
|
+
fail();
|
|
382
|
+
}
|
|
373
383
|
else if (operation === 'profiles_read' || operation === 'profiles_apply') {
|
|
374
384
|
if (!isProfiles(result) || operation === 'profiles_apply' && (typeof result.changed !== 'boolean' || !(result.backup_dir === null || text(result.backup_dir))))
|
|
375
385
|
fail();
|
|
@@ -420,8 +430,8 @@ export function parseResponse(operation, process) {
|
|
|
420
430
|
!result.backend_version ||
|
|
421
431
|
!isOptions(result.options) ||
|
|
422
432
|
!isCapabilities(result.capabilities) ||
|
|
423
|
-
!selection(result.operations, ['describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain', 'diagnose', 'profiles_read', 'profiles_apply', 'profile_import', 'profile_export', 'task_details']) ||
|
|
424
|
-
result.operations.length !==
|
|
433
|
+
!selection(result.operations, ['sources_read', 'sources_apply', 'source_review', 'source_context', 'source_refresh', 'source_status', 'source_cancel', 'source_diagnose', 'describe', 'read', 'preview', 'apply', 'import', 'export', 'preset', 'read_ui_preferences', 'set_ui_language', 'review_import', 'explain', 'diagnose', 'profiles_read', 'profiles_apply', 'profile_import', 'profile_export', 'task_details']) ||
|
|
434
|
+
result.operations.length !== 25 ||
|
|
425
435
|
JSON.stringify(result.editor_fields) !== JSON.stringify(EDITOR_FIELDS) ||
|
|
426
436
|
JSON.stringify(result.presets) !== JSON.stringify(PRESETS) ||
|
|
427
437
|
!object(result.formatting_options) ||
|