Commit 16fb4b1
feat: redesign bundle command — self-contained serve-ready ZIP
New bundle structure:
manifest.json — metadata (version, counts, git SHA, bundle format 2)
serve.sh — Linux/Mac startup script (auto-downloads JAR from Maven Central)
serve.bat — Windows startup script
graph.db/ — Neo4j embedded database (from .osscodeiq/graph.db)
cache/ — H2 analysis cache (from .code-intelligence)
source/ — codebase files (via git ls-files, optional --no-source)
flow.html — interactive architecture diagram (if FlowEngine available)
code-iq-*-cli.jar — CLI JAR (optional --include-jar)
Pipeline: index → enrich → bundle → (transfer) → extract → serve.sh
serve.sh reads version from manifest, downloads CLI JAR from Maven Central
if not bundled (SNAPSHOT versions require --include-jar), runs serve with
correct --graph and source paths.
Options: --include-jar, --no-source, --graph, --tag, --output
Skips Neo4j lock files. Progress logging. Reports bundle size.
E2E tested: petclinic index→enrich→bundle→extract→serve→query all working.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 78f63eb commit 16fb4b1
2 files changed
Lines changed: 430 additions & 185 deletions
File tree
- src
- main/java/io/github/randomcodespace/iq/cli
- test/java/io/github/randomcodespace/iq/cli
0 commit comments