@fbincon/claude-code-statusline 3.4.0 → 3.6.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 -75
- package/candidate.json +392 -297
- package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js +5 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.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/service.d.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js +14 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/service.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 +8 -2
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.d.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.d.ts +23 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js +168 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup-service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js +64 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/setup.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +24 -4
- 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/sources/command.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/command.js +117 -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/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 +35 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/sources/service.js +359 -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 +31 -1
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +5 -0
- 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 +14 -7
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +6 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts +24 -6
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/profile-manager.ts +21 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/quick-setup.ts +14 -11
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/setup.ts +60 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-manager.ts +301 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/source-validation.ts +45 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +577 -10
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +1164 -6
- 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 +21 -18
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +6 -2
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +1 -1
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +3 -3
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.d.ts +91 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js +250 -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.d.ts +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +5 -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 +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +21 -12
- 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 +7 -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.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +15 -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 +4 -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 +7 -2
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +37 -3
- 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 +26 -2
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +3 -3
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +263 -6
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +486 -3
- 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 +29 -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 +16 -7
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +1 -0
- 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 +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/profile-manager.js +26 -1
- 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.d.ts +4 -4
- package/node_modules/@fbincon/statusline-core/dist/src/editor/quick-setup.js +16 -9
- 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 +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js +96 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/setup.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.d.ts +39 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/source-manager.js +270 -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 +45 -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 +222 -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 +1158 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +1164 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +27 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +27 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +27 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +27 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-HK.js +27 -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 +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-TW.js +27 -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.d.ts +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +25 -3
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +3 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +18 -5
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -1
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +3 -0
- 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/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/items.js +12 -6
- 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/powerline.d.ts +15 -5
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +78 -48
- 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 +6 -0
- 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 +15 -4
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.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 +194 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +194 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +194 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +194 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-HK.json +194 -1
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-TW.json +194 -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 +37 -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 +6 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/pages.js.map +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing/presentation.js +2 -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 +2 -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/setup.d.ts +12 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/setup.js +75 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/setup.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +1 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js +12 -1
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -1
- package/package.json +1 -1
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts
CHANGED
|
@@ -1,14 +1,493 @@
|
|
|
1
1
|
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
|
-
export const PROTOCOL_VERSION =
|
|
2
|
+
export const PROTOCOL_VERSION = 17 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"]} as const;
|
|
6
|
-
export const
|
|
7
|
-
|
|
6
|
+
export const POWERLINE_FIELDS = [
|
|
7
|
+
{
|
|
8
|
+
"key": "powerline.padding",
|
|
9
|
+
"label": "Block padding",
|
|
10
|
+
"group": "Appearance",
|
|
11
|
+
"kind": "choice",
|
|
12
|
+
"choices": [
|
|
13
|
+
"none",
|
|
14
|
+
"left",
|
|
15
|
+
"right",
|
|
16
|
+
"both"
|
|
17
|
+
],
|
|
18
|
+
"minimum": 0,
|
|
19
|
+
"maximum": 10000,
|
|
20
|
+
"nullable": false
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"key": "powerline.separator",
|
|
24
|
+
"label": "Block separator",
|
|
25
|
+
"group": "Appearance",
|
|
26
|
+
"kind": "choice",
|
|
27
|
+
"choices": [
|
|
28
|
+
"arrow",
|
|
29
|
+
"slash",
|
|
30
|
+
"bar",
|
|
31
|
+
"none"
|
|
32
|
+
],
|
|
33
|
+
"minimum": 0,
|
|
34
|
+
"maximum": 10000,
|
|
35
|
+
"nullable": false
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"key": "powerline.start_cap",
|
|
39
|
+
"label": "Start decoration",
|
|
40
|
+
"group": "Appearance",
|
|
41
|
+
"kind": "boolean",
|
|
42
|
+
"choices": [],
|
|
43
|
+
"minimum": 0,
|
|
44
|
+
"maximum": 10000,
|
|
45
|
+
"nullable": false
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"key": "powerline.end_cap",
|
|
49
|
+
"label": "End decoration",
|
|
50
|
+
"group": "Appearance",
|
|
51
|
+
"kind": "boolean",
|
|
52
|
+
"choices": [],
|
|
53
|
+
"minimum": 0,
|
|
54
|
+
"maximum": 10000,
|
|
55
|
+
"nullable": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"key": "powerline.color_mode",
|
|
59
|
+
"label": "Block colors across lines",
|
|
60
|
+
"group": "Appearance",
|
|
61
|
+
"kind": "choice",
|
|
62
|
+
"choices": [
|
|
63
|
+
"semantic",
|
|
64
|
+
"continuous",
|
|
65
|
+
"restart"
|
|
66
|
+
],
|
|
67
|
+
"minimum": 0,
|
|
68
|
+
"maximum": 10000,
|
|
69
|
+
"nullable": false
|
|
70
|
+
}
|
|
71
|
+
] as const;
|
|
72
|
+
export const EDITOR_FIELDS = {
|
|
73
|
+
"global": [
|
|
74
|
+
{
|
|
75
|
+
"key": "theme",
|
|
76
|
+
"label": "Statusline theme",
|
|
77
|
+
"group": "Appearance",
|
|
78
|
+
"kind": "choice",
|
|
79
|
+
"choices": [
|
|
80
|
+
"classic",
|
|
81
|
+
"dark",
|
|
82
|
+
"light",
|
|
83
|
+
"terminal"
|
|
84
|
+
],
|
|
85
|
+
"minimum": 0,
|
|
86
|
+
"maximum": 10000,
|
|
87
|
+
"nullable": false
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"key": "powerline_glyph",
|
|
91
|
+
"label": "Powerline separator",
|
|
92
|
+
"group": "Appearance",
|
|
93
|
+
"kind": "choice",
|
|
94
|
+
"choices": [
|
|
95
|
+
"ascii",
|
|
96
|
+
"powerline"
|
|
97
|
+
],
|
|
98
|
+
"minimum": 0,
|
|
99
|
+
"maximum": 10000,
|
|
100
|
+
"nullable": false
|
|
101
|
+
},
|
|
102
|
+
...POWERLINE_FIELDS,
|
|
103
|
+
{
|
|
104
|
+
"key": "statusline_language",
|
|
105
|
+
"label": "Statusline language (save with display settings)",
|
|
106
|
+
"group": "Appearance",
|
|
107
|
+
"kind": "choice",
|
|
108
|
+
"choices": ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"],
|
|
109
|
+
"minimum": 0,
|
|
110
|
+
"maximum": 10000,
|
|
111
|
+
"nullable": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"key": "metrics.branch_diff_base_ref",
|
|
115
|
+
"label": "Branch diff base (inherit = auto)",
|
|
116
|
+
"group": "Git metrics",
|
|
117
|
+
"kind": "text",
|
|
118
|
+
"choices": [],
|
|
119
|
+
"minimum": 0,
|
|
120
|
+
"maximum": 10000,
|
|
121
|
+
"nullable": true
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"key": "formatting.model_name",
|
|
125
|
+
"label": "Model Name",
|
|
126
|
+
"group": "Formatting",
|
|
127
|
+
"kind": "choice",
|
|
128
|
+
"choices": [
|
|
129
|
+
"original",
|
|
130
|
+
"short"
|
|
131
|
+
],
|
|
132
|
+
"minimum": 0,
|
|
133
|
+
"maximum": 10000,
|
|
134
|
+
"nullable": false
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"key": "formatting.number_format",
|
|
138
|
+
"label": "Number Format",
|
|
139
|
+
"group": "Formatting",
|
|
140
|
+
"kind": "choice",
|
|
141
|
+
"choices": [
|
|
142
|
+
"legacy",
|
|
143
|
+
"compact",
|
|
144
|
+
"full",
|
|
145
|
+
"grouped"
|
|
146
|
+
],
|
|
147
|
+
"minimum": 0,
|
|
148
|
+
"maximum": 10000,
|
|
149
|
+
"nullable": false
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"key": "formatting.labels",
|
|
153
|
+
"label": "Labels",
|
|
154
|
+
"group": "Formatting",
|
|
155
|
+
"kind": "choice",
|
|
156
|
+
"choices": [
|
|
157
|
+
"legacy",
|
|
158
|
+
"short",
|
|
159
|
+
"off"
|
|
160
|
+
],
|
|
161
|
+
"minimum": 0,
|
|
162
|
+
"maximum": 10000,
|
|
163
|
+
"nullable": false
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"key": "formatting.icons",
|
|
167
|
+
"label": "Icons",
|
|
168
|
+
"group": "Formatting",
|
|
169
|
+
"kind": "choice",
|
|
170
|
+
"choices": [
|
|
171
|
+
"legacy",
|
|
172
|
+
"unicode",
|
|
173
|
+
"ascii",
|
|
174
|
+
"off"
|
|
175
|
+
],
|
|
176
|
+
"minimum": 0,
|
|
177
|
+
"maximum": 10000,
|
|
178
|
+
"nullable": false
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"key": "formatting.allowance",
|
|
182
|
+
"label": "Allowance",
|
|
183
|
+
"group": "Formatting",
|
|
184
|
+
"kind": "choice",
|
|
185
|
+
"choices": [
|
|
186
|
+
"remaining",
|
|
187
|
+
"used"
|
|
188
|
+
],
|
|
189
|
+
"minimum": 0,
|
|
190
|
+
"maximum": 10000,
|
|
191
|
+
"nullable": false
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"key": "formatting.reset_format",
|
|
195
|
+
"label": "Reset Format",
|
|
196
|
+
"group": "Formatting",
|
|
197
|
+
"kind": "choice",
|
|
198
|
+
"choices": [
|
|
199
|
+
"countdown",
|
|
200
|
+
"time",
|
|
201
|
+
"datetime"
|
|
202
|
+
],
|
|
203
|
+
"minimum": 0,
|
|
204
|
+
"maximum": 10000,
|
|
205
|
+
"nullable": false
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"key": "formatting.reset_timezone",
|
|
209
|
+
"label": "Reset Timezone",
|
|
210
|
+
"group": "Formatting",
|
|
211
|
+
"kind": "choice",
|
|
212
|
+
"choices": [
|
|
213
|
+
"local",
|
|
214
|
+
"UTC"
|
|
215
|
+
],
|
|
216
|
+
"minimum": 0,
|
|
217
|
+
"maximum": 10000,
|
|
218
|
+
"nullable": false
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"key": "formatting.thresholds.enabled",
|
|
222
|
+
"label": "Threshold colors",
|
|
223
|
+
"group": "Risk colors",
|
|
224
|
+
"kind": "boolean",
|
|
225
|
+
"choices": [],
|
|
226
|
+
"minimum": 0,
|
|
227
|
+
"maximum": 10000,
|
|
228
|
+
"nullable": false
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"key": "formatting.thresholds.warning",
|
|
232
|
+
"label": "Warning (%)",
|
|
233
|
+
"group": "Risk colors",
|
|
234
|
+
"kind": "integer",
|
|
235
|
+
"choices": [],
|
|
236
|
+
"minimum": 0,
|
|
237
|
+
"maximum": 100,
|
|
238
|
+
"nullable": false
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"key": "formatting.thresholds.critical",
|
|
242
|
+
"label": "Critical (%)",
|
|
243
|
+
"group": "Risk colors",
|
|
244
|
+
"kind": "integer",
|
|
245
|
+
"choices": [],
|
|
246
|
+
"minimum": 0,
|
|
247
|
+
"maximum": 100,
|
|
248
|
+
"nullable": false
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"key": "subagents.visibility",
|
|
252
|
+
"label": "Visible agents",
|
|
253
|
+
"group": "Subagent visibility",
|
|
254
|
+
"kind": "choice",
|
|
255
|
+
"choices": [
|
|
256
|
+
"all",
|
|
257
|
+
"running"
|
|
258
|
+
],
|
|
259
|
+
"minimum": 0,
|
|
260
|
+
"maximum": 10000,
|
|
261
|
+
"nullable": false
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"key": "subagents.hide_completed",
|
|
265
|
+
"label": "Hide completed",
|
|
266
|
+
"group": "Subagent visibility",
|
|
267
|
+
"kind": "boolean",
|
|
268
|
+
"choices": [],
|
|
269
|
+
"minimum": 0,
|
|
270
|
+
"maximum": 10000,
|
|
271
|
+
"nullable": false
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
"key": "subagents.row_limit",
|
|
275
|
+
"label": "Agent row limit",
|
|
276
|
+
"group": "Subagent visibility",
|
|
277
|
+
"kind": "integer",
|
|
278
|
+
"choices": [],
|
|
279
|
+
"minimum": 0,
|
|
280
|
+
"maximum": 10000,
|
|
281
|
+
"nullable": true
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"key": "subagents.task_max_width",
|
|
285
|
+
"label": "Task text width",
|
|
286
|
+
"group": "Subagent visibility",
|
|
287
|
+
"kind": "integer",
|
|
288
|
+
"choices": [],
|
|
289
|
+
"minimum": 2,
|
|
290
|
+
"maximum": 10000,
|
|
291
|
+
"nullable": true
|
|
292
|
+
}
|
|
293
|
+
],
|
|
294
|
+
"item": [
|
|
295
|
+
{
|
|
296
|
+
"key": "foreground",
|
|
297
|
+
"label": "Foreground (inherit/default/ansi:N/#RRGGBB)",
|
|
298
|
+
"group": "Item colors",
|
|
299
|
+
"kind": "text",
|
|
300
|
+
"choices": [],
|
|
301
|
+
"minimum": 0,
|
|
302
|
+
"maximum": 10000,
|
|
303
|
+
"nullable": true
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"key": "background",
|
|
307
|
+
"label": "Background (inherit/default/ansi:N/#RRGGBB)",
|
|
308
|
+
"group": "Item colors",
|
|
309
|
+
"kind": "text",
|
|
310
|
+
"choices": [],
|
|
311
|
+
"minimum": 0,
|
|
312
|
+
"maximum": 10000,
|
|
313
|
+
"nullable": true
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"key": "visibility",
|
|
317
|
+
"label": "Visibility rule",
|
|
318
|
+
"group": "Conditional visibility",
|
|
319
|
+
"kind": "choice",
|
|
320
|
+
"choices": [
|
|
321
|
+
"always",
|
|
322
|
+
"git-dirty",
|
|
323
|
+
"nonzero",
|
|
324
|
+
"used-at-least"
|
|
325
|
+
],
|
|
326
|
+
"minimum": 0,
|
|
327
|
+
"maximum": 10000,
|
|
328
|
+
"nullable": false
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"key": "visibility_threshold",
|
|
332
|
+
"label": "Minimum used (%)",
|
|
333
|
+
"group": "Conditional visibility",
|
|
334
|
+
"kind": "integer",
|
|
335
|
+
"choices": [],
|
|
336
|
+
"minimum": 0,
|
|
337
|
+
"maximum": 100,
|
|
338
|
+
"nullable": false
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"key": "label",
|
|
342
|
+
"label": "Label (inherit = default)",
|
|
343
|
+
"group": "Item format",
|
|
344
|
+
"kind": "text",
|
|
345
|
+
"choices": [],
|
|
346
|
+
"minimum": 0,
|
|
347
|
+
"maximum": 10000,
|
|
348
|
+
"nullable": true
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"key": "icon",
|
|
352
|
+
"label": "Icon (inherit = default)",
|
|
353
|
+
"group": "Item format",
|
|
354
|
+
"kind": "text",
|
|
355
|
+
"choices": [],
|
|
356
|
+
"minimum": 0,
|
|
357
|
+
"maximum": 10000,
|
|
358
|
+
"nullable": true
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"key": "priority",
|
|
362
|
+
"label": "Priority",
|
|
363
|
+
"group": "Item fitting",
|
|
364
|
+
"kind": "integer",
|
|
365
|
+
"choices": [],
|
|
366
|
+
"minimum": 0,
|
|
367
|
+
"maximum": 100,
|
|
368
|
+
"nullable": false
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
"key": "max_width",
|
|
372
|
+
"label": "Maximum width",
|
|
373
|
+
"group": "Item fitting",
|
|
374
|
+
"kind": "integer",
|
|
375
|
+
"choices": [],
|
|
376
|
+
"minimum": 2,
|
|
377
|
+
"maximum": 10000,
|
|
378
|
+
"nullable": true
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"key": "model_name",
|
|
382
|
+
"label": "Model Name",
|
|
383
|
+
"group": "Item format",
|
|
384
|
+
"kind": "choice",
|
|
385
|
+
"choices": [
|
|
386
|
+
"inherit",
|
|
387
|
+
"original",
|
|
388
|
+
"short"
|
|
389
|
+
],
|
|
390
|
+
"minimum": 0,
|
|
391
|
+
"maximum": 10000,
|
|
392
|
+
"nullable": false
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"key": "number_format",
|
|
396
|
+
"label": "Number Format",
|
|
397
|
+
"group": "Item format",
|
|
398
|
+
"kind": "choice",
|
|
399
|
+
"choices": [
|
|
400
|
+
"inherit",
|
|
401
|
+
"legacy",
|
|
402
|
+
"compact",
|
|
403
|
+
"full",
|
|
404
|
+
"grouped"
|
|
405
|
+
],
|
|
406
|
+
"minimum": 0,
|
|
407
|
+
"maximum": 10000,
|
|
408
|
+
"nullable": false
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
"key": "labels",
|
|
412
|
+
"label": "Labels",
|
|
413
|
+
"group": "Item format",
|
|
414
|
+
"kind": "choice",
|
|
415
|
+
"choices": [
|
|
416
|
+
"inherit",
|
|
417
|
+
"legacy",
|
|
418
|
+
"short",
|
|
419
|
+
"off"
|
|
420
|
+
],
|
|
421
|
+
"minimum": 0,
|
|
422
|
+
"maximum": 10000,
|
|
423
|
+
"nullable": false
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"key": "icons",
|
|
427
|
+
"label": "Icons",
|
|
428
|
+
"group": "Item format",
|
|
429
|
+
"kind": "choice",
|
|
430
|
+
"choices": [
|
|
431
|
+
"inherit",
|
|
432
|
+
"legacy",
|
|
433
|
+
"unicode",
|
|
434
|
+
"ascii",
|
|
435
|
+
"off"
|
|
436
|
+
],
|
|
437
|
+
"minimum": 0,
|
|
438
|
+
"maximum": 10000,
|
|
439
|
+
"nullable": false
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
"key": "allowance",
|
|
443
|
+
"label": "Allowance",
|
|
444
|
+
"group": "Item format",
|
|
445
|
+
"kind": "choice",
|
|
446
|
+
"choices": [
|
|
447
|
+
"inherit",
|
|
448
|
+
"remaining",
|
|
449
|
+
"used"
|
|
450
|
+
],
|
|
451
|
+
"minimum": 0,
|
|
452
|
+
"maximum": 10000,
|
|
453
|
+
"nullable": false
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"key": "reset_format",
|
|
457
|
+
"label": "Reset Format",
|
|
458
|
+
"group": "Item format",
|
|
459
|
+
"kind": "choice",
|
|
460
|
+
"choices": [
|
|
461
|
+
"inherit",
|
|
462
|
+
"countdown",
|
|
463
|
+
"time",
|
|
464
|
+
"datetime"
|
|
465
|
+
],
|
|
466
|
+
"minimum": 0,
|
|
467
|
+
"maximum": 10000,
|
|
468
|
+
"nullable": false
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"key": "reset_timezone",
|
|
472
|
+
"label": "Reset Timezone",
|
|
473
|
+
"group": "Item format",
|
|
474
|
+
"kind": "choice",
|
|
475
|
+
"choices": [
|
|
476
|
+
"inherit",
|
|
477
|
+
"local",
|
|
478
|
+
"UTC"
|
|
479
|
+
],
|
|
480
|
+
"minimum": 0,
|
|
481
|
+
"maximum": 10000,
|
|
482
|
+
"nullable": false
|
|
483
|
+
}
|
|
484
|
+
]
|
|
485
|
+
} as const;
|
|
486
|
+
export const PRESETS = [{"id": "developer", "purpose_key": "quick.purpose.developer", "requirements_key": "quick.requirements.developer", "example": false, "label": "Developer", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer", "session-cost"]], "layout_mode": "explicit"}, {"id": "minimal", "purpose_key": "quick.purpose.minimal", "requirements_key": "quick.requirements.minimal", "example": false, "label": "Minimal", "rows": [["model-with-effort", "current-dir", "context-remaining", "task-timer"]], "layout_mode": "auto"}, {"id": "monitoring", "purpose_key": "quick.purpose.monitoring", "requirements_key": "quick.requirements.monitoring", "example": false, "label": "Monitoring", "rows": [["context-used", "five-hour-limit", "weekly-limit", "spend-limit"], ["five-hour-reset", "weekly-reset", "cache-state", "cache-expires"], ["session-cost", "session-duration", "api-duration", "api-requests", "cache-misses"]], "layout_mode": "explicit"}, {"id": "multi-agent", "purpose_key": "quick.purpose.multi-agent", "requirements_key": "quick.requirements.multi-agent", "example": false, "label": "Multi Agent", "rows": [["model-with-effort", "current-dir", "git"], ["context-remaining", "tokens", "task-timer"]], "layout_mode": "explicit"}, {"id": "left-right", "purpose_key": "quick.purpose.left-right", "requirements_key": "quick.requirements.left-right", "example": true, "label": "Left Right", "rows": [["model-with-effort", "git", "spacer", "context-remaining"]], "layout_mode": "explicit"}, {"id": "repeated-metrics", "purpose_key": "quick.purpose.repeated-metrics", "requirements_key": "quick.requirements.repeated-metrics", "example": true, "label": "Repeated Metrics", "rows": [["input-tokens", "input-tokens"]], "layout_mode": "explicit"}, {"id": "daily-development", "purpose_key": "quick.purpose.daily-development", "requirements_key": "quick.requirements.daily-development", "example": false, "label": "Daily Development", "rows": [["model-with-effort", "current-dir", "git", "context-remaining", "task-timer"], ["session-cost"]], "layout_mode": "explicit"}, {"id": "agent-focus", "purpose_key": "quick.purpose.agent-focus", "requirements_key": "quick.requirements.agent-focus", "example": false, "label": "Agent Focus", "rows": [["task-timer", "context-remaining", "git"], ["run-state", "task-progress", "active-agents"]], "layout_mode": "explicit"}, {"id": "quota-watch", "purpose_key": "quick.purpose.quota-watch", "requirements_key": "quick.requirements.quota-watch", "example": false, "label": "Quota Watch", "rows": [["context-used", "five-hour-limit", "weekly-limit"], ["five-hour-reset", "weekly-reset"], ["session-cost", "spend-limit", "cache-state", "cache-expires"]], "layout_mode": "explicit"}] as const;
|
|
8
487
|
export const FORMAT_CHOICES = {"model_name": ["original", "short"], "number_format": ["legacy", "compact", "full", "grouped"], "labels": ["legacy", "short", "off"], "icons": ["legacy", "unicode", "ascii", "off"], "allowance": ["remaining", "used"], "reset_format": ["countdown", "time", "datetime"], "reset_timezone": ["local", "UTC"]} as const;
|
|
9
488
|
export const FORMAT_DEFAULTS = {"model_name": "original", "number_format": "legacy", "labels": "legacy", "icons": "legacy", "allowance": "remaining", "reset_format": "countdown", "reset_timezone": "local", "thresholds": {"enabled": false, "warning": 70, "critical": 90}} as const;
|
|
10
|
-
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-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";
|
|
11
|
-
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";
|
|
489
|
+
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-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
|
+
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";
|
|
12
491
|
export type Palette = "default" | "ansi";
|
|
13
492
|
export type Theme = "classic" | "dark" | "light" | "terminal";
|
|
14
493
|
export type PowerlineGlyph = "ascii" | "powerline";
|
|
@@ -19,8 +498,8 @@ export type ScopeLabels = "off" | "when-subagents" | "always";
|
|
|
19
498
|
export type StatuslineLanguage = "en" | "zh-CN" | "zh-TW" | "zh-HK" | "ja" | "ko";
|
|
20
499
|
export type Scope = "main" | "subagent";
|
|
21
500
|
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";
|
|
22
|
-
export const MAIN_ITEM_IDS = ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "cache-miss-reason", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-duration", "api-duration", "lines-changed", "agent", "vim-mode", "run-state", "permission-mode", "active-agents", "task-progress", "last-tool", "ttft", "output-rate", "prompt-input-tokens", "prompt-output-tokens", "prompt-cost", "text", "spacer"] as const;
|
|
23
|
-
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"] as const;
|
|
501
|
+
export const MAIN_ITEM_IDS = ["model-with-effort", "model", "effort", "fast-mode", "thinking", "current-dir", "project-name", "hostname", "git", "git-branch", "git-changes", "git-ahead-behind", "branch-diff", "pr", "repo", "worktree", "context-remaining", "context-used", "context-window-size", "context-tokens", "five-hour-limit", "five-hour-reset", "weekly-limit", "weekly-reset", "spend-limit", "spend-amount", "spend-period", "tokens", "input-tokens", "output-tokens", "prompt-cache", "cache-state", "cache-expires", "cache-misses", "cache-miss-reason", "api-requests", "task-timer", "task-active-timer", "version", "session", "session-name", "session-id", "session-id-short", "output-style", "cost", "session-cost", "session-duration", "api-duration", "lines-changed", "agent", "vim-mode", "run-state", "permission-mode", "active-agents", "task-progress", "last-tool", "ttft", "output-rate", "prompt-input-tokens", "prompt-output-tokens", "prompt-cost", "text", "spacer", "external-value", "github-pr", "github-ci"] as const;
|
|
502
|
+
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;
|
|
24
503
|
export const PALETTE_VALUES = ["default", "ansi"] as const;
|
|
25
504
|
export const THEME_VALUES = ["classic", "dark", "light", "terminal"] as const;
|
|
26
505
|
export const POWERLINEGLYPH_VALUES = ["ascii", "powerline"] as const;
|
|
@@ -30,7 +509,7 @@ export const SEPARATORSTYLE_VALUES = ["classic", "compact", "powerline"] as cons
|
|
|
30
509
|
export const SCOPELABELS_VALUES = ["off", "when-subagents", "always"] as const;
|
|
31
510
|
export const STATUSLINELANGUAGE_VALUES = ["en", "zh-CN", "zh-TW", "zh-HK", "ja", "ko"] as const;
|
|
32
511
|
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;
|
|
33
|
-
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";
|
|
512
|
+
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";
|
|
34
513
|
export interface ItemGuidance {
|
|
35
514
|
source_kinds: string[];
|
|
36
515
|
measurement_scope: string;
|
|
@@ -53,6 +532,15 @@ export interface CatalogItem {
|
|
|
53
532
|
default_enabled: boolean;
|
|
54
533
|
minimum_version_status: "verified" | "unknown";
|
|
55
534
|
guidance: ItemGuidance;
|
|
535
|
+
capabilities?: ItemCapability;
|
|
536
|
+
}
|
|
537
|
+
export interface ItemCapability {
|
|
538
|
+
formats: string[];
|
|
539
|
+
visibility: string[];
|
|
540
|
+
link: boolean;
|
|
541
|
+
source: 'none' | 'external' | 'github';
|
|
542
|
+
preview: string;
|
|
543
|
+
explanation: string;
|
|
56
544
|
}
|
|
57
545
|
export interface ChoiceOptions {
|
|
58
546
|
choices: (string | boolean)[];
|
|
@@ -71,6 +559,11 @@ export interface ConfigurationOptions {
|
|
|
71
559
|
palette: ChoiceOptions;
|
|
72
560
|
theme: ChoiceOptions;
|
|
73
561
|
"powerline-glyph": ChoiceOptions;
|
|
562
|
+
"powerline-padding": ChoiceOptions;
|
|
563
|
+
"powerline-separator": ChoiceOptions;
|
|
564
|
+
"powerline-start-cap": ChoiceOptions;
|
|
565
|
+
"powerline-end-cap": ChoiceOptions;
|
|
566
|
+
"powerline-color-mode": ChoiceOptions;
|
|
74
567
|
"directory-style": ChoiceOptions;
|
|
75
568
|
"separator-style": ChoiceOptions;
|
|
76
569
|
"scope-labels": ChoiceOptions;
|
|
@@ -80,6 +573,10 @@ export interface ConfigurationOptions {
|
|
|
80
573
|
"refresh-interval": RefreshOptions;
|
|
81
574
|
"hide-vim-mode-indicator": ChoiceOptions;
|
|
82
575
|
}
|
|
576
|
+
export const POWERLINE_OPTIONS = Object.fromEntries(POWERLINE_FIELDS.map(field => [
|
|
577
|
+
field.key.replaceAll('.', '-').replaceAll('_', '-'),
|
|
578
|
+
{ choices: field.kind === 'boolean' ? [true, false] : [...field.choices] },
|
|
579
|
+
])) as Pick<ConfigurationOptions, 'powerline-padding' | 'powerline-separator' | 'powerline-start-cap' | 'powerline-end-cap' | 'powerline-color-mode'>;
|
|
83
580
|
export interface Capabilities {
|
|
84
581
|
host_version: string | null;
|
|
85
582
|
subagent_rows: "unknown" | "supported" | "unsupported";
|
|
@@ -103,6 +600,7 @@ export interface FormattingDraft {
|
|
|
103
600
|
thresholds: ThresholdDraft;
|
|
104
601
|
}
|
|
105
602
|
export interface ItemOptionsDraft {
|
|
603
|
+
link?: 'off' | 'auto' | 'on';
|
|
106
604
|
label: string | null;
|
|
107
605
|
icon: string | null;
|
|
108
606
|
priority: number;
|
|
@@ -114,6 +612,7 @@ export interface ItemOptionsDraft {
|
|
|
114
612
|
visibility_threshold: number;
|
|
115
613
|
}
|
|
116
614
|
export interface InstanceDraft {
|
|
615
|
+
source?: SourceReference;
|
|
117
616
|
id: string;
|
|
118
617
|
type_id: string;
|
|
119
618
|
enabled: boolean;
|
|
@@ -135,14 +634,22 @@ export interface SubagentDraft {
|
|
|
135
634
|
export interface MetricsDraft {
|
|
136
635
|
branch_diff_base_ref: string | null;
|
|
137
636
|
}
|
|
637
|
+
export interface PowerlineDraft {
|
|
638
|
+
padding: "none" | "left" | "right" | "both";
|
|
639
|
+
separator: "arrow" | "slash" | "bar" | "none";
|
|
640
|
+
start_cap: boolean;
|
|
641
|
+
end_cap: boolean;
|
|
642
|
+
color_mode: "semantic" | "continuous" | "restart";
|
|
643
|
+
}
|
|
138
644
|
export interface DisplayDraft {
|
|
139
|
-
schema_version:
|
|
645
|
+
schema_version: 10;
|
|
140
646
|
statusline_language: StatuslineLanguage;
|
|
141
647
|
instances: InstanceDraft[];
|
|
142
648
|
use_colors: boolean;
|
|
143
649
|
palette: Palette;
|
|
144
650
|
theme: Theme;
|
|
145
651
|
powerline_glyph: PowerlineGlyph;
|
|
652
|
+
powerline: PowerlineDraft;
|
|
146
653
|
directory_style: DirectoryStyle;
|
|
147
654
|
separator_style: SeparatorStyle;
|
|
148
655
|
scope_labels: ScopeLabels;
|
|
@@ -165,11 +672,63 @@ export interface Foreground {
|
|
|
165
672
|
value: string | number;
|
|
166
673
|
}
|
|
167
674
|
export interface Span {
|
|
675
|
+
link?: string;
|
|
168
676
|
text: string;
|
|
169
677
|
bold: boolean;
|
|
170
678
|
foreground: Foreground | null;
|
|
171
679
|
background: Foreground | null;
|
|
172
680
|
}
|
|
681
|
+
|
|
682
|
+
/** Machine-local source authorization is never part of a portable display. */
|
|
683
|
+
export interface SourceReference { binding: string | null; hint: string }
|
|
684
|
+
export type SourceKind = 'json' | 'github' | 'command';
|
|
685
|
+
export interface SourceScope { project: string | null; session: string | null; agent: string | null }
|
|
686
|
+
export interface SourceContext extends SourceScope { branch: string | null; head: string | null }
|
|
687
|
+
export interface SourceSettings {
|
|
688
|
+
path?: string;
|
|
689
|
+
pointer?: string;
|
|
690
|
+
observed_at_pointer?: string;
|
|
691
|
+
unit?: string;
|
|
692
|
+
executable?: string;
|
|
693
|
+
args?: string[];
|
|
694
|
+
cwd?: string;
|
|
695
|
+
input?: Record<string, string>;
|
|
696
|
+
output?: 'json' | 'text';
|
|
697
|
+
timeout_ms?: number;
|
|
698
|
+
host?: string;
|
|
699
|
+
repository?: string;
|
|
700
|
+
branch?: string;
|
|
701
|
+
account?: string;
|
|
702
|
+
pr?: number | null;
|
|
703
|
+
}
|
|
704
|
+
export interface SourceDefinition {
|
|
705
|
+
id: string; name: string; kind: SourceKind; scope: SourceScope;
|
|
706
|
+
ttl_seconds: number; settings: SourceSettings; enabled: boolean; revision: string;
|
|
707
|
+
}
|
|
708
|
+
export interface SourceBinding { id: string; source_id: string }
|
|
709
|
+
export interface SourceRegistry { version: 1; sources: SourceDefinition[]; bindings: SourceBinding[] }
|
|
710
|
+
export interface SourcesResult extends SourceRegistry { revision: string }
|
|
711
|
+
export type SourceState = 'valid' | 'missing' | 'partial' | 'error' | 'unsupported';
|
|
712
|
+
export interface SourceObservation {
|
|
713
|
+
version: 1; source_id: string; source_revision: string; context: SourceContext;
|
|
714
|
+
observed_at: string | null; state: SourceState; reason: string;
|
|
715
|
+
value: string | number | boolean | null; unit: string | null;
|
|
716
|
+
fields?: Record<string, string | number | boolean | null>;
|
|
717
|
+
identity?: { host: string; repository: string; account: string; auth_revision: string };
|
|
718
|
+
}
|
|
719
|
+
export interface SourceView {
|
|
720
|
+
source_id: string | null; name: string; state: SourceState | 'disabled' | 'unbound' | 'mismatch';
|
|
721
|
+
reason: string; observed_at: string | null; freshness: 'current' | 'stale' | 'unknown';
|
|
722
|
+
value: string | number | boolean | null; unit: string | null;
|
|
723
|
+
fields?: Record<string, string | number | boolean | null>;
|
|
724
|
+
}
|
|
725
|
+
export interface SourceJob {
|
|
726
|
+
version: 1; id: string; source_id: string; source_revision: string; owner: string;
|
|
727
|
+
context: SourceContext; started_at: string; deadline_at: string;
|
|
728
|
+
state: 'running' | 'completed' | 'failed' | 'cancelled'; reason: string;
|
|
729
|
+
}
|
|
730
|
+
export interface SourceReview { source: SourceDefinition; review_revision: string }
|
|
731
|
+
export interface SourceMutationResult extends SourcesResult { binding?: SourceReference; backup_dir: string | null }
|
|
173
732
|
export interface PreviewResult {
|
|
174
733
|
sample: true;
|
|
175
734
|
main: Span[][];
|
|
@@ -177,7 +736,7 @@ export interface PreviewResult {
|
|
|
177
736
|
}
|
|
178
737
|
export const SAMPLE_REASONS = ['sample_visible','sample_empty','sample_condition_hidden','sample_truncated','sample_priority_omitted','sample_width_omitted','sample_row_hidden','sample_spacer'] as const;
|
|
179
738
|
export type SampleReason = typeof SAMPLE_REASONS[number];
|
|
180
|
-
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'] as const;
|
|
739
|
+
export const EXPLAIN_REASONS = ['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;
|
|
181
740
|
export interface ExplainReason { code: string; origin: 'configuration' | 'local_configuration' | 'host_capability' | 'unknown'; }
|
|
182
741
|
export interface InstanceSample { row_id: string; outcome: SampleReason; truncated: boolean; }
|
|
183
742
|
export interface ExplainInstance {
|
|
@@ -358,6 +917,14 @@ export interface ApplyResult {
|
|
|
358
917
|
configuration?: ResolvedConfiguration;
|
|
359
918
|
}
|
|
360
919
|
export interface ResultMap {
|
|
920
|
+
sources_read: SourcesResult;
|
|
921
|
+
sources_apply: SourceMutationResult;
|
|
922
|
+
source_review: SourceReview;
|
|
923
|
+
source_context: SourceContext;
|
|
924
|
+
source_refresh: SourceJob;
|
|
925
|
+
source_status: SourceJob;
|
|
926
|
+
source_cancel: SourceJob;
|
|
927
|
+
source_diagnose: { source: SourceDefinition; view: SourceView; jobs: SourceJob[] };
|
|
361
928
|
describe: DescribeResult;
|
|
362
929
|
read: ReadResult;
|
|
363
930
|
preview: PreviewResult;
|