dsh-brief-sidebar 0.3.1 → 0.4.0
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 +9 -9
- package/dsh.plugin.json +2 -2
- package/lib/index.mjs +18 -18
- package/lib/index.mjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -11,8 +11,8 @@ DSH web 插件(`dsh-better-sidebar` 消费方),仓库/包名 **`dsh-brief-
|
|
|
11
11
|
|
|
12
12
|
只读展示:不做编辑、不做写回、不做多会话聚合、不复制任何第三方渲染层。
|
|
13
13
|
|
|
14
|
-
**兼容性范围(当前)**:只支持 **DSH 0.
|
|
15
|
-
0.1.2 及更早的宿主线**不在支持范围内**,npm 上也没有对应 dist-tag
|
|
14
|
+
**兼容性范围(当前)**:只支持 **DSH 0.2.0 线** —— `engines.dsh` 为 `>=0.2.0-rc.1 <0.2.1-0`,实测基线是 DSH 0.2.0-rc.1(本分支 `compat/0.2.0`);0.1.5 线由冻结的 `main`(≤0.3.1)继续服务。
|
|
15
|
+
0.1.2 及更早的宿主线**不在支持范围内**,npm 上也没有对应 dist-tag(本包 0.2.0 线发布走 `dsh-0.2.0`)。
|
|
16
16
|
|
|
17
17
|

|
|
18
18
|
|
|
@@ -43,10 +43,10 @@ dock cell、`dsh-tool-todo` 属于 DSH 上游领域,沿用 `todo` 原词,不
|
|
|
43
43
|
## 安装
|
|
44
44
|
|
|
45
45
|
```powershell
|
|
46
|
-
#
|
|
47
|
-
dsh plugin --profile web add dsh-brief-sidebar@dsh-0.
|
|
46
|
+
# 0.2.0 线发布走 dsh-0.2.0 dist-tag(0.1.5 线由 main 上的旧版本继续服务)
|
|
47
|
+
dsh plugin --profile web add dsh-brief-sidebar@dsh-0.2.0
|
|
48
48
|
# 备选一:本地 tarball
|
|
49
|
-
dsh plugin --profile web add <dsh-brief-sidebar-0.
|
|
49
|
+
dsh plugin --profile web add <dsh-brief-sidebar-0.4.0.tgz>
|
|
50
50
|
# 备选二:GitHub 直装(需自行构建)
|
|
51
51
|
dsh plugin --profile web add github:drscrewdriver/dsh-brief-sidebar#main
|
|
52
52
|
```
|
|
@@ -182,7 +182,7 @@ npm pack # 出 tarball(本目录有 pnpm-workspace.yaml 但无 pack
|
|
|
182
182
|
|
|
183
183
|
## 兼容性
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
`engines.dsh` 为 `>=0.
|
|
188
|
-
**0.1
|
|
185
|
+
0.1.5 线的逐条实测记录见 `main` 分支 README(≤0.3.1);本分支面向 **DSH 0.2.0 线**,实测基线为 **DSH 0.2.0-rc.1 + dsh-better-sidebar 0.19.1**。
|
|
186
|
+
0.2.0-rc.1 对 0.1.7 的插件 API 完全兼容(manifest/settings/HMR/slot/会话 V4 未动),本插件消费面全部是 `ctx.get(...)` 的纯 caller(`slots` / `locale` / `betterSidebar` / `sidebarRight` / `sessions`,自带本地接口定义),对宿主契约无 override,故本线为零代码修改的纯元数据适配。
|
|
187
|
+
`engines.dsh` 为 `>=0.2.0-rc.1 <0.2.1-0`,且 `package.json` 的 `engines.dsh`、`peerDependencies` 里的 DSH client 包范围、`dsh.plugin.json` 的 `engines.dsh` 三处**必须一致**(当前一致)。
|
|
188
|
+
**0.2.1 起的宿主线不在本线覆盖范围内**:rc 窗口锁线纪律,0.2.1 起需重新评估适配(届时新开版本线)。
|
package/dsh.plugin.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "dsh-external/dsh-brief-sidebar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"main": "./lib/index.mjs",
|
|
5
5
|
"description": "会话简报侧栏页(brief):把会话的 todo 列表(`todos` 投影的进展看板)与产物列表(`dshSummaryDeliverables` 投影的实时产出文件)一起渲染成右侧栏的一个「概要」tab,并遮蔽 DSH 官方那条 composer 上方的 todo 面板。只读展示,不做写回。",
|
|
6
6
|
"engines": {
|
|
7
|
-
"dsh": ">=0.
|
|
7
|
+
"dsh": ">=0.2.0-rc.1 <0.2.1-0"
|
|
8
8
|
},
|
|
9
9
|
"contributes": {
|
|
10
10
|
"tools": [],
|
package/lib/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region
|
|
1
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.js
|
|
2
2
|
function getEnumValues(entries) {
|
|
3
3
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
4
4
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -521,7 +521,7 @@ function constantCatch(value) {
|
|
|
521
521
|
return fn;
|
|
522
522
|
}
|
|
523
523
|
//#endregion
|
|
524
|
-
//#region
|
|
524
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.js
|
|
525
525
|
var _a$1;
|
|
526
526
|
const _zodDesc = {
|
|
527
527
|
value: void 0,
|
|
@@ -627,7 +627,7 @@ function config(newConfig) {
|
|
|
627
627
|
return globalConfig;
|
|
628
628
|
}
|
|
629
629
|
//#endregion
|
|
630
|
-
//#region
|
|
630
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.js
|
|
631
631
|
function _getMessage() {
|
|
632
632
|
const internals = this._zod;
|
|
633
633
|
internals.message ?? (internals.message = JSON.stringify(internals.def, jsonStringifyReplacer, 2));
|
|
@@ -743,7 +743,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
743
743
|
return fieldErrors;
|
|
744
744
|
}
|
|
745
745
|
//#endregion
|
|
746
|
-
//#region
|
|
746
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/parse.js
|
|
747
747
|
function finalizeParams(callee, params) {
|
|
748
748
|
return {
|
|
749
749
|
callee: params?.callee ?? callee,
|
|
@@ -946,7 +946,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
946
946
|
return _safeParseAsync(_Err)(schema, value, _ctx);
|
|
947
947
|
};
|
|
948
948
|
//#endregion
|
|
949
|
-
//#region
|
|
949
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/regexes.js
|
|
950
950
|
/**
|
|
951
951
|
* @deprecated CUID v1 is deprecated by its authors due to information leakage
|
|
952
952
|
* (timestamps embedded in the id). Use {@link cuid2} instead.
|
|
@@ -1017,7 +1017,7 @@ const number$1 = /^-?\d+(?:\.\d+)?$/;
|
|
|
1017
1017
|
const lowercase = /^[^A-Z]*$/;
|
|
1018
1018
|
const uppercase = /^[^a-z]*$/;
|
|
1019
1019
|
//#endregion
|
|
1020
|
-
//#region
|
|
1020
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.js
|
|
1021
1021
|
const $ZodCheck = /*@__PURE__*/ $constructor("$ZodCheck", (inst, def) => {
|
|
1022
1022
|
var _a;
|
|
1023
1023
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1313,7 +1313,7 @@ const $ZodCheckOverwrite = /*@__PURE__*/ $constructor("$ZodCheckOverwrite", (ins
|
|
|
1313
1313
|
};
|
|
1314
1314
|
});
|
|
1315
1315
|
//#endregion
|
|
1316
|
-
//#region
|
|
1316
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/doc.js
|
|
1317
1317
|
var Doc = class {
|
|
1318
1318
|
constructor(args = [], closed = {}) {
|
|
1319
1319
|
this.content = [];
|
|
@@ -1347,14 +1347,14 @@ var Doc = class {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
};
|
|
1349
1349
|
//#endregion
|
|
1350
|
-
//#region
|
|
1350
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.js
|
|
1351
1351
|
const version = {
|
|
1352
1352
|
major: 4,
|
|
1353
1353
|
minor: 6,
|
|
1354
1354
|
patch: 5
|
|
1355
1355
|
};
|
|
1356
1356
|
//#endregion
|
|
1357
|
-
//#region
|
|
1357
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.js
|
|
1358
1358
|
const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
|
|
1359
1359
|
var _a;
|
|
1360
1360
|
inst ?? (inst = {});
|
|
@@ -2686,7 +2686,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
2688
2688
|
//#endregion
|
|
2689
|
-
//#region
|
|
2689
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/memoizer.js
|
|
2690
2690
|
var $ZodCyclicError = class extends Error {
|
|
2691
2691
|
constructor() {
|
|
2692
2692
|
super(`Cannot parse a reference cycle that closes through a transform`);
|
|
@@ -2939,7 +2939,7 @@ function isBackEdge(ctx, value) {
|
|
|
2939
2939
|
return backEdges !== void 0 && isRef(value) && backEdges.has(value);
|
|
2940
2940
|
}
|
|
2941
2941
|
//#endregion
|
|
2942
|
-
//#region
|
|
2942
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/locales/en.js
|
|
2943
2943
|
const error = () => {
|
|
2944
2944
|
const Sizable = {
|
|
2945
2945
|
string: {
|
|
@@ -3047,7 +3047,7 @@ function en_default() {
|
|
|
3047
3047
|
return { localeError: error() };
|
|
3048
3048
|
}
|
|
3049
3049
|
//#endregion
|
|
3050
|
-
//#region
|
|
3050
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.js
|
|
3051
3051
|
var _a;
|
|
3052
3052
|
var $ZodRegistry = class {
|
|
3053
3053
|
constructor() {
|
|
@@ -3094,7 +3094,7 @@ function registry() {
|
|
|
3094
3094
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3095
3095
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
3096
3096
|
//#endregion
|
|
3097
|
-
//#region
|
|
3097
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.js
|
|
3098
3098
|
function snapshotChecks(def) {
|
|
3099
3099
|
if (def.checks) def.checks = [...def.checks];
|
|
3100
3100
|
return def;
|
|
@@ -3596,7 +3596,7 @@ function _check(fn, params) {
|
|
|
3596
3596
|
return ch;
|
|
3597
3597
|
}
|
|
3598
3598
|
//#endregion
|
|
3599
|
-
//#region
|
|
3599
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.js
|
|
3600
3600
|
function assignProps(target, ...sources) {
|
|
3601
3601
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
3602
3602
|
return target;
|
|
@@ -4040,7 +4040,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
4040
4040
|
return finalize(ctx, schema);
|
|
4041
4041
|
};
|
|
4042
4042
|
//#endregion
|
|
4043
|
-
//#region
|
|
4043
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema-processors.js
|
|
4044
4044
|
const narrowMin = (agg, key, value) => {
|
|
4045
4045
|
if (agg[key] === void 0 || value > agg[key]) agg[key] = value;
|
|
4046
4046
|
};
|
|
@@ -4459,7 +4459,7 @@ const optionalProcessor = (schema, ctx, _json, params) => {
|
|
|
4459
4459
|
seen.ref = def.innerType;
|
|
4460
4460
|
};
|
|
4461
4461
|
//#endregion
|
|
4462
|
-
//#region
|
|
4462
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.js
|
|
4463
4463
|
const _installedErrorProtos = /* @__PURE__ */ new WeakSet([Object.prototype, Error.prototype]);
|
|
4464
4464
|
function _lazyMethod(proto, key, make) {
|
|
4465
4465
|
Object.defineProperty(proto, key, {
|
|
@@ -4509,7 +4509,7 @@ const initializer = (inst, issues) => {
|
|
|
4509
4509
|
};
|
|
4510
4510
|
const ZodRealError = /*@__PURE__*/ $constructor("ZodError", initializer, void 0, { Parent: Error });
|
|
4511
4511
|
//#endregion
|
|
4512
|
-
//#region
|
|
4512
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.js
|
|
4513
4513
|
const parse = /* @__PURE__ */ _parse(ZodRealError);
|
|
4514
4514
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
4515
4515
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -4523,7 +4523,7 @@ const safeDecode = /* @__PURE__ */ _safeDecode(ZodRealError);
|
|
|
4523
4523
|
const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
4524
4524
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
4525
4525
|
//#endregion
|
|
4526
|
-
//#region
|
|
4526
|
+
//#region node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.js
|
|
4527
4527
|
function _ensureDefaultLocale() {
|
|
4528
4528
|
if (!globalConfig.localeError) config(en_default());
|
|
4529
4529
|
}
|