@jayyuen66/dsh-dir-prep-organize 0.1.11 → 0.1.12
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 +15 -0
- package/client.js +10 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
[语义化版本](https://semver.org/lang/zh-CN/)。最新版本在最上。这里的偏离是刻意的:版本标题
|
|
5
5
|
不写发布日期,各版发布时间以 npm registry 为准(`npm view <包名> time` 取得到)。
|
|
6
6
|
|
|
7
|
+
## 0.1.12
|
|
8
|
+
|
|
9
|
+
设置卡的下拉候选与说明浮层不再漂到浏览器最左边;shared 抬到 `^0.2.8`(含运行时几何自检),CI 的 action 钉版升到最新。默认模板与行为不变。
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **下拉候选与说明浮层被钉在视口左边缘**:`.dsu-menu` 与 `.dsu-tip` 的 `position-area: block-end span-inline-start` 选中的是「行内起始列 + 中间列」,而 `position: fixed` 下该区域的起始边是**视口左边缘**、不是触发器左边缘,再叠一条 `justify-self: start`,浮层就落在 `x=0`。改为 `block-end span-inline-end`——真实 Chromium(patchright headless,156.0.8078.4)实测:1440px 视口、触发器左边缘 860px,改前浮层左边缘 0,改后 860;触发器贴到右侧时 `flip-inline` 会改成右边缘对齐,贴到视口底部时 `flip-block` 翻到上方。
|
|
14
|
+
- **锚定没兑现时改回 JS 矩形定位**:`select.ts` 与 `field.ts` 的 `place()` 此前只要 `CSS.supports("position-area: block-end")` 为真就直接 `return`,方向性错误没有任何兜底。现在锚定后先量一次浮层矩形,用 shared 0.2.8 的 `anchorPlacementOff` 判它是否真贴在触发器上(行内起始边或结束边任一在 2px 容差内贴住,且块向落在触发器下方或上方),不通过才把 `position-area` 显式置 `none` 再写 `left` / `top`。顺序是承重的:实测同时留着 `position-area` 只写坐标时块向仍由锚定决定(浮层 `y` 落在 314 而不是 160),必须先关。回退是单向的——同一个浮层一旦走过 JS 路径,后续 `resize` 不再尝试锚定,避免两个定位源来回抢。
|
|
15
|
+
- **回归测试**:`test/card-ui.test.ts` 新增 `anchorPlacementOff` 的四种对齐形态(左边缘对齐、`flip-inline` 右对齐、`flip-block` 翻上方、两轴都不沾)与容差边界,以及三条锚定用例(浮层真贴住时不写 JS 坐标、被钉到视口左侧时改写坐标并关掉 `position-area`、回退过的浮层不再重试锚定)。
|
|
16
|
+
|
|
17
|
+
### Changed
|
|
18
|
+
|
|
19
|
+
- **运行时依赖 shared 抬到 `^0.2.8`**:`pnpm-workspace.yaml` 的 catalog 由根 `sync` 投影,`pnpm-lock.yaml` 随 `sync:lock` 重解;`client.js` 按新 shared 重建,内联的 `CARD_UI_CSS` 逐字节等于已装 shared 导出的那一份。0.2.8 新增的 `anchorPlacementOff` / `ANCHOR_PLACEMENT_TOLERANCE` 只被卡片内部使用,本包对外工具与 Remote 方法名单不变。
|
|
20
|
+
- **CI 的 action 钉版升到最新**:`github/codeql-action` 的 `init` / `analyze` / `upload-sarif` 由 `v4.39.1` 升到 `v4.39.3`(`33d7b85da1a04171e211befe2c739303b9a4c066`),`pnpm/action-setup` 由 `v6.1.0`(`ea17c68d…`)升到 `v6.1.1`(`73e46992…`)。钉版仍是 40 位 commit SHA + 版本注释,由根 `scripts/upgrade-actions.mjs` 现量比对上游 tag 后改写,`--check` 可复跑。
|
|
21
|
+
|
|
7
22
|
## 0.1.11
|
|
8
23
|
|
|
9
24
|
宿主开发基线抬到 `0.2.2-rc.2`,支持窗口收到 `^0.2.2-rc.1`;vendored 角色库与上游重新对齐。默认模板与行为不变。
|
package/client.js
CHANGED
|
@@ -409,7 +409,7 @@ const UI_MESSAGES = {
|
|
|
409
409
|
builtinRetry: "Retry"
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
|
-
// node_modules/@jayyuen66/dsh-plugin-shared/dist/card-ui-
|
|
412
|
+
// node_modules/@jayyuen66/dsh-plugin-shared/dist/card-ui-yf56_khz.js
|
|
413
413
|
const c = `
|
|
414
414
|
.dsu-form{display:flex;flex-direction:column}
|
|
415
415
|
.dsu-section{margin-top:24px;padding-top:24px;border-top:.5px solid var(--dsw-alias-border-l1)}
|
|
@@ -430,11 +430,11 @@ const c = `
|
|
|
430
430
|
.dsu-helpBtn{appearance:none;border:0;background:transparent;padding:0;width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;color:var(--dsw-alias-label-tertiary);cursor:help;border-radius:50%;flex:none}
|
|
431
431
|
.dsu-help:hover .dsu-helpBtn,.dsu-helpBtn:focus-visible{color:var(--dsw-alias-label-primary)}
|
|
432
432
|
.dsu-helpBtn:focus-visible{outline:2px solid var(--dsw-alias-state-business-primary);outline-offset:1px}
|
|
433
|
-
.dsu-tip{position:fixed;z-index:60;box-sizing:border-box;max-width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;overflow-wrap:anywhere;padding:10px 12px;border-radius:10px;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l3);box-shadow:0 12px 32px rgb(0 0 0 / 45%);font-size:12px;line-height:1.6;font-weight:400;color:var(--dsw-alias-label-secondary)}
|
|
433
|
+
.dsu-tip{width:max-content;position:fixed;position-area:block-end span-inline-end;justify-self:start;margin-top:8px;z-index:60;box-sizing:border-box;max-width:min(340px,calc(100vw - 16px));max-height:calc(100vh - 16px);overflow:auto;overflow-wrap:anywhere;padding:10px 12px;border-radius:10px;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l3);box-shadow:0 12px 32px rgb(0 0 0 / 45%);font-size:12px;line-height:1.6;font-weight:400;color:var(--dsw-alias-label-secondary)}
|
|
434
434
|
.dsu-input{width:100%;height:34px;padding:0 12px;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary);font:inherit;font-size:13px}
|
|
435
435
|
.dsu-input:focus-visible{outline:none;border-color:var(--dsw-alias-state-business-primary)}
|
|
436
436
|
.dsu-input[aria-invalid="true"]{border-color:var(--dsw-alias-state-error-primary)}
|
|
437
|
-
.dsu-input:disabled{color:var(--dsw-alias-label-tertiary);cursor:
|
|
437
|
+
.dsu-input:disabled{color:var(--dsw-alias-label-tertiary);cursor:not-allowed}
|
|
438
438
|
.dsu-input::placeholder{color:var(--dsw-alias-label-tertiary)}
|
|
439
439
|
.dsu-textarea{height:auto;min-height:96px;padding:8px 12px;line-height:1.6;resize:vertical}
|
|
440
440
|
.dsu-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
|
|
@@ -455,7 +455,7 @@ const c = `
|
|
|
455
455
|
.dsu-selectValue{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
456
456
|
.dsu-chevron{flex:none;color:var(--dsw-alias-label-tertiary);transition:transform .16s}
|
|
457
457
|
.dsu-select[aria-expanded="true"] .dsu-chevron{transform:rotate(180deg)}
|
|
458
|
-
.dsu-menu{position:fixed;position-area:block-end span-inline-
|
|
458
|
+
.dsu-menu{position:fixed;position-area:block-end span-inline-end;justify-self:start;margin-top:6px;z-index:70;padding:4px;background:var(--dsw-alias-bg-layer-2);border:.5px solid var(--dsw-alias-border-l3);border-radius:12px;box-shadow:0 12px 32px rgb(0 0 0 / 50%);max-height:280px;overflow:auto}
|
|
459
459
|
.dsu-option{appearance:none;border:0;background:transparent;color:var(--dsw-alias-label-primary);font:inherit;font-size:13px;line-height:1.4;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:8px;cursor:pointer;text-align:left}
|
|
460
460
|
.dsu-option:hover,.dsu-option[data-active="true"]{background:var(--dsw-alias-bg-layer-3)}
|
|
461
461
|
.dsu-option:disabled{color:var(--dsw-alias-label-tertiary);cursor:not-allowed}
|
|
@@ -495,7 +495,7 @@ function u(t) {
|
|
|
495
495
|
function d(t) {
|
|
496
496
|
return (0, react.createElement)(`section`, { className: `dsu-section` }, (0, react.createElement)(`h2`, { className: `dsu-sectionTitle` }, t.title), t.hint === void 0 ? null : (0, react.createElement)(`p`, { className: `dsu-sectionHint` }, t.hint), t.children);
|
|
497
497
|
}
|
|
498
|
-
function
|
|
498
|
+
function w(t) {
|
|
499
499
|
let n = !t.writable || t.busy || !t.dirty, r;
|
|
500
500
|
return r = t.error === null ? t.writable ? t.dirty ? t.dirtyLabel : t.cleanLabel : t.readOnlyLabel : t.error, (0, react.createElement)(`div`, {
|
|
501
501
|
className: `dsu-savebar`,
|
|
@@ -512,7 +512,10 @@ function C(t) {
|
|
|
512
512
|
"data-field": `discard`,
|
|
513
513
|
disabled: n,
|
|
514
514
|
onClick: t.onDiscard
|
|
515
|
-
}, t.revertLabel), (0, react.createElement)(`span`, {
|
|
515
|
+
}, t.revertLabel), (0, react.createElement)(`span`, {
|
|
516
|
+
role: `status`,
|
|
517
|
+
className: t.error === null ? `dsu-status` : `dsu-status dsu-statusError`
|
|
518
|
+
}, r));
|
|
516
519
|
}
|
|
517
520
|
// node_modules/@jayyuen66/dsh-plugin-shared/dist/errors.js
|
|
518
521
|
function t(e) {
|
|
@@ -1961,7 +1964,7 @@ function createCardBody(view) {
|
|
|
1961
1964
|
const { onCommit, onDelete, onAdd, onImported, onRootChange, onRootDelete, onRootAdd } = view.draftActions;
|
|
1962
1965
|
const { onSave, onDiscard, onReset } = view.persistActions;
|
|
1963
1966
|
const footHint = (0, react.createElement)("p", { className: "dpic-hint" }, t("footHint"));
|
|
1964
|
-
const saveBar = (0, react.createElement)(
|
|
1967
|
+
const saveBar = (0, react.createElement)(w, {
|
|
1965
1968
|
dirty: anythingDirty,
|
|
1966
1969
|
busy,
|
|
1967
1970
|
writable: editable,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jayyuen66/dsh-dir-prep-organize",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "dsh 插件:对话输入框「润色」按钮(主键直接润色/▾ 以角色风格润色,结合当前目录 + session 模型润色草稿)+「模板」下拉(内置精选角色集生成自插件 agents/ 角色库,可按部门分组;设置卡可增删改/一键导入内置全部/导入本地角色 .md)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cordis",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"registry": "https://registry.npmjs.org"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@jayyuen66/dsh-plugin-shared": "^0.2.
|
|
64
|
+
"@jayyuen66/dsh-plugin-shared": "^0.2.8",
|
|
65
65
|
"zod": "4.6.7"
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|