hocai-connect 0.10.1 → 0.10.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.
- package/dist/cli.js +14 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -39734,7 +39734,7 @@ var TOOLS = {
|
|
|
39734
39734
|
],
|
|
39735
39735
|
WORK: ["Read", "Write", "Edit", "Glob", "Grep"]
|
|
39736
39736
|
};
|
|
39737
|
-
var VERSION = "0.10.
|
|
39737
|
+
var VERSION = "0.10.2";
|
|
39738
39738
|
function claudeArgs(job, o, port) {
|
|
39739
39739
|
const mcp = {
|
|
39740
39740
|
mcpServers: {
|
|
@@ -40370,6 +40370,9 @@ function doTroLy() {
|
|
|
40370
40370
|
return r.chayDuocBai;
|
|
40371
40371
|
}
|
|
40372
40372
|
var plan = () => daemonPlan((0, import_node_os3.platform)(), { node: process.execPath, script: APP_CLI, home: (0, import_node_os3.homedir)() });
|
|
40373
|
+
function nghi(ms) {
|
|
40374
|
+
Atomics.wait(new Int32Array(new SharedArrayBuffer(4)), 0, 0, ms);
|
|
40375
|
+
}
|
|
40373
40376
|
function chay(cmd, im = false) {
|
|
40374
40377
|
try {
|
|
40375
40378
|
(0, import_node_child_process3.execFileSync)(cmd[0], cmd.slice(1), { stdio: "ignore", shell: (0, import_node_os3.platform)() === "win32" });
|
|
@@ -40392,7 +40395,16 @@ function caiDichVu() {
|
|
|
40392
40395
|
(0, import_node_fs3.mkdirSync)((0, import_node_path5.dirname)(p.file), { recursive: true });
|
|
40393
40396
|
(0, import_node_fs3.writeFileSync)(p.file, p.content);
|
|
40394
40397
|
}
|
|
40395
|
-
p.install.forEach((c, i) =>
|
|
40398
|
+
p.install.forEach((c, i) => {
|
|
40399
|
+
if (i === 0) {
|
|
40400
|
+
chay(c, true);
|
|
40401
|
+
return;
|
|
40402
|
+
}
|
|
40403
|
+
for (let lan = 0; lan < 5; lan++) {
|
|
40404
|
+
if (chay(c, true)) return;
|
|
40405
|
+
nghi(700);
|
|
40406
|
+
}
|
|
40407
|
+
});
|
|
40396
40408
|
return true;
|
|
40397
40409
|
}
|
|
40398
40410
|
function goDichVu() {
|