dsh-plugin-strict-spec 0.5.0 → 0.6.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.
Files changed (29) hide show
  1. package/README.md +13 -13
  2. package/README.zh.md +10 -12
  3. package/dist/cli/strict-spec-cli.js +109 -771
  4. package/dist/skills/strict-roadmap-plan/SKILL.md +49 -139
  5. package/dist/skills/strict-roadmap-recommend/SKILL.md +63 -282
  6. package/dist/skills/strict-roadmap-reorder/SKILL.md +40 -158
  7. package/dist/skills/strict-roadmap-review/SKILL.md +48 -144
  8. package/dist/skills/strict-roadmap-transition/SKILL.md +52 -274
  9. package/dist/skills/strict-scene-edit/SKILL.md +51 -121
  10. package/dist/skills/strict-spec-apply/SKILL.md +63 -173
  11. package/dist/skills/strict-spec-architecture/SKILL.md +39 -97
  12. package/dist/skills/strict-spec-archive/SKILL.md +57 -127
  13. package/dist/skills/strict-spec-auto/SKILL.md +98 -270
  14. package/dist/skills/strict-spec-brainstorm/SKILL.md +73 -176
  15. package/dist/skills/strict-spec-bugfix/SKILL.md +101 -225
  16. package/dist/skills/strict-spec-design/SKILL.md +55 -124
  17. package/dist/skills/strict-spec-design-sync/SKILL.md +55 -123
  18. package/dist/skills/strict-spec-init/SKILL.md +45 -93
  19. package/dist/skills/strict-spec-maintenance/SKILL.md +44 -94
  20. package/dist/skills/strict-spec-modify/SKILL.md +44 -113
  21. package/dist/skills/strict-spec-propose/SKILL.md +180 -495
  22. package/dist/skills/strict-spec-review/SKILL.md +121 -273
  23. package/dist/skills/strict-spec-ship/SKILL.md +25 -60
  24. package/dist/skills/strict-spec-spec-edit/SKILL.md +35 -84
  25. package/dist/skills/strict-spec-sync-specs/SKILL.md +44 -94
  26. package/dist/skills/strict-spec-verify/SKILL.md +28 -43
  27. package/dist/skills/strict-tech-edit/SKILL.md +43 -124
  28. package/dist/skills/strict-tech-sync/SKILL.md +60 -162
  29. package/package.json +2 -1
