complior 0.0.1 → 0.9.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/bin/run.js CHANGED
@@ -1,21 +1,37 @@
1
1
  #!/usr/bin/env node
2
- // Launcher for Complior TUI binary installed via npm
2
+ // Launcher for Complior CLI binary installed via npm
3
3
  import { execFileSync } from "node:child_process";
4
4
  import { join, dirname } from "node:path";
5
5
  import { fileURLToPath } from "node:url";
6
6
  import { existsSync } from "node:fs";
7
+ import { createRequire } from "node:module";
7
8
 
8
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
9
10
  const binaryName = process.platform === "win32" ? "complior.exe" : "complior";
10
11
  const binaryPath = join(__dirname, binaryName);
11
12
 
12
13
  if (!existsSync(binaryPath)) {
13
- console.error("Complior binary not found. Run: npm rebuild ai-comply");
14
+ console.error("Complior binary not found. Run: npm rebuild complior");
14
15
  process.exit(1);
15
16
  }
16
17
 
18
+ // Resolve @complior/engine location so the Rust binary can find & start it
19
+ const require = createRequire(import.meta.url);
20
+ let engineDir;
17
21
  try {
18
- execFileSync(binaryPath, process.argv.slice(2), { stdio: "inherit" });
22
+ const enginePkg = require.resolve("@complior/engine/package.json");
23
+ engineDir = dirname(enginePkg);
24
+ } catch {
25
+ // Engine not found — binary will show its own error
26
+ }
27
+
28
+ const env = { ...process.env };
29
+ if (engineDir) {
30
+ env.COMPLIOR_ENGINE_DIR = engineDir;
31
+ }
32
+
33
+ try {
34
+ execFileSync(binaryPath, process.argv.slice(2), { stdio: "inherit", env });
19
35
  } catch (err) {
20
36
  process.exit(err.status ?? 1);
21
37
  }
package/package.json CHANGED
@@ -1,25 +1,43 @@
1
1
  {
2
2
  "name": "complior",
3
- "version": "0.0.1",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
- "description": "AI Act Compliance Scanner & Fixer — EU AI Act compliance in your terminal",
6
- "license": "Apache-2.0",
5
+ "description": "AI Act Compliance Scanner & Fixer — EU AI Act compliance for your AI systems. CLI, TUI dashboard, and background daemon.",
6
+ "license": "AGPL-3.0-only",
7
+ "author": {
8
+ "name": "Complior",
9
+ "url": "https://complior.ai"
10
+ },
7
11
  "homepage": "https://complior.ai",
8
12
  "repository": {
9
13
  "type": "git",
10
- "url": "https://github.com/a3ka/complior"
14
+ "url": "https://github.com/complior/complior"
15
+ },
16
+ "bugs": {
17
+ "url": "https://github.com/complior/complior/issues"
18
+ },
19
+ "funding": {
20
+ "type": "individual",
21
+ "url": "https://complior.ai"
11
22
  },
12
23
  "keywords": [
13
24
  "ai",
14
25
  "compliance",
15
26
  "eu-ai-act",
27
+ "ai-act",
16
28
  "scanner",
17
29
  "fixer",
18
30
  "tui",
19
- "terminal"
31
+ "terminal",
32
+ "cli",
33
+ "gdpr",
34
+ "audit",
35
+ "governance",
36
+ "risk-assessment",
37
+ "ai-safety",
38
+ "regulation"
20
39
  ],
21
40
  "bin": {
22
- "ai-comply": "./bin/run.js",
23
41
  "complior": "./bin/run.js"
24
42
  },
25
43
  "scripts": {
@@ -29,7 +47,10 @@
29
47
  "bin/",
30
48
  "scripts/"
31
49
  ],
50
+ "dependencies": {
51
+ "@complior/engine": "0.9.1"
52
+ },
32
53
  "engines": {
33
- "node": ">=18"
54
+ "node": ">=22"
34
55
  }
35
56
  }
@@ -8,7 +8,7 @@ import { execSync } from "node:child_process";
8
8
 
9
9
  const __dirname = dirname(fileURLToPath(import.meta.url));
10
10
  const BIN_DIR = join(__dirname, "..", "bin");
11
- const REPO = "a3ka/complior";
11
+ const REPO = "complior/complior";
12
12
 
13
13
  function getPlatformArtifact() {
14
14
  const platform = process.platform;