loopgen 0.2.0 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { spawn } from "node:child_process";
3
3
  import { existsSync } from "node:fs";
4
+ import { createRequire } from "node:module";
4
5
  import path from "node:path";
5
6
  import process from "node:process";
6
7
  import readline from "node:readline/promises";
@@ -25,11 +26,13 @@ const PROJECT_MANIFESTS = [
25
26
  function looksLikeProject(dir) {
26
27
  return PROJECT_MANIFESTS.some((file) => existsSync(path.join(dir, file)));
27
28
  }
29
+ const require = createRequire(import.meta.url);
30
+ const { version } = require("../package.json");
28
31
  const program = new Command();
29
32
  program
30
33
  .name("loopgen")
31
34
  .description("Generate bounded, verifiable AI agent configs for Codex, Claude, Cursor, and local models — with safety rails baked in.")
32
- .version("0.1.0");
35
+ .version(version);
33
36
  program
34
37
  .command("init")
35
38
  .argument("[project]", "project directory", ".")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loopgen",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Generate bounded, verifiable AI agent configs for Codex, Claude, Cursor, and local models — with safety rails baked in.",
5
5
  "type": "module",
6
6
  "engines": {