agnix 0.7.1 → 0.8.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
@@ -58,25 +58,41 @@ console.log(agnix.version());
58
58
  | File | Tool |
59
59
  |------|------|
60
60
  | `SKILL.md` | Claude Code |
61
- | `CLAUDE.md`, `AGENTS.md` | Claude Code, Codex |
62
- | `.claude/settings.json` | Claude Code |
61
+ | `CLAUDE.md`, `CLAUDE.local.md`, `AGENTS.md`, `AGENTS.local.md`, `AGENTS.override.md` | Claude Code, Codex |
62
+ | `.claude/settings.json`, `.claude/settings.local.json` | Claude Code |
63
63
  | `plugin.json` | Claude Code |
64
- | `*.mcp.json` | All |
65
- | `.github/copilot-instructions.md` | GitHub Copilot |
66
- | `.cursor/rules/*.mdc` | Cursor |
64
+ | `*.mcp.json`, `mcp.json`, `mcp-*.json` | All |
65
+ | `.github/copilot-instructions.md`, `.github/instructions/*.instructions.md` | GitHub Copilot |
66
+ | `.cursor/rules/*.mdc`, `.cursorrules` | Cursor |
67
67
 
68
68
  ## Options
69
69
 
70
70
  ```
71
- -t, --target <tool> Target tool (ClaudeCode, Cursor, Copilot, CodexCli)
72
- -f, --format <format> Output format (text, json, sarif)
73
- --fix Auto-fix issues
74
- -q, --quiet Only show errors
75
- -v, --verbose Show detailed output
76
- --version Show version
77
- -h, --help Show help
71
+ agnix [OPTIONS] [PATH] [COMMAND]
72
+
73
+ Commands:
74
+ validate Validate agent configs
75
+ init Initialize config file
76
+ eval Evaluate rule efficacy against labeled test cases
77
+ telemetry Manage telemetry settings (opt-in usage analytics)
78
+ schema Output JSON Schema for configuration files
79
+
80
+ Common options:
81
+ -s, --strict
82
+ -t, --target <generic|claude-code|cursor|codex>
83
+ -c, --config <CONFIG>
84
+ --fix
85
+ --dry-run
86
+ --fix-safe
87
+ --format <text|json|sarif>
88
+ -w, --watch
89
+ -v, --verbose
90
+ -V, --version
91
+ -h, --help
78
92
  ```
79
93
 
94
+ Run `agnix --help` for the full command reference.
95
+
80
96
  ## Links
81
97
 
82
98
  - [GitHub Repository](https://github.com/avifenesh/agnix)
package/bin/agnix CHANGED
File without changes
package/install.js CHANGED
@@ -143,6 +143,13 @@ async function main() {
143
143
  console.log(`Downloading agnix v${VERSION} for ${os.platform()}-${os.arch()}...`);
144
144
 
145
145
  try {
146
+ // Save wrapper script if it exists (npm places it during install)
147
+ const wrapperPath = path.join(binDir, 'agnix');
148
+ const wrapperBackup = path.join(binDir, 'agnix.backup');
149
+ if (fs.existsSync(wrapperPath) && wrapperPath !== binaryPath) {
150
+ fs.copyFileSync(wrapperPath, wrapperBackup);
151
+ }
152
+
146
153
  await downloadFile(downloadUrl, archivePath);
147
154
  console.log('Extracting...');
148
155
  extractArchive(archivePath, binDir);
@@ -155,6 +162,11 @@ async function main() {
155
162
  fs.renameSync(extractedPath, binaryPath);
156
163
  }
157
164
 
165
+ // Restore wrapper script if it was backed up
166
+ if (fs.existsSync(wrapperBackup)) {
167
+ fs.renameSync(wrapperBackup, wrapperPath);
168
+ }
169
+
158
170
  // Make binary executable on Unix
159
171
  if (os.platform() !== 'win32') {
160
172
  fs.chmodSync(binaryPath, 0o755);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agnix",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "description": "Linter for AI agent configurations. Validates SKILL.md, CLAUDE.md, hooks, MCP, and more.",
5
5
  "keywords": [
6
6
  "agent",