nulu-code 1.0.0 → 1.0.1

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 (3) hide show
  1. package/README.md +3 -2
  2. package/bin/nulu.exe +10 -3
  3. package/package.json +13 -13
package/README.md CHANGED
@@ -13,8 +13,9 @@ The first start connects your Nulu AI account: `nulu` shows a link, you approve
13
13
  the page shows. `nulu login` does the same at any time.
14
14
 
15
15
  Requirements: Node.js 18 or newer for the installer (the agent itself is a self-contained executable), on Linux
16
- (x64, arm64; glibc or musl), macOS (Apple Silicon, Intel) or Windows (x64, arm64). Installation scripts must be
17
- enabled: the install step picks the executable for your machine.
16
+ (x64, arm64; glibc or musl), macOS (Apple Silicon, Intel) or Windows (x64, arm64). npm 12 and later skip
17
+ installation scripts by default: on Linux and macOS the first `nulu` then finishes the installation by itself; on
18
+ Windows install with `npm install --global --allow-scripts=nulu-code nulu-code`.
18
19
 
19
20
  ## Update
20
21
 
package/bin/nulu.exe CHANGED
@@ -1,4 +1,11 @@
1
- echo "Error: the nulu-code install script did not run." >&2
2
- echo "This happens when installation scripts are disabled (npm --ignore-scripts)." >&2
3
- echo "Reinstall with scripts enabled: npm install --global nulu-code" >&2
1
+ fix="npm install --global --allow-scripts=nulu-code nulu-code"
2
+ if [ -n "$NULU_FINISHING_INSTALL" ] || ! command -v node >/dev/null 2>&1; then
3
+ echo "Error: the Nulu Code installation is incomplete. Reinstall with: $fix" >&2
4
+ exit 1
5
+ fi
6
+ case "$0" in */*) self="$0" ;; *) self="$(command -v "$0")" ;; esac
7
+ self="$(node -e 'console.log(require("fs").realpathSync(process.argv[1]))' "$self")" || exit 1
8
+ echo "Nulu Code: finishing the installation..." >&2
9
+ if NULU_FINISHING_INSTALL=1 node "$(dirname "$self")/../postinstall.mjs" >&2; then exec "$self" "$@"; fi
10
+ echo "Error: the Nulu Code installation could not be finished. Reinstall with: $fix" >&2
4
11
  exit 1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nulu-code",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Nulu Code: the terminal AI coding agent powered by Nulu AI",
5
5
  "license": "MIT",
6
6
  "homepage": "https://nuluai.com",
@@ -30,17 +30,17 @@
30
30
  "NOTICE.md"
31
31
  ],
32
32
  "optionalDependencies": {
33
- "nulu-code-darwin-arm64": "1.0.0",
34
- "nulu-code-darwin-x64": "1.0.0",
35
- "nulu-code-darwin-x64-baseline": "1.0.0",
36
- "nulu-code-linux-arm64": "1.0.0",
37
- "nulu-code-linux-arm64-musl": "1.0.0",
38
- "nulu-code-linux-x64": "1.0.0",
39
- "nulu-code-linux-x64-baseline": "1.0.0",
40
- "nulu-code-linux-x64-baseline-musl": "1.0.0",
41
- "nulu-code-linux-x64-musl": "1.0.0",
42
- "nulu-code-windows-arm64": "1.0.0",
43
- "nulu-code-windows-x64": "1.0.0",
44
- "nulu-code-windows-x64-baseline": "1.0.0"
33
+ "nulu-code-darwin-arm64": "1.0.1",
34
+ "nulu-code-darwin-x64": "1.0.1",
35
+ "nulu-code-darwin-x64-baseline": "1.0.1",
36
+ "nulu-code-linux-arm64": "1.0.1",
37
+ "nulu-code-linux-arm64-musl": "1.0.1",
38
+ "nulu-code-linux-x64": "1.0.1",
39
+ "nulu-code-linux-x64-baseline": "1.0.1",
40
+ "nulu-code-linux-x64-baseline-musl": "1.0.1",
41
+ "nulu-code-linux-x64-musl": "1.0.1",
42
+ "nulu-code-windows-arm64": "1.0.1",
43
+ "nulu-code-windows-x64": "1.0.1",
44
+ "nulu-code-windows-x64-baseline": "1.0.1"
45
45
  }
46
46
  }