@dsh-workbench/core 0.1.0 → 0.1.1
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/dist/host/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createFakeShell } from '@dsh-workbench/shared/
|
|
1
|
+
import { createFakeShell } from '@dsh-workbench/shared/testing';
|
|
2
2
|
export declare const GOOD_BRIDGE_REPORT: string;
|
|
3
3
|
export declare const ALL_OK: {
|
|
4
4
|
stdout: string;
|
|
@@ -11,7 +11,7 @@ export declare function build(replies: Parameters<typeof createFakeShell>[0], in
|
|
|
11
11
|
}>, warmReads?: () => readonly (readonly string[])[]): {
|
|
12
12
|
fake: {
|
|
13
13
|
shell: import("@dsh-workbench/shared").DshShell;
|
|
14
|
-
calls: import("@dsh-workbench/shared/
|
|
14
|
+
calls: import("@dsh-workbench/shared/testing").ShellCall[];
|
|
15
15
|
peak: () => number;
|
|
16
16
|
commands: () => string[];
|
|
17
17
|
};
|
package/docs/HANDOFF.md
CHANGED
|
@@ -205,3 +205,17 @@ pnpm release:dry # 不联网:门禁 → 计划 → 打包清单校验
|
|
|
205
205
|
| 模块 ↔ 外壳 | 模块 `peerDependencies['@dsh-workbench/core'] = ^0.1.0`。**`^0.x` 锁次版本**:外壳升到 `0.2.0` 时 `^0.1.0` 不再满足,脚本当场报 —— 要把每个模块的范围一起改(或一起升) |
|
|
206
206
|
| `shared` ↔ 外壳/模块 | 依赖写的是 `workspace:*`,发布时会被改写成**当时那个版本号** → `shared` 必须先发;`shared` 升版后,用到它的包要重新发一次才会带上新范围 |
|
|
207
207
|
| `module-tools` ↔ `init` 模板 | 模板里 `@dsh-workbench/core` / `module-tools` 的范围要跟着本仓版本走,否则 `init` 生成的是过期范围(脚本已检查这一条) |
|
|
208
|
+
|
|
209
|
+
### 中断了怎么续跑(发布是可中断的)
|
|
210
|
+
|
|
211
|
+
脚本把现场写进 `.release-state.json`(已进 `.gitignore`)。断了就:
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
pnpm release:resume # 从现场恢复;**已在源上的包自动跳过**,只发剩下的
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
- **不带 `--resume` 重跑会被拒**:目标版本必须高于当前版本;源上若已有同名同版本,脚本会说"先提版本号"。这正是为续跑设计的语义(不是 bug)。
|
|
218
|
+
- `pnpm release:dry` 是**彩排**:改版本号 → 构建 → `publish --dry-run` → **回滚本地版本号**,不上传。
|
|
219
|
+
- 发布**成功之后**才做 git 收尾:`git add -A` → `commit -m "chore: 发布版本 v<ver>"` → `tag v<ver>` → `push` → `push origin v<ver>`。git 收尾失败时包已经发出去了,脚本会把该手打的命令打出来,并提示可以 `pnpm release:resume`。
|
|
220
|
+
- 常用旗标:`--target <ver>` 跳出版本选择 · `-y/--yes` 跳过确认 · `--allow-dirty` · `--skip-gate`(不推荐) · `--skip-rehearsal`(不推荐)。
|
|
221
|
+
- 依赖:`enquirer`(交互选择版本)与 `semver`(版本比较)是根上的 devDependencies。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-workbench/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "个人工作台:Agent 工作台外壳(左栏 + 常驻对话 + 自研右侧数据面板)。",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"icon": "./icon.svg",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"access": "public"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@dsh-workbench/shared": "0.1.
|
|
80
|
+
"@dsh-workbench/shared": "0.1.1"
|
|
81
81
|
},
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "node scripts/build.mjs && node scripts/build-types.mjs",
|