hocai-connect 0.10.0 → 0.10.1
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 +22 -1
- 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.1";
|
|
39738
39738
|
function claudeArgs(job, o, port) {
|
|
39739
39739
|
const mcp = {
|
|
39740
39740
|
mcpServers: {
|
|
@@ -40400,8 +40400,29 @@ function goDichVu() {
|
|
|
40400
40400
|
for (const c of p.uninstall) chay(c, true);
|
|
40401
40401
|
if (p.file) (0, import_node_fs3.rmSync)(p.file, { force: true });
|
|
40402
40402
|
}
|
|
40403
|
+
var LENH = ["mcp", "run", "update", "status", "stop", "logs", "quen", "help", "--help", "-h"];
|
|
40404
|
+
var TRO_GIUP = `hocai-connect \u2014 n\u1ED1i Claude tr\xEAn m\xE1y b\u1EA1n v\xE0o hocAI
|
|
40405
|
+
|
|
40406
|
+
npx hocai-connect c\xE0i v\xE0 b\u1EADt. M\xE1y t\u1EF1 n\u1ED1i l\u1EA1i m\u1ED7i l\u1EA7n b\u1EADt m\xE1y.
|
|
40407
|
+
npx hocai-connect status \u0111ang ch\u1EA1y kh\xF4ng, d\u01B0\u1EDBi t\xE0i kho\u1EA3n n\xE0o, c\xF3 b\u1EA3n m\u1EDBi kh\xF4ng
|
|
40408
|
+
npx hocai-connect update c\u1EADp nh\u1EADt l\xEAn b\u1EA3n m\u1EDBi nh\u1EA5t
|
|
40409
|
+
npx hocai-connect stop t\u1EAFt v\xE0 g\u1EE1 d\u1ECBch v\u1EE5 n\u1EC1n (ch\xECa kho\xE1 v\u1EABn gi\u1EEF)
|
|
40410
|
+
npx hocai-connect logs 40 d\xF2ng nh\u1EADt k\xFD cu\u1ED1i
|
|
40411
|
+
npx hocai-connect quen qu\xEAn ch\xECa kho\xE1 v\xE0 g\u1EE1 h\u1EB3n kh\u1ECFi m\xE1y n\xE0y
|
|
40412
|
+
|
|
40413
|
+
B\u1EA3n c\u0169 ch\u01B0a c\xF3 l\u1EC7nh update th\xEC ch\u1EA1y: npx hocai-connect@latest`;
|
|
40403
40414
|
async function main() {
|
|
40404
40415
|
const cmd = process.argv[2];
|
|
40416
|
+
if (cmd === "help" || cmd === "--help" || cmd === "-h") {
|
|
40417
|
+
say(TRO_GIUP);
|
|
40418
|
+
return;
|
|
40419
|
+
}
|
|
40420
|
+
if (cmd && !LENH.includes(cmd)) {
|
|
40421
|
+
say(`Kh\xF4ng c\xF3 l\u1EC7nh "${cmd}".`);
|
|
40422
|
+
say("");
|
|
40423
|
+
say(TRO_GIUP);
|
|
40424
|
+
process.exit(1);
|
|
40425
|
+
}
|
|
40405
40426
|
if (cmd === "mcp") {
|
|
40406
40427
|
await buildServer(process.env.HOCAI_TOKEN ?? "").connect(new StdioServerTransport());
|
|
40407
40428
|
return;
|