dsh-vscode-mode 0.27.0 → 0.27.2
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/README.md +10 -4
- package/lib/client.js +135 -31
- package/lib/client.js.map +2 -2
- package/lib/index.js +5 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/client/reviewBar.ts +16 -0
- package/src/client/state/diffSummary.ts +28 -2
- package/src/client/ui/EditorPane.ts +30 -1
- package/src/client/ui/EditorView.ts +13 -29
- package/src/client/ui/tabReveal.ts +64 -0
- package/src/pending/kernel.ts +8 -2
package/README.md
CHANGED
|
@@ -587,13 +587,13 @@ profile 请替换为实际目标,不要把示例目录当成当前运行 profi
|
|
|
587
587
|
|
|
588
588
|
```bash
|
|
589
589
|
# ① Git 安装(clone + prepare 构建;推荐打固定 tag)
|
|
590
|
-
dsh plugin --profile web add github:Lenonss/DSH_VsCodeMode#v0.27.
|
|
590
|
+
dsh plugin --profile web add github:Lenonss/DSH_VsCodeMode#v0.27.2
|
|
591
591
|
|
|
592
592
|
# ② npm 注册表(发布到 npm 后)
|
|
593
|
-
dsh plugin --profile web add dsh-vscode-mode@0.27.
|
|
593
|
+
dsh plugin --profile web add dsh-vscode-mode@0.27.2
|
|
594
594
|
|
|
595
595
|
# ③ GitHub Release tgz 直装(Release asset 可用后)
|
|
596
|
-
dsh plugin --profile web add https://github.com/Lenonss/DSH_VsCodeMode/releases/download/v0.27.
|
|
596
|
+
dsh plugin --profile web add https://github.com/Lenonss/DSH_VsCodeMode/releases/download/v0.27.2/dsh-vscode-mode-0.27.2.tgz
|
|
597
597
|
```
|
|
598
598
|
|
|
599
599
|
> **DSH 版本政策(0.17.0 起)**:六项 DSH peer 仍统一声明为 `*`,另以
|
|
@@ -973,6 +973,8 @@ Keep All / Undo All 却是亮的。修复:单文件 Keep / Undo 覆盖冲突
|
|
|
973
973
|
|
|
974
974
|
| 版本 | 要点 |
|
|
975
975
|
| --- | --- |
|
|
976
|
+
| v0.27.2 | 当前编辑文件 Tab 自动滚入可见区域;分组独立定位,适配宽度变化,不抢编辑焦点 |
|
|
977
|
+
| v0.27.1 | 修复仅 LF/CRLF 或 BOM 差异造成的空待审与差异栏残留;统一累计待审路径路由并过滤已归档历史记录 |
|
|
976
978
|
| v0.27.0 | DSH alpha.3 官方菜单/Forge 导航/设置图标与能力诊断;多目标 patch 字节采集;回滚版本与会话策略守卫;工作区共享差异基线;隐藏轮询门控与导航隔离 |
|
|
977
979
|
| v0.26.0 | Keep All 改为单次批量(不再因单条过期/冷端条目整批中止,2N+1 次往返降到 2 次);差异审查旧通道遗留清理:待审接管的旧记录自动结案、守卫改会话作用域、失败原因不再被通用文案吞掉 |
|
|
978
980
|
| v0.25.1 | 下载到本机支持选择保存文件夹(目录选择器),按工作区相对路径写入 |
|
|
@@ -986,7 +988,11 @@ Keep All / Undo All 却是亮的。修复:单文件 Keep / Undo 覆盖冲突
|
|
|
986
988
|
| v0.23.0 | 快捷菜单:可拖动悬浮按钮 + 自定义菜单树 |
|
|
987
989
|
|
|
988
990
|
<details>
|
|
989
|
-
<summary>完整版本记录(v0.27.
|
|
991
|
+
<summary>完整版本记录(v0.27.2 → v0.1.5x,点击展开)</summary>
|
|
992
|
+
|
|
993
|
+
- **v0.27.2**:活动文件与计划预览 Tab 按编辑分组独立保持可见;打开、切换、关闭页签及编辑区尺寸变化后做最小横向定位,已可见时不滚动,不抢键盘焦点、不带动正文。保留手动横滚,超宽 Tab 显示名称起始部分。当前 GUI 未加载新 bundle,真实交互验收缺口已由用户接受;发布不自动安装或重启。参见 [0.27.2 发布说明](docs/release-0.27.2.md)。
|
|
994
|
+
|
|
995
|
+
- **v0.27.1**:净零判定复用差异生成器的逻辑行口径,消除仅 LF/CRLF 或 BOM 不同造成的「无差异块但仍计入待审」;保留真实文本与末尾换行增删,不改原始快照和磁盘文件。累计待审详情与工具栏统一身份解析,避免误走历史改动栏;汇总与批量列表排除已归档记录。客户端空文本差异收敛保留现有能力、脏缓冲和忙状态守卫。Web Host 重启后实测三个空待审归零、差异栏消失,三个游戏文件 SHA256 不变。参见 [0.27.1 发布说明](docs/release-0.27.1.md)。
|
|
990
996
|
|
|
991
997
|
- **v0.27.0**:接入 DSH 0.2.2-alpha.3 官方共享菜单(树/页签、键盘入口、陈旧目标守卫、旧 Host 回退)、Forge 面板/本地变更导航(缺能力隐藏,不接管 PR 快照)、设置图标与能力诊断;apply_patch 多目标采集采用独立原始字节前后像,保留 BOM/行尾,不把结果 before:null 当作文件缺失。回滚使用 provider 原子版本与内容守卫,删除无直接文件系统兜底,修复累计待审入口漏传会话沙箱策略;差异按工作区共享基线及接管登记。展示轮询隐藏门控与单飞合并,LSP 旧会话结果隔离,导航补列及 owner/session 守卫。实机 write/edit → GUI Undo → 磁盘读回已通过。**已知缺口**:Undo 后当前已结算文件可能仍显示“待审”和超出总数的序号;真实 apply_patch 工具、Forge 已启用环境、真实后台请求与多会话完整矩阵尚未实测。缺口经维护者接受发布;不宣称完整端到端验收或 Console 零错误。
|
|
992
998
|
|
package/lib/client.js
CHANGED
|
@@ -380,11 +380,105 @@ window.__ModuleLoader__.load({
|
|
|
380
380
|
};
|
|
381
381
|
}
|
|
382
382
|
//#endregion
|
|
383
|
+
//#region src/client/ui/tabReveal.ts
|
|
384
|
+
/** Group-local active tab visibility. @author ddj 2026年11月05号 */
|
|
385
|
+
/**
|
|
386
|
+
* Reveal the selected tab without moving the page or keyboard focus.
|
|
387
|
+
* @public @author ddj 2026年11月05号
|
|
388
|
+
* @param host Tab strip belonging to one editor group.
|
|
389
|
+
* @sideEffects Updates only the strip's horizontal scroll position.
|
|
390
|
+
*/
|
|
391
|
+
function revealTab(host) {
|
|
392
|
+
const tab = host.querySelector(".edrv-tab-active");
|
|
393
|
+
if (!tab || host.clientWidth <= 0) return;
|
|
394
|
+
const stripRect = host.getBoundingClientRect();
|
|
395
|
+
const tabRect = tab.getBoundingClientRect();
|
|
396
|
+
const left = stripRect.left + host.clientLeft;
|
|
397
|
+
const right = left + host.clientWidth;
|
|
398
|
+
let delta = 0;
|
|
399
|
+
if (tabRect.width > host.clientWidth || tabRect.left < left) delta = tabRect.left - left;
|
|
400
|
+
else if (tabRect.right > right) delta = tabRect.right - right;
|
|
401
|
+
if (Math.abs(delta) < .5) return;
|
|
402
|
+
const maximum = Math.max(0, host.scrollWidth - host.clientWidth);
|
|
403
|
+
const next = Math.max(0, Math.min(maximum, host.scrollLeft + delta));
|
|
404
|
+
if (next !== host.scrollLeft) host.scrollLeft = next;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* Observe geometry changes, not scrolling, so manual tab browsing remains possible.
|
|
408
|
+
* @public @author ddj 2026年11月05号
|
|
409
|
+
* @param host Group tab strip after its DOM commit.
|
|
410
|
+
* @returns Cleanup cancelling pending work and disconnecting geometry observation.
|
|
411
|
+
*/
|
|
412
|
+
function watchTabReveal(host) {
|
|
413
|
+
const view = host.ownerDocument.defaultView;
|
|
414
|
+
let frame;
|
|
415
|
+
let disposed = false;
|
|
416
|
+
/** @private @author ddj 2026年11月05号 Reveal the latest selected tab after layout. */
|
|
417
|
+
function measure() {
|
|
418
|
+
frame = void 0;
|
|
419
|
+
if (!disposed) revealTab(host);
|
|
420
|
+
}
|
|
421
|
+
/** @private @author ddj 2026年11月05号 Coalesce resize notifications into one layout read. */
|
|
422
|
+
function schedule() {
|
|
423
|
+
if (disposed || frame !== void 0 || !view) return;
|
|
424
|
+
frame = view.requestAnimationFrame(measure);
|
|
425
|
+
}
|
|
426
|
+
revealTab(host);
|
|
427
|
+
schedule();
|
|
428
|
+
const observer = typeof ResizeObserver === "function" ? new ResizeObserver(schedule) : void 0;
|
|
429
|
+
observer?.observe(host);
|
|
430
|
+
const tab = host.querySelector(".edrv-tab-active");
|
|
431
|
+
if (tab) observer?.observe(tab);
|
|
432
|
+
/** @private @author ddj 2026年11月05号 Cancel work owned by the previous selection or pane. */
|
|
433
|
+
function dispose() {
|
|
434
|
+
disposed = true;
|
|
435
|
+
observer?.disconnect();
|
|
436
|
+
if (frame !== void 0) view?.cancelAnimationFrame(frame);
|
|
437
|
+
frame = void 0;
|
|
438
|
+
}
|
|
439
|
+
return dispose;
|
|
440
|
+
}
|
|
441
|
+
//#endregion
|
|
383
442
|
//#region src/client/ui/EditorPane.ts
|
|
384
443
|
/** Independent group views; workbench owns documents, saves and commands. @author ddj 2026年10月14号 */
|
|
444
|
+
/**
|
|
445
|
+
* Keep each group's selected tab visible while preserving the workbench wheel ref.
|
|
446
|
+
* @private @author ddj 2026年11月05号
|
|
447
|
+
* @param props Group selection and shared strip reference.
|
|
448
|
+
* @returns Stable callback ref for this pane's strip.
|
|
449
|
+
*/
|
|
450
|
+
function useTabReveal(props) {
|
|
451
|
+
const hostRef = react$1.default.useRef(null);
|
|
452
|
+
/** @private @author ddj 2026年11月05号 @param node Committed strip, or null on detach. Synchronize both owners. */
|
|
453
|
+
function bindStrip(node) {
|
|
454
|
+
hostRef.current = node;
|
|
455
|
+
if (typeof props.tabsRef === "function") props.tabsRef(node);
|
|
456
|
+
else if (props.tabsRef) props.tabsRef.current = node;
|
|
457
|
+
}
|
|
458
|
+
const stripRef = react$1.default.useCallback(bindStrip, [props.tabsRef]);
|
|
459
|
+
const tabShape = JSON.stringify(props.group.tabs.map((tab) => [
|
|
460
|
+
tab.path,
|
|
461
|
+
tab.pinned,
|
|
462
|
+
props.dirty[tab.path]
|
|
463
|
+
]));
|
|
464
|
+
/** @private @author ddj 2026年11月05号 @returns Geometry observer cleanup for this committed selection. */
|
|
465
|
+
function observeStrip() {
|
|
466
|
+
if (hostRef.current) return watchTabReveal(hostRef.current);
|
|
467
|
+
}
|
|
468
|
+
react$1.default.useLayoutEffect(observeStrip, [
|
|
469
|
+
props.group.active,
|
|
470
|
+
props.focused,
|
|
471
|
+
props.suppressActive,
|
|
472
|
+
props.previewActive,
|
|
473
|
+
tabShape,
|
|
474
|
+
props.tabsRef
|
|
475
|
+
]);
|
|
476
|
+
return stripRef;
|
|
477
|
+
}
|
|
385
478
|
/** @public @author ddj 2026年10月14号 @param props Group callbacks and file view. @returns Accessible tab strip and drop target. */
|
|
386
479
|
function EditorPane(props) {
|
|
387
480
|
const { group } = props;
|
|
481
|
+
const stripRef = useTabReveal(props);
|
|
388
482
|
const suppressActive = props.suppressActive === true;
|
|
389
483
|
/** @private @author ddj 2026年10月20号 @param tab File record. @returns Draggable tab with isolated close control. */
|
|
390
484
|
function renderTab(tab) {
|
|
@@ -465,7 +559,7 @@ window.__ModuleLoader__.load({
|
|
|
465
559
|
className: "edrv-tabs",
|
|
466
560
|
role: "tablist",
|
|
467
561
|
"data-edrv-group-tabs": group.id,
|
|
468
|
-
ref:
|
|
562
|
+
ref: stripRef
|
|
469
563
|
}, group.tabs.map(renderTab), props.extras), props.tools), react$1.default.createElement("div", {
|
|
470
564
|
className: "edrv-group-body",
|
|
471
565
|
role: "tabpanel"
|
|
@@ -3721,10 +3815,6 @@ window.__ModuleLoader__.load({
|
|
|
3721
3815
|
}
|
|
3722
3816
|
}
|
|
3723
3817
|
//#endregion
|
|
3724
|
-
//#region src/shared/pendingReview.ts
|
|
3725
|
-
/** 待审条目在面板列表里的 id 前缀;客户端与 Host 共用这一份口径。 */
|
|
3726
|
-
const PENDING_PREFIX = "pending:";
|
|
3727
|
-
//#endregion
|
|
3728
3818
|
//#region src/client/reviewBatch.ts
|
|
3729
3819
|
/**
|
|
3730
3820
|
* @public
|
|
@@ -5546,6 +5636,25 @@ window.__ModuleLoader__.load({
|
|
|
5546
5636
|
function diffPathKey(path) {
|
|
5547
5637
|
return pathKeyFor(path, false);
|
|
5548
5638
|
}
|
|
5639
|
+
/**
|
|
5640
|
+
* @public
|
|
5641
|
+
* @author ddj 2026年11月5号
|
|
5642
|
+
* @description: 解析编辑器权威审查路径,累计待审优先,详情与工具栏共用同一来源。
|
|
5643
|
+
* @param path 当前文件
|
|
5644
|
+
* @param page 权威审查元数据
|
|
5645
|
+
* @param sameFile 工作区路径比较器,缺省按完整路径键比较
|
|
5646
|
+
* @returns 后端审查路径;未接管时返回 null
|
|
5647
|
+
*/
|
|
5648
|
+
function reviewPathOf(path, page, sameFile = (left, right) => diffPathKey(left) === diffPathKey(right)) {
|
|
5649
|
+
if (!path || !page) return null;
|
|
5650
|
+
for (const item of page.items) {
|
|
5651
|
+
if (!item.id.startsWith("pending:")) continue;
|
|
5652
|
+
const currentPath = item.currentPath || item.path;
|
|
5653
|
+
const identity = item.id.slice(8);
|
|
5654
|
+
if (sameFile(currentPath, path) || sameFile(identity, path)) return currentPath;
|
|
5655
|
+
}
|
|
5656
|
+
return page.overview?.coveredPaths.find((candidate) => sameFile(candidate, path)) ?? null;
|
|
5657
|
+
}
|
|
5549
5658
|
/** @public @author ddj 2026年10月26号 @param path Current editor file. @param page Authoritative metadata, including decided paths. @returns Whether legacy actions must be hidden for this file. */
|
|
5550
5659
|
function officialPath(path, page) {
|
|
5551
5660
|
const key = diffPathKey(path);
|
|
@@ -5608,7 +5717,7 @@ window.__ModuleLoader__.load({
|
|
|
5608
5717
|
/** @public @author ddj 2026年10月26号 @param records Tool-call history. @param page Official file navigation, never only its first 50 rows. @returns Pending first, then official; legacy paths remain explicitly labelled. */
|
|
5609
5718
|
function diffSummary(records, page) {
|
|
5610
5719
|
const pending = pendingRowsOf(page);
|
|
5611
|
-
const legacy = summarize(records.filter((record) => !pending.covered.has(diffPathKey(record.path)) && !officialPath(record.path, page)));
|
|
5720
|
+
const legacy = summarize(records.filter((record) => record.archived !== true && !pending.covered.has(diffPathKey(record.path)) && !officialPath(record.path, page)));
|
|
5612
5721
|
const files = [...pending.rows];
|
|
5613
5722
|
for (const file of page?.overview?.files ?? []) {
|
|
5614
5723
|
if (pending.covered.has(diffPathKey(file.path))) continue;
|
|
@@ -384013,6 +384122,18 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
384013
384122
|
* 必须显式区分,否则用户会误判为插件未升级。
|
|
384014
384123
|
* 作者 ddj 2026年10月27号
|
|
384015
384124
|
*/
|
|
384125
|
+
/**
|
|
384126
|
+
* @public
|
|
384127
|
+
* @author ddj 2026年11月5号
|
|
384128
|
+
* @description 仅收敛已成功生成的空文本净差异;不把定位失败、二进制或生成异常当作已解决。
|
|
384129
|
+
* @param detail 已加载的权威详情
|
|
384130
|
+
* @returns 是否可以无写盘结案
|
|
384131
|
+
*/
|
|
384132
|
+
function emptyTextReview(detail) {
|
|
384133
|
+
if (!detail || detail.item.decision !== "pending" || !detail.item.current) return false;
|
|
384134
|
+
if (detail.capability.keep !== true || detail.diff.kind !== "text") return false;
|
|
384135
|
+
return detail.diff.hunks.length === 0 && detail.blocks.length === 0 && detail.item.added === 0 && detail.item.deleted === 0;
|
|
384136
|
+
}
|
|
384016
384137
|
/** @private @author ddj 2026年10月27号 @param value 任意计数输入 @returns 非负整数,NaN/负数/非数字归零 */
|
|
384017
384138
|
function safeCount(value) {
|
|
384018
384139
|
const parsed = Number(value);
|
|
@@ -394846,10 +394967,8 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
394846
394967
|
]);
|
|
394847
394968
|
react$1.default.useEffect(() => {
|
|
394848
394969
|
const controller = new AbortController();
|
|
394849
|
-
const
|
|
394850
|
-
|
|
394851
|
-
const reviewPath = coveredPath ?? pendingPath;
|
|
394852
|
-
dbg(sessionId, `[DEBUG reviewPath] active=${active ?? "(null)"} covered=${coveredPath ?? "(none)"} pending=${pendingPath ?? "(none)"} coveredCount=${review.page?.overview?.coveredPaths.length ?? -1} items=${review.page?.items?.length ?? -1} overview=${review.page?.overview ? 1 : 0}`);
|
|
394970
|
+
const reviewPath = reviewPathOf(active, review.page, sameFile);
|
|
394971
|
+
dbg(sessionId, `[DEBUG reviewPath] active=${active ?? "(null)"} resolved=${reviewPath ?? "(none)"} coveredCount=${review.page?.overview?.coveredPaths.length ?? -1} items=${review.page?.items?.length ?? -1} overview=${review.page?.overview ? 1 : 0}`);
|
|
394853
394972
|
if (!active || !reviewPath) {
|
|
394854
394973
|
setOfficialDetail(null);
|
|
394855
394974
|
setOfficialRecords([]);
|
|
@@ -394965,9 +395084,9 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
394965
395084
|
const noBlocks = !!officialDetail && (officialDetail.diff.kind !== "text" || officialDetail.diff.hunks.length === 0);
|
|
394966
395085
|
const decideRegions = react$1.default.useMemo(() => [...pendingRegions, ...staleRegions], [pendingRegions, staleRegions]);
|
|
394967
395086
|
react$1.default.useEffect(() => {
|
|
394968
|
-
if (!officialDetail ||
|
|
394969
|
-
if (pendingRegions.length > 0 || staleRegions.length === 0) return;
|
|
394970
|
-
if (
|
|
395087
|
+
if (!officialDetail || batchBusyRef.current) return;
|
|
395088
|
+
if (!emptyTextReview(officialDetail) && (contentReady !== true || pendingRegions.length > 0 || staleRegions.length === 0 || noBlocks)) return;
|
|
395089
|
+
if (officialDetail.capability?.keep !== true) return;
|
|
394971
395090
|
if (dirtyRef.current[active]) return;
|
|
394972
395091
|
settleInvisibleRecord(officialDetail);
|
|
394973
395092
|
}, [
|
|
@@ -396561,22 +396680,6 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
396561
396680
|
for (const [eventName] of handlers) window.removeEventListener(eventName, onCommand);
|
|
396562
396681
|
};
|
|
396563
396682
|
}, [sessionId]);
|
|
396564
|
-
react$1.default.useEffect(() => {
|
|
396565
|
-
const host = tabsHostRef.current;
|
|
396566
|
-
if (!host) return;
|
|
396567
|
-
const el = host.querySelector?.(".edrv-tab-active");
|
|
396568
|
-
if (!el) return;
|
|
396569
|
-
const left = el.offsetLeft;
|
|
396570
|
-
const right = left + el.offsetWidth;
|
|
396571
|
-
if (left < host.scrollLeft) host.scrollLeft = left;
|
|
396572
|
-
else if (right > host.scrollLeft + host.clientWidth) host.scrollLeft = right - host.clientWidth;
|
|
396573
|
-
}, [
|
|
396574
|
-
active,
|
|
396575
|
-
planActive,
|
|
396576
|
-
planTabs.length,
|
|
396577
|
-
tabs.length,
|
|
396578
|
-
rowOwner
|
|
396579
|
-
]);
|
|
396580
396683
|
react$1.default.useEffect(() => attachHorizontalWheel(tabsHostRef.current), [rowOwner]);
|
|
396581
396684
|
react$1.default.useEffect(() => {
|
|
396582
396685
|
const onPointer = (e) => {
|
|
@@ -398101,7 +398204,7 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
398101
398204
|
const allPending = react$1.default.useMemo(() => {
|
|
398102
398205
|
const out = [];
|
|
398103
398206
|
for (const rec of Object.values(records)) {
|
|
398104
|
-
if (rec.superseded === true || coveredPaths.has(diffPathKey(rec.path))) continue;
|
|
398207
|
+
if (rec.archived === true || rec.superseded === true || coveredPaths.has(diffPathKey(rec.path))) continue;
|
|
398105
398208
|
const perHunk = Array.isArray(rec.decisions?.perHunk) ? rec.decisions.perHunk : [];
|
|
398106
398209
|
const hunks = Array.isArray(rec.hunks) ? rec.hunks : [];
|
|
398107
398210
|
for (let i = 0; i < hunks.length; i++) if ((perHunk.length ? perHunk[i] : rec.decisions.call) === "pending" && !noopHunk(rec, hunks[i])) out.push({
|
|
@@ -399503,6 +399606,7 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
399503
399606
|
focused,
|
|
399504
399607
|
dirty: dirtyMap,
|
|
399505
399608
|
suppressActive: hideDiskActive,
|
|
399609
|
+
previewActive: chrome ? planActive : void 0,
|
|
399506
399610
|
tabsRef: chrome ? tabsHostRef : void 0,
|
|
399507
399611
|
extras: chrome ? planTabExtras : void 0,
|
|
399508
399612
|
tools: chrome ? rowTools : void 0,
|
|
@@ -399923,7 +400027,7 @@ td.UniverTableCell, th.UniverTableCell{mso-padding-alt:0cm 5.4pt 0cm 5.4pt;}
|
|
|
399923
400027
|
* @author ddj 2026年09月29号
|
|
399924
400028
|
* @returns 含布局及操作回调的差异快照
|
|
399925
400029
|
*/
|
|
399926
|
-
const officialFile = review.page
|
|
400030
|
+
const officialFile = reviewPathOf(active, review.page, sameFile);
|
|
399927
400031
|
const officialDown = officialFile ? null : officialDownView(review.error);
|
|
399928
400032
|
const rawReviewError = review.error || error;
|
|
399929
400033
|
const sessionDown = isSessionMissingError(rawReviewError);
|
package/lib/client.js.map
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/lib/client.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 35801402 bytes
|
|
4
|
+
sha256: 91105e05ed90baaf23e1c0d55a8001446938926165eb9229feac384c3290c79b
|
package/lib/index.js
CHANGED
|
@@ -9905,12 +9905,15 @@ function sameEntryText(left, right) {
|
|
|
9905
9905
|
}
|
|
9906
9906
|
/**
|
|
9907
9907
|
* @author ddj 2026年10月29号
|
|
9908
|
-
* @description:
|
|
9908
|
+
* @description: 净零判定与文本差异生成器保持逻辑行口径一致;只忽略 BOM 和换行编码,不改存储原文。
|
|
9909
9909
|
* @param entry 待审条目
|
|
9910
9910
|
* @returns 是否已无净差异
|
|
9911
9911
|
*/
|
|
9912
9912
|
function isSettled(entry) {
|
|
9913
|
-
|
|
9913
|
+
if (sameEntryText(entry.oldText, entry.newText)) return true;
|
|
9914
|
+
const baselineLines = logicalLines(entry.oldText);
|
|
9915
|
+
const currentLines = logicalLines(entry.newText);
|
|
9916
|
+
return baselineLines.length === currentLines.length && baselineLines.every((line, index) => line === currentLines[index]);
|
|
9914
9917
|
}
|
|
9915
9918
|
/**
|
|
9916
9919
|
* @author ddj 2026年10月29号
|