package/README.md CHANGED
@@ -135,7 +135,7 @@ page](https://github.com/kw12121212/strict-spec-driven/releases) and install
135
135
  its tarball (0.3.0 shown):
136
136
 
137
137
  ```sh
138
- dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.5.0/dsh-plugin-strict-spec-0.5.0.tgz
138
+ dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.6.0/dsh-plugin-strict-spec-0.6.0.tgz
139
139
  ```
140
140
 
141
141
  When a registry release exists, the name form works too:
@@ -157,28 +157,28 @@ Upgrades install the newer release's URL the same way and restart the host.
157
157
 
158
158
  ### Development installs
159
159
 
160
- The built bundle is not committed, so a fresh clone builds it and installs it
161
- in one block — run this from the repository root:
160
+ The built bundle is tracked beside the plugin's sources, so a checkout of this
161
+ repository installs as-is — no build step, no bun, nothing to regenerate first.
162
+ Run this from the plugin directory:
162
163
 
163
164
  ```sh
164
- cd plugins/dsh-strict-spec
165
- bun install
166
- bun run build
167
165
  dsh plugin --profile web add "link:$(pwd)"
168
166
  ```
169
167
 
170
- This writes `dist/client.js` and `dist/host.js`, then adds the plugin with the
171
- npm-installed `dsh` command. Alternatively, install from a tarball packed from
172
- the built checkout:
168
+ Alternatively, install from a tarball packed from the checkout:
173
169
 
174
170
  ```sh
175
171
  dsh plugin --profile web add "$(pwd)/$(npm pack --silent)"
176
172
  ```
177
173
 
178
- A `link:` install follows later rebuilds of the checkout — after pulling
179
- changes, run `bun run build` inside `plugins/dsh-strict-spec` again; a tarball
180
- install is a fixed copy that you replace by packing and adding again. Then boot
181
- the web client from the workspace you want to read:
174
+ After changing the plugin's sources, run `bun install && bun run build` inside
175
+ `plugins/dsh-strict-spec` and commit the rebuilt `dist/`: the regression suite
176
+ compares the tracked bundle with a fresh build and fails when it drifts. The
177
+ package's `prepare` script rebuilds the bundle only when one of its files is
178
+ missing, so an interrupted checkout repairs itself. A `link:` install follows
179
+ later rebuilds of the checkout; a tarball install is a fixed copy that you
180
+ replace by packing and adding again. Then boot the web client from the
181
+ workspace you want to read:
182
182
 
183
183
  ```sh
184
184
  cd /path/to/your/project
package/README.zh.md CHANGED
@@ -105,7 +105,7 @@ roadmap-status` 报告该里程碑的所有计划变更都已完成时目标完
105
105
  选最新的 `plugin-v*` 标签安装其 tarball(以 0.3.0 为例):
106
106
 
107
107
  ```sh
108
- dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.5.0/dsh-plugin-strict-spec-0.5.0.tgz
108
+ dsh plugin --profile web add https://github.com/kw12121212/strict-spec-driven/releases/download/plugin-v0.6.0/dsh-plugin-strict-spec-0.6.0.tgz
109
109
  ```
110
110
 
111
111
  若存在 registry 发布,按名称安装亦可:
@@ -119,27 +119,25 @@ dsh plugin --profile web add dsh-plugin-strict-spec
119
119
 
120
120
  ### 开发安装
121
121
 
122
- 构建产物不提交到仓库,从本仓库的全新 clone 开始,复制下面这一块即可一次完成
123
- 构建与安装(在仓库根目录执行):
122
+ 插件仓库同时提交了构建产物,所以本仓库的 checkout 可以直接安装——不需要先构建,
123
+ 也不需要 bun。在插件目录执行:
124
124
 
125
125
  ```sh
126
- cd plugins/dsh-strict-spec
127
- bun install
128
- bun run build
129
126
  dsh plugin --profile web add "link:$(pwd)"
130
127
  ```
131
128
 
132
- 这会生成 `dist/client.js` 和 `dist/host.js`,并通过 npm 安装的 `dsh` 命令添加
133
- 插件。也可以从构建好的 checkout 打包 tarball 安装:
129
+ 也可以从 checkout 打包 tarball 安装:
134
130
 
135
131
  ```sh
136
132
  dsh plugin --profile web add "$(pwd)/$(npm pack --silent)"
137
133
  ```
138
134
 
139
- `link:` 安装会跟随 checkout 之后的重新构建——拉取更新后在
140
- `plugins/dsh-strict-spec` 中再次执行 `bun run build` 即可;tarball 安装是固定
141
- 副本,需要重新打包并再次 add 才能替换。然后在要查看的 workspace 中启动 Web
142
- 客户端:
135
+ 修改插件源码后,在 `plugins/dsh-strict-spec` 中执行
136
+ `bun install && bun run build`,并提交重建后的 `dist/`:回归套件会把仓库里的
137
+ 构建产物与一次全新构建逐字节比对,出现漂移即失败。包的 `prepare` 脚本只在构建
138
+ 产物缺少文件时才重建,因此不完整的 checkout 会自行修复。`link:` 安装会跟随之后
139
+ 的重新构建;tarball 安装是固定副本,需要重新打包并再次 add 才能替换。然后在要
140
+ 查看的 workspace 中启动 Web 客户端:
143
141
 
144
142
  ```sh
145
143
  cd /path/to/your/project