archgate 0.11.0 → 0.13.0

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/README.md CHANGED
@@ -38,6 +38,18 @@ When a rule is violated, `archgate check` reports the file, line, and which ADR
38
38
 
39
39
  ## Installation
40
40
 
41
+ **Standalone** (no Node.js required):
42
+
43
+ ```bash
44
+ # macOS / Linux
45
+ curl -fsSL https://raw.githubusercontent.com/archgate/cli/main/install.sh | sh
46
+
47
+ # Windows (PowerShell)
48
+ irm https://raw.githubusercontent.com/archgate/cli/main/install.ps1 | iex
49
+ ```
50
+
51
+ **Via npm** (or any Node.js package manager):
52
+
41
53
  ```bash
42
54
  # npm
43
55
  npm install -g archgate
@@ -64,8 +76,8 @@ npx archgate check # run via package manager
64
76
  ## Quick start
65
77
 
66
78
  ```bash
67
- # 1. Install (pick your package manager)
68
- npm install -g archgate # or: bun install -g archgate
79
+ # 1. Install
80
+ curl -fsSL https://raw.githubusercontent.com/archgate/cli/main/install.sh | sh # or: npm install -g archgate
69
81
 
70
82
  # 2. Initialize governance in your project
71
83
  cd my-project
package/package.json CHANGED
@@ -1,62 +1,61 @@
1
1
  {
2
2
  "name": "archgate",
3
- "version": "0.11.0",
3
+ "version": "0.13.0",
4
4
  "description": "Enforce Architecture Decision Records as executable rules — for both humans and AI agents",
5
- "readme": "README.md",
6
- "license": "Apache-2.0",
7
- "homepage": "https://cli.archgate.dev",
8
- "bin": {
9
- "archgate": "bin/archgate.cjs"
10
- },
11
- "exports": {
12
- "./rules": "./src/formats/rules.ts"
13
- },
14
- "files": [
15
- "src/formats/rules.ts",
16
- "bin/archgate.cjs"
17
- ],
18
- "author": {
19
- "name": "Archgate",
20
- "url": "https://archgate.dev"
21
- },
22
5
  "keywords": [
23
- "archgate",
24
6
  "adr",
7
+ "archgate",
25
8
  "architecture-decision-records",
9
+ "cli",
26
10
  "governance",
27
- "linter",
28
- "cli"
11
+ "linter"
29
12
  ],
13
+ "homepage": "https://cli.archgate.dev",
30
14
  "bugs": {
31
15
  "url": "https://github.com/archgate/cli/issues"
32
16
  },
17
+ "license": "Apache-2.0",
18
+ "author": {
19
+ "name": "Archgate",
20
+ "url": "https://archgate.dev"
21
+ },
33
22
  "repository": {
34
23
  "type": "git",
35
24
  "url": "git+https://github.com/archgate/cli.git"
36
25
  },
26
+ "bin": {
27
+ "archgate": "bin/archgate.cjs"
28
+ },
29
+ "files": [
30
+ "src/formats/rules.ts",
31
+ "bin/archgate.cjs"
32
+ ],
37
33
  "os": [
38
34
  "darwin",
39
35
  "linux",
40
36
  "win32"
41
37
  ],
38
+ "type": "module",
39
+ "exports": {
40
+ "./rules": "./src/formats/rules.ts"
41
+ },
42
42
  "scripts": {
43
- "cli": "bun run src/cli.ts",
44
- "check": "bun run src/cli.ts check",
45
- "lint": "oxlint .",
46
- "typecheck": "tsc --build",
47
- "format": "prettier --write .",
48
- "format:check": "prettier --check .",
49
- "test": "bun test --timeout 60000",
50
- "test:watch": "bun test --watch --timeout 60000",
51
43
  "build:check": "bun build src/cli.ts --compile --bytecode --outfile dist/.build-check && rm -f dist/.build-check dist/.build-check.exe",
52
- "validate": "bun run lint && bun run typecheck && bun run format:check && bun test && bun run check && bun run build:check",
53
- "commit": "cz",
54
44
  "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
55
- "docs:dev": "cd docs && bunx --bun astro dev",
45
+ "check": "bun run src/cli.ts check",
46
+ "cli": "bun run src/cli.ts",
47
+ "commit": "cz",
56
48
  "docs:build": "cd docs && bunx --bun astro build",
57
- "docs:preview": "cd docs && bunx --bun astro preview"
49
+ "docs:dev": "cd docs && bunx --bun astro dev",
50
+ "docs:preview": "cd docs && bunx --bun astro preview",
51
+ "format": "oxfmt --write .",
52
+ "format:check": "oxfmt --check .",
53
+ "lint": "oxlint --deny-warnings .",
54
+ "test": "bun test --timeout 60000",
55
+ "test:watch": "bun test --watch --timeout 60000",
56
+ "typecheck": "tsc --build",
57
+ "validate": "bun run lint && bun run typecheck && bun run format:check && bun test && bun run check && bun run build:check"
58
58
  },
59
- "type": "module",
60
59
  "devDependencies": {
61
60
  "@commander-js/extra-typings": "14.0.0",
62
61
  "@commitlint/cli": "19.8.1",
@@ -68,16 +67,17 @@
68
67
  "conventional-changelog": "7.1.1",
69
68
  "conventional-changelog-angular": "8.0.0",
70
69
  "inquirer": "12.9.4",
70
+ "oxfmt": "0.41.0",
71
71
  "oxlint": "1.14.0",
72
- "prettier": "3.6.2",
73
72
  "zod": "4.3.6"
74
73
  },
75
74
  "peerDependencies": {
76
75
  "typescript": "^5"
77
76
  },
78
77
  "optionalDependencies": {
79
- "archgate-darwin-arm64": ">=0.1.1",
80
- "archgate-linux-x64": ">=0.1.1",
81
- "archgate-win32-x64": ">=0.1.1"
82
- }
78
+ "archgate-darwin-arm64": "0.13.0",
79
+ "archgate-linux-x64": "0.13.0",
80
+ "archgate-win32-x64": "0.13.0"
81
+ },
82
+ "readme": "README.md"
83
83
  }
@@ -57,9 +57,7 @@ export interface RuleConfig {
57
57
 
58
58
  // --- Rule Set ---
59
59
 
60
- export type RuleSet = {
61
- rules: Record<string, RuleConfig>;
62
- };
60
+ export type RuleSet = { rules: Record<string, RuleConfig> };
63
61
 
64
62
  /**
65
63
  * Define rules in a .rules.ts companion file.