Repository navigation
v0.3.3
LuCLI v0.3.3
- Unit Test Coverage One-Shot Script: Added
tests/unit-tests-coverage.shto 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 gemininow emits the GeminiEngine-oriented template shape with provider-specific keys (apikey,connectTimeout,socketTimeout,temperature,conversationSizeLimit, andbeta) 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 gemininow infer the correct Lucee engine classes when--classis omitted, emit provider-specific API key fields (apiKeyvssecretKey), preserve OpenAI-compatibletypehandling, 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, andprunecommands now fail with a clear ambiguity error when multiple server slugs are linked to the same project path (requiring--nameor--config),status/prunenow accept--configto resolve alternatelucee*.jsonnames, andprune --forcenow 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 bothsetupandsetup_filescopes. - Fix: Whitespace Flag Semantics + Coverage: Made whitespace preservation opt-in by default (
--whitespacenow explicitly enables preserved writer mode), corrected CFML writer mode mapping for the flag, and added deterministic BATS coverage that verifiescfmlWritertoggles betweenregularandwhite-space. - Fix:
.lucliCommented 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 --estimateto 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-1mto 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/luclifor better compatibility with the curl installer and common Linux conventions. The script now checks for an existinglucliin 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.mdguide for contributor onboarding. - Testing Migration to BATS: We are moving tests from legacy shell suites to BATS (
tests/bats/andtests/test-bats.sh). - Block Direct
.cfcExecution viarun: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 vialucli modules run <module>instead. - Runtime CWD Sync + Local Component Resolution: LuCLI now tracks effective runtime CWD across terminal and
.lucliexecution flows, refreshes Lucee/cwdmappings before eval, and fixescd+cfml new LocalComponent()/ relativerunbehavior in command scripts. - URL Rewrite Direct CFML Bypass: Tomcat
rewrite.confignow preserves direct.cfm/.cfc/.cfmlrequests 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/.lucautomation 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 runnow apply invocation overrides (including barekey=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 duplicatedlucee-serverpath 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 toARGS(a struct with both numeric positional keys and namedkey=valueentries),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/ENVbinding also now includes variables set viasetin the parent.lucliscript. setVariable Propagation to External Commands: Variables defined viaset VAR=valuein.lucliscripts 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 initWizard Error: Fixed an interactive prompt issue where module creation could fail with❌ Error: No line foundafter entering module details. - AI Config Quiet Mode: Added
--quiettolucli ai config addto 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.