Adds test/terminal/input/input_test.dart — 58 unit tests covering the keytab tokenizer, parser, unescape helper, KeytabRecord toString shapes, Keytab.find modifier-matching rules, and the four TerminalInputHandler implementations (CascadeInputHandler, KeytabInputHandler, CtrlInputHandler, AltInputHandler). Highlights: - keytabUnescape: every documented backslash escape + \xHH hex. - LineReader: peek/take/done, whitespace skip, readString (alphanumeric/underscore), readUntil (both exclusive and inclusive variants). - tokenize: keyboard-name and key-define lines, comment + blank stripping, shortcut vs string actions, error paths on malformed input. - KeytabParser: full mode-flag matrix, error paths on every defensive throw reachable through the public addTokens API (stray non-keyboard token, missing colon, modeStatus value other than '+'/'-', non-mode token after modeStatus, action token of wrong type, second token of wrong kind for both _parseName and _parseKeyDefine). - KeytabRecord.toString covers every supported flag (Alt, Control, Shift, AnyMod, Ansi, AppScreen, KeyPad, AppCuKeys, AppKeyPad, NewLine, Mac). - Keytab.find: -Shift / +AnyMod / -AnyMod gating, mode-flag filters (newLine, appKeyPad, appScreen, macos, appCursorKeys, keyPad), -Ansi (VT52) skip, fallthrough to fallback record, null when no key matches. - KeytabInputHandler: every modifier combination's `*` placeholder expansion (1..8 inclusive), default-keytab fallback, no-match null, no-* passthrough. - CtrlInputHandler: A..Z → 0x01..0x1A; null without ctrl, with shift / alt, or on non-letter keys. - AltInputHandler: A..Z → ESC + uppercase; null without alt, with shift / ctrl, on macOS, or on non-letter keys. - defaultInputHandler integration: keytab routing, fallthrough to CtrlInputHandler. Coverage delta: - core/input/handler.dart: 4/54 → 54/54. - keytab.dart: 0/29 → 29/29. - keytab_record.dart: 0/44 → 44/44. - keytab_token.dart: 0/82 → 80/82 (the two remaining lines are defensive throws inside `_parseKeyboardNameDefine` / `_parseKeyDefine` that are unreachable from tokenize() — the callers only enter those functions after the `_isKeyboardNameDefine` / `_isKeyDefine` guards in the same file, so the inner readString always matches). - keytab_parse.dart: 0/65 → 63/65 (the two remaining lines mirror the same shape — _parseName and _parseKeyDefine both check the first token's type, but addTokens only delegates to them after matching that type, so the throws are dead defensive code). - keytab_default.dart: 0/4 unchanged — that's the file's own `void main()` debug entrypoint that prints the parsed default keytab; not part of the runtime contract. - keytab_escape.dart: 0/14 → 14/14. - Total project: 49.31% → 52.53%; coverage_floor bumped 49 → 52. The 4 dead defensive throws are flagged but not removed in this commit — they're a code-style call (defensive paranoia vs. dead- code cleanup) that belongs in a separate review, not folded into a test sweep. Co-Authored-By: Claude <noreply@anthropic.com>
107 lines
2.8 KiB
YAML
107 lines
2.8 KiB
YAML
# clide — IDE for Claude Code CLI.
|
|
#
|
|
# Single source of truth for project metadata and dependencies.
|
|
# The Flutter app hosts everything in-process (D-056); tmux owns
|
|
# session persistence (D-041).
|
|
#
|
|
# Prefer-zero-deps; every third-party entry is exact-pinned and
|
|
# justified. No carets. See D-031.
|
|
|
|
name: clide
|
|
description: >-
|
|
IDE for Claude Code CLI. One Dart package covering the UI,
|
|
subsystem handlers (pane, files, editor, git, pql), and the
|
|
extension framework.
|
|
publish_to: none
|
|
version: 2.0.0
|
|
repository: https://github.com/postmeridiem/clide
|
|
|
|
# Pre-push line-coverage floor. Ratchets up only — see D-66.
|
|
# Reading: `awk -F: '/^coverage_floor:/ {gsub(/ /,"",$2); print $2}' pubspec.yaml`.
|
|
coverage_floor: 52
|
|
|
|
# Project metadata (was project.yaml, folded in per D-056).
|
|
# version: above is the single source of truth. The Makefile reads
|
|
# it for build stamping. Cutting a release bumps version + changelog
|
|
# in one commit.
|
|
#
|
|
# maintainers:
|
|
# Jeroen Schweitzer <jpmschweitzer@gmail.com>
|
|
# license: MIT
|
|
# status: pre-v2.0, interaction model + panel system landed
|
|
# flutter_channel: stable
|
|
|
|
environment:
|
|
sdk: ">=3.5.0 <4.0.0"
|
|
flutter: ">=3.19.0"
|
|
|
|
dependencies:
|
|
flutter:
|
|
sdk: flutter
|
|
|
|
yaml: 3.1.3
|
|
|
|
ffi: 2.1.3
|
|
|
|
jovial_svg: 1.1.26
|
|
|
|
markdown: 7.2.2
|
|
|
|
flutter_widget_from_html_core: 0.17.2
|
|
|
|
dev_dependencies:
|
|
flutter_test:
|
|
sdk: flutter
|
|
flutter_lints: 6.0.0
|
|
|
|
integration_test:
|
|
sdk: flutter
|
|
|
|
test: 1.30.0
|
|
mocktail: 1.0.4
|
|
alchemist: 0.12.1
|
|
|
|
flutter:
|
|
uses-material-design: false
|
|
|
|
assets:
|
|
- lib/kernel/src/theme/themes/
|
|
- lib/kernel/src/i18n/catalog/
|
|
- assets/licenses.yaml
|
|
- assets/LICENSE
|
|
- assets/fonts/jetbrains_mono/OFL.txt
|
|
- assets/fonts/josefin_sans/OFL.txt
|
|
- assets/fonts/phosphor/LICENSE
|
|
- assets/logo/logo.svg
|
|
- assets/logo/logo-192.png
|
|
- assets/logo/appicon.svg
|
|
- assets/logo/appicon-256.png
|
|
- assets/clide.tmux.conf
|
|
- assets/grammars/
|
|
- assets/queries/
|
|
|
|
fonts:
|
|
- family: JosefinSans
|
|
fonts:
|
|
- asset: assets/fonts/josefin_sans/JosefinSans-VariableFont.ttf
|
|
- asset: assets/fonts/josefin_sans/JosefinSans-Italic-VariableFont.ttf
|
|
style: italic
|
|
|
|
- family: Phosphor
|
|
fonts:
|
|
- asset: assets/fonts/phosphor/Phosphor.ttf
|
|
- asset: assets/fonts/phosphor/Phosphor-Bold.ttf
|
|
weight: 700
|
|
- asset: assets/fonts/phosphor/Phosphor-Fill.ttf
|
|
|
|
- family: JetBrainsMono
|
|
fonts:
|
|
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Regular.ttf
|
|
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Italic.ttf
|
|
style: italic
|
|
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Bold.ttf
|
|
weight: 700
|
|
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-BoldItalic.ttf
|
|
weight: 700
|
|
style: italic
|