liutaio 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/liutaio +6 -0
  2. package/package.json +1 -1
package/bin/liutaio CHANGED
@@ -11,5 +11,11 @@ done
11
11
  SCRIPT_PATH="$(cd "$(dirname "$SOURCE")" && pwd)"
12
12
  LIUTAIO_HOME="$(cd "$SCRIPT_PATH/.." && pwd)"
13
13
 
14
+ # Handle --version/-v
15
+ if [[ "${1:-}" == "--version" || "${1:-}" == "-v" ]]; then
16
+ node -e "console.log('liutaio v' + require('$LIUTAIO_HOME/package.json').version)"
17
+ exit 0
18
+ fi
19
+
14
20
  # Delegate to run.sh with all arguments
15
21
  exec "$LIUTAIO_HOME/docker/run.sh" "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "liutaio",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "Run AI coding agents in Docker containers — autonomously, safely, and with zero setup.",
5
5
  "license": "MIT",
6
6
  "bin": {