@lazyingart/agintiflow 0.20.9 → 0.20.10
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/package.json +1 -1
- package/src/cli.js +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lazyingart/agintiflow",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "AgInTiFlow is a web-first coding agent and CLI with DeepSeek routing, sandboxed tools, model providers, canvas artifacts, and optional wrappers.",
|
|
6
6
|
"license": "Apache-2.0",
|
package/src/cli.js
CHANGED
|
@@ -33,6 +33,11 @@ import { fileURLToPath } from "node:url";
|
|
|
33
33
|
const packageDir = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
|
34
34
|
const packageJson = JSON.parse(await fs.readFile(path.join(packageDir, "package.json"), "utf8"));
|
|
35
35
|
|
|
36
|
+
process.stdout.on("error", (error) => {
|
|
37
|
+
if (error?.code === "EPIPE") process.exit(0);
|
|
38
|
+
throw error;
|
|
39
|
+
});
|
|
40
|
+
|
|
36
41
|
function readOption(argv, index) {
|
|
37
42
|
const value = argv[index + 1];
|
|
38
43
|
if (!value || value.startsWith("--")) return "";
|
|
@@ -614,7 +619,7 @@ async function handleQueueCommand(argv) {
|
|
|
614
619
|
}
|
|
615
620
|
|
|
616
621
|
export async function main(argv = process.argv.slice(2)) {
|
|
617
|
-
if (argv[0] === "
|
|
622
|
+
if (argv[0] === "help" || argv.includes("--help") || argv.includes("-h")) {
|
|
618
623
|
printUsage();
|
|
619
624
|
return;
|
|
620
625
|
}
|