gadriel 1.2.0 → 1.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gadriel",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Gadriel - Code-security CLI for AI-assisted development",
5
5
  "keywords": [
6
6
  "security",
@@ -25,21 +25,19 @@
25
25
  },
26
26
  "files": [
27
27
  "bin/gadriel.cjs",
28
- "scripts/postinstall.js",
29
28
  "README.md"
30
29
  ],
31
30
  "scripts": {
32
- "postinstall": "node scripts/postinstall.js || true",
33
31
  "test": "node --test test/shim.test.cjs"
34
32
  },
35
33
  "engines": {
36
34
  "node": ">=18"
37
35
  },
38
36
  "optionalDependencies": {
39
- "@gadriel/cli-linux-x64": "1.2.0",
40
- "@gadriel/cli-linux-arm64": "1.2.0",
41
- "@gadriel/cli-darwin-x64": "1.2.0",
42
- "@gadriel/cli-darwin-arm64": "1.2.0",
43
- "@gadriel/cli-win32-x64": "1.2.0"
37
+ "@gadriel/cli-linux-x64": "1.2.1",
38
+ "@gadriel/cli-linux-arm64": "1.2.1",
39
+ "@gadriel/cli-darwin-x64": "1.2.1",
40
+ "@gadriel/cli-darwin-arm64": "1.2.1",
41
+ "@gadriel/cli-win32-x64": "1.2.1"
44
42
  }
45
43
  }
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env node
2
- // Lightweight install-time sanity check.
3
- //
4
- // We do NOT download anything here (the optionalDependencies pattern
5
- // is the whole point: npm fetches the right binary directly). This
6
- // script only verifies a platform package was resolved and prints a
7
- // helpful message if it wasn't, so users find out at install time
8
- // instead of at first invocation.
9
- //
10
- // `|| true` in package.json means a missing platform package never
11
- // fails the install — `bin/gadriel.js` will give a more actionable
12
- // error on the first run.
13
-
14
- import { createRequire } from "node:module";
15
- import { platform, arch } from "node:process";
16
-
17
- const require = createRequire(import.meta.url);
18
-
19
- const MAP = {
20
- "linux-x64": "@gadriel/cli-linux-x64",
21
- "linux-arm64": "@gadriel/cli-linux-arm64",
22
- "darwin-x64": "@gadriel/cli-darwin-x64",
23
- "darwin-arm64": "@gadriel/cli-darwin-arm64",
24
- "win32-x64": "@gadriel/cli-win32-x64",
25
- };
26
-
27
- const key = `${platform}-${arch}`;
28
- const target = MAP[key];
29
-
30
- if (!target) {
31
- console.warn(
32
- `gadriel: no prebuilt binary for ${key}. ` +
33
- `Open an issue at https://github.com/Gadriel-ai/preflight/issues`
34
- );
35
- process.exit(0); // don't fail npm install
36
- }
37
-
38
- try {
39
- require.resolve(`${target}/package.json`);
40
- // Resolved — install is good.
41
- } catch {
42
- console.warn(
43
- `gadriel: optional platform package "${target}" was skipped by npm.\n` +
44
- ` If 'gadriel' fails to run, reinstall with:\n` +
45
- ` npm install -g gadriel --include=optional`
46
- );
47
- }