ship 1.4.48:Arcrun@466a59c5616f

This commit is contained in:
ship
2026-08-18 15:34:09 +08:00
parent 1aa8230509
commit e2ac12baa7
5 changed files with 659 additions and 420 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ Served via jsDelivr; fetched automatically during install — you never need to
- `arcrun-wait/`**arcrun-wait**(首裝)
- `daemon/` — 桌面 AppMacWindows)安裝檔
Built from `Arcrun@cacaa33f7d4e` by `installer/scripts/ship.mjs`arcrun-rag reporelease 1.4.46built 2026-08-15)。
Built from `Arcrun@466a59c5616f` by `installer/scripts/ship.mjs`arcrun-rag reporelease 1.4.48built 2026-08-18)。
⚠️ 這份檔案由出貨管線每次自動重寫(`installer/scripts/render-bundles-readme.mjs`)——
不要手動改這裡列的零件清單——它是算出來的:公庫=Arcrun 這一版編了什麼,
+40 -2
View File
@@ -3324,7 +3324,7 @@ var init_kbdb_proxy = __esm({
const { base, headers } = kbdbBase(c.env);
const params = new URLSearchParams();
params.set("owner_id", owner);
for (const k of ["entry_type", "parent_id", "page_name", "source", "library", "limit", "offset"]) {
for (const k of ["entry_type", "parent_id", "page_name", "source", "library", "exclude_kind", "limit", "offset"]) {
const v = c.req.query(k);
if (v) params.set(k, v);
}
@@ -3374,6 +3374,42 @@ var init_kbdb_proxy = __esm({
return c.json({ success: false, error: `KBDB \u4E0D\u53EF\u9054\uFF08${base}\uFF09\uFF1A${e instanceof Error ? e.message : String(e)}` }, 502);
}
});
kbdbProxyRouter.put("/kbdb/map/:library/narrative", async (c) => {
if (!tenant(c)) return c.json(NEED_KEY, 401);
const body = await c.req.json().catch(() => null);
const narrative = typeof body?.narrative === "string" ? body.narrative : "";
if (!narrative.trim()) return c.json({ error: "narrative \u5FC5\u586B\uFF08\u4E0D\u5F97\u7A7A\u767D\uFF09" }, 400);
const owner = (typeof body?.owner_id === "string" ? body.owner_id : c.req.query("owner_id")) || void 0;
const { base, headers } = kbdbBase(c.env);
try {
const res = await fetch(`${base}/map/${encodeURIComponent(c.req.param("library"))}/narrative`, {
method: "PUT",
headers,
body: JSON.stringify({ narrative, ...owner ? { owner_id: owner } : {} })
});
return new Response(res.body, { status: res.status, headers: { "Content-Type": "application/json" } });
} catch (e) {
return c.json({ success: false, error: `KBDB \u4E0D\u53EF\u9054\uFF08${base}\uFF09\uFF1A${e instanceof Error ? e.message : String(e)}` }, 502);
}
});
kbdbProxyRouter.post("/kbdb/map/recompute", async (c) => {
if (!tenant(c)) return c.json(NEED_KEY, 401);
const body = await c.req.json().catch(() => ({}));
const library = (typeof body.library === "string" ? body.library : c.req.query("library")) || "";
if (!library.trim()) return c.json({ error: "library \u5FC5\u586B" }, 400);
const owner = (typeof body.owner_id === "string" ? body.owner_id : c.req.query("owner_id")) || void 0;
const { base, headers } = kbdbBase(c.env);
try {
const res = await fetch(`${base}/map/recompute`, {
method: "POST",
headers,
body: JSON.stringify({ ...body, library, ...owner ? { owner_id: owner } : {} })
});
return new Response(res.body, { status: res.status, headers: { "Content-Type": "application/json" } });
} catch (e) {
return c.json({ success: false, error: `KBDB \u4E0D\u53EF\u9054\uFF08${base}\uFF09\uFF1A${e instanceof Error ? e.message : String(e)}` }, 502);
}
});
kbdbProxyRouter.patch("/kbdb/entries/:id", async (c) => {
if (!tenant(c)) return c.json(NEED_KEY, 401);
const body = await c.req.json().catch(() => ({}));
@@ -15323,10 +15359,12 @@ portalDataRouter.get(
}
const inner = unwrapWorkflowData(result.data, "answer");
const rawSources = Array.isArray(inner.sources) ? inner.sources : [];
const retrieval = inner.retrieval;
return c.json({
answer: typeof inner.answer === "string" ? inner.answer : "",
sources: dedupeSourcesByPage(rawSources),
graph_facts: inner.graph_facts ?? null
graph_facts: inner.graph_facts ?? null,
retrieval: retrieval && typeof retrieval === "object" ? retrieval : null
});
})
);
+582 -369
View File
File diff suppressed because it is too large Load Diff
+34 -46
View File
@@ -1,7 +1,7 @@
{
"schema": 2,
"built": "2026-08-15",
"source": "Arcrun@cacaa33f7d4e",
"built": "2026-08-18",
"source": "Arcrun@466a59c5616f",
"core": [
{
"name": "arcrun-array-ops",
@@ -198,7 +198,7 @@
"name": "arcrun-cypher-executor",
"main_module": "worker.mjs",
"main_file": "arcrun-cypher-executor/worker.mjs",
"js_bytes": 590499,
"js_bytes": 592768,
"modules": [],
"compat_date": "2025-02-19",
"compat_flags": [
@@ -239,10 +239,10 @@
"stripped": {
"services": 13
},
"source_commit": "9fa88065abdc5a795d3847711f04101480621af0",
"source_content_sha256": "94a21ad012ee0c48d78e9a74752048917ddb4616f1ea089976834acd887a9d14",
"sha256": "94a21ad012ee0c48d78e9a74752048917ddb4616f1ea089976834acd887a9d14",
"bytes": 590499
"source_commit": "5d5dc9e3ceadaf40448ff286009e01299623ced1",
"source_content_sha256": "426a77c4566c177ed0f26e2178d7c7f8b989ccd16fdfb1fc446405b08d4bf4ba",
"sha256": "426a77c4566c177ed0f26e2178d7c7f8b989ccd16fdfb1fc446405b08d4bf4ba",
"bytes": 592768
},
{
"name": "arcrun-date-ops",
@@ -396,7 +396,7 @@
"name": "arcrun-kbdb",
"main_module": "worker.mjs",
"main_file": "arcrun-kbdb/worker.mjs",
"js_bytes": 160306,
"js_bytes": 170840,
"modules": [],
"compat_date": "2025-02-19",
"compat_flags": [
@@ -416,10 +416,10 @@
"ENVIRONMENT": "production"
}
},
"source_commit": "ceb7638d746f0e8847552aef721f6f53ef87ff0b",
"source_content_sha256": "47b09d60f8d122f7ec234d146a99bc68b2661c56ad6a98eca146d99ec5de03ea",
"sha256": "47b09d60f8d122f7ec234d146a99bc68b2661c56ad6a98eca146d99ec5de03ea",
"bytes": 160306
"source_commit": "466a59c5616fcd61206bc056a7a10052e2e6f3fe",
"source_content_sha256": "30d1ac22d67228cd63e04ebaa94d0d9f40597307075ac5504563590de9876776",
"sha256": "30d1ac22d67228cd63e04ebaa94d0d9f40597307075ac5504563590de9876776",
"bytes": 170840
},
{
"name": "arcrun-mcp",
@@ -507,7 +507,7 @@
"name": "arcrun-rag-ui",
"main_module": "index.js",
"main_file": "tier2/ui/index.js",
"js_bytes": 524513,
"js_bytes": 531477,
"modules": [],
"compat_date": "2026-07-01",
"compat_flags": [],
@@ -518,10 +518,10 @@
"ai": false,
"vars": {}
},
"source_commit": "614fe448124dbd25d8228e37723473f1704f3a7a",
"source_content_sha256": "5825f427e4211dd4b0eee969c94c8bfa856f65b8a48fc718e137f3b5d074e1ff",
"sha256": "5825f427e4211dd4b0eee969c94c8bfa856f65b8a48fc718e137f3b5d074e1ff",
"bytes": 524513
"source_commit": "b48f02b242a094cd542e5d9349326b9127a006eb",
"source_content_sha256": "374dec4544348df364dc4f09c40944529f8b18cd4c42687fc318642f638b0860",
"sha256": "374dec4544348df364dc4f09c40944529f8b18cd4c42687fc318642f638b0860",
"bytes": 531477
},
{
"name": "arcrun-set",
@@ -716,12 +716,12 @@
"size": 9125072
}
},
"release": "1.4.46",
"release": "1.4.48",
"built_for": "oauth-installer-lazy-load",
"notes": [
"rag_takedown_direct 用了 __CARDS_PREFIX__,但安裝器的代換表沒有它 ⇒ 這個佔位符會原封不動被推進使用者的工作流。"
],
"fingerprint": "ba0cc9bbd58980b4a4505c365382455b307b826fad0afbc1b738f4139ee96d2c",
"fingerprint": "b5f21ff6b7a7f236be14381646075dbe491ba52e09c584cc73d6efeb5ddda642",
"library": [
{
"name": "arcrun-array-ops",
@@ -906,7 +906,7 @@
"name": "arcrun-cypher-executor",
"main_module": "worker.mjs",
"main_file": "arcrun-cypher-executor/worker.mjs",
"js_bytes": 590499,
"js_bytes": 592768,
"modules": [],
"compat_date": "2025-02-19",
"compat_flags": [
@@ -947,8 +947,8 @@
"stripped": {
"services": 13
},
"source_commit": "9fa88065abdc5a795d3847711f04101480621af0",
"source_content_sha256": "94a21ad012ee0c48d78e9a74752048917ddb4616f1ea089976834acd887a9d14",
"source_commit": "5d5dc9e3ceadaf40448ff286009e01299623ced1",
"source_content_sha256": "426a77c4566c177ed0f26e2178d7c7f8b989ccd16fdfb1fc446405b08d4bf4ba",
"first_install": true
},
{
@@ -1093,7 +1093,7 @@
"name": "arcrun-kbdb",
"main_module": "worker.mjs",
"main_file": "arcrun-kbdb/worker.mjs",
"js_bytes": 160306,
"js_bytes": 170840,
"modules": [],
"compat_date": "2025-02-19",
"compat_flags": [
@@ -1113,8 +1113,8 @@
"ENVIRONMENT": "production"
}
},
"source_commit": "ceb7638d746f0e8847552aef721f6f53ef87ff0b",
"source_content_sha256": "47b09d60f8d122f7ec234d146a99bc68b2661c56ad6a98eca146d99ec5de03ea",
"source_commit": "466a59c5616fcd61206bc056a7a10052e2e6f3fe",
"source_content_sha256": "30d1ac22d67228cd63e04ebaa94d0d9f40597307075ac5504563590de9876776",
"first_install": true
},
{
@@ -1198,7 +1198,7 @@
"name": "arcrun-rag-ui",
"main_module": "index.js",
"main_file": "tier2/ui/index.js",
"js_bytes": 524513,
"js_bytes": 531477,
"modules": [],
"compat_date": "2026-07-01",
"compat_flags": [],
@@ -1209,8 +1209,8 @@
"ai": false,
"vars": {}
},
"source_commit": "614fe448124dbd25d8228e37723473f1704f3a7a",
"source_content_sha256": "5825f427e4211dd4b0eee969c94c8bfa856f65b8a48fc718e137f3b5d074e1ff",
"source_commit": "b48f02b242a094cd542e5d9349326b9127a006eb",
"source_content_sha256": "374dec4544348df364dc4f09c40944529f8b18cd4c42687fc318642f638b0860",
"first_install": true
},
{
@@ -1411,27 +1411,15 @@
},
{
"worker": "arcrun-http-request",
"why": "rag_chatkw_search 用 __HTTP_REQ_URL__"
"why": "rag_chatselect_libraries 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-code",
"why": "rag_chatpick_libs 用 __CODE_URL__"
},
{
"worker": "arcrun-http-request",
"why": "rag_chatsem_search 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-http-request",
"why": "rag_chatfetch_triplets 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-http-request",
"why": "rag_chatfetch_blocks_a 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-http-request",
"why": "rag_chatfetch_blocks_b 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-http-request",
"why": "rag_chatfetch_blocks_c 用 __HTTP_REQ_URL__"
"why": "rag_chatfetch_pages 用 __HTTP_REQ_URL__"
},
{
"worker": "arcrun-code",
+2 -2
View File
File diff suppressed because one or more lines are too long