hocai-connect 0.11.0 → 0.12.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.
- package/dist/cli.js +18 -5
- 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.
|
|
39737
|
+
var VERSION = "0.12.0";
|
|
39738
39738
|
function claudeArgs(job, o, port) {
|
|
39739
39739
|
const mcp = {
|
|
39740
39740
|
mcpServers: {
|
|
@@ -39927,7 +39927,13 @@ function buildHttpServer(o) {
|
|
|
39927
39927
|
res.writeHead(204).end();
|
|
39928
39928
|
return;
|
|
39929
39929
|
}
|
|
39930
|
-
|
|
39930
|
+
const me = o.me();
|
|
39931
|
+
const hoi = new URL(req.url ?? "/", "http://x").searchParams.get("user");
|
|
39932
|
+
json3(res, 200, {
|
|
39933
|
+
ten: "hocai-connect",
|
|
39934
|
+
phienBan: VERSION,
|
|
39935
|
+
user: me ? { ten: me.ten, ...hoi ? { khop: hoi === me.id } : {} } : me
|
|
39936
|
+
});
|
|
39931
39937
|
return;
|
|
39932
39938
|
}
|
|
39933
39939
|
if (path === "/choose-folder") {
|
|
@@ -40249,9 +40255,16 @@ function defaultOrigins(env) {
|
|
|
40249
40255
|
"https://camerasrent.com",
|
|
40250
40256
|
"https://www.camerasrent.com",
|
|
40251
40257
|
// Giữ lại cho tới khi không còn helper nào trỏ vào đây nữa.
|
|
40252
|
-
"http://103.154.62.225:8090"
|
|
40253
|
-
|
|
40254
|
-
|
|
40258
|
+
"http://103.154.62.225:8090"
|
|
40259
|
+
// KHÔNG có localhost ở đây, và đây là chốt chứ không phải thiếu sót.
|
|
40260
|
+
//
|
|
40261
|
+
// 5173 là cổng MẶC ĐỊNH của Vite. Gói này chạy trên máy học viên, mà họ
|
|
40262
|
+
// đang học lập trình — bất kỳ dự án Vite nào họ mở cũng thành một gốc hợp
|
|
40263
|
+
// lệ, và trang đó chiếm được cầu nối trên máy họ.
|
|
40264
|
+
//
|
|
40265
|
+
// Người phát triển hocAI đặt `HOCAI_WEB_ORIGINS` là xong (xem script
|
|
40266
|
+
// `dev:mcp:http`). Học viên thì không có cách nào gỡ một gốc đã nướng sẵn
|
|
40267
|
+
// vào gói.
|
|
40255
40268
|
];
|
|
40256
40269
|
}
|
|
40257
40270
|
|