hocai-connect 0.7.0 → 0.9.0

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 (2) hide show
  1. package/dist/cli.js +5 -3
  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.7.0";
39737
+ var VERSION = "0.9.0";
39738
39738
  function claudeArgs(job, o, port) {
39739
39739
  const mcp = {
39740
39740
  mcpServers: {
@@ -40362,7 +40362,7 @@ function caiDichVu() {
40362
40362
  }
40363
40363
  (0, import_node_fs3.mkdirSync)(APP_DIR, { recursive: true });
40364
40364
  (0, import_node_fs3.mkdirSync)(LOG_DIR, { recursive: true });
40365
- (0, import_node_fs3.copyFileSync)(process.argv[1], APP_CLI);
40365
+ (0, import_node_fs3.copyFileSync)(__filename, APP_CLI);
40366
40366
  if (p.file && p.content) {
40367
40367
  (0, import_node_fs3.mkdirSync)((0, import_node_path5.dirname)(p.file), { recursive: true });
40368
40368
  (0, import_node_fs3.writeFileSync)(p.file, p.content);
@@ -40433,7 +40433,8 @@ async function main() {
40433
40433
  }
40434
40434
  const identity = createIdentityCache({
40435
40435
  fetchIdentity: () => fetchIdentity(creds.api, creds.token),
40436
- seed: me
40436
+ seed: me,
40437
+ ttlMs: 6e4
40437
40438
  });
40438
40439
  writeDesktop(creds);
40439
40440
  addClaudeCode(creds);
@@ -40478,6 +40479,7 @@ async function main() {
40478
40479
  process.exit(d.thoat);
40479
40480
  });
40480
40481
  });
40482
+ setInterval(() => void identity.refresh(), 6e4).unref();
40481
40483
  srv.listen(PORT, "127.0.0.1", () => {
40482
40484
  say("");
40483
40485
  say("\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hocai-connect",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "Nối Claude trên máy học viên vào hocAI, và chạy việc AI ngay tại đó",
5
5
  "bin": {
6
6
  "hocai-connect": "bin.js"