@momo792/agentsmd 0.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/README.md ADDED
@@ -0,0 +1,9 @@
1
+ # agentsmd (npm distribution)
2
+
3
+ CI for your AI agent's instructions. See the
4
+ [full documentation](https://github.com/youwei792/agentsmd#readme).
5
+
6
+ ```bash
7
+ npm install -g agentsmd
8
+ agentsmd doctor
9
+ ```
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env node
2
+ // agentsmd npm shim: resolve the platform binary and forward execution.
3
+ const { spawnSync } = require("child_process");
4
+ const path = require("path");
5
+
6
+ const plat = { darwin: "darwin", linux: "linux", win32: "windows" }[process.platform];
7
+ const arch = { arm64: "arm64", x64: "amd64" }[process.arch];
8
+ if (!plat || !arch) {
9
+ console.error(`agentsmd: unsupported platform ${process.platform}/${process.arch}`);
10
+ process.exit(1);
11
+ }
12
+ const ext = process.platform === "win32" ? ".exe" : "";
13
+ const bin = path.join(__dirname, "..", "..", `agentsmd-${plat}-${arch}`, "bin", `agentsmd${ext}`);
14
+
15
+ let result;
16
+ try {
17
+ result = spawnSync(bin, process.argv.slice(2), { stdio: "inherit" });
18
+ } catch (e) {
19
+ console.error(`agentsmd: failed to run ${bin}: ${e.message}`);
20
+ console.error("reinstall with: npm install agentsmd --force, or use: go install github.com/youwei792/agentsmd@latest");
21
+ process.exit(1);
22
+ }
23
+ if (result.error) {
24
+ console.error(`agentsmd: platform binary missing (${result.error.message})`);
25
+ console.error("reinstall with: npm install agentsmd --force, or use: go install github.com/youwei792/agentsmd@latest");
26
+ process.exit(1);
27
+ }
28
+ process.exit(result.status ?? 0);
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@momo792/agentsmd",
3
+ "version": "0.2.1",
4
+ "description": "CI for your AI agent's instructions: validate AGENTS.md, bridge CLAUDE.md. Zero-dependency Go binary.",
5
+ "license": "MIT",
6
+ "repository": "https://github.com/youwei792/agentsmd",
7
+ "homepage": "https://github.com/youwei792/agentsmd#readme",
8
+ "bin": {
9
+ "agentsmd": "bin/agentsmd.js"
10
+ },
11
+ "files": [
12
+ "bin/"
13
+ ],
14
+ "optionalDependencies": {
15
+ "agentsmd-darwin-arm64": "0.2.1",
16
+ "agentsmd-darwin-amd64": "0.2.1",
17
+ "agentsmd-linux-arm64": "0.2.1",
18
+ "agentsmd-linux-amd64": "0.2.1",
19
+ "agentsmd-windows-arm64": "0.2.1",
20
+ "agentsmd-windows-amd64": "0.2.1"
21
+ },
22
+ "keywords": [
23
+ "agents-md",
24
+ "claude-code",
25
+ "cursor",
26
+ "codex",
27
+ "ai-agents",
28
+ "ci",
29
+ "lint"
30
+ ]
31
+ }