Skip to content

v0.3.3

Choose a tag to compare

@github-actions github-actions released this 07 Apr 16:48
· 195 commits to main since this release

LuCLI v0.3.3

  • Unit Test Coverage One-Shot Script: Added tests/unit-tests-coverage.sh to run Maven unit tests with JaCoCo coverage from project root and print/open generated report paths (target/site/jacoco/index.html).
  • Fix: Gemini AI Config Template Output: lucli ai config add --type gemini now emits the GeminiEngine-oriented template shape with provider-specific keys (apikey, connectTimeout, socketTimeout, temperature, conversationSizeLimit, and beta) and no default-mode field when left at the command default.
  • Fix: AI Provider Mapping for ai config add: lucli ai config add --type claude / --type gemini now infer the correct Lucee engine classes when --class is omitted, emit provider-specific API key fields (apiKey vs secretKey), preserve OpenAI-compatible type handling, and mask/list both key formats consistently.
  • PR Review Workflow Templates + Script: Added a new pr-review/ workflow with reusable reviewer/synthesis prompts, baseline review rules, example pending-code context payload, and a LuCLI command script (pr-review/review-pending-code.lucli) that runs multi-agent review passes and produces a synthesized final report.
  • Server Slug-First Lifecycle Resolution + BATS Coverage: Server lifecycle now treats server slug/name as the primary identity, with project path as a secondary one-to-many index. Project-scoped status, stop, and prune commands now fail with a clear ambiguity error when multiple server slugs are linked to the same project path (requiring --name or --config), status/prune now accept --config to resolve alternate lucee*.json names, and prune --force now attempts a managed stop before pruning. Added new BATS lifecycle tests validating start/status/stop flow, config-targeted stopping, and multi-slug ambiguity behavior.
  • BATS Migration Coverage Expansion: Added BATS coverage for module install validation and module run execution, server dry-run preview flags (--include-lucee, --include-tomcat-server, --include-tomcat-web, HTTPS preview flags, and --include-all), extended environment merge assertions, computed dependency mappings in dry-run CFConfig output, server command-surface smoke checks, and binary/JAR version parity. Also hardened BATS temp home setup to work in both setup and setup_file scopes.
  • Fix: Whitespace Flag Semantics + Coverage: Made whitespace preservation opt-in by default (--whitespace now explicitly enables preserved writer mode), corrected CFML writer mode mapping for the flag, and added deterministic BATS coverage that verifies cfmlWriter toggles between regular and white-space.
  • Fix: .lucli Commented Continuation Lines: Fixed line-continuation parsing so # ... comment lines inside backslash-continued commands are ignored instead of being concatenated into the executed command.
  • AI Prompt Rough Cost Estimation: Added lucli ai prompt --estimate to show a pre-send rough estimate (estimate-only mode, no provider request is sent) that breaks down composed text tokens, JSON envelope overhead tokens, and image heuristic tokens. Added optional --assume-output-tokens, --input-price-per-1m, and --output-price-per-1m to approximate total tokens and estimated USD cost with explicit warning language that billed usage may differ.
  • Updated install location for ./build.sh install: Changed the default install location to ~/.local/bin/lucli for better compatibility with the curl installer and common Linux conventions. The script now checks for an existing lucli in the PATH and uses that location if found, otherwise it falls back to ~/.local/bin/lucli.
  • Docs: README Status Badges + Contributing Guide: Replaced placeholder README badges with live GitHub Actions workflow badges, refreshed key README links/version notes, and added a new CONTRIBUTING.md guide for contributor onboarding.
  • Testing Migration to BATS: We are moving tests from legacy shell suites to BATS (tests/bats/ and tests/test-bats.sh).
  • Block Direct .cfc Execution via run: lucli run <file>.cfc (and equivalent shortcut invocation) is now blocked with a clear error message to avoid component pathing instability. Use module entry points via lucli modules run <module> instead.
  • Runtime CWD Sync + Local Component Resolution: LuCLI now tracks effective runtime CWD across terminal and .lucli execution flows, refreshes Lucee /cwd mappings before eval, and fixes cd + cfml new LocalComponent() / relative run behavior in command scripts.
  • URL Rewrite Direct CFML Bypass: Tomcat rewrite.config now preserves direct .cfm / .cfc / .cfml requests while still routing framework-style paths through the configured router file, with integration tests and harness cleanup updates to validate this behavior.
  • Docs: LuCLI Command Scripts Terminology: Documentation now standardizes .lucli / .luc automation files as “LuCLI command scripts,” adds a dedicated guide, and updates cross-links from CFML execution and CLI basics pages.
  • One-Shot Server Overrides No Longer Persist to lucee.json: lucli server start / lucli server run now apply invocation overrides (including bare key=value, --port, --webroot, and --enable-lucee / --disable-lucee) in memory for that run only, instead of mutating your project config file.
  • CFConfig Path Normalization + Legacy Compatibility: Standardized server CFConfig handling to ~/.lucli/<server>/context/.CFConfig.json (removing the duplicated lucee-server path segment), while still reading legacy locations when present and cleaning up old nested files/directories after migration.
  • Script Argument Variables (ARGS, ARGV, __namedArguments): CFML scripts (.cfs, .cfm) now have access to ARGS (a struct with both numeric positional keys and named key=value entries), ARGV (an array with the script filename as element 0 followed by raw args), and __namedArguments (a map of only the named key=value arguments). The __env / ENV binding also now includes variables set via set in the parent .lucli script.
  • set Variable Propagation to External Commands: Variables defined via set VAR=value in .lucli scripts are now merged into the environment of external child processes (e.g. shell commands, env, curl). Previously they were only visible to the embedded CFML engine context.
  • Fix: lucli module init Wizard Error: Fixed an interactive prompt issue where module creation could fail with ❌ Error: No line found after entering module details.
  • AI Config Quiet Mode: Added --quiet to lucli ai config add to suppress printing imported config payload output, making CI logs safer.

Downloads

  • lucli-0.3.3.jar/lucli.jar - Universal JAR (Java 21+, works everywhere) ✅ Signed
  • lucli-0.3.3-linux - Shell wrapper for Linux (Java 21+ required)
  • lucli-0.3.3-macos - Shell wrapper for macOS (Java 21+ required)
  • lucli-0.3.3.bat - Windows batch launcher (Java 21+ required)
  • install.sh - POSIX installer bootstrap (curl ... | sh)
  • install.ps1 - PowerShell installer bootstrap (irm ... | iex)

All downloads require Java 21+. JAR files are cryptographically signed for authenticity.