igris-soul 1.1.1 → 1.1.2

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.cjs +23 -0
  2. package/index.js +0 -0
  3. package/package.json +9 -7
package/cli.cjs ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { spawn } = require("node:child_process");
4
+ const { fileURLToPath } = require("node:url");
5
+ const path = require("node:path");
6
+
7
+ const packageDir = path.dirname(
8
+ fileURLToPath(require.resolve("./package.json")),
9
+ );
10
+
11
+ const indexPath = path.join(packageDir, "index.js");
12
+
13
+ const child = spawn(process.execPath, [indexPath, ...process.argv.slice(2)], {
14
+ stdio: "inherit",
15
+ });
16
+
17
+ child.on("exit", (code, signal) => {
18
+ if (signal) {
19
+ process.kill(process.pid, signal);
20
+ } else {
21
+ process.exit(code ?? 0);
22
+ }
23
+ });
package/index.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "igris-soul",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A terminal AI assistant powered by Gemini and Tavily.",
5
5
  "license": "ISC",
6
6
  "author": "Barshan Majumdar",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "bin": {
10
- "Arise": "index.js",
11
- "arise": "index.js",
12
- "igris-soul": "index.js",
13
- "igris": "index.js"
10
+ "Arise": "cli.cjs",
11
+ "arise": "cli.cjs",
12
+ "igris-soul": "cli.cjs",
13
+ "igris": "cli.cjs"
14
14
  },
15
15
  "files": [
16
- "index.js",
17
- ".env.example"
16
+ "index.js",
17
+ "cli.cjs",
18
+ ".env.example",
19
+ "README.md"
18
20
  ],
19
21
  "engines": {
20
22
  "node": ">=20"