dsh-tidy-display 0.4.0 → 0.4.1
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.md +4 -0
- package/README.de.md +2 -3
- package/README.en.md +2 -3
- package/README.es.md +2 -3
- package/README.fr.md +2 -3
- package/README.it.md +2 -3
- package/README.md +2 -3
- package/README.ru.md +2 -3
- package/compat/harness-0.2.1-rc.1.json +102 -0
- package/lib/client.js +6 -5
- package/lib/client.js.map +1 -1
- package/lib/types/client/OfficialContent.d.ts.map +1 -1
- package/lib/types/client/OfficialContent.js +5 -2
- package/lib/types/client/OfficialContent.js.map +1 -1
- package/lib/types/client/Reader.js +1 -1
- package/lib/types/client/official-slots.d.ts +3 -3
- package/lib/types/client/official-slots.d.ts.map +1 -1
- package/lib/types/client/official-slots.js +2 -2
- package/lib/types/client/official-slots.js.map +1 -1
- package/lib/types/client/primitive-labels.d.ts.map +1 -1
- package/lib/types/client/primitive-labels.js +2 -0
- package/lib/types/client/primitive-labels.js.map +1 -1
- package/package.json +194 -184
- package/scripts/check-harness-compat.mjs +4 -3
- package/scripts/hosts.mjs +4 -1
- package/scripts/sync-hosts.mjs +2 -2
- package/src/client/OfficialContent.tsx +8 -4
- package/src/client/Reader.tsx +1 -1
- package/src/client/official-slots.tsx +3 -3
- package/src/client/primitive-labels.ts +2 -0
- package/tests/browser-official-bridge.tsx +1 -1
package/scripts/hosts.mjs
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* 与 0.1.6-alpha.1/2 为未成线 alpha,不入列),由本地隔离矩阵逐格验证后**删红留绿**;
|
|
9
9
|
* 矩阵结论落 `.compat-results/`。
|
|
10
10
|
* 升级流程:本数组加版本 → `node scripts/sync-hosts.mjs --write` → 矩阵绿 → 发版。
|
|
11
|
+
* 2026-10-17 补票:追加 0.2.1-rc.1(七仓缺口补票批次,同串精确枚举纪律)。
|
|
11
12
|
*
|
|
12
13
|
* 本数组与由它生成的声明写点(package.json peerDependencies 的 12 个 dsh-* 项 /
|
|
13
14
|
* package.json engines.dsh / 各 README 的 host-compat 管理块)**禁止手改**,
|
|
@@ -37,13 +38,15 @@ export const supportedHosts = Object.freeze([
|
|
|
37
38
|
// 0.2.0 线(2 个 rc)
|
|
38
39
|
'0.2.0-rc.1',
|
|
39
40
|
'0.2.0-rc.2',
|
|
41
|
+
// 0.2.1 线(1 个 rc)
|
|
42
|
+
'0.2.1-rc.1',
|
|
40
43
|
])
|
|
41
44
|
|
|
42
45
|
/** peerDependencies / engines.dsh 共用的枚举串(精确枚举无暗坑,INDEX §B)。 */
|
|
43
46
|
export const peerRange = supportedHosts.join(' || ')
|
|
44
47
|
|
|
45
48
|
/** 本地开发与矩阵默认宿主(devDependencies 若引入宿主包一律钉这里)。 */
|
|
46
|
-
export const developmentHost = '0.2.
|
|
49
|
+
export const developmentHost = '0.2.1-rc.1'
|
|
47
50
|
|
|
48
51
|
/**
|
|
49
52
|
* peer 闸指向的宿主子包(本插件消费的全部宿主面:peerDependencies 里的 12 个
|
package/scripts/sync-hosts.mjs
CHANGED
|
@@ -67,10 +67,10 @@ if (hasManifest) {
|
|
|
67
67
|
const BEGIN = '<!-- host-compat:begin — generated by scripts/sync-hosts.mjs from scripts/hosts.mjs; DO NOT EDIT -->'
|
|
68
68
|
const END = '<!-- host-compat:end -->'
|
|
69
69
|
const versionList = supportedHosts.map((v) => `\`${v}\``).join(' ')
|
|
70
|
-
const LINES = '0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0'
|
|
70
|
+
const LINES = '0.1.0 / 0.1.1 / 0.1.2 / 0.1.5 / 0.1.7 / 0.2.0 / 0.2.1'
|
|
71
71
|
const linesPerLang = {
|
|
72
72
|
'README.md': [
|
|
73
|
-
`- **支持的 DSH 宿主:** ${versionList}(覆盖 ${LINES}
|
|
73
|
+
`- **支持的 DSH 宿主:** ${versionList}(覆盖 ${LINES} 七条线共 ${supportedHosts.length} 个 rc)`,
|
|
74
74
|
],
|
|
75
75
|
'README.en.md': [
|
|
76
76
|
`- **Supported DSH hosts:** ${versionList} (${supportedHosts.length} rc releases across lines ${LINES})`,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useCallback, useState, useSyncExternalStore, type ReactNode } from 'react';
|
|
2
2
|
import type { ChatConversationViewNode, ChatNodeOwnerProps, TurnTailOwnerProps, UseDisclosure } from '@deepseek-ai/dsh-client-ui-chat/client';
|
|
3
|
+
import type { MessageImagesOwnerProps } from '@deepseek-ai/dsh-client-ui-conversation/client';
|
|
3
4
|
import { createSnapshotStore } from './store-face.js';
|
|
4
5
|
import type { ToolCallBlock } from '@deepseek-ai/dsh-client-ui-conversation/client';
|
|
5
6
|
import type { AssistantActionOwnerProps } from '@deepseek-ai/dsh-client-ui-chat/client';
|
|
@@ -41,18 +42,21 @@ export function OfficialNode({ node, fallback, ...render }: BlockRenderProps & {
|
|
|
41
42
|
const official = render.official;
|
|
42
43
|
const [disclosureReset] = useState(() => createSnapshotStore(0));
|
|
43
44
|
if (!official) return fallback;
|
|
44
|
-
|
|
45
|
+
// rc.1 起 ChatNodeOwnerProps 移除了 openSkill/renderMessageImages(消息图改走
|
|
46
|
+
// conversation.chat.message.images 子槽);旧线宿主仍要求这两字段,继续供给,
|
|
47
|
+
// 类型对开发线(rc.1)编译,旧线字段经 cast 逃逸。
|
|
48
|
+
const owner = {
|
|
45
49
|
cwd: render.cwd,
|
|
46
50
|
openFile: render.openFile ?? (() => {}),
|
|
47
51
|
openSkill: () => {},
|
|
48
52
|
forkAt: render.forkAt ?? (() => {}),
|
|
49
|
-
inspectCall: callId => official.openView('trajectory', callId),
|
|
53
|
+
inspectCall: (callId: Parameters<NonNullable<ChatNodeOwnerProps['inspectCall']>>[0]) => official.openView('trajectory', callId),
|
|
50
54
|
loadImage: official.officialImageLoader,
|
|
51
|
-
renderMessageImages: images => official.renderSlot(OFFICIAL_SEATS.images, {
|
|
55
|
+
renderMessageImages: (images: MessageImagesOwnerProps) => official.renderSlot(OFFICIAL_SEATS.images, {
|
|
52
56
|
...images, loadImage: official.officialImageLoader,
|
|
53
57
|
}),
|
|
54
58
|
fileMentions: official.officialFileMentions,
|
|
55
|
-
};
|
|
59
|
+
} as unknown as ChatNodeOwnerProps;
|
|
56
60
|
const turn = node.location.kind === 'turn' || node.location.kind === 'step' ? node.location.turn : undefined;
|
|
57
61
|
// The runtime node domain is open; the public SlotMap enumerates the known kinds.
|
|
58
62
|
const renderNode = official.renderSlot as unknown as (key: string, owner: object, options: object) => ReactNode;
|
package/src/client/Reader.tsx
CHANGED
|
@@ -743,7 +743,7 @@ export function Reader(props: ReaderProps) {
|
|
|
743
743
|
|
|
744
744
|
// ChatView publishes data-chat-flow="" on its column. Skins treat a
|
|
745
745
|
// scrollport without that hook as inspect-only and hide [data-composer-seat].
|
|
746
|
-
return <StreamMotionContext.Provider value={streamMotion}><div ref={root} className={css.root} data-reader-build="0.4.
|
|
746
|
+
return <StreamMotionContext.Provider value={streamMotion}><div ref={root} className={css.root} data-reader-build="0.4.1" data-dsh-tidy-display="0.4.1" data-reader-wait-clock-version="input-v1" data-reader-wait-start={waitAnchor.time ?? undefined} data-motion={motion ? 'on' : 'off'} data-reader-glass={frostedGlass || undefined} data-reader-bubbles={bubbles ? 'on' : 'off'} data-reader-auto-fold={autoFold ? 'on' : 'off'}>
|
|
747
747
|
<RailView enabled={railEnabled} side={railSide} style={railStyle} ring={railRing} hideOfficialNav={hideOfficialNav} hasMore={hasMore} loadOlder={props.loadOlder} />
|
|
748
748
|
<div className={css.column} data-chat-flow="">
|
|
749
749
|
<StickyLane kind="toolbar" className={css.toolbar}>
|
|
@@ -18,7 +18,7 @@ export const OFFICIAL_SLOTS = {
|
|
|
18
18
|
tools: 'tool.call.toolview',
|
|
19
19
|
tail: 'conversation.chat.turnTail',
|
|
20
20
|
nodes: 'conversation.chat.node',
|
|
21
|
-
images: 'conversation.message.images',
|
|
21
|
+
images: 'conversation.chat.message.images',
|
|
22
22
|
} as const;
|
|
23
23
|
export type OfficialFamily = keyof typeof OFFICIAL_SLOTS;
|
|
24
24
|
export const OFFICIAL_SEATS = {
|
|
@@ -26,7 +26,7 @@ export const OFFICIAL_SEATS = {
|
|
|
26
26
|
tools: 'dsh-tidy-display.official.tools/tool.call.toolview',
|
|
27
27
|
tail: 'dsh-tidy-display.official.tail/conversation.chat.turnTail',
|
|
28
28
|
nodes: 'dsh-tidy-display.official.nodes/conversation.chat.node',
|
|
29
|
-
images: 'dsh-tidy-display.official.images/conversation.message.images',
|
|
29
|
+
images: 'dsh-tidy-display.official.images/conversation.chat.message.images',
|
|
30
30
|
} as const;
|
|
31
31
|
export type OfficialSeat = typeof OFFICIAL_SEATS[OfficialFamily];
|
|
32
32
|
export const officialSeat = (family: OfficialFamily, source: string = OFFICIAL_SLOTS[family]) =>
|
|
@@ -52,7 +52,7 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
|
52
52
|
'dsh-tidy-display.official.tools/tool.call.toolview': SlotMap['tool.call.toolview'];
|
|
53
53
|
'dsh-tidy-display.official.tail/conversation.chat.turnTail': SlotMap['conversation.chat.turnTail'];
|
|
54
54
|
'dsh-tidy-display.official.nodes/conversation.chat.node': SlotMap['conversation.chat.node'];
|
|
55
|
-
'dsh-tidy-display.official.images/conversation.message.images': SlotMap['conversation.message.images'];
|
|
55
|
+
'dsh-tidy-display.official.images/conversation.chat.message.images': SlotMap['conversation.chat.message.images'];
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -21,6 +21,8 @@ export const readBlockLabels: ReadBlockLabels = {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
export const terminalBlockLabels: TerminalBlockLabels = {
|
|
24
|
+
// rc.1 起必填:多行命令逐行渲染时给溢出行的可访问名(官方 zh 文案同串)。
|
|
25
|
+
commandLine: line => `命令第 ${line} 行`,
|
|
24
26
|
signal: signal => `信号 ${signal}`, exitCode: code => `退出码 ${code}`, noExitCode: '无退出码',
|
|
25
27
|
running: '执行中', failed: '失败', done: '已完成', copy: '复制', copied: '已复制',
|
|
26
28
|
noOutput: '没有输出', collapseAria: '收起命令输出', collapse: '收起',
|
|
@@ -78,7 +78,7 @@ slots.register({ name: 'root', children: {
|
|
|
78
78
|
'tool.call.toolview': { kind: 'keyed', scope: 'session' },
|
|
79
79
|
'conversation.chat.turnTail': { kind: 'list', scope: 'session' },
|
|
80
80
|
'conversation.chat.node': { kind: 'keyed', scope: 'session', inject: { hooks: { turnData: (_s: any, value: any) => () => value } } },
|
|
81
|
-
'conversation.message.images': { kind: 'single', scope: 'session' },
|
|
81
|
+
'conversation.chat.message.images': { kind: 'single', scope: 'session' },
|
|
82
82
|
'conversation.input.overlay': { kind: 'list', scope: 'session' },
|
|
83
83
|
'fixture.reader': { kind: 'single', scope: 'session' },
|
|
84
84
|
} }, ({ SessionProvider, renderSlot }: any) => <SessionProvider>
|