dsh-tidy-display 0.2.4-beta.4 → 0.2.4-beta.5
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/CHANGELOG.de.md +4 -0
- package/CHANGELOG.es.md +4 -0
- package/CHANGELOG.fr.md +4 -0
- package/CHANGELOG.it.md +4 -0
- package/CHANGELOG.md +4 -0
- package/CHANGELOG.ru.md +4 -0
- package/lib/client.js +40 -18
- package/lib/client.js.map +1 -1
- package/lib/types/client/official-slots.d.ts.map +1 -1
- package/lib/types/client/official-slots.js +14 -8
- package/lib/types/client/official-slots.js.map +1 -1
- package/package.json +1 -1
- package/src/client/OfficialContent.tsx +10 -4
- package/src/client/Reader.tsx +20 -2
- package/src/client/official-slots.tsx +25 -10
package/CHANGELOG.de.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Änderungsprotokoll
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Behebt den Komplettausfall auf 0.1.2/0.1.5**: Die Client-Kanarienprüfung in `officialChildren` erkannte nur den 0.1.7+-Vertrag `list/session` für `conversation.chat.turnTail`, während die Hosts 0.1.2–0.1.5 `chain/session` deklarieren — der Wurf tötete den gesamten Client-Entry, und das Web-Boot-Gateway verweigerte den kompletten Seitenaufbau. Jetzt generationenweiße Whitelist (tail akzeptiert list- und chain-spec) und Bindung an die Live-Spec des Hosts; die zweite Kanarie im Mirror-Inject warnt ebenfalls, statt zu werfen.
|
|
2
6
|
|
|
3
7
|
## Unveröffentlicht
|
|
4
8
|
|
package/CHANGELOG.es.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Registro de cambios
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Corrige el fallo total en 0.1.2/0.1.5**: el canario del cliente en `officialChildren` solo aceptaba el contrato `list/session` de la generación 0.1.7+ para `conversation.chat.turnTail`, mientras los hosts 0.1.2–0.1.5 declaran `chain/session` — el throw mataba todo el entry del cliente y la puerta de arranque web rechazaba la página completa. Ahora hay lista blanca por generación (tail acepta spec list y chain) y se vincula la spec en vivo del host; el segundo canario en el espejo también avisa en lugar de lanzar.
|
|
2
6
|
|
|
3
7
|
## Sin publicar
|
|
4
8
|
|
package/CHANGELOG.fr.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Journal des modifications
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Corrige le blocage complet sur 0.1.2/0.1.5** : le canari client dans `officialChildren` n’acceptait que le contrat `list/session` de la génération 0.1.7+ pour `conversation.chat.turnTail`, alors que les hôtes 0.1.2–0.1.5 déclarent `chain/session` — le throw tuait tout l’entrée client et la porte de démarrage web refusait la page entière. Désormais liste blanche par génération (tail accepte les specs list et chain) et liaison à la spec en vivo de l’hôte ; le deuxième canari du miroir avertit au lieu de lancer.
|
|
2
6
|
|
|
3
7
|
## Non publié
|
|
4
8
|
|
package/CHANGELOG.it.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Registro delle modifiche
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Corregge il blocco totale su 0.1.2/0.1.5**: il canarino client in `officialChildren` accettava solo il contratto `list/session` della generazione 0.1.7+ per `conversation.chat.turnTail`, mentre gli host 0.1.2–0.1.5 dichiarano `chain/session` — il throw uccideva l’intero entry client e la porta di avvio web rifiutava l’intera pagina. Ora whitelist per generazione (tail accetta spec list e chain) e binding alla spec in vivo dell’host; il secondo canarino nel mirror avvisa invece di lanciare.
|
|
2
6
|
|
|
3
7
|
## Da rilasciare
|
|
4
8
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **修复 0.1.2/0.1.5 整页砖化与阅读视图空白(跨代兼容三连)**:① client 金丝雀对 `conversation.chat.turnTail` 的契约校验只认 0.1.7+ 代的 `list/session`,而 0.1.2–0.1.5 宿主声明 `chain/session` → throw 杀死 client entry → web-boot 门禁整页拒绝启动;改为按代白名单并绑定宿主实时 spec,镜像注入处第二处金丝雀同样降级为告警。② `pendingInteraction` 的 `useSessionStatus` 是 0.1.7+ 改名,0.1.2–0.1.5 叫 `useSessionPendingInteraction`——Reader 双代探测、缺席 fail-open。③ tail 座位按实测代际分发渲染器(chain 槽必须 `renderSlotChain`);老投影附加的 `input-message` 节点阅读页不再镜像渲染(崩 React #130)。已知残留:0.1.2 阅读页用户消息下偶现一张 React #130 优雅降级卡(正文/轨道不受影响)。
|
|
2
6
|
|
|
3
7
|
## 0.2.3 — 2026-10-03
|
|
4
8
|
|
package/CHANGELOG.ru.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
# Журнал изменений
|
|
2
|
+
|
|
3
|
+
## 0.2.4-beta.5 — 2026-10-05
|
|
4
|
+
|
|
5
|
+
- **Исправляет полный отказ на 0.1.2/0.1.5**: клиентский канареечный контроль в `officialChildren` признавал только контракт `list/session` поколения 0.1.7+ для `conversation.chat.turnTail`, тогда как хосты 0.1.2–0.1.5 объявляют `chain/session` — throw убивал весь клиентский entry, и шлюз веб-загрузки отказывал всей странице. Теперь белый список по поколениям (tail принимает spec list и chain) и привязка к живой spec хоста; второй канарейка в зеркале также предупреждает вместо throw.
|
|
2
6
|
|
|
3
7
|
## Не выпущено
|
|
4
8
|
|
package/lib/client.js
CHANGED
|
@@ -43681,26 +43681,29 @@ ${trimmed}
|
|
|
43681
43681
|
"turn-process"
|
|
43682
43682
|
]);
|
|
43683
43683
|
const EXPECTED = {
|
|
43684
|
-
actions: {
|
|
43684
|
+
actions: [{
|
|
43685
43685
|
kind: "list",
|
|
43686
43686
|
scope: "session"
|
|
43687
|
-
},
|
|
43688
|
-
tools: {
|
|
43687
|
+
}],
|
|
43688
|
+
tools: [{
|
|
43689
43689
|
kind: "keyed",
|
|
43690
43690
|
scope: "session"
|
|
43691
|
-
},
|
|
43692
|
-
tail: {
|
|
43691
|
+
}],
|
|
43692
|
+
tail: [{
|
|
43693
43693
|
kind: "list",
|
|
43694
43694
|
scope: "session"
|
|
43695
|
-
},
|
|
43696
|
-
|
|
43695
|
+
}, {
|
|
43696
|
+
kind: "chain",
|
|
43697
|
+
scope: "session"
|
|
43698
|
+
}],
|
|
43699
|
+
nodes: [{
|
|
43697
43700
|
kind: "keyed",
|
|
43698
43701
|
scope: "session"
|
|
43699
|
-
},
|
|
43700
|
-
images: {
|
|
43702
|
+
}],
|
|
43703
|
+
images: [{
|
|
43701
43704
|
kind: "single",
|
|
43702
43705
|
scope: "session"
|
|
43703
|
-
}
|
|
43706
|
+
}]
|
|
43704
43707
|
};
|
|
43705
43708
|
/**
|
|
43706
43709
|
* Reader already presents produced paths with its copy/reveal actions. RC2's
|
|
@@ -43732,10 +43735,16 @@ ${trimmed}
|
|
|
43732
43735
|
return Object.fromEntries(Object.entries(OFFICIAL_SLOTS).map(([name, source]) => {
|
|
43733
43736
|
const family = name;
|
|
43734
43737
|
const spec = slots.spec(source);
|
|
43735
|
-
if (spec &&
|
|
43736
|
-
|
|
43738
|
+
if (spec && !EXPECTED[family].some((expected) => expected.kind === spec.kind && expected.scope === spec.scope)) console.warn(`[dsh-tidy-display] official slot contract drift, binding live spec: ${source} (${spec.kind}/${spec.scope})`);
|
|
43739
|
+
if (family === "tail") boundTailKind = spec?.kind ?? EXPECTED[family][0].kind;
|
|
43740
|
+
return [officialSeat(family), spec ?? EXPECTED[family][0]];
|
|
43737
43741
|
}));
|
|
43738
43742
|
}
|
|
43743
|
+
/** tail 座位实测绑定的槽形(list=0.1.7+,chain=0.1.2–0.1.5)。渲染分发用。 */
|
|
43744
|
+
let boundTailKind;
|
|
43745
|
+
function tailSeatKind() {
|
|
43746
|
+
return boundTailKind ?? "list";
|
|
43747
|
+
}
|
|
43739
43748
|
function translatedComponent(entry, names) {
|
|
43740
43749
|
if (names.size === 0) return entry.component;
|
|
43741
43750
|
const Original = entry.component;
|
|
@@ -43828,7 +43837,7 @@ ${trimmed}
|
|
|
43828
43837
|
const spec = slots.spec(source);
|
|
43829
43838
|
const target = officialSeat(family);
|
|
43830
43839
|
const declared = slots.spec(target);
|
|
43831
|
-
if (spec.kind !== declared?.kind || spec.scope !== declared.scope)
|
|
43840
|
+
if (spec.kind !== declared?.kind || spec.scope !== declared.scope) console.warn(`[dsh-tidy-display] official slot contract drift on mirror: ${source} (${spec.kind}/${spec.scope} vs ${declared?.kind ?? "none"}/${declared?.scope ?? "none"})`);
|
|
43832
43841
|
return mirrorOfficialSlot(slots, source, target, `dsh-tidy-display.official.${family}`, family === "nodes" ? (entry) => !READER_NODES.has(entry.options.key ?? "") : void 0);
|
|
43833
43842
|
}));
|
|
43834
43843
|
}
|
|
@@ -43926,11 +43935,13 @@ ${trimmed}
|
|
|
43926
43935
|
openFile: official.officialPreviewFile,
|
|
43927
43936
|
readerProducedPaths: produced
|
|
43928
43937
|
} : void 0;
|
|
43929
|
-
|
|
43938
|
+
if (!official || !tailOwner) return null;
|
|
43939
|
+
const render = tailSeatKind() === "chain" ? official.renderSlotChain ?? official.renderSlot : official.renderSlot;
|
|
43940
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
43930
43941
|
"data-reader-official-tail": true,
|
|
43931
43942
|
style: { display: "contents" },
|
|
43932
|
-
children:
|
|
43933
|
-
})
|
|
43943
|
+
children: render(OFFICIAL_SEATS.tail, tailOwner)
|
|
43944
|
+
});
|
|
43934
43945
|
}
|
|
43935
43946
|
//#endregion
|
|
43936
43947
|
//#region src/client/motion.tsx
|
|
@@ -47677,6 +47688,16 @@ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_m
|
|
|
47677
47688
|
function isNode(node, kind) {
|
|
47678
47689
|
return node.kind === kind;
|
|
47679
47690
|
}
|
|
47691
|
+
/**
|
|
47692
|
+
* pendingInteraction 的双代读取:0.1.7+ 注入 `useSessionStatus`,0.1.2–0.1.5
|
|
47693
|
+
* 同一能力叫 `useSessionPendingInteraction`(useSessionStatus 是它的改名)。
|
|
47694
|
+
* 两代都缺席时返回 undefined——等待交互的横幅不显示,渲染绝不因此中断
|
|
47695
|
+
* (useSessionStatus 缺失曾让 Reader paint 即崩、阅读视图整页空白,0.1.5 事故)。
|
|
47696
|
+
*/
|
|
47697
|
+
function usePendingInteraction(props) {
|
|
47698
|
+
const hooks = props;
|
|
47699
|
+
return (props.useSessionStatus ?? hooks.useSessionPendingInteraction)?.((snapshot) => snapshot.get(props.sessionId)?.pendingInteraction);
|
|
47700
|
+
}
|
|
47680
47701
|
function cleanErrorMessage(raw) {
|
|
47681
47702
|
if (!raw) return "模型服务暂时无响应或连接中断,请稍后重试。";
|
|
47682
47703
|
let str = raw.trim();
|
|
@@ -48063,6 +48084,7 @@ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_m
|
|
|
48063
48084
|
}
|
|
48064
48085
|
if (isNode(node, "manual-compaction") || isNode(node, "compaction")) return null;
|
|
48065
48086
|
if (node.kind === "context" || node.kind === "turn-tail" || node.kind === "system-prompt" || node.kind === "turn-process") return null;
|
|
48087
|
+
if (node.kind === "input-message") return null;
|
|
48066
48088
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OfficialNode, {
|
|
48067
48089
|
...render,
|
|
48068
48090
|
node,
|
|
@@ -48342,7 +48364,7 @@ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_m
|
|
|
48342
48364
|
const snapshot = props.useChat((snapshot) => snapshot);
|
|
48343
48365
|
const nodes = snapshot.nodes;
|
|
48344
48366
|
const turn = group.turn === null ? void 0 : snapshot.timeline.turns.get(group.turn);
|
|
48345
|
-
const interaction =
|
|
48367
|
+
const interaction = usePendingInteraction(props);
|
|
48346
48368
|
const sessionRunning = props.useSession((snapshot) => snapshot.running);
|
|
48347
48369
|
const boundary = (0, react.useMemo)(() => boundaryOf(turn), [turn]);
|
|
48348
48370
|
const choiceKey = processChoiceKey(group.key, boundary);
|
|
@@ -48626,7 +48648,7 @@ html:not([data-tidychat-hide-official-nav]) nav[class*="_frame"]:has([class*="_m
|
|
|
48626
48648
|
const nodes = props.useChat((snapshot) => snapshot.nodes);
|
|
48627
48649
|
const timeline = props.useChat((snapshot) => snapshot.timeline);
|
|
48628
48650
|
const running = props.useSession((snapshot) => snapshot.running);
|
|
48629
|
-
const pending =
|
|
48651
|
+
const pending = usePendingInteraction(props);
|
|
48630
48652
|
const openError = props.useSession((snapshot) => snapshot.openError);
|
|
48631
48653
|
const loading = props.useSession((snapshot) => snapshot.openState === "loading");
|
|
48632
48654
|
const hasMore = props.useSession((snapshot) => snapshot.hasMore);
|