@qoder-ai/qodercli 0.2.2-beta.11 → 0.2.2-beta.12
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/qodercli.cjs +26 -0
- package/package.json +3 -2
package/bin/qodercli.cjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// Suppress Node.js "unsettled top-level await" warning that fires when
|
|
5
|
+
// process.exit() is called while the bundled ESM top-level await is pending.
|
|
6
|
+
const origEmit = process.emit;
|
|
7
|
+
process.emit = function (event, warning) {
|
|
8
|
+
if (
|
|
9
|
+
event === "warning" &&
|
|
10
|
+
warning &&
|
|
11
|
+
typeof warning.message === "string" &&
|
|
12
|
+
warning.message.includes("unsettled top-level await")
|
|
13
|
+
) {
|
|
14
|
+
return false;
|
|
15
|
+
}
|
|
16
|
+
return origEmit.apply(this, arguments);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
const { pathToFileURL } = require("node:url");
|
|
20
|
+
const { join } = require("node:path");
|
|
21
|
+
|
|
22
|
+
const bundlePath = join(__dirname, "..", "bundle", "qodercli.js");
|
|
23
|
+
import(pathToFileURL(bundlePath).href).catch((err) => {
|
|
24
|
+
console.error("Failed to start qodercli:", err);
|
|
25
|
+
process.exit(1);
|
|
26
|
+
});
|
package/package.json
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoder-ai/qodercli",
|
|
3
|
-
"version": "0.2.2-beta.
|
|
3
|
+
"version": "0.2.2-beta.12",
|
|
4
4
|
"description": "Qoder AI CLI - AI-powered coding assistant",
|
|
5
5
|
"author": "Qoder AI",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"bin": {
|
|
9
|
-
"qodercli": "
|
|
9
|
+
"qodercli": "bin/qodercli.cjs"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
|
+
"bin/",
|
|
12
13
|
"bundle/",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE"
|