archgate 0.3.0 → 0.4.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 +2 -1
- package/package.json +6 -8
- package/src/formats/rules.ts +0 -16
package/README.md
CHANGED
|
@@ -183,7 +183,7 @@ Start the MCP server for AI agent integration.
|
|
|
183
183
|
archgate mcp
|
|
184
184
|
```
|
|
185
185
|
|
|
186
|
-
Exposes
|
|
186
|
+
Exposes five tools to MCP-compatible clients (Claude Code, Cursor, etc.):
|
|
187
187
|
|
|
188
188
|
| Tool | Description |
|
|
189
189
|
| ----------------------------- | ----------------------------------------------------------------- |
|
|
@@ -191,6 +191,7 @@ Exposes four tools to MCP-compatible clients (Claude Code, Cursor, etc.):
|
|
|
191
191
|
| `list_adrs` | List all ADRs with metadata |
|
|
192
192
|
| `review_context` | Get changed files grouped by domain with applicable ADR briefings |
|
|
193
193
|
| `claude_code_session_context` | Read the current Claude Code session transcript |
|
|
194
|
+
| `cursor_session_context` | Read Cursor agent session transcripts |
|
|
194
195
|
|
|
195
196
|
Also exposes `adr://{id}` resources for reading individual ADRs by ID.
|
|
196
197
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "archgate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Enforce Architecture Decision Records as executable rules — for both humans and AI agents",
|
|
5
5
|
"readme": "README.md",
|
|
6
6
|
"license": "FSL-1.1-ALv2",
|
|
@@ -50,23 +50,21 @@
|
|
|
50
50
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
|
|
51
51
|
},
|
|
52
52
|
"type": "module",
|
|
53
|
-
"dependencies": {
|
|
54
|
-
"@commander-js/extra-typings": "14.0.0",
|
|
55
|
-
"@modelcontextprotocol/sdk": "1.26.0",
|
|
56
|
-
"inquirer": "12.9.4",
|
|
57
|
-
"zod": "4.3.6"
|
|
58
|
-
},
|
|
59
53
|
"devDependencies": {
|
|
54
|
+
"@commander-js/extra-typings": "14.0.0",
|
|
60
55
|
"@commitlint/cli": "19.8.1",
|
|
61
56
|
"@commitlint/config-conventional": "19.8.1",
|
|
62
57
|
"@commitlint/cz-commitlint": "19.8.1",
|
|
58
|
+
"@modelcontextprotocol/sdk": "1.26.0",
|
|
63
59
|
"@simple-release/npm": "2.3.0",
|
|
64
60
|
"@types/bun": "1.3.9",
|
|
65
61
|
"commitizen": "4.3.1",
|
|
66
62
|
"conventional-changelog": "7.1.1",
|
|
67
63
|
"conventional-changelog-angular": "8.0.0",
|
|
64
|
+
"inquirer": "12.9.4",
|
|
68
65
|
"oxlint": "1.14.0",
|
|
69
|
-
"prettier": "3.6.2"
|
|
66
|
+
"prettier": "3.6.2",
|
|
67
|
+
"zod": "4.3.6"
|
|
70
68
|
},
|
|
71
69
|
"peerDependencies": {
|
|
72
70
|
"typescript": "^5"
|
package/src/formats/rules.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
|
|
3
1
|
// --- Severity ---
|
|
4
2
|
|
|
5
3
|
export type Severity = "error" | "warning" | "info";
|
|
@@ -63,20 +61,6 @@ export type RuleSet = {
|
|
|
63
61
|
rules: Record<string, RuleConfig>;
|
|
64
62
|
};
|
|
65
63
|
|
|
66
|
-
export const RuleSetSchema = z.object({
|
|
67
|
-
rules: z.record(
|
|
68
|
-
z.string(),
|
|
69
|
-
z.object({
|
|
70
|
-
description: z.string(),
|
|
71
|
-
severity: z.enum(["error", "warning", "info"]).optional(),
|
|
72
|
-
check: z.custom<(ctx: RuleContext) => Promise<void>>(
|
|
73
|
-
(val) => typeof val === "function",
|
|
74
|
-
"Expected a function"
|
|
75
|
-
),
|
|
76
|
-
})
|
|
77
|
-
),
|
|
78
|
-
});
|
|
79
|
-
|
|
80
64
|
/**
|
|
81
65
|
* Define rules in a .rules.ts companion file.
|
|
82
66
|
* Keys become rule IDs, preventing duplicates.
|