Skip to content

Client parity follow-ups: API-client unification, TODOs, tests, CI, versions#86

Merged
jrosskopf merged 4 commits into
fix/client-parity-auditfrom
fix/client-parity-followups
Jun 14, 2026
Merged

Client parity follow-ups: API-client unification, TODOs, tests, CI, versions#86
jrosskopf merged 4 commits into
fix/client-parity-auditfrom
fix/client-parity-followups

Conversation

@jrosskopf

Copy link
Copy Markdown
Contributor

Follow-up to #78, addressing the remaining P2/P3 items from docs/CLIENT_PARITY_AUDIT.md. Based on fix/client-parity-audit (#78) — merge that first, or this will rebase onto main automatically once #78 lands.

Changes

Test plan

  • @flapi/shared builds
  • flapii CLI builds + 41/41 unit tests pass; new commands register (health, config env/filesystem, endpoints parameters, cache gc/audit)
  • Extension tsc --noEmit → 0 errors, webpack build OK, 12/12 Vitest tests pass
  • Type probe confirms @flapi/shared resolves with real types (no any fallback)

Not included

The single-YAML parse TODO is handled client-side (the resolver) rather than via a new C++ server route, since a server rebuild isn't reliably verifiable in this environment (modified duckdb submodule).

#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.
…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(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.
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.
@jrosskopf jrosskopf merged commit 2669f7c into fix/client-parity-audit Jun 14, 2026
@jrosskopf jrosskopf deleted the fix/client-parity-followups branch June 14, 2026 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant