ship 1.4.49:Arcrun@1246d92ce791
This commit is contained in:
@@ -12881,6 +12881,14 @@ var PORTAL_TEMPLATE_SEEDS = [
|
||||
// 新實例若無此 template 回 400「template not found: triplet」→ 三元組全滅。
|
||||
// slots 來源:kbdb_list_templates 核實(2026-07-19,library-map.test.ts PROD_TRIPLET_SLOTS)
|
||||
// + library(library-map.ts M1 預案:recompute 歸庫用,ensurePortalTemplates 若缺則 PATCH 補入)。
|
||||
// + machine(`inkstone/mira#6`,leo 2026-08-18 拍板「掛上資料夾至少先給一個 ID,
|
||||
// 例如 youlinhsieh@Leo-MBA」):這則知識的原稿**在哪一台機器上**。
|
||||
// 為什麼三元組也要有這一格(而不是只放在 block 的 metadata):`source_uri` 只到
|
||||
// 「相對於被監看資料夾的路徑」為止,兩台機器上的 `RFP/design.md` 完全同名 ⇒
|
||||
// rag_ingest_card 的 upsert(先照鍵刪光再寫)會把另一台的三元組無聲刪掉。
|
||||
// machine 是唯一分得開它們的那一維,而 KBDB 會**靜默丟掉** template 沒宣告的 slot
|
||||
// (record-crud.ts createRecord),所以少了這一列,daemon 送上來的值等於沒送。
|
||||
// 走的就是 library 當初那條路:加在這裡,ensurePortalTemplates 對既有實例 PATCH 補聯集。
|
||||
name: "triplet",
|
||||
description: "KBDB \u77E5\u8B58\u5716\u8B5C\u4E09\u5143\u7D44\uFF08kbdb-graph-plugin \u5BEB\u5165\uFF1Bportal \u8B80\u6B64 template \u5EFA\u9130\u63A5\u5716\uFF09",
|
||||
slots: [
|
||||
@@ -12899,7 +12907,8 @@ var PORTAL_TEMPLATE_SEEDS = [
|
||||
"content_hash",
|
||||
"source_anchor",
|
||||
"predicate_embed",
|
||||
"library"
|
||||
"library",
|
||||
"machine"
|
||||
],
|
||||
created_by: "system"
|
||||
}
|
||||
@@ -15061,11 +15070,13 @@ function dedupeSourcesByPage(sources) {
|
||||
if (!s || typeof s !== "object") continue;
|
||||
const item = s;
|
||||
const page = typeof item.page_name === "string" ? item.page_name : typeof item.page === "string" ? item.page : "";
|
||||
const existing = seen.get(page);
|
||||
const machine = typeof item.machine === "string" ? item.machine : "";
|
||||
const key = `${page}\0${machine}`;
|
||||
const existing = seen.get(key);
|
||||
if (existing) {
|
||||
existing.count += 1;
|
||||
} else {
|
||||
seen.set(page, { item, count: 1 });
|
||||
seen.set(key, { item, count: 1 });
|
||||
}
|
||||
}
|
||||
return [...seen.values()].map(
|
||||
|
||||
Reference in New Issue
Block a user