@sidequest-007/dsh-atlas 1.0.8 → 1.0.9-port.6
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 +122 -0
- package/LICENSE-ORIGINAL +21 -21
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/assets/diagrams/atlas-overview.svg +3 -3
- package/dsh.plugin.json +2 -2
- package/lib/client.js +9953 -2440
- package/lib/index.js +7725 -2116
- package/lib/types/client/DraftLinks.d.ts +13 -3
- package/lib/types/client/FolderPicker.d.ts +58 -7
- package/lib/types/client/FolderTab.d.ts +7 -2
- package/lib/types/client/FrameCursor.d.ts +104 -0
- package/lib/types/client/HistoryPalette.d.ts +25 -0
- package/lib/types/client/ReferenceLinks.d.ts +22 -2
- package/lib/types/client/SettingsSection.d.ts +10 -2
- package/lib/types/client/history-frames.d.ts +238 -0
- package/lib/types/client/history-keys.d.ts +266 -0
- package/lib/types/client/index.d.ts +14 -0
- package/lib/types/client/locales.d.ts +100 -10
- package/lib/types/client/reference-links.d.ts +57 -0
- package/lib/types/client/remote.d.ts +8 -4
- package/lib/types/client/roam-store.d.ts +64 -0
- package/lib/types/client/source.d.ts +16 -0
- package/lib/types/client/standard-kit.d.ts +40 -0
- package/lib/types/client/styles.d.ts +1 -1
- package/lib/types/contract.d.ts +156 -0
- package/lib/types/files.d.ts +46 -0
- package/lib/types/index.d.ts +9 -9
- package/lib/types/recent-folders.d.ts +52 -0
- package/lib/types/reference.d.ts +3 -1
- package/lib/types/references.d.ts +7 -2
- package/lib/types/runtime.d.ts +53 -3
- package/lib/types/settings.d.ts +19 -2
- package/lib/types/tokens.d.ts +12 -0
- package/package.json +35 -28
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,120 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.9-port.6] - 2026-10-27
|
|
4
|
+
|
|
5
|
+
### 修复
|
|
6
|
+
|
|
7
|
+
- **默认粒度在客户端没有真正生效**(用户回报:设置里默认仍不是「每轮对话」)。根因是三个地方的口径不一致:
|
|
8
|
+
契约默认 `'turn'`,设置面板兜底 `'turn'`,但 `FrameCursor` / `HistoryPalette` 用的是
|
|
9
|
+
`settings.historyJumpFrames === 'turn' ? 'turn' : 'message'` —— **缺值就落到 `'message'`**。
|
|
10
|
+
宿主交给客户端的可能是**存储层**(`at-file` 里没有这个键)而不是 schema 解析后的对象,
|
|
11
|
+
于是面板显示「每轮对话」而阶梯仍按「条」走,两者当场自相矛盾。
|
|
12
|
+
现在两处都改成 `=== 'message' ? 'message' : 'turn'`:**只有显式选择「每条消息」才细走**。
|
|
13
|
+
- 单测 **983 通过 / 1 跳过**,`tsc` 0 错误。
|
|
14
|
+
|
|
15
|
+
## [1.0.9-port.5] - 2026-10-27
|
|
16
|
+
|
|
17
|
+
### 变更
|
|
18
|
+
|
|
19
|
+
- **Esc 的历史阶梯改成「轮」,与页面右侧的轮次导轨同一把尺**(用户选定的方案 A)。
|
|
20
|
+
一格 = 一个 `turn`,身份就是 turn 号,所以同一轮在结构上不可能出现两格:
|
|
21
|
+
上一版把「提问」和「回答」各算一格,11 轮的会话在面板里读作 22 格,而右侧只画 11 格。
|
|
22
|
+
- **系统发起的轮次自带一格**:这种轮次没有提问节点,它的最后一个有正文的助手节点就是这一轮唯一的停点(标签 系统),
|
|
23
|
+
与宿主 `turnNavigationItem` 的 `user ?? loaded[0]` 锚点规则、`findLast` 取回答的规则一致。
|
|
24
|
+
- **默认粒度改为 `'turn'`**(原 `'message'`)。`'message'` 仍可在设置里选,它保留「每条提问 + 每条回答都停」的细粒度。
|
|
25
|
+
- **读数条单位随粒度**:`'turn'` 显示「第 3 / 11 轮」,`'message'` 仍显示「第 3 / 22 条」。
|
|
26
|
+
|
|
27
|
+
### 测试
|
|
28
|
+
|
|
29
|
+
- `tests/runtime.spec.ts` 的默认设置形状断言更新为 `historyJumpFrames: 'turn'`。
|
|
30
|
+
- 全套 40 文件 **983 通过 / 1 跳过**。
|
|
31
|
+
|
|
32
|
+
## [1.0.9-port.4] - 2026-10-27
|
|
33
|
+
|
|
34
|
+
### 修复
|
|
35
|
+
|
|
36
|
+
- **系统发起的轮次走不到**:上一版只在「该 turn 的 prompt 也在格上」时才建回复格,而系统轮次没有 `user`
|
|
37
|
+
节点(没有人提问),于是那几轮在 Up/Down 里根本不存在。现在无 prompt 的 turn 用它的回答成格,
|
|
38
|
+
并标注**系统**(来源优先于类别:有提问的回复格标 回复,系统轮次的格标 系统)。
|
|
39
|
+
- **流式消息的第一条被当成独立的历史消息**:一轮回答可能流出多个助手节点,第一条常是上文的重放,
|
|
40
|
+
上一版给每个节点都建了一格,面板里于是多出一条既不是用户、也不是系统发起的行。
|
|
41
|
+
现在**一个 turn 只留一格**,取最后一个有正文的 `assistant-step`;该 turn 一旦成格即认领,
|
|
42
|
+
outline 不会为同一 turn 再合成一格。
|
|
43
|
+
|
|
44
|
+
### 测试
|
|
45
|
+
|
|
46
|
+
- `tests/history-frames.spec.ts` 新增 4 条:回复格归属(用户提问 / 系统发起)、一轮多节点只留一格、
|
|
47
|
+
`'turn'` 粒度不含回复格。
|
|
48
|
+
- 重新基线 `tests/history-cursor.spec.tsx` 三处系统轮次断言(窗口里只有回答的 turn 现在是最新停点)。
|
|
49
|
+
全套 40 文件 **983 通过 / 1 跳过**。
|
|
50
|
+
|
|
51
|
+
## [1.0.9-port.3] - 2026-10-27
|
|
52
|
+
|
|
53
|
+
### 新增
|
|
54
|
+
|
|
55
|
+
- **把助手的回复也当作消息的一格,Up/Down 会跳到它上面**(用户口径:*"系统的轮次不会如用户的输入轮次一样随
|
|
56
|
+
up 和 down 移动到对应的位置,也就是应该把系统轮次视作消息的一个类别,也要跳转"*)。
|
|
57
|
+
`src/client/history-frames.ts` 的 `HistoryFrame.kind` 增加 `'reply'`:`'message'` 粒度下,一个有正文的
|
|
58
|
+
`assistant-step` 节点成格,读数条标 `history.replyTag`(回复 / Reply)。有三条边界写进了代码注释与
|
|
59
|
+
`docs/history-jump.md` §5.1.1:
|
|
60
|
+
1. **只在提问也在格上时才成格**(`seenTurns.has(turn)`)——回复排在提问之后,窗口里没有 prompt 的 turn
|
|
61
|
+
(只有 outline 的那部分)保留 outline 合成的格,读数条总数仍按 outline 口径,不会凭空多出回复格;
|
|
62
|
+
2. **`'turn'` 粒度不变**,一回合仍只一格(开头 prompt);
|
|
63
|
+
3. **不复用**:回复的 `authoredByUser === false`,于是 `Ctrl+↑` 的"复用我写过的话"仍只走用户消息,
|
|
64
|
+
而漫游停在回复上按 Enter 会把这段正文写回输入框(引用/续写)。
|
|
65
|
+
- `src/client/locales.ts` 增 `history.replyTag`(zh 回复 / en Reply),`FrameCursor` 的读数条与
|
|
66
|
+
`HistoryPalette` 的行标记按 kind 而非只按 `systemInitiated` 取标签。
|
|
67
|
+
|
|
68
|
+
### 变更
|
|
69
|
+
|
|
70
|
+
- 受影响的既有断言按新契约重排:`tests/history-cursor.spec.tsx`(漫游首停由最新用户消息变为最新回复、
|
|
71
|
+
四次 Up 才到最旧格、行高亮/滚动/`CSS.escape` 的目标 key 由 `u2` 变 `a2`)、
|
|
72
|
+
`tests/history-palette.spec.tsx`(列表由 2 行变 4 行、`data-atlas-frame-count` 由 2 变 4)。
|
|
73
|
+
全套 40 文件 979 通过 / 1 跳过(新增 4 条针对回复格边界的断言)。
|
|
74
|
+
|
|
3
75
|
本项目遵循 [Keep a Changelog](https://keepachangelog.com/zh-CN/1.1.0/) 的组织方式,版本号遵循 [语义化版本](https://semver.org/lang/zh-CN/)。
|
|
4
76
|
|
|
77
|
+
## [1.0.9-port.2] - 2026-10-26
|
|
78
|
+
|
|
79
|
+
### 修复
|
|
80
|
+
|
|
81
|
+
- **历史面板快捷键的文档/实现互相矛盾**:`src/client/history-keys.ts:157 isCommandOnly` 要求
|
|
82
|
+
「命令键且不带 Shift」,于是实现只认 `Ctrl/Cmd+H`,而 `src/client/index.ts:1442` 与
|
|
83
|
+
`docs/history-jump.md` §2 选型表写的是 `Ctrl/Cmd+Shift+H`(选它的理由正是绕开浏览器历史记录与 macOS
|
|
84
|
+
「隐藏应用」)。现在两种拼写打开同一面板(新增 `isPaletteChord`,`HistoryPalette` 复用它),`Alt` 仍被
|
|
85
|
+
排除(Windows 上 `AltGr` 即 `Ctrl+Alt`)。首轮无头实测证据:`Ctrl+Shift+H` 命中 0、`Ctrl+H` 命中 1;
|
|
86
|
+
改后两者都命中。
|
|
87
|
+
|
|
88
|
+
## [1.0.9-port.1] - 2026-10-26
|
|
89
|
+
|
|
90
|
+
### 移植
|
|
91
|
+
|
|
92
|
+
- **基座取自 npm/GitHub 最新发行版 `1.0.9`(tag `v1.0.9`),上游源码包里的新功能以补丁形式叠加上去**:
|
|
93
|
+
源码压缩包自带的那份 `dsh-atlas` 已经无法启动(不带 `lib/`,且写的是宿主的旧设置 API),
|
|
94
|
+
所以移植只搬 `src/`、`tests/`、`docs/` 的行为与代码,构建、依赖装配、发布清单全部沿用 `1.0.9`。
|
|
95
|
+
- **宿主 API 对齐 `@deepseek-ai/*@0.2.0-rc.2`**:注入工厂拿到的会话 id 是裸 `string`,进入领域函数前
|
|
96
|
+
用一处 `sid()` 收口成 `SessionId`(品牌类型);会话跳转改为先问 `uiWorkspace.openSession`,退回旧
|
|
97
|
+
`sessions.open`,两者都没有就如实报"这一版客户端没有会话导航"。
|
|
98
|
+
`useSession` / `useSessions` 这两个标准快照钩子按消费端约定补进 `SessionStandardProps` /
|
|
99
|
+
`GlobalStandardProps` 的模块声明,运行时由 ui-session 提供,不再假装它们不存在。
|
|
100
|
+
- **设置命名空间带降级**:`ctx.settings.register` 在新宿主上由 dsh-purge 的兼容层提供;没有这一层时
|
|
101
|
+
不再抛 `TypeError: ctx.settings.register is not a function` 把整个插件拽死,而是警告一句、
|
|
102
|
+
用 schema 默认值继续跑。
|
|
103
|
+
|
|
104
|
+
### 新增
|
|
105
|
+
|
|
106
|
+
- **会话历史跳转(History Jump)**:`Esc` 进入选择态后 `↑` / `↓` 在历史消息间走,`Enter` 把那条话
|
|
107
|
+
原样放回输入框;另有 `Ctrl + ↑ / ↓` 不进入选择态直接快速复用;`F1` 打开会话历史面板(可筛选、
|
|
108
|
+
可只显示每轮首条、系统发起的一轮单独标注)。
|
|
109
|
+
配套四个设置项:`historyJump`、`historyJumpFrames`(每条消息 / 每轮)、`historyJumpReuseMode`
|
|
110
|
+
(覆盖 / 追加草稿)、`historyJumpSmartFollow`(是否跟随手动滚动改变"当前位置",默认关)。
|
|
111
|
+
- **设置面板**:新增 `settings.section` 一节,把上面四项按"两个功能共用 / Esc 漫游 / Ctrl+↑↓ 快速复用"
|
|
112
|
+
分组呈现。
|
|
113
|
+
- **文件夹选择器重做**:边输入边浏览(`atFile/browse`),不存在或越界的路径用"最长有效前缀 + 剩余部分
|
|
114
|
+
当筛选"回答;`hasChildren` 探测决定能不能展开;Windows 列盘符;工作区外的常用文件夹按
|
|
115
|
+
`sibling` / `parent` / `child` / `recent` / `family` 分组(`atFile/recentFolders`)。
|
|
116
|
+
- **条目上限不再吃掉你要的那一行**:名字被 `maxFiles` 截断时,目标那行以 `pinned` 顶到第一行。
|
|
117
|
+
|
|
5
118
|
## [1.0.6] - 2026-09-27
|
|
6
119
|
|
|
7
120
|
### 文档
|
|
@@ -17,6 +130,15 @@
|
|
|
17
130
|
README 的全部承诺**,而图的文案就是审批过的那句(用 `click` 而非 `clickable`);把要求写死到"哪一类面必须说什么",
|
|
18
131
|
比把检查放松更有意义。
|
|
19
132
|
|
|
133
|
+
## [1.0.9] - 2026-09-27
|
|
134
|
+
|
|
135
|
+
### 文档
|
|
136
|
+
|
|
137
|
+
- **标签改为 `AT Last, All Sources.`**(原 `@ Last, All Sources.`):两个 README、`package.json` 与 `dsh.plugin.json`
|
|
138
|
+
的 `description`、配图 `aria-label` 与图内那行字全部同步。用户名形近 `@`,`AT` 才是产品名的起首两字母。
|
|
139
|
+
- **词标 `ATLAS` 的起首字母标色**:图里标题的 `<tspan>` 由 `dsh-`(灰 `#77839b`)+ **`AT`(品牌蓝 `#bcd2ff`)**
|
|
140
|
+
+ `LAS`(近白 `#eef1f7`)组成。实测 70 / 43 / 61 = 173 px,整词与 tagline 都在卡片内(tagRight 338 / 880)。
|
|
141
|
+
|
|
20
142
|
## [1.0.8] - 2026-09-27
|
|
21
143
|
|
|
22
144
|
### 文档
|
package/LICENSE-ORIGINAL
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 dsh-at-file contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dsh-at-file contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ A **Side Quest** project (工作室:支线任务, **Side Quest Labs**) — npm
|
|
|
6
6
|
|
|
7
7
|
<img src="assets/diagrams/atlas-overview.svg" alt="dsh-ATLAS: one @ trigger, five built-in categories plus the bundled git category, and a category any plugin can register" width="880">
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
**AT Last, All Sources.**
|
|
10
10
|
|
|
11
11
|
One `@` . Jump anywhere.
|
|
12
12
|
|
package/README.zh.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="300" viewBox="0 0 880 300" role="img" aria-label="dsh-ATLAS: one @ trigger, five built-in categories plus the bundled git category with their glyphs, and any plugin's own category;
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="880" height="300" viewBox="0 0 880 300" role="img" aria-label="dsh-ATLAS: one @ trigger, five built-in categories plus the bundled git category with their glyphs, and any plugin's own category; AT Last, All Sources - one @, jump anywhere">
|
|
2
2
|
<rect x="0" y="0" width="880" height="300" rx="18" fill="#0f1420"/>
|
|
3
3
|
<rect x="0.5" y="0.5" width="879" height="299" rx="17.5" fill="none" stroke="#26304a"/>
|
|
4
4
|
|
|
5
|
-
<text x="40" y="68" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="34" font-weight="700" fill="#eef1f7"><tspan fill="#77839b">dsh-</tspan><tspan fill="#bcd2ff">
|
|
6
|
-
<text x="40" y="98" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="15" fill="#8f9bb3"
|
|
5
|
+
<text x="40" y="68" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="34" font-weight="700" fill="#eef1f7"><tspan fill="#77839b">dsh-</tspan><tspan fill="#bcd2ff">AT</tspan><tspan fill="#eef1f7">LAS</tspan></text>
|
|
6
|
+
<text x="40" y="98" font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="15" fill="#8f9bb3">AT Last, All Sources. One @ . Jump anywhere.</text>
|
|
7
7
|
|
|
8
8
|
<g font-family="Inter, Segoe UI, Helvetica, Arial, sans-serif" font-size="14">
|
|
9
9
|
<rect x="40" y="122" width="81" height="36" rx="10" fill="#182036" stroke="#2b3450"/>
|
package/dsh.plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sidequest-007/dsh-atlas",
|
|
3
|
-
"description": "
|
|
4
|
-
"version": "1.0.
|
|
3
|
+
"description": "AT Last, All Sources. One @ . Jump anywhere.",
|
|
4
|
+
"version": "1.0.9-port.6",
|
|
5
5
|
"entry": {
|
|
6
6
|
"name": "@sidequest-007/dsh-atlas",
|
|
7
7
|
"inject": []
|