suzumearch 0.2.2 → 0.2.3

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 (3) hide show
  1. package/cli.mjs +49 -49
  2. package/package.json +4 -3
  3. package/suzume.cjs +21 -0
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "suzumearch",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "description": "Independent SuzumeArch CLI mod of the Claude Code Leak by Nefertary I. Forster.",
5
5
  "author": "Nefertary I. Forster",
6
6
  "license": "UNLICENSED",
7
7
  "type": "module",
8
8
  "main": "./cli.mjs",
9
9
  "bin": {
10
- "suzume": "./cli.mjs",
11
- "szm": "./cli.mjs"
10
+ "suzume": "./suzume.cjs",
11
+ "szm": "./suzume.cjs"
12
12
  },
13
13
  "engines": {
14
14
  "node": ">=20.0.0"
@@ -20,6 +20,7 @@
20
20
  ],
21
21
  "files": [
22
22
  "cli.mjs",
23
+ "suzume.cjs",
23
24
  "LICENSE",
24
25
  "README.md"
25
26
  ],
package/suzume.cjs ADDED
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var verStr = process.versions.node || "0";
4
+ var major = parseInt(verStr.split(".")[0], 10);
5
+ if (isNaN(major) || major < 20) {
6
+ process.stderr.write(
7
+ "SuzumeArch requires Node.js >= 20. You are running Node " + verStr + ".\n" +
8
+ "Install a newer Node from https://nodejs.org/ or via nvm (https://github.com/nvm-sh/nvm),\n" +
9
+ "then re-run: npm i -g suzumearch@forsterdev\n"
10
+ );
11
+ process.exit(1);
12
+ }
13
+ var path = require("path");
14
+ var entry = path.join(__dirname, "cli.mjs");
15
+ // Dynamic import is supported since Node 9.6, so this line parses on any
16
+ // runtime new enough to reach it. Errors during bundle load are surfaced
17
+ // with full stack so users can report meaningful issues.
18
+ import(entry).catch(function (err) {
19
+ process.stderr.write(String(err && err.stack || err) + "\n");
20
+ process.exit(1);
21
+ });