stealthos-cli 0.1.0-alpha.2 → 0.1.0-alpha.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.
package/bin.cjs ADDED
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ // CJS wrapper — loads the ESM entry point via dynamic import
3
+ // Required because npm rejects .mjs in bin entries on Windows
4
+ import("./bin.mjs").catch((err) => {
5
+ process.stderr.write("\n✖ stealthos failed: " + err.message + "\n");
6
+ process.exit(1);
7
+ });
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "stealthos-cli",
3
- "version": "0.1.0-alpha.2",
3
+ "version": "0.1.0-alpha.3",
4
4
  "description": "StealthOS CLI — install/manage the StealthOS knowledge base in ~/.stealthos/. Subcommands: install, status, version.",
5
5
  "type": "module",
6
6
  "bin": {
7
- "stealthos": "./stealthos"
7
+ "stealthos": "./bin.cjs"
8
8
  },
9
9
  "files": [
10
- "stealthos",
10
+ "bin.cjs",
11
11
  "bin.mjs",
12
12
  "src/",
13
13
  "README.md"
@@ -110,7 +110,7 @@ export async function installCommand(flags = {}) {
110
110
  installed_at: new Date().toISOString(),
111
111
  installed_from: source,
112
112
  source_version: sourceVersion,
113
- cli_version: "0.1.0-alpha.2",
113
+ cli_version: "0.1.0-alpha.3",
114
114
  };
115
115
  await writeFile(join(home, ".stealthos-version.json"), JSON.stringify(versionMarker, null, 2), "utf8");
116
116
 
package/stealthos DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import "./bin.mjs";