Skip to content

Conversation

@jrosskopf
Copy link
Contributor

Summary

  • Updates CLI cache command to support new DuckLake configuration model
  • Adds config subcommands for environment and filesystem introspection
  • Adds comprehensive CLI test coverage
  • Updates VSCode extension for new config API

Changes

CLI Commands:

  • flapi cache get: Show full cache configuration (table, schema, schedule, cursor, retention, etc.)
  • flapi cache update: Update any cache configuration field
  • flapi config environment: List whitelisted environment variables available to templates
  • flapi config filesystem: Show directory structure and template files

Test Coverage:

  • New cache.spec.ts (9 test cases)
  • New config-commands.spec.ts (12 test cases)
  • New templates.spec.ts (8 test cases)
  • Updated endpoints.spec.ts

VSCode Extension:

  • Updated for new MCP config tools API
  • New endpoint commands and explorer support
  • YAML validation for new cache configuration

Test Plan

  • CLI tests pass: npm test
  • CLI builds: npm run build
  • Cache command works: flapi cache get <path>
  • Config commands work: flapi config environment
  • VSCode extension loads without errors

Dependencies

This PR depends on PR #13 (MCP Config Tools Integration)

- Update cache command to use new DuckLake configuration (table, schema, schedule, etc.)
- Replace legacy cache options (ttl, max_size, strategy) with DuckLake model fields
- Add config subcommands for environment and filesystem introspection
- Update endpoints, templates, and cache display logic for new configuration model
- Add comprehensive CLI test coverage (cache, config, templates commands)
- Update VSCode extension for new config API and endpoints
- Add YAML validation for new cache configuration schema

CLI enhancements:
- flapi cache get/update: Now supports full DuckLake cache configuration
- flapi config environment: List whitelisted environment variables
- flapi config filesystem: Show directory structure and template files
- Cache display: Shows table name, schema, schedule, cursor, retention settings

Test coverage:
- New cache.spec.ts: Cache command operations (9 test cases)
- New config-commands.spec.ts: Config environment/filesystem (12 test cases)
- New templates.spec.ts: Template command operations (8 test cases)
- Updated endpoints.spec.ts: Endpoints command with new config model

VSCode Extension:
- Updated endpoint commands for new MCP config tools
- Updated explorer to show new configuration fields
- Updated API client with new endpoints
- Updated YAML validator for new schemas

Depends on: PR #13 (MCP Config Tools Integration)
Requires: feature/gh-11-mcp-config branch

This PR enables CLI users to interact with the new MCP configuration service
endpoints and cache management tools provided by PR #13.
@jrosskopf jrosskopf self-assigned this Jan 24, 2026
@jrosskopf jrosskopf added the bug Something isn't working label Jan 24, 2026
@jrosskopf jrosskopf changed the title feat: Update CLI commands for MCP config tools and DuckLake cache Update fix smaller issues with the config cli and the vscode extension Jan 24, 2026
@jrosskopf jrosskopf merged commit 04c0db6 into feature/gh-11-mcp-config Jan 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants