Files
agenticCode/ac-cli/agenticcode.sh
Ingo Schnabel 0b3f664b3f Add clear command, fix CLI shell completion/history, add launch script
- New DELETE /api/projects endpoint and GraphRepository.clearAll() wipe
  the whole Neo4j database (schema preserved).
- New CLI 'clear' command with confirmation prompt (-y/--yes to skip).
- Fix interactive shell: compile the picocli SystemCompleter before use
  (was throwing IllegalStateException on Tab), and persist the actual
  LineReader history instead of an unattached DefaultHistory instance.
- Add ac-cli/agenticcode.sh to launch the interactive shell from the
  built jar.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-14 13:33:53 +02:00

15 lines
392 B
Bash
Executable File

#!/usr/bin/env bash
# Starts the AgenticCode interactive shell using the jar built in target/.
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
JAR="$SCRIPT_DIR/target/ac-cli-1.0.0-SNAPSHOT.jar"
if [[ ! -f "$JAR" ]]; then
echo "Jar not found: $JAR" >&2
echo "Build it first with: mvn -pl ac-cli -am package" >&2
exit 1
fi
exec java -jar "$JAR" "$@"