Sign In

@heznpc/anvil

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@heznpc/anvil - npm Package Compare versions

Comparing version
0.1.0
to
0.1.1
+19
-3
dist/bin.js
#!/usr/bin/env node
import { readFile } from "node:fs/promises";
import { fileURLToPath } from "node:url";
import { dirname, join } from "node:path";
import { runServer } from "./server.js";

@@ -13,2 +16,8 @@ import { runInit } from "./init.js";

break;
case "--version":
case "-v":
case "version":
await printVersion();
process.exit(0);
break;
case undefined:

@@ -27,8 +36,15 @@ case "help":

}
async function printVersion() {
const here = dirname(fileURLToPath(import.meta.url));
const pkgPath = join(here, "..", "package.json");
const pkg = JSON.parse(await readFile(pkgPath, "utf-8"));
console.log(pkg.version);
}
function printUsage() {
console.log("anvil — atomic workflow recipes for Claude Code\n");
console.log("Usage:");
console.log(" anvil mcp Run the MCP server (referenced by .claude/settings.json)");
console.log(" anvil init Register anvil's MCP server in the current repo's .claude/settings.json");
console.log(" anvil help Show this help");
console.log(" anvil mcp Run the MCP server (referenced by .claude/settings.json)");
console.log(" anvil init Register anvil's MCP server in the current repo's .claude/settings.json");
console.log(" anvil --version Print the installed anvil version");
console.log(" anvil help Show this help");
console.log("");

@@ -35,0 +51,0 @@ console.log("After `anvil init`, ask Claude: > ship this as \"your commit message\"");

+2
-2
{
"name": "@heznpc/anvil",
"version": "0.1.0",
"version": "0.1.1",
"description": "Atomic workflow recipes for Claude Code. One MCP tool call runs the whole commit → push → PR → CI-wait → merge pipeline.",
"type": "module",
"bin": {
"anvil": "./dist/bin.js"
"anvil": "dist/bin.js"
},

@@ -9,0 +9,0 @@ "files": [