@fbincon/claude-code-statusline 0.0.0-stage → 3.0.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/LICENSE +21 -0
- package/LICENSE-Unicode.txt +39 -0
- package/LICENSE-Wcwidth.txt +27 -0
- package/README.md +420 -2
- package/bin/claude-statusline.js +2 -0
- package/candidate.json +1244 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.d.ts +35 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js +228 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/arguments.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.js +72 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/backend-preferences.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js +140 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/commands.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/host.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/host.js +101 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/host.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js +96 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/operations.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.d.ts +11 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.js +80 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/preferences.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/service.d.ts +45 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js +99 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.d.ts +30 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.js +134 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/storage.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js +89 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/config/transfer.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/context.d.ts +11 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/context.js +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/context.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/entry.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/entry.js +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/entry.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/errors.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/errors.js +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/errors.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/help.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js +67 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/help.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js +40 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/arguments.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js +63 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/configure.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js +153 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/doctor.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.d.ts +14 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.js +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/editor.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js +142 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/install.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.d.ts +15 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.js +91 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/launcher.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.d.ts +20 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.js +109 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mod-ownership.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.d.ts +60 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js +12 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/model.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.d.ts +10 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js +234 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/mods.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.d.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.js +41 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/ownership.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.d.ts +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.js +14 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/paths.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.d.ts +13 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.js +92 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/plan.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.d.ts +19 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.js +91 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/resources.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.js +94 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/slash-hook.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.d.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.js +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/integration/transaction.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/main.d.ts +22 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js +197 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/main.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.d.ts +7 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.js +134 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/files.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.d.ts +58 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js +144 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/journal.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.d.ts +5 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.js +125 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/official.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.d.ts +11 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.js +55 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/recovery/service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.d.ts +15 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js +95 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/environment.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.d.ts +6 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js +48 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/main.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.d.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js +13 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/rendering/preview.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.d.ts +11 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.js +11 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/context.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.d.ts +19 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.js +162 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/git.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.d.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.js +19 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/hook.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.d.ts +37 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.js +75 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/io.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.d.ts +9 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.js +241 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/json-data.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.d.ts +2 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.js +14 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/collect.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.d.ts +15 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.js +69 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/durations.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.d.ts +16 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js +90 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/protocol.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.d.ts +25 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.js +80 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/live/store.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.d.ts +4 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.js +40 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/registry.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.d.ts +5 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.js +59 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/collect.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.d.ts +17 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.js +69 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/service.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.d.ts +17 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.js +70 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/store.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.d.ts +13 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.js +75 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/tasks/submissions.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.d.ts +33 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.js +227 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/runtime/usage.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.d.ts +20 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js +144 -0
- package/node_modules/@fbincon/statusline-cli/dist/src/ui/protocol.js.map +1 -0
- package/node_modules/@fbincon/statusline-cli/package.json +17 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-config/SKILL.md +80 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-configure/SKILL.md +19 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/.claude-plugin/plugin.json +37 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/hooks.json +6 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/hooks/register.ts +820 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/backend.ts +503 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/forms.ts +3 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/keys.ts +198 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/messages.ts +101 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts +218 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts +29 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/draft.ts +254 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/forms.ts +167 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/guidance.ts +20 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/import-review.ts +55 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/instances.ts +30 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/navigation.ts +98 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/numeric.ts +42 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/search.ts +114 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-contracts.ts +276 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/generated-unicode.ts +92 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/generated-locales.ts +6842 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/index.ts +40 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/messages.ts +33 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/i18n/presentation.ts +62 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/launch.ts +25 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/preferences.ts +61 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/preview-preferences.ts +8 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/session.ts +124 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/unicode.ts +121 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/resource-manifest.json +47 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/draw.ts +159 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/help.ts +84 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/client/surface.ts +89 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/catalog.ts +23 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/preview.ts +45 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/section.ts +49 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/components/shortcuts.ts +83 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/layout.ts +49 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/styled-text.ts +56 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/text.ts +23 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-native/ui/theme.ts +27 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/.claude-plugin/plugin.json +49 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/hooks.json +1 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/hooks/observe.ts +279 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/checklists.ts +45 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/costs.ts +23 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/generated-contracts.ts +18 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/identity.ts +14 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/launch.ts +25 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/queue.ts +68 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/streams.ts +28 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/lib/timing.ts +11 -0
- package/node_modules/@fbincon/statusline-cli/resources/statusline-runtime/resource-manifest.json +19 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.d.ts +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.js +72 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/backend-preferences.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.d.ts +86 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js +3462 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog-data.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.js +17 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/catalog.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js +19 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/defaults.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js +232 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/display.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/draft.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/draft.js +48 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/draft.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.d.ts +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js +104 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/editor-fields.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.d.ts +11 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js +99 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/formatting.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.d.ts +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.js +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/generated-constants.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js +80 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/import-review.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.d.ts +29 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js +159 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/instances.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js +34 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/presets.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js +23 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/transfer.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/validation.d.ts +15 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/validation.js +55 -0
- package/node_modules/@fbincon/statusline-core/dist/src/config/validation.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.d.ts +33 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/generated-catalog.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/runtime.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.d.ts +663 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js +23 -0
- package/node_modules/@fbincon/statusline-core/dist/src/contracts/ui.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js +27 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/appearance.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js +401 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/backend.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.d.ts +73 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js +251 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/draft.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.d.ts +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js +146 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/forms.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.js +17 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/guidance.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.d.ts +19 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.js +53 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/import-review.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.js +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/instances.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.d.ts +37 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.js +73 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/navigation.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.d.ts +11 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.js +27 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/numeric.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/search.d.ts +22 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/search.js +122 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/search.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text.js +30 -0
- package/node_modules/@fbincon/statusline-core/dist/src/editor/text.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.d.ts +6841 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js +6841 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/generated-locales.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.d.ts +16 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.js +38 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/messages.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.js +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/registry.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.d.ts +222 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js +224 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/en.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.d.ts +222 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js +224 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ja.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.d.ts +222 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js +224 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/ko.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.d.ts +222 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js +224 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-CN.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.d.ts +222 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.js +224 -0
- package/node_modules/@fbincon/statusline-core/dist/src/i18n/statusline/zh-Hant.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.js +27 -0
- package/node_modules/@fbincon/statusline-core/dist/src/integration/binding.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-equality.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-equality.js +31 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-equality.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-read.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-read.js +137 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-read.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-text.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-text.js +56 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json-text.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json.js +165 -0
- package/node_modules/@fbincon/statusline-core/dist/src/json.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/numbers.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/numbers.js +47 -0
- package/node_modules/@fbincon/statusline-core/dist/src/numbers.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.d.ts +21 -0
- package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.js +105 -0
- package/node_modules/@fbincon/statusline-core/dist/src/ordered-record.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/release.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/release.js +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/release.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js +73 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/appearance.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.d.ts +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.js +50 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/coercion.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/colors.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js +49 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/components.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.d.ts +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.js +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/context.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.js +58 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/formatters.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.js +34 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/git.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.d.ts +49 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js +399 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/items.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.js +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/language.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.d.ts +19 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js +176 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/layout.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.js +29 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/live.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js +93 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/metrics.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.d.ts +3 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.js +46 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/numeric-format.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.d.ts +23 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.js +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/palette.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js +76 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/powerline.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.d.ts +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js +98 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preferences.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.d.ts +67 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/preview.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.d.ts +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js +14 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/spans.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.d.ts +24 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.js +116 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/styles.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.d.ts +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js +305 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/subagents.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.d.ts +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.js +33 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/timer.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.js +52 -0
- package/node_modules/@fbincon/statusline-core/dist/src/rendering/visibility.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.d.ts +9 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.js +115 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/git.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.js +104 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/bindings.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.d.ts +27 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js +196 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/model.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.js +45 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/ownership.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.js +228 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/reducer.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.d.ts +24 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js +145 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/requests.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js +70 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/snapshot.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.d.ts +36 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.js +110 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/live/state.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.d.ts +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.js +75 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/agents.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.d.ts +10 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.js +121 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/hooks.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.d.ts +43 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.js +198 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/model.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.js +192 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/native.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.d.ts +16 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.js +245 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/transitions.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.d.ts +4 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.js +28 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/tasks/view.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.d.ts +26 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.js +183 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/transcript.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.d.ts +64 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js +263 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/usage.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.d.ts +18 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.js +103 -0
- package/node_modules/@fbincon/statusline-core/dist/src/runtime/values.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.d.ts +7 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.js +2 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/key.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.d.ts +6 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.js +50 -0
- package/node_modules/@fbincon/statusline-core/dist/src/terminal/spans.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.d.ts +8 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.js +13 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/sample.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.d.ts +22 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.js +75 -0
- package/node_modules/@fbincon/statusline-core/dist/src/timing/timer.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.d.ts +12 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.js +93 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/generated-unicode.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.d.ts +5 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.js +178 -0
- package/node_modules/@fbincon/statusline-core/dist/src/unicode/index.js.map +1 -0
- package/node_modules/@fbincon/statusline-core/package.json +8 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/languages.json +7 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/en.json +1367 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ja.json +1367 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/ko.json +1367 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-CN.json +1367 -0
- package/node_modules/@fbincon/statusline-core/resources/i18n/locales/zh-Hant.json +1367 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/architecture.d.ts +15 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/architecture.js +22 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/architecture.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/clocks.d.ts +4 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/clocks.js +102 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/clocks.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/command.d.ts +16 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/command.js +18 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/command.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/commands.d.ts +12 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/commands.js +160 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/commands.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/errors.d.ts +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/errors.js +19 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/errors.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/files.d.ts +8 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/files.js +164 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/files.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/hash.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/hash.js +5 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/hash.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/input.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/input.js +14 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/input.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/launch.d.ts +12 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/launch.js +21 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/launch.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.js +31 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/line-cursor.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/native.d.ts +15 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/native.js +36 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/native.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.d.ts +17 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.js +44 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/plugin-host.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/presentation.d.ts +4 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/presentation.js +48 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/presentation.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.d.ts +2 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js +67 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/processes.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.d.ts +42 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.js +180 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/bridge.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.d.ts +11 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js +81 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/input.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.d.ts +32 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js +157 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/launchers.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.d.ts +18 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.js +150 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/session.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.d.ts +6 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js +39 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/terminal/windows-modes.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/utf8.d.ts +5 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/utf8.js +82 -0
- package/node_modules/@fbincon/statusline-platform/dist/src/utf8.js.map +1 -0
- package/node_modules/@fbincon/statusline-platform/package.json +8 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.d.ts +14 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js +230 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/drawing.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/layout.d.ts +30 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/layout.js +34 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/layout.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/session.d.ts +28 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js +126 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/session.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/state.d.ts +52 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js +352 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/state.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/theme.d.ts +7 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/theme.js +5 -0
- package/node_modules/@fbincon/statusline-tui/dist/src/theme.js.map +1 -0
- package/node_modules/@fbincon/statusline-tui/package.json +16 -0
- package/node_modules/@koromix/koffi-darwin-arm64/README.md +6 -0
- package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-arm64/index.js +1 -0
- package/node_modules/@koromix/koffi-darwin-arm64/package.json +24 -0
- package/node_modules/@koromix/koffi-darwin-x64/README.md +6 -0
- package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-darwin-x64/index.js +1 -0
- package/node_modules/@koromix/koffi-darwin-x64/package.json +24 -0
- package/node_modules/@koromix/koffi-linux-x64/README.md +6 -0
- package/node_modules/@koromix/koffi-linux-x64/index.js +198 -0
- package/node_modules/@koromix/koffi-linux-x64/linux_x64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-linux-x64/musl_x64/koffi.node +0 -0
- package/node_modules/@koromix/koffi-linux-x64/package.json +24 -0
- package/node_modules/@koromix/koffi-win32-x64/README.md +6 -0
- package/node_modules/@koromix/koffi-win32-x64/index.js +1 -0
- package/node_modules/@koromix/koffi-win32-x64/package.json +24 -0
- package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.lib +0 -0
- package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
- package/node_modules/koffi/LICENSE.txt +22 -0
- package/node_modules/koffi/README.md +46 -0
- package/node_modules/koffi/index.cjs +1 -0
- package/node_modules/koffi/index.d.ts +390 -0
- package/node_modules/koffi/index.js +2 -0
- package/node_modules/koffi/indirect.cjs +1 -0
- package/node_modules/koffi/indirect.js +2 -0
- package/node_modules/koffi/package.json +73 -0
- package/node_modules/koffi/src/koffi/index.cjs +327 -0
- package/node_modules/koffi/src/koffi/index.js +312 -0
- package/node_modules/koffi/src/koffi/indirect.cjs +326 -0
- package/node_modules/koffi/src/koffi/indirect.js +311 -0
- package/node_modules/koffi/src/koffi/src/static.cjs +170 -0
- package/node_modules/koffi/src/koffi/src/static.js +173 -0
- package/node_modules/lossless-json/LICENSE.md +9 -0
- package/node_modules/lossless-json/README.md +549 -0
- package/node_modules/lossless-json/lib/esm/LosslessNumber.js +92 -0
- package/node_modules/lossless-json/lib/esm/LosslessNumber.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/config.js +9 -0
- package/node_modules/lossless-json/lib/esm/config.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/index.js +9 -0
- package/node_modules/lossless-json/lib/esm/index.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/numberParsers.js +9 -0
- package/node_modules/lossless-json/lib/esm/numberParsers.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/package.json +3 -0
- package/node_modules/lossless-json/lib/esm/parse.js +346 -0
- package/node_modules/lossless-json/lib/esm/parse.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/revive.js +57 -0
- package/node_modules/lossless-json/lib/esm/revive.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/reviveDate.js +10 -0
- package/node_modules/lossless-json/lib/esm/reviveDate.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/stringify.js +166 -0
- package/node_modules/lossless-json/lib/esm/stringify.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/types.js +2 -0
- package/node_modules/lossless-json/lib/esm/types.js.map +1 -0
- package/node_modules/lossless-json/lib/esm/utils.js +236 -0
- package/node_modules/lossless-json/lib/esm/utils.js.map +1 -0
- package/node_modules/lossless-json/lib/types/LosslessNumber.d.ts +40 -0
- package/node_modules/lossless-json/lib/types/LosslessNumber.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/config.d.ts +13 -0
- package/node_modules/lossless-json/lib/types/config.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/index.d.ts +9 -0
- package/node_modules/lossless-json/lib/types/index.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/numberParsers.d.ts +4 -0
- package/node_modules/lossless-json/lib/types/numberParsers.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/parse.d.ts +33 -0
- package/node_modules/lossless-json/lib/types/parse.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/revive.d.ts +13 -0
- package/node_modules/lossless-json/lib/types/revive.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/reviveDate.d.ts +5 -0
- package/node_modules/lossless-json/lib/types/reviveDate.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/stringify.d.ts +37 -0
- package/node_modules/lossless-json/lib/types/stringify.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/types.d.ts +61 -0
- package/node_modules/lossless-json/lib/types/types.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/types/utils.d.ts +79 -0
- package/node_modules/lossless-json/lib/types/utils.d.ts.map +1 -0
- package/node_modules/lossless-json/lib/umd/lossless-json.js +1 -0
- package/node_modules/lossless-json/lib/umd/lossless-json.js.map +1 -0
- package/node_modules/lossless-json/lib/umd/package.json +3 -0
- package/node_modules/lossless-json/package.json +89 -0
- package/package.json +57 -4
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import { graphemes } from '../unicode.ts';
|
|
2
|
+
import { setMessage, failureMessage } from '../i18n/messages.ts';
|
|
3
|
+
import { text as localizedText } from '../i18n/index.ts';
|
|
4
|
+
import type { ClientKeyEvent } from 'claude-code';
|
|
5
|
+
import type { View } from '../session.ts';
|
|
6
|
+
import { settingRows, adjustSetting } from './settings.ts';
|
|
7
|
+
import { formRows, setFormValue } from './forms.ts';
|
|
8
|
+
import { canEdit, validPreferenceValue } from '../preferences.ts';
|
|
9
|
+
import { editorLayout } from '../../ui/client/help.ts';
|
|
10
|
+
import { formSelection, pageSelection } from '../editor/navigation.ts';
|
|
11
|
+
import { guidanceLines } from '../editor/guidance.ts';
|
|
12
|
+
import { navigateReview } from '../editor/import-review.ts';
|
|
13
|
+
|
|
14
|
+
export type Effect = 'save' | 'finish' | 'close' | 'reload' | 'reconcile' | 'retry' | 'applyPreferences' | 'transfer' | 'previewBackground' | 'uiLanguage' | 'reviewPreview' | null;
|
|
15
|
+
|
|
16
|
+
export function cancelInput(view: View): void {
|
|
17
|
+
const input = view.input, e = view.editor;
|
|
18
|
+
if (!e) return;
|
|
19
|
+
if (e.review) { e.review = null; setMessage(view, 'message', localizedText('review.cancelled')); return; }
|
|
20
|
+
if (e.guidanceScroll !== null) { e.guidanceScroll = null; if(e.adding)e.detail=null; return; }
|
|
21
|
+
if (!input) { if(e.adding)e.closePicker(e.page==='main'?'main':'subagent'); else e.detail = null; return; }
|
|
22
|
+
if (input.kind === 'search') {
|
|
23
|
+
e.filter(input.scope, input.original);
|
|
24
|
+
e.selected[input.scope] = input.selected;
|
|
25
|
+
} else if (input.kind === 'numeric') e.cancelNumeric(input.field);
|
|
26
|
+
view.input = null;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** All transitions are pure; persistence remains in the host hooks module. */
|
|
30
|
+
export function handleKey(view: View, event: ClientKeyEvent, columns: number, rows: number): Effect {
|
|
31
|
+
const e = view.editor, key = event.key === 'space' ? ' ' : event.key;
|
|
32
|
+
const shortcut = /^[A-Z]$/.test(key) ? key.toLowerCase() : key;
|
|
33
|
+
if (!e || view.busy) return null;
|
|
34
|
+
if (event.ctrl && key.toLowerCase() === 'g') { const reviewing = !!e.review; cancelInput(view); return reviewing ? 'reviewPreview' : null; }
|
|
35
|
+
if (view.uncertain) return event.ctrl || event.meta ? null : shortcut === 'k' ? 'reconcile' : shortcut === 'q' ? 'close' : null;
|
|
36
|
+
if (e.review) {
|
|
37
|
+
if (event.ctrl || event.meta) return null;
|
|
38
|
+
if (shortcut === 'a') {
|
|
39
|
+
e.replaceDraft(e.review.result.draft);
|
|
40
|
+
setMessage(view, 'message', localizedText('review.accepted'));
|
|
41
|
+
return 'reviewPreview';
|
|
42
|
+
}
|
|
43
|
+
if (shortcut === 'q') { cancelInput(view); return 'reviewPreview'; }
|
|
44
|
+
const layout = editorLayout(view, columns, rows);
|
|
45
|
+
navigateReview(e.review, key, view.language ?? 'en', Math.max(2, columns - (layout.framed ? 2 : 0)), Math.max(1, layout.bodyRows - 1));
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
if (e.guidanceScroll !== null && e.detail) {
|
|
49
|
+
const layout = editorLayout(view, columns, rows);
|
|
50
|
+
const width = Math.max(2, columns - (layout.framed ? 2 : 0));
|
|
51
|
+
const item = e.definition(e.detail.scope,e.detail.id)!;
|
|
52
|
+
const capacity = Math.max(1, layout.bodyRows - 1), maximum = Math.max(0, guidanceLines(item, view.language ?? 'en', width).length - capacity);
|
|
53
|
+
if (key === 'up') e.guidanceScroll--;
|
|
54
|
+
else if (key === 'down') e.guidanceScroll++;
|
|
55
|
+
else if (key === 'pageup') e.guidanceScroll -= capacity;
|
|
56
|
+
else if (key === 'pagedown') e.guidanceScroll += capacity;
|
|
57
|
+
else if (key === 'home') e.guidanceScroll = 0;
|
|
58
|
+
else if (key === 'end') e.guidanceScroll = maximum;
|
|
59
|
+
e.guidanceScroll = Math.max(0, Math.min(maximum, e.guidanceScroll));
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
const input = view.input;
|
|
63
|
+
if (input?.kind === 'category') {
|
|
64
|
+
view.message = '';
|
|
65
|
+
const categories = e.categories(input.scope);
|
|
66
|
+
const index = categories.indexOf(input.selected);
|
|
67
|
+
if (key === 'return') { e.chooseCategory(input.scope, input.selected); view.input = null; }
|
|
68
|
+
else if (key === 'up' || key === 'left') input.selected = categories[Math.max(0, index - 1)]!;
|
|
69
|
+
else if (key === 'down' || key === 'right') input.selected = categories[Math.min(categories.length - 1, index + 1)]!;
|
|
70
|
+
else if (key === 'home' || key === 'pageup') input.selected = categories[0]!;
|
|
71
|
+
else if (key === 'end' || key === 'pagedown') input.selected = categories.at(-1)!;
|
|
72
|
+
return null;
|
|
73
|
+
}
|
|
74
|
+
if (input?.kind === 'field' || input?.kind === 'path') {
|
|
75
|
+
if (event.ctrl && key.toLowerCase() === 'u') input.buffer = '';
|
|
76
|
+
else if (key === 'return') {
|
|
77
|
+
if (input.kind === 'path') {
|
|
78
|
+
if (!input.buffer.trim()) { setMessage(view, "message", localizedText("native.lib.client.keys.enter_a_file_path")); return null; }
|
|
79
|
+
e.path = input.buffer; e.pendingTransfer = input.action; view.input = null; return 'transfer';
|
|
80
|
+
}
|
|
81
|
+
const field = formRows(view).find((row) => row.key === input.key);
|
|
82
|
+
if (field && !setFormValue(view, field, input.buffer)) return null;
|
|
83
|
+
if (!field) {
|
|
84
|
+
const p = view.preferences.find((p) => 'host-' + p.row.key === input.key);
|
|
85
|
+
if (!p || !canEdit(p)) { setMessage(view, "message", localizedText("native.lib.client.keys.host_row_is_unavailable_or_locked")); return null; }
|
|
86
|
+
const previous = p.value;
|
|
87
|
+
p.value = p.row.kind === 'number' ? Number(input.buffer) : input.buffer;
|
|
88
|
+
if (!validPreferenceValue(p) || (p.row.kind === 'number' && !input.buffer.trim())) {
|
|
89
|
+
p.value = previous; setMessage(view, "message", localizedText("native.lib.client.keys.invalid_host_value")); return null;
|
|
90
|
+
}
|
|
91
|
+
p.result = '';
|
|
92
|
+
}
|
|
93
|
+
view.input = null;
|
|
94
|
+
} else if (key === 'backspace' || key === 'delete') input.buffer = graphemes(input.buffer).slice(0, -1).join('');
|
|
95
|
+
else if (!event.ctrl && !event.meta && [...key].length === 1 && [...input.buffer].length < (input.kind === 'path' ? 4096 : 256)) input.buffer += key;
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
if (input) {
|
|
99
|
+
if (input.kind === 'search') view.message = '';
|
|
100
|
+
if (event.ctrl && key.toLowerCase() === 'u') {
|
|
101
|
+
if (input.kind === 'search') e.filter(input.scope, ''); else e.setBuffer(input.field, '');
|
|
102
|
+
} else if (key === 'return') {
|
|
103
|
+
if (input.kind === 'search' || e.acceptNumeric(input.field)) view.input = null;
|
|
104
|
+
} else if (key === 'backspace' || key === 'delete') {
|
|
105
|
+
if (input.kind === 'search') e.filter(input.scope, graphemes(e.search[input.scope]).slice(0, -1).join(''));
|
|
106
|
+
else e.setBuffer(input.field, graphemes(e.buffers[input.field]).slice(0, -1).join(''));
|
|
107
|
+
} else if (!event.ctrl && !event.meta && [...key].length === 1) {
|
|
108
|
+
if (input.kind === 'search') { if ([...e.search[input.scope]].length < 256) e.filter(input.scope, e.search[input.scope] + key); }
|
|
109
|
+
else if (e.buffers[input.field].length < 32) e.setBuffer(input.field, e.buffers[input.field] + key);
|
|
110
|
+
}
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
if(!e.detail&&(e.page==='main'||e.page==='subagents')){
|
|
114
|
+
const scope=e.page==='main'?'main':'subagent';
|
|
115
|
+
if(!event.meta && key.toLowerCase()==='a'&&!e.adding){e.openPicker(scope);return null;}
|
|
116
|
+
if(!event.meta && ['d','x'].includes(key.toLowerCase())&&!e.adding){
|
|
117
|
+
if(!e.instanceAction(scope,key.toLowerCase()==='d'?'copy':'remove'))
|
|
118
|
+
setMessage(view,'message',localizedText('composition.invalid'));
|
|
119
|
+
return null;
|
|
120
|
+
}
|
|
121
|
+
if(e.adding&&!event.ctrl&&!event.meta&&(key==='return'||key===' ')){
|
|
122
|
+
if(!e.instanceAction(scope,'add',e.selected[scope]))setMessage(view,'message',localizedText('composition.invalid'));
|
|
123
|
+
return null;
|
|
124
|
+
}
|
|
125
|
+
if(e.adding&&!event.ctrl&&!event.meta&&shortcut==='q'){e.closePicker(scope);return null;}
|
|
126
|
+
if(e.adding&&event.ctrl&&key.toLowerCase()==='e'){e.detail={scope,id:e.selected[scope]};e.guidanceScroll=0;return null;}
|
|
127
|
+
if(e.adding&&['tab','1','2','3','4'].includes(key))return null;
|
|
128
|
+
}
|
|
129
|
+
if (event.ctrl && key.toLowerCase() === 'e' && (e.page === 'main' || e.page === 'subagents')) {
|
|
130
|
+
const scope = e.page === 'main' ? 'main' : 'subagent';
|
|
131
|
+
if (e.selected[scope]) { e.detail = { scope, id: e.selected[scope] }; e.setting = 'item:label'; }
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
if (event.ctrl && key.toLowerCase() === 'f' && !e.detail && (e.page === 'main' || e.page === 'subagents')) {
|
|
135
|
+
const scope = e.page === 'main' ? 'main' : 'subagent';
|
|
136
|
+
view.input = {kind: 'category', scope, selected: e.category[scope]};
|
|
137
|
+
return null;
|
|
138
|
+
}
|
|
139
|
+
if (event.ctrl || event.meta) return null;
|
|
140
|
+
if (shortcut === 'q') return 'close';
|
|
141
|
+
if (shortcut === 's') return 'save';
|
|
142
|
+
if (shortcut === 'f') return 'finish';
|
|
143
|
+
if (shortcut === 'r') return 'reload';
|
|
144
|
+
if (shortcut === 'v') return 'retry';
|
|
145
|
+
if (shortcut === 'k') return 'reconcile';
|
|
146
|
+
if (shortcut === 'a' && e.page === 'settings' && !e.detail && e.advanced) return 'applyPreferences';
|
|
147
|
+
if (shortcut === 'h' && e.page === 'settings' && !e.detail) { e.advanced = !e.advanced; e.setting = e.advanced ? settingRows(view).find((r) => r.key.startsWith('host-'))!.key : 'colors'; return null; }
|
|
148
|
+
const pages = ['main', 'subagents', 'settings', 'layout'] as const;
|
|
149
|
+
if (key === 'tab') { e.page = pages[(pages.indexOf(e.page) + (event.shift ? 3 : 1)) % 4]!; e.detail = null; if (e.page === 'settings' || e.page === 'layout') e.setting = settingRows(view).find((r) => r.key === e.setting)?.key ?? settingRows(view)[0]!.key; return null; }
|
|
150
|
+
if (['1', '2', '3', '4'].includes(key)) { e.page = pages[Number(key) - 1]!; e.detail = null; if (e.page === 'settings' || e.page === 'layout') e.setting = settingRows(view).find((r) => r.key === e.setting)?.key ?? settingRows(view)[0]!.key; return null; }
|
|
151
|
+
const size = editorLayout(view, columns, rows);
|
|
152
|
+
if (!size.available) return null;
|
|
153
|
+
const isSettings = !!e.detail || e.page === 'settings' || e.page === 'layout';
|
|
154
|
+
const scope = e.page === 'main' ? 'main' : 'subagent';
|
|
155
|
+
const settings = isSettings ? settingRows(view) : [];
|
|
156
|
+
const keys = isSettings ? settings.map((row) => row.key) : e.visible(scope).map((row) => row.id as string);
|
|
157
|
+
const selected = isSettings ? e.setting : e.selected[scope];
|
|
158
|
+
let index = Math.max(0, keys.indexOf(selected));
|
|
159
|
+
if (key === 'up') index--;
|
|
160
|
+
else if (key === 'down') index++;
|
|
161
|
+
else if (key === 'pageup' || key === 'pagedown') {
|
|
162
|
+
const delta = key === 'pageup' ? -1 : 1;
|
|
163
|
+
const target = isSettings ? formSelection(settings, selected, size.formHeight, delta)
|
|
164
|
+
: pageSelection(keys, selected, size.itemCapacity, delta);
|
|
165
|
+
index = keys.indexOf(target);
|
|
166
|
+
}
|
|
167
|
+
else if (key === 'home') index = 0;
|
|
168
|
+
else if (key === 'end') index = keys.length - 1;
|
|
169
|
+
else if (key === '/' && !isSettings) { view.input = {kind:'search',scope,original:e.search[scope],selected:e.selected[scope]}; return null; }
|
|
170
|
+
else if (key === 'left' || key === 'right') {
|
|
171
|
+
if (!isSettings && e.filtered(scope)) { setMessage(view, 'message', localizedText('catalog.search.order_disabled')); return null; }
|
|
172
|
+
if (isSettings) adjustSetting(view, key === 'left' ? -1 : 1);
|
|
173
|
+
else {
|
|
174
|
+
const delta = key === 'left' ? -1 : 1;
|
|
175
|
+
if (keys[index + delta] && !e.move(scope, delta)) setMessage(view, 'message', localizedText('composition.invalid'));
|
|
176
|
+
}
|
|
177
|
+
return isSettings && e.setting === 'preview-background' ? 'previewBackground' : isSettings && e.setting === 'ui-language' ? 'uiLanguage' : null;
|
|
178
|
+
} else if (key === 'return' || key === ' ' || key === 'space') {
|
|
179
|
+
if (!isSettings) { if(!e.toggle(scope, selected))setMessage(view,"message",localizedText("composition.invalid")); }
|
|
180
|
+
else if (e.setting === 'item-guidance') e.guidanceScroll = 0;
|
|
181
|
+
else if (e.setting === 'preset-apply') { e.pendingTransfer = 'preset'; return 'transfer'; }
|
|
182
|
+
else if (e.setting === 'import-file' || e.setting === 'export-file') {
|
|
183
|
+
view.input = {kind:'path',action:e.setting === 'import-file' ? 'import' : 'export',buffer:e.path};
|
|
184
|
+
} else if (e.setting === 'padding' || e.setting === 'refresh_interval') {
|
|
185
|
+
view.input = {kind:'numeric',field:e.setting}; e.activeNumeric = e.setting;
|
|
186
|
+
} else {
|
|
187
|
+
const field = formRows(view).find((row) => row.key === e.setting);
|
|
188
|
+
const p = view.preferences.find((p) => 'host-' + p.row.key === e.setting);
|
|
189
|
+
if (field && (field.spec.kind === 'integer' || field.spec.kind === 'text')) view.input = {kind:'field',key:field.key,buffer:field.value};
|
|
190
|
+
else if (p && canEdit(p) && (p.row.kind === 'text' || p.row.kind === 'number')) view.input = {kind:'field',key:e.setting,buffer:String(p.value)};
|
|
191
|
+
else adjustSetting(view, 1);
|
|
192
|
+
}
|
|
193
|
+
return isSettings && e.setting === 'preview-background' ? 'previewBackground' : isSettings && e.setting === 'ui-language' ? 'uiLanguage' : null;
|
|
194
|
+
} else return null;
|
|
195
|
+
const next = keys[Math.max(0, Math.min(keys.length - 1, index))] || '';
|
|
196
|
+
if (isSettings) e.setting = next; else e.selected[scope] = next;
|
|
197
|
+
return null;
|
|
198
|
+
}
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/messages.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { ClientKeyEvent } from 'claude-code';
|
|
2
|
+
|
|
3
|
+
export const MAX_BATCH = 128;
|
|
4
|
+
export const MAX_PENDING = 512;
|
|
5
|
+
export interface KeyMessage {
|
|
6
|
+
seq: number;
|
|
7
|
+
event: ClientKeyEvent;
|
|
8
|
+
}
|
|
9
|
+
export interface Batch {
|
|
10
|
+
epoch: number;
|
|
11
|
+
columns: number;
|
|
12
|
+
rows: number;
|
|
13
|
+
events: KeyMessage[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const SPECIAL_KEYS = new Set([
|
|
17
|
+
'up',
|
|
18
|
+
'down',
|
|
19
|
+
'left',
|
|
20
|
+
'right',
|
|
21
|
+
'return',
|
|
22
|
+
'tab',
|
|
23
|
+
'backspace',
|
|
24
|
+
'delete',
|
|
25
|
+
'pageup',
|
|
26
|
+
'pagedown',
|
|
27
|
+
'home',
|
|
28
|
+
'end',
|
|
29
|
+
'insert',
|
|
30
|
+
'escape',
|
|
31
|
+
'esc',
|
|
32
|
+
'space',
|
|
33
|
+
'clear',
|
|
34
|
+
'capslock',
|
|
35
|
+
'numlock',
|
|
36
|
+
'scrolllock',
|
|
37
|
+
'pause',
|
|
38
|
+
'printscreen',
|
|
39
|
+
]);
|
|
40
|
+
|
|
41
|
+
/** The terminal may deliver a fast printable run as a single input chunk. */
|
|
42
|
+
export function keyEvents(event: ClientKeyEvent): ClientKeyEvent[] {
|
|
43
|
+
if (
|
|
44
|
+
event.ctrl ||
|
|
45
|
+
event.meta ||
|
|
46
|
+
[...event.key].length <= 1 ||
|
|
47
|
+
SPECIAL_KEYS.has(event.key) ||
|
|
48
|
+
/^f\d{1,2}$/i.test(event.key) ||
|
|
49
|
+
/[\x00-\x1f\x7f]/.test(event.key)
|
|
50
|
+
)
|
|
51
|
+
return [event];
|
|
52
|
+
return [...event.key].map((key) => ({ ...event, key }));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** Posts are input, including when our own module is their usual sender. */
|
|
56
|
+
export function parseBatch(value: unknown): Batch | null {
|
|
57
|
+
if (!value || typeof value !== 'object' || Array.isArray(value)) return null;
|
|
58
|
+
const b = value as Record<string, unknown>;
|
|
59
|
+
if (Object.keys(b).sort().join(',') !== 'columns,epoch,events,rows')
|
|
60
|
+
return null;
|
|
61
|
+
for (const field of ['epoch', 'columns', 'rows']) {
|
|
62
|
+
if (!Number.isSafeInteger(b[field]) || Number(b[field]) < 0) return null;
|
|
63
|
+
}
|
|
64
|
+
if (
|
|
65
|
+
Number(b.columns) > 10000 ||
|
|
66
|
+
Number(b.rows) > 10000 ||
|
|
67
|
+
!Array.isArray(b.events) ||
|
|
68
|
+
b.events.length > MAX_BATCH
|
|
69
|
+
)
|
|
70
|
+
return null;
|
|
71
|
+
let previous = 0;
|
|
72
|
+
for (const message of b.events) {
|
|
73
|
+
if (
|
|
74
|
+
!message ||
|
|
75
|
+
typeof message !== 'object' ||
|
|
76
|
+
Array.isArray(message) ||
|
|
77
|
+
Object.keys(message).sort().join(',') !== 'event,seq' ||
|
|
78
|
+
!Number.isSafeInteger(message.seq) ||
|
|
79
|
+
message.seq <= previous
|
|
80
|
+
)
|
|
81
|
+
return null;
|
|
82
|
+
previous = message.seq;
|
|
83
|
+
const e = message.event;
|
|
84
|
+
if (
|
|
85
|
+
!e ||
|
|
86
|
+
typeof e !== 'object' ||
|
|
87
|
+
Array.isArray(e) ||
|
|
88
|
+
typeof e.key !== 'string' ||
|
|
89
|
+
!e.key.length ||
|
|
90
|
+
e.key.length > 64 ||
|
|
91
|
+
/[\x00-\x1f\x7f]/.test(e.key) ||
|
|
92
|
+
Object.keys(e).some(
|
|
93
|
+
(key) =>
|
|
94
|
+
!['key', 'ctrl', 'shift', 'meta'].includes(key) ||
|
|
95
|
+
(key !== 'key' && e[key] !== true),
|
|
96
|
+
)
|
|
97
|
+
)
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return value as Batch;
|
|
101
|
+
}
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/client/settings.ts
ADDED
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { setMessage, failureMessage } from '../i18n/messages.ts';
|
|
2
|
+
import { text as localizedText } from '../i18n/index.ts';
|
|
3
|
+
import type { View } from '../session.ts';
|
|
4
|
+
import { formRows, adjustForm } from './forms.ts';
|
|
5
|
+
import { PREFERENCE_SPECS, specFor, canEdit } from '../preferences.ts';
|
|
6
|
+
import { LANGUAGES, LANGUAGE_NAMES } from '../i18n/index.ts';
|
|
7
|
+
|
|
8
|
+
export interface SettingRow {
|
|
9
|
+
key: string;
|
|
10
|
+
label: string;
|
|
11
|
+
group: string;
|
|
12
|
+
value: string;
|
|
13
|
+
editable: boolean;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function settingRows(view: View): SettingRow[] {
|
|
17
|
+
const e = view.editor!;
|
|
18
|
+
if (e.detail) return [{key:'item-guidance', label:'Sources and requirements', group:'Item format', value:'Enter: read guidance', editable:true}, ...formRows(view)];
|
|
19
|
+
if (e.page === 'layout') return formRows(view);
|
|
20
|
+
const d = e.draft.display;
|
|
21
|
+
const h = e.draft.host;
|
|
22
|
+
const rows: SettingRow[] = [
|
|
23
|
+
{
|
|
24
|
+
key: 'colors',
|
|
25
|
+
label: 'Colors',
|
|
26
|
+
group: 'Appearance',
|
|
27
|
+
value: d.use_colors ? 'on' : 'off',
|
|
28
|
+
editable: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'palette',
|
|
32
|
+
label: 'Palette',
|
|
33
|
+
group: 'Appearance',
|
|
34
|
+
value: d.palette,
|
|
35
|
+
editable: true,
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 'preview-background',
|
|
39
|
+
label: 'Preview background (UI only)',
|
|
40
|
+
group: 'Appearance',
|
|
41
|
+
value: view.previewBackground ?? 'dark',
|
|
42
|
+
editable: true,
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: 'directory-style',
|
|
46
|
+
label: 'Directory',
|
|
47
|
+
group: 'Appearance',
|
|
48
|
+
value: d.directory_style,
|
|
49
|
+
editable: true,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
key: 'separator-style',
|
|
53
|
+
label: 'Separator',
|
|
54
|
+
group: 'Appearance',
|
|
55
|
+
value: d.separator_style,
|
|
56
|
+
editable: true,
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
key: 'scope-labels',
|
|
60
|
+
label: 'Scope labels',
|
|
61
|
+
group: 'Appearance',
|
|
62
|
+
value: d.scope_labels,
|
|
63
|
+
editable: true,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: 'padding',
|
|
67
|
+
label: 'Padding',
|
|
68
|
+
group: 'Refresh / behavior',
|
|
69
|
+
value: e.buffers.padding,
|
|
70
|
+
editable: true,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
key: 'refresh_interval',
|
|
74
|
+
label: 'Refresh',
|
|
75
|
+
group: 'Refresh / behavior',
|
|
76
|
+
value: e.buffers.refresh_interval,
|
|
77
|
+
editable: true,
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: 'vim-indicator',
|
|
81
|
+
label: 'Vim indicator',
|
|
82
|
+
group: 'Refresh / behavior',
|
|
83
|
+
value: h.hide_vim_mode_indicator ? 'hidden' : 'shown',
|
|
84
|
+
editable: true,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: 'settings-subagent-statusline',
|
|
88
|
+
label: 'Custom subagent rows',
|
|
89
|
+
group: 'Refresh / behavior',
|
|
90
|
+
value: d.subagents.enabled ? 'on' : 'off',
|
|
91
|
+
editable: true,
|
|
92
|
+
},
|
|
93
|
+
];
|
|
94
|
+
const fields = formRows(view);
|
|
95
|
+
const appearanceEnd = rows.findIndex(row => row.group !== 'Appearance');
|
|
96
|
+
rows.splice(appearanceEnd, 0, ...fields.filter(row => row.group === 'Appearance'));
|
|
97
|
+
rows.push(...fields.filter(row => row.group !== 'Appearance'));
|
|
98
|
+
rows.push(
|
|
99
|
+
{ key: 'ui-language', label: 'Interface language (saved immediately)', group: 'Interface', value: LANGUAGE_NAMES[view.language ?? 'en'], editable: true },
|
|
100
|
+
{ key: 'preset-select', label: 'Preset', group: 'Presets / portable files', value: e.preset, editable: true },
|
|
101
|
+
{ key: 'preset-apply', label: 'Expand selected preset', group: 'Presets / portable files', value: 'replace draft; save later', editable: true },
|
|
102
|
+
{ key: 'import-file', label: 'Import file', group: 'Presets / portable files', value: 'file path; save later', editable: true },
|
|
103
|
+
{ key: 'export-file', label: 'Export current draft', group: 'Presets / portable files', value: 'new file path (may be unsaved)', editable: true },
|
|
104
|
+
);
|
|
105
|
+
if (e.advanced) {
|
|
106
|
+
for (const spec of PREFERENCE_SPECS) {
|
|
107
|
+
const p = view.preferences.find((p) => specFor(p)?.id === spec.id);
|
|
108
|
+
rows.push({ key: 'host-' + (p?.row.key ?? spec.id), label: p?.row.label || spec.label,
|
|
109
|
+
group: spec.group + ' (apply separately)',
|
|
110
|
+
value: p ? String(p.value) + (p.row.isLocked ? ' [locked; ' + spec.entry + ']' : !canEdit(p) ? ' [unsupported; ' + spec.entry + ']' : '') + (p.result ? ' · ' + p.result : '') : '(unavailable; ' + spec.entry + ')',
|
|
111
|
+
editable: !!p && canEdit(p) });
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return rows;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export function adjustSetting(view: View, delta: -1 | 1): void {
|
|
118
|
+
const e = view.editor!;
|
|
119
|
+
const d = e.draft.display;
|
|
120
|
+
const form = formRows(view).find((row) => row.key === e.setting);
|
|
121
|
+
if (form) { adjustForm(view, form, delta); return; }
|
|
122
|
+
if (e.setting === 'preset-select') {
|
|
123
|
+
const choices = e.description.presets.map((p) => p.id);
|
|
124
|
+
e.preset = choices[(choices.indexOf(e.preset) + delta + choices.length) % choices.length]!;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
const choice = (
|
|
128
|
+
key: keyof typeof e.description.options,
|
|
129
|
+
current: string,
|
|
130
|
+
): string => {
|
|
131
|
+
const values = (
|
|
132
|
+
e.description.options[key] as { choices: (string | boolean)[] }
|
|
133
|
+
).choices as string[];
|
|
134
|
+
return values[
|
|
135
|
+
(values.indexOf(current) + delta + values.length) % values.length
|
|
136
|
+
]!;
|
|
137
|
+
};
|
|
138
|
+
switch (e.setting) {
|
|
139
|
+
case 'ui-language':
|
|
140
|
+
view.language = LANGUAGES[(LANGUAGES.indexOf(view.language ?? 'en') + delta + LANGUAGES.length) % LANGUAGES.length]!;
|
|
141
|
+
break;
|
|
142
|
+
case 'preview-background':
|
|
143
|
+
view.previewBackground = view.previewBackground === 'light' ? 'dark' : 'light';
|
|
144
|
+
break;
|
|
145
|
+
case 'colors':
|
|
146
|
+
d.use_colors = !d.use_colors;
|
|
147
|
+
break;
|
|
148
|
+
case 'palette':
|
|
149
|
+
d.palette = choice('palette', d.palette) as typeof d.palette;
|
|
150
|
+
break;
|
|
151
|
+
case 'directory-style':
|
|
152
|
+
d.directory_style = choice(
|
|
153
|
+
'directory-style',
|
|
154
|
+
d.directory_style,
|
|
155
|
+
) as typeof d.directory_style;
|
|
156
|
+
break;
|
|
157
|
+
case 'separator-style':
|
|
158
|
+
d.separator_style = choice(
|
|
159
|
+
'separator-style',
|
|
160
|
+
d.separator_style,
|
|
161
|
+
) as typeof d.separator_style;
|
|
162
|
+
break;
|
|
163
|
+
case 'scope-labels':
|
|
164
|
+
d.scope_labels = choice(
|
|
165
|
+
'scope-labels',
|
|
166
|
+
d.scope_labels,
|
|
167
|
+
) as typeof d.scope_labels;
|
|
168
|
+
break;
|
|
169
|
+
case 'vim-indicator':
|
|
170
|
+
e.draft.host.hide_vim_mode_indicator =
|
|
171
|
+
!e.draft.host.hide_vim_mode_indicator;
|
|
172
|
+
break;
|
|
173
|
+
case 'settings-subagent-statusline':
|
|
174
|
+
d.subagents.enabled = !d.subagents.enabled;
|
|
175
|
+
break;
|
|
176
|
+
case 'padding':
|
|
177
|
+
case 'refresh_interval': {
|
|
178
|
+
const field = e.setting;
|
|
179
|
+
const range =
|
|
180
|
+
field === 'padding'
|
|
181
|
+
? e.description.options.padding
|
|
182
|
+
: e.description.options['refresh-interval'];
|
|
183
|
+
const current = e.draft.host[field];
|
|
184
|
+
e.setBuffer(
|
|
185
|
+
field,
|
|
186
|
+
String(
|
|
187
|
+
Math.max(
|
|
188
|
+
range.minimum,
|
|
189
|
+
Math.min(
|
|
190
|
+
range.maximum,
|
|
191
|
+
(typeof current === 'number' ? current : range.minimum) + delta,
|
|
192
|
+
),
|
|
193
|
+
),
|
|
194
|
+
),
|
|
195
|
+
);
|
|
196
|
+
e.acceptNumeric(field);
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
default: {
|
|
200
|
+
const p = view.preferences.find((p) => 'host-' + p.row.key === e.setting);
|
|
201
|
+
if (!p || !canEdit(p)) {
|
|
202
|
+
setMessage(view, "message", localizedText("native.lib.client.settings.this_claude_preference_is_unavailable_locked_or_unsupported"));
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
if (p.row.kind === 'boolean') p.value = !p.value;
|
|
206
|
+
else if (p.row.kind === 'choice') {
|
|
207
|
+
const choices = p.row.options!;
|
|
208
|
+
p.value =
|
|
209
|
+
choices[
|
|
210
|
+
(choices.indexOf(String(p.value)) + delta + choices.length) %
|
|
211
|
+
choices.length
|
|
212
|
+
]!;
|
|
213
|
+
}
|
|
214
|
+
else if (p.row.kind === 'number') p.value = Number(p.value) + delta;
|
|
215
|
+
p.result = '';
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
package/node_modules/@fbincon/statusline-cli/resources/statusline-native/lib/editor/appearance.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Generated by tools/generation/resources.ts; do not edit.
|
|
2
|
+
/** Pure controls/validation from Python's scoped visibility capabilities. */
|
|
3
|
+
import { VISIBILITY_ITEMS } from '../generated-contracts.ts';
|
|
4
|
+
import type { Scope, EditorField } from '../generated-contracts.ts';
|
|
5
|
+
|
|
6
|
+
export function visibilityChoices(scope: Scope, id: string): string[] {
|
|
7
|
+
const rule = (VISIBILITY_ITEMS[scope] as Record<string, string>)[id];
|
|
8
|
+
return rule ? ['always', rule] : ['always'];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function itemFields(fields: EditorField[], scope: Scope, id: string): EditorField[] {
|
|
12
|
+
if(id==='spacer')return [];
|
|
13
|
+
if(id==='text')return [{key:'text',label:'Literal text',group:'Item format',kind:'text',choices:[],minimum:0,maximum:256,nullable:false},
|
|
14
|
+
...fields.filter(f=>['label','icon','foreground','background','priority','max_width'].includes(f.key))];
|
|
15
|
+
const choices = visibilityChoices(scope, id);
|
|
16
|
+
return fields.filter(spec => (spec.key !== 'visibility' || choices.length > 1) &&
|
|
17
|
+
(spec.key !== 'visibility_threshold' || choices.includes('used-at-least')))
|
|
18
|
+
.map(spec => spec.key === 'visibility' ? {...spec, choices} : spec);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function validColor(value: unknown): boolean {
|
|
22
|
+
return value === null || value === 'default' || typeof value === 'string' && !/\s/u.test(value) &&
|
|
23
|
+
(/^#[0-9a-f]{6}$/i.test(value) || /^ansi:[0-9]{1,3}$/.test(value) && Number(value.slice(5)) <= 255);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function normalizeColor(value: unknown): unknown {
|
|
27
|
+
if (typeof value !== 'string' || !validColor(value)) return value;
|
|
28
|
+
return value.startsWith('ansi:') ? 'ansi:' + Number(value.slice(5)) : value.toLowerCase();
|
|
29
|
+
}
|