dsh-mindmap 0.18.4 → 0.18.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 +2 -0
- package/client.js +140 -13
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -38,6 +38,8 @@ All notable changes to this project are documented here. Release-specific notes
|
|
|
38
38
|
|
|
39
39
|
### Fixed
|
|
40
40
|
|
|
41
|
+
- Focus synchronization no longer oscillates between two open mindmaps (issue #4). The AI-focus baseline is now event-driven — the document last created, opened, or updated by a tool result (read-only `mindmap_get` never moves it) — instead of the creation-order tail, which stayed pinned to the newer file so the comparison could never converge. Auto-sent `mindmap_open` messages are gated three ways: at most one per document per mount, a module-level per-session memory of sent display/focus pairs that survives tab remounts and dual windows, and a hard cap of 5 automatic opens per session that stops silently with a single notice (shown in both directory and mindmap views). Restored mount state (an out-of-sync display/focus pair established by the mount-time auto-open) is no longer a trigger, so a remounted tab or a reloaded page never sends a spontaneous message, and cwd arrival after a remount only changes the message's relative-path text instead of re-arming the effect. The sync effect now depends on values (displayed document, AI focus, visibility, session) rather than snapshot object identity, so remounts and unrelated tool results no longer re-fire it. Regression tests cover the two-document idle scenario (at most one message, then convergence), remount memory survival, and the hard-cap silent stop with a one-time notice.
|
|
42
|
+
|
|
41
43
|
- Extend the full-file-access compatibility fix to root renames, clearing content, and broad rewrites: when the host's live `sandboxPolicy.resolve({ session })` explicitly returns `danger-full-access`, these operations no longer request an extra plugin approval that the full-access preset would automatically reject. This supersedes the high-risk exception in the earlier ordinary-write fix below. Non-full-access policies still gate high-risk writes, and disabling approval prompts alone grants no file access. Upstream approval decisions, path containment, collision checks, size limits, revision conflicts, and session-grant isolation are preserved; guidance, settings help, and security documentation now describe the same boundary.
|
|
42
44
|
- Ordinary create/update calls no longer request an extra plugin confirmation when the host's live per-session `sandboxPolicy.resolve({ session })` explicitly returns `danger-full-access`. DSH's full-access preset also disables approval prompts, which rejects an extra `ask` as “the user rejected tool” even without a manual rejection. Full-access calls do not create reusable document grants, the workspace reports the effective confirmation mode, and effective-mode changes invalidate that session's prior grants and pending approval results without affecting other sessions. Switching back to a restricted policy restores the configured confirmation behavior. Renames, cleared content, broad rewrites, and upstream denials/asks/cancellations remain gated; missing, failing, or unknown policy APIs retain the previous confirmation policy. No session permission or host configuration is changed.
|
|
43
45
|
- Read draft text and attachment state from the host's `useInput` snapshot, including edits made while a file request is pending. Unknown state preserves input; old action-face getters remain supported. Inline references and attachment-only drafts block automatic submission too.
|
package/client.js
CHANGED
|
@@ -868,13 +868,22 @@ window.__ModuleLoader__.load({
|
|
|
868
868
|
* content 文本块——host 的工具结果 JSON 就写在其中)。Code 等工具的结果
|
|
869
869
|
* 还可能把真实的 mindmap ToolResultNode 放在 subCalls 中,因此这里按事件
|
|
870
870
|
* 顺序递归重放整棵调用树。
|
|
871
|
-
* 返回文档集及最近一次 create/open
|
|
871
|
+
* 返回文档集及最近一次 create/open 意图,用于驱动面板自动切换目标;
|
|
872
|
+
* latestActivePath(issue #4)= 最后一次 create/open/update 的文档,
|
|
873
|
+
* 作焦点同步的事件驱动比较基准——order 只反映首次出现顺序,不可比。
|
|
872
874
|
*/
|
|
875
|
+
// issue #4 焦点同步的事件驱动基准:这些 op 的成功结果代表 AI「最后正在
|
|
876
|
+
// 打开/编辑」的文档。get 是纯读(模型常仅为回答问题而读),不算焦点,
|
|
877
|
+
// 否则读一下另一颗脑图就会把面板的同步基准拽走。
|
|
878
|
+
const ACTIVE_OPS = new Set(["create", "open", "update"]);
|
|
879
|
+
|
|
873
880
|
function reduceDocuments(nodes, cache) {
|
|
874
881
|
const byPath = Object.create(null);
|
|
875
882
|
let order = [];
|
|
876
883
|
let latestOpeningPath = null;
|
|
877
884
|
let latestOpeningEventKey = null;
|
|
885
|
+
// 最后一次 create/open/update 成功事件的文档路径(事件驱动焦点)。
|
|
886
|
+
let latestActivePath = null;
|
|
878
887
|
// 016 错误捕获(S2 成因):isError / ok!==true 的 mindmap_* 结果不进
|
|
879
888
|
// 文档集(语义不变),但记录为错误信号——errorByPath(可归因路径的
|
|
880
889
|
// 最近错误)+ latestError(最近一次 mindmap 错误,含无路径归因的)。
|
|
@@ -923,6 +932,9 @@ window.__ModuleLoader__.load({
|
|
|
923
932
|
latestOpeningPath = parsed.path;
|
|
924
933
|
latestOpeningEventKey = eventKey;
|
|
925
934
|
}
|
|
935
|
+
// issue #4:update(含 renameRoot 的新路径)同样移动
|
|
936
|
+
// 事件焦点——AI 编辑过谁,焦点就在谁。
|
|
937
|
+
if (ACTIVE_OPS.has(op)) latestActivePath = parsed.path;
|
|
926
938
|
if (renamedFrom && renamedDocument && renamedFrom !== parsed.path) {
|
|
927
939
|
delete byPath[renamedFrom];
|
|
928
940
|
order = order.filter((p) => p !== renamedFrom);
|
|
@@ -974,7 +986,7 @@ window.__ModuleLoader__.load({
|
|
|
974
986
|
for (const [nodeIndex, node] of (Array.isArray(nodes) ? nodes : []).entries()) {
|
|
975
987
|
replayNode(node, String(nodeIndex), 0);
|
|
976
988
|
}
|
|
977
|
-
return { order, byPath, latestOpeningPath, latestOpeningEventKey, errorByPath, latestError };
|
|
989
|
+
return { order, byPath, latestOpeningPath, latestOpeningEventKey, latestActivePath, errorByPath, latestError };
|
|
978
990
|
}
|
|
979
991
|
|
|
980
992
|
/**
|
|
@@ -1021,6 +1033,7 @@ window.__ModuleLoader__.load({
|
|
|
1021
1033
|
byPath,
|
|
1022
1034
|
latestOpeningPath: snapshot?.latestOpeningPath ?? null,
|
|
1023
1035
|
latestOpeningEventKey: snapshot?.latestOpeningEventKey ?? null,
|
|
1036
|
+
latestActivePath: snapshot?.latestActivePath ?? null,
|
|
1024
1037
|
errorByPath: snapshot?.errorByPath ?? {},
|
|
1025
1038
|
latestError: snapshot?.latestError ?? null,
|
|
1026
1039
|
};
|
|
@@ -3675,12 +3688,20 @@ window.__ModuleLoader__.load({
|
|
|
3675
3688
|
const [exporting, setExporting] = react.useState(false);
|
|
3676
3689
|
const [exportError, setExportError] = react.useState("");
|
|
3677
3690
|
const [filledHint, setFilledHint] = react.useState("");
|
|
3691
|
+
// issue #4:焦点同步超上限静默的一次性提示。独立于 filledHint——后者
|
|
3692
|
+
// 只渲染在目录视图,而触发上限时用户正盯着脑图,永远看不见。
|
|
3693
|
+
const [focusNotice, setFocusNotice] = react.useState("");
|
|
3678
3694
|
// 032 复制全文:copying = 写剪贴板进行中;copiedOk = 成功短反馈
|
|
3679
3695
|
//(按钮文案短暂变「已复制 ✓」约 2s;失败复用 exportError 展示位)。
|
|
3680
3696
|
const [copying, setCopying] = react.useState(false);
|
|
3681
3697
|
const [copiedOk, setCopiedOk] = react.useState(false);
|
|
3682
3698
|
// fsTree:nodes = {path → 节点}, expanded = {path → true}, loading = {path → true}。
|
|
3683
3699
|
const [fsTree, setFsTree] = react.useState({ nodes: {}, expanded: {}, loading: {}, cwd: null, error: null });
|
|
3700
|
+
// issue #4:cwd 只影响消息文本(相对/绝对路径),不改变「要不要发」。
|
|
3701
|
+
// 用 ref 在发送时刻读最新值,避免 cwd 到达(重挂载后目录树异步加载完)
|
|
3702
|
+
// 本身成为焦点同步 effect 的触发源。
|
|
3703
|
+
const fsTreeRef = react.useRef(fsTree);
|
|
3704
|
+
fsTreeRef.current = fsTree;
|
|
3684
3705
|
// 会话切换时递增,使旧请求的异步回包不能写入新会话的目录树。
|
|
3685
3706
|
const treeGenerationRef = react.useRef(0);
|
|
3686
3707
|
// 013 右键菜单:{x, y, kind: "root"|"dir", rel};null = 关闭。
|
|
@@ -3748,11 +3769,21 @@ window.__ModuleLoader__.load({
|
|
|
3748
3769
|
? matchDocError(merged, doc.path, localErrorBaseRef.current)
|
|
3749
3770
|
: null;
|
|
3750
3771
|
|
|
3751
|
-
// 013「所见即所编」焦点同步:AI 焦点 =
|
|
3772
|
+
// 013「所见即所编」焦点同步:AI 焦点 = 最后一次 create/open/update 成功
|
|
3773
|
+
// 事件的文档(事件驱动)。issue #4:order 只反映文档首次出现(创建)的
|
|
3774
|
+
// 顺序,第二份脑图出现后 order 末位永远钉在较新文件上,显示旧文档时
|
|
3775
|
+
// 比较永不相等——自发消息循环的根因;改成事件驱动后,模型打开/编辑了
|
|
3776
|
+
// 用户正在看的文档,比较即可达「相等」从而收敛。
|
|
3752
3777
|
// 脑图视图激活且其文档 ≠ 焦点时,仅在草稿为空时自动发送,让 AI
|
|
3753
3778
|
// 跟上用户眼睛看的那颗脑图,又不覆盖用户正在编辑的消息。
|
|
3754
|
-
const focusPath = docs.
|
|
3779
|
+
const focusPath = docs.latestActivePath
|
|
3780
|
+
?? (docs.order.length > 0 ? docs.order[docs.order.length - 1] : null);
|
|
3755
3781
|
const focusSentRef = react.useRef(null);
|
|
3782
|
+
// issue #4 回路断点:auto-open 在挂载时确立的初始「显示 vs AI 焦点」
|
|
3783
|
+
// 组合(focusMountSkipRef)是存量状态,不是新变化——重挂载(BS 卸载
|
|
3784
|
+
// 不可见 Tab、二开窗口、页面重载)不得为它自发消息。真实变化(人类
|
|
3785
|
+
// 切换显示 / AI 工具事件改焦点)产生的是别的组合,照常触发。
|
|
3786
|
+
const focusMountSkipRef = react.useRef(null);
|
|
3756
3787
|
// 所有这些状态都属于会话,不得让 A 会话的在途打开/目录结果遗留到 B。
|
|
3757
3788
|
// 这个 effect 必须先于自动打开 effect 声明:React 会按声明顺序运行同一轮
|
|
3758
3789
|
// effect,否则清理会把刚自动选中的脑图又切回「目录」。
|
|
@@ -3768,8 +3799,10 @@ window.__ModuleLoader__.load({
|
|
|
3768
3799
|
setTreeMenu(null);
|
|
3769
3800
|
setTabMenu(null);
|
|
3770
3801
|
setFilledHint("");
|
|
3802
|
+
setFocusNotice("");
|
|
3771
3803
|
localErrorBaseRef.current = null;
|
|
3772
3804
|
focusSentRef.current = null;
|
|
3805
|
+
focusMountSkipRef.current = null;
|
|
3773
3806
|
seen.current = null;
|
|
3774
3807
|
prevIdsRef.current = { path: null, ids: null };
|
|
3775
3808
|
return () => { documentReadRef.current += 1; };
|
|
@@ -3779,6 +3812,7 @@ window.__ModuleLoader__.load({
|
|
|
3779
3812
|
// 无论面板/Tab 当前是否可见,都拉起并切到这次意图对应的文档;首次挂载的
|
|
3780
3813
|
// 历史快照也照常显示最近一次打开的脑图,避免出现「AI 说已打开但面板没了」。
|
|
3781
3814
|
react.useEffect(() => {
|
|
3815
|
+
const firstSight = seen.current === null; // 挂载/会话切换的恢复轮
|
|
3782
3816
|
const targetPath = autoOpenTarget(merged, seen.current);
|
|
3783
3817
|
seen.current = openingEventKeys(merged);
|
|
3784
3818
|
if (targetPath) {
|
|
@@ -3790,21 +3824,49 @@ window.__ModuleLoader__.load({
|
|
|
3790
3824
|
setHiddenPath(null);
|
|
3791
3825
|
setCurrentPath(targetPath);
|
|
3792
3826
|
setView("mindmap");
|
|
3827
|
+
// issue #4:只在恢复轮记下初始「显示 vs AI 焦点」组合,供焦点
|
|
3828
|
+
// 同步豁免——重挂载/切会话恢复的存量失配不是新变化;之后的
|
|
3829
|
+
// auto-open 都是真实新事件,不再刷新豁免(那会误吞真实失配)。
|
|
3830
|
+
if (firstSight) {
|
|
3831
|
+
focusMountSkipRef.current = { active: targetPath, focus: docs.latestActivePath ?? null };
|
|
3832
|
+
}
|
|
3793
3833
|
}
|
|
3794
3834
|
}, [merged, sessionId]);
|
|
3795
3835
|
|
|
3836
|
+
// issue #4 防振荡:effect 只由真实变化触发(显示文档 active / AI 焦点
|
|
3837
|
+
// focusPath / 可见性 / 会话),依赖全部是值——不再挂 docs 对象身份
|
|
3838
|
+
// (每个工具事件都换引用,等于任何事件都重跑)与 fsTree.cwd(重挂载
|
|
3839
|
+
// 后目录树异步到达)。防重三层:① 每次挂载对同一文档至多 1 条
|
|
3840
|
+
// (focusSentRef);② 同一「显示文档 vs AI 焦点」组合跨重挂载不重发
|
|
3841
|
+
// (focusGuard 模块级记忆,BS 卸载不可见 Tab / 双窗口都清不掉它);
|
|
3842
|
+
// ③ 每会话自动发送总量硬上限,超限静默停止并一次性提示。
|
|
3796
3843
|
react.useEffect(() => {
|
|
3797
3844
|
if (!visible) return; // 面板/Tab 不可见时不自动发消息
|
|
3798
3845
|
if (!sessionId) return;
|
|
3799
3846
|
if (!active || active === TREE_TAB) return;
|
|
3800
3847
|
if (!docs.byPath[active]) return; // 本地占位:它的 open 请求已在途
|
|
3801
3848
|
if (focusPath === active) return;
|
|
3802
|
-
|
|
3803
|
-
|
|
3849
|
+
// 挂载恢复的存量失配(显示与焦点都等于 auto-open 记下的初始组合)
|
|
3850
|
+
// 不是新变化:重挂载/页面重载不得为它自发消息。
|
|
3851
|
+
if (focusMountSkipRef.current
|
|
3852
|
+
&& focusMountSkipRef.current.active === active
|
|
3853
|
+
&& focusMountSkipRef.current.focus === focusPath) return;
|
|
3854
|
+
if (focusSentRef.current === active) return; // 本次挂载已发过,等 AI 结果追平
|
|
3855
|
+
if (!focusGuard.maySend(sessionId, active, focusPath)) {
|
|
3856
|
+
// 组合已发过或已超会话上限:静默停止;超限只提示一次
|
|
3857
|
+
//(notified 标记在模块级 store 里,跨重挂载不重复提示)。
|
|
3858
|
+
if (focusGuard.shouldNotify(sessionId)) {
|
|
3859
|
+
focusGuard.markNotified(sessionId);
|
|
3860
|
+
setFocusNotice("自动焦点同步已达本会话上限,已静默停止;需要打开脑图请在聊天里直接说");
|
|
3861
|
+
}
|
|
3862
|
+
return;
|
|
3863
|
+
}
|
|
3864
|
+
const rel = fsTreeRef.current.cwd ? relPathWithin(fsTreeRef.current.cwd, active, stemOf(active)) : active;
|
|
3804
3865
|
if (submitChatCommand(`用 mindmap_open 打开 ${rel}`)) {
|
|
3805
3866
|
focusSentRef.current = active;
|
|
3867
|
+
focusGuard.record(sessionId, active, focusPath);
|
|
3806
3868
|
}
|
|
3807
|
-
}, [
|
|
3869
|
+
}, [sessionId, visible, active, focusPath]);
|
|
3808
3870
|
|
|
3809
3871
|
async function onExport() {
|
|
3810
3872
|
if (!tree || !doc || exporting) return;
|
|
@@ -4356,7 +4418,11 @@ window.__ModuleLoader__.load({
|
|
|
4356
4418
|
// 038 脑图区主体模式(目录 / 加载中 / 解析失败 / 画布):判定抽成纯函数,两个 variant
|
|
4357
4419
|
// 共用同一份分派,不再各写一遍三元链;解析失败有独立分支,不再静默走目录。
|
|
4358
4420
|
// 四态常量见 render.js 的 BODY_MODE(mindmapBodyMode 返回值与其同源)。
|
|
4359
|
-
|
|
4421
|
+
const bodyMode = mindmapBodyMode(active, TREE_TAB, doc, tree, parseError);
|
|
4422
|
+
// issue #4:焦点同步超上限的一次性提示,两种视图、目录/脑图都可见。
|
|
4423
|
+
const focusNoticeView = focusNotice
|
|
4424
|
+
? (0, react_jsx_runtime.jsx)("p", { style: S.emptyHint, children: focusNotice })
|
|
4425
|
+
: null;
|
|
4360
4426
|
const parseErrorView = bodyMode === BODY_MODE.error
|
|
4361
4427
|
? (0, react_jsx_runtime.jsxs)("div", { style: S.loadingWrap, children: [
|
|
4362
4428
|
(0, react_jsx_runtime.jsx)("span", { style: S.loadingFailMark, children: "⚠" }),
|
|
@@ -4424,6 +4490,7 @@ window.__ModuleLoader__.load({
|
|
|
4424
4490
|
] }),
|
|
4425
4491
|
// 016:脑图视图走 MindmapCanvas(自带滚动 + 居中 + 右上角缩放控制条),
|
|
4426
4492
|
// 不再套 S.body(避免嵌套滚动容器与双重 padding);目录/加载/空态保持原样。
|
|
4493
|
+
focusNoticeView,
|
|
4427
4494
|
bodyMode === BODY_MODE.canvas
|
|
4428
4495
|
? (0, react_jsx_runtime.jsx)(MindmapCanvas, { node: tree, theme, fitKey: doc && doc.path, reveal, inputActions, readInputState })
|
|
4429
4496
|
: (0, react_jsx_runtime.jsx)("div", { style: S.body, children: bodyMode === BODY_MODE.tree
|
|
@@ -4512,11 +4579,12 @@ window.__ModuleLoader__.load({
|
|
|
4512
4579
|
}, shown) : null,
|
|
4513
4580
|
] }),
|
|
4514
4581
|
];
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4582
|
+
return (0, react_jsx_runtime.jsxs)("div", { style: { display: "flex", flexDirection: "column", flex: "1 1 auto", minHeight: 0 }, children: [
|
|
4583
|
+
(0, react_jsx_runtime.jsx)("div", { style: wsHeaderStyle, children: wsHeaderChildren }),
|
|
4584
|
+
// 016:脑图视图走 MindmapCanvas(自带滚动 + 居中 + 右上角缩放控制条),
|
|
4585
|
+
// 不再套 S.body(避免嵌套滚动容器与双重 padding);目录/加载/空态保持原样。
|
|
4586
|
+
focusNoticeView,
|
|
4587
|
+
active === TREE_TAB || (doc && doc.op === "local") || !tree
|
|
4520
4588
|
? (0, react_jsx_runtime.jsx)("div", { style: S.body, children: active === TREE_TAB
|
|
4521
4589
|
? renderTree()
|
|
4522
4590
|
: (doc && doc.op === "local")
|
|
@@ -5014,6 +5082,62 @@ window.__ModuleLoader__.load({
|
|
|
5014
5082
|
})();
|
|
5015
5083
|
//#endregion
|
|
5016
5084
|
|
|
5085
|
+
//#region issue #4 焦点同步防振荡记忆
|
|
5086
|
+
// 焦点同步的防重与硬上限必须活过组件重挂载:BS 会卸载不可见的 Tab、
|
|
5087
|
+
// 同会话可能开两个窗口,每个面板实例各持一份组件 state(focusSentRef)
|
|
5088
|
+
// 会互相纠正,产生「打开 A→打开 B→打开 A」的自发消息振荡(issue #4)。
|
|
5089
|
+
// 因此防重记忆放模块级、按 sessionId 隔离:
|
|
5090
|
+
// - pairs:已自动发送过的「显示文档 \0 AI 焦点」组合——同一组合不重发
|
|
5091
|
+
// (防重按事件组合,不按单一 path;焦点真变了才算新事件);
|
|
5092
|
+
// - total:本会话自动发送总量,达到 FOCUS_SYNC_SESSION_CAP 后静默停止,
|
|
5093
|
+
// 由面板一次性提示(notified 标记,跨挂载不重复提示)。
|
|
5094
|
+
// 会话数超限时淘汰最旧条目,防长驻页面无限增长;clear() 供测试隔离。
|
|
5095
|
+
const FOCUS_SYNC_SESSION_CAP = 5;
|
|
5096
|
+
const FOCUS_SYNC_MAX_SESSIONS = 16;
|
|
5097
|
+
const focusGuard = (() => {
|
|
5098
|
+
const sessions = new Map();
|
|
5099
|
+
const pairKey = (activePath, focusPath) => `${activePath}\u0000${focusPath}`;
|
|
5100
|
+
function stateOf(sessionId) {
|
|
5101
|
+
let state = sessions.get(sessionId);
|
|
5102
|
+
if (!state) {
|
|
5103
|
+
state = { pairs: new Set(), total: 0, notified: false };
|
|
5104
|
+
sessions.set(sessionId, state);
|
|
5105
|
+
if (sessions.size > FOCUS_SYNC_MAX_SESSIONS) {
|
|
5106
|
+
sessions.delete(sessions.keys().next().value);
|
|
5107
|
+
}
|
|
5108
|
+
}
|
|
5109
|
+
return state;
|
|
5110
|
+
}
|
|
5111
|
+
return {
|
|
5112
|
+
// 该「显示文档 vs AI 焦点」组合是否还允许自动发送。
|
|
5113
|
+
maySend(sessionId, activePath, focusPath) {
|
|
5114
|
+
const state = sessions.get(sessionId);
|
|
5115
|
+
if (!state) return true;
|
|
5116
|
+
if (state.total >= FOCUS_SYNC_SESSION_CAP) return false;
|
|
5117
|
+
return !state.pairs.has(pairKey(activePath, focusPath));
|
|
5118
|
+
},
|
|
5119
|
+
// 记一次已发送(成对记忆 + 总量计数)。
|
|
5120
|
+
record(sessionId, activePath, focusPath) {
|
|
5121
|
+
const state = stateOf(sessionId);
|
|
5122
|
+
state.pairs.add(pairKey(activePath, focusPath));
|
|
5123
|
+
state.total += 1;
|
|
5124
|
+
},
|
|
5125
|
+
// 是否需要向用户提示一次「已超上限静默停止」。
|
|
5126
|
+
shouldNotify(sessionId) {
|
|
5127
|
+
const state = sessions.get(sessionId);
|
|
5128
|
+
return Boolean(state && state.total >= FOCUS_SYNC_SESSION_CAP && !state.notified);
|
|
5129
|
+
},
|
|
5130
|
+
markNotified(sessionId) {
|
|
5131
|
+
const state = sessions.get(sessionId);
|
|
5132
|
+
if (state) state.notified = true;
|
|
5133
|
+
},
|
|
5134
|
+
clear() {
|
|
5135
|
+
sessions.clear();
|
|
5136
|
+
},
|
|
5137
|
+
};
|
|
5138
|
+
})();
|
|
5139
|
+
//#endregion
|
|
5140
|
+
|
|
5017
5141
|
/**
|
|
5018
5142
|
* settings describe 应答的双代信封解析(023):dsh ≤0.1.1 的远端把
|
|
5019
5143
|
* 描述符聚合在 result.value.namespaces[];0.1.2-rc.1 起直接返回描述符
|
|
@@ -5404,6 +5528,9 @@ window.__ModuleLoader__.load({
|
|
|
5404
5528
|
// 026 better-sidebar 共存:服务总线 + 会话数据桥 + Tab 壳(供测试)。
|
|
5405
5529
|
sidebarBus,
|
|
5406
5530
|
sessionStore,
|
|
5531
|
+
// issue #4 焦点同步防振荡:跨重挂载的成对防重 + 会话总量硬上限(供测试)。
|
|
5532
|
+
focusGuard,
|
|
5533
|
+
FOCUS_SYNC_SESSION_CAP,
|
|
5407
5534
|
MindmapSidebarTab,
|
|
5408
5535
|
// 027 内嵌头部视觉对齐:壳无关工作区组件 + 样式表(供测试验证 variant 分支)。
|
|
5409
5536
|
MindmapWorkspace,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-mindmap",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.6",
|
|
4
4
|
"description": "Mindmap plugin for DeepSeek Harness: a plain markdown file in the working directory IS the mindmap; the chat edits it step by step and the right-side panel follows live.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|