Commit d245844
authored
Client parity follow-ups (re-target to main): unify client, TODOs, tests, CI, versions (#87)
* fix: Restore client parity with server (#75, #76, #77)
- fix(vscode #75): escape nested template literals in endpointTesterPanel
so the webview HTML literal no longer desyncs the parser; build @flapi/shared
automatically (shared prepare + extension prebuild) so EndpointConfig types
resolve. Extension builds and typechecks again (broken since 2025-11-02).
- feat(cli #76): add commands for server capabilities that had no CLI surface:
health, config env, config filesystem, endpoints parameters,
cache audit [path], cache gc.
- fix(cli #77): FlapiApiClient.testEndpoint targets the real /template/test
route instead of the non-existent /test (would 404).
- docs: add CLIENT_PARITY_AUDIT.md documenting findings and resolution.
* refactor: Unify extension on shared API client; cleanup; version align (#81, #83, #85)
- refactor(vscode #83): delete the extension's duplicate FlapiApiClient and
point extension.ts + yamlValidator at @flapi/shared's client; add slug-based
validateEndpointConfig/reloadEndpointConfig and X-Config-Token to setToken.
Fixes the local client's broken base-URL (it read non-existent flapi.host/port).
- fix(vscode #81): remove dead 'Variables provider' editor-change handler.
- chore(#85): align cli, @flapi/shared, and the extension to 26.6.13.
* feat(vscode): resolve {{include}} directives and add endpoint picker (#79, #80)
- feat(#80): add a pure extendedYaml resolver that inlines
{{include:<section> from <file>}} directives from sibling workspace files;
CodeLens now uses it instead of stripping includes and parsing blindly.
- feat(#79): when multiple endpoints reference one SQL template, show a
QuickPick selector instead of silently using the first.
* test+ci: Add VSCode extension test suite and a clients CI gate (#82, #84)
- test(vscode #84): set up Vitest and cover the pure logic — extended-YAML
include resolution and endpoint-pick label building (12 tests).
- ci(#82): add .github/workflows/clients.yaml that builds @flapi/shared, builds
and tests the CLI, and typechecks/builds/tests the extension on every PR that
touches cli/. This would have caught #75.
* chore: Sync cli + shared lockfiles to 26.6.13 (#85)
Keeps package-lock.json in step with the version bump so 'npm ci' (used by the
new clients CI gate) doesn't fail on a version mismatch.1 parent d6adfb1 commit d245844
18 files changed
Lines changed: 2017 additions & 306 deletions
File tree
- .github/workflows
- cli
- vscode-extension
- src
- codelens
- validation
- webview
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
192 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
193 | 200 | | |
194 | 201 | | |
195 | 202 | | |
| |||
347 | 354 | | |
348 | 355 | | |
349 | 356 | | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
350 | 392 | | |
351 | 393 | | |
352 | 394 | | |
| |||
0 commit comments